/* ============================================
   BuyAnyLike SPA Theme - Core Stylesheet
   复刻线上 React SPA 精细设计系统 v2.0
   深蓝主色 + 白色背景 + 卡片式布局 + DM Sans
   更细腻的阴影 / 排版 / 间距 / 动效
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    /* 主色调 */
    --primary: hsl(224 76% 33%);           /* #1e40af 深蓝 */
    --primary-hover: hsl(224 76% 28%);     /* 悬停更深 */
    --primary-light: hsl(224 76% 33% / 0.08);
    --primary-lighter: hsl(224 76% 33% / 0.04);
    --primary-foreground: hsl(210 40% 98%); /* 白色文字 */

    /* 背景与前景 */
    --background: hsl(0 0% 100%);          /* 白色背景 */
    --foreground: hsl(217 19% 15%);       /* #1e293b 深灰蓝 */
    --card: hsl(0 0% 100%);               /* 卡片白 */
    --card-foreground: hsl(217 19% 15%);

    /* 辅助色 */
    --muted: hsl(210 40% 96.1%);          /* #f1f5f9 浅灰 */
    --muted-foreground: hsl(215.4 16.3% 46.9%); /* #64748b 中灰 */
    --accent: hsl(210 40% 96.1%);
    --accent-foreground: hsl(224 76% 33%);

    /* 边框与阴影 — 精确匹配线上 Tailwind 阴影值 */
    --border: hsl(214.3 31.8% 91.4%);     /* #e2e8f0 */
    --border-light: hsl(214.3 31.8% 94%);
    --ring: hsl(224 76% 33%);
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-primary: 0 10px 15px -3px hsl(224 76% 33% / 0.2), 0 4px 6px -4px hsl(224 76% 33% / 0.1);
    --shadow-black-5: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-card: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-card-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* 功能色 */
    --destructive: hsl(0 84.2% 60.2%);    /* #ef4444 红色 */
    --destructive-foreground: hsl(210 40% 98%);
    --success: hsl(142 71% 45%);          /* 绿色 */
    --warning: hsl(38 92% 50%);           /* 橙色 */

    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;       /* 2xl */
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;

    /* 字体 */
    --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* 布局 */
    --container-max: 1280px;
    --header-height: 64px;

    /* 过渡 */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition: 0.25s var(--ease-out);
    --transition-slow: 0.4s var(--ease-out);
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--primary-hover); }

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

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
    letter-spacing: -0.025em;
}

h1 { letter-spacing: -0.04em; }
h2 { letter-spacing: -0.035em; }

::selection {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* ============================================
   3. LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-lg { padding: 7rem 0; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 3.5rem 0; }
    .section-lg { padding: 5rem 0; }
}
@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   4. BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all 0.2s var(--ease-out);
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background-color: hsl(224 76% 30%);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-primary);
}
.btn-primary:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
    border-color: var(--border);
}
.btn-outline:active {
    transform: scale(0.95);
}

.btn-secondary {
    background-color: var(--muted);
    color: var(--foreground);
}
.btn-secondary:hover {
    background-color: var(--border);
}
.btn-secondary:active {
    transform: scale(0.95);
}

.btn-lg { height: 3.5rem; padding: 0 2rem; font-size: 1.125rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-primary); }
.btn-lg:hover { box-shadow: 0 10px 15px -3px hsl(224 76% 33% / 0.25), 0 4px 6px -4px hsl(224 76% 33% / 0.15); }
.btn-sm { height: 2.5rem; padding: 0 1rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* ============================================
   5. CARDS
   ============================================ */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color var(--transition);
}

.card-hover {
    cursor: pointer;
}
.card-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
    border-color: var(--border);
}

.card-p-6 { padding: 1.5rem; }
.card-p-8 { padding: 2rem; }
.card-p-10 { padding: 2.5rem; }

.card-rounded-3xl { border-radius: var(--radius-3xl); }

