/* ==========================================================================
   DBCpu — 全新站点设计系统 (2026)
   不再沿用旧 style.css（旧文件仅供 /admin 后台使用）
   结构：1.设计变量 2.基础重置 3.通用组件 4.头部 5.首页 6.列表页
        7.详情页 8.对比页 9.博客 10.页脚 11.浮层 12.响应式
   ========================================================================== */

/* ---------------------------------------------------------------- 1.变量 */
:root {
    --container: 1240px;

    --bg: #f2f5f9;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --surface-3: #eaeff7;

    --border: #e2e8f1;
    --border-2: #c9d4e4;

    --text: #0b1424;
    --text-2: #4b5b70;
    --text-3: #7f8ea3;

    --accent: #2563eb;
    --accent-2: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, .10);
    --accent-line: rgba(37, 99, 235, .35);

    --cpu: #2563eb;
    --cpu-soft: rgba(37, 99, 235, .12);
    --gpu: #0d9488;
    --gpu-soft: rgba(13, 148, 136, .12);
    --soc: #7c3aed;
    --soc-soft: rgba(124, 58, 237, .12);

    --ok: #047857;
    --ok-bg: #e6f7ef;
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, .08);
    --warn: #b45309;

    --shadow-1: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-2: 0 12px 32px rgba(15, 23, 42, .10);

    --header-bg: rgba(255, 255, 255, .86);
    --overlay: rgba(11, 20, 36, .45);

    --r-xs: 6px;
    --r-sm: 9px;
    --r-md: 14px;
    --r-lg: 20px;

    --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Noto Sans", Roboto,
        "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --ff-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
    --bg: #080c14;
    --surface: #111a29;
    --surface-2: #16202f;
    --surface-3: #1d2939;

    --border: #1f2c3e;
    --border-2: #2e3d54;

    --text: #e9eff8;
    --text-2: #a6b3c6;
    --text-3: #75859b;

    --accent: #5b8cff;
    --accent-2: #7ba1ff;
    --accent-soft: rgba(91, 140, 255, .14);
    --accent-line: rgba(91, 140, 255, .4);

    --cpu: #5b8cff;
    --cpu-soft: rgba(91, 140, 255, .16);
    --gpu: #2dd4a7;
    --gpu-soft: rgba(45, 212, 167, .14);
    --soc: #a78bfa;
    --soc-soft: rgba(167, 139, 250, .16);

    --ok: #34d399;
    --ok-bg: rgba(52, 211, 153, .12);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, .12);
    --warn: #fbbf24;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 16px 40px rgba(0, 0, 0, .5);

    --header-bg: rgba(8, 12, 20, .82);
    --overlay: rgba(3, 6, 12, .6);
}

/* ------------------------------------------------------------ 2.基础重置 */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }

::selection { background: var(--accent-soft); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-2); }
.mono { font-family: var(--ff-mono); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------- 3.通用组件 */
/* 卡片 */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1);
}
.card-pad { padding: 22px; }
.card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { font-size: 15px; display: flex; align-items: center; gap: 9px; }
.card-head .icon { color: var(--text-3); display: flex; }
.card-body { padding: 20px; }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px;
    font-size: 14px; font-weight: 600; white-space: nowrap; transition: .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--border-2); color: var(--text); }
.btn-soft { background: var(--surface-3); color: var(--text-2); }
.btn-soft:hover { color: var(--text); }
.btn-danger { background: transparent; border-color: var(--border); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.is-disabled { opacity: .6; }

/* 徽标 / 标签 */
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px; border-radius: 7px;
    font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.tag-cpu { color: var(--cpu); background: var(--cpu-soft); }
.tag-gpu { color: var(--gpu); background: var(--gpu-soft); }
.tag-soc { color: var(--soc); background: var(--soc-soft); }
.tag-neutral { color: var(--text-2); background: var(--surface-3); }

/* 筛选胶囊 */
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    height: 33px; padding: 0 13px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-2); font-size: 13px; font-weight: 600; transition: .18s ease;
}
.chip:hover { border-color: var(--border-2); color: var(--text); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { font-size: 11px; opacity: .68; }
.chip.is-cpu.is-active { background: var(--cpu); border-color: var(--cpu); }
.chip.is-gpu.is-active { background: var(--gpu); border-color: var(--gpu); }
.chip.is-soc.is-active { background: var(--soc); border-color: var(--soc); }

/* 表单控件 */
.field {
    width: 100%; height: 44px; padding: 0 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 11px; outline: none; transition: .18s ease;
}
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field::placeholder { color: var(--text-3); }
select.field { appearance: none; cursor: pointer; }
textarea.field { height: auto; padding: 11px 14px; resize: vertical; }

/* 按钮式图标 */
.icon-btn {
    position: relative; flex: none; display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text-2); transition: .18s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-3); }
