/* ============================================================
 * PCModel - 样式表
 * 深色科技风 / 橙色主色
 * ============================================================ */

:root {
  --bg: #080a0f;
  --bg-soft: #0b0e15;
  --panel: #11151e;
  --panel-2: #161b27;
  --panel-3: #1c2231;
  --line: #222a3b;
  --line-2: #2e3850;
  --txt: #e9edf7;
  --txt-2: #9aa5bf;
  --txt-3: #5f6a84;
  --accent: #ff6b2c;
  --accent-2: #ffa62b;
  --accent-soft: rgba(255, 107, 44, .12);
  --cyan: #35d3e8;
  --green: #2fd07b;
  --red: #ff4d5e;
  --amber: #ffb020;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px -22px rgba(0, 0, 0, .95);
  --grad: linear-gradient(135deg, #ff6b2c 0%, #ff3d7f 100%);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

input, select { font-family: inherit; }

::selection { background: rgba(255, 107, 44, .35); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #262f42; border-radius: 8px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: #35405a; }

.ico { flex: none; display: block; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* ================= 顶栏 ================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 10, 15, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 18px -6px rgba(255, 107, 44, .9);
}
.logo-sub { color: var(--txt-3); font-size: 11px; font-weight: 500; letter-spacing: 1.4px; margin-left: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 7px 13px; border-radius: 9px; color: var(--txt-2); font-size: 13.5px;
  transition: .16s;
}
.nav-links a:hover { color: var(--txt); background: var(--panel-2); }
.nav-links a.on { color: var(--txt); background: var(--panel-3); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--txt);
  transition: .16s;
}
.btn:hover { background: var(--panel-3); border-color: #3a4560; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 26px -12px rgba(255, 107, 44, .95); }
.btn-primary:hover { background: linear-gradient(135deg, #ff7d43 0%, #ff518d 100%); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--txt-2); }
.btn-ghost:hover { color: var(--txt); background: var(--panel-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-danger { color: var(--red); border-color: rgba(255, 77, 94, .3); }
.btn-danger:hover { background: rgba(255, 77, 94, .1); border-color: rgba(255, 77, 94, .5); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ================= 通用卡片 / 徽标 ================= */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
  background: var(--panel-3); color: var(--txt-2); border: 1px solid var(--line-2);
}
.badge-accent { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(255, 107, 44, .3); }
.badge-green { background: rgba(47, 208, 123, .12); color: var(--green); border-color: rgba(47, 208, 123, .28); }
.badge-red { background: rgba(255, 77, 94, .12); color: var(--red); border-color: rgba(255, 77, 94, .3); }
.badge-amber { background: rgba(255, 176, 32, .12); color: var(--amber); border-color: rgba(255, 176, 32, .3); }
.badge-cyan { background: rgba(53, 211, 232, .12); color: var(--cyan); border-color: rgba(53, 211, 232, .28); }

/* ================= 首页 Hero ================= */
.hero { position: relative; overflow: hidden; padding: 76px 0 62px; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(760px 380px at 18% 0%, rgba(255, 107, 44, .16), transparent 62%),
    radial-gradient(680px 360px at 82% 12%, rgba(53, 211, 232, .10), transparent 60%),
    radial-gradient(600px 300px at 50% 100%, rgba(255, 61, 127, .08), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 78%);
}
.hero-in { position: relative; z-index: 2; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 7px; border-radius: 999px;
  background: rgba(255, 107, 44, .1); border: 1px solid rgba(255, 107, 44, .26);
  font-size: 12.5px; color: var(--accent-2); margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 {
  font-size: 52px; line-height: 1.16; margin: 0 0 18px; font-weight: 800; letter-spacing: -1px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 16px; color: var(--txt-2); max-width: 660px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 首页搜索 */
.hero-search {
  max-width: 620px; margin: 0 auto 26px; position: relative;
}
.hero-search input {
  width: 100%; height: 52px; padding: 0 118px 0 46px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
  color: var(--txt); font-size: 14.5px; outline: none; transition: .18s;
}
.hero-search input:focus { border-color: rgba(255, 107, 44, .6); box-shadow: 0 0 0 4px rgba(255, 107, 44, .1); }
.hero-search .si { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--txt-3); }
.hero-search .sb { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.search-pop {
  position: absolute; left: 0; right: 0; top: 60px; z-index: 30;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .95); overflow: hidden; text-align: left;
  max-height: 340px; overflow-y: auto; display: none;
}
.search-pop.show { display: block; }
.search-pop .sp-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.search-pop .sp-item:last-child { border-bottom: none; }
.search-pop .sp-item:hover { background: var(--panel-3); }
.search-pop .sp-cat { font-size: 11px; color: var(--txt-3); width: 62px; flex: none; }
.search-pop .sp-name { flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-pop .sp-price { font-size: 13px; color: var(--accent-2); font-weight: 600; }
.search-pop .sp-empty { padding: 18px; text-align: center; color: var(--txt-3); font-size: 13px; }

.hero-stats { display: flex; gap: 34px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.hero-stats .hs { text-align: center; }
.hero-stats .hs b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.4px;
  background: linear-gradient(180deg, #fff, #9aa5bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .hs span { font-size: 12.5px; color: var(--txt-3); }

/* ================= 区块 ================= */
.section { padding: 54px 0; }
.section-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: 25px; margin: 0; font-weight: 700; letter-spacing: -.4px; }
.section-head p { margin: 0; color: var(--txt-3); font-size: 13.5px; }
.section-head .sh-right { margin-left: auto; }

/* ================= 预设配置 ================= */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(316px, 1fr)); gap: 16px; }
.preset {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden; transition: .2s;
}
.preset::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad);
  opacity: 0; transition: .2s;
}
.preset:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 22px 48px -26px rgba(0, 0, 0, 1); }
.preset:hover::before { opacity: 1; }
.preset-top { display: flex; align-items: center; gap: 10px; }
.preset-top h3 { margin: 0; font-size: 17px; font-weight: 700; }
.preset-desc { color: var(--txt-2); font-size: 13px; margin: 0; min-height: 40px; }
.preset-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-parts span {
  font-size: 11.5px; color: var(--txt-2); background: var(--bg-soft);
  border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.preset-parts span i { font-style: normal; color: var(--txt-3); margin-right: 4px; }
.preset-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.preset-price { font-size: 22px; font-weight: 800; letter-spacing: -.6px; color: var(--accent-2); }
.preset-price small { font-size: 11px; color: var(--txt-3); font-weight: 500; display: block; letter-spacing: 0; }
.preset-foot .btn { margin-left: auto; }

/* ================= 分类快捷 ================= */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.cat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: .18s;
}
.cat-card:hover { border-color: rgba(255, 107, 44, .45); background: var(--panel-2); transform: translateY(-2px); }
.cat-card .cc-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; }
.cat-card h4 { margin: 0; font-size: 14.5px; font-weight: 600; }
.cat-card .cc-meta { font-size: 12px; color: var(--txt-3); display: flex; justify-content: space-between; }
.cat-card .cc-meta b { color: var(--txt-2); font-weight: 600; }

/* ================= 特性 ================= */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .f-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.feature h4 { margin: 0 0 7px; font-size: 15.5px; }
.feature p { margin: 0; color: var(--txt-2); font-size: 13px; }

/* ================= 装机器布局 ================= */
.builder-top {
  border-bottom: 1px solid var(--line); background: var(--bg-soft);
  position: sticky; top: 62px; z-index: 50;
}
.bt-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.bt-stat { display: flex; flex-direction: column; gap: 1px; }
.bt-stat span { font-size: 11px; color: var(--txt-3); letter-spacing: .3px; }
.bt-stat b { font-size: 16px; font-weight: 700; }
.bt-stat b.accent { color: var(--accent-2); }
.bt-sep { width: 1px; height: 32px; background: var(--line); }
.bt-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }

.builder { display: grid; grid-template-columns: 272px minmax(0, 1fr) 380px; gap: 18px; padding: 20px 0 60px; align-items: start; }

/* 左侧分类 */
.side { position: sticky; top: 148px; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }
.side-head h3 { margin: 0; font-size: 13px; color: var(--txt-3); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.side-prog { font-size: 12px; color: var(--txt-2); }
.prog-bar { height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; margin: 0 4px 12px; }
.prog-bar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; transition: width .35s cubic-bezier(.4, 0, .2, 1); }

.cat-list { display: flex; flex-direction: column; gap: 6px; }
.cat-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--panel);
  cursor: pointer; transition: .16s; text-align: left; width: 100%; position: relative;
}
.cat-item:hover { border-color: var(--line-2); background: var(--panel-2); }
.cat-item.on { border-color: rgba(255, 107, 44, .6); background: var(--accent-soft); }
.cat-item.on::before {
  content: ''; position: absolute; left: -1px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.cat-item .ci-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--panel-3); color: var(--txt-3);
  display: grid; place-items: center; flex: none; transition: .16s; }
