:root {
  --bg: #000000;
  --bg-muted: #050505;
  --bg-hero: #000000;
  --surface: #0b0b0c;
  --surface-dark: #000000;
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --text-on-dark: #f8fafc;
  --text-muted-on-dark: #cbd5e1;
  --primary: #0369a1;
  --primary-hover: #075985;
  --link: #38bdf8;
  --link-hover: #7dd3fc;
  --primary-soft: #082f49;
  --primary-soft-text: #bae6fd;
  --border: #1f2937;
  --border-strong: #374151;
  --success-bg: #052e16;
  --success-text: #86efac;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.65);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --container-max: 1140px;
  --header-offset: 88px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

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

:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

/* 晴空蓝动态渐变标题 */
h1,
.section h2,
.article-sidebar h2,
.card h2,
.article-body h2,
.article-body h3,
.card h3,
.card h3 > a {
  background-image: linear-gradient(115deg, #e0f2fe 0%, #7dd3fc 25%, #38bdf8 50%, #0ea5e9 75%, #7dd3fc 90%, #e0f2fe 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sky-heading-flow 7s ease-in-out infinite alternate;
}

.card h3 > a {
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.55);
}

.card h3 > a:hover {
  text-decoration-color: #bae6fd;
}

@keyframes sky-heading-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

[id] {
  scroll-margin-top: var(--header-offset);
}

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

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

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

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

/* Sections */
.section {
  padding: var(--space-6) 0;
}

.section-muted {
  background-color: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-4);
}

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

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

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-hero) 0%, var(--bg) 100%);
  padding: var(--space-5) 0 var(--space-6);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-4);
  align-items: center;
}

.hero-grid > *,
.article-layout > *,
.grid-3 > *,
.grid-2 > *,
.footer-grid > * {
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--primary-soft);
  color: var(--primary-soft-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.25;
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 1.075rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.hero-visual {
  background: #031b4e;
  border: 1px solid rgba(0, 207, 255, 0.38);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 0 30px rgba(0, 123, 255, 0.24), var(--shadow-md);
  min-width: 0;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: auto;
}

.hub-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 576;
  overflow: hidden;
  border-radius: inherit;
}

.hub-base {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hub-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* 1. 通讯塔信号波纹 (4s 交替扩散淡出) */
.hub-ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: hub-ripple-wave 4s ease-out infinite;
}

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

.hub-spire-core {
  animation: hub-breathe 2.6s ease-in-out infinite;
}

@keyframes hub-ripple-wave {
  0% {
    transform: scale(0.16);
    opacity: 0.85;
  }
  70% {
    opacity: 0.35;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

/* 2. 六条设备连接线路双向错峰流光 (3~5s) */
.hub-stream {
  stroke-dasharray: 22 258;
  opacity: 0.72;
  animation: hub-data-flow 3.8s linear infinite;
}

.hub-stream-1  { animation-duration: 3.4s; animation-delay: -0.4s; }
.hub-stream-1b { stroke-dasharray: 14 266; opacity: 0.6; animation-duration: 4.1s; animation-delay: -2.1s; }
.hub-stream-2  { animation-duration: 4.2s; animation-delay: -1.5s; }
.hub-stream-2b { stroke-dasharray: 14 266; opacity: 0.6; animation-duration: 3.5s; animation-delay: -0.8s; }
.hub-stream-3  { animation-duration: 3.7s; animation-delay: -2.6s; }
.hub-stream-3b { stroke-dasharray: 14 266; opacity: 0.6; animation-duration: 4.6s; animation-delay: -1.2s; }
.hub-stream-4  { animation-duration: 4.4s; animation-delay: -0.9s; }
.hub-stream-4b { stroke-dasharray: 14 266; opacity: 0.6; animation-duration: 3.6s; animation-delay: -2.9s; }
.hub-stream-5  { animation-duration: 3.3s; animation-delay: -2.0s; }
.hub-stream-5b { stroke-dasharray: 14 266; opacity: 0.6; animation-duration: 4.5s; animation-delay: -0.3s; }
.hub-stream-6  { animation-duration: 4.8s; animation-delay: -1.7s; }
.hub-stream-6b { stroke-dasharray: 14 266; opacity: 0.6; animation-duration: 3.9s; animation-delay: -3.2s; }

@keyframes hub-data-flow {
  from { stroke-dashoffset: 280; }
  to   { stroke-dashoffset: 0; }
}

/* 3. 蓝色数字地球极慢自转 (90s) 与节点呼吸 */
.hub-globe-spin {
  transform-origin: 518px 402px;
  animation: hub-spin 90s linear infinite;
}

.hub-node {
  animation: hub-breathe 4.6s ease-in-out infinite;
}

.hub-node-2 { animation-delay: -0.8s; animation-duration: 5.2s; }
.hub-node-3 { animation-delay: -1.9s; animation-duration: 4.1s; }
.hub-node-4 { animation-delay: -2.7s; animation-duration: 5.8s; }
.hub-node-5 { animation-delay: -1.3s; animation-duration: 4.9s; }
.hub-node-6 { animation-delay: -3.4s; animation-duration: 5.4s; }
.hub-node-7 { animation-delay: -0.5s; animation-duration: 4.4s; }
.hub-node-8 { animation-delay: -2.2s; animation-duration: 5.1s; }

/* 4. 六组设备轻悬浮光晕 (6~8s) 与能量底座旋转 */
.hub-device-aura {
  animation: hub-float-aura 6.6s ease-in-out infinite;
}

.hub-aura-1 { animation-duration: 6.2s; animation-delay: -0.4s; }
.hub-aura-2 { animation-duration: 7.4s; animation-delay: -2.1s; }
.hub-aura-3 { animation-duration: 6.8s; animation-delay: -4.2s; }
.hub-aura-4 { animation-duration: 7.6s; animation-delay: -1.5s; }
.hub-aura-5 { animation-duration: 6.4s; animation-delay: -3.3s; }
.hub-aura-6 { animation-duration: 7.8s; animation-delay: -5.1s; }

.hub-ring-spin {
  transform-origin: 0 0;
  opacity: 0.7;
  animation: hub-spin 14s linear infinite;
}

.hub-ring-2 { animation-duration: 17s; animation-direction: reverse; }
.hub-ring-3 { animation-duration: 15s; animation-delay: -4s; }
.hub-ring-4 { animation-duration: 16s; animation-direction: reverse; animation-delay: -2s; }
.hub-ring-5 { animation-duration: 13s; animation-delay: -6s; }
.hub-ring-6 { animation-duration: 18s; animation-direction: reverse; animation-delay: -3s; }

@keyframes hub-float-aura {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-5px);
    opacity: 0.8;
  }
}

