/* ─────────────────────────────────────────────────────────────
   AI 交付案例 · 设计系统
   设计立场：两个世界。
   业务世界 = 纸（浅、稳重、像档案）；AI 世界 = 终端（深、克制、有信号色）。
   故事不用文字讲，两边摆在一起就讲完了。
   ───────────────────────────────────────────────────────────── */

:root {
  /* 纸 */
  --paper: #ffffff;
  --paper-2: #f6f5f2;
  --paper-3: #eeece7;
  --line: #e4e1da;
  --line-2: #d5d1c8;
  --ink: #14161a;
  --ink-2: #3d424c;
  --muted: #787d88;
  --muted-2: #9ba0aa;

  /* 终端 */
  --ai-bg: #0b0d11;
  --ai-bg-2: #12151b;
  --ai-line: #22262f;
  --ai-fg: #d8dee8;
  --ai-dim: #737c8b;
  --cyan: #22d3ee;
  --cyan-dim: #0e7490;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  --accent: #1b4dff;
  --accent-soft: #eaefff;

  --shadow-1: 0 1px 2px rgba(16, 18, 24, .05), 0 1px 3px rgba(16, 18, 24, .04);
  --shadow-2: 0 4px 12px rgba(16, 18, 24, .06), 0 12px 32px rgba(16, 18, 24, .06);
  --shadow-3: 0 12px 40px rgba(16, 18, 24, .10), 0 2px 8px rgba(16, 18, 24, .05);

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;

  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas, "Courier New", monospace;

  --maxw: 1320px;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.65;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── 顶栏 ── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 17px; }
