/* ============================================================
   GAMER WORLD — Liquid Glass × Pixel Design System v3
   液态磨砂玻璃 + 像素风格 + 高级动效
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* --- 基础色 --- */
    --ds-bg: #FFFFFF;
    --ds-bg-surface: #F8FAFC;
    --ds-bg-light: #F1F5F9;
    --ds-bg-card: #FFFFFF;
    --ds-bg-dark: #0B1120;
    --ds-bg-dark-2: #131B2E;

    /* --- 主题色（协调均衡） --- */
    --ds-accent: #2563EB;
    --ds-accent-dark: #1D4ED8;
    --ds-accent-light: #3B82F6;
    --ds-accent-2: #F97316;
    --ds-accent-2-dark: #EA580C;
    --ds-accent-3: #8B5CF6;          /* 紫色点缀 */
    --ds-accent-glow: rgba(37,99,235,0.15);

    /* --- 液态玻璃令牌 --- */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-hover: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(15, 23, 42, 0.6);
    --glass-bg-dark-hover: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-border-dark: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --glass-blur-strong: 32px;
    --glass-saturate: 180%;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    --glass-highlight: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);

    /* --- 像素风格令牌 --- */
    --pixel-size: 4px;
    --pixel-border-color: var(--ds-text-dark);
    --pixel-shadow: 4px 4px 0px rgba(0, 0, 0, 0.08);
    --pixel-shadow-hover: 6px 6px 0px rgba(37, 99, 235, 0.15);
    --pixel-shadow-press: 2px 2px 0px rgba(0, 0, 0, 0.12);

    /* --- 文字色 --- */
    --ds-text-dark: #0F172A;
    --ds-text-light: #FFFFFF;
    --ds-text-body: #334155;
    --ds-text-muted: #64748B;

    /* --- 边框 --- */
    --ds-border: #E2E8F0;
    --ds-border-light: #F1F5F9;

    /* --- 圆角 --- */
    --ds-radius: 10px;
    --ds-radius-lg: 16px;
    --ds-radius-xl: 24px;

    /* --- 阴影 --- */
    --ds-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --ds-shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --ds-shadow-card: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    --ds-shadow-hover: 0 12px 36px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);

    /* --- 动效令牌 --- */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --dur-fast: 0.2s;
    --dur-normal: 0.35s;
    --dur-slow: 0.6s;
    --dur-page: 0.45s;

    /* --- 字体 --- */
    --ds-font-display: 'Sora', 'Inter', system-ui, sans-serif;
    --ds-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --ds-font-pixel: 'Press Start 2P', 'Sora', monospace;

    /* --- 布局 --- */
    --ds-container: 1280px;
}

/* ---------- View Transitions API ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: var(--dur-page);
    animation-timing-function: var(--ease-out-expo);
}
::view-transition-old(root) {
    animation-name: vt-fade-out;
}
::view-transition-new(root) {
    animation-name: vt-fade-in;
}
@keyframes vt-fade-out {
    to { opacity: 0; transform: translateY(-8px) scale(0.99); }
}
@keyframes vt-fade-in {
    from { opacity: 0; transform: translateY(12px) scale(1.01); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Liquid Glass Utilities ---------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
}
.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-highlight);
    pointer-events: none;
    opacity: 0.6;
}
.glass-strong {
    background: var(--glass-bg-hover);
    backdrop-filter: blur(var(--glass-blur-strong)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(200%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-hover);
}
.glass-dark {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border-dark);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ---------- Pixel Style Utilities ---------- */
.pixel-border {
    border: var(--pixel-size) solid var(--pixel-border-color);
    box-shadow: var(--pixel-shadow);
    border-radius: 0;
    transition: transform var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth);
}
.pixel-border:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--pixel-shadow-hover);
}
.pixel-border:active {
    transform: translate(2px, 2px);
    box-shadow: var(--pixel-shadow-press);
}
.pixel-corners {
    clip-path: polygon(
        0 var(--pixel-size),
        var(--pixel-size) var(--pixel-size),
        var(--pixel-size) 0,
        calc(100% - var(--pixel-size)) 0,
        calc(100% - var(--pixel-size)) var(--pixel-size),
        100% var(--pixel-size),
        100% calc(100% - var(--pixel-size)),
        calc(100% - var(--pixel-size)) calc(100% - var(--pixel-size)),
        calc(100% - var(--pixel-size)) 100%,
        var(--pixel-size) 100%,
        var(--pixel-size) calc(100% - var(--pixel-size)),
        0 calc(100% - var(--pixel-size))
    );
}
.pixel-text {
    font-family: var(--ds-font-pixel);
    letter-spacing: 0.5px;
}
.pixel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-family: var(--ds-font-pixel);
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--ds-accent);
    color: #fff;
    border-radius: 0;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}

/* ---------- Page Transition Loader ---------- */
.page-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
}
.page-loader::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--ds-accent), var(--ds-accent-2), var(--ds-accent-3));
    box-shadow: 0 0 12px rgba(37,99,235,0.5);
    transition: width 0.3s var(--ease-out-expo);
}
.page-loader.loading::after {
    width: 70%;
    transition: width 0.8s var(--ease-out-expo);
}
.page-loader.complete::after {
    width: 100%;
    transition: width 0.2s var(--ease-fast);
}

/* ---------- 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(--ds-font-body);
    color: var(--ds-text-body);
    background: var(--ds-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--ds-container); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography Helpers ---------- */
.font-display { font-family: var(--ds-font-display); }
.gradient-text {
    background: linear-gradient(120deg, var(--ds-accent) 0%, var(--ds-accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ds-accent);
    margin-bottom: 14px;
}
.section-eyebrow::before {
    content: '';
    width: 28px; height: 2px;
    background: linear-gradient(90deg, var(--ds-accent), transparent);
    border-radius: 2px;
}
.section-title {
    font-family: var(--ds-font-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ds-text-dark);
}
.section-subtitle {
    margin-top: 12px;
    font-size: 1.05rem;
    color: var(--ds-text-muted);
    max-width: 640px;
}

/* ---------- Background Textures ---------- */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}
.grid-pattern--solid {
    -webkit-mask-image: none;
    mask-image: none;
}

