@font-face {
    font-family: 'SiYuanN';
    src: url('/Skin/fonts/SourceHanSansCN-Normal.otf');
}

:root {
    --primary: #1a56db;
    --primary-dark: #1e429f;
    --primary-light: #e1effe;
    --accent: #0ea5e9;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    font-family: 'SiYuanN', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {    
    background: #f8fafc;
    color: var(--dark);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
}

    .top-bar a {
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        margin: 0 12px;
    }

        .top-bar a:hover {
            color: #fff;
        }

    .top-bar .divider {
        opacity: 0.3;
    }

/* ===== HEADER ===== */
.main-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

    .logo span {
        color: var(--accent);
    }

    .logo small {
        display: block;
        font-size: 10px;
        color: var(--gray);
        font-weight: 400;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-top: -4px;
    }

/* Search */
.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

    .search-box input {
        width: 100%;
        height: 44px;
        border: 2px solid var(--primary);
        border-radius: 8px;
        padding: 0 50px 0 16px;
        font-size: 14px;
        outline: none;
        transition: box-shadow 0.2s;
    }

        .search-box input:focus {
            box-shadow: 0 0 0 4px var(--primary-light);
        }

    .search-box button {
        position: absolute;
        right: 2px;
        top: 2px;
        height: 40px;
        width: 44px;
        background: var(--primary);
        border: none;
        border-radius: 6px;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .search-box button:hover {
            background: var(--primary-dark);
        }

/* Header Actions */
.header-actions {
    text-align: right;
}

    .header-actions a {
        display: inline-block;
        color: var(--dark);
        text-decoration: none;
        margin-left: 20px;
        font-size: 13px;
        position: relative;
    }

        .header-actions a i {
            font-size: 20px;
            display: block;
            margin-bottom: 2px;
            color: var(--primary);
        }

    .header-actions .badge {
        position: absolute;
        top: -6px;
        right: -8px;
        background: var(--danger);
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 10px;
    }

/* ===== NAV ===== */
.main-nav {
    background: var(--primary);
    border: none;
    border-radius: 0;
    margin: 0;
    min-height: 46px;
}

    .main-nav .navbar-nav > li > a {
        color: rgba(255,255,255,0.9) !important;
        font-size: 16px !important; font-weight:bold;     
        padding: 13px 25px;
        transition: all 0.2s;
    }

        .main-nav .navbar-nav > li > a:hover,
        .main-nav .navbar-nav > li.active > a {
            background: rgba(255,255,255,0.12) !important;
            color: #fff !important;
        }

    .main-nav .navbar-toggle {
        border-color: rgba(255,255,255,0.3);
    }

        .main-nav .navbar-toggle .icon-bar {
            background: #fff;
        }

/* Category Dropdown */
.cat-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    padding: 0;
    min-width: 220px;
}

    .cat-dropdown .dropdown-menu li a {
        padding: 12px 20px;
        font-size: 13px;
        color: var(--dark);
        border-bottom: 1px solid var(--light-gray);
    }

        .cat-dropdown .dropdown-menu li a:hover {
            background: var(--primary-light);
            color: var(--primary);
        }

        .cat-dropdown .dropdown-menu li a i {
            width: 24px;
            color: var(--primary);
            margin-right: 8px;
        }

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 80%;
        height: 200%;
        background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-content {
    color: #fff;
    position: relative;
    z-index: 2;
}

    .hero-content h1 {
        font-size: 42px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 20px;
        letter-spacing: -1px;
    }

        .hero-content h1 span {
            color: #60a5fa;
        }

    .hero-content p {
        font-size: 16px;
        color: rgba(255,255,255,0.75);
        margin-bottom: 30px;
        max-width: 480px;
    }

.hero-btn {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

    .hero-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        color: var(--primary);
        text-decoration: none;
    }

.hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    margin-left: 12px;
}

    .hero-btn-outline:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

    .hero-image img {
        max-height: 360px;
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
        animation: float 6s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

    .hero-stats .stat-item h3 {
        font-size: 28px;
        font-weight: 700;
        color: #60a5fa;
        margin: 0;
    }

    .hero-stats .stat-item p {
        font-size: 12px;
        color: rgba(255,255,255,0.5);
        margin: 4px 0 0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* ===== FEATURES BAR ===== */
.features-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 25px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .feature-item .icon {
        width: 48px;
        height: 48px;
        background: var(--primary-light);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--primary);
        flex-shrink: 0;
    }

    .feature-item h4 {
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 3px;
        color: var(--dark);
    }

    .feature-item p {
        font-size: 12px;
        color: var(--gray);
        margin: 0;
    }

/* ===== SECTION TITLE ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

    .section-title h2 {
        font-size: 24px;
        font-weight: 700;
        color: var(--dark);
        margin: 0;
        position: relative;
        padding-left: 16px;
    }

        .section-title h2::before {
            content: '';
            position: absolute;
            left: 0;
            top: 4px;
            bottom: 4px;
            width: 4px;
            background: var(--primary);
            border-radius: 2px;
        }

    .section-title a {
        font-size: 13px;
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
    }

        .section-title a:hover {
            text-decoration: underline;
        }

        .section-title a i {
            margin-left: 4px;
        }

/* ===== CATEGORY GRID ===== */
.cat-grid {
    margin: 40px 0;
}

.cat-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 20px;
}

    .cat-card:hover {
        border-color: var(--primary);
        box-shadow: 0 8px 30px rgba(26,86,219,0.12);
        transform: translateY(-4px);
        text-decoration: none;
    }

    .cat-card .cat-icon {
        width: 64px;
        height: 64px;
        background: var(--primary-light);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 14px;
        font-size: 28px;
        color: var(--primary);
        transition: all 0.3s;
    }

    .cat-card:hover .cat-icon {
        background: var(--primary);
        color: #fff;
    }

    .cat-card h3 {
        font-size: 14px;
        font-weight: 600;
        color: var(--dark);
        margin: 0 0 4px;
    }

    .cat-card p {
        font-size: 12px;
        color: var(--gray);
        margin: 0;
    }

/* ===== PRODUCT CARD ===== */
.product-section {
    padding: 40px 0;
}

    .product-section:nth-child(even) {
        background: var(--light-gray);
    }

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    margin-bottom: 20px;
    position: relative;
}

    .product-card:hover {
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
        transform: translateY(-4px);
    }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

    .product-badge span {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        color: #fff;
    }

.badge-new {
    background: var(--success);
}

.badge-hot {
    background: var(--danger);
}

.badge-sale {
    background: var(--warning);
}

.product-img {
    position: relative;
    padding-top: 100%;
    background: #f8fafc;
    overflow: hidden;
}

    .product-img img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    transition: bottom 0.3s;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--dark);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-actions button:hover {
        background: var(--primary);
        color: #fff;
    }

.product-info {
    padding: 16px;
}

    .product-info .cat-tag {
        font-size: 11px;
        color: var(--primary);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .product-info h3 {
        font-size: 14px;
        font-weight: 600;
        color: var(--dark);
        margin: 6px 0 10px;
        line-height: 1.4;
        height: 40px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

        .product-info h3 a {
            color: var(--dark);
            text-decoration: none;
        }

            .product-info h3 a:hover {
                color: var(--primary);
            }

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

    .product-price .current {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary);
    }

    .product-price .original {
        font-size: 13px;
        color: var(--gray);
        text-decoration: line-through;
    }

    .product-price .discount {
        font-size: 11px;
        color: var(--danger);
        font-weight: 600;
    }

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
}

    .product-meta .rating {
        color: var(--warning);
    }

    .product-meta .sold {
        color: var(--gray);
    }

/* ===== FLASH SALE ===== */
.flash-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 40px 0;
    margin: 40px 0;
}

.flash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

    .flash-header h2 {
        font-size: 24px;
        font-weight: 700;
        color: var(--dark);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .flash-header h2 i {
            color: var(--danger);
            animation: pulse 1.5s infinite;
        }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.countdown {
    display: flex;
    gap: 8px;
    align-items: center;
}

.countdown-item {
    background: var(--dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    min-width: 44px;
    text-align: center;
}

    .countdown-item span {
        display: block;
        font-size: 10px;
        font-weight: 400;
        opacity: 0.7;
        margin-top: -2px;
    }

.countdown-sep {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

/* ===== BANNER GRID ===== */
.banner-grid {
    margin: 40px 0;
}

.banner-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
}

    .banner-item img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .banner-item:hover img {
        transform: scale(1.05);
    }

    .banner-item::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.6) 100%);
    }

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    color: #fff;
}

    .banner-content h3 {
        font-size: 20px;
        font-weight: 700;
        margin: 0 0 6px;
    }

    .banner-content p {
        font-size: 13px;
        opacity: 0.85;
        margin: 0 0 12px;
    }

    .banner-content .btn-sm {
        background: #fff;
        color: var(--dark);
        border: none;
        padding: 6px 18px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }

/* ===== BRANDS ===== */
.brands-section {
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    border: 1px solid var(--border);
    border-radius: 12px;
    opacity: 0.6;
    transition: all 0.3s;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray);
}

    .brand-item:hover {
        opacity: 1;
        border-color: var(--primary);
        box-shadow: 0 4px 15px rgba(26,86,219,0.1);
    }

/* ===== NEWSLETTER ===== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

    .newsletter-section h2 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .newsletter-section p {
        font-size: 15px;
        opacity: 0.8;
        margin-bottom: 25px;
    }

.newsletter-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

    .newsletter-form input {
        flex: 1;
        height: 50px;
        border: none;
        border-radius: 8px;
        padding: 0 20px;
        font-size: 14px;
    }

    .newsletter-form button {
        height: 50px;
        padding: 0 28px;
        background: var(--dark);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
    }

        .newsletter-form button:hover {
            background: #0f172a;
        }

/* ===== FOOTER ===== */
.main-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.6);
    padding: 60px 0 0;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-col ul li {
        margin-bottom: 10px;
    }

        .footer-col ul li a {
            color: rgba(255,255,255,0.6);
            text-decoration: none;
            font-size: 13px;
            transition: color 0.2s;
        }

            .footer-col ul li a:hover {
                color: #fff;
            }

.footer-contact p {
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
    width: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

    .footer-social a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 14px;
        transition: all 0.2s;
    }

        .footer-social a:hover {
            background: var(--primary);
            transform: translateY(-2px);
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* Toast */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .toast i {
        color: var(--success);
    }


/* ===== SIDEBAR ===== */
.sidebar-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

    .sidebar-panel .panel-header {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
        font-size: 15px;
        font-weight: 700;
        color: var(--dark);
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .sidebar-panel .panel-header i {
            color: var(--primary);
            font-size: 16px;
        }

    .sidebar-panel .panel-body {
        padding: 10px 0;
    }

/* Category Tree */
.cat-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .cat-tree li {
        border-bottom: 1px solid var(--light-gray);
    }

        .cat-tree li:last-child {
            border-bottom: none;
        }

    .cat-tree > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        color: var(--dark);
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.2s;
    }

        .cat-tree > li > a:hover,
        .cat-tree > li.active > a {
            background: var(--primary-light);
            color: var(--primary);
        }

        .cat-tree > li > a i:first-child {
            width: 22px;
            color: var(--primary);
            margin-right: 6px;
        }

        .cat-tree > li > a .toggle-icon {
            color: var(--gray);
            font-size: 12px;
            transition: transform 0.2s;
        }

    .cat-tree > li.open > a .toggle-icon {
        transform: rotate(90deg);
    }

    .cat-tree .sub-cat {
        list-style: none;
        padding: 0;
        margin: 0;
        background: #fafbfc;
        display: none;
    }

        .cat-tree .sub-cat li a {
            display: block;
            padding: 10px 20px 10px 48px;
            color: var(--gray);
            text-decoration: none;
            font-size: 12px;
            transition: all 0.2s;
        }

            .cat-tree .sub-cat li a:hover,
            .cat-tree .sub-cat li.active a {
                color: var(--primary);
                background: rgba(26,86,219,0.04);
            }

            .cat-tree .sub-cat li a .count {
                float: right;
                font-size: 11px;
                color: var(--gray);
                background: var(--light-gray);
                padding: 1px 6px;
                border-radius: 10px;
            }

    /* 默认隐藏 */
    .cat-tree .sub-cat {
        display: none;
    }
    /* 通过父级 li 的 open 类来控制显示，不要加 !important */
    .cat-tree li.open > .sub-cat {
        display: block;
    }


/* Sidebar Ads */
.sidebar-ad {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    text-decoration: none;
}

    .sidebar-ad img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s;
    }

    .sidebar-ad:hover img {
        transform: scale(1.05);
    }

    .sidebar-ad .ad-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px;
        background: linear-gradient(transparent, rgba(0,0,0,0.7));
        color: #fff;
    }

        .sidebar-ad .ad-content h4 {
            margin: 0 0 4px;
            font-size: 16px;
            font-weight: 700;
        }

        .sidebar-ad .ad-content p {
            margin: 0;
            font-size: 12px;
            opacity: 0.85;
        }

