/* ============================================================
   AI 编程红绿灯 · 金融系统
   零依赖手写 CSS。没有 Tailwind、没有构建、没有 node_modules。
   目的就是让看直播的人能整站抄走。
   ============================================================ */

:root {
  --bg: #0a0f1a;
  --bg-soft: #111827;
  --card: #151d2e;
  --card-2: #1b2438;
  --line: #26314a;
  --line-soft: #1e2739;
  --tx: #e8edf7;
  --tx-dim: #9aa8c2;
  --tx-faint: #66748f;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --red: #ef4444;
  --amber: #f59e0b;
  --green: #22c55e;
  --radius: 14px;
  --radius-lg: 18px;
  --maxw: 1080px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 16.5px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 中英文/数字混排留白，正文观感的关键一步 */
h1, h2, h3, p, li, summary, .lead { text-wrap: pretty; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
@media (max-width: 560px) { .wrap { padding: 0 18px; } }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 20px;
}
.brand {
  font-weight: 700; font-size: 15.5px; color: var(--tx); letter-spacing: .2px;
  display: inline-flex; align-items: center; gap: 9px;
}
.brand:hover { text-decoration: none; }
/* 品牌前的迷你红绿灯：三个点，比任何 logo 都好懂 */
.brand .lights { display: inline-flex; gap: 4px; }
.brand .lights i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.brand .lights i:nth-child(1) { background: var(--red); }
.brand .lights i:nth-child(2) { background: var(--amber); }
.brand .lights i:nth-child(3) { background: var(--green); }
.nav-links { margin-left: auto; display: flex; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--tx-dim); padding: 4px 0; border-bottom: 1.5px solid transparent; }
.nav-links a:hover { color: var(--tx); text-decoration: none; border-bottom-color: var(--accent); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--line-soft); }
@media (max-width: 560px) { section { padding: 56px 0; } }
/* 隔行组交替底色，让长页有呼吸感 */
section.alt { background: linear-gradient(180deg, rgba(17,24,39,.55), transparent 70%); }
.eyebrow {
  font-size: 13px; letter-spacing: .4px;
  color: var(--accent); font-weight: 650; margin: 0 0 14px;
  display: flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 16px; height: 2px; border-radius: 2px;
  background: var(--accent); flex: 0 0 auto;
}
.narrow .eyebrow, .wrap.narrow .eyebrow { justify-content: flex-start; }
h1 {
  font-size: clamp(30px, 5.2vw, 50px); line-height: 1.24;
  margin: 0 0 22px; letter-spacing: -0.6px; font-weight: 800;
}
h2 {
  font-size: clamp(24px, 3.4vw, 33px); line-height: 1.34;
  margin: 0 0 20px; letter-spacing: -0.3px; font-weight: 750;
}
/* 段落默认测量：中文一行 34~40 字最好读 */
section p, .hero p { max-width: 62ch; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 16px; color: var(--tx-dim); }
p.lead { font-size: 18px; color: var(--tx); }
strong { color: var(--tx); font-weight: 700; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 76px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto -10%;
  height: 620px; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 50% at 30% 40%, rgba(79,140,255,.13), transparent 70%);
}
.hero h1 .em { color: var(--red); }
@media (max-width: 560px) { .hero { padding: 60px 0 52px; } }
.credential {
  display: inline-flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  font-size: 13.5px; color: var(--tx-faint); font-family: var(--mono);
  margin: 0 0 30px; padding: 10px 14px;
  border: 1px solid var(--line-soft); border-radius: 999px;
  background: var(--bg-soft);
}
.credential b { color: var(--tx-dim); font-weight: 600; }

/* hero 双栏：左文字右图。窄屏时图收到下面并缩小 */
.hero-grid {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
}
.hero-art { margin: 0; }
.hero-art img { width: 100%; max-width: 330px; margin-left: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art img { max-width: 270px; margin: 0 auto; }
}