/* ---------- Navbar (Liquid Glass) ---------- */
#navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 50;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all var(--dur-normal) var(--ease-smooth);
}
#navbar.scrolled {
    background: var(--glass-bg-hover);
    backdrop-filter: blur(var(--glass-blur-strong)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(200%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.4);
    border-bottom-color: rgba(255,255,255,0.3);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
/* Logo + brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo {
    width: 40px; height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: scale(1.06); }
.brand-name {
    font-family: var(--ds-font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--ds-text-dark);
    letter-spacing: -0.01em;
}
.brand-name span { color: var(--ds-accent); }
/* Desktop nav */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 30px;
}
.nav-link {
    position: relative;
    color: var(--ds-text-body);
    font-weight: 500;
    font-size: 0.93rem;
    padding: 6px 0;
    transition: color 0.25s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    border-radius: 2px;
    background: var(--ds-accent);
    transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ds-accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
/* Right tools */
.nav-tools { display: flex; align-items: center; gap: 14px; }
/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ds-text-body);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: var(--ds-radius);
    border: 1px solid var(--ds-border);
    background: var(--ds-bg-surface);
    transition: all 0.25s ease;
}
.lang-trigger:hover {
    color: var(--ds-accent);
    border-color: var(--ds-accent);
    background: rgba(37,99,235,0.04);
}
.lang-trigger .chevron { font-size: 0.7rem; transition: transform 0.25s ease; }
.lang-dropdown:hover .lang-trigger .chevron { transform: rotate(180deg); }
.lang-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 180px;
    background: var(--glass-bg-hover);
    backdrop-filter: blur(var(--glass-blur-strong)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: var(--ds-radius);
    box-shadow: var(--glass-shadow-hover);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--dur-normal) var(--ease-spring);
    z-index: 60;
    padding: 6px;
}
.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* 桌面端 hover 行为 — 仅在支持真正 hover 的设备上生效，避免移动端触摸后 :hover 持续导致下拉菜单无法关闭 */
@media (hover: hover) {
    .lang-dropdown:hover .lang-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
.lang-dropdown-menu button {
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    font-size: 0.9rem;
    color: var(--ds-text-body);
    background: transparent;
    border: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.lang-dropdown-menu button:hover,
.lang-dropdown-menu button.active {
    background: var(--ds-accent);
    color: #fff;
    padding-left: 18px;
}
/* Mobile lang quick button */
.mobile-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    color: var(--ds-text-body);
    background: var(--ds-bg-surface);
    border: 1px solid var(--ds-border);
    border-radius: 50%;
    transition: all 0.2s ease;
}
.mobile-lang-btn:hover { background: var(--ds-accent); color: #fff; border-color: var(--ds-accent); }
/* Mobile menu */
#menuOverlay {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    background: rgba(15,23,42,0.4);
    backdrop-filter: blur(3px);
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
#menuOverlay.active { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; position: fixed; width: 100%; height: 100%; }
#mobileMenu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 55;
    overflow-y: auto;
}
#mobileMenu.is-open { transform: translateX(0); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; color: var(--ds-text-dark); font-size: 1.5rem; background: none; border: none; }

/* ---------- Buttons ---------- */
.tech-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: var(--ds-accent);
    border: none;
    border-radius: var(--ds-radius);
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}
.tech-btn-primary:hover {
    transform: translateY(-2px);
    background: var(--ds-accent-dark);
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.tech-btn-primary--sm { padding: 10px 22px; font-size: 0.88rem; }
/* Orange variant */
.tech-btn-primary--orange {
    background: var(--ds-accent-2);
    box-shadow: 0 4px 14px rgba(249,115,22,0.25);
}
.tech-btn-primary--orange:hover {
    background: var(--ds-accent-2-dark);
    box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

.tech-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ds-text-dark);
    background: transparent;
    border: 2px solid var(--ds-border);
    border-radius: var(--ds-radius);
    transition: all 0.25s ease;
}
.tech-btn-outline:hover {
    color: var(--ds-accent);
    border-color: var(--ds-accent);
    background: rgba(37,99,235,0.04);
    transform: translateY(-2px);
}
.tech-btn-outline--dark {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.tech-btn-outline--dark:hover {
    color: #fff;
    border-color: var(--ds-accent-2);
    background: rgba(249,115,22,0.15);
}

/* ---------- Sections ---------- */
.tech-section {
    position: relative;
    padding: 90px 0;
    background: var(--ds-bg);
    overflow: hidden;
}
.tech-section--surface { background: var(--ds-bg-surface); }
.tech-section--light { background: var(--ds-bg-surface); color: var(--ds-text-body); }
.tech-section--dark { background: var(--ds-bg-dark); color: rgba(255,255,255,0.8); }
.tech-section--dark .section-title { color: #fff; }
.tech-section--dark .section-subtitle { color: rgba(255,255,255,0.65); }
.tech-section--dark .section-eyebrow { color: var(--ds-accent-2); }
.tech-section--dark .section-eyebrow::before { background: linear-gradient(90deg, var(--ds-accent-2), transparent); }
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
}

/* ---------- Card (Liquid Glass) ---------- */
.tech-card {
    position: relative;
    height: 100%;
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--glass-shadow);
    transition: transform var(--dur-normal) var(--ease-spring), border-color var(--dur-normal) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth);
    overflow: hidden;
}
.tech-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-highlight);
    pointer-events: none;
    opacity: 0.5;
    transition: opacity var(--dur-normal) var(--ease-smooth);
}
.tech-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(37,99,235,0.3);
    box-shadow: var(--glass-shadow-hover);
}
.tech-card:hover::before { opacity: 0.8; }
.card-icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.04));
    color: var(--ds-accent);
    border: 1px solid rgba(37,99,235,0.12);
    transition: transform 0.35s ease;
}
.tech-card:hover .card-icon {
    transform: scale(1.06);
}
.card-icon--orange {
    background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(249,115,22,0.04));
    color: var(--ds-accent-2);
    border-color: rgba(249,115,22,0.12);
}
.card-title {
    font-family: var(--ds-font-display);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--ds-text-dark);
}
.card-text { font-size: 0.93rem; line-height: 1.7; color: var(--ds-text-muted); }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ds-accent);
    transition: gap 0.25s ease;
}
.card-link:hover { gap: 12px; }

