﻿/* ==========================================================================
   xsus 观测站 (Pale Violet Lunar Observatory Theme)
   Design System & Master Stylesheet
   ========================================================================== */

:root {
  /* Palette definitions */
  --bg-primary: #F5F1FC;
  --bg-surface: #FFFFFF;
  --bg-surface-trans: rgba(255, 255, 255, 0.82);
  --bg-surface-elevated: #FAF8FE;
  
  --lavender: #D8CBEF;
  --lavender-light: #ECE5F9;
  --lavender-dark: #B3A0D6;
  
  --ice-blue: #D3E5F7;
  --ice-blue-light: #EBF3FB;
  --ice-blue-dark: #A5C7EC;
  
  --pale-pink: #EED8E6;
  --pale-pink-light: #F7EBF3;
  
  --cream: #FFF1D6;
  --cream-light: #FFF8EB;
  
  --text-main: #41425B;
  --text-muted: #6E708E;
  --text-dim: #989AB6;
  
  --border-fine: rgba(110, 112, 142, 0.16);
  --border-strong: rgba(179, 160, 214, 0.45);
  --border-lavender: #D8CBEF;
  
  --status-success: #3E8560;
  --status-success-bg: #E3F2E9;
  --status-warning: #B87333;
  --status-warning-bg: #FDF3E7;
  --status-alert: #B24C5C;
  --status-alert-bg: #FCECEF;

  /* Typography */
  --font-heading: "Trebuchet MS", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Elevation & Shadows */
  --shadow-subtle: 0 4px 20px rgba(65, 66, 91, 0.05);
  --shadow-card: 0 8px 30px rgba(65, 66, 91, 0.08);
  --shadow-float: 0 16px 40px rgba(65, 66, 91, 0.12);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-round: 9999px;
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.68;
  font-size: 1rem;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 12%, rgba(216, 203, 239, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(211, 229, 247, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 75%, rgba(238, 216, 230, 0.25) 0%, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Monospace text */
.font-mono,
.station-coord,
.badge-code,
.spec-code,
.log-timestamp {
  font-family: var(--font-mono);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

/* Astronomical Decorative Background Elements */
.orbit-contour-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orbit-line {
  position: absolute;
  border: 1px dashed var(--border-fine);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.star-point {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--lavender-dark);
  border-radius: 50%;
  opacity: 0.55;
  box-shadow: 0 0 6px var(--lavender);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-round);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-lavender);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  box-shadow: var(--shadow-subtle);
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--lavender-dark);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Astronomical CTA Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, #E5D9F8 0%, #D3E5F7 100%);
  color: #2F3048;
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid rgba(179, 160, 214, 0.8);
  box-shadow: 0 4px 18px rgba(179, 160, 214, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(179, 160, 214, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #ECE2FD 0%, #DFEEFD 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-round);
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border-lavender);
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--lavender-dark);
  transform: translateY(-1px);
}

.btn-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ==========================================================================
   NAVIGATION
   Desktop: Placed at the bottom edge of first viewport; sticks as you scroll.
   Mobile: Placed at the top of the screen.
   ========================================================================== */
.site-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(245, 241, 252, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-fine);
  border-bottom: 1px solid var(--border-fine);
  z-index: 100;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.site-nav.is-sticky {
  position: fixed;
  top: 0;
  bottom: auto;
  box-shadow: 0 4px 20px rgba(65, 66, 91, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.brand-telemetry-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--ice-blue);
  color: #2D4C6E;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-main);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--lavender-dark);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn-cta {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--text-main);
}

/* ==========================================================================
   HERO / FIRST VIEWPORT
   Centered title, massive circular lunar game porthole, CTA beneath
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 40px;
  padding-bottom: calc(var(--nav-height) + 30px);
  text-align: center;
  overflow: hidden;
}

.hero-header {
  max-width: 860px;
  margin: 0 auto 24px auto;
  z-index: 10;
}

.hero-station-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 4px 12px;
  background-color: var(--bg-surface-trans);
  border: 1px solid var(--border-lavender);
  border-radius: var(--radius-round);
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-station-id .beacon-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--status-success);
  border-radius: 50%;
  animation: beaconPulse 2s infinite ease-in-out;
}

@keyframes beaconPulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(62, 133, 96, 0.4); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(62, 133, 96, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(62, 133, 96, 0); }
}

.hero-title {
  font-size: 3.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Massive Circular Lunar Game Porthole */
.lunar-porthole-wrapper {
  position: relative;
  margin: 12px auto 24px auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lunar-porthole-ring {
  position: relative;
  width: 480px;
  height: 480px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(216, 203, 239, 0.45));
  box-shadow: 
    0 12px 48px rgba(65, 66, 91, 0.12),
    0 0 0 1px rgba(179, 160, 214, 0.4),
    inset 0 2px 10px rgba(255, 255, 255, 0.8);
}

.lunar-porthole-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background-color: #EDE8F7;
  border: 2px solid rgba(216, 203, 239, 0.8);
  box-shadow: inset 0 6px 20px rgba(65, 66, 91, 0.1);
}

