/* 祈梦Agent · 心超智能体案例（临床深色，不套官网浅色） */
:root {
  --bg: #07090c;
  --bg-warm: #0b0e12;
  --surface: #10151c;
  --elevated: #171e27;
  --fg: #e8eef2;
  --muted: #8b99a6;
  --subtle: #5d6c78;
  --accent: #6eb4c0;
  --accent-dim: #1a333a;
  --accent-fg: #061014;
  --line: #232c36;
  --ok: #7dba8a;
  --warn: #c4a46a;
  --danger: #c97a72;
  --maxw: 1120px;
  --font-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Songti SC", "Noto Serif SC", "STSong", ui-serif, Georgia, serif;
  --font-mono: "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: color-mix(in oklab, var(--accent) 35%, transparent); color: var(--fg); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.tabnum { font-variant-numeric: tabular-nums; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.brand strong { display: block; font-size: 16px; letter-spacing: .04em; line-height: 1.15; }
.brand small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.header-cta {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--fg); color: var(--bg);
}
.header-cta:hover { opacity: .9; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; background: var(--fg); color: var(--bg);
  transition: opacity .15s, background .15s, color .15s;
}
.btn:hover { opacity: .92; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: var(--elevated); }
.btn-sm { height: 40px; padding: 0 14px; font-size: 13px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 88vh; display: flex; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 72%, transparent) 46%, color-mix(in oklab, var(--bg) 28%, transparent) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 55%, transparent) 0%, transparent 28%, color-mix(in oklab, var(--bg) 92%, transparent) 100%);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 24px 72px; }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; }
.hero h1 { margin-top: 20px; font-family: var(--font-display); font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4rem); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
.hero h1 .sub { display: block; margin-top: 12px; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 500; color: var(--muted); }
.hero .lead { margin-top: 24px; max-width: 36em; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border-radius: 12px; background: var(--line); }
.stats .stat { background: var(--surface); padding: 20px 22px; }
.stats .stat dt { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.stats .stat dd { margin-top: 8px; font-family: var(--font-mono); font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-variant-numeric: tabular-nums; }

/* Section scaffolding */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section.warm { background: var(--bg-warm); }
.sec-head { max-width: 42em; }
.sec-head h2 { margin-top: 12px; font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); font-weight: 600; }
.sec-head p { margin-top: 16px; font-size: 16px; color: var(--muted); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; }

/* Capabilities */
.cap-grid { display: grid; gap: 40px; margin-top: 0; }
@media (min-width: 960px) { .cap-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }
.cap-lead h2 { margin-top: 12px; font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); font-weight: 600; }
.cap-lead p { margin-top: 16px; max-width: 28em; font-size: 16px; color: var(--muted); }
.cap-img { margin-top: 32px; border-radius: 12px; overflow: hidden; }
.cap-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; outline: 1px solid color-mix(in oklab, var(--fg) 10%, transparent); outline-offset: -1px; }
.cards-2 { display: grid; gap: 1px; overflow: hidden; border-radius: 12px; background: var(--line); }
@media (min-width: 640px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.cell { background: var(--surface); padding: 22px; }
.cell .kick { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--accent); }
.cell h3 { margin-top: 12px; font-family: var(--font-display); font-size: 20px; }
.cell p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Console */
.console { margin-top: 40px; overflow: hidden; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px rgba(232,238,242,.08); }
.console-top { display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line); padding: 16px 18px; }
@media (min-width: 640px) { .console-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.case-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tab { height: 40px; border: 0; border-radius: 8px; padding: 0 14px; font-size: 14px; color: var(--muted); background: transparent; cursor: pointer; transition: color .15s, background .15s; }
.case-tab:hover { color: var(--fg); }
.case-tab.on { background: var(--elevated); color: var(--fg); }
.console-body { display: grid; }
@media (min-width: 1024px) { .console-body { grid-template-columns: 1.05fr 1fr; } }
.viewer { border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .viewer { border-bottom: 0; border-right: 1px solid var(--line); } }
.viewer-meta { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.echo { position: relative; overflow: hidden; background: var(--bg); aspect-ratio: 5/4; }
.echo svg { width: 100%; height: 100%; }
.ecg { border-top: 1px solid var(--line); padding: 2px 8px; }
.ecg svg { width: 100%; height: 36px; }
.view-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding: 12px 18px; }
.view-tab { height: 36px; border: 0; border-radius: 8px; padding: 0 12px; font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); background: transparent; cursor: pointer; transition: color .15s, background .15s; }
.view-tab:hover { color: var(--fg); }
.view-tab.on { background: var(--accent-dim); color: var(--accent); }
.panel { display: flex; flex-direction: column; min-height: 30rem; }
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .rail { grid-template-columns: repeat(8, 1fr); } }
.rail li { display: flex; align-items: center; gap: 6px; background: var(--surface); padding: 10px 8px; font-size: 10px; color: var(--subtle); }
.rail li.on { color: var(--fg); }
.rail .dot { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.rail li.on .dot { border-color: var(--accent); background: var(--accent); }
.rail li.on .dot::after { content: ""; position: absolute; inset: 2px 3px; border-left: 2px solid var(--accent-fg); border-bottom: 2px solid var(--accent-fg); transform: rotate(-45deg) translate(0, -1px); }
.rail li.cur .dot { border-color: var(--accent); background: transparent; animation: spin 1s linear infinite; border-top-color: transparent; }
.rail .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }

.idle { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.idle .st { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.idle h3 { margin-top: 8px; font-family: var(--font-display); font-size: 24px; }
.idle p { margin-top: 16px; font-size: 14px; color: var(--muted); }
.idle .hint { margin-top: 32px; font-size: 12px; color: var(--subtle); }

.result { flex: 1; display: flex; flex-direction: column; }
.res-tabs { display: flex; gap: 4px; padding: 12px 18px 0; }
.res-tab { height: 40px; border: 0; border-radius: 8px; padding: 0 14px; font-size: 14px; color: var(--muted); background: transparent; cursor: pointer; transition: color .15s, background .15s; }
.res-tab:hover { color: var(--fg); }
.res-tab.on { background: var(--elevated); color: var(--fg); }
.res-tab:disabled { opacity: .4; cursor: default; }
.res-panel { flex: 1; overflow: auto; padding: 18px; }
.pending { padding: 32px 0; text-align: center; font-size: 14px; color: var(--subtle); }

table.meas { width: 100%; text-align: left; font-size: 14px; border-collapse: collapse; }
table.meas th { padding-bottom: 8px; font-size: 12px; font-weight: 500; color: var(--subtle); }
table.meas td { padding: 10px 0; border-top: 1px solid var(--line); }
table.meas .code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
table.meas .nm { margin-left: 8px; color: var(--muted); }
table.meas .val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.meas .val.ok { color: var(--fg); }
table.meas .val.warn { color: var(--warn); }
table.meas .val.alert { color: var(--danger); }
table.meas .ref { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
@media (max-width: 560px) { table.meas .refcol { display: none; } }

ul.findings { list-style: none; display: flex; flex-direction: column; gap: 8px; }
ul.findings li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 10px; background: var(--elevated); padding: 12px; }
ul.findings .fn { font-size: 14px; color: var(--fg); }
ul.findings .fc { margin-top: 2px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
ul.findings .grade { border-radius: 7px; padding: 4px 8px; font-family: var(--font-mono); font-size: 12px; background: var(--bg); color: var(--accent); }
ul.findings .grade.review { color: var(--warn); }

.report { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.res-foot { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid var(--line); padding: 12px 18px; font-size: 12px; color: var(--warn); }
.res-foot svg { flex: 0 0 auto; margin-top: 2px; }
.disclaimer { margin-top: 16px; font-size: 12px; line-height: 1.7; color: var(--subtle); }

/* Pipeline */
.steps { display: grid; gap: 1px; overflow: hidden; border-radius: 12px; background: var(--line); margin-top: 48px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); padding: 22px; }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.step h3 { margin-top: 12px; font-family: var(--font-display); font-size: 20px; }
.step p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.mvp { display: grid; overflow: hidden; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px rgba(232,238,242,.08); margin-top: 40px; }
@media (min-width: 1024px) { .mvp { grid-template-columns: 1.15fr .85fr; } }
.mvp img { width: 100%; height: 100%; min-height: 16rem; object-fit: cover; outline: 1px solid color-mix(in oklab, var(--fg) 10%, transparent); outline-offset: -1px; }
.mvp .body { padding: 28px; }
.mvp .lab { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.mvp .body > p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.mvp ol { margin-top: 24px; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mvp ol li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.mvp ol .idx { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }

/* Metrics table */
.metrics-tbl { margin-top: 40px; overflow-x: auto; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px rgba(232,238,242,.08); }
.metrics-tbl table { width: 100%; min-width: 36rem; text-align: left; font-size: 14px; border-collapse: collapse; }
.metrics-tbl thead tr { border-bottom: 1px solid var(--line); }
.metrics-tbl th { padding: 14px 20px; font-size: 12px; font-weight: 500; color: var(--subtle); }
.metrics-tbl td { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.metrics-tbl tbody tr:last-child td { border-bottom: 0; }
.metrics-tbl .c { font-family: var(--font-mono); color: var(--accent); }
.metrics-tbl .u, .metrics-tbl .r { font-family: var(--font-mono); color: var(--muted); }

/* Trust */
.trust-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
.trust-lead h2 { margin-top: 12px; font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); font-weight: 600; }
.trust-lead p { margin-top: 16px; font-size: 16px; color: var(--muted); }
.trust-img { margin-top: 32px; border-radius: 12px; overflow: hidden; }
.trust-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; outline: 1px solid color-mix(in oklab, var(--fg) 10%, transparent); outline-offset: -1px; }
.trust-cells { display: grid; gap: 1px; overflow: hidden; border-radius: 12px; background: var(--line); align-content: start; }
@media (min-width: 640px) { .trust-cells { grid-template-columns: 1fr 1fr; } }
.trust-cells .cell h3 { font-family: var(--font-display); font-size: 20px; }
.trust-cells .cell p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Coop */
.coop-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 1024px) { .coop-grid { grid-template-columns: repeat(3, 1fr); } }
.coop { display: flex; flex-direction: column; border-radius: 12px; background: var(--surface); padding: 24px; box-shadow: 0 0 0 1px rgba(232,238,242,.08); }
.coop .kick { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.coop h3 { margin-top: 12px; font-family: var(--font-display); font-size: 24px; }
.coop > p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.coop ul { margin-top: 24px; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.coop ul li { display: flex; gap: 8px; }
.coop ul li::before { content: ""; margin-top: 8px; width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); font-weight: 600; }
.cta p { margin: 16px auto 0; max-width: 34em; font-size: 16px; color: var(--muted); }
.cta .hero-cta { justify-content: center; margin-top: 28px; }
.contact-strip { margin-top: 40px; display: grid; gap: 1px; overflow: hidden; border-radius: 12px; background: var(--line); text-align: left; }
@media (min-width: 640px) { .contact-strip { grid-template-columns: repeat(3, 1fr); } }
.contact-strip .cell .kick { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.contact-strip .cell p { margin-top: 8px; font-size: 15px; color: var(--fg); }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); line-height: 1.8; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

/* Motion */
@keyframes ecg-flow { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
.ecg-draw { stroke-dasharray: 80 160; animation: ecg-flow 1.6s linear infinite; }
@keyframes scan-sweep { from { transform: rotate(-38deg); opacity: .15; } 40% { opacity: .55; } to { transform: rotate(38deg); opacity: .12; } }
.scan-line { transform-origin: 200px 20px; animation: scan-sweep 1.8s var(--ease-out, cubic-bezier(.22,1,.36,1)) infinite; }

@media (max-width: 860px) {
  .nav { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header { gap: 12px; padding: 12px 16px; }
  .hero-inner { padding: 96px 16px 56px; }
  .section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan-line, .ecg-draw, .rail li.cur .dot { animation: none !important; }
}