/* ---------- Product Card (Liquid Glass) ---------- */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.5s cubic-bezier(0.22,0.61,0.36,1), border-color 0.4s ease;
    will-change: transform;
    height: 100%;
    display: flex;
    flex-direction: column;
}
/* 顶部品牌色光晕 */
.product-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f97316, #2563eb, transparent);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 2;
    pointer-events: none;
}
/* 右上角柔光 */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(480px circle at 88% -10%, rgba(37,99,235,0.10), transparent 45%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.product-card:hover {
    transform: translateY(-7px) scale(1.02);
    border-color: rgba(37,99,235,0.32);
    box-shadow: 0 22px 48px rgba(37,99,235,0.14), 0 10px 22px rgba(15,23,42,0.10);
}
.product-card:hover::before { opacity: 1; transform: scaleX(1); }
.product-card:hover::after { opacity: 1; }
.product-card:hover .product-name { color: var(--ds-accent); }
.product-name { transition: color 0.3s ease; }
.product-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}
.product-card-body {
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ds-accent);
    background: rgba(37,99,235,0.08);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 6px;
}
.product-name {
    font-family: var(--ds-font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ds-text-dark);
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-desc {
    font-size: 0.8rem;
    color: var(--ds-text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.product-card-body .card-link {
    font-size: 0.8rem;
    gap: 4px;
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.product-card-body .card-link:hover { gap: 8px; }

/* Product card actions (View Details + Quote) */
.pc-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}
.pc-actions .view-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ds-accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.25s ease;
}
.pc-actions .view-link:hover { gap: 8px; }
.pc-actions .quote-btn {
    background: #f97316;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 8px;
    transition: background 0.25s ease, transform 0.2s ease;
}
.pc-actions .quote-btn:hover {
    background: #ea580c;
    transform: scale(1.03);
}

/* ---------- Category Card ---------- */
.cat-card {
    position: relative;
    padding: 20px 20px 26px;
    background: #fff;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    transition: transform 0.55s cubic-bezier(0.22,0.61,0.36,1), border-color 0.4s ease, box-shadow 0.5s cubic-bezier(0.22,0.61,0.36,1);
    overflow: hidden;
    height: 100%;
    will-change: transform;
}
.cat-card::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    right: -60px; top: -60px;
    background: radial-gradient(circle, rgba(37,99,235,0.10), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 50%;
    pointer-events: none;
}
.cat-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(37,99,235,0.45);
    z-index: 1;
    /* 三层离地阴影：底部接触影 + 中距漫射 + 远端扩散，营造悬浮浮起 */
    box-shadow: 0 2px 6px rgba(15,23,42,0.06),
                0 18px 30px rgba(37,99,235,0.13),
                0 12px 26px rgba(15,23,42,0.16);
}
.cat-card:hover::after { opacity: 1; }
.cat-card .card-icon { margin-bottom: 18px; }
/* 分类卡片图片静止，悬浮由外框承担（不放大内图） */
.cat-card .product-card-media { overflow: hidden; }
/* 分类卡片标题悬停变色 + 轻微上浮 */
.cat-card .card-title { transition: color 0.3s ease, transform 0.3s ease; }
.cat-card:hover .card-title { color: var(--ds-accent); transform: translateY(-1px); }

/* ---------- Stats ---------- */
.stat-block { text-align: center; }
.stat-number {
    font-family: var(--ds-font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    line-height: 1;
    color: var(--ds-accent);
    margin-bottom: 10px;
}
.tech-section--dark .stat-number { color: var(--ds-accent-2); }
.stat-label {
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--ds-text-muted);
}
.tech-section--dark .stat-label { color: rgba(255,255,255,0.6); }

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ds-bg-surface);
}
/* Slider container (filled by renderHeroSlider in site.js) */
.hero-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--ds-bg-surface);
}
/* Video background for hero */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}
.hero-shade--dark {
    background:
        linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.5) 50%, rgba(15,23,42,0.15) 100%);
}
/* Video overlay shade — darker gradient for text readability over video */
.hero-shade--video {
    background:
        linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.35) 50%, rgba(15,23,42,0.65) 100%),
        linear-gradient(90deg, rgba(15,23,42,0.6) 0%, rgba(15,23,42,0.2) 50%, rgba(15,23,42,0.5) 100%);
}
/* When video is present, switch hero text to light colors */
.hero-section--video .hero-eyebrow {
    color: #93C5FD;
    border-color: rgba(147,197,253,0.3);
    background: rgba(37,99,235,0.15);
    backdrop-filter: blur(8px);
}
.hero-section--video .hero-title {
    color: #FFFFFF;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-section--video .hero-desc {
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}
.hero-section--video .hero-stat-num {
    color: #F97316;
    text-shadow: 0 2px 12px rgba(249,115,22,0.3);
}
.hero-section--video .hero-stat-label {
    color: rgba(255,255,255,0.7);
}
.hero-section--video .scroll-indicator {
    color: rgba(255,255,255,0.6);
}
.hero-section--video .scroll-indicator .mouse {
    border-color: rgba(255,255,255,0.4);
}
.hero-section--video .hero-glow-1 {
    opacity: 0.6;
}
.hero-section--video .hero-glow-2 {
    opacity: 0.5;
}
/* Fix: hero outline button invisible on dark video background */
.hero-section--video .hero-cta .tech-btn-outline {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-section--video .hero-cta .tech-btn-outline:hover {
    color: #FFFFFF;
    border-color: #F97316;
    background: rgba(249,115,22,0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.3);
}
/* Also ensure primary button has strong contrast on video */
.hero-section--video .hero-cta .tech-btn-primary {
    box-shadow: 0 8px 28px rgba(37,99,235,0.5);
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}
.hero-glow-1 {
    width: 500px; height: 500px;
    left: -150px; top: -100px;
    background: radial-gradient(circle, rgba(37,99,235,0.2), transparent 65%);
}
.hero-glow-2 {
    width: 500px; height: 500px;
    right: -150px; bottom: -100px;
    background: radial-gradient(circle, rgba(249,115,22,0.15), transparent 65%);
}
.hero-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 120px 0 90px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ds-accent);
    margin-bottom: 24px;
    padding: 9px 18px;
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 999px;
    background: rgba(37,99,235,0.04);
}
.hero-eyebrow::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ds-accent);
}
.hero-title {
    font-family: var(--ds-font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ds-text-dark);
    margin-bottom: 26px;
    max-width: 780px;
}
.hero-title .gradient-text { display: inline; }
.hero-desc {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--ds-text-body);
    max-width: 580px;
    margin-bottom: 38px;
    line-height: 1.75;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--ds-text-muted);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.25s ease;
}
.scroll-indicator:hover { color: var(--ds-accent); }
.scroll-indicator .mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--ds-text-muted);
    border-radius: 14px;
    position: relative;
    opacity: 0.5;
}
.scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    left: 50%; top: 8px;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    border-radius: 2px;
    background: var(--ds-accent);
    animation: scrollWheel 1.6s ease-in-out infinite;
}

