:root {
  --bg: #0d1117;
  --panel: #141b23;
  --panel-2: #1a232e;
  --green: #3ddc84;
  --blue: #4aa8ff;
  --amber: #ffb648;
  --text: #e6edf3;
  --muted: #8b98a5;
  --line: #253040;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  width: 100%;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.brand img { height: 32px; width: auto; border-radius: 6px; }
.brand-sub { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 1px; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; color: var(--muted);
  padding: 8px 13px; border-radius: 7px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--green); background: rgba(61,220,132,0.08); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: 7px; padding: 7px 12px;
  font-size: 14px; cursor: pointer;
}
.mobile-panel {
  display: none; flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 0;
}
.mobile-panel a { padding: 12px 24px; font-size: 15px; color: var(--muted); }
.mobile-panel a.active { color: var(--green); }
.mobile-panel.open { display: flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 9px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--green); color: #07130c; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(61,220,132,0.28); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(61,220,132,0.10), transparent 70%),
    radial-gradient(700px 320px at 88% 10%, rgba(74,168,255,0.10), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  color: var(--green); background: rgba(61,220,132,0.08);
  border: 1px solid rgba(61,220,132,0.25);
  padding: 5px 12px; border-radius: 99px; margin-bottom: 22px;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero h1 { font-size: 46px; line-height: 1.2; letter-spacing: 0.5px; margin-bottom: 20px; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-desc { font-size: 16px; color: var(--muted); max-width: 520px; margin-bottom: 14px; }
.hero-desc strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: #6b7887; }
.hero-visual {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,0.45);
}
.hero-visual-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.hero-visual-head .dots { display: flex; gap: 6px; }
.hero-visual-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2c3947; display: block; }
.hero-visual img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---------- Section shell ---------- */
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 34px; }
.section-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  color: var(--blue); text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; letter-spacing: 0.5px; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 15px; max-width: 640px; }

