:root {
  --tv-bg: #ffffff;
  --tv-bg-elevated: #f8f9fd;
  --tv-bg-card: #ffffff;
  --tv-bg-hover: #f0f3fa;
  --tv-bg-code: #f6f8fb;
  --tv-border: #e0e3eb;
  --tv-text: #131722;
  --tv-text-muted: #5f636e;
  --tv-text-dim: #787b86;
  --tv-heading: #131722;
  --tv-blue: #2962ff;
  --tv-blue-hover: #1e53e5;
  --tv-green: #089981;
  --tv-red: #f23645;
  --tv-radius: 8px;
  --tv-radius-lg: 16px;
  --tv-header-h: 64px;
  --tv-max: 1280px;
  --tv-shadow: 0 4px 24px rgba(19, 23, 34, 0.08);
  --tv-shadow-lg: 0 12px 40px rgba(19, 23, 34, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.tv-home {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Trebuchet MS", Roboto, Ubuntu,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tv-text);
  background: var(--tv-bg);
  -webkit-font-smoothing: antialiased;
}

body.tv-site {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Trebuchet MS", Roboto, Ubuntu,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.tv-site .tv-site-main {
  min-height: 50vh;
}

body.tv-site .tv-nav a[aria-current="page"] {
  color: var(--tv-blue);
  background: var(--tv-bg-hover);
}

body.tv-site .toc-sidebar {
  top: calc(var(--tv-header-h) + 1.25rem);
  max-height: calc(100vh - var(--tv-header-h) - 2.5rem);
}

.tv-not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--tv-header-h) - 12rem);
  padding: 3rem 0 4rem;
  text-align: center;
}

.tv-not-found__inner {
  max-width: 32rem;
}

.tv-not-found__code {
  margin: 0 0 0.5rem;
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--tv-blue) 0%, #7c9cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tv-not-found h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--tv-heading);
}

.tv-not-found__lead {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--tv-text-muted);
}

.tv-not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tv-not-found__hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--tv-text-dim);
}

.tv-not-found__hint a {
  color: var(--tv-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tv-btn--lg {
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
}

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

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

.tv-container {
  width: min(100% - 2rem, var(--tv-max));
  margin-inline: auto;
}

/* —— Header —— */

.tv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--tv-header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tv-border);
}

.tv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.tv-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tv-heading);
  flex-shrink: 0;
}

.tv-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.tv-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tv-nav a {
  padding: 0.45rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tv-text);
  border-radius: var(--tv-radius);
  transition: background 0.15s, color 0.15s;
}

.tv-nav a:hover {
  background: var(--tv-bg-hover);
  color: var(--tv-heading);
}

.tv-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.tv-lang-switch {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tv-text-muted);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tv-lang-switch:hover {
  color: var(--tv-blue);
  border-color: var(--tv-blue);
  background: var(--tv-bg-hover);
}

.tv-header--on-hero:not(.tv-header--solid) .tv-lang-switch {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

.tv-header--on-hero:not(.tv-header--solid) .tv-lang-switch:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--tv-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.tv-btn__icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
  flex-shrink: 0;
}

.tv-btn__icon--store {
  width: 1.5rem;
  height: 1.5rem;
}

.tv-btn__icon-group {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.tv-btn--ghost {
  background: transparent;
  color: var(--tv-text);
  border: 1px solid transparent;
}

.tv-btn--ghost:hover {
  background: var(--tv-bg-hover);
  color: var(--tv-heading);
}

.tv-btn--primary {
  background: var(--tv-heading);
  color: #fff;
}

.tv-btn--primary:hover {
  background: #2a2e39;
}

.tv-btn--blue {
  background: var(--tv-blue);
  color: #fff;
}

.tv-btn--blue:hover {
  background: var(--tv-blue-hover);
}

.tv-btn--outline {
  background: #fff;
  color: var(--tv-heading);
  border: 1px solid var(--tv-border);
}

.tv-btn--outline:hover {
  background: var(--tv-bg-hover);
  border-color: #c9cdd6;
}

.tv-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--tv-heading);
  padding: 0.35rem;
  cursor: pointer;
}