.cat-item.filled .ci-ico { background: rgba(47, 208, 123, .12); color: var(--green); }
.cat-item.on .ci-ico { background: rgba(255, 107, 44, .18); color: var(--accent); }
.cat-item .ci-body { min-width: 0; flex: 1; }
.cat-item .ci-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.cat-item .ci-name em { font-style: normal; font-size: 11px; color: var(--txt-3); font-weight: 400; }
.cat-item .ci-part { font-size: 11.5px; color: var(--txt-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-item .ci-price { font-size: 12.5px; font-weight: 700; color: var(--accent-2); flex: none; }
.cat-item .ci-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex: none; }
.cat-item.filled .ci-dot { background: var(--green); box-shadow: 0 0 8px rgba(47, 208, 123, .8); }
.cat-item.opt .ci-name em { color: var(--txt-3); }

/* 中间列表 */
.list-panel { min-width: 0; }
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.tb-row { display: flex; align-items: center; gap: 10px; }
.search-box { flex: 1; position: relative; }
.search-box input {
  width: 100%; height: 40px; padding: 0 14px 0 40px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--txt); font-size: 13.5px; outline: none; transition: .16s;
}
.search-box input:focus { border-color: rgba(255, 107, 44, .55); background: var(--panel-2); }
.search-box .si { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--txt-3); }
.select {
  height: 40px; padding: 0 32px 0 12px; border-radius: 10px;
  background: var(--panel) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa5bf' stroke-width='2.2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--line); color: var(--txt); font-size: 13px; outline: none; appearance: none; cursor: pointer;
}
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500;
  background: var(--panel); border: 1px solid var(--line); color: var(--txt-2); transition: .16s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--txt); border-color: var(--line-2); }