/* ============================================
   6. HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: hsl(0 0% 100% / 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
    background-color: hsl(0 0% 100% / 0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-xs);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1.5rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
    letter-spacing: -0.03em;
    transition: opacity var(--transition-fast);
}
.header-logo:hover { opacity: 0.85; }
.header-logo i { color: var(--primary); font-size: 1.5rem; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
}
.header-nav a:hover {
    color: var(--primary);
    background-color: var(--primary-lighter);
}
.header-nav a.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Hide floating language switcher — using header inline switcher instead */
.trp-floating-switcher { display: none !important; }

/* Language Switcher (Header Inline — Custom) */
.header-language-switcher {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.bal-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bal-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
    transition: all 0.15s ease;
    line-height: 1;
}

.bal-lang-current:hover {
    background: var(--primary-lighter);
    border-color: var(--primary);
    color: var(--primary);
}

.bal-lang-current:hover .bal-lang-arrow {
    transform: rotate(180deg);
}

.bal-lang-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.bal-lang-flag {
    border-radius: 2px;
    flex-shrink: 0;
    display: block;
}

.bal-lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    overflow: hidden;
}

.bal-lang-switcher:hover .bal-lang-dropdown,
.bal-lang-switcher.bal-lang-open .bal-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bal-lang-switcher:hover .bal-lang-arrow,
.bal-lang-switcher.bal-lang-open .bal-lang-arrow {
    transform: rotate(180deg);
}

.bal-lang-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s ease;
}

.bal-lang-item:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.bal-lang-item__current {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    pointer-events: none;
}

.header-search {
    position: relative;
}
.header-search input {
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    width: 200px;
    background-color: var(--muted);
    transition: all var(--transition);
    color: var(--foreground);
}
.header-search input::placeholder { color: var(--muted-foreground); }
.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--background);
    box-shadow: 0 0 0 3px var(--primary-light);
    width: 260px;
}
.header-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    pointer-events: none;
}

.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    color: var(--foreground);
    transition: all var(--transition-fast);
}
.header-cart:hover {
    background-color: var(--primary-lighter);
    color: var(--primary);
}
.header-cart i { font-size: 1.125rem; }

.cart-count-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--background);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--foreground);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    transition: background-color var(--transition-fast);
}
.mobile-menu-btn:hover { background-color: var(--muted); }

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .header-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.125rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        box-shadow: var(--shadow-lg);
    }
    .header-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .header-nav a { width: 100%; padding: 0.75rem 1rem; }
    .header-search input { width: 140px; }
    .header-search input:focus { width: 160px; }
    .bal-lang-current {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
    .bal-lang-item {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   7. HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(224 76% 33% / 0.05), var(--background));
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(224 76% 33% / 0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(224 76% 33% / 0.02), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    text-wrap: balance;
    letter-spacing: -0.05em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 520px;
    line-height: 1.625;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-image {
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 10px 15px -3px rgb(0 0 0 / 0.05);
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    position: relative;
}
.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-3xl);
    box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.1);
    pointer-events: none;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
    .hero { padding: 3rem 0 2.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-image { aspect-ratio: 16 / 10; }
}

/* ============================================
   8. SECTION TITLE
   ============================================ */
.section-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    text-wrap: balance;
}
.section-subtitle {
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    margin-bottom: 0;
    line-height: 1.6;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-title { display: inline-block; }
.section-header .section-subtitle { margin-top: 0.5rem; }

/* ============================================
   9. FEATURES BAR (线上特色条)
   ============================================ */
.features-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    background: var(--background);
}
.features-bar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.feature-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.feature-item-text h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    letter-spacing: -0.01em;
}
.feature-item-text p {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}
@media (max-width: 768px) {
    .features-bar-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ============================================
   10. STATS SECTION (线上数据展示)
   ============================================ */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, hsl(224 76% 28% / 0.97), hsl(224 76% 20% / 0.99)),
                url('../images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: hsl(0 0% 100% / 0.04);
    filter: blur(60px);
    pointer-events: none;
}
.stats-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -50px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: hsl(224 76% 60% / 0.08);
    filter: blur(80px);
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: clamp(2rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 0.9375rem;
    color: hsl(210 40% 88%);
    font-weight: 500;
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
}