.icon-btn svg { width: 18px; height: 18px; }

/* 空状态 */
.empty {
    display: grid; place-items: center; gap: 14px;
    padding: 60px 24px; text-align: center; color: var(--text-3);
}
.empty-glyph {
    width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center; background: var(--surface-3); color: var(--text-3);
}

/* 分页 */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 26px; }
.pager a, .pager span {
    min-width: 38px; height: 38px; padding: 0 11px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-2);
    font-size: 13.5px; font-weight: 600; transition: .18s ease;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .is-disabled { opacity: .45; pointer-events: none; }

/* 分节标题 */
.section { margin-top: 38px; }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 15px;
}
.section-title { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.section-title .icon { color: var(--accent); display: flex; }
.section-link { font-size: 13px; font-weight: 700; color: var(--accent); }
.section-link:hover { color: var(--accent-2); }

/* ------------------------------------------------------------- 4.头部 */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center; color: #fff;
    font-size: 15px; font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--soc));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub {
    font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}

.main-nav { display: flex; gap: 3px; margin-left: 6px; }
.nav-item {
    padding: 8px 12px; border-radius: 9px;
    color: var(--text-2); font-size: 14px; font-weight: 650; transition: .18s ease;
}
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item.is-active { color: var(--accent); background: var(--accent-soft); }

.header-search { position: relative; flex: 1; max-width: 380px; margin-left: auto; }
.search-field {
    display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 11px; transition: .18s ease;
}
.search-field:focus-within {
    background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-field svg { width: 17px; height: 17px; color: var(--text-3); }
.search-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }
.search-field input::placeholder { color: var(--text-3); }

.suggest {
    position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 120;
    max-height: 360px; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); box-shadow: var(--shadow-2);
}
.suggest[hidden] { display: none; }
.suggest-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 13px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.is-active { background: var(--surface-2); }
.suggest-item .name { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-empty { padding: 16px; text-align: center; color: var(--text-3); font-size: 13.5px; }

.header-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.badge-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 18px; height: 18px; padding: 0 4px;
    display: grid; place-items: center;
    border-radius: 999px; background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700;
}
.lang-wrap { position: relative; }
.lang-btn { width: auto; height: 38px; padding: 0 11px; display: flex; gap: 6px; font-size: 13px; font-weight: 650; }
.dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 130;
    min-width: 168px; padding: 6px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); box-shadow: var(--shadow-2);
}
.dropdown[hidden] { display: none; }
.dropdown a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 11px; border-radius: 9px; font-size: 13.5px; color: var(--text-2);
}
.dropdown a:hover { background: var(--surface-2); color: var(--text); }
.dropdown a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 650; }

.menu-btn { display: none; }

/* 主题图标：亮色显示月亮，暗色显示太阳 */
.ico-sun, .ico-moon { display: none; }
html[data-theme="light"] .ico-moon { display: block; }
html[data-theme="dark"] .ico-sun { display: block; }

.drawer { display: none; border-top: 1px solid var(--border); background: var(--surface); }
.drawer nav { display: flex; flex-direction: column; padding: 6px 20px 14px; }
.drawer nav a {
    padding: 12px 4px; border-bottom: 1px solid var(--border);
    font-size: 15px; font-weight: 600; color: var(--text-2);
}
.drawer nav a:hover { color: var(--accent); }

/* 移动端底部导航 */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: none; grid-template-columns: repeat(6, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: var(--header-bg); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
}
.tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 5px 0; border-radius: 9px;
    font-size: 10.5px; font-weight: 600; color: var(--text-3);
}
.tabbar a svg { width: 20px; height: 20px; }
.tabbar a.is-active { color: var(--accent); }