.chip.on { background: var(--accent-soft); border-color: rgba(255, 107, 44, .5); color: var(--accent-2); }
.list-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--txt-3); margin-bottom: 10px; }

.part-list { display: flex; flex-direction: column; gap: 10px; }
.part {
  display: flex; align-items: flex-start; gap: 14px; padding: 15px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  transition: .16s; position: relative;
}
.part:hover { border-color: var(--line-2); background: var(--panel-2); }
.part.picked { border-color: rgba(47, 208, 123, .55); background: rgba(47, 208, 123, .05); }
.part.bad { opacity: .62; }
.part.bad:hover { opacity: 1; }
.part-body { flex: 1; min-width: 0; }
.part-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.part-title h4 { margin: 0; font-size: 14.5px; font-weight: 650; }
.part-sub { color: var(--txt-2); font-size: 12.5px; margin-top: 3px; }
.part-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.part-specs span {
  font-size: 11px; color: var(--txt-2); background: var(--bg-soft);
  border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px;
}
.part-specs span b { color: var(--txt-3); font-weight: 500; margin-right: 3px; }
.part-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.part-price { font-size: 17px; font-weight: 800; color: var(--accent-2); letter-spacing: -.3px; }
.part-brand { font-size: 11px; color: var(--txt-3); }
.part-flag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 5px;
}
.part-flag.ok { background: rgba(47, 208, 123, .12); color: var(--green); }
.part-flag.bad { background: rgba(255, 77, 94, .13); color: var(--red); }
.part-flag.warn { background: rgba(255, 176, 32, .13); color: var(--amber); }
.part-why { font-size: 11.5px; color: var(--red); margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.part-why.warn { color: var(--amber); }

.empty-state { padding: 64px 20px; text-align: center; color: var(--txt-3); }
.empty-state .es-ico { width: 62px; height: 62px; border-radius: 18px; background: var(--panel-2);
  display: grid; place-items: center; margin: 0 auto 16px; color: var(--txt-3); }
.empty-state h4 { color: var(--txt-2); margin: 0 0 6px; font-size: 15px; }
.empty-state p { margin: 0; font-size: 13px; }

/* 右侧摘要 */
.summary { position: sticky; top: 148px; display: flex; flex-direction: column; gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 9px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.panel-head .ph-right { margin-left: auto; font-size: 12px; color: var(--txt-3); }
.panel-body { padding: 15px; }

/* 机箱示意图 */
.caseview { padding: 14px; background: var(--bg-soft); }
.case-frame {
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; gap: 8px; position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .012), transparent);
}
.case-frame::after {
  content: '机箱'; position: absolute; top: -8px; left: 12px; font-size: 10px;
  background: var(--bg-soft); padding: 0 6px; color: var(--txt-3); letter-spacing: 1px;
}
.cv-row { display: flex; gap: 8px; }
.cv-zone {
  border: 1px dashed var(--line-2); border-radius: 9px; padding: 7px 9px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  cursor: pointer; transition: .18s; min-width: 0; position: relative; background: rgba(255, 255, 255, .008);
}
.cv-zone:hover { border-color: var(--txt-3); background: rgba(255, 255, 255, .03); }
.cv-zone .cz-label { font-size: 10px; color: var(--txt-3); letter-spacing: .6px; }
.cv-zone .cz-val { font-size: 11.5px; color: var(--txt-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-zone.filled { border-style: solid; border-color: rgba(255, 107, 44, .55); background: var(--accent-soft); }
.cv-zone.filled .cz-label { color: var(--accent-2); }
.cv-zone.filled .cz-val { color: var(--txt); font-weight: 600; }
.cv-zone.filled.problem { border-color: rgba(255, 77, 94, .6); background: rgba(255, 77, 94, .1); }
.cv-zone.filled.problem .cz-label { color: var(--red); }
.cv-zone.filled.optional-ok { border-color: rgba(53, 211, 232, .5); background: rgba(53, 211, 232, .08); }
.cv-zone.filled.optional-ok .cz-label { color: var(--cyan); }
.cv-cool { flex: 0 0 84px; }
.cv-board { flex: 1; }
.cv-gpu { min-height: 44px; }
.cv-store { flex: 0 0 132px; }
.cv-psu { flex: 1; }
.cv-subs { display: flex; gap: 6px; margin-top: 4px; }
.cv-sub {
  font-size: 10.5px; padding: 2px 7px; border-radius: 5px; border: 1px dashed var(--line-2);
  color: var(--txt-3); cursor: pointer; transition: .16s;
}
.cv-sub:hover { border-color: var(--txt-3); }
.cv-sub.filled { border-style: solid; border-color: rgba(255, 107, 44, .5); color: var(--accent-2); background: var(--accent-soft); }

/* 摘要清单 */
.sum-list { display: flex; flex-direction: column; }
.sum-row { display: flex; align-items: center; gap: 10px; padding: 9px 15px; border-bottom: 1px solid var(--line); }
.sum-row:last-child { border-bottom: none; }
.sum-row .sr-ico { color: var(--txt-3); flex: none; }
.sum-row .sr-body { flex: 1; min-width: 0; }
.sum-row .sr-cat { font-size: 10.5px; color: var(--txt-3); letter-spacing: .3px; }
.sum-row .sr-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-row .sr-price { font-size: 12.5px; font-weight: 700; color: var(--txt-2); flex: none; }
.sum-row .sr-del { color: var(--txt-3); opacity: 0; transition: .15s; flex: none; }
.sum-row:hover .sr-del { opacity: 1; }
.sum-row .sr-del:hover { color: var(--red); }
.sum-empty { padding: 26px 15px; text-align: center; color: var(--txt-3); font-size: 12.5px; }

/* 总计 */
.total-box { padding: 16px 15px; border-top: 1px solid var(--line); background: var(--bg-soft); }
#listTitle em {
  font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--txt-3);
  letter-spacing: .8px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px; background: var(--panel-3); border: 1px solid var(--line);
}
.total-line { display: flex; align-items: baseline; gap: 8px; }
.total-line span { font-size: 12.5px; color: var(--txt-3); }
.total-line b { margin-left: auto; font-size: 27px; font-weight: 800; letter-spacing: -1px; color: var(--accent-2); }
.mini-stats { display: flex; gap: 10px; margin-top: 12px; }
.mini-stat { flex: 1; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.mini-stat span { font-size: 10.5px; color: var(--txt-3); display: block; }
.mini-stat b { font-size: 13.5px; }
.mini-stat b.ok { color: var(--green); }
.mini-stat b.warn { color: var(--amber); }
.mini-stat b.err { color: var(--red); }

.power-bar { margin-top: 12px; }
.power-track { height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; position: relative; }
.power-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2fd07b, #ffb020 68%, #ff4d5e); transition: width .35s; }
.power-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--txt-3); margin-top: 6px; }

