/* 渠道报价云 - 样式 */
:root {
    --primary: #2f5cf6;
    --primary-dark: #1e40d8;
    --primary-deep: #10247e;
    --primary-light: #e3eaff;
    --primary-grad: linear-gradient(135deg, #2f5cf6 0%, #4f7cff 100%);
    --success: #0ca678;
    --success-light: #d8f5ec;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --text: #17233f;
    --text-light: #64748b;
    --bg: #f4f6fb;
    --card: #ffffff;
    --border: #e4e9f2;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(23,35,63,0.05), 0 4px 14px rgba(23,35,63,0.06);
    --shadow-lg: 0 8px 20px rgba(23,35,63,0.09), 0 20px 44px rgba(23,35,63,0.10);
    --hero-grad: radial-gradient(1000px 480px at 88% -12%, rgba(96,165,250,0.42), transparent 60%),
                 radial-gradient(760px 420px at -8% 112%, rgba(56,189,248,0.28), transparent 58%),
                 linear-gradient(128deg, #0b1c5e 0%, #14309f 46%, #2f5cf6 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
:focus-visible { outline: 2px solid #6f9aff; outline-offset: 2px; border-radius: 4px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 导航栏 ── */
.navbar {
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(23,35,63,0.04);
}
.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none !important;
}
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 7px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 500;
    color: var(--text-light); text-decoration: none !important; transition: all .15s;
}
.nav-link:hover { color: var(--text); background: var(--bg); }
.nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-user { margin: 0 8px; }
.price-note { font-size: 12.5px; color: var(--text-light); margin-bottom: 14px; }
.price-note a { color: #7fa8ff; }
.nav-user { color: var(--text-light); font-size: 14px; }

/* ── 按钮 ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none !important;
}
.btn-primary { background: var(--primary-grad); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(47,92,246,0.35); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(47,92,246,0.42); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-icon { background: none; border: none; cursor: pointer; color: var(--text-light); padding: 4px 8px; }
.btn-icon:hover { color: var(--danger); }

/* ── 卡片 ── */
.card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.card-header h2 { font-size: 18px; }

/* ── Badge ── */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg);
    color: var(--text-light);
}
.badge-success { background: var(--success-light); color: var(--success); }

/* ── Alert ── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #bbf7d0; }
.alert-error { background: var(--danger-light); color: var(--danger); border: 1px solid #fecaca; }

/* ── 表格 ── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { font-weight: 600; color: var(--text-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; background: #f8fafc; }
tr:hover { background: #f8fafc; }
.price { font-weight: 600; color: var(--primary); white-space: nowrap; }
.best-row { background: #f0fdf4 !important; }

/* ── 表单 ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s;
}
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* ── 认证页面 ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-grad);
}
.auth-container { width: 100%; max-width: 430px; padding: 20px; }
.auth-card {
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    padding: 36px 34px;
    box-shadow: 0 24px 60px rgba(4,14,60,0.45);
    border: 1px solid rgba(255,255,255,0.6);
}
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo { font-size: 24px; font-weight: 700; display: block; margin-bottom: 8px; }
.auth-header h2 { color: var(--text); }
.auth-form { margin-bottom: 16px; }
.auth-footer { text-align: center; font-size: 14px; color: var(--text-light); }

/* 角色选择 */
.role-select { display: flex; gap: 12px; }
.role-option { flex: 1; cursor: pointer; }
.role-option input { display: none; }
.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    transition: all 0.15s;
}
.role-option input:checked + .role-card {
    border-color: var(--primary);
    background: var(--primary-light);
}
.role-icon { font-size: 28px; margin-bottom: 4px; }
.role-card strong { font-size: 14px; }
.role-card small { font-size: 12px; color: var(--text-light); }