.tv-header--on-hero:not(.tv-header--solid) {
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.72) 0%, rgba(8, 8, 12, 0) 100%);
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.tv-header--on-hero:not(.tv-header--solid) .tv-logo,
.tv-header--on-hero:not(.tv-header--solid) .tv-nav a,
.tv-header--on-hero:not(.tv-header--solid) .tv-btn--ghost,
.tv-header--on-hero:not(.tv-header--solid) .tv-menu-toggle {
  color: #fff;
}

.tv-header--on-hero:not(.tv-header--solid) .tv-nav a:hover,
.tv-header--on-hero:not(.tv-header--solid) .tv-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tv-header--on-hero:not(.tv-header--solid) .tv-btn--primary {
  background: #fff;
  color: var(--tv-heading);
}

.tv-header--on-hero.tv-header--solid {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--tv-border);
  box-shadow: var(--tv-shadow);
}

.tv-header--on-hero.tv-header--solid .tv-nav.is-open {
  background: #fff;
}

/* —— Hero —— */

.tv-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  /* 背景从视口顶铺满整屏，导航栏浮在上方 */
  margin-top: calc(-1 * var(--tv-header-h));
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  padding: calc(var(--tv-header-h) + 1rem) 0 1.5rem;
}

.tv-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #0a0a0f;
  background-image: url("../images/hero-bg-mobile.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.tv-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      ellipse 80% 65% at 50% 50%,
      rgba(8, 8, 12, 0.72) 0%,
      rgba(8, 8, 12, 0.38) 50%,
      rgba(8, 8, 12, 0.12) 100%
    );
}

.tv-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.tv-hero__panel {
  position: relative;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(41, 98, 255, 0.06) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: heroPanelIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tv-hero__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(232, 121, 249, 0.55),
    rgba(41, 98, 255, 0.35),
    rgba(255, 255, 255, 0.08)
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  opacity: 0.85;
}

.tv-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  padding: 0.38rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(232, 121, 249, 0.14);
  border: 1px solid rgba(232, 121, 249, 0.35);
  border-radius: 999px;
  animation: heroFadeUp 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tv-hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e879f9;
  box-shadow: 0 0 12px #e879f9;
  animation: badgePulse 2s ease-in-out infinite;
}

.tv-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 42%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 28px rgba(96, 165, 250, 0.35));
  animation: heroFadeUp 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tv-hero__tagline {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  animation: heroFadeUp 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tv-hero__divider {
  width: min(12rem, 40%);
  height: 2px;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    #e879f9,
    #2962ff,
    transparent
  );
  background-size: 200% 100%;
  animation: dividerShine 3.5s ease-in-out infinite,
    heroFadeUp 0.7s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tv-hero__lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  animation: heroFadeUp 0.7s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tv-hero__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  animation: heroFadeUp 0.7s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tv-hero__features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}

.tv-hero__features li:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(232, 121, 249, 0.35);
}

.tv-hero__feat-icon {
  font-size: 1.25rem;
  line-height: 1;
  color: #e879f9;
  text-shadow: 0 0 16px rgba(232, 121, 249, 0.6);
}

.tv-hero__feat-text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.tv-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  animation: heroFadeUp 0.7s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tv-hero__platforms .tv-btn {
  min-width: 7.25rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.9375rem;
}

.tv-btn--glow {
  background: linear-gradient(135deg, #2962ff 0%, #7c3aed 100%);
  color: #fff;
  padding: 0.72rem 1.65rem;
  font-size: 1rem;
  box-shadow: 0 4px 24px rgba(41, 98, 255, 0.45),
    0 0 40px rgba(124, 58, 237, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tv-btn--glow:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 32px rgba(41, 98, 255, 0.55),
    0 0 48px rgba(124, 58, 237, 0.35);
}

.tv-hero__note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  animation: heroFadeUp 0.7s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tv-hero__note-sep {
  opacity: 0.45;
}

.tv-hero__note a {
  color: #c4b5fd;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 181, 253, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

.tv-hero__note a:hover {
  color: #e9d5ff;
  border-bottom-color: #e9d5ff;
}

@keyframes heroPanelIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badgePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.85);
  }
}