/* ------------------------------------------------------------- 5.首页 */
.hero { padding: 46px 0 8px; text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
    background: var(--accent-soft); color: var(--accent);
    font-size: 12.5px; font-weight: 700;
}
.hero-title { font-size: clamp(27px, 4.2vw, 42px); letter-spacing: -.035em; }
.hero-sub { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.hero-search { position: relative; max-width: 620px; margin: 24px auto 0; }
.hero-search .search-field {
    height: 54px; padding: 0 16px; border-radius: var(--r-md);
    background: var(--surface); box-shadow: var(--shadow-2);
}
.hero-search .search-field input { font-size: 16px; }
.hero-tips {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-top: 16px; font-size: 12.5px; color: var(--text-3);
}
.hero-tips a { color: var(--text-2); font-weight: 600; }
.hero-tips a:hover { color: var(--accent); }

.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel-head { display: flex; align-items: center; gap: 11px; }
.panel-icon {
    width: 38px; height: 38px; border-radius: 11px;
    display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
}
.bg-cpu { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.bg-gpu { background: linear-gradient(135deg, #0d9488, #34d399); }
.bg-soc { background: linear-gradient(135deg, #7c3aed, #c084fc); }

.vs-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.vs-badge {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-3); color: var(--text-3);
    font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.auto-input { position: relative; }
.auto-input input {
    width: 100%; height: 46px; padding: 0 14px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 11px; outline: none; transition: .18s ease;
}
.auto-input input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auto-input .suggest { text-align: left; }

/* 热门对比：树状结构 */
.tree { display: flex; flex-direction: column; gap: 15px; margin-top: 16px; }
.tree-node { position: relative; padding-left: 18px; }
.tree-node::before {
    content: ''; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px;
    border-radius: 2px; background: var(--accent);
}
.tree-root { display: block; font-size: 13px; font-weight: 650; line-height: 20px; color: var(--text); transition: color .18s ease; }
.tree-root:hover { color: var(--accent); }
.tree-leaf {
    position: relative; display: flex; align-items: center; gap: 6px;
    margin-top: 8px; font-size: 12.5px; line-height: 18px; color: var(--text-2); transition: color .18s ease;
}
.tree-leaf::before {
    content: ''; position: absolute; left: -16px; top: -18px; width: 12px; height: 27px;
    border-left: 1px solid var(--border-2);
    border-bottom: 1px solid var(--border-2);
    border-bottom-left-radius: 8px;
}
.tree-leaf:hover { color: var(--accent); }
.tree-leaf .vs { font-size: 10.5px; font-weight: 800; color: var(--text-3); }

.db-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.db-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.db-head h3 { font-size: 15px; }
.db-head .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.prod-rows { display: flex; flex-direction: column; }
.prod-rows a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 20px; border-bottom: 1px solid var(--border);
    font-size: 14px; color: var(--text-2); transition: .15s ease;
}
.prod-rows a:last-child { border-bottom: 0; }
.prod-rows a:hover { background: var(--surface-2); color: var(--text); }
.prod-rows .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-rows .date { font-family: var(--ff-mono); font-size: 12px; color: var(--text-3); }
.prod-rows .mini-brand {
    flex: none; width: 22px; height: 22px; border-radius: 6px; overflow: hidden;
    display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border);
}
.prod-rows .mini-brand img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prod-rows .mini-brand.is-abbr { border: 0; color: #fff; font-size: 11px; font-weight: 800; }
.prod-rows a .name { flex: 1; }

.blog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.post-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.post-card:hover { border-color: var(--accent); box-shadow: var(--shadow-1); }
.post-thumb {
    aspect-ratio: 16 / 9; overflow: hidden;
    background: var(--surface-3); border-bottom: 1px solid var(--border);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card h3 {
    font-size: 14.5px; font-weight: 650; line-height: 1.4; padding: 13px 15px 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card:hover h3 { color: var(--accent); }
.post-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 10px; margin-top: auto; padding: 9px 15px 15px; }

.link-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.link-strip a {
    padding: 7px 13px; border-radius: 9px;
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--text-2);
}
.link-strip a:hover { border-color: var(--accent); color: var(--accent); }

/* ----------------------------------------------------------- 6.列表页 */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 30px 0 20px; }
.page-title { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
.page-sub { margin-top: 7px; font-size: 13px; color: var(--text-3); }
.page-head .search-field { width: 300px; background: var(--surface); }

.list-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 40px; }
.filter-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.filter-panel { position: sticky; top: 82px; overflow: hidden; }
.filter-summary {
    display: none; align-items: center; justify-content: space-between;
    padding: 15px 18px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.filter-toggle:focus-visible ~ .filter-panel .filter-summary { color: var(--accent); }
.filter-body { display: block; }
.filter-group { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: 0; }
.filter-label {
    font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-3); margin-bottom: 10px;
}
.filter-list { display: flex; flex-direction: column; gap: 2px; max-height: 250px; overflow-y: auto; }
.filter-list a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 7px 10px; border-radius: 8px;
    font-size: 13.5px; color: var(--text-2); transition: .15s ease;
}
.filter-list a:hover { background: var(--surface-2); color: var(--text); }
.filter-list a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.filter-list .n { font-size: 11px; color: var(--text-3); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 15px; }
.toolbar .spacer { flex: 1; }
.result-note { font-size: 13px; color: var(--text-3); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(234px, 1fr)); gap: 14px; }
.product-card {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    padding: 16px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow-1); transition: .2s ease;
}
.product-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.product-card .name { font-size: 15px; font-weight: 650; line-height: 1.35; }
.product-card:hover .name { color: var(--accent); }
.product-card .sub { font-size: 12.5px; color: var(--text-3); }
.pc-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border);
}
.pc-add {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 8px;
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 12px; font-weight: 650; color: var(--text-2); transition: .18s ease;
}
.pc-add:hover { border-color: var(--accent); color: var(--accent); }
.pc-add.is-added { background: var(--ok-bg); border-color: transparent; color: var(--ok); }