/* 兼容性列表 */
.compat-list { display: flex; flex-direction: column; }
.compat-item { display: flex; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.compat-item:last-child { border-bottom: none; }
.compat-item .ci-mark { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex: none; margin-top: 1px; }
.compat-item.error .ci-mark { background: rgba(255, 77, 94, .14); color: var(--red); }
.compat-item.warn .ci-mark { background: rgba(255, 176, 32, .14); color: var(--amber); }
.compat-item.info .ci-mark { background: rgba(53, 211, 232, .14); color: var(--cyan); }
.compat-item.ok .ci-mark { background: rgba(47, 208, 123, .14); color: var(--green); }
.compat-item h5 { margin: 0 0 3px; font-size: 12.5px; font-weight: 650; }
.compat-item.error h5 { color: var(--red); }
.compat-item.warn h5 { color: var(--amber); }
.compat-item.info h5 { color: var(--cyan); }
.compat-item.ok h5 { color: var(--green); }
.compat-item p { margin: 0; font-size: 11.5px; color: var(--txt-2); line-height: 1.55; }

/* 状态条 */
.status-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line);
}
.status-bar .sb-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; }
.status-bar.ok { color: var(--green); background: rgba(47, 208, 123, .07); }
.status-bar.ok .sb-ico { background: rgba(47, 208, 123, .16); }
.status-bar.warn { color: var(--amber); background: rgba(255, 176, 32, .07); }
.status-bar.warn .sb-ico { background: rgba(255, 176, 32, .16); }
.status-bar.error { color: var(--red); background: rgba(255, 77, 94, .08); }
.status-bar.error .sb-ico { background: rgba(255, 77, 94, .16); }
.status-bar.partial, .status-bar.empty { color: var(--txt-2); background: var(--bg-soft); }
.status-bar.partial .sb-ico, .status-bar.empty .sb-ico { background: var(--panel-3); color: var(--txt-3); }