/* ---------- Hero Stats Strip ---------- */
.hero-stats {
    display: flex;
    gap: 44px;
    margin-top: 52px;
    flex-wrap: wrap;
}
.hero-stat-item {
    display: flex;
    flex-direction: column;
}
.hero-stat-num {
    font-family: var(--ds-font-display);
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--ds-accent);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.95rem;
    color: var(--ds-text-muted);
    margin-top: 6px;
}

/* ---------- CTA Band — 液态玻璃亮色设计与页尾呼应 ---------- */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 40%, #FFF7ED 100%);
    color: var(--ds-text-dark);
    border-top: 1px solid var(--ds-border-light);
}
/* 装饰光晕 */
.cta-section::before {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.10), transparent 70%);
    pointer-events: none;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -40px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.08), transparent 70%);
    pointer-events: none;
}
.cta-section .grid-pattern {
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 100%);
    background-image:
        linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
}
/* 玻璃卡片容器 */
.cta-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    border-radius: var(--ds-radius-xl);
    box-shadow: var(--glass-shadow);
    padding: 48px 56px;
    position: relative;
    overflow: hidden;
}
.cta-glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-highlight);
    pointer-events: none;
    opacity: 0.5;
}
.cta-title {
    font-family: var(--ds-font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    color: var(--ds-text-dark);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.cta-desc {
    font-size: 1.05rem;
    color: var(--ds-text-muted);
    max-width: 540px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.cta-section .section-eyebrow {
    color: var(--ds-accent);
}
.cta-section .tech-btn-primary {
    background: var(--ds-accent-2);
    color: #fff;
    box-shadow: 0 4px 18px rgba(249,115,22,0.30);
}
.cta-section .tech-btn-primary:hover {
    background: var(--ds-accent-2-dark);
    box-shadow: 0 8px 28px rgba(249,115,22,0.40);
    transform: translateY(-2px);
}
.cta-section .tech-btn-outline {
    color: var(--ds-accent);
    border-color: rgba(37,99,235,0.25);
    background: rgba(255,255,255,0.5);
}
.cta-section .tech-btn-outline:hover {
    border-color: var(--ds-accent);
    background: rgba(37,99,235,0.06);
    color: var(--ds-accent-dark);
}
/* CTA 发光按钮（products / product-detail 页用） */
.cta-glow-btn {
    position: relative;
    box-shadow: 0 4px 20px rgba(37,99,235,0.25);
    transition: all var(--dur-normal) var(--ease-spring);
}
.cta-glow-btn:hover {
    box-shadow: 0 8px 32px rgba(37,99,235,0.35);
    transform: translateY(-2px);
}
/* CTA 区域内的 WhatsApp 信息卡 */
.cta-info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.cta-info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-highlight);
    pointer-events: none;
    opacity: 0.4;
}

/* ---------- Footer — 磨砂白底与页头呼应 ---------- */
.footer {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.3);
    color: var(--ds-text-muted);
    padding: 64px 0 24px;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 20% 30%, rgba(37,99,235,0.04), transparent 60%),
                radial-gradient(800px circle at 80% 70%, rgba(249,115,22,0.03), transparent 60%);
    pointer-events: none;
}
.footer-brand-name {
    font-family: var(--ds-font-display);
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--ds-text-dark);
    margin-bottom: 18px;
}
.footer-brand-name span { color: var(--ds-accent); }
.footer-desc { font-size: 0.88rem; line-height: 1.8; margin-bottom: 24px; max-width: 320px; color: var(--ds-text-muted); }
.footer-heading {
    font-family: var(--ds-font-display);
    font-weight: 700;
    color: var(--ds-text-dark);
    font-size: 1.02rem;
    margin-bottom: 22px;
}
.footer-list li { margin-bottom: 12px; }
.footer-list a {
    font-size: 0.88rem;
    color: var(--ds-text-muted);
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-list a:hover { color: var(--ds-accent); padding-left: 6px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 0.88rem; color: var(--ds-text-muted); }
.footer-contact i { color: var(--ds-accent); margin-top: 3px; }
/* Aliases for products.html / product-detail.html footer */
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    font-size: 0.88rem;
    color: var(--ds-text-muted);
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-links a:hover { color: var(--ds-accent); padding-left: 6px; }
.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 0.88rem; color: var(--ds-text-muted); align-items: flex-start; }
.footer-contact-list i { color: var(--ds-accent); margin-top: 3px; min-width: 16px; }
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.social-row { display: flex; gap: 12px; }
.social-btn {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37,99,235,0.06);
    border: 1px solid var(--ds-border-light);
    color: var(--ds-text-muted);
    transition: all 0.25s ease;
}
.social-btn:hover {
    background: var(--ds-accent);
    border-color: var(--ds-accent);
    color: #fff;
    transform: translateY(-3px);
}
.footer-bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--ds-border-light);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 0.83rem;
    color: var(--ds-text-muted);
}
.footer-bottom a { transition: color 0.25s ease; }
.footer-bottom a:hover { color: var(--ds-accent); }