/* ============================================
   11. CATEGORY CARDS
   ============================================ */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
    background-color: var(--card);
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    height: 100%;
    text-decoration: none;
}
.category-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-0.25rem);
    border-color: var(--border);
}
.category-card:hover .category-icon {
    background-color: hsl(224 76% 33% / 0.15);
    color: var(--primary);
    transform: scale(1.1);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-2xl);
    background-color: hsl(224 76% 33% / 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s var(--ease-out);
}

.category-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--foreground);
    letter-spacing: -0.01em;
}
.category-card p {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

/* ============================================
   12. PRODUCT CARDS
   ============================================ */
.product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
    height: 100%;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
    border-color: var(--border);
}

.product-card-image {
    aspect-ratio: 1;
    background-color: var(--muted);
    overflow: hidden;
    position: relative;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: hsl(0 0% 100% / 0.9);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}
.product-card-badge.sale {
    background-color: hsl(0 84% 60% / 0.95);
    color: #fff;
}

/* Hover-reveal quick actions (top-right of image, matching online) */
.product-card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.375rem;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    z-index: 2;
}
.product-card:hover .product-card-actions {
    opacity: 1;
}
.product-card-actions .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-lg);
    background-color: hsl(0 0% 100% / 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--foreground);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 0.8125rem;
}
.product-card-actions .btn:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}
.product-card-actions .btn span,
.product-card-actions .btn .cart-text {
    display: none;
}

.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.product-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--card-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}
.product-card-title a { color: inherit; }
.product-card-title a:hover { color: var(--primary); }

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}
.product-card-rating .stars { color: #f59e0b; }

.product-card-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 0.75rem;
}
.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.price-original {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    text-decoration: line-through;
}