/* Hot Ranking Sidebar */
.hot-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .hot-rank-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        border-bottom: 1px solid var(--light-gray);
        transition: background 0.2s;
    }

        .hot-rank-list li:last-child {
            border-bottom: none;
        }

        .hot-rank-list li:hover {
            background: var(--light-gray);
        }

    .hot-rank-list .rank-num {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        flex-shrink: 0;
    }

        .hot-rank-list .rank-num.top3 {
            background: var(--danger);
        }

        .hot-rank-list .rank-num.normal {
            background: var(--gray);
        }

    .hot-rank-list .rank-img {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
        background: var(--light-gray);
    }

    .hot-rank-list .rank-info {
        flex: 1;
        min-width: 0;
    }

.rank-info h5 {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info .rank-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* ===== MAIN CONTENT ===== */
.page-breadcrumb {
    background: #fff;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--gray);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

    .page-breadcrumb a {
        color: var(--gray);
        text-decoration: none;
    }

        .page-breadcrumb a:hover {
            color: var(--primary);
        }

    .page-breadcrumb .active {
        color: var(--dark);
        font-weight: 500;
    }

    .page-breadcrumb .sep {
        margin: 0 8px;
        color: var(--border);
    }

.toolbar {
    background: #fff;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

    .toolbar .result-count {
        font-size: 13px;
        color: var(--gray);
    }

        .toolbar .result-count strong {
            color: var(--primary);
        }

    .toolbar .sort-group {
        display: flex;
        gap: 4px;
    }

        .toolbar .sort-group a {
            display: inline-block;
            padding: 6px 14px;
            border-radius: 6px;
            font-size: 12px;
            color: var(--gray);
            text-decoration: none;
            transition: all 0.2s;
        }

            .toolbar .sort-group a:hover {
                color: var(--primary);
                background: var(--primary-light);
            }

            .toolbar .sort-group a.active {
                background: var(--primary);
                color: #fff;
            }

            .toolbar .sort-group a i {
                margin-left: 2px;
                font-size: 10px;
            }

/* ===== PRODUCT CARD (from homepage) ===== */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    margin-bottom: 20px;
    position: relative;
}

    .product-card:hover {
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
        transform: translateY(-4px);
    }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

    .product-badge span {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        color: #fff;
    }

.badge-new {
    background: var(--success);
}

.badge-hot {
    background: var(--danger);
}

.badge-sale {
    background: var(--warning);
}

.product-img {
    position: relative;
    padding-top: 100%;
    background: #f8fafc;
    overflow: hidden;
}

    .product-img img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    transition: bottom 0.3s;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--dark);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-actions button:hover {
        background: var(--primary);
        color: #fff;
    }

.product-info {
    padding: 16px;
}

    .product-info .cat-tag {
        font-size: 11px;
        color: var(--primary);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .product-info h3 {
        font-size: 14px;
        font-weight: 600;
        color: var(--dark);
        margin: 6px 0 10px;
        line-height: 1.4;
        height: 40px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

        .product-info h3 a {
            color: var(--dark);
            text-decoration: none;
        }

            .product-info h3 a:hover {
                color: var(--primary);
            }

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

    .product-price .current {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary);
    }

    .product-price .original {
        font-size: 13px;
        color: var(--gray);
        text-decoration: line-through;
    }

    .product-price .discount {
        font-size: 11px;
        color: var(--danger);
        font-weight: 600;
    }

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
}

    .product-meta .rating {
        color: var(--warning);
    }

    .product-meta .sold {
        color: var(--gray);
    }

/* ===== PAGINATION ===== */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin: 30px 0 10px;
}