/* ── 首页 ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-grad);
    color: #fff;
    text-align: center;
    padding: 48px 20px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(720px 480px at 50% 36%, #000 30%, transparent 78%);
    pointer-events: none;
}
.hero-content { max-width: 880px; position: relative; }
.hero-grid {
    max-width: 1180px; display: grid; grid-template-columns: 1.02fr 0.98fr;
    gap: 56px; align-items: center; text-align: left;
}
.hero-grid .hero-stats, .hero-grid .hero-actions { justify-content: flex-start; }
.hero-visual { position: relative; animation: floatY 7s ease-in-out infinite; }
.hero-visual img {
    width: 100%; display: block; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 34px 90px rgba(1,8,42,0.6);
}
.hero-visual::after {
    content: ""; position: absolute; inset: -14%;
    background: radial-gradient(closest-side, rgba(80,150,255,0.28), transparent 72%);
    z-index: -1;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
.brand-img { width: 27px; height: 27px; vertical-align: -6px; margin-right: 7px; }
.logo-img {
    width: 46px; height: 46px; vertical-align: -10px; margin-right: 10px;
    background: #fff; border-radius: 12px; padding: 5px;
    box-shadow: 0 4px 16px rgba(2,10,50,0.4);
}
.logo { font-size: 46px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.hero h1 {
    font-size: 40px; margin-bottom: 14px; font-weight: 800; letter-spacing: -0.5px;
    background: linear-gradient(100deg, #fff 25%, #b9d2ff 65%, #8fb7ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { font-size: 17px; color: rgba(226,236,255,0.82); margin-bottom: 34px; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-bottom: 38px; flex-wrap: wrap; }
.hero-stat .num { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.hero-stat .num em { font-style: normal; font-size: 18px; font-weight: 700; color: #9cc0ff; margin-left: 2px; }
.hero-stat .lbl { font-size: 13px; color: rgba(200,218,255,0.72); margin-top: 2px; }
.hero-features { display: flex; gap: 18px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.feature-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    padding: 26px 22px;
    flex: 1;
    min-width: 210px;
    backdrop-filter: blur(12px);
    text-align: left;
    transition: transform .2s, background .2s;
}
.feature-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.11); }
.feature-icon { font-size: 32px; }
.feature-card h3 { margin: 10px 0 4px; font-size: 16px; }
.feature-card p { font-size: 13px; color: rgba(200,218,255,0.75); line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-primary {
    background: #fff; color: var(--primary-dark); box-shadow: 0 6px 22px rgba(2,10,50,0.4);
    border-radius: 12px; font-weight: 700;
}
.hero-actions .btn-primary:hover { background: #eef3ff; transform: translateY(-1px); }
.hero-actions .btn-outline {
    border-color: rgba(255,255,255,0.36); color: #fff; border-radius: 12px;
    background: rgba(255,255,255,0.06); backdrop-filter: blur(8px);
}
.hero-actions .btn-outline:hover { background: rgba(255,255,255,0.14); }
.footer { text-align: center; padding: 24px; color: var(--text-light); font-size: 13px; }

/* ── 上传区 ── */
.upload-card { border: 2px dashed var(--border); }
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin: 16px 0;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.upload-icon { font-size: 48px; margin-bottom: 8px; }
.upload-form { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ── 搜索栏 ── */
.search-bar { margin-bottom: 24px; }
.search-form { display: flex; gap: 12px; }
.search-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.15s;
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* ── 比价卡片 ── */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 24px; }
.page-header p { color: var(--text-light); }

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.compare-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}
.compare-card:hover { box-shadow: var(--shadow-lg); }
.compare-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}
.compare-header h3 { font-size: 16px; margin-bottom: 4px; }
.model-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 4px;
}
.spec-text { font-size: 12px; color: var(--text-light); }

.compare-distributors { padding: 12px 20px; }
.dist-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.dist-row:last-child { border-bottom: none; }
.dist-row.best-price { background: #f0fdf4; margin: 0 -20px; padding: 8px 20px; border-radius: 6px; }
.dist-name { font-size: 13px; font-weight: 500; }
.dist-time { font-size: 11px; color: var(--text-light); display: block; }
.dist-price { text-align: right; }
.price-value { font-size: 15px; font-weight: 700; color: var(--text); }
.best-badge {
    display: inline-block;
    padding: 1px 6px;
    background: var(--success);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 4px;
}

.compare-summary {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    font-size: 13px;
}
.price-range { font-weight: 600; color: var(--primary); }
.distributor-count { color: var(--text-light); }

.compare-actions { padding: 12px 20px; }

/* ── 报价单侧边栏 ── */
.quote-sidebar {
    position: fixed;
    right: 0;
    top: 60px;
    width: 340px;
    height: calc(100vh - 60px);
    background: var(--card);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 12px rgba(0,0,0,0.08);
    z-index: 90;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s;
}
.quote-sidebar.active { transform: translateX(0); }
.quote-panel { display: flex; flex-direction: column; height: 100%; }
.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.quote-header h3 { font-size: 16px; }
.quote-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.quote-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.quote-item-info { flex: 1; }
.quote-item-info strong { display: block; font-size: 13px; }
.quote-item-info small { color: var(--text-light); font-size: 12px; }
.quote-item-qty { display: flex; align-items: center; gap: 4px; }
.quote-item-qty button {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}
.quote-item-qty input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px;
    font-size: 13px;
}
.quote-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.quote-total { font-size: 16px; margin-bottom: 12px; text-align: right; }
.quote-total strong { color: var(--danger); font-size: 20px; }
.quote-form { display: flex; flex-direction: column; gap: 8px; }
.quote-form input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
}

/* ── 价格分析 ── */
.price-analysis {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}
.price-analysis h3 { margin-bottom: 12px; font-size: 16px; }
.analysis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.analysis-item { text-align: center; }
.analysis-label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.analysis-value { display: block; font-size: 20px; font-weight: 700; }
.analysis-value.best { color: var(--success); }
.analysis-note { display: block; font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ── 空状态 ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-light); }
.empty-state p { margin-bottom: 8px; }
.empty-state .btn { margin-top: 12px; }