@keyframes dividerShine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-hero__panel,
  .tv-hero__badge,
  .tv-hero__title,
  .tv-hero__tagline,
  .tv-hero__divider,
  .tv-hero__lead,
  .tv-hero__features,
  .tv-hero__cta,
  .tv-hero__note {
    animation: none;
  }

  .tv-hero__badge-dot {
    animation: none;
  }

  .tv-hero__divider {
    animation: none;
  }
}

.tv-btn--outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.tv-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 768px) {
  .tv-hero {
    padding: calc(var(--tv-header-h) + 1.25rem) 0 2rem;
  }

  .tv-hero__bg {
    background-image: url("../images/hero-bg-desktop.png");
    background-position: center center;
  }

  .tv-hero__panel {
    max-width: 46rem;
  }
}

@media (max-width: 767px) {
  .tv-hero__overlay {
    background: radial-gradient(
      ellipse 100% 70% at 50% 55%,
      rgba(8, 8, 12, 0.78) 0%,
      rgba(8, 8, 12, 0.4) 55%,
      rgba(8, 8, 12, 0.15) 100%
    );
  }

  .tv-hero__features {
    grid-template-columns: 1fr;
  }

  .tv-hero__features li {
    flex-direction: row;
    text-align: left;
    padding: 0.85rem 1rem;
  }

  .tv-hero__feat-icon {
    flex-shrink: 0;
  }
}

/* —— Stats band —— */

.tv-stats {
  padding: 3.5rem 0;
  text-align: center;
  border-top: 1px solid var(--tv-border);
  border-bottom: 1px solid var(--tv-border);
  background: var(--tv-bg-elevated);
}

.tv-stats h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--tv-heading);
}

.tv-stats p {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  color: var(--tv-text-muted);
  font-size: 1.0625rem;
}

.tv-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tv-stat {
  padding: 1.25rem;
}

.tv-stat strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--tv-heading);
}

.tv-stat span {
  font-size: 0.875rem;
  color: var(--tv-text-muted);
}

/* —— Section common —— */

.tv-section {
  padding: 4.5rem 0;
}

.tv-section--dark {
  background: var(--tv-bg);
}

.tv-section--elevated {
  background: var(--tv-bg-elevated);
}

.tv-section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.tv-section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  color: var(--tv-heading);
}

.tv-section__head p {
  margin: 0;
  color: var(--tv-text-muted);
  font-size: 1.0625rem;
}

/* —— Feature cards —— */

.tv-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tv-feature {
  padding: 1.75rem 1.5rem;
  background: var(--tv-bg-card);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  box-shadow: var(--tv-shadow);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.tv-feature:hover {
  border-color: rgba(41, 98, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--tv-shadow-lg);
}

.tv-feature__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(41, 98, 255, 0.12);
  border-radius: 12px;
  color: var(--tv-blue);
}

.tv-feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tv-heading);
}

.tv-feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--tv-text-muted);
  line-height: 1.6;
}

/* —— Markets —— */

.tv-markets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tv-market {
  padding: 1.5rem 1.25rem;
  background: var(--tv-bg-card);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  text-align: center;
  box-shadow: var(--tv-shadow);
}

.tv-market__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.tv-market h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tv-heading);
}

.tv-market p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--tv-text-muted);
}

/* —— Idea cards (community style) —— */

.tv-ideas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tv-idea {
  padding: 1.25rem;
  background: var(--tv-bg-card);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  box-shadow: var(--tv-shadow);
}

.tv-idea__tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
}

.tv-idea__tag--long {
  background: rgba(8, 153, 129, 0.15);
  color: var(--tv-green);
}

.tv-idea__tag--short {
  background: rgba(242, 54, 69, 0.15);
  color: var(--tv-red);
}

.tv-idea h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tv-heading);
  line-height: 1.4;
}

.tv-idea p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--tv-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Split feature —— */

.tv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tv-split__visual {
  background: var(--tv-bg-code);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  padding: 1.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tv-code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #3d4451;
}

.tv-code-block .kw {
  color: #0550ae;
}

.tv-code-block .fn {
  color: #8250df;
}

