:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1a30;
  --panel: rgba(11, 20, 37, 0.72);
  --panel-strong: rgba(16, 29, 53, 0.88);
  --border: rgba(135, 180, 255, 0.16);
  --border-strong: rgba(255, 202, 112, 0.34);
  --text: #f5f1e8;
  --muted: #a2b6ca;
  --gold: #ffb74a;
  --gold-soft: #ffd77f;
  --blue: #66b6ff;
  --blue-soft: #98dcff;
  --red: #d96f47;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  --radius: 26px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.65 "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 179, 71, 0.16), transparent 20%),
    radial-gradient(circle at 82% 16%, rgba(102, 182, 255, 0.16), transparent 22%),
    radial-gradient(circle at 50% 110%, rgba(21, 56, 117, 0.9), transparent 42%),
    linear-gradient(180deg, #07101d 0%, #091321 35%, #0c1830 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 30%, rgba(255,255,255,0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 25% 80%, rgba(255,255,255,0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.85) 0 1px, transparent 1.5px),
    radial-gradient(circle at 85% 65%, rgba(255,255,255,0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 58% 42%, rgba(255,255,255,0.75) 0 1px, transparent 1.5px);
  background-size: 280px 280px, 340px 340px, 360px 360px, 420px 420px, 500px 500px;
  pointer-events: none;
  opacity: 0.45;
}

.sky-layer {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  filter: blur(90px);
}

.sky-layer-a {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 184, 90, 0.24), transparent 18%),
    radial-gradient(circle at 80% 40%, rgba(91, 145, 255, 0.22), transparent 22%);
}

.sky-layer-b {
  background:
    radial-gradient(circle at 45% 65%, rgba(11, 84, 184, 0.22), transparent 24%),
    radial-gradient(circle at 72% 72%, rgba(255, 132, 89, 0.12), transparent 16%);
  transform: translateY(40px);
}

.site-header,
.section,
.site-footer,
.hero {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.58);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 16px;
}

.brand,
.site-nav a,
.button,
.planet-card {
  text-decoration: none;
}

.brand {
  color: var(--text);
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold-soft);
}

main {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 70px 0 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  line-height: 0.96;
  max-width: 9.4ch;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.18;
  max-width: 16ch;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.3;
}

.hero-text,
.panel p,
.site-footer p {
  color: var(--muted);
}

.hero-text {
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(219, 228, 240, 0.8);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.96rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #102036;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 24px rgba(255, 183, 74, 0.18);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.025);
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 38px 0 0;
  flex-wrap: wrap;
}

.hero-stats li,
.panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)), var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-stats li {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 20px;
}

.hero-stats strong {
  display: block;
  font-size: 1.8rem;
  color: var(--text);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-orbit {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: end;
}

.formal-figure {
  margin: 0;
  display: grid;
  gap: 14px;
}

.viewer-shell {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 78% 20%, rgba(94, 144, 255, 0.18), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(255, 179, 71, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(9, 18, 35, 0.96), rgba(5, 10, 20, 0.96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.viewer-shell-plain {
  min-height: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.viewer-shell-plain .viewer-image {
  width: min(54vw, 900px);
  height: auto;
  margin-left: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 26px 54px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 48px rgba(255, 180, 74, 0.08));
}

.viewer-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.9) 0 1px, transparent 1.4px),
    radial-gradient(circle at 34% 72%, rgba(255,255,255,0.8) 0 1px, transparent 1.4px),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.75) 0 1px, transparent 1.4px),
    radial-gradient(circle at 82% 64%, rgba(255,255,255,0.85) 0 1px, transparent 1.4px);
  background-size: 260px 260px, 340px 340px, 380px 380px, 460px 460px;
  opacity: 0.45;
  pointer-events: none;
}

.viewer-shell-plain::before {
  display: none;
}

.solar-canvas {
  display: block;
  width: 100%;
  height: 620px;
}

.viewer-image {
  display: block;
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.figure-caption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(8, 14, 28, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.figure-index {
  display: inline-flex;
  min-width: 68px;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 211, 130, 0.18);
  background: rgba(255, 196, 92, 0.08);
}

.figure-copy {
  display: grid;
  gap: 6px;
}

.figure-title {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 1rem;
  line-height: 1.35;
}

.figure-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.parameter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.parameter-item {
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  color: #dce6f5;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(8, 14, 28, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 10px 26px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.parameter-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.image-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.viewer-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 185, 74, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(7, 13, 24, 0.76), rgba(7, 13, 24, 0.9));
  opacity: 1;
  transition: opacity 320ms ease, visibility 320ms ease;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.viewer-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.viewer-loader-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 220px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)),
    rgba(10, 16, 29, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.viewer-loader-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255, 214, 138, 0.95);
  animation: loader-spin 1s linear infinite;
}

