@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&family=Syne:wght@500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --ink: #05070b;
  --bg: #080b10;
  --elev: #10151c;
  --elev2: #161d27;
  --line: rgba(232, 236, 242, 0.14);
  --line-strong: rgba(232, 236, 242, 0.28);
  --text: #f5f7fb;
  --muted: #c2c9d6;
  --faint: #9aa3b5;
  --placeholder: #8b94a6;
  --input-bg: #121820;
  --accent: #7ec8c0;
  --accent-deep: #3d9a92;
  --copper: #d4b483;
  --copper-soft: rgba(212, 180, 131, 0.14);
  --danger: #e07070;
  --font: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --display: "Syne", "Noto Sans SC", sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1520px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #a8ddd8; }

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(126, 200, 192, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(212, 180, 131, 0.07), transparent 45%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(61, 154, 146, 0.06), transparent 50%),
    linear-gradient(180deg, #0a0e14 0%, var(--bg) 35%, #06080c 100%);
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

/* ——— Top bar ——— */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  height: 64px; padding: 0 clamp(18px, 3vw, 36px);
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}
.brand:hover { color: var(--text); filter: brightness(1.08); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand em {
  font-style: normal; font-weight: 500; letter-spacing: 0.14em;
  color: var(--copper); margin-left: 2px;
}
.top nav { display: flex; gap: 2px; margin-left: 8px; flex-wrap: wrap; }
.top nav button {
  height: 34px; padding: 0 12px; border-radius: 8px;
  color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  transition: color .2s, background .2s;
}
.top nav button.on, .top nav button:hover {
  color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.top .link {
  margin-left: 0; font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em;
}
.top .theme-switch { margin-left: auto; }
.top .link:hover { color: var(--copper); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 28px) 96px;
}

/* ——— Hub landing：一屏内展示完，禁止纵向滚动 ——— */
body.hub {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.hub .top { height: 52px; flex-shrink: 0; }
body.hub .wrap.hub-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.2vh, 22px);
  padding-top: clamp(10px, 1.8vh, 20px);
  padding-bottom: clamp(8px, 1.4vh, 16px);
  overflow: hidden;
}
body.hub .footer {
  flex-shrink: 0;
  padding: 10px clamp(18px, 3vw, 28px) 14px;
  font-size: 11px;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}
body.hub .footer br { display: none; }

