/* ==========================================================================
   GREEN COMPANION —— 设计系统
   清新 / 现代 / 轻量 / 生态感 + 金融科技感
   ========================================================================== */

:root {
  --bg: #f4f6f1;
  --bg-soft: #fafbf8;
  --surface: #ffffff;
  --surface-2: #eef3ec;
  --ink: #1c2a22;
  --ink-2: #4a5a50;
  --ink-3: #8a9a90;
  --line: #e4ece4;
  --green: #2f7d4f;
  --green-strong: #1f5e3a;
  --green-soft: #e2eee4;
  --green-faint: #eef5ef;
  --accent: #7c6fe8;
  --accent-soft: #ece9fb;
  --gold: #c9a227;
  --gold-soft: #f6efd8;
  --danger: #c0504d;
  --danger-soft: #f9e9e8;
  --warn: #c98a2b;
  --warn-soft: #f8efe0;
  --info: #2f8fb7;
  --info-soft: #e6f1f6;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow: 0 8px 30px rgba(30, 60, 40, 0.08);
  --shadow-sm: 0 2px 10px rgba(30, 60, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(30, 60, 40, 0.14);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-num: "SF Pro Display", "Segoe UI", "Roboto Mono", "Consolas", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(47, 125, 79, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, rgba(124, 111, 232, 0.07), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

#app { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfdccf; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---------- 通用 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.muted { color: var(--ink-3); }
.note {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px;
}
.note::before { content: "●"; font-size: 7px; color: var(--green); }

.section-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.section-sub { font-size: 13.5px; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-strong) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(47, 125, 79, 0.28);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(47, 125, 79, 0.36); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--soft {
  background: var(--green-soft); color: var(--green-strong);
}
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--link { padding: 6px 12px; font-size: 13px; color: var(--green); font-weight: 600; }

/* ---------- 动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes dashMove { to { stroke-dashoffset: -24; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes growBar { from { width: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-up { animation: fadeUp .5s ease both; }
.fade-in { animation: fadeIn .5s ease both; }
.floaty { animation: floaty 6s ease-in-out infinite; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .2s; } .d4 { animation-delay: .28s; } .d5 { animation-delay: .36s; }

/* ==========================================================================
   视图通用
   ========================================================================== */
.view { min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(250, 251, 248, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand-dot { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--accent)); box-shadow: 0 0 0 4px var(--green-faint); }

/* ==========================================================================
   入口页
   ========================================================================== */
.entry {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 60px 24px; text-align: center; position: relative;
  overflow: hidden;
}
.entry__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.entry__blob--g { width: 460px; height: 460px; background: #bfe3c8; top: -140px; left: -100px; }
.entry__blob--v { width: 420px; height: 420px; background: #d7d2f5; bottom: -160px; right: -100px; }

.entry__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--green-strong);
  background: var(--green-faint); border: 1px solid var(--green-soft);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 28px;
}
.entry__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

.entry__title {
  font-size: 64px; font-weight: 800; letter-spacing: .14em; line-height: 1.05;
  background: linear-gradient(120deg, var(--green-strong) 20%, var(--green) 55%, #4a9d6b 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.entry__subtitle {
  font-size: 15px; color: var(--ink-2); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 6px;
}
.entry__cn-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 48px; max-width: 520px; }

.entry__cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 22px;
  max-width: 760px; width: 100%;
}
.entry-card {
  position: relative; text-align: left; padding: 30px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.entry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.entry-card--user:hover { border-color: var(--green); }
.entry-card--admin:hover { border-color: var(--accent); }
.entry-card__icon {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.entry-card--user .entry-card__icon { background: var(--green-faint); color: var(--green); }
.entry-card--admin .entry-card__icon { background: var(--accent-soft); color: var(--accent); }
.entry-card__tag { font-size: 11px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 6px; }
.entry-card__title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.entry-card__desc { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; min-height: 40px; }
.entry-card .btn { width: 100%; }

.entry__footer { margin-top: 56px; font-size: 13px; color: var(--ink-3); letter-spacing: .02em; max-width: 640px; font-style: italic; }

/* ==========================================================================
   用户端
   ========================================================================== */
.user {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 440px);
  gap: 48px; align-items: center; justify-content: center;
  padding: 48px 28px 80px;
}
@media (max-width: 960px) {
  .user { grid-template-columns: 1fr; justify-items: center; }
}

/* 手机窗口 */
.phone {
  width: 392px; height: 812px;
  background: #141a17;
  border-radius: 52px; padding: 12px;
  box-shadow: 0 30px 80px rgba(20, 40, 28, 0.35), inset 0 0 0 2px #2a322d;
  position: relative;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 42px; overflow: hidden;
  background: linear-gradient(180deg, #f7faf5 0%, #eef4ec 100%);
  display: flex; flex-direction: column; position: relative;
}
.phone__notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 128px; height: 30px; background: #141a17; border-radius: 0 0 18px 18px; z-index: 5;
}

.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 26px 6px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.statusbar__icons { display: flex; gap: 5px; align-items: center; font-size: 11px; color: var(--ink-2); }

.phone__body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; scrollbar-width: none; }
.phone__body::-webkit-scrollbar { display: none; }

.hello { font-size: 22px; font-weight: 700; margin: 4px 0 2px; }
.hello-sub { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }

.level-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #1f5e3a, #2f7d4f);
  color: #fff; border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(31, 94, 58, 0.28); margin-bottom: 14px;
}
.level-card__ring {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.level-card__label { font-size: 11px; opacity: .8; }
.level-card__val { font-size: 17px; font-weight: 700; }
.level-card__dots { margin-left: auto; display: flex; gap: 4px; }
.level-card__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.level-card__dots i.on { background: #fff; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 10px; text-align: center;
}
.stat-tile__val { font-size: 17px; font-weight: 700; color: var(--green-strong); }
.stat-tile__val.text { font-size: 14px; }
.stat-tile__label { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }

/* 模式切换 */
.seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px; margin-bottom: 16px;
}
.seg__btn {
  padding: 9px 0; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .25s ease; position: relative;
}
.seg__btn.active { background: var(--surface); color: var(--green-strong); box-shadow: var(--shadow-sm); }
.seg__btn.active::after { content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 16px; height: 3px; border-radius: 3px; background: var(--green); }

.mode-card { animation: fadeUp .35s ease both; }
.mode-title { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.mode-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 12px; }
.mode-status .live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }

