/* ==========================================================================
   云枢网络 · 设计系统
   视觉方向：机架面板 / NOC 状态板。发丝线分隔、表格化密度、等宽大数字。
   ========================================================================== */

/* ---------- 令牌 ---------- */
:root {
  /* 底色：深青墨，不是纯黑，带一点机房冷光 */
  --ground:      #0C1418;
  --panel:       #111C22;
  --panel-2:     #16242C;
  --panel-3:     #1B2C35;

  /* 线：全部发丝线，无圆角阴影 */
  --line:        #1E3138;
  --line-soft:   #17262D;
  --line-hot:    #2C4A52;

  /* 文字 */
  --ink:         #E7EEF1;
  --ink-2:       #9DB2BB;
  --ink-3:       #677D88;

  /* 信号色：金 —— 只用于价格与主操作 */
  --gold:        #E8B33C;
  --gold-2:      #F5C95A;
  --gold-dim:    #7A5E1F;

  /* 保护/防御：鼠尾草绿 */
  --sage:        #7FB3A3;
  --sage-dim:    #2C4A43;

  /* 告警 */
  --danger:      #D96A5F;
  --danger-dim:  #4A2A27;

  /* 字体 */
  --f-num:  "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;
  --f-body: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;

  --max: 1240px;

  /* 间距节奏 */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* 焦点可见 */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- 排版工具 ---------- */
.num {
  font-family: var(--f-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.display {
  font-family: var(--f-num);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
}
.muted { color: var(--ink-2); }
.dim   { color: var(--ink-3); }
.gold  { color: var(--gold); }
.sage  { color: var(--sage); }

/* ---------- 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--s5);
}
.section { padding-block: var(--s9); }
.section--tight { padding-block: var(--s7); }
@media (max-width: 760px) {
  .section { padding-block: var(--s7); }
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 20, 24, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
  height: 64px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-shrink: 0;
}
.brand-mark {
  font-family: var(--f-num);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
}
.brand-mark b { color: var(--gold); }
.brand-sub {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-3);
  font-family: var(--f-num);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s5);
  margin-left: var(--s5);
}
.nav a {
  font-size: 14px;
  color: var(--ink-2);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-left: auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-2); border-color: var(--panel-3); }
.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #1A1305;
  font-weight: 600;
}
.btn--primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--ghost { border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); background: transparent; border-color: var(--line); }
.btn--lg { padding: 13px 26px; font-size: 15px; }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--danger { color: var(--danger); border-color: var(--danger-dim); }
.btn--danger:hover { background: var(--danger-dim); }

/* 购物车角标 */
.cart-link { position: relative; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-radius: 9px;
  background: var(--gold);
  color: #1A1305;
  font-family: var(--f-num);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.cart-count[hidden] { display: none; }

/* ---------- 首屏 ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  padding-block: var(--s8) var(--s7);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(232,179,60,.05) 1px, transparent 1px) 0 0 / 64px 100%,
    linear-gradient(rgba(30,49,56,.5) 1px, transparent 1px) 0 0 / 100% 64px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 78%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--s8);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero h1 .gold { color: var(--gold); }
.hero-lead {
  margin-top: var(--s4);
  font-size: 16px;
  color: var(--ink-2);
  max-width: 34em;
  line-height: 1.85;
}
.hero-cta {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s6);
  flex-wrap: wrap;
}

/* 延迟板：三地状态行 —— 页面最具辨识度的元素 */
.latency-board {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 2px;
}
.lb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px var(--s4);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-num);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-3);
}
.lb-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: var(--s4);
  align-items: center;
  padding: 14px var(--s4);
  border-bottom: 1px solid var(--line-soft);
}
.lb-row:last-child { border-bottom: 0; }
.lb-code {
  font-family: var(--f-num);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
}
.lb-meta { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.lb-meta b { color: var(--ink-2); font-weight: 400; }
.lb-val {
  text-align: right;
  font-family: var(--f-num);
  font-size: 21px;
  font-weight: 600;
  color: var(--sage);
  line-height: 1.1;
}
.lb-val small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .1em;
  font-weight: 400;
  margin-top: 3px;
}