.hub-stage {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
}
.hub-stage .optic {
  position: absolute;
  right: -4%; top: 50%;
  width: min(300px, 32vw); height: min(300px, 32vw);
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.38;
  animation: opticSpin 80s linear infinite;
}
@keyframes opticSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}
.hub-copy { position: relative; z-index: 2; max-width: 760px; }
.hub-copy .eyebrow {
  margin: 0 0 6px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--copper);
  animation: rise .55s var(--ease) both;
}
.hub-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: rise .6s var(--ease) .04s both;
}
.hub-copy h1 .brand-line {
  display: inline;
  margin-right: 0.28em;
  background: linear-gradient(105deg, #fff 0%, #c5d0dc 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hub-copy h1 .sub-line {
  display: inline;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hub-copy .lead {
  margin: 8px 0 0;
  max-width: 40em;
  color: var(--muted);
  font-size: 13px; font-weight: 300; line-height: 1.55;
  animation: rise .6s var(--ease) .08s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hub-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  animation: rise .6s var(--ease) .1s both;
}
.hub-meta div { display: flex; align-items: baseline; gap: 8px; }
.hub-meta span {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
}
.hub-meta strong {
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--text);
}

.entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 0 0 auto;
  margin: 0;
}
.entry {
  position: relative;
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: rise .65s var(--ease) both;
}
.entry:nth-child(2) { animation-delay: .06s; }
.entry::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(165deg, rgba(126, 200, 192, 0.06) 0%, transparent 42%),
    linear-gradient(160deg, var(--elev) 0%, var(--ink) 100%);
}
.entry-drv::before {
  background:
    linear-gradient(200deg, rgba(212, 180, 131, 0.07) 0%, transparent 45%),
    linear-gradient(160deg, var(--elev) 0%, var(--ink) 100%);
}
.entry::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(520px 220px at 0% 0%, rgba(126, 200, 192, 0.16), transparent 55%);
}
.entry-drv::after {
  background: radial-gradient(520px 220px at 100% 0%, rgba(212, 180, 131, 0.14), transparent 55%);
}
.entry:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: inherit;
}
.entry:hover::after { opacity: 1; }
.entry-head {
  display: flex; align-items: flex-start; gap: 12px;
}
.entry-index {
  font-family: var(--display);
  font-size: 34px; font-weight: 800; line-height: 0.95;
  letter-spacing: -0.04em;
  color: rgba(126, 200, 192, 0.22);
  flex-shrink: 0;
}
.entry-drv .entry-index { color: rgba(212, 180, 131, 0.28); }
.entry-kicker {
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 4px;
}
.entry-drv .entry-kicker { color: var(--copper); }
.entry h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700; letter-spacing: -0.02em;
}
.entry-lead {
  margin: 0;
  font-size: 12px; font-weight: 300; line-height: 1.55;
  color: var(--muted);
}
.entry-flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0; padding: 10px 12px;
  list-style: none;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1px solid var(--line);
}
.entry-flow li {
  position: relative;
  font-size: 11px; font-weight: 500; color: var(--text);
  padding: 4px 9px; border-radius: 999px;
  background: rgba(126, 200, 192, 0.1);
  border: 1px solid rgba(126, 200, 192, 0.18);
}
.entry-drv .entry-flow li {
  background: rgba(212, 180, 131, 0.1);
  border-color: rgba(212, 180, 131, 0.2);
}
.entry-flow li + li::before {
  content: "";
  position: absolute; left: -7px; top: 50%;
  width: 5px; height: 1px;
  background: var(--faint);
  transform: translateY(-50%);
}
.entry-points {
  margin: 0; padding: 0;
  list-style: none;
  display: grid; gap: 6px;
}
.entry-points li {
  position: relative;
  padding-left: 14px;
  font-size: 12px; font-weight: 300; line-height: 1.45;
  color: var(--muted);
}
.entry-points li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(126, 200, 192, 0.12);
}
.entry-drv .entry-points li::before { background: var(--copper); box-shadow: 0 0 0 3px rgba(212, 180, 131, 0.12); }
.entry-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text);
}
.entry-cta i {
  display: inline-block; width: 24px; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.entry-drv .entry-cta i { background: var(--copper); }
.entry:hover .entry-cta i { width: 40px; }

.hub-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 0 0 auto;
  animation: rise .65s var(--ease) .1s both;
}
.hub-rail-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .hub-rail-4 { grid-template-columns: 1fr 1fr; }
}
.hub-rail a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--elev);
  color: inherit;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.hub-rail a:hover {
  border-color: rgba(126, 200, 192, 0.35);
  background: rgba(126, 200, 192, 0.06);
  color: inherit;
}
.hub-rail a:nth-child(2):hover {
  border-color: rgba(212, 180, 131, 0.35);
  background: rgba(212, 180, 131, 0.06);
}
.hub-rail span {
  grid-row: 1 / span 2;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #041210;
  background: linear-gradient(135deg, var(--accent), #9ad9d2);
}
.hub-rail a:nth-child(2) span {
  background: linear-gradient(135deg, var(--copper), #e2c9a0);
}
.hub-rail strong {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.hub-rail small {
  font-size: 11px; font-weight: 300; color: var(--faint);
}

.hub-note {
  flex-shrink: 0;
  margin: 0;
  font-size: 11px; font-weight: 300; color: var(--faint); line-height: 1.4;
}

/* ——— Wizard heroes ——— */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  padding: clamp(36px, 6vh, 56px) 0 40px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: -20%; top: -40%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(126, 200, 192, 0.08), transparent 65%);
  pointer-events: none;
}
.hero .eyebrow {
  margin: 0 0 14px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper); font-weight: 500;
}
.hero h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
}
.hero h1 span {
  background: linear-gradient(100deg, var(--accent), #b8e0db 60%, var(--copper));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0; color: var(--muted);
  font-size: 15px; font-weight: 400; line-height: 1.75; max-width: 38em;
}
.hero-side {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 50%),
    var(--elev);
  backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.75;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hero-side b {
  display: block; margin-bottom: 8px;
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--text);
}

/* ——— Steps ——— */
.steps {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.step-pill {
  display: flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted); font-size: 12px; font-weight: 500;
  background: var(--elev2);
  transition: border-color .2s, color .2s, background .2s;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}