.tv-code-block .str {
  color: #0a7f5a;
}

.tv-code-block .cm {
  color: #8b949e;
}

.tv-split h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--tv-heading);
}

.tv-split p {
  margin: 0 0 1.5rem;
  color: var(--tv-text-muted);
  line-height: 1.65;
}

.tv-checklist {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.tv-checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.9375rem;
  color: var(--tv-text);
}

.tv-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tv-green);
  font-weight: 700;
}

/* —— Download CTA (官网风格) —— */

.tv-download {
  padding: 4rem 0 4.5rem;
  background: linear-gradient(180deg, var(--tv-bg-elevated) 0%, var(--tv-bg) 100%);
  border-top: 1px solid var(--tv-border);
}

/* 下载特性：图片/视频 + 文案 + 按钮融合单卡 */
.tv-download__card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: var(--tv-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #0c0e14 0%, #151a28 48%, #0f1219 100%);
  box-shadow: var(--tv-shadow-lg);
}

.tv-download__card--reverse {
  grid-template-columns: 1fr 1.15fr;
}

.tv-download__card--mobile {
  grid-template-columns: minmax(240px, 340px) 1fr;
  overflow: visible;
}

.tv-download__card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: radial-gradient(
    ellipse 90% 80% at 50% 40%,
    rgba(41, 98, 255, 0.14) 0%,
    transparent 70%
  );
}

.tv-download__card-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tv-download__card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-download__card--reverse .tv-download__card-body {
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-download__label {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}

.tv-download__label--light {
  color: #93c5fd;
  background: rgba(41, 98, 255, 0.15);
  border: 1px solid rgba(41, 98, 255, 0.28);
}

.tv-download__card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.tv-download__card-desc {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.tv-download__card .tv-btn--glow {
  align-self: flex-start;
}

.tv-download__desktop-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tv-download__card--mobile .tv-download__video {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  max-height: min(72vh, 580px);
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tv-download__card--mobile .tv-download__card-media {
  align-items: center;
  overflow: visible;
}

.tv-download__card--mobile .tv-download__store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tv-btn--store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 158px;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  color: #131722;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tv-btn--store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.tv-btn--store-google {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.tv-btn--store-google:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tv-btn__store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.tv-btn__store-text small {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.tv-btn__store-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
}

.tv-download__video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.tv-download__store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tv-download__box {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--tv-bg-card);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  box-shadow: var(--tv-shadow-lg);
}

.tv-download__box h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--tv-heading);
}

.tv-download__box > p {
  margin: 0 auto 2rem;
  max-width: 32rem;
  color: var(--tv-text-muted);
}

.tv-download__platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tv-download__platforms .tv-btn {
  min-width: 148px;
  padding: 0.75rem 1.25rem;
}

.tv-download__footnote {
  margin: 0;
  font-size: 0.75rem;
  color: var(--tv-text-dim);
  line-height: 1.6;
}

.tv-download__footnote a {
  color: var(--tv-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Footer —— */

.tv-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--tv-border);
  background: var(--tv-bg);
}

.tv-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tv-footer__brand p {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--tv-text-muted);
  line-height: 1.6;
  max-width: 18rem;
}

.tv-footer__col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tv-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tv-footer__col li {
  margin-bottom: 0.45rem;
}

.tv-footer__col a {
  font-size: 0.875rem;
  color: var(--tv-text);
  transition: color 0.15s;
}

.tv-footer__col a:hover {
  color: var(--tv-blue);
}

.tv-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--tv-text);
}

.tv-footer__contact a {
  color: var(--tv-text);
  word-break: break-all;
  transition: color 0.15s;
}

.tv-footer__contact a:hover {
  color: var(--tv-blue);
}

.tv-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tv-border);
  font-size: 0.75rem;
  color: var(--tv-text-dim);
}

.tv-footer__bottom a {
  color: var(--tv-text-muted);
}

.tv-footer__bottom a:hover {
  color: var(--tv-blue);
}

.tv-faq {
  padding: 4rem 0 4.5rem;
}

.tv-faq__inner {
  max-width: 44rem;
}

