@charset "UTF-8";

/* ===== TVbox · 黄底源控台主题 ===== */
:root {
  --brand: #CA8A04;
  --brand-deep: #854D0E;
  --brand-soft: #FEF08A;
  --accent: #FACC15;
  --cyan: #22D3EE;
  --salmon: #FB923C;
  --paper: #FFFDF3;
  --surface: #FFFFFF;
  --ink: #201A05;
  --muted: #6B6244;
  --line: #EFE6C0;
  --radius: 10px;
  --radius-sm: 6px;
  --shell: 1180px;
  --header-height: 72px;
  --shadow: 0 18px 38px rgba(133, 77, 14, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}
.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }

/* ===== 顶部 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 243, 0.98);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--shell));
  min-height: var(--header-height);
  margin: 0 auto;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: contain;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 700;
}
.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { transform: scaleX(1); }

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.nav-download {
  min-width: 132px;
  padding: 0 15px;
  border: 1px solid var(--brand);
  color: var(--brand-deep);
}
.nav-download .icon,
.button-primary .icon { filter: invert(42%) sepia(77%) saturate(1500%) hue-rotate(8deg) brightness(95%); }
.nav-download:hover { background: var(--brand); color: #fff; }
.nav-download:hover .icon { filter: brightness(0) invert(1); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

/* ===== 英雄区：源列表 + 播放状态面板 ===== */
.hero {
  padding: 52px 0 58px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(250, 204, 21, 0.16), rgba(255, 253, 243, 0.2) 55%),
    repeating-linear-gradient(90deg, rgba(202, 138, 4, 0.07) 0 1px, transparent 1px 46px),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
  align-items: center;
  gap: 46px;
}
.hero-copy { max-width: 500px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.hero h1,
.section-heading h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -1.2px;
}
.hero h1 { font-size: clamp(48px, 6vw, 78px); line-height: 1; }
.hero-title {
  margin: 14px 0 15px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.25;
}
.hero-summary {
  max-width: 470px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
}
.button { min-width: 174px; padding: 0 23px; }
.button-primary {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}
.button-primary .icon { filter: brightness(0) invert(1); }
.button-primary:hover { background: var(--brand-deep); transform: translate(-2px, -2px); }

.boxPanel {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  min-height: 350px;
  overflow: hidden;
  border: 1px solid #2A2620;
  border-radius: 16px;
  background: #151310;
  box-shadow: 0 24px 48px rgba(32, 26, 5, 0.28);
  color: #F5EFD8;
}
.bpSide {
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  border-right: 1px solid #302B22;
  background: #1C1915;
}
.bpSideHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #302B22;
}
.bpSideHead b { font-size: 13px; color: var(--accent); letter-spacing: .04em; }
.bpSideHead span { font-size: 10px; color: #9C927A; }
.bpSources {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  flex: 1;
}
.bpSources li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px 7px;
  border-radius: 7px;
  font-size: 11px;
}
.bpSources li i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6F6A57;
}
.bpSources li.is-on i { background: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.bpSources li.is-off i { background: #EF4444; }
.bpSources li.is-off { color: #8A8170; }
.bpSources li.is-now { background: #2A2519; color: #FFF7D6; }
.bpSources li b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpSources li em { font-style: normal; font-size: 10px; color: var(--accent); }
.bpSources li.is-off em { color: #EF4444; }
.bpSideFoot { padding-top: 10px; border-top: 1px solid #302B22; font-size: 10px; color: #8A8170; }

.bpMain {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  min-width: 0;
}
.bpScreen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 211, 238, .22), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(251, 146, 60, .2), transparent 55%),
    #0D0C09;
  border: 1px solid #332D22;
}
.bpPlay {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(250, 204, 21, .92);
  position: relative;
  box-shadow: 0 0 0 8px rgba(250, 204, 21, .13);
}
.bpPlay::after {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  content: "";
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #201A05;
  transform: translate(-50%, -50%);
}
.bpScreen em {
  position: absolute;
  left: 12px;
  bottom: 9px;
  font-style: normal;
  font-size: 10px;
  color: #C9BE9C;
  letter-spacing: .05em;
}
.bpStats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid #302B22;
  border-radius: 8px;
  overflow: hidden;
  background: #302B22;
}
.bpStats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #1C1915;
  font-size: 10.5px;
}
.bpStats span { color: #8A8170; }
.bpStats b { color: #F5EFD8; font-weight: 600; }
.bpFoot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: var(--cyan);
}
.bpFoot i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }

/* ===== 通用标题 ===== */
.section-heading { max-width: 660px; margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.18; }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* ===== 核心特色 ===== */
.routes {
  padding: 74px 0 80px;
  background: var(--paper);
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.fours {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.four {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(32, 26, 5, 0.05);
}
.four::before {
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--salmon));
  border-radius: 0 0 3px 3px;
}
.four .n {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.four h3 { margin: 0 0 8px; font-size: 18px; }
.four p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.75; }

/* ===== 界面展示 ===== */
.screens {
  padding: 78px 0 84px;
  background: #FBF7E6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.covers figure { margin: 0; min-width: 0; }
.covers img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(32, 26, 5, 0.08);
}
.covers b { display: block; margin-top: 9px; font-size: 12.6px; }
.covers small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.6; }

