/* =========================================================
   VascGemma · 血管年龄多模态评估
   Prototype v2 · 2026
   ========================================================= */

:root {
  --bg: #f2f5f7;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --ink: #0b1f2a;
  --ink-2: #17333f;
  --muted: #5f7180;
  --faint: #8a99a4;
  --line: #e1e8ed;
  --line-strong: #cfdae2;
  --primary: #0d5c63;
  --primary-dark: #083f45;
  --primary-soft: #e9f2f1;
  --accent: #c74a52;
  --accent-soft: #fbeceb;
  --warn: #9d6417;
  --warn-soft: #fbf2e2;
  --ok: #1f7a5f;
  --ok-soft: #e8f3ee;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(13, 40, 50, 0.035), 0 18px 40px -28px rgba(13, 40, 50, 0.18);
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 480px at 6% -10%, rgba(13, 92, 99, 0.10), transparent 62%),
    radial-gradient(760px 380px at 102% -4%, rgba(199, 74, 82, 0.05), transparent 62%);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
::selection { background: rgba(13, 92, 99, 0.16); }

.hidden { display: none !important; }

/* =========================== 登录 =========================== */
.login-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 32px 22px;
  background:
    radial-gradient(900px 520px at 10% 2%, rgba(66, 178, 162, 0.22), transparent 62%),
    radial-gradient(720px 440px at 94% 98%, rgba(199, 74, 82, 0.14), transparent 62%),
    linear-gradient(140deg, #061c24 0%, #0a2f37 48%, #061f26 100%);
}

.login-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 48px 110px -46px rgba(0, 0, 0, 0.82);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 42px 42px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(430px 270px at 92% 6%, rgba(94, 203, 186, 0.2), transparent 64%),
    radial-gradient(360px 250px at 2% 102%, rgba(199, 74, 82, 0.17), transparent 60%),
    linear-gradient(150deg, #083f45 0%, #0a4a51 56%, #0d5c63 100%);
}
.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 70% 30%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 12%, transparent 76%);
  pointer-events: none;
}
.login-brand > * { position: relative; z-index: 1; }

.login-brand-head { display: flex; align-items: center; gap: 11px; margin-bottom: 34px; }
.login-brand .brand-mark {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.login-brand .brand-name { color: #fff; font-size: 16px; }
.login-brand .brand-name em { color: #8dd3c8; }
.login-brand .eyebrow { color: #8dd3c8; }
.login-brand h1 {
  margin: 11px 0 16px;
  font-size: 34px;
  font-weight: 680;
  line-height: 1.24;
  letter-spacing: -0.03em;
}
.login-brand > p {
  max-width: 396px;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.64);
}
.login-points { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.login-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.74);
}
.login-points li::before {
  content: "✓";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(141, 211, 200, 0.36);
  background: rgba(141, 211, 200, 0.14);
  color: #a9e7d8;
  font-size: 8.5px;
  font-weight: 700;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 40px;
  background: #fff;
}
.login-card h2 { margin: 8px 0 7px; font-size: 23px; font-weight: 680; letter-spacing: -0.025em; }
.login-desc { font-size: 11.5px; line-height: 1.7; color: var(--muted); }

.login-label {
  margin: 23px 0 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.password-shell { position: relative; }
.password-shell input {
  width: 100%;
  height: 44px;
  padding: 0 60px 0 13px;
  border: 1px solid #dce5eb;
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.password-shell input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.1);
}
.password-shell button {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: #eef4f4;
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.password-shell button:hover { background: #e2eeee; }

.login-error { min-height: 17px; margin-top: 9px; font-size: 10.5px; line-height: 1.5; color: var(--accent); }
.login-card .btn-block { margin-top: 12px; }
.login-foot { margin-top: 16px; font-size: 9.5px; color: var(--faint); text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.2em;
  color: var(--primary);
}

/* =========================== 顶部栏 =========================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(225, 232, 237, 0.9);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0f6b70, #083f45);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -10px rgba(8, 63, 69, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark svg { width: 28px; height: 28px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.13em;
  color: var(--ink);
}
.brand-name em { font-style: normal; color: var(--primary); }
.brand-sub { margin-top: 3px; font-size: 10px; color: var(--faint); letter-spacing: 0.04em; }

.topnav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }

.topnav a,
.topnav button {
  position: relative;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}

.topnav a:hover,
.topnav button:hover { color: var(--ink); background: #f4f7f8; }

.topnav a.is-active {
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 650;
}

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid #f0e2c6;
  background: #fffbf1;
  color: #8b621f;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c08a2e;
  box-shadow: 0 0 0 3px rgba(192, 138, 46, 0.13);
}

.model-chip {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  background: #fff;
  letter-spacing: 0.02em;
}

.top-logout {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.top-logout:hover { color: var(--accent); border-color: #eed3d1; background: var(--accent-soft); }

/* =========================== 工作区 =========================== */
.workspace {
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 32px 56px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 386px;
  align-items: center;
  gap: 48px;
  margin-bottom: 26px;
}

.intro-main h1 {
  margin: 8px 0 12px;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 680;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.intro-lead {
  max-width: 610px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.intro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.intro-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #dce6ea;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.75;
}

.protocol-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 10px;
  box-shadow: var(--shadow);
}

.protocol-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 10px;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-2);
  letter-spacing: 0.05em;
}

.protocol-kicker { font-size: 8.5px; font-weight: 600; letter-spacing: 0.16em; color: var(--faint); }

.protocol-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.18s;
}

.protocol-row.is-active { background: var(--primary-soft); }
.protocol-row + .protocol-row { margin-top: 2px; }

.pr-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  margin-top: 5px;
  border-radius: 50%;
  border: 1px solid #c3d2d8;
  background: #fff;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.protocol-row.is-active .pr-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 92, 99, 0.12);
}

.protocol-row b { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.protocol-row small { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.5; color: var(--faint); }

/* =========================== 原型提示 =========================== */
.prototype-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  margin-bottom: 22px;
  border: 1px solid #ece0c9;
  border-radius: 12px;
  background: linear-gradient(90deg, #fffaf0, #fffdf8);
  color: #7c5b22;
  font-size: 11.5px;
  line-height: 1.6;
}

.pb-tag {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  background: #a97322;
  color: #fff;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
}

.prototype-bar p { flex: 1; }

/* =========================== 布局 =========================== */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 24px;
  align-items: start;
}