.step-pill .n {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 11px; font-weight: 700;
  color: var(--text);
  background: color-mix(in srgb, var(--text) 12%, transparent);
}
.step-pill.on {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.step-pill.on .n {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #041210;
}
.step-pill.done { color: var(--accent); border-color: rgba(126, 200, 192, 0.22); }
.step-pill .step-label { white-space: nowrap; }
.steps-now { display: none; }

/* ——— Panels & forms ——— */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--elev);
  padding: 28px 26px 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, var(--shadow);
}
.panel h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
}
.panel .sub {
  margin: 0 0 22px;
  color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.7;
}
.sec-h {
  font-size: 12px; margin: 20px 0 12px;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

.grid-prod {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.card-opt {
  text-align: left; padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s, box-shadow .2s;
}
.card-opt:hover {
  border-color: rgba(126, 200, 192, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.card-opt.on {
  border-color: rgba(126, 200, 192, 0.55);
  background: rgba(126, 200, 192, 0.1);
  box-shadow: inset 0 0 0 1px rgba(126, 200, 192, 0.15);
}
.card-opt.disabled,
.card-opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}
.card-opt.disabled:hover,
.card-opt:disabled:hover {
  border-color: var(--line);
  transform: none;
  box-shadow: none;
}
.card-opt .ico {
  font-size: 20px; margin-bottom: 10px; opacity: 0.9;
  filter: grayscale(0.2);
}
.card-opt .t {
  font-family: var(--display);
  font-size: 15px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em;
}
.card-opt .d { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.5; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
label.field {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
label.field input, label.field select, label.field textarea {
  height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
  outline: none; font-size: 14px; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  color-scheme: dark;
}
label.field input::placeholder,
label.field textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
label.field textarea { height: 88px; padding: 12px 14px; resize: vertical; }
label.field input:focus, label.field select:focus, label.field textarea:focus {
  border-color: rgba(126, 200, 192, 0.5);
  box-shadow: 0 0 0 3px rgba(126, 200, 192, 0.12);
}
/* 原生 option 在 Windows 上常被系统皮肤覆盖，尽量强制深色可读 */
label.field select option,
select option {
  background-color: #141b24;
  color: #eef1f5;
}
label.field select option:checked,
select option:checked {
  background-color: #2a4a47;
  color: #fff;
}

/* 自定义下拉（替代原生 select，避免系统白底浅字） */
.cselect { position: relative; width: 100%; max-width: 360px; }
.cselect-btn {
  width: 100%; height: 44px; padding: 0 40px 0 14px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--input-bg); color: var(--text);
  text-align: left; font-size: 14px; font-weight: 400;
  position: relative;
}
.cselect-btn::after {
  content: "";
  position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s;
}
.cselect.open .cselect-btn {
  border-color: rgba(126, 200, 192, 0.5);
  box-shadow: 0 0 0 3px rgba(126, 200, 192, 0.12);
}
.cselect.open .cselect-btn::after {
  transform: translateY(-20%) rotate(225deg);
  border-color: var(--accent);
}
.cselect-menu {
  display: none;
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  z-index: 50;
  max-height: 260px; overflow: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(126, 200, 192, 0.28);
  background: var(--elev2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.cselect.open .cselect-menu { display: block; }
.cselect-opt {
  display: block; width: 100%;
  padding: 10px 12px; border-radius: 8px;
  text-align: left; font-size: 14px; color: var(--text);
  background: transparent;
}
.cselect-opt:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
.cselect-opt.on {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text); font-weight: 600;
}

/* 报价依据入口 / 独立说明页 */
.basis-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 0 16px; padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(126, 200, 192, 0.28);
  background: linear-gradient(120deg, rgba(126, 200, 192, 0.1), rgba(212, 180, 131, 0.06));
}
.basis-callout.slim { padding: 12px 16px; margin-bottom: 12px; }
.basis-callout b { display: block; font-size: 14px; margin-bottom: 4px; }
.basis-callout p {
  margin: 0; font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.55; max-width: 52ch;
}
.basis-link {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  color: #041210 !important;
  background: linear-gradient(120deg, var(--accent), #9ad9d2);
}
.basis-link:hover { filter: brightness(1.06); color: #041210 !important; }

.basis-nav { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.basis-nav[hidden] { display: none !important; }
.basis-nav a {
  height: 34px; padding: 0 12px; border-radius: 8px;
  font-size: 13px; color: var(--muted);
  display: inline-flex; align-items: center;
}
.basis-nav a[hidden] { display: none !important; }
.basis-nav a:hover, .basis-nav a.on {
  color: var(--text); background: rgba(126, 200, 192, 0.12);
}
.basis-wrap { padding-bottom: 48px; }
.basis-hero {
  margin: 28px 0 32px; max-width: 720px;
}
.basis-hero h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -0.03em;
  margin: 8px 0 12px; line-height: 1.15;
}
.basis-hero > p {
  font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.65; margin: 0 0 18px;
}
.basis-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px;
  border-radius: 11px; font-size: 14px; font-weight: 600;
}
.btn-primary {
  color: #041210 !important;
  background: linear-gradient(120deg, var(--accent), #9ad9d2);
}
.btn-ghost {
  color: var(--text) !important;
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
}
.basis-sec {
  margin: 0 0 36px; padding: 24px 22px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--elev);
}
.basis-sec h2 {
  font-family: var(--display);
  font-size: 20px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.02em;
}
.basis-sec .formula {
  font-size: 13px; line-height: 1.65; color: var(--accent-deep);
  font-weight: 500;
  padding: 12px 14px; border-radius: 10px; margin: 8px 0;
  background: color-mix(in srgb, var(--accent) 12%, var(--elev2));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.basis-sec .lead-sm, .basis-sec .muted, .basis-pkg .muted {
  font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.65;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.basis-table {
  width: 100%; border-collapse: collapse; font-size: 12px; min-width: 720px;
}
.basis-table th, .basis-table td {
  padding: 10px 12px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); line-height: 1.5;
}
.basis-table th {
  color: var(--muted); font-weight: 600; font-size: 11px;
  letter-spacing: 0.04em; white-space: nowrap;
}
.basis-table td { color: var(--text); font-weight: 400; }
.basis-table td b { color: var(--accent); font-weight: 700; }
.basis-ul {
  margin: 0; padding-left: 18px;
  font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.7;
}
.basis-ul li { margin: 6px 0; }
.basis-pkg-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.basis-pkg {
  padding: 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--input-bg);
}
.basis-pkg header span {
  font-size: 11px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase;
}
.basis-pkg h3 {
  font-family: var(--display); font-size: 17px; margin: 4px 0 10px;
}
.basis-pkg p { margin: 6px 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.basis-pkg p b { color: var(--faint); font-weight: 500; margin-right: 6px; }

.check-lib { display: grid; gap: 10px; }
.check-lib-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  cursor: pointer;
}
.check-lib-item.on {
  border-color: rgba(126, 200, 192, 0.4);
  background: rgba(126, 200, 192, 0.07);
}
.check-lib-item input { margin-top: 3px; }
.check-lib-item b {
  display: block; font-size: 14px; margin-bottom: 6px; color: var(--text);
}
.check-lib-item span {
  display: block; font-size: 12px; font-weight: 300;
  color: var(--muted); line-height: 1.5; margin: 3px 0;
}
.check-lib-item em {
  font-style: normal; color: var(--faint); margin-right: 6px; font-weight: 500;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.scene-card {
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.scene-card.on {
  border-color: rgba(212, 180, 131, 0.45);
  background: rgba(212, 180, 131, 0.08);
}
.scene-card input { position: absolute; opacity: 0; pointer-events: none; }
.scene-card-body { padding: 12px 12px 10px; }
.scene-card-body header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.scene-card-body header b { color: var(--accent); font-size: 12px; }
.scene-card-body header span {
  font-size: 10px; color: var(--faint);
  padding: 2px 6px; border-radius: 999px; border: 1px solid var(--line);
}
.scene-card-body h3 {
  margin: 0 0 8px; font-size: 15px; font-weight: 600;
}
.scene-card-body p {
  margin: 4px 0; font-size: 11px; font-weight: 300;
  color: var(--muted); line-height: 1.5;
}
.scene-card-body em {
  font-style: normal; color: var(--faint); margin-right: 4px; font-weight: 500;
}

@media (max-width: 900px) {
  .scene-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .basis-callout { flex-direction: column; align-items: flex-start; }
  .basis-pkg-grid { grid-template-columns: 1fr; }
  .basis-page .basis-nav { display: none; }
  .scene-grid { grid-template-columns: 1fr; }
}

/* Excel 规则说明（驱动 / ISP） */
.rule-box {
  margin: 0 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--elev);
  overflow: hidden;
}
.rule-box > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  user-select: none;
}
.rule-box > summary::-webkit-details-marker { display: none; }
.rule-box > summary::after {
  content: "展开";
  float: right;
  font-size: 11px;
  font-weight: 400;
  color: var(--faint);
}
.rule-box[open] > summary::after { content: "收起"; }
.rule-box > summary:hover { color: var(--accent); }
.rule-box .rule-lead,
.rule-box .rule-formula,
.rule-box .rule-list,
.rule-box .layer-grid,
.rule-box .scene-rules {
  margin: 0 16px 14px;
}
.rule-lead {
  font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.65;
}
.rule-formula {
  font-size: 13px; line-height: 1.65; color: var(--accent-deep);
  font-weight: 500;
  padding: 12px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, var(--elev2));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.rule-list {
  padding-left: 18px; margin-top: 10px;
  font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.65;
}
.rule-list.muted { color: var(--faint); }
.rule-list li { margin: 4px 0; }
.layer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.layer-card {
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input-bg);
}
.layer-code {
  font-family: var(--display);
  font-size: 15px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.04em;
}
.layer-name { font-size: 14px; font-weight: 600; margin: 4px 0 2px; color: var(--text); }
.layer-meta { font-size: 11px; color: var(--faint); margin-bottom: 8px; }
.layer-price {
  font-size: 14px; font-weight: 600; color: var(--copper);
  font-variant-numeric: tabular-nums;
}
.layer-cycle { font-size: 11px; color: var(--faint); margin: 2px 0 8px; }
.layer-val {
  margin: 0; padding-top: 8px; border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 300; color: var(--muted); line-height: 1.55;
}
.scene-rules { display: grid; gap: 8px; }
.scene-rule {
  display: grid; grid-template-columns: 96px 1fr; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--input-bg); border: 1px solid var(--line);
  font-size: 12px; line-height: 1.55;
}
.scene-rule b { color: var(--accent); font-weight: 600; }
.scene-rule span { color: var(--muted); font-weight: 300; }
.check-rich span { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.check-rich .hint {
  font-style: normal; font-size: 11px; font-weight: 300;
  color: var(--faint); line-height: 1.5; max-width: 52ch;
}
@media (max-width: 900px) {
  .layer-grid { grid-template-columns: 1fr 1fr; }
  .scene-rule { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .layer-grid { grid-template-columns: 1fr; }
}

/* ISP 套餐说明卡片 */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0 14px;
}
.pkg-card {
  text-align: left;
  padding: 18px 16px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  transition: border-color .2s, transform .2s, background .2s, box-shadow .2s;
}
.pkg-card:hover {
  border-color: rgba(126, 200, 192, 0.35);
  transform: translateY(-2px);
}
.pkg-card.on {
  border-color: rgba(126, 200, 192, 0.55);
  background: rgba(126, 200, 192, 0.1);
  box-shadow: inset 0 0 0 1px rgba(126, 200, 192, 0.12);
}
.pkg-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pkg-tag {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.pkg-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 999px;
  color: #1a1406; background: var(--copper);
}
.pkg-name {
  font-family: var(--display);
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pkg-price {
  font-size: 15px; font-weight: 600; color: var(--copper);
  margin-bottom: 12px; font-variant-numeric: tabular-nums;
}
.pkg-price em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--faint); margin-right: 4px; }
.pkg-row {
  display: grid; grid-template-columns: 36px 1fr; gap: 8px;
  font-size: 12px; line-height: 1.45; margin: 5px 0; color: var(--muted);
}
.pkg-row span { color: var(--faint); }
.pkg-row b { font-weight: 500; color: #c8d0dc; }
.pkg-desc {
  margin: 12px 0 0; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.55;
}
.pkg-detail {
  padding: 14px 16px; margin-bottom: 14px; border-radius: 12px;
  border: 1px solid rgba(126, 200, 192, 0.25);
  background: rgba(126, 200, 192, 0.07);
  font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.7;
}
.pkg-detail b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .pkg-grid { grid-template-columns: 1fr; }
}

/* 公司自动补全 */
.co-wrap { position: relative; width: 100%; }
.co-wrap input { width: 100%; }
.co-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  z-index: 60; max-height: 280px; overflow: auto;
  padding: 6px; border-radius: 12px;
  border: 1px solid rgba(126, 200, 192, 0.3);
  background: var(--elev2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.co-menu[hidden] { display: none !important; }
.co-opt {
  display: flex; flex-direction: column; gap: 3px;
  width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px;
  color: var(--text); background: transparent;
}
.co-opt:hover, .co-opt:focus { background: rgba(126, 200, 192, 0.12); }
.co-opt b { font-size: 14px; font-weight: 600; }
.co-opt span { font-size: 11px; color: var(--faint); }
.co-status {
  margin-top: 8px; font-size: 12px; font-weight: 300;
  color: var(--faint); line-height: 1.5;
}
.co-status.ok { color: var(--accent); }
.co-status.warn { color: var(--copper); }

.chip-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.chip-cell {
  display: inline-flex; align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
}
.chip-cell:has(.chip-pick.on) {
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), #9ad9d2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.chip-grid .chip-pick {
  height: 38px; padding: 0 12px 0 14px; border-radius: 0;
  border: 0; color: var(--text);
  background: transparent; font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: all .2s var(--ease);
}
.chip-grid .chip-pick:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.chip-grid .chip-pick.on {
  color: #041210; font-weight: 600;
  background: transparent;
}
.chip-grid .chip-info {
  width: 34px; height: 38px; border: 0; border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--muted); font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em;
}
.chip-cell:has(.chip-pick.on) .chip-info {
  border-left-color: rgba(4, 18, 16, 0.28);
  background: rgba(4, 18, 16, 0.14);
  color: #041210;
}
.chip-cell:has(.chip-pick.on) .chip-info:hover {
  background: rgba(4, 18, 16, 0.24);
  color: #041210;
}
.chip-grid .chip-info:hover {
  color: var(--accent-deep, var(--accent));
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.chip-modal[hidden] { display: none !important; }
.chip-modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: 16px;
}
.chip-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
/* Desktop: 一屏展示、无滚动条；手机 H5 再允许滚动 */
.chip-modal-panel {
  position: relative; z-index: 1;
  width: min(780px, 96vw);
  max-height: none;
  overflow: visible;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--elev);
  box-shadow: var(--shadow);
  color: var(--text);
}
.chip-modal-panel header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px 8px;
  border-bottom: 1px solid var(--line);
  position: static;
  background: var(--elev);
}
.chip-modal-panel h3 {
  margin: 0; font-family: var(--display);
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
}
.chip-modal-x {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line-strong); color: var(--text);
  background: var(--input-bg); font-size: 20px; line-height: 1;
}
.chip-modal-x:hover { border-color: var(--accent); }
.chip-modal-body { padding: 10px 16px 4px; }
.chip-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.chip-dl > div {
  display: grid; grid-template-columns: 88px 1fr; gap: 8px;
  padding: 7px 10px; border-radius: 9px;
  background: var(--elev2); border: 1px solid var(--line);
  align-items: start;
}
/* 长字段通栏，避免双列撑高 */
.chip-dl > div:nth-child(6),
.chip-dl > div:nth-child(7),
.chip-dl > div:nth-child(8),
.chip-dl > div:nth-child(9) {
  grid-column: 1 / -1;
}
.chip-dl dt {
  margin: 0; font-size: 11px; font-weight: 600; color: var(--muted);
  line-height: 1.35;
}
.chip-dl dd {
  margin: 0; font-size: 12px; font-weight: 400; color: var(--text); line-height: 1.4;
}
.chip-modal-note {
  margin: 8px 0 0; font-size: 11px; color: var(--muted); line-height: 1.45;
}
.chip-modal-panel footer {
  padding: 8px 16px 12px; display: flex; justify-content: flex-end;
}
.chip-modal-panel footer .btn {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.check {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px; border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
  font-size: 13px; font-weight: 400; color: var(--text); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.check input { margin-top: 3px; accent-color: var(--accent); }
.check .p {
  margin-left: auto;
  color: var(--copper); font-variant-numeric: tabular-nums;
  white-space: nowrap; font-weight: 500; font-size: 12px;
}
.check.on {
  border-color: rgba(126, 200, 192, 0.4);
  background: rgba(126, 200, 192, 0.08);
}
.check b { font-weight: 600; }
.check.qty-row {
  cursor: default;
  align-items: center;
}
.qty-ctrl {
  display: inline-flex; align-items: center; gap: 0;
  margin-left: auto; margin-right: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--elev);
  flex-shrink: 0;
}
.qty-ctrl button {
  width: 32px; height: 32px;
  color: var(--text); font-size: 16px; font-weight: 600;
  line-height: 1;
}
.qty-ctrl button:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.qty-ctrl em {
  min-width: 28px; text-align: center;
  font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 13px; color: var(--text);
}

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); color: var(--text);
  background: var(--input-bg);
  font-size: 13px; font-weight: 500; transition: all .2s var(--ease);
}
.seg button:hover { color: var(--text); border-color: var(--accent); }
.seg button.on {
  color: #041210; font-weight: 600;
  background: linear-gradient(120deg, var(--accent), #9ad9d2);
  border-color: transparent;
}

.actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.btn {
  height: 44px; padding: 0 22px; border-radius: 11px;
  font-family: var(--display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  transition: transform .2s var(--ease), filter .2s, opacity .2s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn.ghost {
  border: 1px solid var(--line-strong); color: var(--text);
  background: color-mix(in srgb, var(--elev2) 80%, transparent);
}
.btn.ghost:hover { color: var(--text); border-color: var(--accent); }
.btn.primary {
  color: #041210;
  background: linear-gradient(120deg, var(--accent) 0%, #a8ddd8 100%);
  box-shadow: 0 8px 24px rgba(126, 200, 192, 0.22);
}
.btn.primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.amber {
  color: #1a1406;
  background: linear-gradient(120deg, var(--copper), #e8d0a8);
  box-shadow: 0 8px 24px rgba(212, 180, 131, 0.2);
}

.wizard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: 22px;
  align-items: start;
}
.wizard-main { min-width: 0; }
.pick-aside {
  position: sticky;
  top: 84px;
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    var(--elev);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 100px);
  overflow: auto;
}
.pick-aside .lab,
.aside-total .lab {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.pick-hint {
  margin: 6px 0 12px;
  font-size: 11px;
  color: var(--faint);
  line-height: 1.45;
}
.pick-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  margin: 0 0 2px;
  border-radius: 8px;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
}
.pick-row.jump { cursor: pointer; }
.pick-row.jump:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}
.pick-row .k {
  font-size: 11px;
  color: var(--faint);
  line-height: 1.45;
  padding-top: 1px;
}
.pick-row .v {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}
.pick-mini {
  margin: 8px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pick-mini .pick-row { padding: 6px 6px; grid-template-columns: 80px 1fr; }
.pick-mini .pick-hint { display: none; }

.summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 22px; align-items: start;
}
table.lines { width: 100%; border-collapse: collapse; font-size: 13px; }
table.lines th, table.lines td {
  padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left;
}
table.lines th {
  color: var(--muted); font-weight: 600; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--elev2);
}
table.lines td.num {
  text-align: right; font-variant-numeric: tabular-nums;
  color: var(--copper); font-weight: 500;
}
table.lines tr.group-sum td {
  background: color-mix(in srgb, var(--accent) 12%, var(--elev2));
  color: var(--text);
  font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  padding-top: 12px;
  padding-bottom: 12px;
}
table.lines tr.group-sum td.num { color: var(--accent); }

.sensor-box {
  margin: 0 0 18px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--elev));
}
.sensor-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  margin-bottom: 8px;
}
.sensor-head b { font-size: 14px; color: var(--text); }
.sensor-prod { font-size: 12px; color: var(--muted); }
.sensor-charge {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--copper) 45%, transparent);
  background: color-mix(in srgb, var(--copper) 12%, transparent);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}