/* ---------- Float Contact Bar (Redesigned) ---------- */
/* Fixed circular icons with elegant tooltip labels on hover */
.float-contact {
    position: fixed;
    right: 20px;
    top: 38%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: floatIn 0.9s ease-out 0.5s both;
}
.float-contact .fc-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(226,232,240,0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
}
/* Icon */
.float-contact .fc-item i {
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}
/* Tooltip label - appears to the LEFT of the icon */
.float-contact .fc-item .fc-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(226,232,240,0.9);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s;
}
/* Small arrow pointing right (toward the icon) */
.float-contact .fc-item .fc-label::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(255,255,255,0.98);
    margin-top: 0;
}
/* Hover: icon scales up slightly, tooltip slides in */
.float-contact .fc-item:hover,
.float-contact .fc-item.is-active {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.7);
}
.float-contact .fc-item:hover .fc-label,
.float-contact .fc-item.is-active .fc-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
.float-contact .fc-item:hover i,
.float-contact .fc-item.is-active i {
    transform: scale(1.1);
}
/* Color accents per icon */
.float-contact .fc-phone i { color: #22c55e; }
.float-contact .fc-phone:hover { border-color: rgba(34,197,94,0.5); box-shadow: 0 8px 28px rgba(34,197,94,0.2); }
.float-contact .fc-email i { color: #3b82f6; }
.float-contact .fc-email:hover { border-color: rgba(59,130,246,0.5); box-shadow: 0 8px 28px rgba(59,130,246,0.2); }
.float-contact .fc-whatsapp i { color: #25d366; }
.float-contact .fc-whatsapp:hover { border-color: rgba(37,211,102,0.5); box-shadow: 0 8px 28px rgba(37,211,102,0.2); }
.float-contact .fc-wechat i { color: #07c160; }
.float-contact .fc-wechat:hover { border-color: rgba(7,193,96,0.5); box-shadow: 0 8px 28px rgba(7,193,96,0.2); }

/* RTL */
[dir="rtl"] .float-contact { right: auto; left: 20px; }
[dir="rtl"] .float-contact .fc-item .fc-label {
    right: auto;
    left: calc(100% + 12px);
    transform: translateY(-50%) translateX(-8px);
}
[dir="rtl"] .float-contact .fc-item .fc-label::after {
    left: auto;
    right: 100%;
    border-left-color: transparent;
    border-right-color: rgba(255,255,255,0.98);
}
[dir="rtl"] .float-contact .fc-item:hover .fc-label {
    transform: translateY(-50%) translateX(0);
}

/* ---------- WeChat QR Code Modal ---------- */
.wechat-qr-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.wechat-qr-modal.show {
    opacity: 1;
    visibility: visible;
}
.wechat-qr-content {
    position: relative;
    width: 340px;
    max-width: 90vw;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wechat-qr-modal.show .wechat-qr-content {
    transform: scale(1) translateY(0);
}
.wechat-qr-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.6rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    transition: color 0.2s ease, transform 0.2s ease;
}
.wechat-qr-close:hover {
    color: #ef4444;
    transform: rotate(90deg);
}
.wechat-qr-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 24px 16px;
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: #fff;
}
.wechat-qr-header i {
    font-size: 2rem;
}
.wechat-qr-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}
.wechat-qr-body {
    padding: 24px;
    text-align: center;
}
.wechat-qr-img {
    display: block;
    margin: 0 auto 20px;
    width: 220px;
    height: 220px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    object-fit: contain;
}
.wechat-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    color: #94a3b8;
}
.wechat-qr-placeholder i { font-size: 3rem; margin-bottom: 8px; }
.wechat-qr-placeholder p { font-size: 0.85rem; }
.wechat-id-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 16px;
}
.wechat-id-label {
    font-size: 0.72rem;
    color: #15803d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wechat-id-value {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    color: #07c160;
    text-align: left;
}
.wechat-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    background: #07c160;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.wechat-copy-btn:hover {
    background: #06ad56;
    transform: scale(1.05);
}
.wechat-copy-btn:active {
    transform: scale(0.95);
}

/* ---------- Tawk.to Live Chat Positioning ---------- */
/* Tawk.to stays bottom-right (its iframe ignores CSS overrides); stack back-to-top ABOVE it */
iframe[src*="embed.tawk.to"],
#tawkchat-container,
.tawk-chat-panel,
.tawk-min-chat-icon,
.tawk-button {
    transition: transform 0.25s ease !important;
}
/* Desktop: try to nudge Tawk.to up slightly */
#tawkchat-container {
    bottom: 20px !important;
}
/* Mobile: shrink Tawk.to bubble */
@media (max-width: 768px) {
    iframe[src*="embed.tawk.to"] {
        max-width: 72px !important;
        max-height: 72px !important;
    }
    .tawk-min-chat-icon,
    .tawk-button {
        transform: scale(0.82) !important;
        transform-origin: bottom right !important;
    }
}
@media (max-width: 480px) {
    iframe[src*="embed.tawk.to"] {
        max-width: 64px !important;
        max-height: 64px !important;
    }
    .tawk-min-chat-icon,
    .tawk-button {
        transform: scale(0.72) !important;
    }
}