.pagination {
    display: flex;
    gap: 6px;
}

    .pagination > li > a,
    .pagination > li > span {
        border: 1px solid var(--border);
        color: var(--gray);
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        margin: 0;
    }

        .pagination > li > a:hover,
        .pagination > li > span:hover {
            background: var(--primary-light);
            color: var(--primary);
            border-color: var(--primary-light);
        }

    .pagination > .active > a,
    .pagination > .active > span,
    .pagination > .active > a:hover,
    .pagination > .active > span:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

    .pagination > .disabled > span,
    .pagination > .disabled > span:hover {
        background: var(--light-gray);
        color: var(--gray);
        border-color: var(--border);
    }


/* 2. 文章容器核心布局 */
.article-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; /* 系统字体栈 */
    color: var(--dark);
    font-size: 16px; /* 基础字号 */
    line-height: 1.8; /* 舒适的行高 */
    word-wrap: break-word; /* 强制长单词换行 */
    overflow-wrap: break-word;
    background-color: #fff; /* 文章背景通常为白色 */
    padding: 20px;
}

/* 针对内容区域的容器，限制最大宽度以提升阅读体验 */
.article-content-container {
    max-width: 800px; /* 最佳阅读宽度 */
    margin: 0 auto;
}

/* ========================================
   3. 标题排版 (层级分明)
   ======================================== */

/* 文章大标题 H1 */
.article-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark); /* 使用深蓝色 */
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    line-height: 1.3;
}

/* 章节标题 H2 (重点强调) */
.article-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-dark); /* 使用深蓝色 */
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 5px solid var(--primary); /* 左侧装饰条 */
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 8px;
}

/* 小标题 H3 */
.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark); /* 使用深灰色，不再是蓝色 */
    margin-top: 30px;
    margin-bottom: 15px;
}

/* 更小层级的标题 H4-H6 */
.article-content h4,
.article-content h5,
.article-content h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark); /* 黑色系 */
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ========================================
   4. 正文与基础元素
   ======================================== */

/* 段落 */
.article-content p {
    margin-bottom: 16px;
    text-align: justify; /* 两端对齐，更整洁 */
}

/* 链接 */
.article-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

    .article-content a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* 强调 */
.article-content strong {
    color: var(--dark); /* 加粗部分颜色稍重 */
    font-weight: 600;
}

/* 引用块 */
.article-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary);
    color: var(--gray);
    font-style: italic;
}

    .article-content blockquote p {
        margin-bottom: 0;
    }

/* 列表 */
.article-content ul,
.article-content ol {
    padding-left: 25px;
    margin-bottom: 16px;
}

.article-content li {
    margin-bottom: 8px;
}

/* 分割线 */
.article-content hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--border), rgba(0, 0, 0, 0));
    margin: 30px 0;
}

/* ========================================
   5. 媒体与代码 (图片自适应、代码块)
   ======================================== */

/* 图片自适应核心代码 */
.article-content img {
    max-width: 100%; /* 图片最大宽度不超过容器 */
    height: auto; /* 高度随宽度自动调整 */
    display: block;
    margin: 20px auto; /* 图片居中，上下间距 */
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 轻微阴影增加质感 */
}

/* 代码块 */
.article-content pre {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto; /* 代码过长时横向滚动 */
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid var(--border);
}

/* 行内代码 */
.article-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 90%;
}

/* 表格 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    overflow-x: auto;
    display: block; /* 移动端表格处理 */
}

.article-content th,
.article-content td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
}

.article-content th {
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--dark);
}

/* ----- Cookie 弹出层 (欧美风格) ----- */
.cookie-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 1.5rem 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.45s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 9999;
    pointer-events: none; /* 默认不拦截点击，但内部卡片可点击 */
    opacity: 0;
    transform: translateY(20px);
    width:100%;
}

    /* 当弹出层可见时 */
    .cookie-overlay.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