/* Observatory Flight Telemetry Dashboard (Outside circular clipping mask) */
.game-telemetry-dashboard {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 520px;
  z-index: 15;
}

.telemetry-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-lavender);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
  min-width: 0;
}

.telemetry-item:hover {
  background: #FFFFFF;
  border-color: var(--lavender-dark);
  box-shadow: 0 4px 14px rgba(65, 66, 91, 0.08);
}

.telemetry-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
}

.telemetry-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.telemetry-bar-track {
  width: 100%;
  height: 4px;
  background-color: var(--lavender-light);
  border-radius: var(--radius-round);
  overflow: hidden;
  margin-top: 3px;
}

.telemetry-bar-fill {
  height: 100%;
  width: 100%;
  background-color: var(--status-success);
  border-radius: var(--radius-round);
  transition: width 0.15s ease, background-color 0.25s ease;
}

/* Compass & Azimuth Ticks around the porthole */
.azimuth-ticks {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(179, 160, 214, 0.55);
  pointer-events: none;
}

.azimuth-deg {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  background: var(--bg-primary);
  padding: 0 4px;
  border-radius: 4px;
  line-height: 1.1;
  transform: translate(-50%, -50%);
}

.deg-0   { top: 0%; left: 50%; }
.deg-90  { top: 50%; left: 100%; }
.deg-180 { top: 100%; left: 50%; }
.deg-270 { top: 50%; left: 0%; }

/* Game Canvas & HUD elements */
#lunarCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hud-status-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-lavender);
  text-align: center;
  z-index: 20;
  display: none;
  max-width: 80%;
}

.hud-status-badge.is-visible {
  display: block;
}

.hud-status-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.hud-status-title.success { color: var(--status-success); }
.hud-status-title.failed  { color: var(--status-alert); }
.hud-status-title.paused  { color: var(--text-main); }

.hud-status-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Mobile & Touch Controls on Game */
.game-touch-controls {
  display: none;
  gap: 12px;
  margin-top: 14px;
  z-index: 20;
}

.touch-btn {
  width: 58px;
  height: 52px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-lavender);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.touch-btn:active,
.touch-btn.is-active {
  background-color: var(--lavender-light);
  transform: scale(0.95);
  border-color: var(--lavender-dark);
}

/* Game Utility Bar (Level select, Pause, Restart) */
.game-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.game-btn {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: var(--radius-round);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-lavender);
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-subtle);
}

.game-btn:hover {
  background-color: var(--lavender-light);
  border-color: var(--lavender-dark);
}

.game-btn.active {
  background-color: var(--lavender);
  border-color: var(--lavender-dark);
  font-weight: 600;
}

/* Disclaimer under game */
.game-disclaimer {
  max-width: 600px;
  margin: 10px auto 0 auto;
  font-size: 0.78125rem;
  color: var(--text-dim);
  line-height: 1.5;
  font-family: var(--font-body);
}

