:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1f2335;
  --text-muted: #6b7180;
  --border: #e6e8f0;
  --accent: #534ab7;
  --accent-soft: #eeedfe;
  --shadow: 0 1px 3px rgba(31,35,53,.06), 0 1px 2px rgba(31,35,53,.04);
  --radius: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.demo-banner {
  background: #fff7e6;
  border-bottom: 1px solid #ffe4b5;
  color: #7a5a10;
  padding: 10px 24px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  background: #ef9f27;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: .5px;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.subtitle { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

.hero-meta { display: flex; gap: 24px; }
.meta-item { font-size: 13px; color: var(--text-muted); }
.meta-item strong { color: var(--text); font-size: 16px; margin-left: 4px; }

.metrics {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.metric-label { font-size: 13px; color: var(--text-muted); }
.metric-value {
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
  line-height: 1.1;
}
.metric-sub { font-size: 12px; color: var(--text-muted); display: inline; margin-left: 4px; }

.charts {
  max-width: 1200px;
  margin: 8px auto 24px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.chart-card.wide { grid-column: span 2; }
.chart-card h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.chart-wrap { position: relative; height: 240px; }
.chart-card.wide .chart-wrap { height: 260px; }

.table-section {
  max-width: 1200px;
  margin: 8px auto 32px;
  padding: 0 24px;
}
.table-section h2 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left;
  padding: 12px 14px;
  background: #f3f4fb;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr:nth-child(even) { background: #fafbfd; }
tbody tr:hover { background: var(--accent-soft); }

.sat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }

.footer {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .chart-card.wide { grid-column: span 1; }
}
@media (max-width: 520px) {
  .metrics { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
}