.tv-faq__intro h2,
.tv-faq__block > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--tv-heading);
}

.tv-faq__intro p,
.tv-faq__block > p {
  margin: 0 0 0.9rem;
  line-height: 1.75;
  color: var(--tv-text-muted);
}

.tv-faq__block {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--tv-border);
}

.tv-faq__item {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--tv-border);
}

.tv-faq__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tv-faq__item h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tv-heading);
}

.tv-faq__item p {
  margin: 0 0 0.75rem;
  line-height: 1.75;
  color: var(--tv-text-muted);
}

.tv-faq__item p:last-child {
  margin-bottom: 0;
}

.tv-faq__item ul,
.tv-faq__block ul {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
  color: var(--tv-text-muted);
  line-height: 1.7;
}

.tv-faq__item li,
.tv-faq__block li {
  margin-bottom: 0.35rem;
}

.tv-faq__steps {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--tv-text-muted);
  line-height: 1.75;
}

.tv-faq__steps li {
  margin-bottom: 0.45rem;
}

.tv-faq__table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.tv-faq__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--tv-bg-card);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  overflow: hidden;
  font-size: 0.9375rem;
  box-shadow: var(--tv-shadow);
}

.tv-faq__table th,
.tv-faq__table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--tv-border);
}

.tv-faq__table th {
  background: var(--tv-bg-elevated);
  color: var(--tv-heading);
  font-weight: 700;
}

.tv-faq__table tr:last-child td {
  border-bottom: none;
}

.tv-faq__table td:first-child {
  font-weight: 600;
  color: var(--tv-heading);
  white-space: nowrap;
}

.tv-faq__summary {
  margin-top: 2.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--tv-bg-card);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  box-shadow: var(--tv-shadow);
  text-align: center;
}

.tv-faq__summary p {
  margin: 0 0 1.25rem;
  line-height: 1.75;
  color: var(--tv-text-muted);
}

.tv-faq__summary strong {
  color: var(--tv-heading);
}

.tv-back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--tv-border);
  border-radius: 999px;
  background: var(--tv-bg-card);
  color: var(--tv-heading);
  box-shadow: var(--tv-shadow-lg);
  transition: opacity 0.2s, transform 0.2s, color 0.15s, border-color 0.15s,
    background 0.15s;
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
}

.tv-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tv-back-to-top:hover,
.tv-back-to-top:focus-visible {
  color: var(--tv-blue);
  border-color: var(--tv-blue);
  background: var(--tv-bg-elevated);
  outline: none;
}

/* —— Responsive —— */

@media (max-width: 1024px) {
  .tv-split,
  .tv-download__card,
  .tv-download__card--reverse,
  .tv-download__card--mobile {
    grid-template-columns: 1fr;
  }

  .tv-download__card-body {
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    text-align: center;
    align-items: center;
  }

  .tv-download__card .tv-btn--glow {
    align-self: center;
  }

  .tv-download__desktop-btns {
    justify-content: center;
  }

  .tv-download__card-media {
    order: -1;
  }

  .tv-download__card--mobile .tv-download__store-btns {
    justify-content: center;
  }

  .tv-features,
  .tv-ideas {
    grid-template-columns: 1fr 1fr;
  }

  .tv-markets {
    grid-template-columns: repeat(2, 1fr);
  }

  .tv-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tv-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .tv-nav,
  .tv-header__actions .tv-btn--ghost {
    display: none;
  }

  .tv-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--tv-header-h);
    left: 0;
    right: 0;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid var(--tv-border);
    box-shadow: var(--tv-shadow);
  }

  .tv-header--on-hero:not(.tv-header--solid) .tv-nav.is-open {
    background: rgba(12, 12, 18, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .tv-header--on-hero:not(.tv-header--solid) .tv-nav.is-open a {
    color: #fff;
  }

  .tv-menu-toggle {
    display: block;
  }

  .tv-header__inner {
    position: relative;
  }

  .tv-features,
  .tv-ideas,
  .tv-markets,
  .tv-stats__grid {
    grid-template-columns: 1fr;
  }

  .tv-footer__grid {
    grid-template-columns: 1fr;
  }
}