/* Full-width add to cart button at card bottom */
.product-card-add {
    width: 100%;
    height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    background-color: var(--primary);
    color: var(--primary-foreground);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: all 0.2s var(--ease-out);
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.product-card-add:hover {
    background-color: hsl(224 76% 30%);
    box-shadow: var(--shadow-primary);
}
.product-card-add:active {
    transform: scale(0.98);
}
.product-card-add.out-of-stock {
    background-color: var(--muted);
    color: var(--muted-foreground);
    cursor: not-allowed;
}

/* ============================================
   13. BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 1.25rem 0;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}
.breadcrumb-list a { color: var(--muted-foreground); }
.breadcrumb-list a:hover { color: var(--primary); }
.breadcrumb-list i { font-size: 0.6875rem; }

/* ============================================
   14. PAGE BANNER
   ============================================ */
.page-banner {
    padding: 4.5rem 0;
    text-align: center;
    background: linear-gradient(135deg, hsl(224 76% 28% / 0.96), hsl(224 76% 20% / 0.99)),
                url('../images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--primary-foreground);
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: hsl(0 0% 100% / 0.05);
    filter: blur(60px);
    pointer-events: none;
}
.page-banner::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -50px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: hsl(224 76% 60% / 0.08);
    filter: blur(80px);
    pointer-events: none;
}
.page-banner > .container { position: relative; z-index: 1; }
.page-banner h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    margin-bottom: 0.75rem;
    color: #fff;
    letter-spacing: -0.04em;
    font-weight: 700;
    text-wrap: balance;
}
.page-banner p {
    color: hsl(210 40% 90%);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
/* Compact banner for shop/category pages */
.page-banner:not(:first-child) {
    margin-top: 0;
    border-radius: 0;
}

/* ============================================
   15. NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    padding: 3.5rem 0;
    background: var(--muted);
    border-top: 1px solid var(--border);
}
.newsletter-content {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.newsletter-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}
.newsletter-content p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 440px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    background-color: var(--card);
    transition: all var(--transition);
}
.newsletter-form input::placeholder { color: var(--muted-foreground); }
.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
}

/* ============================================
   16. CART PAGE (保持不变)
   ============================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    padding: 2rem 0 4rem;
}

.cart-items-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-3xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.cart-items-header h2 { font-size: 1.25rem; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
}
.cart-table th:last-child { text-align: right; }
.cart-table td {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.cart-table td:last-child { text-align: right; }

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background-color: var(--muted);
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.25rem; }
.cart-item-info p { font-size: 0.8125rem; color: var(--muted-foreground); }

.cart-item-price { font-weight: 600; color: var(--primary); }

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--muted);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: background-color var(--transition-fast);
}
.quantity-btn:hover { background-color: var(--border); }
.quantity-input {
    width: 44px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 0.875rem;
    background-color: var(--card);
}
.quantity-input:focus { outline: none; }

.cart-item-remove {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    transition: color var(--transition-fast);
}
.cart-item-remove:hover { color: var(--destructive); }

.cart-summary {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-3xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}
.cart-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}
.summary-row .label { color: var(--muted-foreground); }
.summary-row .value { font-weight: 500; }
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-coupon {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.cart-coupon input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 0;
}
.empty-state-icon {
    font-size: 4rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    opacity: 0.4;
}
.empty-state h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.empty-state p { color: var(--muted-foreground); margin-bottom: 1.5rem; max-width: 400px; margin-left: auto; margin-right: auto; }

@media (max-width: 1024px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

/* ============================================
   17. FOOTER
   ============================================ */
.site-footer {
    background-color: var(--muted);
    color: var(--muted-foreground);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--foreground);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.footer-brand p {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 320px;
}
.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.footer-brand .logo i { color: var(--primary); font-size: 1.5rem; }
.footer-brand .logo span { color: var(--primary); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }

.footer-col h4 {
    color: var(--foreground);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col a {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--primary); }

.footer-social {
    display: flex;
    gap: 0.625rem;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background-color: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all var(--transition);
}
.footer-social a:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.footer-newsletter p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.footer-newsletter input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--card);
    color: var(--foreground);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition);
}
.footer-newsletter input::placeholder { color: var(--muted-foreground); }
.footer-newsletter input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   18. UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-balance { text-wrap: balance; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.mix-blend-multiply { mix-blend-mode: multiply; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* ============================================
   19. NOTIFICATIONS
   ============================================ */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s var(--ease-out);
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   20. WOOCOMMERCE NOTICES
   ============================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1rem !important;
    border: 1px solid var(--border) !important;
    background: var(--muted) !important;
    color: var(--foreground) !important;
}
.woocommerce-message { border-color: var(--success) !important; }
.woocommerce-error { border-color: var(--destructive) !important; }

/* ============================================
   21. PRODUCT GALLERY (SINGLE PRODUCT)
   ============================================ */
.product-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}
.product-gallery-main {
    border-radius: var(--radius-3xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), 0 10px 15px -3px rgb(0 0 0 / 0.05);
    aspect-ratio: 1;
    position: relative;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: 1.875rem; margin-bottom: 0.75rem; letter-spacing: -0.03em; }
.product-info .price { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; letter-spacing: -0.02em; }
.product-info .short-desc { color: var(--muted-foreground); margin-bottom: 1.5rem; line-height: 1.7; }

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.product-meta .label { color: var(--muted-foreground); min-width: 100px; }

@media (max-width: 768px) {
    .product-gallery { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================
   22. FORM ELEMENTS
   ============================================ */
.form-group { margin-bottom: 1.125rem; }
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--foreground);
}
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.6875rem 0.9375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background-color: var(--card);
    transition: all var(--transition);
    color: var(--foreground);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted-foreground); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* ============================================
   23. PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 3rem;
}
.pagination a,
.pagination span {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--foreground);
    transition: all var(--transition-fast);
}
.pagination a:hover,
.pagination .current {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* ============================================
   24. CART DRAWER (保持不变)
   ============================================ */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}
