/* ===================================================================
   云图高速 (yuntugaosu.mom) - 赛博禅意与月夜霓虹设计系统 (Cyber-Zen Lunar UI)
   排版创新：环形重力中枢 Hero + 画卷式叙事交替排版 + 环形跃迁测速仪 + 月相徽章档案
   背景创新：月环星轨 SVG + 数字樱花落瓣动效 + 纳米级日式几何织网
   =================================================================== */

:root {
  --bg-primary: #07070d;
  --bg-surface: #0e0d19;
  --bg-card: rgba(22, 19, 38, 0.7);
  --border-glow: rgba(236, 72, 153, 0.25);
  --border-subtle: rgba(192, 132, 252, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-pink: #ec4899;
  --accent-light-pink: #f472b6;
  --accent-purple: #a855f7;
  --accent-cyan: #38bdf8;
  --gradient-lunar: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.68;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 80% 15%, rgba(236, 72, 153, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 20% 75%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    linear-gradient(rgba(192, 132, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 132, 252, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

/* Background Celestial Moon SVG in absolute fixed layer */
.celestial-bg {
  position: absolute;
  top: 0;
  right: -5%;
  width: 700px;
  height: 700px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 7, 13, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}
.brand-logo svg {
  width: 36px;
  height: 36px;
}
.brand-logo span.badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent-light-pink);
  border: 1px solid rgba(236, 72, 153, 0.3);
  font-weight: normal;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
nav.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--accent-light-pink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--gradient-lunar);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
  transition: all 0.25s ease;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(236, 72, 153, 0.6);
}

/* ===================================================================
   HERO: Radial Gravitational Hub (环形重力中枢)
   =================================================================== */
.hero-hub {
  padding: 70px 0 90px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge-zen {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 6px;
  font-size: 0.82rem;
  color: #d8b4fe;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}
.hero-badge-zen::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 8px var(--accent-pink);
}
.hero-title {
  font-size: 2.75rem;
  line-height: 1.22;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-title span.glow-pink {
  color: var(--accent-light-pink);
  text-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.btn-primary-lunar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--gradient-lunar);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 24px rgba(236, 72, 153, 0.35);
  transition: all 0.25s ease;
}
.btn-primary-lunar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.55);
}
.btn-secondary-lunar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glow);
  color: #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.25s ease;
}
.btn-secondary-lunar:hover {
  background: rgba(236, 72, 153, 0.1);
  color: #fff;
}

.hero-stats-bar {
  display: flex;
  gap: 28px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}
.hero-stat-item h4 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
}
.hero-stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Gravitational Orbital System Visualizer */
.orbital-hub-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(192, 132, 252, 0.2);
  pointer-events: none;
}
.orbit-ring.ring-1 { width: 90%; height: 90%; animation: spinOrbit 45s linear infinite; }
.orbit-ring.ring-2 { width: 64%; height: 64%; animation: spinOrbitReverse 30s linear infinite; border-color: rgba(236, 72, 153, 0.25); }
.orbit-ring.ring-3 { width: 40%; height: 40%; }

@keyframes spinOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spinOrbitReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.lunar-central-core {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #f472b6 0%, #a855f7 60%, #4c1d95 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(236, 72, 153, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.4);
  z-index: 10;
  text-align: center;
}
.lunar-central-core span.core-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}
.lunar-central-core span.core-sub {
  font-size: 0.65rem;
  color: #fdf4ff;
  opacity: 0.85;
}

/* Satellite Node Chips */
.orbit-node {
  position: absolute;
  background: rgba(14, 13, 25, 0.9);
  border: 1px solid var(--border-glow);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  z-index: 12;
  transition: transform 0.3s ease;
}
.orbit-node:hover {
  transform: scale(1.06);
  border-color: var(--accent-light-pink);
}
.orbit-node span.node-ping {
  font-size: 0.75rem;
  color: #34d399;
  font-family: monospace;
}
.node-pos-1 { top: 6%; left: 30%; }
.node-pos-2 { top: 38%; right: 0%; }
.node-pos-3 { bottom: 8%; right: 26%; }
.node-pos-4 { top: 58%; left: 0%; }