/* ================= 弹窗 / 提示 ================= */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(4, 6, 10, .78);
  backdrop-filter: blur(6px); display: none; place-items: center; padding: 20px;
}
.modal-mask.show { display: grid; }
.modal {
  width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 1); overflow: hidden;
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-head .mh-x { margin-left: auto; color: var(--txt-3); }
.modal-head .mh-x:hover { color: var(--txt); }
.modal-body { padding: 18px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--txt-3); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 9px;
  padding: 10px 12px; color: var(--txt); font-size: 13px; outline: none; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: rgba(255, 107, 44, .6); }
.field textarea { min-height: 190px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.7; }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  z-index: 300; padding: 11px 18px; border-radius: 11px;
  background: var(--panel-3); border: 1px solid var(--line-2); color: var(--txt);
  font-size: 13px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 1);
  opacity: 0; pointer-events: none; transition: .24s; display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(47, 208, 123, .5); }
.toast.err { border-color: rgba(255, 77, 94, .5); }

/* ================= 页脚 ================= */
.footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 30px; color: var(--txt-3); font-size: 12.5px; }
.footer-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-in .fi-right { margin-left: auto; display: flex; gap: 18px; }
.footer a:hover { color: var(--txt-2); }

/* ================= 响应式 ================= */
@media (max-width: 1240px) {
  .builder { grid-template-columns: 240px minmax(0, 1fr); }
  .summary { grid-column: 1 / -1; position: static; }
  .summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .side { top: 148px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 52px 0 44px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 14.5px; }
  .nav-links { display: none; }
  .builder { grid-template-columns: 1fr; }
  .side { position: static; }
  .cat-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .cat-item { min-width: 176px; }
  .bt-in { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 14px; }
  .bt-right { margin-left: 0; width: 100%; }
  .builder-top { position: static; }
  .part { flex-wrap: wrap; }
  .part-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .hero-stats { gap: 22px; }
}