.viewer-loader-title {
  color: var(--text);
  font-size: 1rem;
}

.viewer-loader-text {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.viewer-tooltip {
  position: fixed;
  z-index: 30;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.3;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.02)),
    rgba(7, 13, 24, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 26px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 4px, 0);
  transition: opacity 140ms ease, transform 140ms ease;
}

.viewer-tooltip.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.viewer-hud {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.02)),
    rgba(7, 13, 24, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.viewer-label {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.viewer-hud h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.viewer-hud p {
  margin: 0;
  color: var(--muted);
}

.viewer-meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: #d4def0;
  font-size: 0.92rem;
}

.viewer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03)),
    rgba(255, 208, 114, 0.08);
  text-decoration: none;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.viewer-overview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(106, 156, 255, 0.08);
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.viewer-overview:hover {
  transform: translateY(-1px);
  border-color: rgba(170, 203, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)),
    rgba(106, 156, 255, 0.12);
}

.viewer-overview.is-hidden {
  display: none;
}

.viewer-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 215, 145, 0.34);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    rgba(255, 208, 114, 0.12);
}

.viewer-link.is-hidden {
  display: none;
}

.viewer-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  width: min(54vw, 900px);
}

.viewer-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: rgba(226, 235, 247, 0.72);
  background: rgba(255,255,255,0.02);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease;
}

.viewer-button:hover,
.viewer-button.is-active {
  color: var(--text);
  border-color: rgba(255, 210, 124, 0.24);
  background: rgba(255, 210, 124, 0.06);
  transform: translateY(-1px);
}

.orbit-body,
.planet-chip,
.planet-visual {
  --planet-base: radial-gradient(circle at 35% 30%, #ddd, #666 75%);
  --planet-texture: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(0,0,0,0.1));
  --planet-day: 18s;
  --planet-glow: rgba(255,255,255,0.08);
  --planet-shadow: rgba(0, 0, 0, 0.46);
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.orbit-body {
  width: var(--size);
  height: var(--size);
  margin-top: calc(var(--size) * -0.48);
}

.planet-surface {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--planet-base);
  box-shadow:
    inset -12px -16px 24px var(--planet-shadow),
    inset 10px 10px 16px rgba(255,255,255,0.12),
    0 0 20px var(--planet-glow);
}

.planet-surface::before {
  content: "";
  position: absolute;
  inset: -8% -45%;
  background: var(--planet-texture);
  background-size: 200% 100%;
  animation: surface-drift var(--planet-day) linear infinite;
}

.planet-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,0.34), transparent 24%),
    linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.03) 38%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.54) 100%);
}

.planet-ring {
  position: absolute;
  inset: 50% -26% auto;
  height: 22%;
  border-radius: 50%;
  border: 3px solid rgba(225, 203, 150, 0.82);
  transform: translateY(-50%) rotate(-18deg);
  box-shadow: 0 0 12px rgba(233, 212, 170, 0.18);
}

