:root {
  --bg-0: #0d1117;
  --bg-1: #131a26;
  --bg-card: #161d29;
  --text-0: #e6edf3;
  --text-1: #8b98a9;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #22d3ee;
  --accent-2: #fb923c;
  --accent-dim: rgba(34, 211, 238, 0.12);
  --accent2-dim: rgba(251, 146, 60, 0.12);
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 100%);
  background-attachment: fixed;
  color: var(--text-0);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Sidebar (desktop) ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: rgba(11, 15, 22, 0.96);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 8px;
}

.sidebar-date {
  font-size: 12px;
  color: var(--accent-2);
  font-family: var(--mono);
  margin-bottom: 22px;
  padding-left: 14px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-nav a {
  color: var(--text-1);
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  color: var(--text-0);
  background: var(--accent-dim);
  border-left-color: var(--accent);
  text-decoration: none;
}

.sidebar-footer {
  font-size: 12px;
  color: var(--text-1);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 12px;
}

/* ---------- Nav toggle (mobile only) ---------- */
.nav-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 17, 23, 0.92);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Content (desktop) ---------- */
.content {
  margin-left: 260px;
  max-width: 1080px;
  padding: 40px 44px 60px;
}

.section {
  scroll-margin-top: 24px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type { border-bottom: none; }

.section h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent-2);
  border-radius: 2px;
}

.section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin: 22px 0 10px;
}

.section p { margin-bottom: 14px; color: var(--text-1); }
.section strong { color: var(--text-0); }

.section img {
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 6px 0 20px;
}

/* ---------- Hero ---------- */
.hero { padding-top: 20px; }

.hero-visual img {
  border-radius: 16px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-0);
  margin-bottom: 10px;
}

#subtitle {
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-lead { font-size: 16px; max-width: 760px; }

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.hero-card .card-label {
  display: block;
  font-size: 12px;
  color: var(--text-1);
  margin-bottom: 6px;
}

.hero-card .card-value {
  display: block;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-0);
}

.hero-card .card-sub {
  display: block;
  font-size: 12px;
  color: var(--accent-2);
  margin-top: 4px;
}

.hero-cta-note { font-size: 15px; }

.cta-link { font-weight: 600; }

.btn-primary {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 34px;
  background: linear-gradient(135deg, var(--accent), #0ea5b6);
  color: #04121b;
  font-weight: 800;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.35);
  text-decoration: none;
  color: #04121b;
}

/* ---------- Schedule ---------- */
.schedule {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--text-1);
  border-radius: 10px;
  padding: 12px 16px;
}

.schedule-item.live { border-left-color: var(--accent-2); }
.schedule-item.done { border-left-color: var(--text-1); opacity: 0.75; }
.schedule-item.upcoming { border-left-color: var(--accent); }

.s-time {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-0);
  min-width: 130px;
}

.s-status {
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.schedule-item.live .s-status { background: var(--accent2-dim); color: var(--accent-2); }
.schedule-item.done .s-status { background: rgba(255,255,255,0.06); color: var(--text-1); }
.schedule-item.upcoming .s-status { background: var(--accent-dim); color: var(--accent); }

.s-name { font-size: 14px; color: var(--text-1); }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 16px 0;
  background: var(--bg-card);
}

.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
}

.board th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}

.board td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-0);
  font-family: var(--mono);
  font-size: 14px;
}

.board tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.board tbody tr:last-child td { border-bottom: none; }
.board tbody tr:hover { background: rgba(34, 211, 238, 0.06); }

.board td:first-child { font-weight: 700; color: var(--accent-2); }

/* ---------- Lists / steps ---------- */
.plain-list {
  list-style: none;
  margin: 10px 0 16px;
}

.plain-list li {
  padding: 7px 0 7px 22px;
  position: relative;
  color: var(--text-1);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 12px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 54px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-1);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}

.example {
  background: var(--accent2-dim);
  border-left: 3px solid var(--accent-2);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-0) !important;
}

/* ---------- Long tail ---------- */
.longtail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.longtail-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.longtail-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.longtail-card strong {
  display: block;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 6px;
}

.longtail-card span {
  font-size: 13px;
  color: var(--text-1);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-0);
  font-size: 15px;
  outline: none;
}

.faq-list details p {
  margin: 10px 0 0;
  color: var(--text-1);
  font-size: 14px;
}

.faq-note { font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 0 10px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  color: var(--text-1);
  font-size: 13px;
  margin-bottom: 6px;
}

.back-top {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  body { -webkit-tap-highlight-color: transparent; }

  .nav-toggle { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    width: 280px;
    padding-top: 72px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }

  body.nav-open .sidebar { transform: translateX(0); }

  .content {
    margin-left: 0;
    width: 100%;
    padding: 72px 16px 40px;
  }

  .section { scroll-margin-top: 64px; padding: 40px 0; }

  .hero h1 { font-size: 30px; }
  #subtitle { font-size: 16px; }
  .hero-lead { font-size: 15px; }

  .hero-cards { grid-template-columns: 1fr; gap: 10px; }

  .section h2 { font-size: 22px; }
  .section h3 { font-size: 16px; }

  .section p, .plain-list li, .steps li { font-size: 15px; }
  .section { line-height: 1.8; }

  .longtail-grid { grid-template-columns: 1fr; }

  .schedule-item { flex-wrap: wrap; gap: 8px; }
  .s-time { min-width: 120px; }

  .btn-primary { width: 100%; text-align: center; }

  img { max-width: 100% !important; }
}