.cart-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--card);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-drawer-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cart-drawer-header h2 i {
    color: var(--primary);
    font-size: 1.125rem;
}
.cart-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    transition: all var(--transition-fast);
}
.cart-drawer-close:hover {
    background-color: var(--muted);
    color: var(--foreground);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.cart-drawer-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    padding: 3rem 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}
.cart-drawer-loading i {
    font-size: 1.5rem;
    color: var(--primary);
}

.cart-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    gap: 1rem;
}
.cart-drawer-empty-icon {
    font-size: 3.5rem;
    color: var(--muted-foreground);
    opacity: 0.5;
}
.cart-drawer-empty p {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.cart-drawer-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.3s, transform 0.3s;
}

.cart-drawer-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background-color: var(--muted);
    overflow: hidden;
    flex-shrink: 0;
}
.cart-drawer-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-drawer-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.cart-drawer-item-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cart-drawer-item-info h4 a {
    color: var(--foreground);
    text-decoration: none;
}
.cart-drawer-item-info h4 a:hover {
    color: var(--primary);
}
.cart-drawer-item-cat {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.375rem;
}
.cart-drawer-item-price {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.cart-drawer-item-price del {
    color: var(--muted-foreground);
    font-weight: 400;
    margin-right: 0.25rem;
}
.cart-drawer-item-price ins {
    text-decoration: none;
}

.cart-drawer-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.cart-drawer-qty {
    transform: scale(0.85);
    transform-origin: left center;
}

.cart-drawer-item-remove {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.cart-drawer-item-remove:hover {
    background-color: hsl(0 84% 60% / 0.1);
    color: var(--destructive);
}

.cart-drawer-footer {
    flex-shrink: 0;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    background-color: var(--card);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.cart-drawer-summary {
    margin-bottom: 1rem;
}
.cart-drawer-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.cart-drawer-summary-row span:first-child {
    color: var(--muted-foreground);
}
.cart-drawer-summary-row span:last-child {
    font-weight: 500;
}
.cart-drawer-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    font-size: 1.125rem;
    font-weight: 700;
}
.cart-drawer-summary-total span:last-child {
    color: var(--primary);
}

.cart-drawer-view-cart {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.cart-drawer-view-cart:hover {
    color: var(--primary);
}

.cart-drawer-trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.cart-drawer-trust span {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 480px) {
    .cart-drawer { width: 100vw; }
    .cart-drawer-item { padding: 0.875rem 1rem; }
    .cart-drawer-header,
    .cart-drawer-footer { padding: 1rem 1rem; }
}

/* ============================================
   25. LEGAL / HELP PAGES
   ============================================ */
.legal-hero,
.faq-hero,
.sitemap-banner {
    aspect-ratio: 1855 / 328;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(224 76% 28% / 0.92), hsl(224 76% 20% / 0.96)),
                url('../images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--primary-foreground);
    margin-bottom: 0;
}
.legal-hero-content,
.faq-hero-content,
.sitemap-banner .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.legal-hero h1,
.faq-hero h1,
.sitemap-banner h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.035em;
}
.legal-hero p,
.faq-hero p,
.sitemap-banner p {
    font-size: 1.125rem;
    color: hsl(210 40% 90%);
    margin-bottom: 1.5rem;
}
.legal-hero .btn,
.faq-hero .btn,
.sitemap-banner .btn {
    background: #fff;
    color: var(--primary);
}
.legal-hero .btn:hover,
.faq-hero .btn:hover,
.sitemap-banner .btn:hover {
    background: hsl(210 40% 96%);
}

.legal-content,
.faq-section,
.sitemap-content,
.faq-contact {
    padding: 3.5rem 0;
}
.last-updated {
    display: inline-block;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
    padding: 0.5rem 1rem;
    background: var(--muted);
    border-radius: var(--radius-md);
}

.legal-section {
    margin-bottom: 2.75rem;
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
}
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--primary-light);
    letter-spacing: -0.02em;
}
.legal-section h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 1.25rem 0 0.75rem;
}
.legal-section p {
    color: var(--muted-foreground);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.legal-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}
