:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F4F8FF;
  --surface-dark: #142E56;
  --text: #142E56;
  --text-secondary: #64748B;
  --text-muted: #64748B;
  --accent: #E8F54A;
  --accent-hover: #d8e635;
  --accent-blue: #1D4ED8;
  --accent-soft: #E6F0FF;
  --border: #DCE6F7;
  --success: #047857;
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --header-height: 68px;
  --shadow: 0 4px 20px rgba(20, 46, 86, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-dark);
  color: #ffffff;
  padding: 12px 18px;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand-link {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: #142E56 !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #142E56 !important;
}

/* Sections */
section[id],
h2[id],
h3[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header h2 {
  font-size: 1.85rem;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.3;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #F4F8FF 0%, #E6F0FF 100%);
  color: #142E56;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: #E8F54A;
  color: #142E56;
  border: 1px solid rgba(20, 46, 86, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.35rem;
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: #142E56;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #64748B;
  margin: 0 0 28px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 44px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: #E8F54A;
  color: #142E56;
}

.btn-primary:hover {
  background: #d8e635;
  color: #142E56;
}

.btn-secondary {
  background: #FFFFFF;
  color: #142E56;
  border-color: #142E56;
}

.btn-secondary:hover {
  background: #E6F0FF;
  color: #142E56;
}

.btn-outline {
  background: var(--surface);
  color: #142E56;
  border-color: #142E56;
}

.btn-outline:hover {
  background: #E8F54A;
  color: #142E56;
  border-color: #E8F54A;
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
}

.card-icon {
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Streaming & AI Block */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

/* Pricing Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  text-align: left;
}

tbody th,
.price-tag,
td .btn {
  white-space: nowrap;
}

caption {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th,
td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

thead th {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 700;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

.price-tag {
  font-size: 1.2rem;
  font-weight: 800;
  color: #142E56;
}

.table-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Reviews */
.review-meta {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}

summary {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-blue);
  margin-left: 12px;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 12px 0 0;
  color: var(--text-secondary);
}

/* Article & Subpage Layout */
.page-hero {
  background: var(--surface-dark);
  color: #ffffff;
  padding: 44px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.3;
}

.page-hero p {
  margin: 0;
  color: #cbd5e1;
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #93C5FD;
}

.article-layout {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.article-layout h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.article-layout h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.related-box {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Footer (Strictly 4 Links) */
.site-footer {
  background: var(--surface-dark);
  color: #e2e8f0;
  padding: 40px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: #f8fafc;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-sm);
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.footer-copy {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: #94a3b8;
}

/* Responsive Breakpoints (360, 390, 768, 1440) */
@media (max-width: 960px) {
  .hero-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.95rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    position: static;
  }

  .section {
    padding: 44px 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    gap: 8px;
  }

  .main-nav a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero {
    padding: 44px 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .article-layout {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 1.65rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