/* ---------- 小节标题 ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s6);
}
.sec-head h2 {
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 650;
  letter-spacing: -.01em;
}
.sec-head p { color: var(--ink-2); font-size: 14px; margin-top: 6px; max-width: 46em; }

/* ---------- 产品线入口 ---------- */
.lines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 940px) { .lines { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lines { grid-template-columns: 1fr; } }

.line-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-height: 188px;
  transition: background .18s;
}
.line-item:hover { background: var(--panel); }
.line-item h3 { font-size: 16px; font-weight: 650; }
.line-item p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; flex: 1; }
.line-from {
  font-family: var(--f-num);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.line-from b { color: var(--gold); font-size: 18px; font-weight: 600; }

/* ---------- 产品表格 ---------- */
.spec-table { font-size: 13.5px; }
.spec-table caption {
  text-align: left;
  padding-bottom: var(--s3);
  color: var(--ink-3);
  font-size: 13px;
}
.spec-table th {
  text-align: left;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--ink-3);
  font-family: var(--f-num);
  padding: 10px var(--s3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.spec-table td {
  padding: 13px var(--s3);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.spec-table tbody tr { transition: background .12s; }
.spec-table tbody tr:hover { background: var(--panel); }
.spec-table .t-name { font-weight: 600; color: var(--ink); }
.spec-table .t-name small {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  font-family: var(--f-num);
  letter-spacing: .04em;
}
.spec-table .t-spec { color: var(--ink-2); font-family: var(--f-num); font-size: 13px; }
.spec-table .t-price {
  text-align: right;
  font-family: var(--f-num);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.spec-table .t-price small { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.spec-table .t-go { text-align: right; }
.table-scroll { overflow-x: auto; }

.badge {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--sage-dim);
  color: var(--sage);
  font-size: 11px;
  border-radius: 2px;
  font-family: var(--f-num);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ---------- 筛选器 ---------- */
.filters {
  display: flex;
  gap: var(--s5);
  flex-wrap: wrap;
  align-items: flex-end;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s5);
}
.filter-group { display: flex; flex-direction: column; gap: 7px; }
.filter-label {
  font-family: var(--f-num);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
  transition: all .14s;
}
.chip:hover { border-color: var(--panel-3); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
  font-weight: 600;
}
.search-input {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 2px;
  font-size: 13px;
  min-width: 180px;
}

/* ---------- 配置器 ---------- */
.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: var(--s8);
  align-items: start;
}
@media (max-width: 1000px) {
  .config-grid { grid-template-columns: 1fr; gap: var(--s6); }
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: var(--s6);
}
@media (max-width: 640px) { .spec-strip { grid-template-columns: repeat(2, 1fr); } }
.ss-cell {
  padding: var(--s4);
  border-right: 1px solid var(--line);
}
.ss-cell:last-child { border-right: 0; }
.ss-k {
  font-family: var(--f-num);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.ss-v {
  font-family: var(--f-num);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.opt-group { padding-block: var(--s5); border-bottom: 1px solid var(--line-soft); }
.opt-group:first-of-type { border-top: 1px solid var(--line); }
.opt-head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.opt-no {
  font-family: var(--f-num);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .1em;
}
.opt-name { font-size: 15px; font-weight: 650; }
.opt-desc { font-size: 12.5px; color: var(--ink-3); }

/* 单选行 */
.radio-list { display: flex; flex-direction: column; }
.radio-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 9px var(--s3);
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.radio-row:last-child { border-bottom: 0; }
.radio-row:hover { background: var(--panel); }
.radio-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-dot {
  width: 13px; height: 13px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.radio-row input:checked + .radio-dot { border-color: var(--gold); }
.radio-row input:checked + .radio-dot::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--gold);
}
.radio-row input:checked ~ .radio-label { color: var(--ink); }
.radio-row:has(input:checked) {
  background: var(--panel-2);
  border-color: var(--gold-dim);
}
.radio-row:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 1px; }
.radio-label { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.radio-price {
  font-family: var(--f-num);
  font-size: 13px;
  color: var(--gold);
  white-space: nowrap;
}
.radio-price.is-zero { color: var(--ink-3); }

/* 带宽阶梯表 —— 核心交互，显示单位带宽成本 */
.bw-table { width: 100%; font-size: 13px; }
.bw-table th {
  text-align: right;
  font-family: var(--f-num);
  font-size: 10.5px;
  letter-spacing: .12em;
  font-weight: 400;
  color: var(--ink-3);
  padding: 6px var(--s3);
  border-bottom: 1px solid var(--line);
}
.bw-table th:first-child { text-align: left; }
.bw-table td {
  padding: 8px var(--s3);
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  font-family: var(--f-num);
  font-size: 13px;
  color: var(--ink-2);
}
.bw-table td:first-child { text-align: left; font-family: var(--f-body); color: var(--ink-2); }
.bw-table tr { cursor: pointer; }
.bw-table tbody tr:hover { background: var(--panel); }
.bw-table tr[aria-selected="true"] { background: var(--panel-2); }
.bw-table tr[aria-selected="true"] td:first-child { color: var(--gold); }
.bw-unit { color: var(--ink-3); font-size: 11.5px; }
.bw-delta { color: var(--gold); }
.bw-bad { color: var(--danger); }

/* 系统选择 */
.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: var(--s2);
}
.os-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px var(--s3);
  cursor: pointer;
  border-radius: 2px;
  transition: border-color .14s, background .14s;
}
.os-card:hover { border-color: var(--panel-3); }
.os-card[aria-pressed="true"] { border-color: var(--gold); background: var(--panel-2); }
.os-name { font-size: 13px; font-weight: 600; }
.os-ver { font-family: var(--f-num); font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* 结算摘要（吸顶） */
.summary {
  position: sticky;
  top: 84px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 2px;
}
.sum-head {
  padding: var(--s4);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-num);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--ink-3);
}
.sum-body { padding: var(--s4); }
.sum-item {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.sum-item span:last-child {
  font-family: var(--f-num);
  color: var(--ink);
  white-space: nowrap;
}
.sum-sep { height: 1px; background: var(--line); margin-block: var(--s3); }
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 6px;
}
.sum-total span:first-child { font-size: 13.5px; color: var(--ink-2); }
.sum-total .amount {
  font-family: var(--f-num);
  font-size: 27px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.sum-total .amount small { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.sum-note {
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.65;
}
.sum-actions { padding: var(--s4); border-top: 1px solid var(--line); display: grid; gap: var(--s2); }

/* 价格变动时的一次性高亮 */
@keyframes pricePulse {
  0%   { color: var(--gold-2); }
  100% { color: var(--gold); }
}
.amount.is-changed { animation: pricePulse .5s ease-out; }

/* ---------- 机房页 ---------- */
.loc-grid { display: grid; gap: var(--s5); }
.loc-card {
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}
@media (max-width: 760px) { .loc-card { grid-template-columns: 1fr; } }
.loc-side {
  padding: var(--s5);
  border-right: 1px solid var(--line);
  background: var(--panel-2);
}
@media (max-width: 760px) {
  .loc-side { border-right: 0; border-bottom: 1px solid var(--line); }
}
.loc-code {
  font-family: var(--f-num);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
}
.loc-city { font-size: 15px; margin-top: 6px; }
.loc-fac { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.loc-body { padding: var(--s5); }
.loc-desc { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.loc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-soft);
}
.loc-stat-k { font-family: var(--f-num); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); }
.loc-stat-v { font-family: var(--f-num); font-size: 17px; font-weight: 600; margin-top: 3px; }

/* ---------- 通用面板 ---------- */
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 2px;
  padding: var(--s5);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.kv { display: flex; flex-direction: column; gap: 2px; }
.kv dt { font-family: var(--f-num); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); }
.kv dd { margin: 0; font-size: 14px; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s4); }
.field label { font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--ground);
  border-radius: 2px;
  font-size: 14px;
  transition: border-color .14s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-dim);
  outline: none;
}
.field input::placeholder { color: var(--ink-3); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.field .err { font-size: 12px; color: var(--danger); }

.auth-wrap {
  max-width: 420px;
  margin-inline: auto;
  padding-block: var(--s8);
}
.auth-tabs { display: flex; gap: var(--s2); margin-bottom: var(--s5); }
.auth-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;
}
.auth-tab[aria-selected="true"] {
  background: var(--panel-2);
  border-color: var(--gold-dim);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 购物车 ---------- */
.cart-list { border-top: 1px solid var(--line); }
.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--s5);
  align-items: center;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) {
  .cart-row { grid-template-columns: 1fr; gap: var(--s3); }
}
.cart-name { font-size: 14.5px; font-weight: 600; }
.cart-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }
.cart-price {
  font-family: var(--f-num);
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.cart-price small { font-size: 11px; color: var(--ink-3); font-weight: 400; }

.empty-state {
  padding: var(--s8) var(--s5);
  text-align: center;
  border: 1px dashed var(--line);
  color: var(--ink-3);
}
.empty-state p { margin-bottom: var(--s4); }

/* ---------- 订单 ---------- */
.order-card { border: 1px solid var(--line); background: var(--panel); margin-bottom: var(--s4); }
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  font-family: var(--f-num);
  flex-wrap: wrap;
}
.order-body { padding: var(--s4); }
.order-line {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  font-size: 13.5px;
  padding-block: 3px;
}
.order-line span:last-child { font-family: var(--f-num); color: var(--ink-2); }
.status-pill {
  padding: 2px 9px;
  border: 1px solid var(--sage-dim);
  color: var(--sage);
  border-radius: 2px;
  font-size: 11.5px;
}
.status-pill--pending { border-color: var(--gold-dim); color: var(--gold); }