/* ----------------------------------------------------------- 7.详情页 */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 20px 0 16px; font-size: 13px; color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .6; }
.breadcrumb .current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.detail-hero { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px; }
.detail-head { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.detail-chip {
    width: 60px; height: 60px; border-radius: 16px;
    display: grid; place-items: center; color: #fff;
    font-size: 22px; font-weight: 800;
}
.detail-chip.is-brand { padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.detail-chip.is-brand img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-chip.is-abbr { padding: 0 5px; letter-spacing: .04em; line-height: 1.15; text-align: center; word-break: break-word; }
.detail-title { font-size: clamp(21px, 3vw, 30px); letter-spacing: -.03em; word-break: break-word; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 11px; font-size: 13px; color: var(--text-2); }
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.summary { padding: 18px 24px 20px; border-top: 1px solid var(--border); color: var(--text-2); line-height: 1.7; }

.stat-strip {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}
.stat { padding: 15px 20px; border-right: 1px solid var(--border); min-width: 0; }
.stat:nth-child(4n) { border-right: 0; }
.stat:last-child { border-right: 0; }
.stat:nth-child(n+5) { border-top: 1px solid var(--border); }
.stat .k {
    font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stat .v { margin-top: 6px; font-family: var(--ff-mono); font-size: 16px; font-weight: 650; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; margin-top: 22px; }
.detail-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 82px; }

.spec-nav { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.spec-nav .chip { height: 29px; font-size: 12.5px; }
.spec-rows { display: flex; flex-direction: column; }
.spec-row {
    display: grid; grid-template-columns: minmax(130px, 36%) 1fr; gap: 14px;
    align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--border);
}
.spec-row:nth-child(even) { background: var(--surface-2); }
.spec-row:last-child { border-bottom: 0; }
.spec-key { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-2); }
.spec-val {
    font-family: var(--ff-mono); font-size: 14px; font-weight: 650;
    text-align: right; word-break: break-word;
}
.spec-val a { color: var(--accent); }
.info-dot {
    display: inline-grid; place-items: center; width: 17px; height: 17px;
    border-radius: 50%; background: var(--surface-3); color: var(--text-3);
    font-size: 10px; font-weight: 800; cursor: help;
}
.info-dot:hover { background: var(--accent); color: #fff; }

.bench-row { padding: 13px 20px; border-bottom: 1px solid var(--border); }
.bench-row:last-child { border-bottom: 0; }
.bench-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bench-name { font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.bench-score { font-family: var(--ff-mono); font-size: 14px; font-weight: 700; }
.bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--soc)); }
.bar.is-cpu > i { background: linear-gradient(90deg, var(--cpu), #60a5fa); }
.bar.is-gpu > i { background: linear-gradient(90deg, var(--gpu), #34d399); }
.bar.is-soc > i { background: linear-gradient(90deg, var(--soc), #c084fc); }

.rank-list { display: flex; flex-direction: column; }
.rank-row { padding: 10px 18px; border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: 0; }
.rank-row.is-current { background: var(--accent-soft); }
.rank-line { display: flex; align-items: center; gap: 10px; }
.rank-no {
    width: 22px; height: 22px; border-radius: 7px;
    display: grid; place-items: center; flex: none;
    background: var(--surface-3); color: var(--text-2);
    font-size: 11.5px; font-weight: 700;
}
.rank-row.is-current .rank-no { background: var(--accent); color: #fff; }
.rank-name { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name:hover { color: var(--accent); }
.rank-score { font-family: var(--ff-mono); font-size: 12.5px; color: var(--text-3); }
.rank-bar { margin: 7px 0 0 32px; }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 18px; }
.chip-cloud a {
    padding: 6px 11px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.chip-cloud a:hover { border-color: var(--accent); color: var(--accent); }

.rank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* ----------------------------------------------------------- 8.对比页 */
.cmp-scroll { overflow-x: auto; border-radius: var(--r-md); }
.cmp-grid { min-width: 660px; display: grid; }
.cmp-row { display: grid; grid-template-columns: var(--cols); border-bottom: 1px solid var(--border); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row.is-alt { background: var(--surface-2); }
.cmp-head-row { background: var(--surface); border-bottom: 1px solid var(--border); }
.cmp-cell { padding: 12px 16px; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.cmp-cell.is-key { color: var(--text-2); border-right: 1px solid var(--border); }
.cmp-cell.is-val { justify-content: center; text-align: center; font-family: var(--ff-mono); color: var(--text); }
.cmp-cell.is-val.is-win { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.cmp-cell.is-val.is-win::before { content: "▲"; font-size: 9px; }
.cmp-prod { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
.cmp-prod .pname { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.cmp-prod .pname:hover { color: var(--accent); }
.cmp-prod .pmeta { font-size: 12px; color: var(--text-3); }
.cmp-section-title {
    padding: 12px 16px; font-size: 13px; font-weight: 700;
    background: var(--surface-3); color: var(--text-2);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 9px;
}
.cmp-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-3); margin-top: 14px; }
.cmp-legend b { color: var(--ok); }

/* ------------------------------------------------------------- 9.博客 */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; padding-bottom: 40px; }
.static-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; padding-bottom: 40px; }
.post-rows { display: flex; flex-direction: column; gap: 14px; }
.post-row { display: flex; gap: 18px; padding: 16px; }
.post-row .thumb {
    flex: none; width: 200px; height: 118px; border-radius: var(--r-sm); overflow: hidden;
    background: var(--surface-3); border: 1px solid var(--border);
}
.post-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .ph, .post-row .thumb .ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--text-3); background: var(--surface-3);
}
.post-thumb .ph svg, .post-row .thumb .ph svg { width: 26px; height: 26px; }
.post-row .body { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.post-row h2 { font-size: 17px; line-height: 1.35; }
.post-row:hover h2 { color: var(--accent); }
.post-row .summary {
    border: 0; padding: 0; font-size: 13.5px; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-row .meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-3); margin-top: auto; }

.side-block { padding: 16px 18px; }
.side-block h3 { font-size: 13px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-links { display: flex; flex-direction: column; gap: 2px; }
.side-links a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-2);
}
.side-links a:hover { background: var(--surface-2); color: var(--text); }
.side-links a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }

.article { padding: 30px; }
.article-title { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -.03em; }
.article-meta {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
    padding: 16px 0 18px; margin-bottom: 22px;
    border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-3);
}
.article-meta .item { display: flex; align-items: center; gap: 7px; }
.article-meta svg { width: 15px; height: 15px; }

.prose { color: var(--text-2); line-height: 1.78; font-size: 15.5px; }
.prose > * + * { margin-top: 1.05em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 1.7em; }
.prose h2 { font-size: 1.45em; padding-bottom: .35em; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 1.2em; }
.prose h4 { font-size: 1.05em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose code {
    padding: 2px 6px; border-radius: var(--r-xs);
    background: var(--surface-3); color: var(--soc);
    font-family: var(--ff-mono); font-size: .88em;
}
.prose pre {
    padding: 16px; border-radius: var(--r-sm); overflow-x: auto;
    background: var(--surface-2); border: 1px solid var(--border);
}
.prose pre code { background: none; color: var(--text); padding: 0; }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li { margin: .4em 0; }
.prose blockquote {
    padding: 4px 0 4px 16px; border-left: 3px solid var(--accent);
    color: var(--text-3); font-style: italic;
}
.prose img { border-radius: var(--r-sm); }
.prose hr { border: 0; border-top: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 700; }

/* ------------------------------------------------------------- 10.页脚 */
.site-footer { margin-top: 60px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid {
    display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 30px;
    padding: 38px 0 30px;
}
.footer-grid p { font-size: 13.5px; color: var(--text-2); line-height: 1.7; max-width: 46ch; margin-top: 12px; }
.footer-title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 3px; }
.footer-links a { padding: 5px 0; font-size: 13.5px; color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between;
    padding: 16px 0; border-top: 1px solid var(--border);
    font-size: 12.5px; color: var(--text-3);
}

/* ----------------------------------------------------------- 11.浮层 */
.compare-dock {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 292px; padding: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); box-shadow: var(--shadow-2);
}
.compare-dock[hidden] { display: none; }
.dock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.dock-head .t { font-size: 13px; font-weight: 700; }
.dock-head .t span { color: var(--accent); }
.dock-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 11px; }
.dock-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 9px;
    background: var(--surface-2); border: 1px solid var(--border); font-size: 13px;
}
.dock-item .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-remove {
    width: 20px; height: 20px; border-radius: 6px;
    display: grid; place-items: center; flex: none;
    background: transparent; border: 0; color: var(--text-3); font-size: 15px; line-height: 1;
}
.dock-remove:hover { background: var(--danger-soft); color: var(--danger); }

#compare-toast {
    position: fixed; top: 78px; right: 20px; z-index: 9999;
    padding: 12px 18px; border-radius: 11px;
    color: #fff; font-size: 13.5px; font-weight: 600;
    box-shadow: var(--shadow-2);
    transition: transform .3s ease, opacity .3s ease;
}

.modal {
    position: fixed; inset: 0; z-index: 9999; display: none;
    align-items: center; justify-content: center; padding: 18px;
    background: var(--overlay);
}
.modal-box {
    width: 100%; max-width: 420px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); box-shadow: var(--shadow-2);
}
.modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 15px; }
.modal-head button { background: none; border: 0; color: var(--text-3); display: grid; place-items: center; }
.modal-head button:hover { color: var(--text); }
.modal form { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.modal label { display: block; font-size: 12.5px; font-weight: 650; color: var(--text-2); margin-bottom: 5px; }

#param-tooltip {
    position: fixed; z-index: 9998; max-width: 320px; padding: 11px 13px;
    background: var(--surface); color: var(--text-2); font-size: 13px; line-height: 1.6;
    border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: var(--shadow-2);
}
#param-tooltip[hidden] { display: none; }