/* ===== FAQ ===== */
.faq {
  padding: 76px 0 18px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.faq-list { display: grid; gap: 10px; max-width: 880px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.45; text-align: left; }
.faq-item summary .icon {
  flex: none;
  transition: transform 180ms ease;
  filter: invert(42%) sepia(77%) saturate(1500%) hue-rotate(8deg) brightness(95%);
}
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 18px 15px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* ===== 官方入口 ===== */
.official {
  padding: 26px 0 76px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.official h2 { font-size: 22px; margin: 0 0 14px; }
.official-fold {
  max-width: 880px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
}
.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-deep);
}
.official-fold summary::-webkit-details-marker { display: none; }
.official-fold summary::after { content: "+"; margin-left: auto; font-size: 18px; font-weight: 800; }
.official-fold[open] summary::after { content: "-"; }
.official-link { padding: 12px 18px 16px; border-top: 1px dashed var(--line); }
.official-link p { margin: 0; font-size: 14px; }
.official-link a { color: var(--brand-deep); font-weight: 700; word-break: break-all; }

/* ===== 用户评价 ===== */
.reviews {
  padding: 76px 0 82px;
  background: #FBF7E6;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.rgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.review-card {
  display: flex;
  min-height: 232px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(32, 26, 5, 0.05);
}
.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.review-card header b { font-size: 13px; }
.review-card time { color: var(--muted); font-size: 11px; }
.review-card > p { margin: 14px 0 12px; color: #4C452F; font-size: 13.5px; line-height: 1.85; }
.rv-site {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--brand-deep);
  font-size: 11px;
  word-break: break-all;
}

/* ===== 下载 ===== */
.download-cta {
  padding: 62px 0 64px;
  color: #F5EFD8;
  background:
    radial-gradient(circle at 82% 20%, rgba(250, 204, 21, 0.18), transparent 52%),
    #151310;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.download-cta .section-heading { margin-bottom: 26px; }
.download-cta .eyebrow { color: var(--accent); }
.download-cta .section-heading h2 { color: #FFF7D6; }
.download-cta .section-heading > p:last-child { color: #B8AE92; }
.download-cta .button-primary {
  box-shadow: 5px 5px 0 rgba(250, 204, 21, 0.28);
}
.download-cta .button-primary:hover { background: var(--accent); color: var(--ink); }
.disclaimer { margin: 16px 0 0; color: #9C927A; font-size: 12px; }

/* ===== 页脚 ===== */
.site-footer {
  padding: 30px 0 18px;
  color: #E7DFC5;
  background: #0E0C09;
  text-align: center;
}
.site-footer p { margin: 0 0 7px; font-size: 12px; }
.site-footer a { color: #C9BE9C; }
.site-footer a:hover { color: var(--accent); }
.site-footer .icp { margin: 0; }
.site-footer .icp a { font-size: 12px; }

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 152px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(32, 26, 5, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}
.to-top::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg) translate(1px, 1px);
}
.to-top.is-show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--brand-deep); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { max-width: 620px; }
  .boxPanel { max-width: 560px; }
  .fours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --header-height: 64px; }
  body { padding-top: var(--header-height); }
  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    background: var(--paper);
  }
  .page-shell,
  .nav-shell { width: min(calc(100% - 32px), var(--shell)); }
  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: var(--header-height);
    min-height: var(--header-height);
    column-gap: 9px;
  }
  .brand { grid-row: 1; grid-column: 1; gap: 7px; font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 -16px;
    padding: 0 16px 14px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .primary-nav.is-open { display: block; }
  .nav-download {
    grid-row: 1;
    grid-column: 3;
    min-width: auto;
    min-height: 36px;
    margin-left: auto;
    padding: 0 9px;
    font-size: 12px;
  }
  .nav-download .icon { width: 15px; height: 15px; }
  .menu-toggle { display: inline-flex; grid-row: 1; grid-column: 4; width: 36px; height: 36px; }
  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 13px;
  }
  .primary-nav a {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 13px;
  }
  .primary-nav a::after { display: none; }
  .hero { padding: 42px 0 46px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: 48px; }
  .hero-title { font-size: 26px; }
  .hero-summary { margin-right: auto; margin-left: auto; font-size: 14px; }
  .boxPanel { grid-template-columns: 1fr; max-width: none; }
  .bpSide { border-right: 0; border-bottom: 1px solid #302B22; }
  .bpSources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routes,
  .screens,
  .reviews,
  .download-cta { padding: 52px 0; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { font-size: 30px; }
  .fours,
  .rgrid { grid-template-columns: 1fr; }
  .covers {
    display: flex;
    width: calc(100% + 16px);
    margin-right: -16px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .covers figure { flex: 0 0 min(70vw, 268px); scroll-snap-align: start; }
  .faq { padding: 52px 0 16px; }
  .official { padding: 22px 0 52px; }
  .disclaimer { font-size: 11px; }
  .to-top { right: 16px; bottom: 136px; width: 40px; height: 40px; }
}

@media (max-width: 380px) {
  .brand span { font-size: 15px; }
  .nav-download span { display: none; }
  .nav-download { width: 36px; padding: 0; }
  .hero h1 { font-size: 42px; }
  .hero-title { font-size: 23px; }
  .primary-nav ul { grid-template-columns: 1fr; }
}
