:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --line: #334155;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
  --card: #ffffff;
  --ink: #0f172a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f8fafc;
  color: var(--ink);
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: white;
  padding: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #2563eb, #60a5fa);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.brand h1 { font-size: 18px; margin: 0 0 4px; }
.brand p { margin: 0; color: #cbd5e1; font-size: 12px; line-height: 1.5; }
nav { display: grid; gap: 10px; }
.nav-btn {
  background: rgba(255,255,255,0.06); color: white; border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left; font-size: 14px;
}
.nav-btn.active, .nav-btn:hover { background: rgba(59,130,246,0.25); border-color: rgba(96,165,250,0.4); }
.sidebar-note { margin-top: 24px; background: rgba(255,255,255,0.05); border-radius: 18px; padding: 14px; }
.sidebar-note h3 { margin: 0 0 10px; font-size: 14px; }
.sidebar-note ul { margin: 0; padding-left: 18px; color: #dbeafe; line-height: 1.7; font-size: 13px; }
.main { padding: 28px; }
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
  border: 1px solid #dbeafe;
  border-radius: 28px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.eyebrow { color: #2563eb; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h2 { margin: 8px 0 10px; font-size: 28px; line-height: 1.3; max-width: 860px; }
.hero p { margin: 0; color: #475569; line-height: 1.7; max-width: 860px; }
.hero-cards { display: grid; gap: 12px; min-width: 230px; }
.mini-card { background: white; border: 1px solid #dbeafe; border-radius: 20px; padding: 16px; }
.mini-card span { display: block; color: #64748b; font-size: 12px; margin-bottom: 6px; }
.mini-card strong { font-size: 18px; }
.page { display: none; }
.page.active { display: block; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 16px; }
.page-head h3 { margin: 0 0 6px; font-size: 24px; }
.page-head p { margin: 0; color: #64748b; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: white;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  box-shadow: 0 6px 30px rgba(15, 23, 42, 0.04);
}
.card h4 { margin: 0 0 14px; font-size: 18px; }
textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 16px; padding: 16px;
  font: inherit; line-height: 1.7; resize: vertical; background: #f8fafc;
}
.actions { display: flex; gap: 12px; margin-top: 14px; }
.actions.wrap { flex-wrap: wrap; }
button {
  border: 1px solid #cbd5e1; background: white; color: #0f172a; cursor: pointer;
  border-radius: 14px; padding: 11px 16px; font-size: 14px; font-weight: 600;
}
button.primary { background: var(--primary); color: white; border-color: var(--primary); }
button:hover { transform: translateY(-1px); }
.output-list, .detail-list { display: grid; gap: 10px; }
.output-item, .detail-list li {
  list-style: none; margin: 0; padding: 12px 14px; border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0;
}
.output-item strong { display: inline-block; min-width: 118px; color: #1d4ed8; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.chips span { padding: 8px 12px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 13px; border: 1px solid #bfdbfe; }
.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card { background: white; border-radius: 22px; border: 1px solid #e2e8f0; padding: 18px; }
.stat-card span { display: block; color: #64748b; font-size: 12px; margin-bottom: 8px; }
.stat-card strong { font-size: 18px; line-height: 1.5; }
.timeline { display: grid; gap: 12px; }
.timeline-item { border-left: 3px solid #60a5fa; padding-left: 12px; }
.timeline-item span { display: block; color: #64748b; font-size: 12px; margin-bottom: 4px; }
.strategy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.strategy-card { border-radius: 24px; border: 1px solid #e2e8f0; padding: 18px; background: white; }
.strategy-card.recommended { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.12); }
.strategy-card h5 { margin: 0 0 8px; font-size: 17px; }
.badge { display: inline-block; font-size: 12px; border-radius: 999px; padding: 4px 9px; background: #eff6ff; color: #1d4ed8; margin-bottom: 10px; }
.badge.green { background: #dcfce7; color: #166534; }
.banner-card { margin-bottom: 16px; }
.notice { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.segment-row { display: flex; gap: 12px; flex-wrap: wrap; }
.segment { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; border-radius: 16px; padding: 14px; min-width: 180px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e2e8f0; }
th { color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.rank-list { margin: 0; padding-left: 20px; line-height: 1.9; }
.top-gap { margin-top: 16px; }
@media (max-width: 1180px) {
  body { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.two, .grid.three, .strategy-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; }
}
