/* DrugMind — 顶级暗色主题药物研发平台 */
:root {
  --bg-deep: #0a0a1a;
  --bg-primary: #0f172a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #1e2a4a;
  --border: #233554;
  --border-focus: #64ffda;
  --text-primary: #e6f1ff;
  --text-secondary: #8892b0;
  --text-muted: #495670;
  --accent: #64ffda;
  --accent-dim: rgba(100,255,218,0.1);
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --orange: #f97316;
  --red: #ef4444;
  --green: #22c55e;
  --gradient-primary: linear-gradient(135deg, #0f3460 0%, #64ffda 100%);
  --gradient-card: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --shadow-lg: 0 25px 50px rgba(0,0,0,0.5);
  --radius: 16px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ─── 导航栏 ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.env-bar {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(15,23,42,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.env-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.env-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.env-badge {
  font-size: 12px;
  color: var(--bg-deep);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.env-text {
  font-size: 13px;
  color: var(--text-secondary);
}
.env-status {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.env-status.ok {
  color: var(--green);
  border-color: rgba(34,197,94,0.4);
}
.env-status.error {
  color: var(--red);
  border-color: rgba(239,68,68,0.4);
}
.env-status.pending {
  color: var(--orange);
  border-color: rgba(249,115,22,0.4);
}
.env-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.debug-panel {
  position: fixed;
  top: 116px;
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  padding: 0 24px;
}
.debug-panel.open {
  display: block;
}
.debug-card {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(26,26,46,0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.debug-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.debug-header h2 {
  font-size: 20px;
  margin-bottom: 6px;
}
.debug-header p {
  color: var(--text-secondary);
  font-size: 14px;
}
.debug-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.debug-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.debug-help {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preset-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}
.preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.debug-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.debug-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.debug-result {
  min-height: 44px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: pre-wrap;
}
.debug-result.ok {
  border-color: rgba(34,197,94,0.4);
  color: var(--green);
}
.debug-result.warn {
  border-color: rgba(249,115,22,0.4);
  color: var(--orange);
}
.debug-result.error {
  border-color: rgba(239,68,68,0.4);
  color: var(--red);
}
.logo {
  font-size: 20px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 8px; }
.nav-link {
  color: var(--text-secondary); padding: 8px 16px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent); background: var(--accent-dim); text-decoration: none;
}
.mobile-toggle {
  display: none; background: none; border: none; color: var(--text-primary);
  font-size: 24px; cursor: pointer; padding: 8px;
}

/* ─── 主内容 ─── */
.main { max-width: 1200px; margin: 0 auto; padding: 148px 24px 40px; }
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Hero ─── */
.hero {
  text-align: center; padding: 80px 20px 60px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(100,255,218,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.gradient-text {
  background: var(--gradient-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.section {
  margin-bottom: 42px;
}
.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.section-heading.compact {
  margin-bottom: 16px;
}
.section-kicker {
  color: rgba(255,217,175,0.86);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-title-left {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
.section-copy {
  color: var(--text-secondary);
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.8;
}

.home-business-section,
.home-ops-section,
.home-h2a-section {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    radial-gradient(circle at top right, rgba(100,255,218,0.08), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}
.business-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.flow-step {
  position: relative;
  min-height: 190px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 15, 34, 0.58);
  border: 1px solid rgba(255,255,255,0.06);
}
.flow-step::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -12px;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(100,255,218,0.35), transparent);
}
.flow-step:last-child::after {
  display: none;
}
.flow-step-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: rgba(255,217,175,0.86);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.flow-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}
.flow-step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.home-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
}
.home-ops-panel,
.h2a-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(8, 15, 34, 0.62);
  border: 1px solid rgba(255,255,255,0.07);
}
.home-workbench-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.home-workbench-toolbar .input {
  min-width: 220px;
}
.home-workbench-snapshot {
  display: grid;
  gap: 14px;
}
.home-workbench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.home-workbench-metric {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.home-workbench-metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.home-workbench-metric strong {
  font-size: 22px;
}
.home-workbench-summary {
  display: grid;
  gap: 10px;
  padding: 16px 0 2px;
}
.home-workbench-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.home-workbench-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.home-workbench-copy,
.home-run-copy {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}
.home-run-preview {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.home-run-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.home-run-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
.home-run-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.home-agent-deck {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.home-agent-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.home-agent-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.home-agent-row p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.h2a-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
}
.h2a-sidebar {
  display: grid;
  gap: 18px;
}
.h2a-main {
  display: grid;
  gap: 16px;
}
.h2a-main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.h2a-main-header p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.h2a-thread-list,
.h2a-conversation {
  display: grid;
  gap: 10px;
}
.h2a-user-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}
.h2a-user-card strong {
  font-size: 15px;
}
.h2a-user-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.h2a-user-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.h2a-selection-summary {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.h2a-thread-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.h2a-thread-item:hover,
.h2a-thread-item.active {
  border-color: rgba(100,255,218,0.24);
  transform: translateY(-1px);
}
.h2a-thread-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.h2a-thread-item p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.h2a-thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.h2a-conversation {
  min-height: 360px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}
.h2a-conversation-meta {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.h2a-conversation-meta strong {
  font-size: 16px;
}
.h2a-conversation-meta p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}
.h2a-message {
  max-width: 82%;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.h2a-message.agent {
  justify-self: start;
  border-bottom-left-radius: 10px;
  background: rgba(100,255,218,0.07);
}
.h2a-message.human {
  justify-self: end;
  border-bottom-right-radius: 10px;
  background: rgba(59,130,246,0.09);
}
.h2a-message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.h2a-message-head strong {
  font-size: 14px;
}
.h2a-message-head span {
  color: var(--text-muted);
  font-size: 12px;
}
.h2a-message-body {
  white-space: pre-wrap;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}
.h2a-composer {
  display: grid;
  gap: 12px;
}

/* ─── Demo Reel ─── */
.section-demo {
  margin-top: 8px;
}
.story-demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 32px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(249,115,22,0.18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(100,255,218,0.14), transparent 24%),
    linear-gradient(145deg, rgba(19,25,48,0.98), rgba(7,10,20,0.98));
  border: 1px solid rgba(100,255,218,0.16);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}
.story-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.03), transparent 35%),
    linear-gradient(180deg, transparent 70%, rgba(100,255,218,0.06));
  pointer-events: none;
}
.story-copy,
.story-player {
  position: relative;
  z-index: 1;
}
.story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd9af;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  margin-bottom: 18px;
}
.story-kicker::before {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, #ffd9af, transparent);
}
.story-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  max-width: 12ch;
}
.story-body {
  max-width: 54ch;
  font-size: 15px;
  color: rgba(230,241,255,0.78);
  line-height: 1.85;
}
.story-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 28px 0 24px;
}
.story-point {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.story-point span {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(255,217,175,0.74);
  font-size: 12px;
  letter-spacing: 0.2em;
}
.story-point strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.story-point p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.story-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.story-dots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.story-dots-text {
  color: rgba(255, 217, 175, 0.82);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.story-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.story-dot:hover {
  transform: scale(1.1);
  border-color: rgba(255,217,175,0.5);
}
.story-dot.active {
  background: linear-gradient(135deg, #ffd9af, var(--accent));
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(255,217,175,0.08);
}
.story-player {
  padding: 18px;
  border-radius: 28px;
  background: rgba(2,6,23,0.88);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.story-video-shell {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,217,175,0.14), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(100,255,218,0.14), transparent 26%),
    linear-gradient(145deg, #070c18 0%, #0a1322 54%, #040811 100%);
}
.story-video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  background: #040811;
}
.story-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.22), transparent 26%, transparent 64%, rgba(0,0,0,0.44)),
    radial-gradient(circle at 20% 12%, rgba(255,255,255,0.06), transparent 26%);
}
.story-video-badge {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7,12,24,0.58);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,217,175,0.88);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.story-video-caption {
  max-width: 26rem;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(7,12,24,0.52);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
}
.story-video-caption strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.story-video-caption p {
  color: rgba(230,241,255,0.74);
  font-size: 14px;
  line-height: 1.7;
}
.story-video-chapters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.story-video-chapter {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.story-video-chapter span {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255,217,175,0.84);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.story-video-chapter p {
  color: rgba(230,241,255,0.7);
  font-size: 13px;
  line-height: 1.55;
}
.story-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.story-player-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.story-player-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(100,255,218,0.12);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.story-player-name {
  font-size: 12px;
  color: rgba(230,241,255,0.68);
}
.story-player-status {
  font-size: 12px;
  color: #ffd9af;
}
.story-player-status.paused {
  color: rgba(230,241,255,0.56);
}
.story-stage {
  position: relative;
  min-height: 500px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #060a15;
}
.story-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 18%, transparent 82%, rgba(255,255,255,0.05)),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 4px);
  opacity: 0.24;
  mix-blend-mode: screen;
  pointer-events: none;
}
.story-stage-glow {
  position: absolute;
  inset: auto auto -120px -100px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(100,255,218,0.3), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.story-scene {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.75s ease, transform 0.75s ease;
  z-index: 1;
}
.story-scene.active {
  opacity: 1;
  transform: scale(1);
}
.story-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,9,18,0.08), rgba(5,9,18,0.52));
  pointer-events: none;
}
.story-scene-founder {
  background:
    radial-gradient(circle at 18% 18%, rgba(244,114,182,0.22), transparent 22%),
    radial-gradient(circle at 72% 24%, rgba(59,130,246,0.2), transparent 26%),
    linear-gradient(145deg, #20101e 0%, #111b30 58%, #060913 100%);
}
.story-scene-question {
  background:
    radial-gradient(circle at 24% 30%, rgba(100,255,218,0.18), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(139,92,246,0.22), transparent 25%),
    linear-gradient(145deg, #07111f 0%, #0f2034 52%, #0b1222 100%);
}
.story-scene-discussion {
  background:
    radial-gradient(circle at 14% 24%, rgba(249,115,22,0.2), transparent 22%),
    radial-gradient(circle at 82% 78%, rgba(100,255,218,0.16), transparent 24%),
    linear-gradient(145deg, #120b19 0%, #0e1630 55%, #050915 100%);
}
.story-scene-decision {
  background:
    radial-gradient(circle at 25% 22%, rgba(34,197,94,0.16), transparent 22%),
    radial-gradient(circle at 82% 26%, rgba(59,130,246,0.22), transparent 26%),
    linear-gradient(145deg, #071219 0%, #0f1f31 52%, #07111b 100%);
}
.story-scene-launch {
  background:
    radial-gradient(circle at 20% 18%, rgba(255,217,175,0.18), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(100,255,218,0.18), transparent 26%),
    linear-gradient(145deg, #111119 0%, #0d1826 58%, #050913 100%);
}
.scene-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}
.scene-grid-two {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
}
.scene-grid > * {
  min-width: 0;
}
.scene-stack {
  display: grid;
  gap: 14px;
}
.scene-eyebrow {
  position: relative;
  z-index: 1;
  color: rgba(255,217,175,0.9);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scene-headline {
  position: relative;
  z-index: 1;
  max-width: 14ch;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
.scene-copy {
  position: relative;
  z-index: 1;
  max-width: 50ch;
  color: rgba(230,241,255,0.78);
  font-size: 15px;
  line-height: 1.8;
}
.scene-tag-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.scene-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(230,241,255,0.82);
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
.scene-chip-danger {
  background: rgba(239,68,68,0.14);
  color: #ffb2b2;
}
.scene-chip-warn {
  background: rgba(249,115,22,0.14);
  color: #ffd1a3;
}
.scene-chip-good {
  background: rgba(34,197,94,0.14);
  color: #a8f3c2;
}
.scene-panel {
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(6,10,21,0.52);
  backdrop-filter: blur(14px);
}
.scene-panel-label {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(255,217,175,0.88);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.scene-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}
.scene-panel p {
  color: rgba(230,241,255,0.72);
  font-size: 13px;
  line-height: 1.75;
}
.scene-panel-glass {
  background: rgba(11,18,33,0.62);
}
.scene-panel-quote p {
  font-size: 15px;
  color: #ffe8d1;
}
.scene-chat-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  height: 100%;
}
.scene-chat-prompt {
  max-width: 72%;
  padding: 20px 22px;
  border-radius: 22px 22px 22px 8px;
  background: linear-gradient(135deg, rgba(255,217,175,0.9), rgba(100,255,218,0.8));
  color: #09101a;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}
.scene-chat-prompt p {
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
}
.scene-role-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-self: end;
}
.scene-role-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(9,14,28,0.7);
  font-size: 16px;
  line-height: 1.45;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
}
.scene-role-card span {
  display: block;
  margin-top: 6px;
  color: rgba(230,241,255,0.68);
  font-size: 12px;
}
.role-card-chemist { transform: translateY(12px); }
.role-card-biology { transform: translateX(-12px); }
.role-card-pharma { transform: translateX(18px); }
.role-card-data { transform: translateY(-8px); }
.role-card-lead {
  grid-column: 1 / -1;
  max-width: 72%;
  justify-self: center;
  background: rgba(255,255,255,0.08);
}
.scene-thread {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: center;
  height: 100%;
}
.scene-bubble {
  max-width: 72%;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(8,13,24,0.64);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}
.scene-bubble span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,217,175,0.9);
  font-size: 12px;
}
.scene-bubble p {
  color: rgba(230,241,255,0.8);
  font-size: 14px;
  line-height: 1.75;
}
.bubble-left { justify-self: start; border-bottom-left-radius: 10px; }
.bubble-right { justify-self: end; border-bottom-right-radius: 10px; }
.scene-decision-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-content: end;
  height: 100%;
}
.scene-panel-metric,
.scene-panel-decision {
  min-height: 230px;
}
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.metric-row:last-child {
  border-bottom: none;
}
.metric-good { color: #a8f3c2; }
.metric-warn { color: #ffd1a3; }
.metric-bad { color: #ffb2b2; }
.scene-panel-decision strong {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  max-width: 9ch;
}
.scene-kanban {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.kanban-col {
  padding: 14px;
  border-radius: 18px;
  background: rgba(7,12,24,0.62);
  border: 1px solid rgba(255,255,255,0.08);
}
.kanban-col > span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255,217,175,0.88);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.kanban-card {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: rgba(230,241,255,0.84);
  font-size: 13px;
  line-height: 1.6;
}
.kanban-card:last-child {
  margin-bottom: 0;
}
.kanban-card.danger {
  background: rgba(239,68,68,0.16);
}
.kanban-card.success {
  background: rgba(34,197,94,0.16);
}
.story-subtitles {
  display: grid;
  gap: 8px;
  padding: 16px 4px 10px;
}
.story-time {
  color: rgba(255,217,175,0.8);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.story-subtitles h3 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.story-subtitles p {
  color: rgba(230,241,255,0.7);
  font-size: 14px;
  line-height: 1.7;
}
.story-progress {
  position: relative;
  height: 5px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.story-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd9af 0%, var(--accent) 100%);
  transition: width 0.18s linear;
}

/* ─── 按钮 ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; gap: 8px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--gradient-primary); color: var(--bg-deep); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(100,255,218,0.3); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-dim); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.full { width: 100%; }

/* ─── 卡片 ─── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
  transition: all 0.3s; cursor: pointer;
}
.card:hover { border-color: var(--border-focus); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }
.card-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.card-context { color: var(--text-secondary); font-size: 14px; margin-bottom: 12px; line-height: 1.5; }

/* ─── 标签 ─── */
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: var(--accent-dim); color: var(--accent);
  font-size: 12px; padding: 4px 12px; border-radius: 20px;
  font-weight: 500;
}
.tag.tag-blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.tag.tag-purple { background: rgba(139,92,246,0.15); color: var(--purple); }
.tag.tag-orange { background: rgba(249,115,22,0.15); color: var(--orange); }
.meta-text { font-size: 13px; color: var(--text-muted); }
.card-messages {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.message-item {
  padding: 12px 16px; background: var(--bg-primary); border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.message-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.message-emoji { font-size: 20px; }
.message-name { font-weight: 600; font-size: 14px; color: var(--accent); }
.message-role { font-size: 12px; color: var(--text-muted); }
.message-content { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ─── Feed ─── */
.feed { display: flex; flex-direction: column; gap: 4px; }

/* ─── 搜索 ─── */
.search-bar { display: flex; gap: 12px; margin: 24px 0; }
.search-input, .input {
  flex: 1; padding: 12px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.search-input:focus, .input:focus { border-color: var(--accent); }

/* ─── 标签筛选 ─── */
.tags-bar { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tag-btn {
  padding: 6px 16px; border-radius: 20px; font-size: 13px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
.tag-btn:hover, .tag-btn.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }

/* ─── Section ─── */
.section { margin: 48px 0; }
.section-title {
  font-size: 24px; font-weight: 700; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}

/* ─── 页面头部 ─── */
.page-header { text-align: center; margin-bottom: 40px; }
.page-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); font-size: 16px; }

/* ─── 团队展示 ─── */
.team-showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.team-card {
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; text-align: center;
  transition: all 0.3s;
}
.team-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.team-emoji { font-size: 48px; display: block; margin-bottom: 16px; }
.team-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.team-role { font-size: 13px; color: var(--accent); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.team-expertise { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.team-expertise .tag { font-size: 11px; }
.team-risk { font-size: 12px; color: var(--text-muted); }

/* ─── 工具卡片 ─── */
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 24px;
}
.tool-card h2 { font-size: 20px; margin-bottom: 20px; }
.tool-subtitle {
  margin: -8px 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}
.secondme-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

/* ─── 角色选择 ─── */
.role-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.role-chip {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; transition: all 0.2s;
  font-size: 13px; color: var(--text-secondary);
}
.role-chip.selected { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.role-chip-emoji { font-size: 18px; }

/* ─── 输入框 ─── */
.textarea {
  width: 100%; padding: 16px; background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 14px; font-family: var(--font);
  resize: vertical; outline: none; margin-bottom: 12px; transition: border-color 0.2s;
}
.textarea:focus { border-color: var(--accent); }
.textarea.small { min-height: 60px; }
.input-row { display: flex; gap: 12px; margin-bottom: 16px; }

/* ─── 回复 ─── */
.responses { margin-top: 24px; }
.response-card {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.response-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.response-emoji { font-size: 24px; }
.response-name { font-weight: 700; color: var(--accent); }
.response-role { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.response-content { font-size: 14px; color: var(--text-secondary); line-height: 1.8; white-space: pre-wrap; }

/* ─── ADMET ─── */
.admet-result { margin-top: 16px; }
.admet-table { width: 100%; border-collapse: collapse; }
.admet-table th, .admet-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border);
}
.admet-table th { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.admet-table td { font-size: 14px; }
.admet-ok { color: var(--green); }
.admet-warn { color: var(--orange); }

/* ─── 场景 ─── */
.scenario-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.scenario-tab {
  padding: 8px 20px; border-radius: 20px; font-size: 14px;
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
.scenario-tab.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.scenario-checklist { list-style: none; }
.scenario-checklist li {
  padding: 12px 16px; border-left: 3px solid var(--accent);
  background: var(--bg-primary); margin-bottom: 8px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px; color: var(--text-secondary);
}
.scenario-checklist li::before { content: '☐ '; color: var(--accent); }

/* ─── 关于 ─── */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-bottom: 48px; }
.about-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; text-align: center;
}
.about-icon { font-size: 48px; margin-bottom: 16px; }
.about-card h3 { font-size: 18px; margin-bottom: 12px; }
.about-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.about-footer { text-align: center; padding: 40px 0; color: var(--text-muted); }
.about-links a { margin: 0 8px; }

/* ─── 骨架屏 ─── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm); margin-bottom: 12px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── 空状态 ─── */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; display: block; }

/* ─── Workflow Workbench ─── */
.workbench-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.workbench-project-switcher {
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.workbench-project-switcher label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.workbench-top-actions,
.workbench-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.workbench-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  font-size: 14px;
}
.workbench-message.ok {
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.08);
  color: #bef3d4;
}
.workbench-message.error {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
}
.workbench-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.workbench-sidebar,
.workbench-main {
  display: grid;
  gap: 18px;
}
.workbench-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}
.workbench-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 30%);
}
.workbench-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.workbench-card-header h2 {
  font-size: 18px;
  margin-bottom: 6px;
}
.workbench-card-header p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.workbench-badge,
.status-badge,
.owner-pill,
.artifact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.workbench-badge {
  background: rgba(94, 234, 212, 0.12);
  color: #99f6e4;
  border: 1px solid rgba(94, 234, 212, 0.16);
}
.workbench-form-grid {
  display: grid;
  gap: 12px;
}
.workbench-form-grid .full {
  width: 100%;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}
.checkbox-row input {
  accent-color: var(--accent);
}
.workbench-summary {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 4px 0 0;
}
.workbench-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.workbench-project-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.workbench-project-meta {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.workbench-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.workbench-metric {
  padding: 14px;
  border-radius: 18px;
  background: rgba(8, 15, 34, 0.58);
  border: 1px solid rgba(255,255,255,0.06);
}
.workbench-metric-label {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.workbench-metric-value {
  font-size: 20px;
  font-weight: 700;
}
.workbench-meta-list {
  display: grid;
  gap: 10px;
}
.workbench-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
}
.workbench-meta-row strong {
  color: var(--text-primary);
  font-weight: 600;
}
.workbench-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.workbench-member:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.workbench-member-name {
  font-weight: 600;
  margin-bottom: 4px;
}
.workbench-member-role {
  font-size: 13px;
  color: var(--text-secondary);
}
.owner-pill {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}
.owner-pill.agent {
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
}
.owner-pill.human {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}
.artifact-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}
.timeline-item {
  position: relative;
  padding: 14px 14px 14px 18px;
  margin-left: 10px;
  border-left: 1px solid rgba(148, 163, 184, 0.24);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.12);
}
.timeline-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.timeline-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.timeline-time {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.timeline-summary {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.artifact-pill {
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
}
.workflow-runs {
  display: grid;
  gap: 16px;
}
.workflow-run {
  position: relative;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(8, 15, 34, 0.76), rgba(8, 15, 34, 0.52));
}
.workflow-run.selected {
  border-color: rgba(94, 234, 212, 0.28);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
}
.workflow-run-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.workflow-run-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.workflow-run-topic {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.workflow-run-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.status-badge {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}
.status-badge.running,
.status-badge.in_progress {
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
}
.status-badge.completed,
.status-badge.approved {
  background: rgba(52, 211, 153, 0.12);
  color: #bef3d4;
}
.status-badge.awaiting_approval,
.status-badge.awaiting_owner {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}
.status-badge.rejected,
.status-badge.failed,
.status-badge.blocked {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}
.run-step-list {
  display: grid;
  gap: 12px;
}
.run-step {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.run-step.current {
  border-color: rgba(94, 234, 212, 0.24);
  background: rgba(94, 234, 212, 0.05);
}
.run-step-header,
.run-step-subhead,
.run-step-owner-row,
.run-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.run-step-index {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 12px;
}
.run-step-name {
  font-size: 15px;
  font-weight: 600;
}
.run-step-description,
.run-step-summary,
.run-step-output {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.run-step-summary {
  color: var(--text-primary);
}
.run-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.run-step-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.owner-select-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.owner-select-row .input {
  min-width: 240px;
}
.run-step details {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}
.run-step details summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
}
.run-step-output {
  white-space: pre-wrap;
  margin-top: 10px;
}

/* ─── Footer ─── */
.footer {
  text-align: center; padding: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); max-width: 1200px; margin: 0 auto;
}

/* ─── 加载动画 ─── */
.loading-dots::after {
  content: ''; animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
  0%, 20% { content: ''; } 40% { content: '.'; } 60% { content: '..'; } 80%, 100% { content: '...'; }
}

/* ─── 响应式 ─── */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,10,26,0.95); backdrop-filter: blur(20px);
    flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .env-bar-inner,
  .debug-header,
  .debug-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .debug-panel {
    top: 148px;
    padding: 0 16px;
  }
  .debug-grid {
    grid-template-columns: 1fr;
  }
  .business-flow,
  .home-ops-grid,
  .h2a-shell,
  .home-workbench-grid {
    grid-template-columns: 1fr;
  }
  .home-business-section,
  .home-ops-section,
  .home-h2a-section,
  .home-ops-panel,
  .h2a-card {
    padding: 18px;
    border-radius: 22px;
  }
  .home-workbench-head,
  .home-workbench-toolbar,
  .h2a-main-header,
  .home-agent-row {
    flex-direction: column;
    align-items: stretch;
  }
  .flow-step::after {
    display: none;
  }
  .h2a-message {
    max-width: 100%;
  }
  .workbench-topbar,
  .workbench-card-header,
  .workflow-run-header,
  .run-step-header,
  .run-step-subhead,
  .run-step-owner-row,
  .run-step-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .workbench-shell {
    grid-template-columns: 1fr;
  }
  .workbench-metric-grid {
    grid-template-columns: 1fr;
  }
  .workbench-project-switcher,
  .owner-select-row .input {
    min-width: 0;
  }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 28px; }
  .story-demo {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 24px;
  }
  .story-title {
    max-width: none;
    font-size: 34px;
  }
  .story-body {
    font-size: 14px;
  }
  .story-points {
    grid-template-columns: 1fr;
  }
  .story-player {
    padding: 14px;
    border-radius: 22px;
  }
  .story-video-shell,
  .story-video {
    min-height: 340px;
  }
  .story-video-overlay {
    padding: 14px;
  }
  .story-video-caption {
    max-width: none;
    padding: 14px;
  }
  .story-video-caption strong {
    font-size: 22px;
  }
  .story-video-chapters {
    grid-template-columns: 1fr;
  }
  .story-player-bar,
  .story-player-meta,
  .story-controls {
    align-items: flex-start;
    flex-direction: column;
  }
  .story-stage {
    min-height: 560px;
  }
  .story-scene {
    padding: 20px;
  }
  .scene-grid-two,
  .scene-decision-grid,
  .scene-role-cloud,
  .scene-kanban {
    grid-template-columns: 1fr;
  }
  .scene-chat-prompt,
  .scene-bubble,
  .role-card-lead {
    max-width: 100%;
  }
  .role-card-chemist,
  .role-card-biology,
  .role-card-pharma,
  .role-card-data {
    transform: none;
  }
  .scene-headline {
    max-width: none;
    font-size: 34px;
  }
  .story-subtitles h3 {
    font-size: 20px;
  }
  .team-showcase, .team-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .input-row { flex-direction: column; }
  .main { padding: 172px 16px 24px; }
}