/* ---------- Back To Top (Enhanced) ---------- */
/* Positioned above Tawk.to widget — stacked vertically on right side */
#backToTop {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 20px rgba(37,99,235,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
    z-index: 1000;
    cursor: pointer;
    overflow: visible;
}
#backToTop.is-visible {
    opacity: 1;
    visibility: visible;
    animation: backToTopEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Pulsing glow ring when visible */
#backToTop.is-visible::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(37,99,235,0.5);
    animation: pulseRing 2.5s ease-out infinite;
    pointer-events: none;
}
/* Rotating conic gradient ring */
#backToTop.is-visible::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(37,99,235,0.6) 20%, transparent 40%, rgba(249,115,22,0.5) 60%, transparent 80%, rgba(37,99,235,0.4) 100%);
    animation: spinRing 3s linear infinite;
    pointer-events: none;
    z-index: -1;
}
#backToTop:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 30px rgba(37,99,235,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
}
#backToTop:active {
    transform: translateY(-2px) scale(0.92);
    transition: transform 0.1s ease;
}
/* Click ripple effect */
#backToTop .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}
/* Arrow icon bounce on hover */
#backToTop i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 16px;
}
#backToTop:hover i {
    transform: translateY(-3px);
}
/* Launch animation when clicked */
#backToTop.launching {
    animation: launchUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
#backToTop.launching i {
    animation: arrowLaunch 0.6s ease-out forwards;
}

@keyframes backToTopEntrance {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}
@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes rippleEffect {
    to { transform: scale(4); opacity: 0; }
}
@keyframes launchUp {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(10px) scale(0.9); }
    100% { transform: translateY(-60px) scale(0.6); opacity: 0; }
}
@keyframes arrowLaunch {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px) scale(1.2); }
    100% { transform: translateY(-30px) scale(0.5); opacity: 0; }
}

/* Scroll progress ring inside back-to-top button */
#backToTop .progress-ring {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    transform: rotate(-90deg);
    pointer-events: none;
    z-index: 1;
}
#backToTop .progress-ring-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 138.23;
    stroke-dashoffset: 138.23;
    transition: stroke-dashoffset 0.15s ease, stroke 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}
#backToTop.is-visible .progress-ring-circle {
    stroke: rgba(255, 255, 255, 0.9);
}
#backToTop i {
    position: relative;
    z-index: 2;
}

/* ---------- Animations (Enhanced) ---------- */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.fade-up.active { opacity: 1; transform: translateY(0); }

/* 无障碍：偏好减少动画的用户直接显示，不做入场/缩放 */
@media (prefers-reduced-motion: reduce) {
    .fade-up, .fade-in, .scale-in, .slide-in-left, .slide-in-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .cat-card, .cat-card .product-card-media img, .cat-card .card-title { transition: none !important; }
}

.fade-in { opacity: 0; transition: opacity var(--dur-slow) var(--ease-out-expo); }
.fade-in.active { opacity: 1; }

.scale-in { opacity: 0; transform: scale(0.92); transition: opacity var(--dur-slow) var(--ease-spring), transform var(--dur-slow) var(--ease-spring); }
.scale-in.active { opacity: 1; transform: scale(1); }