/* 5. 云层漂移、塔身能量与建筑平台呼吸光效 */
.hub-tower-flow {
  opacity: 0.45;
  animation: hub-tower-pulse 4.4s ease-in-out infinite;
}

.hub-platform-glow {
  opacity: 0.2;
  animation: hub-breathe 5.6s ease-in-out infinite;
}

.hub-mist {
  animation: hub-mist-drift 26s ease-in-out infinite alternate;
}

.hub-mist-2 {
  animation-duration: 32s;
  animation-direction: alternate-reverse;
}

@keyframes hub-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes hub-breathe {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.78; }
}

@keyframes hub-tower-pulse {
  0%, 100% {
    transform: translateY(10px);
    opacity: 0.18;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.62;
  }
}

@keyframes hub-mist-drift {
  from { transform: translateX(-22px); }
  to   { transform: translateX(22px); }
}

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

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

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

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

.btn-secondary:hover {
  background-color: var(--primary-soft);
  color: var(--primary-soft-text);
  border-color: var(--link-hover);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

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

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.tag-item {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
}

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

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

.pricing-table caption {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  background-color: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

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

.pricing-table thead th {
  background-color: var(--bg-muted);
  font-size: 0.95rem;
  color: var(--text);
}

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

.plan-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: var(--success-bg);
  color: var(--success-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.price-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--link);
  white-space: nowrap;
}

.pricing-table .btn {
  white-space: nowrap;
}

.table-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Reviews */
.rating-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-3);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-soft);
  color: var(--primary-soft-text);
  font-weight: 600;
}

.review-meta {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* FAQ using native details/summary */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--link);
  flex-shrink: 0;
}

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

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.faq-answer p {
  margin: 14px 0 0;
}

/* Knowledge Hub & Articles */
.page-hero {
  background-color: var(--bg-hero);
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0 var(--space-4);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.3;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-strong);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-4);
  align-items: start;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-wrap: anywhere;
}

.article-body h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
  line-height: 1.35;
}

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

.article-body h3 {
  margin: 20px 0 8px;
  font-size: 1.12rem;
}

.article-body p {
  margin: 0 0 16px;
  color: var(--text);
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-sidebar {
  display: grid;
  gap: var(--space-3);
}

.sidebar-box {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-box h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sidebar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 600;
}

.meta-line {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cta-banner {
  margin-top: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  border: 1px solid #0369a1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-banner p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.sitemap-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.sitemap-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Footer: strictly 4 titles opening new pages */
.site-footer {
  background-color: #000000;
  color: var(--text-on-dark);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}

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

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

.footer-heading a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.footer-heading a:hover {
  background-color: var(--primary);
  border-color: #38bdf8;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .nav-list {
    width: 100%;
  }

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

  .section {
    padding: var(--space-4) 0;
  }

  .article-body {
    padding: 20px;
  }

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

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

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

  .hub-ripple,
  .hub-stream,
  .hub-tower-flow,
  .hub-mist,
  .hub-device-aura,
  .hub-platform-glow {
    opacity: 0;
  }
}