/* ===================================================================
   SECTION 2: Alternating Editorial Storytelling Showcase (画卷式叙事排版)
   =================================================================== */
.section-editorial {
  padding: 90px 0;
  position: relative;
}
.section-zen-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.zen-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent-light-pink);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.section-zen-header h2 {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.editorial-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}
.editorial-block.reversed {
  direction: rtl;
}
.editorial-block.reversed > * {
  direction: ltr;
}

.editorial-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.4) 0%, rgba(236, 72, 153, 0.05) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}
.editorial-block h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}
.editorial-block p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 0.98rem;
}
.editorial-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.editorial-tags span {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.editorial-visual-frame {
  background: #090812;
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ===================================================================
   SECTION 3: Lunar Warp Gate Latency Calculator (月影跃迁节点测速器)
   =================================================================== */
.calc-section {
  padding: 80px 0;
  position: relative;
}
.calc-box {
  background: linear-gradient(145deg, rgba(22, 19, 38, 0.9) 0%, rgba(12, 11, 23, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.form-group-lunar {
  margin-bottom: 22px;
}
.form-group-lunar label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.select-lunar, .slider-lunar {
  width: 100%;
  padding: 12px 16px;
  background: rgba(7, 7, 13, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.select-lunar:focus {
  border-color: var(--accent-pink);
}

.calc-gauge-result {
  text-align: center;
  background: rgba(7, 7, 13, 0.6);
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 20px;
  padding: 32px 24px;
}
.radial-progress-svg {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  transform: rotate(-90deg);
}
.gauge-metric {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-light-pink);
  line-height: 1;
  margin-bottom: 6px;
}
.gauge-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================================================================
   SECTION 4: Moonphase Dossier Strip (月相档案知识库)
   =================================================================== */
.articles-section {
  padding: 80px 0;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-dossier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.article-dossier-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light-pink);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
}
.moonphase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #d8b4fe;
  margin-bottom: 14px;
}
.article-dossier-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.45;
}
.article-dossier-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.article-footer-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--accent-light-pink);
  font-weight: 600;
}

/* ===================================================================
   SECTION 5: Zen Accordion FAQ (禅意折叠问答)
   =================================================================== */
.faq-section {
  padding: 80px 0 100px;
}
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}
.faq-item-zen {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item-zen:hover {
  border-color: rgba(236, 72, 153, 0.4);
}
.faq-question-zen {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--accent-light-pink);
  transition: transform 0.25s ease;
}
.faq-answer-zen {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}
.faq-item-zen.active .faq-answer-zen {
  padding-bottom: 20px;
}
.faq-item-zen.active .faq-toggle-icon {
  transform: rotate(45deg);
}

/* ===================================================================
   FOOTER & LEGAL
   =================================================================== */
footer.site-footer {
  background: #040408;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 36px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent-light-pink);
}
.footer-affiliate-note {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.6;
}

/* ===================================================================
   ARTICLE DETAIL STYLES
   =================================================================== */
.article-header {
  padding: 50px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}
.article-meta-row {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  align-items: center;
}
.article-title-detail {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
}
.article-body {
  max-width: 860px;
  margin: 0 auto 60px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #cbd5e1;
}
.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin: 44px 0 18px;
  border-left: 4px solid var(--accent-pink);
  padding-left: 14px;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 28px 0 14px;
}
.article-body p {
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 28px;
}
.article-body li {
  margin-bottom: 10px;
}
.article-body pre {
  background: #090812;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  overflow-x: auto;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.88rem;
  margin-bottom: 24px;
  color: #e2e8f0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  background: rgba(22, 19, 38, 0.4);
  border-radius: 10px;
  overflow: hidden;
}
.article-body th, .article-body td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  font-size: 0.92rem;
}
.article-body th {
  background: rgba(236, 72, 153, 0.12);
  color: #fff;
  font-weight: 600;
}
.callout-box-zen {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.callout-box-zen h4 {
  color: #d8b4fe;
  margin-bottom: 8px;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .editorial-block { grid-template-columns: 1fr; padding: 24px; }
  .editorial-block.reversed { direction: ltr; }
  .calc-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