.sensor-charge b { color: var(--copper); }
.sensor-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 10px;
}
.sensor-chip {
  appearance: none; border: 1px solid var(--line);
  background: var(--elev2); color: var(--text);
  border-radius: 8px; padding: 8px 12px;
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; letter-spacing: 0.02em;
}
.sensor-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--elev2));
}
.sensor-chip.on {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 88%, #041210), color-mix(in srgb, var(--accent) 70%, #0a1c1a));
  color: #041210;
}
.sensor-picked { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.sensor-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); background: var(--elev2);
}
.sensor-x {
  appearance: none; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px;
}
.sensor-x:hover { color: var(--text); }
.sensor-add { margin-top: 4px; }
.sensor-add-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.sensor-add-row input { flex: 1; min-width: 0; }

.aside-total {
  position: sticky; top: 84px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 50%),
    var(--elev);
  box-shadow: var(--shadow);
}
.aside-total .big {
  font-family: var(--display);
  font-size: 32px; font-weight: 800;
  color: var(--text); margin: 8px 0 14px; letter-spacing: -0.03em;
}
.aside-total .row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); margin: 5px 0;
}
.aside-total .exports {
  display: flex; flex-direction: column; gap: 9px; margin-top: 16px;
}
.aside-total .exports .btn { width: 100%; }