.legal-section ul li {
    color: var(--muted-foreground);
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    line-height: 1.7;
}
.legal-section ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}
.legal-section strong {
    color: var(--foreground);
    font-weight: 600;
}
.legal-section a {
    color: var(--primary);
    text-decoration: underline;
}
.legal-section .info-box {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.25rem 0;
    color: var(--foreground);
}

/* FAQ */
.faq-category { margin-bottom: 2.5rem; }
.faq-category h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.faq-item {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover { border-color: var(--border); }
.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    letter-spacing: -0.01em;
}
.faq-question:hover { background: var(--muted); }
.faq-question i {
    transition: transform 0.3s var(--ease-out);
    color: var(--primary);
}
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}
.faq-answer.open {
    padding: 0 1.25rem 1rem;
    max-height: 500px;
}
.faq-answer p {
    color: var(--muted-foreground);
    line-height: 1.8;
}
.faq-contact {
    background: var(--muted);
    text-align: center;
    border-radius: var(--radius-2xl);
    margin: 2rem 0;
}
.faq-contact h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}
.faq-contact p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}
.faq-contact .btn { margin: 0.25rem; }

/* Sitemap */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.sitemap-section {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.sitemap-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
    letter-spacing: -0.02em;
}
.sitemap-section h2 i { margin-right: 0.5rem; }
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sitemap-list li {
    margin-bottom: 0.625rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border-light);
}
.sitemap-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.sitemap-list a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--muted-foreground);
    transition: color var(--transition-fast);
}
.sitemap-list a:hover { color: var(--primary); }
.sitemap-list a i {
    width: 1.25rem;
    color: var(--primary);
    font-size: 0.875rem;
}
.sitemap-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    background: var(--muted);
    padding: 0.125rem 0.625rem;
    border-radius: var(--radius-sm);
}
.sub-items {
    margin-left: 1.75rem;
    margin-top: 0.5rem;
    list-style: none;
}
.sub-items li {
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
}
.sub-items a { font-size: 0.875rem; }
.xml-sitemap-box {
    margin-top: 2rem;
    text-align: center;
    padding: 2.5rem;
    background: var(--muted);
    border-radius: var(--radius-xl);
}
.xml-sitemap-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.xml-sitemap-box p {
    color: var(--muted-foreground);
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .sitemap-grid { grid-template-columns: 1fr; }
    .legal-section { padding: 1.25rem; }
}

/* ============================================
   26. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes skeletonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s var(--ease-out) both;
}
.animate-fade-in {
    animation: fadeIn 0.4s var(--ease-out) both;
}
.skeleton {
    animation: skeletonPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background-color: var(--muted);
    border-radius: var(--radius-md);
}

/* Stagger delays for grid items — 匹配线上 index * 0.1s */
.animate-fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.animate-fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.animate-fade-in-up:nth-child(6) { animation-delay: 0.6s; }
.animate-fade-in-up:nth-child(7) { animation-delay: 0.7s; }
.animate-fade-in-up:nth-child(8) { animation-delay: 0.8s; }

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   27. SHOP/ARCHIVE TOOLBAR
   ============================================ */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.shop-toolbar-count {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}
.shop-toolbar-sort {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.shop-toolbar-sort label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
.shop-toolbar-sort select {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--card);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--foreground);
}
.shop-toolbar-sort select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Category filter pills */
.cat-filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.cat-filter-pills .btn { transition: all var(--transition-fast); }
.cat-filter-pills .btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* ============================================
   28. PRODUCT TABS
   ============================================ */
.product-tabs {
    margin-top: 3rem;
}
.product-tabs-nav {
    border-bottom: 2px solid var(--border);
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}
.tab-btn {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.tab-btn:hover { color: var(--foreground); }
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}
.tab-content {
    line-height: 1.8;
    color: var(--foreground);
}

/* Review card */
.review-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color var(--transition);
}
.review-card:hover { border-color: var(--border); }
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