/* ------------------------------------------------------- 11.5 检测工具 */
.detect-card { margin-top: 22px; overflow: hidden; }
.detect-card .card-head h2 { font-size: 15px; }
.detect-hint { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.detect-hint code {
    font-family: var(--ff-mono); font-size: 12.5px; padding: 1px 5px;
    background: var(--surface-3); border-radius: var(--r-xs);
}
.detect-card .spec-rows { margin: 16px -20px -20px; border-top: 1px solid var(--border); }
.detect-card .spec-empty { padding: 26px 20px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.spec-row .k { font-size: 13.5px; color: var(--text-2); }
.spec-row .v {
    font-family: var(--ff-mono); font-size: 14px; font-weight: 650;
    text-align: right; word-break: break-word;
}
.spec-link { display: inline-block; margin-left: 10px; font-family: var(--ff); font-size: 12.5px; font-weight: 700; color: var(--accent); }
.spec-link:hover { color: var(--accent-2); }

.detect-fill { display: flex; gap: 10px; margin-top: 15px; }
.detect-fill .field { flex: 1; min-width: 0; }
.detect-fill .btn { flex: none; }

.match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.match-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.match-name { font-size: 14.5px; font-weight: 650; line-height: 1.4; }
.match-name:hover { color: var(--accent); }
.match-actions { display: flex; gap: 8px; margin-top: auto; }
.match-actions .btn { flex: 1; }

.notice {
    display: flex; align-items: flex-start; gap: 11px; margin: 26px 0 50px;
    padding: 15px 18px; font-size: 13px; line-height: 1.7; color: var(--text-2);
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
}
.notice svg { color: var(--text-3); margin-top: 2px; }
.notice strong { color: var(--text); }
.notice-text { flex: 1; min-width: 0; }
.notice-action { flex: none; margin-left: auto; }

/* 首页检测入口 */
.detect-cta {
    display: flex; align-items: center; gap: 15px; padding: 18px 20px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); box-shadow: var(--shadow-1);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.detect-cta:hover { border-color: var(--accent); box-shadow: var(--shadow-2); }
.detect-cta-icon {
    flex: none; width: 46px; height: 46px; border-radius: 13px;
    display: grid; place-items: center; color: #fff; background: var(--accent);
}
.detect-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.detect-cta-text strong { font-size: 15.5px; }
.detect-cta-text span { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.detect-cta-arrow { color: var(--text-3); transition: transform .18s ease, color .18s ease; }
.detect-cta:hover .detect-cta-arrow { color: var(--accent); transform: translateX(3px); }

/* ------------------------------------------------------- 12.响应式 */
@media (max-width: 1120px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: minmax(0, 1fr); }
    .detail-side { position: static; }
}

@media (max-width: 1023px) {
    .list-layout { grid-template-columns: minmax(0, 1fr); }
    .filter-panel { position: static; }
    .filter-summary { display: flex; }
    .filter-body { display: none; }
    .filter-toggle:checked ~ .filter-panel .filter-body { display: block; }
    .blog-layout { grid-template-columns: minmax(0, 1fr); }
    .static-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
    .main-nav, .header-search { display: none; }
    .header-actions { margin-left: auto; }
    .menu-btn { display: grid; }
    .drawer.is-open { display: block; }
    .tabbar { display: grid; }
    body { padding-bottom: 68px; }
    .compare-dock { left: 14px; right: 14px; bottom: 78px; width: auto; }
    .cmp-head-row { top: 0; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .hero { padding-top: 32px; }
    .page-head .search-field { width: 100%; }
    .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .compare-grid { grid-template-columns: minmax(0, 1fr); }
    .db-grid { grid-template-columns: minmax(0, 1fr); }
    .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .post-row { flex-direction: column; gap: 12px; }
    .post-row .thumb { width: 100%; height: 172px; }
    .article { padding: 20px; }
    .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { padding: 13px 15px; }
    .stat:nth-child(2n) { border-right: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
    .match-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .container { padding: 0 15px; }
    .brand-sub { display: none; }
    .header-inner { height: 58px; gap: 10px; }
    .header-actions { gap: 5px; }
    .lang-btn { padding: 0 9px; gap: 5px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 11px; }
    .spec-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
    .spec-val, .spec-row .v { text-align: left; }
    .detail-hero { padding: 18px; }
    .detail-actions { width: 100%; }
    .detail-actions .btn { flex: 1; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .cmp-cell { padding: 10px 12px; }
    .notice { flex-wrap: wrap; }
    .detect-fill { flex-direction: column; }
    .detect-fill .btn { width: 100%; }
}