.mercury { --size: 12px; --planet-day: 5.5s; --planet-glow: rgba(207, 184, 153, 0.12); --planet-base: radial-gradient(circle at 30% 28%, #d8d0c1 0%, #aa9e8c 36%, #75695c 72%, #4d463d 100%); --planet-texture: repeating-linear-gradient(104deg, rgba(251, 243, 232, 0.16) 0 5px, rgba(120, 106, 93, 0.22) 5px 12px, rgba(74, 63, 53, 0.24) 12px 18px); }
.venus { --size: 17px; --planet-day: 7s; --planet-glow: rgba(229, 178, 116, 0.14); --planet-base: radial-gradient(circle at 32% 28%, #f1d8ab 0%, #d7a26e 42%, #9f6a42 72%, #684327 100%); --planet-texture: repeating-linear-gradient(90deg, rgba(255, 234, 197, 0.18) 0 7px, rgba(192, 126, 84, 0.24) 7px 15px, rgba(126, 79, 44, 0.24) 15px 22px); }
.earth { --size: 18px; --planet-day: 6.5s; --planet-glow: rgba(118, 174, 255, 0.16); --planet-base: radial-gradient(circle at 34% 28%, #9de0ff 0%, #2f7bf6 44%, #184b9d 74%, #0a1f4b 100%); --planet-texture: repeating-linear-gradient(90deg, rgba(52, 144, 255, 0.18) 0 9px, rgba(34, 96, 181, 0.18) 9px 15px, rgba(124, 215, 165, 0.42) 15px 22px, rgba(17, 92, 45, 0.22) 22px 28px, rgba(43, 115, 201, 0.18) 28px 36px); }
.mars { --size: 14px; --planet-day: 8s; --planet-glow: rgba(214, 111, 71, 0.14); --planet-base: radial-gradient(circle at 32% 28%, #efb07a 0%, #cb6d42 44%, #923d24 74%, #5e2416 100%); --planet-texture: repeating-linear-gradient(92deg, rgba(244, 184, 120, 0.16) 0 6px, rgba(170, 78, 43, 0.24) 6px 13px, rgba(102, 43, 26, 0.24) 13px 19px); }
.jupiter { --size: 33px; --planet-day: 10s; --planet-glow: rgba(212, 164, 114, 0.12); --planet-base: radial-gradient(circle at 32% 28%, #f0dec0 0%, #d0aa7e 42%, #9c7151 70%, #6d4832 100%); --planet-texture: repeating-linear-gradient(90deg, rgba(255, 235, 207, 0.18) 0 8px, rgba(193, 145, 105, 0.28) 8px 16px, rgba(158, 107, 70, 0.24) 16px 24px, rgba(232, 201, 160, 0.16) 24px 29px, rgba(120, 80, 54, 0.22) 29px 36px); }
.saturn { --size: 28px; --planet-day: 10.5s; --planet-glow: rgba(223, 204, 152, 0.12); --planet-base: radial-gradient(circle at 32% 28%, #f1e1bf 0%, #ceb488 42%, #9e8158 72%, #6b5336 100%); --planet-texture: repeating-linear-gradient(90deg, rgba(246, 230, 194, 0.18) 0 8px, rgba(196, 164, 115, 0.26) 8px 14px, rgba(132, 102, 67, 0.22) 14px 21px); }
.uranus { --size: 22px; --planet-day: 9s; --planet-glow: rgba(167, 234, 255, 0.14); --planet-base: radial-gradient(circle at 32% 28%, #dff8ff 0%, #8ed6e8 46%, #4f99bf 72%, #295d82 100%); --planet-texture: repeating-linear-gradient(90deg, rgba(223, 255, 255, 0.16) 0 10px, rgba(112, 199, 215, 0.2) 10px 18px, rgba(64, 126, 163, 0.22) 18px 28px); }
.neptune { --size: 21px; --planet-day: 8.5s; --planet-glow: rgba(109, 155, 255, 0.16); --planet-base: radial-gradient(circle at 32% 28%, #9fd2ff 0%, #4376f3 46%, #2349b9 72%, #12235f 100%); --planet-texture: repeating-linear-gradient(90deg, rgba(172, 220, 255, 0.18) 0 10px, rgba(84, 130, 236, 0.24) 10px 18px, rgba(32, 64, 158, 0.26) 18px 28px); }

.planet-chip {
  width: 54px;
  height: 54px;
  margin: 6px 0 14px;
}

.planet-chip .planet-surface {
  box-shadow:
    inset -10px -14px 18px var(--planet-shadow),
    inset 8px 8px 14px rgba(255,255,255,0.1),
    0 0 18px var(--planet-glow);
}

.planet-chip.saturn .planet-ring {
  inset-inline: -24%;
}

.section {
  padding: 46px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.overview-grid,
.theme-grid,
.knowledge-grid {
  display: grid;
  gap: 18px;
}

.overview-grid {
  grid-template-columns: 1.25fr 0.75fr;
}

.overview-facts {
  display: grid;
  gap: 18px;
}

.panel {
  border-radius: var(--radius);
  padding: 24px;
}

.feature-panel p:first-child {
  margin-top: 0;
}

.feature-panel p:last-child {
  margin-bottom: 0;
}

.stat-panel span,
.planet-card em {
  color: var(--gold-soft);
}

.stat-panel strong {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
  color: var(--text);
}

.planet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.planet-card {
  display: flex;
  flex-direction: column;
  min-height: 264px;
  padding: 24px 24px 22px;
  border-radius: 20px;
  color: var(--text);
  border: 1px solid rgba(164, 188, 223, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(8, 16, 31, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 40px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.planet-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 214, 134, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 22px 46px rgba(0, 0, 0, 0.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(9, 18, 35, 0.88);
}

.planet-card .planet-index {
  order: 0;
}

.planet-card .planet-chip {
  order: 1;
}

.planet-card h3 {
  order: 2;
}

.planet-index {
  display: inline-block;
  margin-bottom: 16px;
  color: rgba(148, 186, 245, 0.88);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
}

.planet-card p {
  color: rgba(218, 227, 239, 0.76);
  margin: 12px 0 0;
  flex: 1;
  order: 3;
  font-size: 0.96rem;
  line-height: 1.68;
}

.planet-card em {
  margin-top: 18px;
  font-style: normal;
  order: 4;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-card {
  border-color: rgba(255, 210, 124, 0.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(10, 21, 40, 0.9);
}

.planet-meta {
  order: 1;
  margin: 0 0 8px;
  color: rgba(255, 214, 138, 0.74);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.planet-card .planet-chip {
  order: 2;
  margin: 8px 0 18px;
}

.planet-card h3 {
  order: 2;
  margin-top: 0;
  font-size: 1.44rem;
  line-height: 1.2;
}

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

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

.theme-card,
.knowledge-card {
  min-height: 236px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(164, 188, 223, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(8, 16, 31, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 40px rgba(0, 0, 0, 0.16);
}

.theme-card h3,
.knowledge-card h3 {
  font-size: 1.38rem;
  line-height: 1.22;
}

.theme-card p,
.knowledge-card p {
  margin: 0;
  color: rgba(218, 227, 239, 0.76);
  font-size: 0.96rem;
  line-height: 1.7;
}

.panel-kicker {
  display: inline-block;
  color: rgba(255, 214, 138, 0.74);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.accent-card {
  border-color: rgba(255, 210, 124, 0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)),
    rgba(10, 21, 40, 0.88);
}

.cta-panel {
  display: grid;
  gap: 16px;
  align-items: start;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 183, 74, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    var(--panel-strong);
}

.cta-panel p {
  margin: 0;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 16px auto 36px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  font-size: 0.94rem;
}

.planet-page .hero {
  grid-template-columns: 1fr 0.8fr;
  min-height: auto;
  padding-top: 50px;
}

.planet-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--gold-soft);
  font-size: 0.9rem;
}

.planet-visual {
  width: min(360px, 72vw);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  position: relative;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.34));
}

.planet-visual-wrap {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.planet-3d-shell {
  width: min(520px, 82vw);
  min-height: auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.planet-render {
  display: block;
  width: min(500px, 82vw);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 30px 54px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 48px rgba(130, 176, 255, 0.08));
}

.planet-overlay {
  display: none;
}

.planet-visual .planet-surface {
  inset: 8%;
  box-shadow:
    inset -26px -34px 46px var(--planet-shadow),
    inset 18px 16px 22px rgba(255,255,255,0.12),
    0 0 64px var(--planet-glow);
}

.planet-visual .planet-surface::before {
  inset: -5% -40%;
  background-size: 190% 100%;
}

.planet-visual .planet-ring {
  inset-inline: -8%;
  inset-block-start: 50%;
  height: 16%;
  border-width: 10px;
  z-index: 3;
}

.planet-visual::after {
  content: "";
  position: absolute;
  inset: auto 14% 10% 18%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255,255,255,0.055);
  filter: blur(16px);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.planet-page .detail-grid .panel span {
  color: var(--gold-soft);
}

.detail-grid .panel strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
}

@keyframes surface-drift {
  from { transform: translateX(-10%); }
  to { transform: translateX(10%); }
}

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

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

  .planet-surface::before {
    animation: none !important;
  }

  .viewer-button,
  .button,
  .planet-card,
  .site-nav a {
    animation: none !important;
    transition: none !important;
  }

  .viewer-loader-ring {
    animation: none !important;
  }
}

@media (max-width: 1024px) {
  .hero,
  .planet-page .hero,
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .parameter-bar,
  .parameter-bar-wide {
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    transform: none;
  }

  .viewer-shell {
    min-height: 520px;
  }

  .solar-canvas {
    height: 520px;
  }

  .viewer-image {
    height: 520px;
  }

  .viewer-shell-plain .viewer-image {
    width: min(100%, 760px);
    height: auto;
  }

  .viewer-controls {
    width: 100%;
  }

  .planet-3d-shell {
    width: min(560px, 100%);
    min-height: auto;
  }

  .planet-render {
    width: min(520px, 100%);
  }
}

@media (max-width: 720px) {
  .site-header {
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 40px;
    min-height: auto;
  }

  .hero-orbit {
    order: -1;
    min-height: auto;
  }

  .viewer-shell {
    min-height: 420px;
  }

  .solar-canvas {
    height: 420px;
  }

  .viewer-image {
    height: 420px;
  }

  .viewer-shell-plain .viewer-image {
    width: 100%;
    height: auto;
  }

  .viewer-hud {
    position: static;
    max-width: none;
    margin: 14px;
  }

  .planet-grid,
  .theme-grid,
  .knowledge-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .figure-caption {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}