/* ============================================================
   新增：颜色标注 / 购买链接 / 价格备注
   ============================================================ */

/* 色块 */
.color-dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); vertical-align: -1px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22);
}
.color-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--txt-2);
  background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px;
  white-space: nowrap; line-height: 1.5;
}
.chip .color-dot,
.search-pop .sp-item .color-dot { margin-right: 2px; }
.part-specs span.spec-color { display: inline-flex; align-items: center; gap: 4px; }

/* 购买按钮 */
.buy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 32px; padding: 0 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none;
  background: rgba(53, 211, 232, .12); color: var(--cyan) !important;
  border: 1px solid rgba(53, 211, 232, .38); transition: .16s;
}
.buy-btn:hover { background: rgba(53, 211, 232, .22); border-color: rgba(53, 211, 232, .65); }
.buy-btn-sm { width: 28px; height: 28px; padding: 0; border-radius: 7px; }
.part-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.sum-row .sr-buy { color: var(--cyan); opacity: .75; flex: none; display: inline-flex; transition: .15s; }
.sum-row .sr-buy:hover { opacity: 1; }
.sum-row .sr-buy.none { color: var(--txt-3); opacity: .3; cursor: default; }

/* 「有购买链接」相关标记 */
.badge svg { vertical-align: -1px; }
.badge-cyan svg { margin-right: 2px; }
.ci-link {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  font-size: 10.5px; color: var(--cyan); background: rgba(53, 211, 232, .12);
  border: 1px solid rgba(53, 211, 232, .3); border-radius: 5px; padding: 1px 5px;
}
.chip .chip-num {
  margin-left: 5px; font-size: 10.5px; font-weight: 700; color: var(--cyan);
  background: rgba(53, 211, 232, .16); border-radius: 4px; padding: 0 4px;
}
.link-filter-tag { color: var(--cyan); display: inline-flex; align-items: center; gap: 4px; }
.buy-summary {
  display: flex; align-items: center; gap: 6px; margin-top: 9px;
  font-size: 11.5px; color: var(--cyan); line-height: 1.5;
  background: rgba(53, 211, 232, .08); border: 1px solid rgba(53, 211, 232, .22);
  border-radius: 8px; padding: 7px 9px;
}
.buy-summary.all { color: var(--green); background: rgba(47, 208, 123, .08); border-color: rgba(47, 208, 123, .22); }
.buy-summary b { font-weight: 700; }
.buy-summary-btn {
  margin-left: auto; flex: none; font-size: 11px; color: inherit; font-weight: 600;
  border: 1px solid currentColor; border-radius: 6px; padding: 2px 7px; opacity: .85;
}
.buy-summary-btn:hover { opacity: 1; }

/* 价格备注 */
.price-notice-wrap { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.price-notice {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  font-size: 12.5px; color: var(--txt-2); line-height: 1.55;
}
.price-notice b { color: var(--accent-2); }
.price-notice .ico { flex: none; color: var(--accent); }
.price-note {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--amber); margin-top: 5px; line-height: 1.5;
}
.price-note-inline { color: var(--amber) !important; display: inline-flex; align-items: center; gap: 4px; }
.part-price { position: relative; }
.part-note {
  font-size: 11.5px; color: var(--txt-3); margin-top: 7px;
  display: flex; align-items: flex-start; gap: 5px;
}

/* 机箱示意图：颜色角标 + 风扇位 */
.case-color {
  position: absolute; top: -8px; right: 12px; background: var(--bg-soft);
  padding: 0 6px; font-size: 10px; color: var(--txt-2);
  display: flex; align-items: center; letter-spacing: .4px;
}
.case-color .color-dot { width: 9px; height: 9px; margin-right: 4px; }
.cv-fan { min-height: 34px; }

/* 首页：预设颜色标签 / 购买链接提示 / 分类色卡 */
.preset-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-links { font-size: 11px; color: var(--cyan); display: flex; align-items: center; gap: 4px; margin-top: -4px; }
.cc-colors { display: flex; gap: 4px; margin-top: 2px; }
.cc-colors .color-dot { margin-right: 0; width: 10px; height: 10px; }