/* ---------- 提示 ---------- */
.toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 13.5px;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: toastIn .2s ease-out;
  max-width: 320px;
}
.toast--gold { border-color: var(--gold-dim); }
.toast--err { border-color: var(--danger-dim); color: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--s9);
  padding-block: var(--s7) var(--s6);
  background: var(--panel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s6);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-family: var(--f-num);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: var(--s3);
}
.footer-col a, .footer-col li {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  padding-block: 3px;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* ---------- 响应式导航 ---------- */
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s3) var(--s5);
    margin: 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 11px; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn--hide-sm { display: none; }
}

/* ---------- 超窄屏（手机竖屏）---------- */
@media (max-width: 430px) {
  .wrap { padding-inline: var(--s4); }
  .header-inner { height: 56px; gap: var(--s2); }
  .brand-mark { font-size: 15px; }
  .header-actions { gap: 4px; }
  .header-actions .btn--sm { padding: 5px 7px; font-size: 12px; }
  .header-actions > .btn--primary { display: none; }
  .cart-link { padding-inline: 6px; font-size: 12px; }

  /* 规格条改为单列，避免被截断 */
  .spec-strip { grid-template-columns: 1fr; }
  .ss-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .ss-cell:last-child { border-bottom: 0; }
  .ss-cell:nth-child(n+3) { border-top: 0; }

  .radio-row { padding-inline: var(--s2); gap: var(--s2); }
  .radio-label { font-size: 12.5px; }
  .radio-price { font-size: 11.5px; }
  .hero h1 { font-size: 24px; }
  .sec-head h2 { font-size: 19px; }
  .bw-table th, .bw-table td { padding-inline: 6px; font-size: 11.5px; }
}