.big-stat {
  display: flex; align-items: baseline; gap: 8px; justify-content: center;
  padding: 22px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 12px;
}
.big-stat__val { font-size: 46px; font-weight: 800; color: var(--green-strong); line-height: 1; }
.big-stat__unit { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.big-stat__label { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: -6px; margin-bottom: 12px; }

/* 陪伴卡 */
.companion {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, #fbfafd, #f3f1fb);
  border: 1px solid #e6e2f6; border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 12px;
}
.companion__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
  box-shadow: 0 6px 16px rgba(124, 111, 232, 0.35);
}
.companion__meta { font-size: 12px; color: var(--ink-3); }
.companion__name { font-weight: 700; color: var(--ink); }
.companion__tag { display: inline-block; font-size: 10.5px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.companion__text { font-size: 14px; color: var(--ink); margin-top: 5px; line-height: 1.6; min-height: 22px; }
.companion__text .cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: pulse 1s infinite; }

.voice-bar {
  display: flex; align-items: center; gap: 12px;
  background: #1c2a22; color: #fff; border-radius: var(--radius); padding: 12px 16px;
}
.voice-bar__btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent), #6a5bd8);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  box-shadow: 0 8px 18px rgba(124, 111, 232, .4);
  transition: transform .18s ease;
}
.voice-bar__btn:hover { transform: scale(1.08); }
.voice-bar__btn.speaking { animation: pulse 1s infinite; }
.voice-bar__label { font-size: 12px; opacity: .75; }
.voice-bar__text { font-size: 13px; font-weight: 600; }

