/* ==========================================================================
   HUB —— 案例外壳（总览页 / 对照查看器）
   与新版同一套深色语汇，用来承载"提案"这件事本身
   ========================================================================== */
:root {
  --ink: #05080f;
  --ink-2: #080d18;
  --panel: #0d1422;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --text: #e9eff9;
  --muted: #93a4be;
  --muted-2: #6f819c;
  --accent: #2fe3c4;
  --amber: #ffb648;
  --red: #ff7a6b;
  --maxw: 1280px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--maxw), calc(100% - 64px)); margin-inline: auto; }
@media (max-width: 720px) { .wrap { width: calc(100% - 32px); } }

.mono { font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted-2); }

/* ---------- 顶栏 ---------- */
.hub-nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(5, 8, 15, .86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hub-nav .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.hub-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.hub-logo i {
  width: 26px; height: 26px; border-radius: 8px; font-style: normal; font-size: 13px;
  display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(150deg, var(--accent), #159a83); color: #04120f;
}
.hub-logo small { display: block; font-size: 10.5px; letter-spacing: .18em; color: var(--muted-2); text-transform: uppercase; }
.hub-links { display: flex; gap: 6px; margin-left: auto; font-size: 14.5px; }
.hub-links a { padding: 8px 14px; border-radius: 999px; color: #c3d0e2; }
.hub-links a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.hub-links a.on { background: rgba(47, 227, 196, .12); color: var(--accent); }

/* ---------- 按钮 ---------- */
.hbtn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px;
  border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: transform .22s ease, background .22s, border-color .22s;
}
.hbtn:hover { transform: translateY(-2px); }
.hbtn-primary { background: var(--accent); color: #04120f; }
.hbtn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.hbtn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hbtn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- 案例 Hero ---------- */
.case-hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.case-hero::before {
  content: ""; position: absolute; inset: -30% 30% auto -20%; height: 140%;
  background: radial-gradient(50% 55% at 35% 30%, rgba(47, 227, 196, .16), transparent 70%);
}
.case-hero .wrap { position: relative; }
.case-hero h1 {
  font-size: clamp(34px, 4.6vw, 62px); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 22px;
}
.case-hero h1 span {
  background: linear-gradient(100deg, #fff 15%, var(--accent) 60%, #6aa8ff 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-hero .lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 68ch; margin-bottom: 30px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.case-meta span {
  font-size: 12.5px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .02);
}
.case-meta b { color: var(--text); }

/* ---------- 页面入口卡 ---------- */
.pagerow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pagecard {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  padding: 20px; transition: border-color .25s, transform .25s ease;
}
.pagecard:hover { border-color: rgba(47, 227, 196, .5); transform: translateY(-3px); }
.pagecard .pc-n { font-size: 11.5px; letter-spacing: .16em; color: var(--muted-2); }
.pagecard h3 { font-size: 17px; margin: 10px 0 4px; }
.pagecard .en { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.pagecard .pc-btns { display: flex; gap: 8px; margin-top: 16px; }
.pagecard .pc-btns a {
  flex: 1; text-align: center; font-size: 12.5px; padding: 7px 4px; border-radius: 7px;
  border: 1px solid var(--line-2); color: #c3d0e2;
}
.pagecard .pc-btns a:hover { border-color: var(--accent); color: var(--accent); }
.pagecard .pc-btns a.old:hover { border-color: var(--red); color: var(--red); }

/* ---------- 通用区块 ---------- */
.hsec { padding: 76px 0; }
.hsec-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.hsec-head { max-width: 760px; margin-bottom: 38px; }
.hsec-head h2 { font-size: clamp(24px, 2.8vw, 36px); margin-bottom: 12px; }
.hsec-head p { color: var(--muted); margin: 0; }

/* ---------- 差异清单 ---------- */
.diff-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.diff {
  display: grid; grid-template-columns: 64px 1fr 1fr; gap: 0;
  background: var(--ink-2);
}
.diff > div { padding: 22px 24px; }
.diff .d-n {
  font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--line); display: grid; place-items: center;
}
.diff .d-t { border-right: 1px solid var(--line); }
.diff .d-t b { display: block; font-size: 16px; margin-bottom: 6px; }
.diff .d-t span { font-size: 13px; color: var(--muted-2); }
.diff .d-b { font-size: 14.5px; }
.diff .d-b .before, .diff .d-b .after { display: grid; grid-template-columns: 44px 1fr; gap: 10px; }
.diff .d-b .before { margin-bottom: 8px; color: #a8b6c8; }
.diff .d-b em {
  font-style: normal; font-size: 10.5px; letter-spacing: .1em; padding: 2px 6px; border-radius: 4px;
  text-align: center; height: 20px; line-height: 16px;
}
.diff .d-b .before em { background: rgba(255, 122, 107, .14); color: var(--red); border: 1px solid rgba(255, 122, 107, .3); }
.diff .d-b .after em { background: rgba(47, 227, 196, .12); color: var(--accent); border: 1px solid rgba(47, 227, 196, .3); }

/* ---------- 设计系统对照 ---------- */
.ds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ds-col { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.ds-col > header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.ds-col > header b { font-size: 14.5px; }
.ds-col > header span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.ds-col .ds-body { padding: 22px 20px; display: grid; gap: 18px; }
.ds-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; font-size: 13.5px; }
.ds-row > b { color: var(--muted-2); font-weight: 500; font-size: 12.5px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line); position: relative; }
.sw i { position: absolute; bottom: -19px; left: 0; font-size: 9.5px; color: var(--muted-2); font-style: normal; }
.type-old { font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.55; color: #b9c3cd; }
.type-new { font-size: 17px; line-height: 1.65; color: #dbe4f1; }
.type-new b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 6px; }

/* ---------- 对照查看器 ---------- */
.cmp-bar {
  position: sticky; top: 62px; z-index: 80;
  background: rgba(8, 13, 24, .94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.cmp-bar .wrap { display: flex; align-items: center; gap: 14px; padding: 12px 0; flex-wrap: wrap; }
.cmp-title { font-size: 15px; font-weight: 600; margin-right: 4px; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px;
  padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: all .18s;
}
.seg button:hover { color: #fff; }
.seg button.on { background: var(--accent); color: #04120f; font-weight: 600; }
.seg button[data-mode="old"].on { background: #ff8f80; }
.cmp-bar .spacer { flex: 1; }
.cmp-bar .hint { font-size: 12px; color: var(--muted-2); }
.cmp-bar .icon-btn {
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: #c3d0e2;
  font: inherit; font-size: 12.5px; padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.cmp-bar .icon-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(47, 227, 196, .1); }

.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.stage[data-mode="old"], .stage[data-mode="new"] { grid-template-columns: 1fr; }
.stage[data-mode="old"] .pane[data-side="new"], .stage[data-mode="new"] .pane[data-side="old"] { display: none; }

.pane { background: var(--ink); min-width: 0; display: flex; flex-direction: column; }
.pane-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.pane-head .dot { width: 7px; height: 7px; border-radius: 50%; }
.pane[data-side="old"] .pane-head .dot { background: var(--red); }
.pane[data-side="new"] .pane-head .dot { background: var(--accent); }
.pane-head b { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.pane-head span { font-size: 11.5px; color: var(--muted-2); margin-left: auto; }
.pane-frame { height: calc(100vh - 240px); min-height: 460px; overflow: auto; background: #fff; }
.pane[data-side="new"] .pane-frame { background: var(--ink); }
.pane-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.stage[data-device="tablet"] .pane-frame, .stage[data-device="phone"] .pane-frame { background: #0a0f19; padding: 16px 0; }
.stage[data-device="tablet"] iframe, .stage[data-device="phone"] iframe { margin: 0 auto; box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .9); }

/* ---------- 改动说明 ---------- */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.note { background: var(--ink-2); padding: 24px 26px; }
.note-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.note-n { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.note-h h3 { font-size: 17px; }
.note-b { display: grid; gap: 12px; }
.nb { display: grid; grid-template-columns: 40px 1fr; gap: 12px; font-size: 14px; }
.nb b { font-size: 10.5px; letter-spacing: .08em; height: 20px; line-height: 17px; text-align: center; border-radius: 4px; }
.nb.old b { background: rgba(255, 122, 107, .13); color: var(--red); border: 1px solid rgba(255, 122, 107, .3); }
.nb.new b { background: rgba(47, 227, 196, .12); color: var(--accent); border: 1px solid rgba(47, 227, 196, .3); }
.nb p { margin: 0; color: #a9b8ca; }
.nb.new p { color: #cfdbe9; }

/* ---------- 页脚 ---------- */
.hub-foot { border-top: 1px solid var(--line); padding: 44px 0 34px; background: var(--ink-2); }
.hub-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted-2); }
.hub-foot nav { display: flex; gap: 18px; }
.hub-foot a:hover { color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .pagerow { grid-template-columns: repeat(3, 1fr); }
  .notes { grid-template-columns: 1fr; }
  .ds-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .stage, .stage[data-mode="split"] { grid-template-columns: 1fr; }
  .pane-frame { height: 62vh; }
  .diff { grid-template-columns: 44px 1fr; }
  .diff .d-t { border-right: 0; border-bottom: 1px solid var(--line); }
  .diff .d-b { grid-column: 2; }
  .hub-links { display: none; }
}
@media (max-width: 640px) {
  .pagerow { grid-template-columns: 1fr 1fr; }
  .case-hero { padding: 52px 0 40px; }
  .hsec { padding: 52px 0; }
}