/* ---------- 窄屏兜底：防止横向溢出 ---------- */
@media (max-width: 760px) {
  .hero::after { display: none; }
  .header-inner { gap: var(--s3); }
  .brand-sub { display: none; }
  .hero h1 { font-size: 27px; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .ss-cell:nth-child(2n) { border-right: 0; }
  .ss-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .radio-price { font-size: 12px; }
  .opt-head { flex-wrap: wrap; gap: 6px; }
  .summary { position: static; }
  .lb-row { grid-template-columns: 48px 1fr auto; gap: var(--s3); }
  .lb-val { font-size: 18px; }
  .loc-code { font-size: 27px; }
  .amount { font-size: 23px !important; }
  .bw-table th, .bw-table td { padding-inline: var(--s2); font-size: 12px; }
  /* 页头在窄屏精简，避免注册按钮被挤出屏幕 */
  .header-actions .btn--sm { padding: 5px 9px; font-size: 12px; }
  .header-actions > .btn--primary { display: none; }
  .brand-mark { font-size: 17px; }
  .radio-row { padding-inline: var(--s2); gap: var(--s2); }
  .radio-label { font-size: 13px; min-width: 0; }
  .radio-price { flex-shrink: 0; }
  .cart-row { gap: var(--s3); }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .spec-table { min-width: 560px; }
  .toast-host { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

/* 页面根容器防溢出 */
html, body { max-width: 100%; overflow-x: hidden; }

/* ---------- 动效克制 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* 首屏唯一的一次入场 */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * {
  animation: riseIn .5s cubic-bezier(.2,.7,.3,1) both;
}
.hero-copy > *:nth-child(1) { animation-delay: .04s; }
.hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.latency-board { animation: riseIn .55s .18s cubic-bezier(.2,.7,.3,1) both; }