/* 右侧信息面板 */
.user-panel { display: flex; flex-direction: column; gap: 16px; }
.user-panel__tagline { font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.user-panel__tagline span { color: var(--green); }
.user-panel__sub { font-size: 13.5px; color: var(--ink-2); }

.panel-card { padding: 18px 20px; }
.panel-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-card__title { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }

.kv { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv__k { color: var(--ink-2); }
.kv__v { font-weight: 700; color: var(--ink); }

.persona-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.persona-chip {
  display: flex; align-items: center; gap: 8px; text-align: left;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--surface); transition: all .18s ease;
}
.persona-chip:hover { border-color: var(--accent); }
.persona-chip.active { border-color: var(--accent); background: var(--accent-soft); }
.persona-chip__dot { width: 26px; height: 26px; border-radius: 50%; flex: none; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.persona-chip__name { font-size: 12px; font-weight: 700; display: block; }
.persona-chip__style { font-size: 10.5px; color: var(--ink-3); }
.persona-chip__check { margin-left: auto; color: var(--accent); font-size: 13px; opacity: 0; }
.persona-chip.active .persona-chip__check { opacity: 1; }

.contrib { text-align: center; }
.contrib__val { font-size: 40px; font-weight: 800; color: var(--green-strong); }
.contrib__label { font-size: 12px; color: var(--ink-3); }

/* ==========================================================================
   后台
   ========================================================================== */
.admin { padding: 0 28px 90px; max-width: 1240px; margin: 0 auto; }

.admin__header { padding: 44px 0 8px; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.admin__title { font-size: 34px; font-weight: 800; letter-spacing: .01em; }
.admin__title .en { display: block; font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.admin__sub { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.admin__badges { display: flex; gap: 8px; }

.tabs {
  position: sticky; top: 63px; z-index: 20;
  display: flex; gap: 4px; margin: 24px 0 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; box-shadow: var(--shadow-sm); overflow-x: auto;
}
.tab {
  flex: 1; min-width: 120px; padding: 12px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center;
  transition: all .2s ease; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--green-faint); color: var(--green-strong); }
.tab.active::after { content: " ●"; font-size: 8px; }

.panel { animation: fadeUp .4s ease both; }
.panel__head { margin-bottom: 18px; }
.panel__title { font-size: 22px; font-weight: 700; }
.panel__sub { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }

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

/* 架构图 */
.arch-card { padding: 22px; margin-bottom: 18px; }
.arch-wrap { display: flex; justify-content: center; }
.arch-svg { width: 100%; max-width: 640px; height: auto; }
.arch-node { cursor: default; }
.arch-node rect { fill: #fff; stroke: var(--line); stroke-width: 1.5; rx: 10; }
.arch-node text { font-size: 12.5px; fill: var(--ink); font-weight: 600; text-anchor: middle; }
.arch-node .sub { font-size: 10px; fill: var(--ink-3); }
.arch-node--root rect { fill: var(--green-faint); stroke: var(--green); }
.arch-node--model rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.arch-node--model text { fill: #4a3fb8; }
.arch-node--end rect { fill: #f6efd8; stroke: var(--gold); }
.arch-line { fill: none; stroke: #bcd0bf; stroke-width: 1.6; stroke-dasharray: 6 6; animation: dashMove 1.2s linear infinite; }
.arch-line--loop { stroke: var(--gold); stroke-dasharray: none; }
.arch-arrow { fill: none; stroke: #9fb5a3; stroke-width: 1.6; }
.arch-label { font-size: 10.5px; fill: var(--ink-3); }

/* 数据源 */
.datasource-row { display: flex; flex-wrap: wrap; gap: 8px; }
.datasource {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-2); background: var(--surface-2);
  border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px;
}
.datasource::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); opacity: .6; }

/* 事件表 */
.event-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.event-table th { text-align: left; font-size: 11.5px; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.event-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.event-table tr:last-child td { border-bottom: none; }
.event-table .id { font-family: var(--font-num); color: var(--ink-2); font-size: 12px; }
.event-table .score { font-family: var(--font-num); font-weight: 700; color: var(--green-strong); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge--verified { background: var(--green-soft); color: var(--green-strong); }
.badge--pending { background: var(--warn-soft); color: var(--warn); }
.badge--anomaly { background: var(--danger-soft); color: var(--danger); }
.badge--high { background: var(--green-soft); color: var(--green-strong); }
.badge--medium { background: var(--warn-soft); color: var(--warn); }
.badge--low { background: var(--surface-2); color: var(--ink-2); }

/* 模型 */
.model-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .model-grid { grid-template-columns: 1fr; } }

.model-inputs { padding: 20px; }
.model-inputs__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.model-inputs__title { font-size: 15px; font-weight: 700; }

.feature { margin-bottom: 16px; }
.feature__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.feature__label { font-size: 13px; color: var(--ink-2); }
.feature__val { font-size: 13.5px; font-weight: 700; color: var(--green-strong); font-family: var(--font-num); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--green) var(--p, 50%), var(--surface-2) var(--p, 50%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--green); box-shadow: 0 2px 8px rgba(47,125,79,.3); cursor: pointer;
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2.5px solid var(--green); cursor: pointer; }

select.feature-select {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--ink);
  outline: none; font-family: inherit;
}
select.feature-select:focus { border-color: var(--green); }

.model-output { display: flex; flex-direction: column; gap: 14px; }
.out-card { padding: 18px 20px; }
.out-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.out-card__title { font-size: 13px; font-weight: 700; color: var(--ink); }

.prob-hero { display: flex; align-items: center; gap: 20px; }
.prob-ring { position: relative; width: 128px; height: 128px; flex: none; }
.prob-ring svg { transform: rotate(-90deg); }
.prob-ring .track { fill: none; stroke: var(--surface-2); stroke-width: 11; }
.prob-ring .val { fill: none; stroke: url(#probGrad); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.prob-ring__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.prob-ring__num b { font-size: 28px; font-weight: 800; color: var(--green-strong); }
.prob-ring__num span { font-size: 10.5px; color: var(--ink-3); }

.out-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.metric__label { font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.metric__val { font-size: 18px; font-weight: 800; color: var(--ink); }
.metric__val.up { color: var(--green-strong); }

.strategy-box { border-left: 4px solid var(--green); background: var(--green-faint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; }
.strategy-box__label { font-size: 11.5px; color: var(--green-strong); font-weight: 700; margin-bottom: 5px; }
.strategy-box__name { font-size: 17px; font-weight: 800; color: var(--green-strong); margin-bottom: 5px; }
.strategy-box__reason { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

.explain { font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 13px; line-height: 1.6; }

/* 特征重要性 */
.imp-list { display: flex; flex-direction: column; gap: 10px; }
.imp-item__row { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
.imp-item__label { color: var(--ink-2); }
.imp-item__val { font-family: var(--font-num); color: var(--ink-3); }
.imp-track { height: 9px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.imp-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green), #5aa97a); animation: growBar 1s ease both; }

/* Agent 卡 */
.agent-card { padding: 20px; }
.agent-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.agent-card__name { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.online { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 1.8s infinite; }
.agent-task { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 12.5px; }
.agent-task span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--ink-2); }
.agent-output { font-size: 14px; color: var(--ink); line-height: 1.7; padding: 13px 15px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.agent-note { margin-top: 10px; font-size: 11.5px; color: var(--accent); }

/* 实验 */
.exp-card { padding: 22px; margin-bottom: 18px; }
.exp-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
@media (max-width: 760px) { .exp-groups { grid-template-columns: 1fr; } }
.exp-group { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; transition: all .2s ease; }
.exp-group.best { border-color: var(--green); background: var(--green-faint); box-shadow: 0 8px 24px rgba(47,125,79,.14); }
.exp-group__key { font-size: 20px; font-weight: 800; color: var(--ink); }
.exp-group__inc { font-size: 12.5px; color: var(--ink-2); margin: 4px 0 10px; }
.exp-group__people { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.exp-group__delta { font-size: 24px; font-weight: 800; }
.exp-group__delta.up { color: var(--green-strong); }

.exp-chart { display: flex; align-items: flex-end; gap: 26px; height: 180px; padding: 10px 6px 0; justify-content: center; }
.exp-chart__col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; max-width: 120px; }
.exp-chart__bar { width: 100%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #bcd0bf, #9db7a2); position: relative; transition: height 1s ease; }
.exp-chart__bar.best { background: linear-gradient(180deg, var(--green), var(--green-strong)); }
.exp-chart__val { font-size: 13px; font-weight: 700; color: var(--ink); }
.exp-chart__key { font-size: 12px; color: var(--ink-3); }

.best-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green-strong); background: var(--green-soft); padding: 9px 18px; border-radius: 999px; }
.best-pill::before { content: "★"; }

/* 闭环 */
.loop-card { padding: 24px; margin-bottom: 18px; }
.cycle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin: 16px 0 8px; }
.cycle-node {
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--green-soft); border-radius: 999px; padding: 8px 15px;
  white-space: nowrap;
}
.cycle-node.hot { background: var(--green-faint); border-color: var(--green); color: var(--green-strong); }
.cycle-arrow { color: var(--ink-3); font-size: 13px; }
.cycle-loop { font-size: 12px; color: var(--accent); font-weight: 700; margin-left: 4px; }

.fund { display: flex; align-items: stretch; gap: 14px; margin: 18px 0; flex-wrap: wrap; }
.fund__src { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 8px; }
.fund__src .card { padding: 13px 15px; font-size: 13px; font-weight: 600; text-align: center; }
.fund__arrow { display: flex; align-items: center; color: var(--ink-3); font-size: 18px; }
.fund__sink { flex: 1; min-width: 150px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.fund__pool { background: linear-gradient(135deg, #1f5e3a, #2f7d4f); color: #fff; border-radius: var(--radius); padding: 16px; text-align: center; font-weight: 700; }

.quote { text-align: center; padding: 40px 24px; background: linear-gradient(160deg, #1c2a22, #24402f); color: #e8efe9; border-radius: var(--radius-lg); }
.quote__en { font-size: 22px; font-weight: 700; line-height: 1.5; }
.quote__en em { color: #8fd3a8; font-style: normal; }
.quote__cn { font-size: 14px; color: #b9c8bd; margin-top: 10px; line-height: 1.7; }
.quote__bar { width: 44px; height: 3px; background: var(--green); margin: 20px auto; border-radius: 3px; }

/* 水印/演示标记 */
/* 金融模式补充 */
.summary-note {
  font-size: 13px; color: var(--green-strong); background: var(--green-faint);
  border: 1px solid var(--green-soft); border-radius: var(--radius-sm);
  padding: 10px 13px; margin-bottom: 10px;
}
.sim-return {
  display: flex; align-items: baseline; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; margin-bottom: 10px;
}
.sim-return__label { font-size: 12px; color: var(--ink-3); }
.sim-return__val { font-size: 22px; font-weight: 800; color: var(--green-strong); }
.sim-return__unit { font-size: 12px; color: var(--ink-2); }
.projects { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.project {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px;
}
.project__tag {
  flex: none; font-size: 10.5px; font-weight: 700; color: var(--green-strong);
  background: var(--green-soft); border-radius: 6px; padding: 3px 7px;
}
.project__name { font-size: 13.5px; font-weight: 700; }
.project__desc { font-size: 11.5px; color: var(--ink-3); }
.persona-quote {
  margin-top: 10px; font-size: 13px; color: var(--accent); font-style: italic;
  background: var(--accent-soft); border-radius: var(--radius-sm); padding: 9px 12px;
}

.demo-flag {
  position: fixed; bottom: 16px; right: 16px; z-index: 40;
  font-size: 11px; color: var(--ink-2); background: rgba(255,255,255,.85);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; backdrop-filter: blur(8px);
}
