/*
Theme Name: BigBear Pharmacy
Theme URI: https://bigbearpharmacy.com
Author: BigBear Pharmacy
Author URI: https://bigbearpharmacy.com
Description: 专业医药电商WordPress主题，支持WooCommerce、中英文双语、微信支付和加密货币支付。适用于医药销售、药店等电商平台。
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bigbear-pharmacy
Tags: e-commerce, WooCommerce, pharmaceutical, bilingual, responsive, online-store

BigBear Pharmacy WordPress Theme - 专业医药电商主题
Copyright (C) 2024 BigBear Pharmacy
*/

/* ===========================================
   CSS Variables (CSS变量)
   =========================================== */
:root {
    /* Colors (颜色) */
    --primary-color: #1e5aa8;
    --primary-dark: #004a8f;
    --secondary-color: #00a99d;
    --accent-color: #f7941d;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;

    /* Shadows (阴影) */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);

    /* Transitions (过渡) */
    --transition: all 0.3s ease;
}

/* ===========================================
   Reset & Base (重置与基础)
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* ===========================================
   Typography (排版)
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ===========================================
   Layout (布局)
   =========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    max-width: 100%;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--bg-light);
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===========================================
   Header (头部)
   =========================================== */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-top a {
    color: white;
}

.header-contact {
    display: flex;
    gap: 20px;
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher a {
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(255,255,255,0.1);
}

.language-switcher a:hover,
.language-switcher a.active {
    background: rgba(255,255,255,0.3);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.logo-text span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    gap: 5px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 5px;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Dropdown Menu */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
}

.main-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    border-left: 3px solid transparent;
}

.main-nav .sub-menu li a:hover {
    background: var(--bg-light);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search {
    position: relative;
}

.header-search input {
    width: 200px;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 250px;
}

.header-search button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

.cart-icon {
    position: relative;
}

.cart-icon a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: 25px;
    color: var(--text-dark);
}

.cart-icon a:hover {
    background: var(--primary-color);
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   Hero Section (英雄区域)
   =========================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #e07d0c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* ===========================================
   Section Headers (区块标题)
   =========================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================================
   Categories (产品分类)
   =========================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.category-count {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* ===========================================
   Products (产品)
   =========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.product-category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    border-radius: 20px;
}

.product-content {
    padding: 20px;
}

.product-code {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-title a {
    color: var(--text-dark);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.product-spec {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.product-price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
}

.btn-add-cart {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ===========================================
   Features (功能特色)
   =========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===========================================
   News (新闻)
   =========================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: white;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* ===========================================
   CTA Section (行动召唤)
   =========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ===========================================
   Footer (底部)
   =========================================== */
.site-footer {
    background: #1a1a2e;
    color: white;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 25px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom a {
    color: var(--accent-color);
}

/* ===========================================
   WooCommerce Custom Styles (WooCommerce自定义样式)
   =========================================== */
.woocommerce-message,
.woocommerce-info {
    padding: 15px 20px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
    border-radius: 5px;
}

.woocommerce-error {
    padding: 15px 20px;
    background: #fee;
    border-left: 4px solid var(--error-color);
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Product Archive */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.woocommerce ul.products li.product {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: left;
    margin: 0;
    width: 100%;
    float: none;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.woocommerce ul.products li.product a img {
    margin: 0;
    border-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 20px 20px 5px;
    font-size: 1.125rem;
    font-weight: 600;
}

.woocommerce ul.products li.product .price {
    color: var(--accent-color);
    padding: 0 20px;
    font-size: 1.25rem;
}

.woocommerce ul.products li.product .price del {
    color: var(--text-light);
    font-size: 0.875rem;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    font-weight: 700;
}

.woocommerce ul.products li.product a.button {
    margin: 15px 20px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 25px;
    padding: 10px 20px;
}

.woocommerce ul.products li.product a.button:hover {
    background: var(--primary-dark);
}

/* Single Product */
.woocommerce div.product {
    padding-top: 100px;
}

.woocommerce div.product div.images {
    margin-bottom: 2em;
}

.woocommerce div.product div.summary {
    margin-bottom: 2em;
}

.woocommerce div.product p.price {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    margin-bottom: 20px;
}

.woocommerce div.product form.cart .button {
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    font-size: 1rem;
    border-radius: 30px;
}

.woocommerce div.product form.cart .button:hover {
    background: #e07d0c;
}

/* Cart */
.woocommerce table.shop_table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce table.shop_table th {
    font-weight: 600;
    background: var(--bg-light);
}

.woocommerce .cart-collaterals .cart_totals {
    float: right;
    width: 100%;
    max-width: 400px;
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.125rem;
}

.woocommerce .wc-proceed-to-checkout .checkout-button:hover {
    background: #e07d0c;
}

/* Checkout */
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Payment Methods */
.woocommerce-checkout #payment {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 10px 0;
}

.woocommerce-checkout #payment div.place-order {
    padding: 0;
}

.woocommerce-checkout #payment button#place_order {
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.125rem;
}

.woocommerce-checkout #payment button#place_order:hover {
    background: #e07d0c;
}

/* ===========================================
   Responsive Design (响应式)
   =========================================== */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .categories-grid,
    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-grid,
    .products-grid,
    .features-grid,
    .news-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   Utility Classes (工具类)
   =========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }
.py-4 { padding-top: 40px; padding-bottom: 40px; }
.py-5 { padding-top: 50px; padding-bottom: 50px; }

.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }

.hidden { display: none; }
.visible { display: block; }

/* ===========================================
   Animations (动画)
   =========================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===========================================
   Toast Notifications (消息提示)
   =========================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { background: var(--success-color); }
.toast.error { background: var(--error-color); }
.toast.warning { background: var(--warning-color); color: var(--text-dark); }