.brand .dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(140deg, #1b4dff, #0ea5a5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }
.btn-cta {
  font: inherit; font-size: 14px; font-weight: 650;
  color: #fff; background: var(--ink); border: 0; border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
}
.btn-cta:hover { background: #000; }

/* ── 头图区 ── */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: end; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
h1.title {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08; letter-spacing: -.035em; font-weight: 850;
  margin: 0 0 18px;
}
.lede { font-size: 16px; color: var(--ink-2); max-width: 56ch; margin: 0 0 16px; }
.roles { font-size: 13px; color: var(--muted); }
.roles b { color: var(--ink-2); font-weight: 600; }

.hero-side {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 22px 22px 20px; box-shadow: var(--shadow-2);
}
.hero-side .k { font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero-side .v { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; margin-bottom: 8px; }
.hero-side p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ── 步骤条 ── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; box-shadow: var(--shadow-1); margin-bottom: 26px;
}
.step { display: flex; gap: 14px; align-items: center; padding: 18px 24px; position: relative; }
.step + .step { border-left: 1px solid var(--line); }
.step .no {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 750;
  background: var(--paper-3); color: var(--muted); border: 1px solid var(--line-2);
  transition: all .25s ease;
}
.step .t { font-size: 14px; font-weight: 700; line-height: 1.3; }
.step .d { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.step.on .no { background: var(--ink); color: #fff; border-color: var(--ink); }
.step.done .no { background: var(--accent); color: #fff; border-color: var(--accent); }
.step.done .no::after { content: "✓"; }
.step.done .no span { display: none; }
.step.on .t, .step.done .t { color: var(--ink); }

/* ── 工作台：左纸右终端 ── */
.workbench {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0; border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-3);
  background: var(--paper);
}
@media (max-width: 1040px) { .workbench { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr; } }

.col { min-width: 0; }
.col-input { background: var(--paper); padding: 30px 30px 34px; }

.col-label {
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.col-input h2, .col-ai h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 8px;
}
.col-input .sub, .col-ai .sub { font-size: 13.5px; color: var(--ink-2); margin: 0 0 22px; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* 文件卡 */
.files { display: grid; gap: 10px; }
.filecard {
  border: 1px solid var(--line); border-radius: var(--r-m); padding: 13px 15px;
  background: linear-gradient(180deg, #fff, var(--paper-2));
  display: flex; gap: 13px; align-items: flex-start;
}
.filecard .ico {
  width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--ink-2);
}
.filecard .ico.json { background: #b45309; }
.filecard .ico.xlsx { background: #1d7a4a; }
.filecard .ico.docx { background: #1e50a2; }
.filecard .nm { font-size: 13.5px; font-weight: 650; word-break: break-all; }
.filecard .ds { font-size: 12px; color: var(--muted); margin-top: 2px; }
.filecard .go { margin-left: auto; font-size: 12px; color: var(--accent); font-weight: 650; white-space: nowrap; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 750; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--paper-3); color: var(--ink-2);
}
.tag.ready { background: #e9fbf2; border-color: #b7ecd4; color: #0d7a4c; }
.tag.live { background: #e6fbff; border-color: #a5eaf6; color: #0b6b83; }
.tag.warn { background: #fff7e6; border-color: #f5dfa8; color: #8a5a08; }
.tag.bad { background: #feecec; border-color: #f6c3c3; color: #a52020; }

/* 终端 */
.col-ai { background: var(--ai-bg); color: var(--ai-fg); padding: 30px 30px 34px; position: relative; }
.col-ai::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 260px at 88% -10%, rgba(34, 211, 238, .10), transparent 60%),
    radial-gradient(500px 220px at 0% 110%, rgba(27, 77, 255, .10), transparent 60%);
  pointer-events: none;
}
.col-ai > * { position: relative; }
.col-ai .col-label { color: var(--ai-dim); }
.col-ai h2 { color: #fff; }
.col-ai .sub { color: var(--ai-dim); }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--ai-line); background: rgba(255,255,255,.03);
  border-radius: var(--r-m); padding: 11px 13px; font-size: 12.5px; color: var(--ai-dim);
  margin-bottom: 20px; line-height: 1.55;
}
.notice b { color: var(--cyan); font-weight: 700; }

/* 步骤日志 */
.log { display: grid; gap: 2px; margin-bottom: 18px; }
.logrow {
  display: flex; gap: 12px; align-items: baseline;
  padding: 9px 11px; border-radius: var(--r-s); font-size: 13px;
  border: 1px solid transparent; transition: background .2s ease;
}
.logrow .idx { font-family: var(--mono); font-size: 11px; color: var(--ai-dim); width: 18px; flex: none; }
.logrow .nm { font-weight: 650; color: #eaf0f8; white-space: nowrap; }
.logrow .dt { color: var(--ai-dim); font-size: 12.5px; margin-left: auto; text-align: right; font-family: var(--mono); }
.logrow[data-s="running"] { background: rgba(34, 211, 238, .07); border-color: rgba(34, 211, 238, .28); }
.logrow[data-s="running"] .nm { color: var(--cyan); }
.logrow[data-s="done"] .nm::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.logrow[data-s="failed"] .nm::before { content: "✕ "; color: var(--bad); font-weight: 800; }
.logrow[data-s="pending"] { opacity: .38; }

/* 流式区 */
.stream {
  font-family: var(--mono); font-size: 12px; line-height: 1.72;
  background: #06080b; border: 1px solid var(--ai-line); border-radius: var(--r-m);
  padding: 14px 15px; min-height: 140px; max-height: 300px; overflow: auto;
  white-space: pre-wrap; word-break: break-word; color: #93a1b3;
  scrollbar-width: thin;
}
.stream .cursor { display: inline-block; width: 7px; height: 13px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.stream::-webkit-scrollbar { width: 8px; }
.stream::-webkit-scrollbar-thumb { background: #232833; border-radius: 8px; }

.btn-run {
  width: 100%; margin-top: 18px; font: inherit; font-size: 15px; font-weight: 700;
  color: #04121a; background: linear-gradient(180deg, #7ff0ff, #22d3ee);
  border: 0; border-radius: var(--r-m); padding: 14px; cursor: pointer;
  transition: transform .12s ease, filter .2s ease;
}
.btn-run:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn-run:disabled { opacity: .45; cursor: not-allowed; }

.btn-ghost {
  font: inherit; font-size: 13px; font-weight: 650; padding: 9px 15px; cursor: pointer;
  background: transparent; color: var(--ink-2); border: 1px solid var(--line-2);
  border-radius: 999px;
}
.btn-ghost:hover { background: var(--paper-2); }

/* ── 成果区 ── */
.result { margin-top: 40px; display: grid; gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.card > header {
  padding: 20px 26px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.card > header h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.card > header .hint { font-size: 12.5px; color: var(--muted); }
.card > .body { padding: 24px 26px 26px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* 需求清单 */
.req { display: grid; gap: 0; }
.req .r {
  display: grid; grid-template-columns: 150px 1fr; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.req .r:last-child { border-bottom: 0; }
.req .k { font-size: 13px; color: var(--muted); }
.req .v { font-size: 13.5px; font-weight: 600; }
.req .e {
  grid-column: 2; font-size: 12.5px; color: var(--muted); margin-top: 3px;
  border-left: 2px solid var(--line-2); padding-left: 10px; line-height: 1.55;
}

/* 冲突与缺项 */
.flag { display: grid; gap: 10px; }
.flag .f {
  border: 1px solid var(--line); border-left: 3px solid var(--warn);
  border-radius: var(--r-s); padding: 12px 14px; background: #fffdf7;
}
.flag .f.miss { border-left-color: var(--accent); background: #f8faff; }
.flag .f .h { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.flag .f .b { font-size: 13px; color: var(--ink-2); }

/* 选型 */
.picks { display: grid; gap: 8px; }
.pick {
  display: grid; grid-template-columns: 128px 1fr auto; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px;
  background: linear-gradient(180deg, #fff, var(--paper-2));
}
.pick .sku { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.pick .nm { font-size: 14px; font-weight: 650; }
.pick .why { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pick .pr { font-family: var(--mono); font-size: 13px; text-align: right; font-weight: 650; }
.rejected {
  margin-top: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-m);
  padding: 13px 15px; background: var(--paper-2);
}
.rejected .t { font-size: 12.5px; font-weight: 750; color: #a52020; margin-bottom: 6px; }
.rejected li { font-size: 12.5px; color: var(--ink-2); margin: 3px 0; }

/* 报价表 */
table.price { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.price th {
  text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 750; padding: 0 10px 10px; border-bottom: 1px solid var(--line);
}
table.price td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.price tr:last-child td { border-bottom: 0; }
table.price .num { font-family: var(--mono); text-align: right; white-space: nowrap; }
table.price tr.grp td { background: var(--paper-2); font-weight: 700; font-size: 12.5px; color: var(--ink-2); }
table.price tr.total td { font-weight: 800; font-size: 15px; border-top: 2px solid var(--ink); background: #fff; }

/* 可点数字：证据链 */
.evi {
  cursor: pointer; border-bottom: 1px dashed var(--accent); color: inherit;
  transition: background .15s ease;
}
.evi:hover { background: var(--accent-soft); }
.evi.open { background: var(--accent-soft); border-bottom-style: solid; }
.evi-box {
  margin-top: 8px; border: 1px solid #c9d6ff; background: #f6f9ff; border-radius: var(--r-s);
  padding: 11px 13px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6;
}
.evi-box .src { font-family: var(--mono); font-size: 11.5px; color: var(--accent); margin-bottom: 5px; }
.evi-box code { font-family: var(--mono); background: #fff; border: 1px solid #dde6ff; border-radius: 4px; padding: 1px 5px; }

/* 草稿 */
.draft {
  font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; word-break: break-word;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 22px 24px; max-height: 620px; overflow: auto;
}

/* 确认清单 */
.confirm { display: grid; gap: 8px; }
.confirm .c {
  display: grid; grid-template-columns: 108px 1fr 300px; gap: 14px; align-items: baseline;
  border: 1px solid var(--line); border-radius: var(--r-m); padding: 11px 14px;
}
@media (max-width: 900px) { .confirm .c { grid-template-columns: 1fr; } }
.confirm .role { font-size: 12px; font-weight: 750; color: var(--accent); }
.confirm .it { font-size: 13.5px; font-weight: 650; }
.confirm .wy { font-size: 12.5px; color: var(--muted); }

/* 指标条 */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric { background: var(--paper); padding: 16px 22px; }
.metric .k { font-size: 11.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; font-weight: 700; }
.metric .v { font-family: var(--mono); font-size: 19px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; }
.metric .v.good { color: #0d7a4c; }
.metric .v.over { color: #a52020; }

/* 页脚 */
.foot { padding: 46px 0 60px; color: var(--muted); font-size: 13px; }
.foot .in { border-top: 1px solid var(--line); padding-top: 22px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot .sp { margin-left: auto; }

/* 首页案例卡 */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.casecard {
  display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 26px 26px 24px; box-shadow: var(--shadow-1); transition: transform .16s ease, box-shadow .2s ease;
}
.casecard:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.casecard .n { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 700; }
.casecard h3 { font-size: 21px; font-weight: 800; letter-spacing: -.025em; margin: 10px 0 8px; }
.casecard p { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.casecard .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.casecard.soon { opacity: .6; pointer-events: none; }