/* 正文配图 */
.figure { margin: 0 0 26px; }
.figure img {
  width: 100%; background: var(--bg-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px 14px;
}
.figure figcaption {
  font-size: 13px; color: var(--tx-faint); margin: 11px 0 0;
  font-family: var(--mono); line-height: 1.65;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 11px; font-size: 15px; font-weight: 650;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  line-height: 1.4;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(79,140,255,.7); }
.btn-primary:hover { background: #6b9dff; box-shadow: 0 10px 26px -8px rgba(79,140,255,.8); }
.btn-ghost { background: transparent; color: var(--tx-dim); border-color: var(--line); }
.btn-ghost:hover { color: var(--tx); border-color: var(--tx-faint); }
.btn-sm { padding: 9px 17px; font-size: 13.5px; border-radius: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 480px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

/* ---------- tool ---------- */
.tool {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
}
@media (max-width: 560px) { .tool { padding: 20px; } }
.tool-label { font-size: 14px; color: var(--tx-dim); margin: 0 0 10px; max-width: none; }
.tool-input {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.tool-input input {
  flex: 1 1 320px; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); color: var(--tx);
  padding: 14px 16px; border-radius: 10px; font: inherit; font-size: 15px;
}
.tool-input input:focus { outline: none; border-color: var(--accent); }
.tool-input input::placeholder { color: var(--tx-faint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip {
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  color: var(--tx-dim); font-size: 13px; padding: 6px 12px;
  border-radius: 999px; cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s;
}
.chip:hover { color: var(--tx); border-color: var(--accent); background: var(--accent-soft); }
.chips-hint { font-size: 12.5px; color: var(--tx-faint); margin: 16px 0 0; font-family: var(--mono); }

/* ---------- result card ---------- */
.result { margin-top: 22px; }
.result[hidden] { display: none; }
.rcard {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--rc-border, var(--line));
  background: var(--card-2);
}
.rcard-top {
  padding: 20px 24px; display: flex; gap: 16px; align-items: flex-start;
  background: var(--rc-bg, var(--card-2));
  border-bottom: 1px solid var(--rc-border, var(--line));
}
.rcard-badge {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; font-weight: 800;
  color: #fff; background: var(--rc-color, var(--accent));
}
.rcard-verdict { font-size: 20px; font-weight: 800; color: var(--rc-color); margin: 0 0 2px; line-height: 1.3; }
.rcard-sub { font-size: 13.5px; color: var(--tx-faint); margin: 0; }
.rcard-body { padding: 20px 24px; }
.rcard-q {
  font-family: var(--mono); font-size: 13.5px; color: var(--tx-faint);
  border-left: 2px solid var(--line); padding-left: 12px; margin: 0 0 18px;
  word-break: break-all;
}
.rcard-h { font-size: 17px; font-weight: 700; color: var(--tx); margin: 0 0 10px; }
.rcard-body p { margin: 0 0 14px; }
.rcard-why { color: var(--tx-dim); }
.rcard-instead {
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 14px 16px; margin: 0;
}
.rcard-instead b { color: var(--green); display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .4px; }
.rcard-foot {
  padding: 14px 24px; border-top: 1px solid var(--line-soft);
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--tx-faint);
}
.rcard-foot .sig { margin-left: auto; font-family: var(--mono); }
.rcard-also { font-size: 13px; color: var(--tx-faint); margin: 12px 0 0; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card h3 { display: flex; align-items: center; gap: 9px; line-height: 1.45; }
.card p { max-width: none; }
.card p:last-child { margin-bottom: 0; }
.num {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 6px; font-size: 13px;
  font-weight: 700; background: var(--accent-soft); color: var(--accent);
}

/* 三档清单 */
.lane { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.lane-h {
  padding: 14px 18px; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.lane-h .dot { width: 9px; height: 9px; border-radius: 50%; }
.lane-h .cnt { margin-left: auto; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--tx-faint); }
.lane ul { list-style: none; margin: 0; padding: 8px 0 12px; }
.lane li {
  padding: 9px 18px; font-size: 14.5px; color: var(--tx-dim);
  display: flex; gap: 10px; align-items: baseline; line-height: 1.6;
}
.lane li::before { content: "·"; color: var(--tx-faint); flex: 0 0 auto; }
.lane-red { border-color: rgba(239,68,68,.3); }
.lane-red .lane-h { background: rgba(239,68,68,.1); color: #fca5a5; }
.lane-red .dot { background: var(--red); }
.lane-amber { border-color: rgba(245,158,11,.3); }
.lane-amber .lane-h { background: rgba(245,158,11,.1); color: #fcd34d; }
.lane-amber .dot { background: var(--amber); }
.lane-green { border-color: rgba(34,197,94,.3); }
.lane-green .lane-h { background: rgba(34,197,94,.1); color: #86efac; }
.lane-green .dot { background: var(--green); }

/* 红绿灯高亮块 */
.axiom {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid rgba(79,140,255,.3); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 26px 28px; margin: 0 0 26px;
}
.axiom .q { font-size: clamp(18px, 2.6vw, 23px); font-weight: 700; color: var(--tx); margin: 0 0 12px; line-height: 1.55; max-width: none; }
.axiom p { max-width: none; }
.axiom p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .axiom { padding: 20px; } }

/* 适合 / 不适合 */
.fit { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.fit ul { list-style: none; margin: 0; padding: 0; }
.fit li { padding: 8px 0; font-size: 14.5px; color: var(--tx-dim); display: flex; gap: 10px; line-height: 1.6; }
.fit li i { font-style: normal; flex: 0 0 auto; font-weight: 700; }
.fit-yes li i { color: var(--green); }
.fit-no li i { color: var(--tx-faint); }

/* ---------- form ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .form { padding: 22px; } }
.field { margin: 0 0 20px; }
.field > label { display: block; font-size: 14.5px; font-weight: 650; color: var(--tx); margin: 0 0 9px; line-height: 1.5; }
.field .hint { display: block; font-size: 13px; color: var(--tx-faint); margin: 4px 0 0; font-weight: 400; line-height: 1.6; }
.field input[type="text"], .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  color: var(--tx); padding: 12px 14px; border-radius: 10px; font: inherit; font-size: 15px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.radios { display: grid; gap: 8px; }
.radio {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  background: var(--bg); transition: border-color .15s, background .15s;
}
.radio:hover { border-color: var(--tx-faint); }
.radio input { margin: 5px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.radio.on { border-color: var(--accent); background: var(--accent-soft); }
.radio b { display: block; font-size: 14.5px; font-weight: 650; color: var(--tx); line-height: 1.5; }
.radio > span { flex: 1 1 auto; min-width: 0; }
.radio span span { display: block; font-size: 13px; color: var(--tx-faint); line-height: 1.55; }
.form-note { font-size: 13px; color: var(--tx-faint); margin: 16px 0 0; line-height: 1.7; max-width: none; }

/* 即时交付面板 */
.delivered { display: none; }
.delivered.on { display: block; }
.delivered-in {
  border: 1px solid rgba(34,197,94,.35); background: rgba(34,197,94,.08);
  border-radius: var(--radius-lg); padding: 28px;
}
@media (max-width: 560px) { .delivered-in { padding: 20px; } }
.delivered-in h3 { color: #86efac; font-size: 20px; }
.delivered-in p { max-width: none; }
.dl-list { display: grid; gap: 10px; margin: 20px 0 0; }
.dl-item {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; color: var(--tx); line-height: 1.5;
  transition: border-color .15s ease, transform .12s ease;
}
a.dl-item:hover { border-color: var(--green); transform: translateX(2px); text-decoration: none; }
.dl-item .ico { font-size: 17px; flex: 0 0 auto; }
.dl-item .sz { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--tx-faint); flex: 0 0 auto; }
@media (max-width: 520px) {
  .dl-item { flex-wrap: wrap; }
  .dl-item .sz { margin-left: 29px; }
}
.lead-grade {
  margin: 18px 0 0; font-family: var(--mono); font-size: 12.5px;
  color: var(--tx-faint); padding-top: 14px; border-top: 1px solid var(--line-soft);
}

/* ---------- faq ---------- */
details {
  border: 1px solid var(--line); border-radius: 11px;
  padding: 16px 20px; margin: 0 0 10px; background: var(--card);
  transition: border-color .15s ease;
}
details:hover { border-color: var(--tx-faint); }
details[open] { border-color: var(--accent); background: var(--card-2); }
summary { cursor: pointer; font-weight: 650; font-size: 15.5px; color: var(--tx); line-height: 1.6; }
summary::marker { color: var(--accent); }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
details p { margin: 12px 0 0; max-width: none; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line-soft); padding: 44px 0;
  font-size: 13.5px; color: var(--tx-faint);
  background: linear-gradient(180deg, transparent, rgba(17,24,39,.5));
}
.foot-in { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-in .made { margin-left: auto; font-family: var(--mono); font-size: 12.5px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--tx-dim); }
.foot-links a:hover { color: var(--tx); }
@media (max-width: 620px) {
  .foot-in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-in .made { margin-left: 0; }
}

/* ---------- misc ---------- */
.badge-live {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px;
  font-family: var(--mono); color: var(--tx-dim); background: var(--bg-soft);
  border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px;
  margin: 0 0 22px; line-height: 1.5;
}
.badge-live .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* “专业人士入口”：不抢主导航，只在页尾和软入口出现 */
.softdoor {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 20px 24px; background: var(--bg-soft);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.softdoor p { margin: 0; font-size: 14.5px; max-width: 48ch; }
.softdoor .btn { margin-left: auto; }
@media (max-width: 620px) { .softdoor .btn { margin-left: 0; width: 100%; } }

.divider-note {
  font-size: 13px; color: var(--tx-faint); font-family: var(--mono);
  text-align: center; margin: 0 0 30px;
}
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px);
  background: var(--card-2); border: 1px solid var(--line); color: var(--tx);
  padding: 12px 20px; border-radius: 10px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .22s ease; z-index: 100;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