/* chips 分隔符 */
.chip-sep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; flex: none; align-self: center; }

@media (max-width: 900px) {
  .price-notice { font-size: 12px; align-items: flex-start; }
  .part-actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   主题：亮色
   ------------------------------------------------------------
   上面的基础样式是深色；亮色由 <html data-theme="light"> 覆盖。
   默认（无属性或 JS 未执行）也是亮色 —— index.html / builder.html
   的 <head> 里有一小段同步脚本按 localStorage 设置该属性。
   ============================================================ */
html[data-theme="light"] {
  --bg: #f1f4fa;
  --bg-soft: #e9edf6;
  --panel: #ffffff;
  --panel-2: #f7f9fd;
  --panel-3: #eaeff8;
  --line: #e0e6f1;
  --line-2: #c8d2e3;
  --txt: #131a2a;
  --txt-2: #55607a;
  --txt-3: #8992a8;
  --accent: #ff6b2c;
  --accent-2: #d1540d;
  --accent-soft: #fff0e8;
  --cyan: #0d8ba3;
  --green: #16a35c;
  --red: #d62f42;
  --amber: #b06d00;
  --shadow: 0 14px 34px -22px rgba(23, 34, 64, .32);
}
html[data-theme="light"] ::selection { background: rgba(255, 107, 44, .22); }

/* 滚动条 */
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c3ccdd; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #a9b4ca; }

/* 顶栏 / 按钮 */
html[data-theme="light"] .nav { background: rgba(255, 255, 255, .86); }
html[data-theme="light"] .logo-mark { box-shadow: 0 6px 18px -8px rgba(255, 107, 44, .6); }
html[data-theme="light"] .btn:hover { border-color: #b7c2d6; }
html[data-theme="light"] .btn-primary { box-shadow: 0 10px 24px -14px rgba(255, 107, 44, .8); }
html[data-theme="light"] .btn-danger { border-color: rgba(214, 47, 66, .3); }
html[data-theme="light"] .btn-danger:hover { background: rgba(214, 47, 66, .08); border-color: rgba(214, 47, 66, .5); }

/* 徽标 */
html[data-theme="light"] .badge-accent { border-color: rgba(255, 107, 44, .35); }
html[data-theme="light"] .badge-green { background: #e8f8ef; border-color: #b3e3c9; }
html[data-theme="light"] .badge-red { background: #fdecee; border-color: #f4bcc4; }
html[data-theme="light"] .badge-amber { background: #fdf4e2; border-color: #f0d7a4; }
html[data-theme="light"] .badge-cyan { background: #e6f5f9; border-color: #acdcea; }

/* 首页 Hero */
html[data-theme="light"] .hero::before {
  background:
    radial-gradient(760px 380px at 18% 0%, rgba(255, 107, 44, .12), transparent 62%),
    radial-gradient(680px 360px at 82% 12%, rgba(13, 139, 163, .08), transparent 60%),
    radial-gradient(600px 300px at 50% 100%, rgba(255, 61, 127, .06), transparent 65%);
}
html[data-theme="light"] .hero::after {
  background-image: linear-gradient(rgba(19, 26, 42, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 26, 42, .05) 1px, transparent 1px);
}
html[data-theme="light"] .hero-eyebrow { background: #fff2ea; border-color: #ffd0b5; }
html[data-theme="light"] .hero-search input:focus { box-shadow: 0 0 0 4px rgba(255, 107, 44, .14); }
html[data-theme="light"] .search-pop { box-shadow: 0 24px 50px -26px rgba(23, 34, 64, .4); }
html[data-theme="light"] .hero-stats .hs b {
  background: linear-gradient(180deg, #131a2a, #55607a);
  -webkit-background-clip: text; background-clip: text;
}
html[data-theme="light"] .preset:hover { box-shadow: 0 22px 48px -30px rgba(23, 34, 64, .45); }

/* 分类 / 筛选项 */
html[data-theme="light"] .cat-card:hover { border-color: rgba(255, 107, 44, .5); }
html[data-theme="light"] .cat-item.on { border-color: rgba(255, 107, 44, .55); }
html[data-theme="light"] .cat-item.filled .ci-ico { background: #e8f8ef; }
html[data-theme="light"] .cat-item.on .ci-ico { background: #ffeadf; }
html[data-theme="light"] .cat-item.filled .ci-dot { box-shadow: 0 0 8px rgba(22, 163, 92, .6); }
html[data-theme="light"] .search-box input:focus { border-color: rgba(255, 107, 44, .5); }
html[data-theme="light"] .chip.on { border-color: rgba(255, 107, 44, .45); }

/* 配件卡片 */
html[data-theme="light"] .part.picked { border-color: rgba(22, 163, 92, .5); background: #f2fbf6; }
html[data-theme="light"] .part-flag.ok { background: #e8f8ef; }
html[data-theme="light"] .part-flag.bad { background: #fdecee; }
html[data-theme="light"] .part-flag.warn { background: #fdf4e2; }

/* 机箱示意图 */
html[data-theme="light"] .case-frame { background: linear-gradient(160deg, rgba(19, 26, 42, .014), transparent); }
html[data-theme="light"] .cv-zone { background: rgba(19, 26, 42, .008); }
html[data-theme="light"] .cv-zone:hover { background: rgba(19, 26, 42, .035); }
html[data-theme="light"] .cv-zone.filled { border-color: rgba(255, 107, 44, .5); }
html[data-theme="light"] .cv-zone.filled.problem { border-color: rgba(214, 47, 66, .55); background: #fdecee; }
html[data-theme="light"] .cv-zone.filled.optional-ok { border-color: rgba(13, 139, 163, .45); background: #e6f5f9; }
html[data-theme="light"] .cv-sub.filled { border-color: rgba(255, 107, 44, .45); }

/* 摘要区 */
html[data-theme="light"] .power-fill { background: linear-gradient(90deg, #16a35c, #d99a00 68%, #d62f42); }
html[data-theme="light"] .compat-item.error .ci-mark { background: #fdecee; }
html[data-theme="light"] .compat-item.warn .ci-mark { background: #fdf4e2; }
html[data-theme="light"] .compat-item.info .ci-mark { background: #e6f5f9; }
html[data-theme="light"] .compat-item.ok .ci-mark { background: #e8f8ef; }
html[data-theme="light"] .status-bar.ok { background: #f2fbf6; }
html[data-theme="light"] .status-bar.ok .sb-ico { background: #d9f2e5; }
html[data-theme="light"] .status-bar.warn { background: #fdf8ee; }
html[data-theme="light"] .status-bar.warn .sb-ico { background: #f8ebd2; }
html[data-theme="light"] .status-bar.error { background: #fdf1f3; }
html[data-theme="light"] .status-bar.error .sb-ico { background: #fbdde1; }

/* 购买链接相关 */
html[data-theme="light"] .color-dot { border-color: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
html[data-theme="light"] .buy-btn { background: #e6f5f9; border-color: #a8d8e6; }
html[data-theme="light"] .buy-btn:hover { background: #d5eef5; border-color: #7cc5d9; }
html[data-theme="light"] .ci-link { background: #e6f5f9; border-color: #b5dee9; }
html[data-theme="light"] .chip .chip-num { background: #d5eef5; }
html[data-theme="light"] .buy-summary { background: #eef8fb; border-color: #c2e2eb; }
html[data-theme="light"] .buy-summary.all { background: #f2fbf6; border-color: #c3e8d5; }

/* 弹窗 / 提示 */
html[data-theme="light"] .modal-mask { background: rgba(22, 28, 42, .45); }
html[data-theme="light"] .modal { box-shadow: 0 40px 80px -34px rgba(23, 34, 64, .45); }
html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field textarea:focus { border-color: rgba(255, 107, 44, .5); }
html[data-theme="light"] .toast { box-shadow: 0 20px 40px -22px rgba(23, 34, 64, .4); }
html[data-theme="light"] .toast.ok { border-color: rgba(22, 163, 92, .45); }
html[data-theme="light"] .toast.err { border-color: rgba(214, 47, 66, .45); }

/* 主题切换按钮 */
.theme-btn { padding: 0 12px; }
.theme-btn svg { transition: transform .3s; }
.theme-btn:hover svg { transform: rotate(20deg); }