/* 卡片主体 — 欧美清爽/卡片风格 */
.cookie-card {    
    width: 100%;
    background: #ffffff;
    border-radius: 0px;
    padding: 1.8rem 2rem 1.8rem 2.2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 1rem;
    transition: box-shadow 0.2s;
    backdrop-filter: blur(0);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 左侧文字区域 */
.cookie-message {
    flex: 2 1 260px;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.cookie-icon {
    font-size: 2rem;
    line-height: 1.2;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.cookie-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .cookie-text strong {
        font-size: 1.5rem;
        font-weight: 600;
        color: #0b1a33;
        letter-spacing: -0.01em;
    }

    .cookie-text p {
        font-size: 1rem;
        color: #2f405e;
        line-height: 1.5;
        margin: 0;
    }

    .cookie-text a {
        color: #1f6bc0;
        font-weight: 500;
        text-decoration: none;
        border-bottom: 1px dotted #b6cce6;
    }

        .cookie-text a:hover {
            color: #0f4a8a;
            border-bottom: 1px solid #1f6bc0;
        }

/* 右侧按钮组 */
.cookie-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

/* 按钮通用 */
.cookie-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 60px;
    font-weight: 550;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #1d2b44;
    white-space: nowrap;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* 主要按钮 (接受) */
.cookie-btn-primary {
    background: #0b1a33;
    color: white;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
    box-shadow: 0 4px 8px -4px rgba(11, 26, 51, 0.25);
}

    .cookie-btn-primary:hover {
        background: #1f3457;
        transform: scale(1.02);
        box-shadow: 0 8px 16px -6px rgba(11, 26, 51, 0.35);
    }

    .cookie-btn-primary:active {
        transform: scale(0.96);
    }

/* 次要按钮 (自定义/设置) */
.cookie-btn-secondary {
    background: transparent;
    color: #1f3a5f;
    border: 1px solid #d2ddee;
    padding: 0.6rem 1.4rem;
}

    .cookie-btn-secondary:hover {
        background: #eef4fc;
        border-color: #b0c6e0;
    }

/* 拒绝链接 (简约) */
.cookie-btn-link {
    background: transparent;
    color: #596f8f;
    padding: 0.4rem 0.8rem;
    font-weight: 450;
}

    .cookie-btn-link:hover {
        color: #0b1a33;
        background: rgba(0,0,0,0.02);
        text-decoration: underline;
    }

/* 移动端适配 */
@media (max-width: 540px) {
    .cookie-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.6rem 1.2rem;
        border-radius: 24px;
    }

    .cookie-message {
        flex-wrap: nowrap;
        gap: 0.7rem;
    }

    .cookie-actions {
        margin-left: 0;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.3rem;
    }

    .cookie-btn {
        padding: 0.55rem 1.2rem;
        font-size: 0.9rem;
        flex: 1 0 auto;
    }

    .cookie-btn-primary {
        flex: 1 1 100%;
    }

    .cookie-btn-link {
        padding: 0.4rem 0.6rem;
        flex: 0 1 auto;
    }

    .page-content h1 {
        font-size: 1.7rem;
    }
}

@media (max-width: 380px) {
    .cookie-icon {
        font-size: 1.7rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-actions {
        gap: 0.4rem;
    }
}

/* 当弹出层隐藏时，页面内容不会被遮盖 */
.cookie-overlay:not(.active) {
    pointer-events: none;
}

/* ========================================
   6. 响应式适配
   ======================================== */

/* 移动端适配 (屏幕宽度小于 768px) */
@media screen and (max-width: 768px) {
    .article-content {
        padding: 15px;
        font-size: 15px;
    }

        .article-content h1 {
            font-size: 24px;
            margin-bottom: 20px;
        }

        .article-content h2 {
            font-size: 20px;
            margin-top: 30px;
        }

        .article-content h3 {
            font-size: 17px;
        }

        /* 移动端表格优化 */
        .article-content table {
            font-size: 13px;
        }

        /* 移动端段落间距微调 */
        .article-content p {
            margin-bottom: 12px;
        }
}


/* ===== MOBILE FIXES ===== */
@media (max-width: 767px) {
    .top-bar {
        text-align: center;
    }

        .top-bar .pull-right {
            float: none !important;
            display: block;
            margin-top: 4px;
        }

    .logo {
        text-align: center;
        margin-bottom: 10px;
    }

    .search-box {
        margin: 10px 0;
    }

    .header-actions {
        text-align: center;
        margin-top: 10px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-image {
        margin-top: 30px;
    }

        .hero-image img {
            max-height: 200px;
        }

    .feature-item {
        margin-bottom: 15px;
    }

    .countdown-item {
        padding: 4px 8px;
        font-size: 14px;
        min-width: 36px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-col {
        margin-bottom: 30px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .product-card {
        margin-bottom: 15px;
    }
}
