:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-dark: #0f172a;
  --text: #0f172a;
  --text-muted: #475569;
  --text-on-dark: #f8fafc;
  --primary: #0258c8;
  --primary-hover: #03459e;
  --accent: #0d7490;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --focus-ring: #d97706;
  --radius: 12px;
  --radius-sm: 8px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --max-width: 1120px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    transition-duration: 0.01ms;
  }
  .scene-mist,
  .tower-ripple,
  .signal-packets,
  .signal-trails,
  .signal-arrivals {
    display: none;
  }
  .peak-node,
  .warm-lamp,
  .tower-aviation-light {
    animation: none;
  }
}

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

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

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  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 1.25rem;
}

section[id],
h2[id],
h3[id],
article[id] {
  scroll-margin-top: 84px;
}

/* 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-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.5rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-link:hover .brand-name {
  color: var(--primary);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 88, 200, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color 0.15s ease;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

.site-nav a.nav-cta {
  background: var(--primary);
  color: #ffffff;
  padding: 0.5rem 1rem;
}

.site-nav a.nav-cta:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

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

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: #eff6ff;
  color: var(--primary-hover);
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.25;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.hero-media {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  background: #0b162c;
}

.hero-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
}

.hero-scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* 04. 山谷云雾漂移 */
.scene-mist {
  position: absolute;
  left: -18%;
  width: 136%;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.scene-mist-far {
  top: 38%;
  height: 24%;
  opacity: 0.34;
  background:
    radial-gradient(ellipse 32% 48% at 28% 58%, rgba(186, 230, 253, 0.42), transparent 72%),
    radial-gradient(ellipse 36% 52% at 64% 48%, rgba(224, 242, 254, 0.36), transparent 74%),
    radial-gradient(ellipse 26% 40% at 86% 52%, rgba(186, 230, 253, 0.28), transparent 70%);
  animation: mistDriftFar 20s ease-in-out infinite alternate;
}

.scene-mist-near {
  top: 52%;
  height: 26%;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 36% 54% at 18% 60%, rgba(224, 242, 254, 0.48), transparent 72%),
    radial-gradient(ellipse 34% 48% at 50% 42%, rgba(186, 230, 253, 0.38), transparent 70%);
  animation: mistDriftNear 22s ease-in-out infinite alternate-reverse;
}

@keyframes mistDriftFar {
  0% { transform: translate3d(-4%, 0, 0); }
  100% { transform: translate3d(4%, 0, 0); }
}

@keyframes mistDriftNear {
  0% { transform: translate3d(-5%, 1%, 0); }
  100% { transform: translate3d(5%, -1%, 0); }
}

/* 06. 基站建筑暖白灯光 */
.scene-warm-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.warm-lamp {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 240, 205, 0.88) 0%, rgba(255, 206, 130, 0.45) 42%, rgba(255, 190, 100, 0) 75%);
  animation: warmLightBreath 5s ease-in-out infinite;
}

.warm-lamp-door {
  left: 68.17%;
  top: 54.44%;
  width: 6.5%;
  aspect-ratio: 1;
}

.warm-lamp-post1 {
  left: 55.17%;
  top: 63.78%;
  width: 3.6%;
  aspect-ratio: 1;
  animation-delay: -1.1s;
}

.warm-lamp-post2 {
  left: 60.92%;
  top: 58.67%;
  width: 3.0%;
  aspect-ratio: 1;
  animation-delay: -2.2s;
}

.warm-lamp-post3 {
  left: 80.17%;
  top: 67.56%;
  width: 4.0%;
  aspect-ratio: 1;
  animation-delay: -3.3s;
}

.warm-lamp-post4 {
  left: 97.08%;
  top: 60.22%;
  width: 3.2%;
  aspect-ratio: 1;
  animation-delay: -4.1s;
}

@keyframes warmLightBreath {
  0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 0.78; transform: translate(-50%, -50%) scale(1.08); }
}