/* ---------- Line cards ---------- */
.line-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.line-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 13px; padding: 22px;
  transition: border-color .22s, transform .22s;
}
.line-card:hover { border-color: var(--green); transform: translateY(-3px); }
.line-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.line-name { font-size: 17px; font-weight: 700; }
.line-badge {
  font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 99px;
}
.badge-green { color: var(--green); background: rgba(61,220,132,0.10); border: 1px solid rgba(61,220,132,0.3); }
.badge-blue { color: var(--blue); background: rgba(74,168,255,0.10); border: 1px solid rgba(74,168,255,0.3); }
.badge-amber { color: var(--amber); background: rgba(255,182,72,0.10); border: 1px solid rgba(255,182,72,0.3); }
.signal-bars { display: flex; align-items: flex-end; gap: 6px; height: 58px; margin-bottom: 18px; }
.signal-bars span { flex: 1; border-radius: 3px 3px 0 0; background: var(--green); opacity: .85; }
.signal-bars span.b { background: var(--blue); }
.signal-bars span.a { background: var(--amber); }
.line-metrics { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.line-metrics b { display: block; font-family: var(--mono); font-size: 15px; color: var(--text); font-weight: 600; margin-top: 2px; }

/* ---------- Hot posters ---------- */
.poster-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.poster-card { position: relative; }
.poster-thumb {
  position: relative; border-radius: 11px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 3/4; background: var(--panel-2);
  transition: border-color .22s, transform .22s;
}
.poster-card:hover .poster-thumb { border-color: var(--green); transform: translateY(-4px); }
.poster-thumb img { width: 100%; height: 100%; object-fit: cover; }
.poster-line {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 5px; color: #07130c; background: var(--green);
}
.poster-line.blue { background: var(--blue); color: #051320; }
.poster-title { margin-top: 10px; font-size: 14px; font-weight: 600; }
.poster-kind { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- Speed table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
table.speed { width: 100%; border-collapse: collapse; min-width: 620px; }
table.speed th, table.speed td { padding: 15px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
table.speed thead th {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 1px; background: var(--panel-2); font-weight: 500;
}
table.speed tbody tr:last-child td { border-bottom: none; }
table.speed tbody tr:hover { background: rgba(61,220,132,0.04); }
.num { font-family: var(--mono); }
.status { font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 99px; display: inline-block; }
.status-ok { color: var(--green); background: rgba(61,220,132,0.10); }
.status-mid { color: var(--blue); background: rgba(74,168,255,0.10); }
.status-bad { color: var(--amber); background: rgba(255,182,72,0.10); }

/* ---------- Ranking ---------- */
.rank-list { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--panel); }
.rank-row {
  display: grid; grid-template-columns: 46px 54px 1fr 130px;
  align-items: center; gap: 18px; padding: 13px 20px;
  border-bottom: 1px solid var(--line); transition: background .2s;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: var(--panel-2); }
.rank-no { font-family: var(--mono); font-size: 20px; font-weight: 700; color: #3f4d5d; }
.rank-row:nth-child(1) .rank-no { color: var(--green); }
.rank-row:nth-child(2) .rank-no { color: var(--blue); }
.rank-thumb { width: 54px; height: 72px; border-radius: 7px; overflow: hidden; background: var(--panel-2); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-name { font-size: 15px; font-weight: 600; }
.rank-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rank-line { font-family: var(--mono); font-size: 13px; text-align: right; }

/* ---------- Channel / UI ---------- */
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ui-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  overflow: hidden; transition: border-color .22s, transform .22s;
}
.ui-card:hover { border-color: var(--green); transform: translateY(-3px); }
.ui-card img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.ui-card-body { padding: 16px 18px 20px; }
.ui-card-body h3 { font-size: 16px; margin-bottom: 6px; }
.ui-card-body p { font-size: 13px; color: var(--muted); }

/* ---------- Guide ---------- */
.guide-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.step-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px; transition: border-color .22s;
}
.step-card:hover { border-color: var(--green); }
.step-no {
  font-family: var(--mono); font-size: 12px; color: var(--green);
  border: 1px solid rgba(61,220,132,0.3); border-radius: 6px;
  padding: 2px 8px; display: inline-block; margin-bottom: 12px;
}
.step-card h3 { font-size: 15px; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.step-card p:last-child { margin-bottom: 0; }
.step-card p b { color: var(--text); font-weight: 600; }
.guide-phone { position: sticky; top: 88px; }
.guide-phone img {
  width: 100%; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel);
}
.guide-phone p { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.faq-group { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 22px; }
.faq-group h3 { font-size: 15px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--green); }
.faq-item { margin-bottom: 16px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item h4 { font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.faq-item p { font-size: 13px; color: var(--muted); }
.faq-item .num { color: var(--blue); }

/* ---------- Download ---------- */
.download { padding: 84px 0 90px; text-align: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.download::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 260px at 50% 100%, rgba(61,220,132,0.10), transparent 70%);
  pointer-events: none;
}
.download-inner { position: relative; }
.download h2 { font-size: 32px; margin-bottom: 14px; }
.download p { color: var(--muted); font-size: 15px; max-width: 540px; margin: 0 auto 32px; }
.download-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.download-figure { display: flex; justify-content: center; gap: 18px; margin-top: 48px; flex-wrap: wrap; }
.download-figure figure {
  border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  width: 260px; background: var(--panel);
}
.download-figure img { width: 100%; height: 160px; object-fit: cover; }
.download-figure figcaption { font-size: 12px; color: var(--muted); padding: 10px 14px; font-family: var(--mono); }
.tv-note {
  display: flex; align-items: center; gap: 18px;
  max-width: 720px; margin: 40px auto 0; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px;
  background: var(--panel);
}
.tv-note img { width: 84px; height: 84px; object-fit: contain; border-radius: 8px; background: #0a0e13; }
.tv-note p { font-size: 13px; color: var(--muted); }
.tv-note b { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.footer-copy { font-size: 12px; color: #5d6a77; }
.footer-meta { font-size: 12px; color: #5d6a77; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.site-footer a { color: #6b7887; transition: color .2s; }
.site-footer a:hover { color: var(--green); }
.footer-meta time { font-family: var(--mono); }

/* ---------- Reveal animation (visible by default) ---------- */
.reveal { transition: transform .6s ease, opacity .6s ease; }
.reveal.in { transform: translateY(0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { gap: 36px; }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .line-grid { grid-template-columns: 1fr; }
  .ui-grid { grid-template-columns: 1fr; }
  .faq-groups { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; gap: 30px; }
  .guide-phone { position: static; max-width: 340px; margin: 0 auto; }
  .hero { padding: 52px 0 48px; }
  section.block { padding: 54px 0; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 15px; }
  .section-head h2 { font-size: 24px; }
  .section-head h1, .download h2 { font-size: 26px; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 34px 46px 1fr; gap: 12px; padding: 12px 14px; }
  .rank-line { display: none; }
  .rank-thumb { width: 46px; height: 62px; }
  .download-figure figure { width: 100%; max-width: 300px; }
  .tv-note { flex-direction: column; text-align: center; }
  .btn { width: 100%; max-width: 300px; }
  .download-actions { flex-direction: column; align-items: center; }
}