/* Hero CTA Area */
.hero-cta-area {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.hero-cta-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   VERTICAL MISSION TIMELINE (Core Advantages)
   ========================================================================== */
.timeline-track-container {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-track-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 36px;
  width: 2px;
  background: linear-gradient(180deg, var(--lavender), var(--ice-blue), var(--pale-pink));
}

.timeline-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 3px solid var(--lavender-dark);
  box-shadow: 0 0 0 5px rgba(216, 203, 239, 0.4);
  margin-bottom: 8px;
}

.timeline-timestamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-card {
  flex-grow: 1;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-lavender);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
  border-color: var(--lavender-dark);
}

.timeline-step-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-step-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--ice-blue-light);
  color: #2D4C6E;
  border: 1px solid var(--ice-blue);
}

.timeline-step-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   NODE NETWORK: ORBITAL REGIONAL INDEX & TEXT LIST
   ========================================================================== */
.orbit-regions-wrapper {
  background-color: var(--bg-surface-trans);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-lavender);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.orbit-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-fine);
  padding-bottom: 18px;
}

.orbit-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-round);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.orbit-tab-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-elevated);
}

.orbit-tab-btn.is-active {
  color: var(--text-main);
  background-color: var(--ice-blue-light);
  border-color: var(--ice-blue);
  box-shadow: var(--shadow-subtle);
}

.nodes-text-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.nodes-text-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-fine);
}

.nodes-text-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-fine);
  font-size: 0.9375rem;
  color: var(--text-main);
}

.nodes-text-table tr:last-child td {
  border-bottom: none;
}

.nodes-text-table tr:hover td {
  background-color: rgba(245, 241, 252, 0.4);
}

.node-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78125rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-success);
}

.status-dot.active {
  background-color: var(--status-success);
  box-shadow: 0 0 6px var(--status-success);
}

/* ==========================================================================
   AI & STREAMING MEDIA MISSION LOGS (Two-page Logbook)
   ========================================================================== */
.mission-logs-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-lavender);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.logbook-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-lavender);
  background-color: var(--bg-surface-elevated);
}

.logbook-tab-trigger {
  flex: 1;
  padding: 18px 24px;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logbook-tab-trigger.is-active {
  background-color: var(--bg-surface);
  border-bottom-color: var(--lavender-dark);
}

.log-number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 3px 8px;
  background-color: var(--pale-pink-light);
  color: #794A6F;
  border-radius: var(--radius-sm);
}

.log-tab-info {
  display: flex;
  flex-direction: column;
}

.log-tab-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.log-tab-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.logbook-page-content {
  padding: 36px;
  display: none;
}

.logbook-page-content.is-active {
  display: block;
}

.log-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.log-box {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-fine);
  border-radius: var(--radius-md);
  padding: 24px;
}

.log-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-fine);
}

.log-box-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.log-param-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-param-list li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(110, 112, 142, 0.1);
}

.log-param-list span:last-child {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   FIVE-TIER SPECIFICATIONS TABLE
   Horizontal specification table on desktop; vertical comparison table on mobile
   Honest calibration status: "待更新"
   ========================================================================== */
.pricing-specs-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
}

.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-lavender);
}

.specs-table th,
.specs-table td {
  padding: 20px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border-fine);
  border-right: 1px solid var(--border-fine);
}

.specs-table th:first-child,
.specs-table td:first-child {
  text-align: left;
  font-weight: 600;
  background-color: var(--bg-surface-elevated);
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 2px solid var(--border-lavender);
}

.specs-table th:last-child,
.specs-table td:last-child {
  border-right: none;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-tier-header {
  background-color: var(--bg-surface-elevated);
}

.tier-code-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.tier-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.tier-target {
  font-size: 0.78125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.status-badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-round);
  background-color: var(--cream);
  color: #6C5427;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(220, 185, 120, 0.4);
}

.specs-honest-notice {
  background-color: var(--cream-light);
  border: 1px solid rgba(220, 185, 120, 0.45);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: #554425;
  margin-top: 18px;
}

