:root {
  color-scheme: dark;
  --bg: #0b0f16;
  --panel: #151b26;
  --panel-soft: #111621;
  --text: #e4e9f2;
  --muted: #9aa4b2;
  --accent: #4ea3ff;
  --accent-strong: #77c0ff;
  --danger: #ff6b6b;
  font-family: "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #162033, var(--bg));
  color: var(--text);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: start;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.subtitle {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.hero-card {
  background: var(--panel);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 16px;
}

.hero-row {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.hero-row span {
  color: var(--muted);
}

.hero-row strong {
  font-size: 1.05rem;
}

.hero-row small {
  color: var(--accent-strong);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  background: var(--accent);
  border: none;
  color: #07121c;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.btn.ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-panel {
  margin-top: 28px;
  background: var(--panel-soft);
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.speed {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

select {
  background: #0f1520;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 8px;
  border-radius: 8px;
}

.time-readout {
  margin-left: auto;
  text-align: right;
}

#time-main {
  font-size: 1.1rem;
  font-weight: 600;
}

#time-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

#timeline-slider {
  width: 100%;
}

.timeline-hints {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.panel {
  background: var(--panel);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.control-panel {
  grid-column: span 2;
}

.control-layout {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr);
  gap: 16px;
  align-items: center;
}

.yoke-block {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.yoke-svg {
  width: 100%;
  max-width: 220px;
}

.yoke-ring {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 6;
}

.yoke-bar {
  fill: var(--accent-strong);
}

.yoke-grip {
  fill: #0b1018;
  stroke: var(--accent-strong);
  stroke-width: 2;
}

.yoke-column {
  fill: #1a2433;
}

.yoke-base {
  fill: #0f1724;
}

.yoke-readouts {
  display: grid;
  gap: 8px;
  width: 100%;
}

.readout {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.readout strong {
  color: var(--text);
}

.throttle-block {
  display: grid;
  gap: 16px;
}

.throttle-label {
  color: var(--muted);
  margin-bottom: 6px;
}

.throttle-levers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lever {
  display: grid;
  gap: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.lever-track {
  height: 120px;
  background: #0e141f;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lever-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  height: 0%;
}

.rudder-indicator {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.rudder-track {
  position: relative;
  height: 8px;
  background: #0e141f;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rudder-center {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 2px;
  height: 16px;
  background: var(--accent-strong);
}

.rudder-dot {
  position: absolute;
  top: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--danger);
  transform: translateX(-50%);
}

.readout-panel {
  grid-column: span 2;
}

.readout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.metric {
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  display: grid;
  gap: 6px;
}

.metric span {
  color: var(--muted);
  font-size: 0.85rem;
}

.metric strong {
  font-size: 1.1rem;
}

.chart-panel canvas {
  width: 100% !important;
}

.downloads {
  margin-top: 26px;
}

.download-note {
  color: var(--muted);
}

.download-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.download-btn {
  background: #0f1724;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  transition: border 0.2s ease, transform 0.2s ease;
}

.download-btn:hover {
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .control-panel,
  .readout-panel {
    grid-column: span 1;
  }

  .control-layout {
    grid-template-columns: 1fr;
  }

  .time-readout {
    margin-left: 0;
    text-align: left;
  }
}