.slide-in-left { opacity: 0; transform: translateX(-40px); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.slide-in-left.active { opacity: 1; transform: translateX(0); }

.slide-in-right { opacity: 0; transform: translateX(40px); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.slide-in-right.active { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes floatIn {
    from { opacity: 0; transform: translate(100%, -50%); }
    to { opacity: 1; transform: translateY(-50%); }
}
@keyframes scrollWheel {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(37,99,235,0.2); }
    50% { box-shadow: 0 0 40px rgba(37,99,235,0.4); }
}

/* Shimmer effect for loading states */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Page entrance animation */
.page-enter {
    animation: pageEnter var(--dur-page) var(--ease-out-expo);
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] #backToTop { right: auto; left: 16px; }
[dir="rtl"] .lang-dropdown-menu { right: auto; left: 0; }
[dir="rtl"] #mobileMenu { right: auto; left: 0; transform: translateX(-100%); box-shadow: 12px 0 40px rgba(0,0,0,0.12); }
[dir="rtl"] #mobileMenu.is-open { transform: translateX(0); }
[dir="rtl"] .section-eyebrow::before { background: linear-gradient(90deg, transparent, var(--ds-accent)); }

/* ---------- Responsive ---------- */
@media (max-width: 1023.98px) {
    [data-lang-desktop] { display: none !important; }
}
@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
    .menu-toggle { display: none; }
    [data-lang-mobile] { display: none !important; }
}
@media (max-width: 768px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .section-title { font-size: clamp(1.5rem, 4vw, 2rem); }
    .tech-section { padding: 64px 0; }
    .section-head { margin-bottom: 36px; }
    .hero-overlay { padding: 110px 0 70px; }
    .hero-glow-1 { width: 300px; height: 300px; }
    .hero-glow-2 { width: 340px; height: 340px; }
    .hero-stats { gap: 20px 28px; }
    .hero-stat-num { font-size: 1.7rem; }
    .hero-stat-label { font-size: 0.82rem; }
    .hero-desc { font-size: 1.02rem; line-height: 1.65; margin-bottom: 28px; }
    .hero-eyebrow { font-size: 0.78rem; margin-bottom: 18px; padding: 7px 14px; }
    /* Contact bar: keep on right-middle, just smaller on mobile */
    .float-contact {
        right: 12px;
        top: 42%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 8px;
    }
    .float-contact .fc-item {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    .float-contact .fc-item i {
        font-size: 16px;
    }
    /* On mobile, tooltip appears to the LEFT of the icon (same as desktop) */
    .float-contact .fc-item .fc-label {
        right: calc(100% + 10px);
        top: 50%;
        bottom: auto;
        transform: translateY(-50%) translateX(8px);
        font-size: 0.72rem;
        padding: 6px 12px;
    }
    .float-contact .fc-item .fc-label::after {
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        border: 5px solid transparent;
        border-left-color: rgba(255,255,255,0.98);
        border-top-color: transparent;
    }
    .float-contact .fc-item:hover .fc-label,
    .float-contact .fc-item:active .fc-label,
    .float-contact .fc-item.is-active .fc-label {
        transform: translateY(-50%) translateX(0);
    }
    .float-contact .fc-item:hover,
    .float-contact .fc-item.is-active {
        transform: scale(1.05);
        width: 40px;
    }
    [dir="rtl"] .float-contact {
        right: auto;
        left: 12px;
    }
    #backToTop { right: 12px; bottom: 100px; width: 44px; height: 44px; }
    [dir="rtl"] #backToTop { left: 12px; }
}
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .tech-section { padding: 52px 0; }
    .tech-card, .cat-card { padding: 24px 20px; }
    /* 移动端按钮：并排排列，自适应宽度，避免过长的全宽按钮 */
    .hero-cta { flex-direction: row; gap: 12px; }
    .hero-cta .tech-btn-primary, .hero-cta .tech-btn-outline { 
        flex: 1; 
        width: auto;
        padding: 12px 14px;
        font-size: 0.85rem;
        min-height: 48px;
    }
    .hero-cta .tech-btn-primary i { font-size: 0.8rem; }
    /* 移动端统计：2×2网格，避免4列拥挤 */
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 24px;
        margin-top: 36px;
    }
    .hero-stat-item { flex-direction: row; align-items: baseline; gap: 8px; }
    .hero-stat-num { font-size: 1.5rem; }
    .hero-stat-label { font-size: 0.78rem; }
    button, nav a, .float-contact .fc-item, .lang-btn, .lang-trigger, .mobile-lang-btn { min-height: 44px; }
    .scroll-indicator { display: none; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .float-contact { bottom: 76px; gap: 6px; }
    /* 触摸目标≥44px，保持正圆形 */
    .float-contact .fc-item { width: 44px; }
    .float-contact .fc-item i { font-size: 15px; }
    #backToTop { right: 10px; bottom: 90px; }
    [dir="rtl"] #backToTop { left: 10px; }
}
@media (max-width: 480px) {
    .float-contact { bottom: 70px; gap: 5px; }
    .float-contact .fc-item {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
    .float-contact .fc-item i { font-size: 14px; }
}
@media (max-width: 360px) {
    /* 超小屏幕：按钮文字缩小，保持并排但不溢出 */
    .hero-cta .tech-btn-primary, .hero-cta .tech-btn-outline {
        padding: 10px 8px;
        font-size: 0.78rem;
    }
    .hero-cta { gap: 8px; }
    .hero-stat-num { font-size: 1.3rem; }
    .hero-stat-label { font-size: 0.72rem; }
}

/* ============================================================
   Page-Specific Component Styles
   ============================================================ */

/* ---------- Page Banner ---------- */
.page-banner {
    position: relative;
    background: var(--ds-bg-surface);
    overflow: hidden;
    padding: 140px 0 60px;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}
.page-banner::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Glow Utilities (dark sections) ---------- */
.text-glow-accent {
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

/* ---------- Card hover spotlight ---------- */
.card-glow {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease;
    position: relative;
}
.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(37, 99, 235, 0.06),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}
.card-glow:hover::before { opacity: 1; }
.card-glow:hover {
    transform: translateY(-6px);
    box-shadow: var(--ds-shadow-hover);
    border-color: rgba(37, 99, 235, 0.2);
}

/* ---------- Image Scale (hover zoom) ---------- */
.img-scale {
    overflow: hidden;
}
.img-scale img {
    transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.img-scale:hover img {
    transform: scale(1.06);
}

/* ---------- Products Layout — Sidebar + Content ---------- */
.products-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}
/* Sidebar */
.products-sidebar {
    position: sticky;
    top: 90px;
}
.sidebar-title {
    font-family: var(--ds-font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ds-text-muted);
    margin-bottom: 12px;
    padding-left: 4px;
}
.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}
.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: var(--ds-radius);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-smooth), transform 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ds-text-body);
    background: transparent;
    border: 1px solid transparent;
    position: relative;
}
.category-item:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--ds-accent);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.10);
    transform: translateX(3px);
}
.category-item.active {
    background: var(--ds-accent);
    color: #fff;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25);
}
.category-item .cat-icon-sm {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--ds-accent);
    font-size: 0.82rem;
    flex-shrink: 0;
    transition: all var(--dur-fast) ease;
}
.category-item:hover .cat-icon-sm {
    background: rgba(37, 99, 235, 0.16);
    transform: scale(1.08);
}
.category-item.active .cat-icon-sm {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.category-item .cat-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-item .cat-badge {
    flex-shrink: 0;
    min-width: 22px;
    height: 18px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ds-text-muted);
    background: var(--ds-bg-light);
    border-radius: 9999px;
    transition: all var(--dur-fast) ease;
}
.category-item.active .cat-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
/* Sidebar search */
.sidebar-search {
    position: relative;
    margin-bottom: 12px;
}
.sidebar-search input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    font-size: 0.83rem;
    border: 1.5px solid var(--ds-border);
    border-radius: var(--ds-radius);
    background: var(--ds-bg-card);
    color: var(--ds-text-body);
    transition: border-color var(--dur-fast) ease;
}
.sidebar-search input:focus {
    outline: none;
    border-color: var(--ds-accent);
}
.sidebar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ds-text-muted);
    font-size: 0.8rem;
}
.sidebar-sort {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.83rem;
    border: 1.5px solid var(--ds-border);
    border-radius: var(--ds-radius);
    background: var(--ds-bg-card);
    color: var(--ds-text-body);
    cursor: pointer;
}
.sidebar-sort:focus { outline: none; border-color: var(--ds-accent); }
/* Sidebar controls (search + sort) */
.sidebar-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Mobile: sidebar becomes wrapping chips */
.mobile-cat-bar {
    display: none;
}
@media (max-width: 900px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .products-sidebar {
        position: relative;
        top: 0;
    }
    .sidebar-title { display: none; }
    /* 搜索 + 排序横排 */
    .sidebar-controls {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 14px;
    }
    .sidebar-controls .sidebar-search {
        flex: 1;
        margin-bottom: 0;
    }
    .sidebar-controls .sidebar-sort {
        width: auto;
        flex-shrink: 0;
    }
    /* 分类换行chips — 不再需要手拉滚动 */
    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 14px;
    }
    .category-item {
        flex-shrink: 0;
        padding: 7px 13px;
        font-size: 0.78rem;
        border-radius: 9999px;
        border: 1px solid var(--ds-border);
        background: var(--ds-bg-card);
    }
    .category-item .cat-icon-sm { display: none; }
    .category-item .cat-badge {
        min-width: 18px;
        height: 16px;
        font-size: 12px;
        padding: 0 4px;
    }
}

