:root {
    --primary-blue: #003366;
    --accent-gold: #D4AF37;
    --light-gold: #E6C567;
    --dark-gray: #212529;
    --medium-gray: #495057;
    --light-gray: #f8f9fa;
    --text-color: #343a40;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--accent-gold);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    width: 200px;
    height: auto;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--medium-gray);
    font-weight: 500;
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.language-selector {
    position: relative;
    margin-left: 15px;
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-gray);
    border: 1.5px solid #e8e8e8;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-current:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.12);
    transform: translateY(-1px);
}

.lang-current i.fa-globe {
    font-size: 15px;
    color: var(--primary-blue);
    transition: transform 0.4s ease;
}

.lang-dropdown.open .lang-current i.fa-globe {
    transform: rotate(-20deg);
}

.lang-current i.fa-chevron-down {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown.open .lang-current i.fa-chevron-down {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

/* 下拉菜单容器 */
.lang-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transform-origin: top right;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.lang-dropdown.open .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 下拉选项 */
.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: var(--dark-gray);
}

.lang-option:hover {
    background: #f5f7fa;
}

.lang-option.active {
    background: rgba(0, 51, 102, 0.06);
    color: var(--primary-blue);
}

.lang-option .check-mark {
    margin-left: auto;
    font-size: 12px;
    color: var(--primary-blue);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-option.active .check-mark {
    opacity: 1;
    transform: scale(1);
}

.lang-flag {
    font-size: 18px;
    flex-shrink: 0;
}

.lang-name {
    font-size: 13px;
    font-weight: 500;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

.search-bar i:hover {
    color: var(--accent-gold);
    cursor: pointer;
}

/* 搜索建议容器 */
.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

/* 建议和历史的头部 */
.suggestions-header,
.history-header {
    padding: 10px 15px;
    font-size: 12px;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-header .clear-history-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.history-header .clear-history-btn:hover {
    background: #f5f5f5;
    color: #666;
}

/* 搜索建议项 */
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #fafafa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 6px;
    flex-shrink: 0;
}

.suggestion-item span {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 搜索历史项 */
.history-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #fafafa;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: #f8f9fa;
}

.history-item i.fa-history {
    margin-right: 10px;
    color: #999;
    font-size: 14px;
}

.history-item span {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.history-item .delete-history {
    color: #ccc;
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.history-item .delete-history:hover {
    color: #e74c3c;
    background: #ffebee;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-icon:hover {
    background: var(--light-gray);
}

.cart-icon i {
    font-size: 22px;
    color: var(--dark-gray);
}

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

/* Navigation */
nav.main-nav {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #eee;
    position: relative;
    transition: var(--transition);
}

.categories-btn {
    background: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 30px;
    position: relative;
    z-index: 100;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.15);
    white-space: nowrap;
}

.categories-btn:hover {
    background: #002244;
    transform: translateY(-2px);
}

.categories-btn i {
    margin-right: 10px;
}

.categories-btn .cat-arrow {
    display: none;
    margin-left: auto;
    margin-right: 0;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.categories-btn.active-cat .cat-arrow {
    transform: rotate(180deg);
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    padding: 15px 0;
    display: none;
    z-index: 999;
    border: 1px solid #f0f0f0;
}

.categories-btn:hover .categories-dropdown {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-item {
    position: relative;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
}

.category-link:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.category-link i {
    font-size: 12px;
    color: #999;
}

.sub-category {
    position: absolute;
    left: 100%;
    top: 0;
    width: 240px;
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    padding: 15px 0;
    display: none;
    border: 1px solid #f0f0f0;
     /* 添加滚动功能 */
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.category-item:hover .sub-category {
    display: block;
    animation: fadeIn 0.3s ease;
}

.sub-category-link {
    display: block;
    padding: 12px 24px;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
}

.sub-category-link:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

/* 自定义滚动条样式 */
.sub-category::-webkit-scrollbar {
    width: 6px;
}

.sub-category::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 4px 4px 0;
}

.sub-category::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.sub-category::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* 导航关闭按钮 - 桌面端隐藏 */
.nav-close-btn {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-right: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

/* 修改：添加选中状态样式 */
.nav-menu a.active {
    color: var(--primary-blue);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}


/* Footer */
footer {
    background: var(--primary-blue);
    color: white;
    padding: 70px 0 30px;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* 折叠箭头 - 桌面端隐藏 */
.footer-arrow {
    display: none;
}
.footer-collapse {
    display: block;
}

.footer-column p {
    color: #c2d1e5;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column a {
    color: #c2d1e5;
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.footer-column a i {
    margin-right: 10px;
    width: 20px;
    color: var(--accent-gold);
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    color: #a3b4cc;
}

/* 新增登录注册样式 */
.auth-container {
    position: relative;
    margin-left: 20px;
}

.auth-btn {
    background: transparent;
    border: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.auth-btn:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.auth-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    position: relative;
}

.auth-modal.active .auth-content {
    transform: translateY(0);
}

.auth-tabs {
    display: flex;
    background: var(--light-gray);
    position: relative;
    padding-right: 40px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.auth-tab.active {
    color: var(--primary-blue);
    border-bottom: 3px solid var(--accent-gold);
    background: white;
}

.auth-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.auth-submit {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.auth-submit:hover {
    background: #002244;
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.close-auth {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-auth:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

/* 移动端关闭按钮样式 */
@media (max-width: 768px) {
    .close-auth {
        top: 12px;
        right: 12px;
        font-size: 18px;
        width: 28px;
        height: 28px;
    }

    .auth-tabs {
        padding-right: 36px;
    }
}

@media (max-width: 480px) {
    .close-auth {
        top: 10px;
        right: 10px;
        font-size: 16px;
        width: 24px;
        height: 24px;
    }

    .auth-tabs {
        padding-right: 32px;
    }
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 8px;
}

.user-name {
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 15px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: 6px;
    width: 200px;
    padding: 10px 0;
    display: none;
    z-index: 100;
    border: 1px solid #f0f0f0;
}

.user-profile:hover .user-dropdown {
    display: block;
}

.dropdown-item {
    padding: 10px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    display: block;
    transition: var(--transition);
    font-size: 15px;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.dropdown-item i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.auth-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* ==========================================
   Mobile Responsive - Header & Navigation
   断点：992px（平板）、768px（平板竖屏）、480px（手机）
   设计原则：
   - 平板端：汉堡+Logo+搜索栏+购物车 单行布局
   - 手机端：汉堡+Logo(居中)+购物车 极简三元素，搜索/用户/语言移到导航抽屉中
   ========================================== */

/* --- 992px: 平板横屏 --- */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .top-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    /* 汉堡按钮 */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        order: 0;
    }

    /* Logo */
    .logo {
        flex-shrink: 1;
        min-width: 0;
        order: 1;
    }
    .logo-text h1 {
        font-size: 18px;
    }
    .logo-text span {
        font-size: 9px;
        letter-spacing: 1px;
    }

    /* 操作区 */
    .header-actions {
        flex: 0 0 auto;
        gap: 6px;
        order: 2;
        margin-left: auto;
    }

    /* 搜索栏 */
    .search-bar {
        max-width: 180px;
        min-width: 120px;
        margin: 0;
    }
    .search-bar input {
        padding: 8px 32px 8px 12px;
        font-size: 13px;
        height: 36px;
    }
    .search-bar i {
        right: 10px;
        font-size: 14px;
    }

    /* 用户按钮仅图标 */
    .auth-btn {
        padding: 6px;
        flex-shrink: 0;
    }
    .auth-btn i {
        font-size: 16px;
        margin-right: 0;
    }
    .auth-text {
        display: none;
    }

    /* 用户头像 */
    .user-profile {
        flex-shrink: 0;
        margin-left: 0;
    }
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
        margin-right: 0;
    }
    .user-name {
        display: none;
    }

    /* 购物车 */
    .cart-icon {
        padding: 6px;
        flex-shrink: 0;
    }
    .cart-icon i {
        font-size: 18px;
    }
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: 1px;
        right: 1px;
    }

    /* 语言 */
    .language-selector {
        margin-left: 0;
        flex-shrink: 0;
    }
    .lang-current {
        padding: 6px 8px;
        font-size: 12px;
        gap: 4px;
        height: 34px;
    }
    .lang-current i.fa-globe {
        font-size: 14px;
    }
    .lang-current i.fa-chevron-down {
        font-size: 9px;
    }
    .lang-options {
        min-width: 150px;
        right: -5px;
        top: calc(100% + 8px);
    }

    /* ===== 侧边导航 ===== */
    nav.main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: 5px 0 30px rgba(0,0,0,0.12);
        z-index: 999;
        transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto;
        border-top: none;
    }
    nav.main-nav.active {
        left: 0;
    }

    .nav-close-btn {
        position: sticky;
        top: 0;
        background: white;
        border: none;
        font-size: 22px;
        color: var(--medium-gray);
        cursor: pointer;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        z-index: 3;
    }
    .nav-close-btn:hover {
        color: var(--dark-gray);
        background: #fafafa;
    }

    /* 分类按钮 */
    .categories-btn {
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 14px 20px;
        font-size: 14px;
        justify-content: flex-start;
        box-shadow: none;
        background: var(--primary-blue);
    }
    .categories-btn:hover {
        transform: none;
    }
    .categories-btn .cat-arrow {
        display: inline-block;
    }

    /* 分类内嵌展开 */
    .categories-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding: 0;
        display: none;
        background: #002244;
    }
    .categories-btn.active-cat .categories-dropdown {
        display: block;
    }
    .category-link {
        color: rgba(255,255,255,0.85);
        padding: 12px 30px;
        font-size: 14px;
    }
    .category-link:hover {
        background: rgba(255,255,255,0.08);
        color: white;
    }
    .category-link i {
        display: none;
    }
    .sub-category {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border: none;
        padding: 0;
        max-height: none;
        background: rgba(0,0,0,0.15);
        display: none;
    }
    .category-item.open-sub .sub-category {
        display: block;
    }
    .sub-category-link {
        color: rgba(255,255,255,0.7);
        padding: 10px 45px;
        font-size: 13px;
    }
    .sub-category-link:hover {
        background: rgba(255,255,255,0.06);
        color: white;
    }

    /* 导航菜单 */
    .nav-menu {
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }
    .nav-menu li {
        margin-right: 0;
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }
    .nav-menu a {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 500;
        color: var(--dark-gray);
        transition: all 0.2s;
    }
    .nav-menu a:hover,
    .nav-menu a.active {
        background: #f8f9fc;
        color: var(--primary-blue);
    }
    .nav-menu a:after {
        display: none;
    }

    /* 遮罩 */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* --- 768px: 平板竖屏 --- */
@media (max-width: 768px) {
    .top-header {
        padding: 8px 0;
        gap: 8px;
    }

    .mobile-menu-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .logo-text h1 {
        font-size: 16px;
    }
    .logo-text span {
        font-size: 8px;
        letter-spacing: 0.8px;
    }

    .search-bar {
        max-width: 140px;
        min-width: 100px;
    }
    .search-bar input {
        padding: 7px 28px 7px 10px;
        font-size: 12px;
        height: 32px;
    }
    .search-bar i {
        right: 8px;
        font-size: 13px;
    }

    .auth-btn {
        padding: 5px;
    }
    .auth-btn i {
        font-size: 15px;
    }
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .cart-icon {
        padding: 5px;
    }
    .cart-icon i {
        font-size: 17px;
    }
    .cart-count {
        width: 15px;
        height: 15px;
        font-size: 8px;
        top: 0;
        right: 0;
    }

    .lang-current {
        padding: 5px 6px;
        font-size: 11px;
        height: 30px;
    }
    .lang-current i.fa-globe {
        font-size: 13px;
    }
    .lang-current i.fa-chevron-down {
        font-size: 8px;
    }

    nav.main-nav {
        width: 85%;
    }
    .nav-menu a {
        padding: 13px 18px;
        font-size: 14px;
    }
    .categories-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
}

/* --- 480px: 手机 - 汉堡 + Logo居中 + 紧凑右侧图标 --- */
@media (max-width: 480px) {
    .top-header {
        display: grid;
        grid-template-columns: 36px 1fr auto;
        align-items: center;
        padding: 8px 0;
        gap: 0;
    }

    /* 汉堡按钮 - 左侧固定 */
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
        padding: 0;
        margin: 0;
        order: unset;
    }

    /* Logo 居中 */
    .logo {
        position: static;
        transform: none;
        justify-content: center;
        order: unset;
    }
    .logo-text {
        text-align: center;
    }
    .logo-text h1 {
        font-size: 16px;
    }
    .logo-text span {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    /* 操作区 - 右侧紧凑图标组 */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 2px;
        margin: 0;
        flex: 0 0 auto;
        width: auto;
    }

    /* 搜索栏隐藏 */
    .search-bar {
        display: none;
    }

    /* ===== 右侧图标通用 ===== */
    .header-actions > * {
        flex-shrink: 0;
        width: auto !important;
        min-width: 0 !important;
    }

    /* 语言选择器 */
    .language-selector {
        display: block;
        margin: 0;
    }
    .lang-current {
        padding: 4px 5px;
        font-size: 10px;
        height: 28px;
        gap: 2px;
        border: 1px solid #e0e0e0;
        border-radius: 20px;
    }
    .lang-current i.fa-globe {
        font-size: 12px;
    }
    .lang-current i.fa-chevron-down {
        display: none;
    }
    .lang-current span {
        font-size: 10px;
    }

    /* 用户按钮 */
    .auth-container {
        display: block;
        margin: 0;
        padding: 0;
    }
    .auth-btn {
        padding: 4px;
        margin: 0;
    }
    .auth-btn i {
        font-size: 15px;
        margin-right: 0;
    }
    .auth-text {
        display: none;
    }
    /* 已登录头像 */
    .user-profile {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
        margin: 0;
        flex-shrink: 0;
    }
    .user-name {
        display: none;
    }
    .user-dropdown {
        right: -5px;
        min-width: 130px;
        width: auto;
    }

    /* 购物车 */
    .cart-icon {
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cart-icon i {
        font-size: 18px;
    }
    .cart-count {
        width: 14px;
        height: 14px;
        font-size: 8px;
        top: -1px;
        right: -3px;
    }

    /* 侧边导航宽度 */
    nav.main-nav {
        width: 85%;
        max-width: none;
    }
    .nav-menu a {
        padding: 13px 16px;
        font-size: 14px;
    }
    .nav-close-btn {
        padding: 13px 16px;
        font-size: 20px;
    }
    .categories-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    .category-link {
        padding: 11px 24px;
        font-size: 13px;
    }
    .sub-category-link {
        padding: 9px 36px;
        font-size: 12px;
    }
}

/* ==========================================
   Mobile Responsive - Footer
   ========================================== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    /* 品牌区 - 顶部居中 */
    .footer-brand {
        text-align: center;
        padding: 0 0 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        margin-bottom: 0;
    }
    .footer-brand h3 {
        font-size: 20px;
        margin-bottom: 8px;
        padding-bottom: 0;
    }
    .footer-brand h3:after {
        display: none;
    }
    .footer-brand p {
        font-size: 13px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.55);
        max-width: 360px;
        margin: 0 auto;
    }

    /* 可折叠列 */
    .footer-column[data-footer-section] {
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .footer-column[data-footer-section]:last-of-type {
        border-bottom: none;
    }

    /* 折叠标题 - 可点击 */
    .footer-column[data-footer-section] h3 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 15px;
        padding: 16px 0;
        margin-bottom: 0;
        cursor: pointer;
        user-select: none;
        color: rgba(255, 255, 255, 0.9);
        transition: color 0.2s;
    }
    .footer-column[data-footer-section] h3:hover {
        color: var(--accent-gold);
    }
    .footer-column[data-footer-section] h3:after {
        display: none;
    }

    /* 折叠箭头 */
    .footer-arrow {
        display: inline-block;
        font-size: 12px;
        color: var(--accent-gold);
        transition: transform 0.3s ease;
        margin-left: 8px;
    }
    .footer-column.open .footer-arrow {
        transform: rotate(180deg);
    }

    /* 折叠内容 */
    .footer-collapse {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }
    .footer-column.open .footer-collapse {
        max-height: 300px;
        padding-bottom: 16px;
    }

    .footer-column[data-footer-section] ul li {
        margin-bottom: 8px;
    }
    .footer-column[data-footer-section] a {
        font-size: 13px;
        padding: 4px 0;
        color: rgba(255, 255, 255, 0.5);
        transition: color 0.2s, transform 0.2s;
    }
    .footer-column[data-footer-section] a:hover {
        color: white;
        transform: translateX(3px);
    }
    .footer-column[data-footer-section] a i {
        font-size: 10px;
        margin-right: 8px;
        width: 14px;
        color: var(--accent-gold);
        opacity: 0.7;
    }

    .footer-bottom {
        font-size: 12px;
        padding: 20px 0;
        color: rgba(255, 255, 255, 0.35);
        border-top-color: rgba(255, 255, 255, 0.06);
    }

    .auth-content {
        width: 95%;
        max-width: 350px;
    }
    .auth-form {
        padding: 20px;
    }
    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
    .auth-submit {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 0 0;
    }

    .footer-brand {
        padding: 0 0 20px;
    }
    .footer-brand h3 {
        font-size: 18px;
    }
    .footer-brand p {
        font-size: 12px;
        max-width: 300px;
    }

    .footer-column[data-footer-section] h3 {
        font-size: 14px;
        padding: 14px 0;
    }

    .footer-arrow {
        font-size: 11px;
    }

    .footer-column.open .footer-collapse {
        max-height: 280px;
        padding-bottom: 14px;
    }

    .footer-column[data-footer-section] a {
        font-size: 12px;
    }
    .footer-column[data-footer-section] a i {
        font-size: 9px;
        width: 12px;
        margin-right: 6px;
    }

    .footer-bottom {
        font-size: 11px;
        padding: 16px 0;
    }
}