.wx-remind {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 180, 131, 0.4);
  background: linear-gradient(160deg, rgba(212, 180, 131, 0.14), rgba(126, 200, 192, 0.06));
  text-align: center;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}
.wx-remind b {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--copper); margin-bottom: 6px;
}
.wx-remind p {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.5;
}
.wx-remind .wx-num {
  font-family: var(--font);
  font-size: clamp(15px, 3.6vw, 18px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.25;
}
.wx-remind .wx-copy { width: 100%; height: 36px; font-size: 13px; }
.wx-remind .wx-copy.ok { border-color: rgba(126, 200, 192, 0.5); color: var(--accent); }

.submit-status {
  margin-top: 10px;
  font-size: 12px; font-weight: 300; color: var(--faint); line-height: 1.45;
}
.submit-status.ok { color: var(--accent); }

.gate {
  padding: 16px 18px; margin-bottom: 18px; border-radius: 12px;
  border: 1px solid rgba(212, 180, 131, 0.35);
  background: var(--copper-soft);
  color: #e8d5b0; font-size: 13px; font-weight: 300; line-height: 1.55;
}
.note {
  font-size: 13px; font-weight: 400; color: var(--muted);
  margin-top: 12px; line-height: 1.65;
}
.err { color: var(--danger); font-size: 12px; margin-top: 8px; }

.footer {
  max-width: var(--max); margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 28px) 48px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.8;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ——— Mid width: keep two columns, slightly tighter aside ——— */
@media (max-width: 1200px) and (min-width: 901px) {
  .wizard { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); }
  .summary { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); }
}