/* ---------- Legacy Category Scroll (fallback) ---------- */
.category-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.category-scroll::-webkit-scrollbar { height: 4px; }
.category-scroll::-webkit-scrollbar-track { background: transparent; }
.category-scroll::-webkit-scrollbar-thumb { background: rgba(37,99,235,0.3); border-radius: 2px; }
.category-btn {
    white-space: nowrap;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.category-btn:hover {
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--ds-accent);
    background: rgba(37, 99, 235, 0.04);
}
.category-btn.active {
    background: var(--ds-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.page-btn:hover:not(:disabled):not(.active) {
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--ds-accent);
    background: rgba(37, 99, 235, 0.04);
}
.page-btn.active {
    background: var(--ds-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- Product Gallery (detail page) ---------- */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(37,99,235,0.3); border-radius: 2px; }
.gallery-thumb {
    flex-shrink: 0;
    width: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.25s ease, opacity 0.25s ease;
    opacity: 0.6;
}
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.active {
    border-color: var(--ds-accent);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.gallery-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
}
.gallery-item.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* ---------- Spec Table (detail page) ---------- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--ds-border);
}
.spec-table th,
.spec-table td {
    padding: 13px 22px;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--ds-border-light);
    vertical-align: middle;
}
/* Label column: light background with left accent bar, ~25% width */
.spec-table th {
    background: #F1F5F9;
    color: var(--ds-text-dark);
    font-weight: 600;
    width: 25%;
    white-space: nowrap;
    border-left: 3px solid #2563EB;
}
/* Value column: clean white, ~75% width */
.spec-table td {
    color: var(--ds-text-body);
    width: 75%;
    word-break: break-word;
    background: #FFFFFF;
}
/* Alternating row backgrounds for label cells */
.spec-table tbody tr:nth-child(even) th { background: #E8EEF4; }
/* Remove empty placeholder styles (no longer needed in 2-col layout) */
.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

/* ---------- Mobile Fixes: Spec Table & Small Text (P0) ---------- */
@media (max-width: 768px) {
    /* Spec table: allow horizontal scroll only if needed */
    .product-specs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .spec-table {
        min-width: 320px;
    }
    .spec-table th { white-space: normal; }
    /* Badge/label text: keep minimum 12px on mobile */
    .pixel-badge { font-size: 12px; }
    .product-badge { font-size: 12px; }
    .category-item .cat-badge { font-size: 12px; }
}

/* ---------- Spec Table heading ---------- */
.product-specs h4,
.product-video h4 {
    font-family: var(--ds-font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ds-text-dark);
    margin-bottom: 20px;
}

/* ---------- Spec table inline badges (SKU/MOQ) ---------- */
.product-specs span[style*="background:#f0f9ff"],
.product-specs span[style*="background:#fef3c7"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Features List (product detail) ---------- */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
}
.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--ds-bg-surface);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    font-size: 0.9rem;
    color: var(--ds-text-body);
    transition: all var(--dur-fast) var(--ease-smooth);
}
.features-list li:hover {
    background: rgba(37, 99, 235, 0.04);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateX(4px);
}
.features-list li i {
    color: var(--ds-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ---------- Trust Badges ---------- */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ds-text-body);
    box-shadow: var(--ds-shadow);
}
.trust-badge i { color: var(--ds-accent); }

/* ---------- Feature List ---------- */
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.93rem;
    color: var(--ds-text-body);
}
.feature-list i {
    color: var(--ds-accent);
    margin-top: 3px;
    font-size: 1rem;
}

/* ---------- Inquiry Form ---------- */
.inquiry-form {
    background: #fff;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    padding: 32px;
    box-shadow: var(--ds-shadow-card);
}
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ds-text-dark);
    margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.93rem;
    color: var(--ds-text-body);
    background: var(--ds-bg-surface);
    border: 1.5px solid var(--ds-border);
    border-radius: var(--ds-radius);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--ds-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: #fff;
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ds-text-muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--ds-accent); transition: color 0.2s; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--ds-text-muted); }

/* ---------- Tag Pills ---------- */
.tag-pill {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ds-accent);
    background: rgba(37,99,235,0.08);
    border-radius: 999px;
    margin-right: 6px;
    margin-bottom: 6px;
}
.tag-pill--orange {
    color: var(--ds-accent-2);
    background: rgba(249,115,22,0.08);
}

/* ---------- Divider ---------- */
.divider {
    height: 1px;
    background: var(--ds-border);
    margin: 40px 0;
    border: none;
}

/* ---------- Loading Spinner ---------- */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--ds-text-muted);
}
.loading-spinner i {
    font-size: 1.5rem;
    color: var(--ds-accent);
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ds-text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--ds-border);
}
.empty-state h4 {
    font-family: var(--ds-font-display);
    font-size: 1.1rem;
    color: var(--ds-text-body);
    margin-bottom: 8px;
}

/* ---------- Extra-Small Screen Adaptation (P1) ---------- */
@media (max-width: 320px) {
    /* 极小屏幕特殊处理 */
    .container { padding-left: 12px; padding-right: 12px; }
    .page-banner { padding: 100px 0 40px; }
}