/* ==========================================================================
   ASTRONOMICAL JOURNAL: NINE ARTICLES
   ========================================================================== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.journal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-lavender);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s ease;
  position: relative;
}

.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--lavender-dark);
}

.journal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.journal-category-tag {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--lavender-light);
  color: #4B3E69;
}

.journal-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-main);
}

.journal-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.journal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-fine);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.journal-read-link {
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.journal-read-link:hover {
  color: var(--lavender-dark);
}

/* ==========================================================================
   OBSERVATIONAL LOGS / REVIEWS (Honest Dispatches)
   ========================================================================== */
.logs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.log-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-fine);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.log-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.log-avatar-porthole {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender-light), var(--ice-blue-light));
  border: 2px solid var(--border-lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
}

.log-user-meta {
  display: flex;
  flex-direction: column;
}

.log-author-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.log-author-station {
  font-size: 0.78125rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.log-body {
  font-size: 0.90625rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.log-footer-stamp {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  color: var(--text-dim);
  padding-top: 10px;
  border-top: 1px dashed var(--border-fine);
}

/* ==========================================================================
   FAQ: OBSERVATORY Q&A LIST
   ========================================================================== */
.faq-accordion-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-lavender);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.2s ease;
}

.faq-item.is-open {
  border-color: var(--lavender-dark);
}

.faq-question-btn {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  background: none;
  cursor: pointer;
}

.faq-icon-cross {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.25s ease;
}

.faq-icon-cross::before,
.faq-icon-cross::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background-color: var(--text-muted);
  transform: translate(-50%, -50%);
}

.faq-icon-cross::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-icon-cross::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--bg-surface-elevated);
}

.faq-answer-inner {
  padding: 0 24px 20px 24px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* ==========================================================================
   FOOTER
   Naturally incorporating required external references + standalone links
   ========================================================================== */
.site-footer {
  background-color: #ECE5F9;
  border-top: 1px solid var(--border-lavender);
  padding: 64px 0 32px 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand-col p {
  margin-top: 12px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(179, 160, 214, 0.4);
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-partners-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.footer-partners-banner a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-partners-banner a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   RESPONSIVE DESIGN (375px - 1440px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .lunar-porthole-ring {
    width: 420px;
    height: 420px;
  }
  
  .journal-grid,
  .logs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  /* Navigation moves to the top on mobile */
  .site-nav {
    position: sticky;
    top: 0;
    bottom: auto;
  }
  
  .site-nav.is-sticky {
    position: sticky;
    top: 0;
  }
  
  .nav-mobile-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: rgba(245, 241, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-lavender);
    display: none;
    box-shadow: var(--shadow-float);
  }
  
  .nav-links.is-open {
    display: flex;
  }
  
  .hero-section {
    padding-top: 32px;
    padding-bottom: 48px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.98rem;
  }
  
  .lunar-porthole-ring {
    width: 320px;
    height: 320px;
  }
  
  .game-telemetry-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 320px;
    margin-bottom: 14px;
  }

  .telemetry-item {
    padding: 6px 8px;
  }

  .telemetry-label {
    font-size: 0.65rem;
  }

  .telemetry-value {
    font-size: 0.875rem;
  }
  
  .game-touch-controls {
    display: flex;
  }
  
  .timeline-track-line {
    left: 20px;
  }
  
  .timeline-marker {
    width: 40px;
  }
  
  .timeline-card {
    padding: 18px 20px;
  }
  
  .log-entry-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .logbook-tab-trigger {
    padding: 14px 16px;
  }
  
  .journal-grid,
  .logs-grid {
    grid-template-columns: 1fr;
  }
  
  /* Five tiers specs table becomes vertical card / stack comparison on mobile */
  .specs-table {
    display: block;
  }
  
  .specs-table thead {
    display: none;
  }
  
  .specs-table tbody {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .specs-table tr {
    display: block;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-lavender);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-subtle);
  }
  
  .specs-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-right: none;
    border-bottom: 1px dashed var(--border-fine);
    text-align: right;
  }
  
  .specs-table td:first-child {
    position: static;
    background: none;
    border-right: none;
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-lavender);
    justify-content: flex-start;
  }
  
  .specs-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-dim);
    text-align: left;
  }
  
  .specs-table td:first-child::before {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