/* 02. 电讯塔顶部扩散波纹 & 05. 红色航空警示灯 */
.tower-beacon-anchor {
  position: absolute;
  left: 84.58%;
  top: 9.33%;
  width: 24%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tower-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(125, 211, 252, 0.85);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45), inset 0 0 10px rgba(186, 230, 253, 0.28);
  opacity: 0;
  will-change: transform, opacity;
  animation: towerRipple 3s cubic-bezier(0.2, 0.65, 0.35, 1) infinite;
}

.ripple-1 { animation-delay: 0s; }
.ripple-2 { animation-delay: 1s; }
.ripple-3 { animation-delay: 2s; }

@keyframes towerRipple {
  0% {
    transform: scale(0.12);
    opacity: 0.82;
  }
  70% {
    opacity: 0.28;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.tower-aviation-light {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(5px, 0.65vw, 8px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff5f5 0%, #ef4444 45%, rgba(239, 68, 68, 0) 75%);
  box-shadow: 0 0 10px 3px rgba(239, 68, 68, 0.82);
  animation: aviationBeacon 2s ease-in-out infinite;
}

@keyframes aviationBeacon {
  0%, 100% { opacity: 0.22; transform: translate(-50%, -50%) scale(0.82); }
  25%, 45% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
  70% { opacity: 0.28; transform: translate(-50%, -50%) scale(0.88); }
}

/* 03. 山峰网络节点呼吸 */
.scene-peaks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.peak-node {
  position: absolute;
  width: 4.4%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #bae6fd 26%, rgba(56, 189, 248, 0.55) 48%, rgba(14, 165, 233, 0) 76%);
  animation: peakBreath 4s ease-in-out infinite;
}

.peak-node-1 { left: 69.00%; top: 38.67%; animation-delay: -0.4s; }
.peak-node-2 { left: 48.17%; top: 44.00%; width: 5.2%; animation-delay: -1.6s; }
.peak-node-3 { left: 48.17%; top: 33.78%; width: 4.0%; animation-delay: -2.4s; }
.peak-node-4 { left: 17.17%; top: 47.11%; width: 4.8%; animation-delay: -3.1s; }
.peak-node-5 { left: 6.83%; top: 45.78%; width: 3.8%; animation-delay: -0.9s; }

@keyframes peakBreath {
  0%, 100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.88);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.22);
  }
}

/* 01. SVG 跨山信号线路图层 */
.scene-signals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

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

.section-header {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.3;
}

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

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.grid-2 > * {
  min-width: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-img {
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  border: 1px solid var(--border-light);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

/* 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-sm);
}

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

.pricing-table caption {
  padding: 1rem 1.25rem;
  font-weight: 700;
  text-align: left;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.pricing-table thead th {
  background: #eff6ff;
  color: var(--text);
  font-weight: 700;
}

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

.price-tag {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.table-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.table-cta:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.pricing-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Streaming & AI list */
.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.feature-list li {
  margin-bottom: 0.6rem;
  color: var(--text);
}

/* Reviews */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  background: #fef3c7;
  color: #78350f;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
}

.review-meta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 0.95rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
}

.faq-answer p {
  margin: 0;
}

/* Subpages & Articles */
.page-banner {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.page-banner h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.3;
}

.page-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.article-layout {
  max-width: 820px;
  margin: 0 auto;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.35rem;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.12rem;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 1rem;
  color: var(--text);
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
}

.related-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.related-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.related-links {
  margin: 0;
  padding-left: 1.25rem;
}

.related-links li {
  margin-bottom: 0.45rem;
}

/* Footer (strictly 4 headings opening separate pages) */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.footer-col h2 {
  margin: 0;
  font-size: 1.05rem;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    width: 100%;
    gap: 0.25rem 0.5rem;
  }
  .hero {
    padding: 2.25rem 0 2rem;
  }
  .section {
    padding: 2.5rem 0;
  }
  .article-body {
    padding: 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .btn-group .btn {
    width: 100%;
  }
}