/* ── 文字工具 ── */
.text-muted { color: var(--text-light); }

/* ── 目录布局 ── */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    max-width: 100%;
}
.category-sidebar {
    background: var(--card);
    border-right: 1px solid var(--border);
    padding: 20px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    position: sticky;
    top: 60px;
}
.category-sidebar h3 { font-size: 15px; margin-bottom: 12px; color: var(--text); }
.cat-group { margin-bottom: 8px; }
.cat-group-header, .cat-sub-header {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 6px; cursor: pointer;
    font-size: 14px; font-weight: 500; transition: background 0.15s;
}
.cat-group-header:hover, .cat-sub-header:hover { background: var(--bg); }
.cat-icon { font-size: 16px; }
.cat-name { flex: 1; }
.cat-count { font-size: 11px; color: var(--text-light); background: var(--bg); padding: 1px 6px; border-radius: 10px; }
.cat-arrow { font-size: 10px; color: var(--text-light); transition: transform 0.2s; }
.cat-children, .cat-brands { padding-left: 20px; }
.cat-children.collapsed, .cat-brands.collapsed { display: none; }
.cat-brand-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 10px; font-size: 13px; color: var(--text);
    border-radius: 4px; text-decoration: none !important;
}
.cat-brand-link:hover { background: var(--primary-light); color: var(--primary); }
.cat-brand-link.active { background: var(--primary); color: #fff; }
.cat-brand-link.active .cat-count { background: rgba(255,255,255,0.2); color: #fff; }
.sidebar-search { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.sidebar-search h4 { font-size: 13px; margin-bottom: 8px; color: var(--text-light); }
.sidebar-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; margin-bottom: 8px; }

.catalog-main { padding: 24px; }

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #c7d6ff; }
.product-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 14px 16px 8px;
}
.product-title h3 { font-size: 14px; margin-bottom: 2px; line-height: 1.3; }
.model-badge {
    display: inline-block; padding: 1px 6px; background: var(--bg);
    border-radius: 4px; font-size: 11px; color: var(--text-light);
}
.brand-tag {
    padding: 2px 8px; background: var(--primary-light); color: var(--primary);
    border-radius: 4px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.product-spec {
    padding: 0 16px 8px; font-size: 12px; color: var(--text-light);
    line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.supplier-list { padding: 0 16px; }
.supplier-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; border-top: 1px solid #f1f5f9;
}
.supplier-row.best { background: #f0fdf4; margin: 0 -16px; padding: 6px 16px; }
.supplier-name { font-size: 12px; font-weight: 500; }
.supplier-contact { font-size: 11px; color: var(--text-light); display: block; }
.best-tag {
    padding: 1px 5px; background: var(--success); color: #fff;
    border-radius: 3px; font-size: 10px; margin-right: 4px;
}
.price-val { font-size: 14px; font-weight: 700; color: var(--text); }
.product-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; border-top: 1px solid var(--border); background: #fafbfc;
}
.supplier-count { font-size: 12px; color: var(--text-light); }

/* ── 搜索横幅 ── */
.search-hero {
    background: var(--hero-grad);
    padding: 28px 32px 24px;
    color: #fff;
}
.search-hero .hero-inner { max-width: 1100px; margin: 0 auto; }
.search-hero h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.search-hero .sub { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 16px; }
.hero-search-form { display: flex; gap: 10px; max-width: 720px; }
.hero-search-form input {
    flex: 1; padding: 13px 18px; font-size: 15px; border: 1px solid rgba(160,185,255,0.38); border-radius: 10px;
    background: rgba(9,15,38,0.72); color: #eef4ff; outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    caret-color: #93c5fd;
}
.hero-search-form input::placeholder { color: rgba(214,224,255,0.58); }
.hero-search-form input::selection { background: rgba(59,130,246,0.55); color: #ffffff; }
.hero-search-form input:focus {
    border-color: rgba(147,197,253,0.86);
    background: rgba(15,23,42,0.86);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.28), inset 0 1px 0 rgba(255,255,255,0.10);
}
.hero-search-form button {
    padding: 13px 30px; font-size: 15px; font-weight: 600; border: none; border-radius: 10px;
    background: #0f172a; color: #fff; cursor: pointer; transition: background .15s; white-space: nowrap;
}
.hero-search-form button:hover { background: #020617; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-chip {
    padding: 5px 13px; border-radius: 20px; font-size: 13px; text-decoration: none !important;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: #fff;
    transition: all .15s;
}
.hero-chip:hover { background: rgba(255,255,255,0.22); }
.hero-chip.active { background: #fff; color: var(--primary); font-weight: 600; }

/* ── 筛选条 / chips ── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.filter-label { font-size: 12px; color: var(--text-light); margin-right: 2px; font-weight: 600; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 20px;
    font-size: 13px; font-weight: 500; border: 1px solid var(--border); background: var(--card);
    color: var(--text); cursor: pointer; transition: all .15s; text-decoration: none !important;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .chip-count { font-size: 11px; opacity: .65; }
.chip.xc.active { background: #16a34a; border-color: #16a34a; color: #fff; }
.chip.x86.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.chip.hm.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }

/* ── 平台徽章 ── */
.plat-badge { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.plat-badge.xc { background: #dcfce7; color: #15803d; }
.plat-badge.x86 { background: #dbeafe; color: #1d4ed8; }
.plat-badge.hm { background: #f3e8ff; color: #7c3aed; }

/* ── 产品卡片增强 ── */
.product-card { display: flex; flex-direction: column; }
.product-card .product-body { flex: 1; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; }
.supplier-list .supplier-row:first-child { border-top: none; }
.qty-input {
    width: 58px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 7px;
    text-align: center; font-size: 14px; background: #fff; color: var(--text);
}
.add-to-quote {
    flex: 1; padding: 9px; background: var(--primary); color: #fff; border: none;
    border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 600; transition: background .15s;
}
.add-to-quote:hover { background: var(--primary-dark); }
.dist-line { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 12px; border-top: 1px dashed #eef2f7; }
.dist-line .dn { color: var(--text-light); }
.dist-line .dp { color: var(--text); font-weight: 600; }
.dist-line.cheapest .dp { color: var(--success); }

/* ── 分销商卡片 ── */
.dist-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 12px; }
.dist-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.dist-card .name { font-weight: 600; margin-bottom: 4px; }
.dist-card .type { font-size: 12px; color: var(--primary); margin-bottom: 8px; }
.dist-card .meta { font-size: 12px; color: var(--text-light); }

/* ── 动画系统 ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes popIn {
    0%   { opacity: 0; transform: scale(.92); }
    70%  { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}
.product-card, .dist-card, .compare-card {
    animation: fadeUp .5s cubic-bezier(.2,.7,.3,1) backwards;
    animation-delay: calc(var(--i, 0) * 45ms);
}
.hero-content > * { animation: fadeUp .65s cubic-bezier(.2,.7,.3,1) backwards; }
.hero-content > *:nth-child(1) { animation-delay: .05s; }
.hero-content > *:nth-child(2) { animation-delay: .14s; }
.hero-content > *:nth-child(3) { animation-delay: .23s; }
.hero-content > *:nth-child(4) { animation-delay: .32s; }
.hero-content > *:nth-child(5) { animation-delay: .43s; }
.hero-content > *:nth-child(6) { animation-delay: .54s; }
.search-hero .hero-inner > * { animation: fadeUp .5s cubic-bezier(.2,.7,.3,1) backwards; }
.search-hero .hero-inner > *:nth-child(2) { animation-delay: .08s; }
.search-hero .hero-inner > *:nth-child(3) { animation-delay: .16s; }
.search-hero .hero-inner > *:nth-child(4) { animation-delay: .24s; }
.auth-card { animation: popIn .45s cubic-bezier(.2,.7,.3,1) backwards; }
.filter-bar .chip { animation: fadeIn .4s ease backwards; }
.chip:hover { transform: translateY(-1px) scale(1.03); }
.chip:active, .btn:active { transform: scale(.97); }
.plat-badge { transition: transform .15s; }
.product-card:hover .plat-badge { transform: scale(1.06); }
.hero-chip:hover { transform: translateY(-1px); }
.hero-search-form input { transition: box-shadow .2s, transform .2s; }
.hero-search-form input:focus { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── 场景方案卡 ── */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.scene-card {
    position: relative; display: block; padding: 22px 20px; border-radius: 16px;
    background: linear-gradient(150deg, #10247e 0%, #1d3fb8 60%, #2f5cf6 100%);
    color: #fff; text-decoration: none !important; overflow: hidden;
    box-shadow: 0 10px 30px rgba(16,36,126,0.25);
    transition: transform .22s, box-shadow .22s;
    animation: fadeUp .5s cubic-bezier(.2,.7,.3,1) backwards;
    animation-delay: calc(var(--i, 0) * 70ms);
}
.scene-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(320px 160px at 85% -20%, rgba(120,180,255,0.45), transparent 70%);
}
.scene-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(16,36,126,0.4); }
.scene-card .sc-icon { font-size: 30px; margin-bottom: 10px; position: relative; }
.scene-card .sc-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; position: relative; }
.scene-card .sc-desc { font-size: 12px; color: rgba(215,228,255,0.8); line-height: 1.6; min-height: 38px; position: relative; }
.scene-card .sc-go { font-size: 13px; font-weight: 600; margin-top: 10px; color: #9cc4ff; position: relative; transition: color .15s; }
.scene-card:hover .sc-go { color: #fff; }

/* ── 品牌快捷入口 ── */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brand-card {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 16px 10px; border-radius: 13px; background: var(--card);
    border: 1px solid var(--border); text-decoration: none !important;
    box-shadow: var(--shadow); transition: all .18s;
    animation: fadeUp .45s cubic-bezier(.2,.7,.3,1) backwards;
    animation-delay: calc(var(--i, 0) * 40ms);
}
.brand-card:hover { transform: translateY(-3px); border-color: #c7d6ff; box-shadow: var(--shadow-lg); }
.brand-card .bname { font-size: 15px; font-weight: 700; color: var(--text); }
.brand-card .bcount { font-size: 11px; color: var(--text-light); }

/* ── 粒子画布 / 视频背景 ── */
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx-video { overflow: hidden; }
.fx-video video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: saturate(1.08) brightness(0.92);
}
.fx-veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(4,10,42,0.42) 0%, rgba(4,10,42,0.30) 45%, rgba(4,10,42,0.62) 100%);
}
.auth-page { position: relative; overflow: hidden; }
.auth-container { position: relative; z-index: 2; }
.search-hero { position: relative; overflow: hidden; }
.search-hero .hero-inner { position: relative; z-index: 2; }
.hero { position: relative; }
.hero-content { z-index: 2; }

/* ── 侧边栏品牌子层 ── */
.cat-brands-row { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 10px 8px 30px; }
.cat-brand-chip {
    padding: 2px 9px; border-radius: 12px; font-size: 12px;
    background: var(--bg); color: var(--text-light); border: 1px solid transparent;
    text-decoration: none !important; transition: all .15s;
}
.cat-brand-chip:hover { color: var(--primary); border-color: #c7d6ff; background: var(--primary-light); }
.cat-brand-chip.active { background: var(--primary); color: #fff; }
.cat-brand-chip .n { opacity: .6; margin-left: 2px; font-size: 11px; }

/* ── 响应式 ── */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .hero-grid .hero-stats, .hero-grid .hero-actions { justify-content: center; }
}

/* ══ 大厂级电影首屏（body.cine）══ */
body.cine { background: #030409; color: #e9edf8; }
body.cine .bento-wrap { background: #030409; }
body.cine .footer { background: #030409 !important; }

.pill-nav {
    position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
    z-index: 100; display: flex; align-items: center; gap: 4px;
    padding: 7px 10px; border-radius: 999px;
    background: rgba(16,20,34,0.55); border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) backwards; animation-delay: .15s;
}
.pill-nav a {
    padding: 7px 15px; border-radius: 999px; font-size: 13.5px; color: #b8c0d8;
    text-decoration: none !important; transition: all .18s; white-space: nowrap;
}
.pill-nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.pill-nav .pn-logo { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; padding-left: 8px; }
.pill-nav .pn-logo img { width: 22px; height: 22px; background: #fff; border-radius: 6px; padding: 2px; }
.pill-nav .pn-cta {
    background: #fff; color: #0b1020 !important; font-weight: 600;
}
.pill-nav .pn-cta:hover { background: #dfe6ff; }

.cine-hero {
    position: relative; min-height: 100vh; overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 110px 20px 40px;
}
.bridge-hero {
    min-height: 112vh;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    padding: 150px clamp(24px, 7vw, 112px) 104px;
    background: #07111d;
}
.cine-bg { position: absolute; inset: 0; pointer-events: none; }
.cine-bg video.cine-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: saturate(1.1) brightness(1.02);
}
.bridge-hero .cine-bg video.cine-video {
    object-position: 54% 48%;
    filter: saturate(1.18) contrast(1.04) brightness(1.08);
    transform: scale(1.08);
}
.cine-bg img {
    position: absolute; left: 50%; bottom: -42%; transform: translateX(-50%);
    width: min(2400px, 185vw);
    -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 58%, #000 58%, transparent 88%);
    mask-image: radial-gradient(ellipse 72% 68% at 50% 58%, #000 58%, transparent 88%);
    animation: cineDrift 30s ease-in-out infinite alternate;
    filter: saturate(1.12) brightness(1.08);
}
/* 大气弧光：星球上缘的蓝色辉光边 */
.cine-arc {
    position: absolute; left: 50%; bottom: -74%; transform: translateX(-50%);
    width: 2300px; height: 1400px; border-radius: 50%;
    box-shadow: 0 -14px 60px 6px rgba(96,170,255,0.55),
                0 -50px 160px 20px rgba(64,130,255,0.30),
                0 -120px 340px 60px rgba(40,90,220,0.18);
    pointer-events: none;
}
@keyframes cineDrift {
    from { transform: translateX(-50%) scale(1); }
    to   { transform: translateX(-50%) scale(1.09) translateY(-1.5%); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
    .cine-video {
        animation: none !important;
    }
}
.cine-glow {
    position: absolute; left: 50%; bottom: -52%; transform: translateX(-50%);
    width: 2000px; height: 1250px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(70,130,255,0.30), rgba(34,70,200,0.10) 55%, transparent 76%);
}
.cine-grain {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cine-shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(58% 46% at 50% 30%, rgba(3,4,9,0.55) 0%, rgba(3,4,9,0.28) 55%, transparent 80%),
        linear-gradient(180deg, rgba(3,4,9,0.82) 0%, rgba(3,4,9,0.30) 30%, rgba(3,4,9,0.05) 52%, rgba(3,4,9,0.35) 74%, rgba(3,4,9,0.85) 90%, #030409 100%);
}
.bridge-hero .cine-shade {
    background:
        linear-gradient(90deg, rgba(3,8,17,0.72) 0%, rgba(3,8,17,0.44) 31%, rgba(3,8,17,0.10) 64%, rgba(3,8,17,0.18) 100%),
        linear-gradient(180deg, rgba(3,8,17,0.45) 0%, rgba(3,8,17,0.04) 40%, rgba(3,8,17,0.24) 72%, rgba(3,8,17,0.88) 100%);
}
.cine-content { position: relative; max-width: 900px; }
.bridge-hero .cine-content {
    max-width: 760px;
    margin: 0;
}
.cine-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px 6px 6px; border-radius: 999px; font-size: 13px; color: #c6cfe8;
    background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px); margin-bottom: 30px;
    animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) backwards; animation-delay: .3s;
}
.cine-badge .nb { background: #fff; color: #0b1020; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 3px 10px; }
.cine-title {
    font-family: Georgia, "STZhongsong", "华文中宋", "SimSun", serif;
    font-size: clamp(46px, 6.4vw, 86px); font-weight: 500; color: #f4f6ff;
    line-height: 1.18; letter-spacing: 3px; margin-bottom: 26px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 0 90px rgba(110,160,255,0.4);
}
.bridge-hero .cine-title {
    font-size: clamp(42px, 6.1vw, 92px);
    letter-spacing: 1px;
    text-shadow: 0 3px 24px rgba(0,0,0,0.72), 0 0 80px rgba(83,145,210,0.32);
}
.cine-sub {
    font-size: 16px; color: #eef2fc; line-height: 1.9; margin-bottom: 36px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.75), 0 2px 22px rgba(0,0,0,0.55);
    animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) backwards; animation-delay: .75s;
}
.bridge-hero .cine-sub {
    max-width: 620px;
    color: rgba(244,248,255,0.94);
}
.cine-actions {
    display: flex; gap: 14px; justify-content: center; margin-bottom: 52px;
    animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) backwards; animation-delay: .9s;
}
.bridge-hero .cine-actions,
.bridge-hero .cine-cards {
    justify-content: flex-start;
}
.c-btn {
    padding: 13px 30px; border-radius: 999px; font-size: 15px; font-weight: 600;
    text-decoration: none !important; transition: all .2s; letter-spacing: 0.5px;
}
.c-btn.solid { background: #fff; color: #0b1020; box-shadow: 0 8px 30px rgba(255,255,255,0.14); }
.c-btn.solid:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,255,255,0.22); }
.c-btn.ghost { color: #dfe5f7; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); backdrop-filter: blur(8px); }
.c-btn.ghost:hover { background: rgba(255,255,255,0.1); }
.c-btn:active, .add-to-quote:active { transform: scale(0.97); }
.cine-cards {
    display: flex; gap: 16px; justify-content: center;
    animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) backwards; animation-delay: 1.05s;
}
.c-card {
    min-width: 220px; padding: 22px 30px; border-radius: 18px; text-align: center;
    background: rgba(10,16,38,0.42); border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0,0,0,0.4);
}
.c-card .cc-num {
    font-family: Georgia, "STZhongsong", "华文中宋", serif;
    font-size: 34px; color: #fff; font-style: italic; letter-spacing: 1px;
}
.c-card .cc-num em { font-style: normal; font-size: 17px; color: #d5ddf2; margin-left: 3px; }
.c-card .cc-lbl { font-size: 12.5px; color: #c3cde6; margin-top: 5px; text-shadow: 0 1px 5px rgba(0,0,0,0.6); }
.cine-words {
    position: absolute; left: 0; right: 0; bottom: -14px; text-align: center;
    font-family: Georgia, "STZhongsong", "华文中宋", serif;
    font-size: clamp(60px, 8vw, 110px); letter-spacing: 18px; white-space: nowrap;
    display: flex; justify-content: center; gap: 0.55em;
}
.bridge-hero .cine-words {
    text-align: left;
    justify-content: flex-start;
    padding-left: clamp(24px, 7vw, 112px);
    bottom: -20px;
}
.cine-words a { color: rgba(190,210,255,0.14); text-decoration: none !important; transition: color .35s; }
.cine-words a:hover { color: rgba(200,218,255,0.6); }
@media (max-width: 860px) {
    .bridge-hero {
        min-height: 104vh;
        text-align: center;
        align-items: center;
        justify-content: center;
        padding: 118px 18px 70px;
    }
    .bridge-hero .cine-bg video.cine-video { object-position: 52% 50%; }
    .bridge-hero .cine-content { max-width: 100%; }
    .bridge-hero .cine-actions,
    .bridge-hero .cine-cards,
    .bridge-hero .cine-words { justify-content: center; }
    .bridge-hero .cine-words { padding-left: 0; }
    .pill-nav { display: none; }
    .cine-cards { flex-direction: column; align-items: center; }
    .cine-words { font-size: 44px; letter-spacing: 8px; }
}

/* ── Spotlight 鼠标光晕 ── */
.spot { position: relative; }
.spot::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
                rgba(130,175,255,0.16), transparent 65%);
    z-index: 1;
}
.spot:hover::after { opacity: 1; }

/* ── 滚动渐显 ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ── 标题逐字浮现 ── */
.split-ch {
    display: inline-block; opacity: 0; transform: translateY(0.5em);
    animation: chIn .6s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes chIn { to { opacity: 1; transform: none; } }

/* ── Bento 网格（Apple 风）── */
.bento-wrap { background: #090f26; padding: 74px 24px 84px; position: relative; }
.bento-wrap::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(900px 400px at 70% 0%, rgba(47,92,246,0.12), transparent 60%);
}
.bento-head { text-align: center; font-size: 30px; font-weight: 800; color: #eef3ff; margin-bottom: 8px; letter-spacing: -0.5px; position: relative; }
.bento-sub { text-align: center; font-size: 14px; color: #8b9cc7; margin-bottom: 36px; position: relative; }
.bento {
    max-width: 1180px; margin: 0 auto; position: relative;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; grid-auto-rows: 152px;
}
.bento-item {
    border-radius: 20px; padding: 24px; overflow: hidden; position: relative;
    background: linear-gradient(160deg, rgba(23,34,76,0.85), rgba(13,21,50,0.9));
    border: 1px solid rgba(140,170,255,0.14);
    color: #dbe4fb; text-decoration: none !important;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.bento-item:hover { transform: translateY(-4px); border-color: rgba(120,165,255,0.42); box-shadow: 0 18px 44px rgba(2,6,26,0.6); }
.bento-item .bi-icon { font-size: 26px; margin-bottom: 10px; }
.bento-item .bi-title { font-size: 17px; font-weight: 700; color: #eef3ff; margin-bottom: 6px; }
.bento-item .bi-desc { font-size: 13px; color: #8b9cc7; line-height: 1.65; }
.bento-item .bi-go { margin-top: auto; font-size: 13px; font-weight: 600; color: #7fb0ff; }
.b-lg { grid-column: span 2; grid-row: span 2; }
.b-wide { grid-column: span 2; }
/* 大格里的迷你比价图 */
.mini-bars { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.mini-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #93a5cf; }
.mini-bar .track { flex: 1; height: 10px; border-radius: 6px; background: rgba(120,160,255,0.1); overflow: hidden; }
.mini-bar .fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2f5cf6, #4f8cff); }
.mini-bar.best .fill { background: linear-gradient(90deg, #0ca678, #34d399); }
.mini-bar .val { width: 58px; text-align: right; font-weight: 700; color: #dbe4fb; }
.mini-bar.best .val { color: #4ade9c; }
@media (max-width: 900px) {
    .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
    .b-lg, .b-wide { grid-column: span 2; grid-row: auto; }
}

/* ══ 深色科技主题（body.dark）══ */
body.dark {
    --text: #dbe4fb;
    --text-light: #8b9cc7;
    --card: rgba(18,28,64,0.55);
    --border: rgba(140,170,255,0.13);
    --bg: rgba(120,160,255,0.08);
    --primary-light: rgba(80,130,255,0.16);
    --shadow: 0 6px 22px rgba(2,6,26,0.45);
    --shadow-lg: 0 14px 34px rgba(2,6,26,0.6);
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(47,92,246,0.14), transparent 60%),
        radial-gradient(800px 420px at -5% 30%, rgba(56,140,255,0.08), transparent 55%),
        #090f26;
    color: #dbe4fb;
}
body.dark .navbar { background: rgba(9,15,38,0.82); border-bottom: 1px solid rgba(140,170,255,0.10); box-shadow: none; }
body.dark .nav-brand, body.dark .nav-user { color: #e8eeff; }
body.dark .btn-outline { color: #c7d3f2; border-color: rgba(150,180,255,0.22); background: rgba(255,255,255,0.03); }
body.dark .btn-outline:hover { background: rgba(120,160,255,0.12); }
body.dark .nav-link { color: #93a5cf; }
body.dark .nav-link:hover { color: #dbe4fb; background: rgba(120,160,255,0.10); }
body.dark .nav-link.active { color: #9cc0ff; background: rgba(80,130,255,0.18); }
body.dark .brand-img { background: #fff; border-radius: 7px; padding: 2px; }

body.dark .category-sidebar { background: rgba(13,21,50,0.72); border-right: 1px solid rgba(140,170,255,0.08); }
body.dark .category-sidebar h3 { color: #93a5cf; }
body.dark .cat-group-header { color: #dbe4fb; }
body.dark .cat-group-header:hover, body.dark .cat-sub-header:hover { background: rgba(120,160,255,0.08); }
body.dark .cat-count { background: rgba(120,160,255,0.12); color: #93a5cf; }
body.dark .cat-brand-link { color: #c7d3f2; }
body.dark .cat-brand-link:hover { background: rgba(80,130,255,0.14); color: #9cc0ff; }
body.dark .cat-brand-chip { background: rgba(120,160,255,0.08); color: #93a5cf; }
body.dark .cat-brand-chip:hover { background: rgba(80,130,255,0.18); color: #b8d2ff; border-color: rgba(120,160,255,0.3); }

body.dark .page-header h1, body.dark .sol-section > h2 { color: #eef3ff; }
body.dark .filter-label { color: #8b9cc7; }
body.dark .chip { background: rgba(255,255,255,0.04); border-color: rgba(150,180,255,0.2); color: #c7d3f2; }
body.dark .chip:hover { border-color: #5a86ff; color: #9cc0ff; }
body.dark .chip.active { background: var(--primary-grad); border-color: transparent; color: #fff; }
body.dark .alert { background: rgba(245,158,11,0.09) !important; border-color: rgba(245,158,11,0.28) !important; color: #f5c877 !important; }
body.dark .alert a { color: #8ab6ff; }

body.dark .product-card, body.dark .dist-card, body.dark .compare-card, body.dark .card {
    background: rgba(18,28,64,0.55);
    border-color: rgba(140,170,255,0.13);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 22px rgba(2,6,26,0.45);
}
body.dark .product-card:hover { border-color: rgba(110,155,255,0.45); box-shadow: 0 14px 34px rgba(2,6,26,0.6); }
body.dark .product-title h3, body.dark .dist-card .name { color: #eef3ff; }
body.dark .product-card-header { background: transparent; border-bottom-color: rgba(140,170,255,0.08); }
body.dark .model-badge { background: rgba(120,160,255,0.1); color: #93a5cf; }
body.dark .brand-tag { background: rgba(80,130,255,0.16); color: #8ab6ff; }
body.dark .plat-badge.xc { background: rgba(22,163,106,0.18); color: #4ade9c; }
body.dark .plat-badge.x86 { background: rgba(59,110,246,0.2); color: #8ab6ff; }
body.dark .plat-badge.hm { background: rgba(124,58,237,0.2); color: #c4a2ff; }
body.dark .badge { background: rgba(120,160,255,0.1); color: #93a5cf; }
body.dark .product-spec, body.dark .dist-card .meta, body.dark .supplier-count { color: #8b9cc7; }
body.dark .dist-line { border-top-color: rgba(140,170,255,0.09); }
body.dark .dist-line .dn { color: #93a5cf; }
body.dark .dist-line .dp { color: #dbe4fb; }
body.dark .dist-line.cheapest .dp { color: #4ade9c; }
body.dark .product-footer { background: rgba(10,16,40,0.5); border-top-color: rgba(140,170,255,0.1); }
body.dark .qty-input { background: rgba(10,16,40,0.7); border-color: rgba(150,180,255,0.22); color: #dbe4fb; }

body.dark .brand-card { background: rgba(18,28,64,0.55); border-color: rgba(140,170,255,0.13); }
body.dark .brand-card:hover { border-color: rgba(110,155,255,0.5); }
body.dark .brand-card .bname { color: #eef3ff; }
body.dark .brand-card .bcount { color: #8b9cc7; }
body.dark .scene-card { box-shadow: 0 10px 30px rgba(2,6,26,0.55); border: 1px solid rgba(140,170,255,0.15); }

body.dark table { color: #dbe4fb; }
body.dark th { background: rgba(13,21,50,0.85); color: #8b9cc7; border-bottom-color: rgba(140,170,255,0.12); }
body.dark td { border-bottom-color: rgba(140,170,255,0.08); }
body.dark tr:hover { background: rgba(80,130,255,0.06); }
body.dark .soft-table { background: rgba(18,28,64,0.55); box-shadow: 0 6px 22px rgba(2,6,26,0.45); }
body.dark .soft-table th { background: rgba(13,21,50,0.85); }
body.dark .sol-section .hint, body.dark .page-header p { color: #8b9cc7; }
body.dark .tag-must { background: rgba(220,38,38,0.18); color: #ff9d9d; }
body.dark .tag-rec { background: rgba(80,130,255,0.16); color: #8ab6ff; }
body.dark .empty-state { color: #8b9cc7; }
body.dark h3 { color: #eef3ff; }

@media (max-width: 768px) {
    .hero h1 { font-size: 24px; }
    .hero-features { flex-direction: column; }
    .compare-grid { grid-template-columns: 1fr; }
    .quote-sidebar { width: 100%; }
    .analysis-grid { grid-template-columns: repeat(2, 1fr); }
    .role-select { flex-direction: column; }
    .catalog-layout { grid-template-columns: 1fr; }
    .category-sidebar { display: none; }
    .hero-search-form { flex-direction: column; }
}