.form-stack { display: flex; flex-direction: column; gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-card { scroll-margin-top: 86px; }

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 21px 24px 16px;
}

.sec-idx {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #d9e7e6;
  background: #f1f7f6;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.sec-title { flex: 1; min-width: 0; }
.sec-title h2 { font-size: 16.5px; font-weight: 660; letter-spacing: -0.012em; color: var(--ink); }
.sec-title p { margin-top: 3px; font-size: 11.5px; color: var(--faint); line-height: 1.5; }

.fill-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  margin-top: 2px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.fill-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b9c5cc;
}

.fill-badge.is-complete {
  border-color: #cfe6dd;
  background: var(--ok-soft);
  color: var(--ok);
}
.fill-badge.is-complete::before { background: var(--ok); }

.card-body { padding: 0 24px 24px; }

/* =========================== 表单字段 =========================== */
.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px 14px;
}

.field.span-2 { grid-column: span 2; }

.field-label {
  min-height: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.2;
}

.field-label .label-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.field-flag {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field-flag.is-low { background: #eef4fa; color: #4a7095; }

.auto-tag {
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef3f4;
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.input-shell { position: relative; }

.input-shell input,
.field > select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dce5eb;
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}

.input-shell.has-unit input { padding-right: 72px; }

.input-shell input::placeholder,
.field > select::placeholder { color: #a8b4bd; font-size: 11.5px; }

.input-shell input:hover,
.field > select:hover { border-color: #c7d5de; background: #fff; }

.input-shell input:focus,
.field > select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.10);
}

.input-shell input[readonly] {
  background: #f1f5f6;
  border-color: #e2e9ed;
  color: var(--primary-dark);
  font-weight: 650;
  cursor: default;
}
.input-shell input[readonly]:focus { box-shadow: none; border-color: #e2e9ed; }

.input-shell input::-webkit-outer-spin-button,
.input-shell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.input-shell input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #93a1ab;
  font-size: 10px;
  pointer-events: none;
  white-space: nowrap;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field > select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23677884' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.field.is-abnormal .input-shell input,
.field.is-abnormal > select {
  border-color: #e2b567;
  background: #fffbf3;
}

.field.is-abnormal .input-shell input:focus,
.field.is-abnormal > select:focus {
  box-shadow: 0 0 0 3px rgba(201, 147, 46, 0.13);
}

/* 分段控件 */
.segmented {
  height: 44px;
  padding: 3px;
  display: flex;
  gap: 2px;
  border: 1px solid #e1e9ee;
  border-radius: 10px;
  background: #f3f6f8;
}

.segmented button {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
}

.segmented button:hover { color: var(--ink); }

.segmented button.is-active {
  background: #fff;
  border-color: #d9e3e8;
  color: var(--primary-dark);
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(13, 40, 50, 0.08);
}

.segmented.is-alert button.is-active[data-tone="alert"] {
  color: var(--warn);
  border-color: #ecd5ae;
  background: #fffaf1;
}

/* 血压条 */
.bp-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 15px;
  padding: 11px 14px;
  border: 1px solid #e6edf1;
  border-radius: 12px;
  background: #f9fbfc;
  transition: border-color 0.2s, background 0.2s;
}

.bp-icon {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid #dce7e8;
  background: #fff;
  color: var(--primary);
}
.bp-icon svg { width: 17px; height: 17px; }

.bp-copy { display: flex; align-items: baseline; gap: 8px; }
.bp-copy span { font-size: 9.5px; letter-spacing: 0.08em; color: var(--faint); }
.bp-copy strong { font-size: 12.5px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.bp-badge {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  background: #eef3f4;
  color: var(--muted);
}

.bp-badge.is-ok { background: var(--ok-soft); color: var(--ok); }
.bp-badge.is-warn { background: var(--warn-soft); color: var(--warn); }
.bp-badge.is-alert { background: var(--accent-soft); color: var(--accent); }

.bp-note { margin-left: auto; font-size: 10.5px; color: var(--faint); text-align: right; }

.bp-strip.is-warn { border-color: #eeddbd; background: #fffdf8; }
.bp-strip.is-alert { border-color: #f0cfcd; background: #fffafa; }

.sub-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
}
.sub-divider span { flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }
.sub-divider i { flex: 1; height: 1px; background: var(--line); }
.sub-divider em { flex-shrink: 0; font-style: normal; font-size: 10px; color: var(--faint); }

/* =========================== 检验标签页 =========================== */
.lab-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 15px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.lab-tab {
  height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f4f7f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
}

.lab-tab:hover { color: var(--ink); background: #eef3f4; }

.lab-tab.is-active {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(13, 40, 50, 0.07);
}

.tab-alert {
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 8.5px;
  font-weight: 700;
  font-style: normal;
}

.lab-panel { display: none; }
.lab-panel.is-active { display: block; animation: panel-in 0.22s ease; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  font-size: 10.5px;
  color: var(--faint);
}
.panel-meta strong { color: var(--muted); font-weight: 600; }

/* =========================== 生活方式 =========================== */
.notes-block {
  padding: 17px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdfd, #f8fafb);
}

.notes-head h3 { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.notes-head p { margin-top: 3px; font-size: 10.5px; line-height: 1.6; color: var(--faint); }

.quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }

.quick-chips button {
  height: 27px;
  padding: 0 10px;
  border: 1px dashed #d3dfe4;
  border-radius: 99px;
  background: #fff;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
  transition: all 0.16s;
}

.quick-chips button:hover {
  border-style: solid;
  border-color: var(--primary);
  color: var(--primary);
  background: #f6fbfa;
}

#lifestyle-notes {
  width: 100%;
  min-height: 100px;
  padding: 11px 12px;
  border: 1px solid #dce5eb;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.75;
  resize: vertical;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
#lifestyle-notes::placeholder { color: #a8b4bd; font-size: 11.5px; }
#lifestyle-notes:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.10); }

.notes-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  font-size: 9.5px;
  color: var(--faint);
}

/* =========================== 影像上传 =========================== */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.upload-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1.5px dashed #cfdde3;
  border-radius: 14px;
  background: #fbfcfd;
  cursor: pointer;
  transition: all 0.18s;
  outline: none;
}

.upload-card:hover { border-color: #8bb8b6; background: #f8fcfb; }
.upload-card:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.10); }
.upload-card.is-dragover { border-color: var(--primary); background: #f2faf8; }

.upload-art {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f5eee8;
  border: 1px solid #ece2d9;
}
.upload-art svg { width: 100%; height: 100%; }
.upload-art img { width: 100%; height: 100%; object-fit: cover; }

.upload-info { min-width: 0; }
.upload-info b { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.upload-info small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.upload-info em { display: block; margin-top: 3px; font-style: normal; font-size: 9.5px; color: var(--faint); }

.upload-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 23px;
  padding: 0 7px;
  border: 1px solid #ecdede;
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  font-size: 9.5px;
  cursor: pointer;
}
.upload-remove:hover { background: var(--accent-soft); }

.upload-card.has-image { border-style: solid; border-color: #cfe2de; background: #fff; }
.upload-card.has-image .upload-info small { color: var(--ok); }

.upload-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--faint);
}
.upload-note svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; }

/* =========================== 右侧摘要 =========================== */
.side-stack {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-card { padding: 19px; }

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  color: var(--faint);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ok);
}
.live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(31, 122, 95, 0.12);
}