/* ——— Mobile / H5 ——— */
@media (max-width: 900px) {
  .hero, .summary, .form-grid, .wizard { grid-template-columns: 1fr; }
  .aside-total, .pick-aside { position: static; max-height: none; }
  .pick-aside { order: -1; }
  body.hub { overflow: auto; height: auto; min-height: 100dvh; }
  body.hub .wrap.hub-main {
    overflow: visible;
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .hub-stage .optic { opacity: 0.18; right: -28%; width: 64vw; height: 64vw; }
  .entries, .hub-rail { grid-template-columns: 1fr; gap: 10px; }
  .hub-copy h1 .brand-line,
  .hub-copy h1 .sub-line { display: block; }
  .hub-copy h1 .sub-line { margin-top: 4px; }
  .hub-copy h1 { font-size: clamp(24px, 7vw, 34px); }
  .hub-copy .lead { font-size: 14px; line-height: 1.65; max-width: none; }
  .hub-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .entry { padding: 18px 16px 16px; }
  .entry h2 { font-size: 18px; }
  .entry-flow { flex-wrap: wrap; gap: 6px; }
  .entry-flow li + li::before { display: none; }
  .entry-points { font-size: 13px; }

  /* Top bar: keep steps, horizontal scroll */
  .top {
    height: auto;
    min-height: 56px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .top .brand {
    font-size: 13px;
    gap: 8px;
  }
  .top .brand img { width: 26px; height: 26px; }
  .top nav:not(.basis-nav) {
    display: flex !important;
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .top nav:not(.basis-nav)::-webkit-scrollbar { display: none; }
  .top nav:not(.basis-nav) button {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 12px;
    white-space: nowrap;
    font-size: 12px;
  }
  .top .basis-nav {
    order: 4;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .top .link {
    margin-left: auto;
    font-size: 11px;
    white-space: nowrap;
  }
  .top .theme-switch {
    margin-left: 0;
    font-size: 11px;
  }

  .wrap {
    padding: 0 14px calc(88px + env(safe-area-inset-bottom, 0px));
  }
  body.hub .wrap.hub-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    padding: 18px 16px;
    gap: 14px;
  }
  .hero h1 { font-size: clamp(22px, 6.5vw, 30px); }
  .hero p, .hero-side { font-size: 13px; line-height: 1.65; }

  /* Mobile steps: show all 7 as number dots + current title (no clipped pills) */
  .steps {
    flex-wrap: wrap;
    overflow: visible;
    align-items: center;
    justify-content: space-between;
    gap: 8px 4px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--elev2);
  }
  .step-pill {
    flex: 1 1 0;
    min-width: 0;
    max-width: 42px;
    height: 36px;
    padding: 0 !important;
    justify-content: center;
    gap: 0;
    border-radius: 999px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .step-pill .step-label { display: none; }
  .step-pill .n {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .steps-now {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
  }
  .steps-now em {
    font-style: normal;
    font-family: var(--display);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
  }
  .steps-now span { color: var(--text); }

  .panel {
    padding: 18px 14px 16px;
    border-radius: 14px;
  }
  .panel h2 { font-size: 18px; }
  .panel .sub { font-size: 13px; margin-bottom: 16px; }

  .grid-prod {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .card-opt {
    padding: 14px 12px;
    min-height: 96px;
  }
  .card-opt .t { font-size: 13px; }
  .card-opt .d { font-size: 11px; }

  label.field input,
  label.field select,
  label.field textarea,
  .cselect-btn {
    font-size: 16px; /* iOS zoom prevent */
  }
  label.field textarea { min-height: 96px; }

  .actions {
    position: sticky;
    bottom: 0;
    z-index: 35;
    margin: 20px -14px 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 11, 16, 0.94);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.35);
  }
  .actions .btn {
    flex: 1;
    min-height: 46px;
    height: 46px;
    font-size: 14px;
  }

  .summary { gap: 14px; }
  .panel:has(table.lines),
  .quote-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table.lines {
    min-width: 520px;
    font-size: 12px;
  }
  table.lines th, table.lines td { padding: 9px 8px; }

  .aside-total .big { font-size: 28px; }
  .aside-total .exports .btn { min-height: 44px; }

  .footer {
    padding: 20px 14px calc(24px + env(safe-area-inset-bottom, 0px));
    font-size: 12px;
  }

  .cselect-menu {
    max-height: min(60vh, 360px);
  }
}

/* 手机 H5：芯片详情放不下时才滚动 */
@media (max-width: 720px) {
  .chip-modal {
    padding: 10px;
    align-items: end;
  }
  .chip-modal-panel {
    width: 100%;
    max-height: min(82vh, 720px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px 14px 10px 10px;
  }
  .chip-modal-panel header {
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .chip-dl {
    grid-template-columns: 1fr;
  }
  .chip-dl > div:nth-child(6),
  .chip-dl > div:nth-child(7),
  .chip-dl > div:nth-child(8),
  .chip-dl > div:nth-child(9) {
    grid-column: auto;
  }
  .chip-dl > div {
    grid-template-columns: 96px 1fr;
  }
}

@media (max-width: 560px) {
  .grid-prod { grid-template-columns: 1fr; }
  .hub-copy .eyebrow { font-size: 9px; }
  .entry-index { font-size: 28px; }
  .top .brand em { display: none; }
}

@supports (padding: max(0px)) {
  .top {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}