.patient-block { display: flex; align-items: center; gap: 11px; margin: 15px 0; }

.patient-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(145deg, #0e6a70, #0a4a50);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.patient-avatar svg { width: 21px; height: 21px; }

.patient-text { min-width: 0; }
.patient-text h3 {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.patient-text p { margin-top: 2px; font-size: 10.5px; color: var(--faint); }

.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.metric {
  padding: 9px 10px;
  border: 1px solid #edf2f4;
  border-radius: 10px;
  background: #f9fbfc;
}
.metric > span { display: block; font-size: 9.5px; color: var(--faint); letter-spacing: 0.03em; }
.metric > strong {
  display: block;
  margin-top: 2px;
  font-size: 14.5px;
  font-weight: 660;
  line-height: 1.3;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric > strong.metric-text { font-size: 11.5px; font-weight: 600; }

.tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 600;
  background: #eef3f4;
  color: var(--muted);
  white-space: nowrap;
}
.tag.is-ok { background: var(--ok-soft); color: var(--ok); }
.tag.is-warn { background: var(--warn-soft); color: var(--warn); }
.tag.is-alert { background: var(--accent-soft); color: var(--accent); }
.tag.is-muted { background: #f1f4f6; color: #98a6af; }

.risk-block { margin-top: 15px; }
.risk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.risk-head h4 { font-size: 10px; font-weight: 650; letter-spacing: 0.06em; color: var(--ink-2); }
.risk-head span { font-size: 9px; color: var(--faint); }

.risk-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.risk-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid #e9eef1;
  border-radius: 6px;
  background: #f8fafb;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
}
.risk-tag::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #aebac2; }
.risk-tag.is-warn { border-color: #efe1c8; background: var(--warn-soft); color: var(--warn); }
.risk-tag.is-warn::before { background: #c59449; }
.risk-tag.is-alert { border-color: #eed3d1; background: var(--accent-soft); color: var(--accent); }
.risk-tag.is-alert::before { background: var(--accent); }
.risk-tag.is-muted { border-color: var(--line); background: #f6f8f9; color: var(--faint); }
.risk-tag.is-muted::before { background: #b8c6bd; }

.risk-empty { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--faint); }
.risk-empty::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #b8c6bd; }

.completion {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 11px;
  border: 1px solid #edf2f4;
  border-radius: 11px;
}

.ring-wrap { position: relative; width: 58px; height: 58px; flex-shrink: 0; }
.ring-svg { width: 58px; height: 58px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #edf2f3; stroke-width: 5; }
.ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s ease;
}
.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.ring-label strong { font-size: 11px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.ring-label span { font-size: 7px; color: var(--faint); margin-top: 1px; }

.completion-copy { flex: 1; min-width: 0; }
.completion-copy > strong { display: block; font-size: 11px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.completion-copy > span { display: block; margin-top: 1px; font-size: 9px; color: var(--faint); }
.completion-bar { height: 4px; margin-top: 6px; border-radius: 99px; background: #edf2f3; overflow: hidden; }
.completion-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0d5c63, #46a099); transition: width 0.35s ease; }

.json-peek {
  margin-top: 13px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #0e2029;
}
.peek-head { display: flex; justify-content: space-between; align-items: center; }
.peek-head span { font-size: 8px; font-weight: 600; letter-spacing: 0.14em; color: #7f9d9d; }
.peek-head button {
  border: 0;
  background: transparent;
  color: #97c8c2;
  font-size: 9.5px;
  cursor: pointer;
  padding: 0;
}
.peek-head button:hover { color: #d7eee9; }
.json-peek pre {
  margin: 5px 0 0;
  max-height: 48px;
  overflow: hidden;
  color: #c9dedb;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* =========================== 按钮 =========================== */
.btn {
  height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: linear-gradient(135deg, #0f686e, #09484e);
  color: #fff;
  border-color: #0b545a;
  box-shadow: 0 8px 20px -12px rgba(8, 63, 69, 0.7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(8, 63, 69, 0.8); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: #bccbd4; background: #fbfcfd; }

.btn-sm { height: 31px; padding: 0 10px; font-size: 10.5px; border-radius: 8px; }
.btn-block { width: 100%; height: 45px; margin-top: 13px; font-size: 13px; border-radius: 11px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.icon-btn {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f4f7f8;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s;
}
.icon-btn:hover { background: #edf2f4; color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

.eval-error {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #eed3d1;
  border-radius: 9px;
  background: var(--accent-soft);
  color: #a53d44;
  font-size: 10px;
  line-height: 1.6;
  word-break: break-word;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.tool-row button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
  transition: all 0.16s;
}
.tool-row button:hover { color: var(--primary); border-color: #bfd6d4; background: #f8fcfb; }

.side-note-inline {
  display: flex;
  gap: 5px;
  margin-top: 9px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.55;
}
.side-note-inline svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px; }

.dims-card { padding: 17px 18px; }
.dims-head { display: flex; justify-content: space-between; align-items: center; }
.dims-head h4 { font-size: 10px; font-weight: 650; letter-spacing: 0.06em; color: var(--ink-2); }
.dims-head span { font-size: 8px; letter-spacing: 0.14em; color: var(--faint); }
.dims-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.dims-tags span {
  padding: 3px 6px;
  border: 1px solid #e9eef1;
  border-radius: 5px;
  background: #f8fafb;
  font-size: 9px;
  color: var(--muted);
}
.dims-tags span.is-vascular { border-color: #d6e7e4; background: #f1f8f7; color: var(--primary); }
.dims-card p { margin-top: 11px; font-size: 9.5px; line-height: 1.65; color: var(--faint); }

/* =========================== 报告 =========================== */
.report { padding: 26px 0 64px; }

.report-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.report-tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.report-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 11px;
  border: 1px solid #d5e8e1;
  border-radius: 99px;
  background: #f2faf6;
  color: var(--ok);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}
.report-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(31, 122, 95, 0.12);
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.report-head-main h1 { margin: 6px 0 7px; font-size: 30px; font-weight: 680; letter-spacing: -0.03em; }
.report-sub { font-size: 12px; color: var(--muted); }
.report-input-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.report-input-chips span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font-size: 9px;
  color: var(--muted);
}

.report-meta { display: flex; gap: 26px; flex-shrink: 0; }
.report-meta div { text-align: left; }
.report-meta span { display: block; font-size: 8.5px; letter-spacing: 0.08em; color: var(--faint); }
.report-meta strong { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

.result-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
  padding: 10px 13px;
  border: 1px solid #eed3d1;
  border-radius: 10px;
  background: var(--accent-soft);
  color: #8f3f45;
  font-size: 10.5px;
  line-height: 1.65;
}
.result-warning b { flex-shrink: 0; font-weight: 650; color: var(--accent); }
.result-warning.is-info { border-color: #d8e6e4; background: #f4faf9; color: #4e6f6d; }
.result-warning.is-info b { color: var(--primary); }

/* 主卡 */
.report-hero {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  padding: 26px 30px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(500px 260px at 88% 6%, rgba(87, 192, 176, 0.20), transparent 65%),
    radial-gradient(420px 240px at 10% 110%, rgba(199, 74, 82, 0.20), transparent 62%),
    linear-gradient(135deg, #072b33 0%, #0a3f46 52%, #0c5a61 100%);
  box-shadow: 0 28px 54px -34px rgba(8, 47, 55, 0.75);
}
.report-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

.gauge-box { position: relative; z-index: 1; }
.gauge-box svg { width: 100%; height: auto; }
.gauge-track { fill: none; stroke: rgba(255, 255, 255, 0.13); stroke-width: 11; stroke-linecap: round; }
.gauge-progress { fill: none; stroke-width: 11; stroke-linecap: round; }
.gauge-tick { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; }
.gauge-tick-label { fill: rgba(255, 255, 255, 0.45); font-family: var(--mono); font-size: 8px; }
.gauge-value { fill: #fff; font-size: 48px; font-weight: 680; letter-spacing: -0.04em; }
.gauge-unit { fill: rgba(255, 255, 255, 0.55); font-size: 11px; }
.gauge-caption { fill: rgba(255, 255, 255, 0.5); font-size: 8.5px; letter-spacing: 0.16em; }
.gauge-center-label { fill: rgba(255, 255, 255, 0.62); font-size: 9px; }
.gauge-meta {
  margin-top: -12px;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

.gauge-empty {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
}
.gauge-empty strong { font-size: 54px; font-weight: 650; line-height: 1; }
.gauge-empty span { font-size: 9.5px; color: rgba(255, 255, 255, 0.5); }
.gauge-empty + .gauge-meta { margin-top: 4px; }

.hero-copy { position: relative; z-index: 1; }
.hero-kicker { font-size: 9px; font-weight: 650; letter-spacing: 0.2em; color: #8dd3c8; }
.hero-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 7px; }
.hero-title-row h2 { font-size: 25px; font-weight: 650; letter-spacing: -0.02em; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 9px;
  border-radius: 99px;
  background: rgba(199, 74, 82, 0.18);
  border: 1px solid rgba(255, 168, 165, 0.25);
  color: #ffc3c0;
  font-size: 9.5px;
  font-weight: 600;
}
.hero-status.is-young { background: rgba(61, 161, 135, 0.18); border-color: rgba(141, 211, 200, 0.25); color: #a9e7d8; }
.hero-status.is-flat { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.78); }

.hero-desc { max-width: 570px; margin-top: 7px; font-size: 12px; line-height: 1.75; color: rgba(255, 255, 255, 0.66); }

.hero-delta-row { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; }
.hero-delta { font-size: 34px; font-weight: 680; line-height: 1; letter-spacing: -0.04em; color: #ffaaa6; font-variant-numeric: tabular-nums; }
.hero-delta.is-young { color: #8ce0c8; }
.hero-delta.is-flat { color: #d8e7e4; }
.hero-delta-label { font-size: 9.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.5); }
.hero-delta-label b { display: block; font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, 0.8); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.hero-stat {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}
.hero-stat span { display: block; font-size: 8.5px; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.5); }
.hero-stat strong { display: inline-block; margin-top: 3px; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hero-stat em { margin-left: 4px; font-style: normal; font-size: 9px; color: rgba(255, 255, 255, 0.55); }

/* 报告区块 */
.report-section { margin-top: 22px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 11px; }
.section-head h2 { margin-top: 3px; font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.section-head p { margin-top: 3px; font-size: 10.5px; color: var(--faint); }
.section-head .head-note { flex-shrink: 0; font-size: 9.5px; color: var(--faint); text-align: right; }

.vascular-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }

.vasc-tile {
  position: relative;
  padding: 13px 14px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 40, 50, 0.03);
}
.vasc-tile::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: #c9d9df;
}
.vasc-tile.is-high::before { background: linear-gradient(90deg, #c74a52, #e59a85); }
.vasc-tile.is-mid::before { background: linear-gradient(90deg, #b17a2a, #dec07f); }
.vasc-tile.is-low::before { background: linear-gradient(90deg, #1f7a5f, #7dc3ad); }
.vasc-tile.is-total { background: linear-gradient(180deg, #f2f9f8, #fff 80%); border-color: #cfe3e0; }
.vasc-tile.is-total::before { background: linear-gradient(90deg, #0d5c63, #5db3a8); }

.vasc-label { font-size: 10.5px; color: var(--muted); }
.vasc-value-row { display: flex; align-items: baseline; gap: 5px; margin: 7px 0 6px; }
.vasc-value { font-size: 27px; font-weight: 680; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.vasc-unit { font-size: 9.5px; color: var(--faint); }
.vasc-delta {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}
.vasc-delta.is-low { background: var(--ok-soft); color: var(--ok); }
.vasc-delta.is-flat { background: #f0f4f5; color: var(--muted); }

.mini-track { height: 4px; border-radius: 99px; background: #edf2f3; overflow: hidden; }
.mini-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0d5c63, #5bb8ac); }
.vasc-tile.is-high .mini-fill { background: linear-gradient(90deg, #a83d47, #de8b83); }
.vasc-tile.is-mid .mini-fill { background: linear-gradient(90deg, #a16e22, #d9b26b); }
.vasc-foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: 8.5px; color: var(--faint); }

.vasc-tile.is-na { border-style: dashed; background: #fbfcfd; }
.vasc-tile.is-na::before { background: #dde5e9; }
.vasc-tile.is-na .vasc-value { color: var(--faint); }
.mini-fill.is-na { background: #dfe7ea; }
.vasc-delta.is-na { background: #f0f4f5; color: var(--faint); }

/* 两列 */
.report-grid { display: grid; grid-template-columns: 1.16fr 0.84fr; gap: 16px; margin-top: 22px; align-items: start; }

.report-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(13, 40, 50, 0.03), 0 14px 34px -28px rgba(13, 40, 50, 0.22);
}

.report-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.report-card-head h3 { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.report-card-head p { margin-top: 2px; font-size: 9.5px; color: var(--faint); line-height: 1.55; }
.report-card-head .head-tag {
  flex-shrink: 0;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.bar-chart { margin-top: 13px; }

.bar-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 11px;
  padding: 7px 0;
}

.bar-label { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { position: relative; height: 8px; border-radius: 99px; background: #f1f5f6; }
.bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d5c63, #68b8ad);
  min-width: 4px;
}
.bar-fill.is-high { background: linear-gradient(90deg, #a93c45, #dd8a80); }
.bar-fill.is-mid { background: linear-gradient(90deg, #a06d20, #d9b269); }
.bar-baseline {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 0;
  border-left: 1px dashed #8797a2;
}
.bar-value {
  text-align: right;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar-value em { margin-left: 4px; font-style: normal; font-size: 9px; font-weight: 600; color: var(--accent); }
.bar-value em.is-low { color: var(--ok); }
.bar-value em.is-flat { color: var(--faint); }
.bar-row.is-na .bar-label { color: var(--faint); }
.bar-row.is-na .bar-value { color: var(--faint); font-weight: 500; }
.bar-row.is-na .bar-value em { font-size: 8px; font-weight: 500; color: var(--faint); }
.bar-fill.is-na { min-width: 0; background: #dfe7ea; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 10px; font-size: 9px; color: var(--faint); }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-line { width: 13px; border-top: 1px dashed #8797a2; }
.legend-dot { width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(90deg, #a93c45, #dd8a80); }
.legend-dot.is-mid { background: linear-gradient(90deg, #a06d20, #d9b269); }
.legend-dot.is-teal { background: linear-gradient(90deg, #0d5c63, #68b8ad); }

/* 驱动因素 */
.driver-list { margin-top: 8px; }
.driver {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed #edf1f3;
}
.driver:last-child { border-bottom: 0; padding-bottom: 2px; }
.driver-index {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 7px;
  background: #f2f6f7;
  color: var(--faint);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
}
.driver.is-alert .driver-index { background: var(--accent-soft); color: var(--accent); }
.driver.is-warn .driver-index { background: var(--warn-soft); color: var(--warn); }
.driver-body { min-width: 0; }
.driver-title { font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.driver-desc { margin-top: 2px; font-size: 10px; line-height: 1.6; color: var(--muted); }
.driver-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.driver-tags span {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f4f7f8;
  font-size: 8.5px;
  color: var(--faint);
}
.driver-note { margin-top: 8px; font-size: 8.5px; color: var(--faint); }

/* 眼底判读 */
.eye-card { margin-top: 16px; padding: 18px 22px; }
.report-grid > .eye-card { margin-top: 0; }
.eye-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.eye-head-main { display: flex; align-items: center; gap: 11px; }
.eye-head-main h3 { font-size: 13.5px; font-weight: 650; }
.eye-head-main p { margin-top: 1px; font-size: 9.5px; color: var(--faint); }
.eye-thumb {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #eadfd5;
  flex-shrink: 0;
}
.eye-thumb svg, .eye-thumb img { width: 100%; height: 100%; object-fit: cover; }
.eye-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 13px; }
.eye-feature {
  padding: 9px 10px;
  border: 1px solid #edf1f3;
  border-radius: 9px;
  background: #f9fbfb;
}
.eye-feature span { display: block; font-size: 8.5px; color: var(--faint); }
.eye-feature b { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.eye-feature.is-warn { border-color: #f0e2cc; background: #fffcf6; }
.eye-feature.is-warn b { color: #8b621f; }

.eye-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 13px; }
.eye-shot-label {
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.eye-shot-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d2029;
}
.eye-shot:not(.has-image) .eye-shot-frame {
  border-style: dashed;
  border-color: #d7e2e7;
  background: #f7fafb;
}
.eye-shot.has-image .eye-shot-frame { border-color: #cfdae2; background: #071a21; }
.eye-shot-frame img { width: 100%; height: 100%; object-fit: contain; }
.eye-shot-empty { font-size: 9.5px; letter-spacing: 0.05em; color: var(--faint); }
.eye-note { margin-top: 10px; font-size: 9.5px; line-height: 1.65; color: var(--faint); }

/* 推理过程 */
.reason-card { margin-top: 16px; padding: 20px 22px; }
.reason-group-title {
  margin: 15px 0 2px;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  color: var(--faint);
}
.reason-row { border-bottom: 1px dashed #edf1f3; }
.reason-row:last-child { border-bottom: 0; }
.reason-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
}
.reason-row summary::-webkit-details-marker { display: none; }
.reason-label { font-size: 11.5px; font-weight: 550; color: var(--ink-2); }
.reason-value { font-size: 11.5px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reason-value em { margin-left: 4px; font-style: normal; font-size: 9px; color: var(--accent); }
.reason-value em.is-low { color: var(--ok); }
.reason-value em.is-flat { color: var(--faint); }
.reason-row.is-na .reason-label { color: var(--faint); }
.reason-row.is-na .reason-value { color: var(--faint); font-weight: 500; }
.reason-chevron { width: 14px; height: 14px; color: #a9b5bd; transition: transform 0.18s; }
.reason-row[open] .reason-chevron { transform: rotate(90deg); }
.reason-body {
  padding: 0 8px 12px 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.reason-row[open] summary { padding-bottom: 7px; }

/* 原始输出 */
.raw-card { margin-top: 16px; padding: 14px 18px; }
.raw-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.raw-card summary::-webkit-details-marker { display: none; }
.raw-card summary span { display: inline-flex; align-items: center; gap: 6px; }
.raw-card summary svg { width: 13px; height: 13px; }
.raw-card pre {
  margin: 11px 0 0;
  padding: 12px;
  max-height: 320px;
  overflow: auto;
  border-radius: 8px;
  background: #0e2029;
  color: #cfe1de;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.report-disclaimer {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.7;
}
.report-disclaimer svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--primary); margin-top: 1px; }

/* =========================== 页脚 =========================== */
.site-footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 32px 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(225, 232, 237, 0.9);
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.02em;
}

/* =========================== 弹层 =========================== */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(7, 20, 27, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(4, 18, 24, 0.55);
}
.modal-lg { width: min(760px, 100%); }

.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.modal-head h3 { margin-top: 3px; font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.modal-desc { margin: 10px 0 13px; font-size: 10.5px; line-height: 1.7; color: var(--faint); }

#import-text {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid #dce5eb;
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
  resize: vertical;
  outline: none;
}
#import-text:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.10); }

.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.modal-actions { display: flex; gap: 7px; }
.import-hint { font-size: 10px; line-height: 1.5; color: var(--warn); }
.import-hint.is-ok { color: var(--ok); }

.jsonl-tabs { display: flex; gap: 6px; margin-bottom: 9px; }
.jsonl-tabs button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f4f7f8;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}
.jsonl-tabs button.is-active { background: #fff; border-color: var(--line-strong); color: var(--ink); font-weight: 600; }

.jsonl-code {
  min-height: 160px;
  max-height: 340px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: 11px;
  background: #0e2029;
  color: #d1e4e1;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}
.jsonl-note { font-size: 9.5px; color: var(--faint); }

.method-body { margin-top: 13px; }
.method-step { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #edf1f3; }
.method-step > span {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.method-step b { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.method-step p { margin-top: 3px; font-size: 10.5px; line-height: 1.75; color: var(--muted); }
.method-callout {
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px solid #ece0c9;
  border-radius: 9px;
  background: #fffaf0;
  color: #7c5b22;
  font-size: 10px;
  line-height: 1.7;
}
.method-callout code { font-family: var(--mono); font-size: 9.5px; background: #f4ead7; padding: 1px 4px; border-radius: 3px; }

/* =========================== 加载层 =========================== */
.loading-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 20, 27, 0.56);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.loading-card {
  width: min(420px, 100%);
  padding: 30px 28px 24px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 34px 80px -30px rgba(4, 18, 24, 0.6);
}

.loader-orbit { position: relative; width: 72px; height: 72px; margin: 0 auto 16px; }
.loader-orbit i {
  position: absolute;
  border: 1.5px solid transparent;
  border-radius: 50%;
}
.loader-orbit i:nth-child(1) {
  inset: 0;
  border-top-color: var(--primary);
  animation: spin 1.3s linear infinite;
}
.loader-orbit i:nth-child(2) {
  inset: 10px;
  border-right-color: #6cbcb2;
  animation: spin 1.8s linear infinite reverse;
}
.loader-orbit i:nth-child(3) {
  inset: 21px;
  border-bottom-color: var(--accent);
  animation: spin 2.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-card h3 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.loading-stage { margin: 5px 0 16px; font-size: 11px; color: var(--primary); }
.loading-bar { height: 5px; border-radius: 99px; background: #edf2f3; overflow: hidden; }
.loading-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d5c63, #56b3a7);
  transition: width 0.45s ease;
}

.loading-steps {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  text-align: left;
}
.loading-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: #a3b0b8;
  transition: color 0.2s;
}
.loading-steps li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d5dee3;
  transition: background 0.2s;
}
.loading-steps li.is-active { color: var(--primary); }
.loading-steps li.is-active::before { background: var(--primary); box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.1); }
.loading-steps li.is-done { color: var(--ok); }
.loading-steps li.is-done::before { background: var(--ok); }

.loading-note { margin-top: 15px; font-size: 9px; color: var(--faint); }

/* =========================== Toast =========================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  max-width: 90vw;
  padding: 9px 15px;
  border-radius: 9px;
  background: #102731;
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 14px 36px -12px rgba(4, 18, 24, 0.55);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =========================== 响应式 =========================== */
@media (max-width: 1240px) {
  .intro { grid-template-columns: minmax(0, 1fr) 350px; gap: 32px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field.span-2 { grid-column: span 2; }
  .intro-main h1 { font-size: 34px; }
}

@media (max-width: 1080px) {
  .topbar-inner { padding: 0 22px; gap: 18px; }
  .workspace { padding: 28px 22px 48px; }
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .protocol-card { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .summary-card { padding: 20px; }
  .report-hero { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
  .vascular-grid { grid-template-columns: repeat(3, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
  .report-meta { gap: 18px; }
}

@media (max-width: 820px) {
  .topnav { display: none; }
  .top-actions { margin-left: auto; }
  .login-shell { grid-template-columns: 1fr; width: min(470px, 100%); }
  .login-brand { display: none; }
  .intro-main h1 { font-size: 30px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field.span-2 { grid-column: span 2; }
  .bp-note { display: none; }
  .report-head { flex-direction: column; align-items: flex-start; }
  .report-meta { width: 100%; justify-content: space-between; gap: 12px; }
  .report-hero { grid-template-columns: 1fr; padding: 22px; }
  .gauge-box { max-width: 270px; margin: 0 auto; }
  .hero-desc { max-width: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .vascular-grid { grid-template-columns: repeat(2, 1fr); }
  .eye-features { grid-template-columns: repeat(2, 1fr); }
  .report-card-head { flex-direction: column; gap: 6px; }
  .site-footer { flex-wrap: wrap; padding: 16px 22px 22px; }
  .report-wrap { padding: 0 22px; }
}

@media (max-width: 600px) {
  .login-layer { padding: 16px; }
  .login-card { padding: 30px 22px; }
  .login-card h2 { font-size: 20px; }
  .topbar-inner { height: 60px; padding: 0 16px; }
  .brand-sub, .model-chip { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .workspace { padding: 22px 16px 40px; }
  .intro-main h1 { font-size: 27px; }
  .intro-lead { font-size: 13px; }
  .prototype-bar { align-items: flex-start; flex-wrap: wrap; font-size: 10.5px; }
  .card-head { padding: 17px 17px 14px; gap: 10px; }
  .card-body { padding: 0 17px 18px; }
  .sec-idx { width: 30px; height: 30px; border-radius: 8px; font-size: 9.5px; }
  .sec-title h2 { font-size: 15px; }
  .sec-title p { font-size: 10.5px; }
  .fill-badge { font-size: 8.5px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .upload-grid { grid-template-columns: 1fr; }
  .lab-tabs { gap: 5px; }
  .lab-tab { height: 32px; padding: 0 10px; font-size: 10.5px; }
  .report { padding: 16px 0 40px; }
  .report-wrap { padding: 0 16px; }
  .report-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .report-toolbar > .btn { align-self: flex-start; }
  .report-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: 100%; }
  .report-status { grid-column: 1 / -1; justify-self: start; }
  .report-tools .btn { width: 100%; justify-content: center; }
  .report-head-main h1 { font-size: 25px; }
  .report-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .report-hero { padding: 18px; border-radius: 17px; }
  .hero-title-row h2 { font-size: 21px; }
  .hero-delta { font-size: 30px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:last-child { grid-column: span 2; }
  .vascular-grid { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 80px minmax(0, 1fr) 74px; gap: 8px; }
  .bar-label { font-size: 9.5px; }
  .reason-row summary { grid-template-columns: minmax(0, 1fr) auto 14px; }
  .reason-value em { display: none; }
  .eye-shots { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-head .head-note { text-align: left; }
  .site-footer { font-size: 8.5px; }
  .modal { padding: 17px; }
  .modal-foot { align-items: flex-start; flex-direction: column; }
  .modal-actions { width: 100%; justify-content: flex-end; }
}

/* =========================== 版本选择 =========================== */
.version-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 40px 22px;
  background:
    radial-gradient(900px 520px at 10% 2%, rgba(66, 178, 162, 0.22), transparent 62%),
    radial-gradient(720px 440px at 94% 98%, rgba(199, 74, 82, 0.14), transparent 62%),
    linear-gradient(140deg, #061c24 0%, #0a2f37 48%, #061f26 100%);
}

.version-shell {
  width: min(1080px, 100%);
  padding: 38px 40px 30px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(620px 300px at 88% -6%, rgba(94, 203, 186, 0.14), transparent 64%),
    linear-gradient(150deg, #083f45 0%, #0a444b 46%, #093138 100%);
  box-shadow: 0 48px 110px -46px rgba(0, 0, 0, 0.82);
  color: #fff;
}

.version-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.version-brand { display: flex; align-items: center; gap: 11px; }
.version-brand .brand-mark {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.version-brand .brand-name { color: #fff; font-size: 16px; }
.version-brand .brand-name em { color: #7fd8c9; }
.version-brand .brand-sub { color: rgba(255, 255, 255, 0.58); }

.version-copy { max-width: 520px; }
.version-copy .eyebrow {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  color: #7fd8c9;
}
.version-copy h1 {
  margin-top: 8px;
  font-size: 27px;
  font-weight: 720;
  letter-spacing: 0.01em;
}
.version-copy p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.66);
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.version-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 22px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.version-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 216, 201, 0.5);
  background: rgba(255, 255, 255, 0.085);
}
.version-badge {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid rgba(127, 216, 201, 0.32);
  background: rgba(127, 216, 201, 0.10);
  color: #8fe3d5;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.version-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.version-card p {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}
.version-link {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #7fd8c9;
  letter-spacing: 0.03em;
}
.version-link::after { content: " →"; }

.version-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
}

.top-switch {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 600;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.top-switch:hover { color: var(--primary-dark); border-color: #bcd9d6; background: var(--primary-soft); }

.report-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.report-grid.is-single > .eye-card { max-width: 720px; }

/* =========================== 疾病风险关联解读 =========================== */
.disease-card { margin-top: 22px; }
.disease-card > .report-card-head { margin-bottom: 13px; }

.analysis-notice {
  margin-bottom: 12px;
  padding: 8px 11px;
  border-left: 2px solid #cfdedd;
  border-radius: 0 7px 7px 0;
  background: #f7fafb;
  font-size: 9px;
  line-height: 1.6;
  color: var(--faint);
}

.disease-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 11px; }

.disease-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.disease-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.disease-head h4 { font-size: 11.5px; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.disease-tag {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
}
.disease-field { margin-top: 9px; }
.disease-field > span {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
}
.disease-field p { margin-top: 3px; font-size: 10.5px; line-height: 1.62; color: var(--ink-2); }
.disease-missing { color: var(--faint); }

/* 关注结论：汇总 + 卡片决策行 */
.analysis-overview {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 12px;
  padding: 11px 13px;
  border: 1px solid #c9dfd8;
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  background: #f3faf7;
}
.analysis-overview .overview-kicker {
  flex-shrink: 0;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.analysis-overview p { font-size: 10.5px; line-height: 1.65; color: var(--ink); font-weight: 550; }

.disease-verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
}
.disease-verdict .verdict-label {
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--faint);
  text-transform: uppercase;
}
.disease-verdict .verdict-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.disease-verdict p {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.55;
  color: var(--ink-2);
}
.disease-verdict.is-priority { border-color: #e7c3bf; background: #fdf4f2; }
.disease-verdict.is-priority .verdict-badge { background: #b03a2e; color: #fff; }
.disease-verdict.is-routine { border-color: #e5d3b4; background: #fdf9f0; }
.disease-verdict.is-routine .verdict-badge { background: #9a6b1f; color: #fff; }
.disease-verdict.is-none { border-color: #c9dfd8; background: #f3faf7; }
.disease-verdict.is-none .verdict-badge { background: #1f7a5c; color: #fff; }
.disease-verdict.is-unknown .verdict-badge { background: var(--primary-soft); color: var(--primary); }

.skeleton-pill {
  display: block;
  width: 46%;
  height: 15px;
  margin-top: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf2f4 0%, #f8fafb 45%, #edf2f4 100%);
  background-size: 220% 100%;
  animation: skeletonSweep 1.5s ease-in-out infinite;
}

.disease-item.is-skeleton { background: #fff; }
.skeleton-line {
  display: block;
  height: 7px;
  margin-top: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, #edf2f4 0%, #f8fafb 45%, #edf2f4 100%);
  background-size: 220% 100%;
  animation: skeletonSweep 1.5s ease-in-out infinite;
}
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-60 { width: 60%; }
@keyframes skeletonSweep {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.analysis-loading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}
.analysis-loading b { display: block; font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.analysis-loading p { margin-top: 2px; font-size: 9.5px; line-height: 1.55; color: var(--faint); }

.analysis-spinner {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border: 2px solid #d6e3e3;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: analysisSpin 0.85s linear infinite;
}
@keyframes analysisSpin { to { transform: rotate(360deg); } }

.advice-block {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.advice-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.advice-head h4 { font-size: 12px; font-weight: 650; color: var(--ink); }
.advice-head span { flex-shrink: 0; font-size: 8.5px; color: var(--faint); }
.advice-list { margin: 7px 0 0; padding: 0; list-style: none; }
.advice-list li { display: flex; gap: 9px; padding: 8px 0; border-top: 1px dashed #edf1f3; }
.advice-list li:first-child { border-top: 0; padding-top: 4px; }
.advice-idx {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
}
.advice-list p { font-size: 10.5px; line-height: 1.65; color: var(--ink-2); }

.analysis-summary {
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #d9e8e6;
  border-radius: 12px;
  background: var(--primary-soft);
}
.analysis-summary h4 { font-size: 11px; font-weight: 650; color: var(--primary); }
.analysis-summary p { margin-top: 4px; font-size: 10.5px; line-height: 1.7; color: var(--ink-2); }

.analysis-disclaimer {
  margin-top: 12px;
  padding: 11px 14px;
  border-left: 3px solid #dcc7a4;
  border-radius: 0 9px 9px 0;
  background: #fbf8f2;
}
.analysis-disclaimer b { font-size: 8.5px; font-weight: 650; letter-spacing: 0.05em; color: var(--warn); }
.analysis-disclaimer p { margin-top: 3px; font-size: 9.5px; line-height: 1.65; color: var(--muted); }

.analysis-plain p { margin-top: 6px; font-size: 10.5px; line-height: 1.7; color: var(--ink-2); }

.analysis-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 9.5px;
  color: var(--faint);
}
.analysis-live .analysis-spinner { width: 12px; height: 12px; margin-top: 0; }

.analysis-error .btn { height: 30px; font-size: 10px; }

.analysis-error {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid #ecd4d3;
  border-radius: 12px;
  background: #fdf5f5;
}
.analysis-error b { font-size: 11.5px; font-weight: 650; color: var(--accent); }
.analysis-error p { margin-top: 3px; font-size: 9.5px; line-height: 1.6; color: var(--muted); }
.analysis-error .btn { flex-shrink: 0; border-color: #e3c9c8; background: #fff; }
.analysis-error.is-inline { margin-top: 12px; padding: 10px 13px; }

@media (max-width: 600px) {
  .disease-grid { grid-template-columns: 1fr; }
  .analysis-overview { flex-direction: column; gap: 4px; }
  .analysis-error { flex-direction: column; align-items: stretch; }
  .analysis-error .btn { align-self: flex-start; }
  .advice-head { flex-direction: column; gap: 2px; }
}


@media (max-width: 760px) {
  .version-layer { padding: 20px 14px; align-items: flex-start; }
  .version-shell { padding: 26px 20px 22px; border-radius: 20px; }
  .version-copy h1 { font-size: 22px; }
  .version-grid { grid-template-columns: 1fr; gap: 10px; }
  .version-card { padding: 16px 18px; }
  .version-head { flex-direction: column; align-items: flex-start; }
}

/* =========================== 打印 =========================== */
@media print {
  @page { margin: 14mm; }
  body {
    background: #fff !important;
    font-size: 11px;
  }
  .login-layer, .version-layer, .topbar, .site-footer, .prototype-bar, .intro, .content-grid,
  .report-toolbar, .toast, .modal-layer, .loading-layer { display: none !important; }
  .report { display: block !important; padding: 0; }
  .report-wrap { max-width: none; padding: 0; }
  .report-hero {
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .card, .vasc-tile, .report-hero, .report-disclaimer { break-inside: avoid; }
  .disease-item, .advice-block, .analysis-overview, .analysis-summary, .analysis-disclaimer { break-inside: avoid; }
  .analysis-live, .analysis-spinner, .skeleton-line, .skeleton-pill { display: none !important; }
  .reason-row { break-inside: avoid; }
  .reason-row[open] .reason-body { display: block; }
  .raw-card { display: none; }
  .report-section, .report-grid { margin-top: 14px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
