:root {
  color-scheme: dark;
  --f-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #0a0b0e;
  --surface-1: #141720;
  --surface-2: #1c202b;
  --line: #292e3d;
  --line-bright: #3e465c;
  --bevel: rgba(255, 255, 255, 0.06);

  --ink-1: #f4f6fa;
  --ink-2: #aeb6c8;
  --ink-3: #6e778c;

  /* 品牌与 HUD 语义色（严禁紫色） */
  --orange: #f97316;
  --orange-bright: #fb923c;
  --orange-glow: rgba(249, 115, 22, 0.28);
  --orange-soft: rgba(249, 115, 22, 0.14);

  --sky: #0ea5e9;
  --sky-glow: rgba(14, 165, 233, 0.2);
  --sky-soft: rgba(14, 165, 233, 0.14);

  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.14);

  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f1ec;
  --surface-1: #ffffff;
  --surface-2: #eae6dd;
  --line: #dcd6ca;
  --line-bright: #c2bab0;
  --bevel: rgba(255, 255, 255, 0.8);

  --ink-1: #141518;
  --ink-2: #4f5460;
  --ink-3: #7d8390;

  --orange: #ea580c;
  --orange-bright: #f97316;
  --orange-glow: rgba(249, 115, 22, 0.2);
  --orange-soft: rgba(249, 115, 22, 0.11);

  --sky: #0284c7;
  --sky-glow: rgba(2, 132, 199, 0.15);
  --sky-soft: rgba(2, 132, 199, 0.1);

  --green: #059669;
  --green-soft: rgba(5, 150, 105, 0.12);

  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.12);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--f-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink-1);
  overflow-x: hidden;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("/assets/img/noise.svg");
  opacity: 0.03;
}

.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  z-index: 100;
}

.skip:focus {
  left: 16px;
  top: 16px;
  border-radius: var(--r-sm);
}

a {
  color: inherit;
}

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

.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.72;
}

.glow-orb--orange {
  width: 540px;
  height: 540px;
  background: var(--orange-glow);
  top: -150px;
  right: -90px;
  animation: orb-drift-a 14s ease-in-out infinite alternate;
}

.glow-orb--sky {
  width: 440px;
  height: 440px;
  background: var(--sky-glow);
  bottom: -120px;
  left: -100px;
  animation: orb-drift-b 18s ease-in-out infinite alternate;
}

@keyframes orb-drift-a {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 50px) scale(1.12); }
}

@keyframes orb-drift-b {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, -40px) scale(1.1); }
}

/* 顶置 HUD 导航条 */
.hud-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 24px 0;
}

.hud-bar {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--surface-1) 82%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: inset 0 1px 0 var(--bevel);
}

.hud-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hud-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.hud-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.hud-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange-bright);
  background: var(--orange-soft);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: color 150ms var(--ease-out), background 150ms var(--ease-out);
}

.hud-nav a:hover {
  color: var(--ink-1);
  background: var(--surface-2);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-status-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-1);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 150ms var(--ease-out), transform 180ms var(--ease-spring);
}

.theme-btn:hover {
  border-color: var(--orange);
  transform: scale(1.03);
}

.theme-btn:active {
  transform: scale(0.95);
}

/* 主画布 */
.canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px 84px;
  flex: 1 0 auto;
}

/* 首屏视觉主角舞台 */
.hero-arena {
  position: relative;
  min-height: calc(100dvh - 120px);
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
  padding: 24px 0 84px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface-1) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: inset 0 1px 0 var(--bevel);
  transition: opacity 240ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.scroll-cue:hover {
  border-color: var(--orange);
  color: var(--ink-1);
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue-arrow {
  color: var(--orange);
  font-weight: 800;
  animation: cue-float 1.8s ease-in-out infinite;
}

@keyframes cue-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-bright);
  letter-spacing: 0.04em;
  padding: 4px 12px;
  background: var(--orange-soft);
  border: 1px solid color-mix(in srgb, var(--orange) 35%, transparent);
  border-radius: var(--r-pill);
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 5.8vw, 66px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-title-accent {
  color: var(--orange);
}

.hero-lede {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 220ms var(--ease-spring), background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: translateY(1px) scale(0.96);
}

.btn--launch {
  background: var(--orange);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 28px var(--orange-glow);
}

.btn--launch:hover {
  background: var(--orange-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 38px var(--orange-glow);
}

.btn--copy-hero {
  background: var(--surface-1);
  color: var(--ink-1);
  border-color: var(--line-bright);
  box-shadow: inset 0 1px 0 var(--bevel);
}

.btn--copy-hero:hover {
  border-color: var(--orange);
  background: var(--surface-2);
}

.btn--copy-hero[data-ok="1"] {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.hud-telemetry {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 540px;
}

.tele-item {
  padding: 12px 14px;
  background: color-mix(in srgb, var(--surface-1) 76%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 var(--bevel);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tele-label {
  font-size: 11px;
  color: var(--ink-3);
}

.tele-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-1);
}

/* 右侧视觉主角：飞牛 HUD 能量核心 */
.hero-core-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

.hero-core {
  position: relative;
  width: 344px;
  height: 344px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.core-halo {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  animation: halo-breathe 4.5s ease-in-out infinite;
}

@keyframes halo-breathe {
  0%, 100% { transform: scale(0.95); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 1; }
}

.core-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.core-ring--outer {
  inset: 0;
  border: 1px dashed var(--line-bright);
  animation: spin-cw 36s linear infinite;
}

.core-ring--mid {
  inset: 26px;
  border: 2px solid transparent;
  border-top-color: var(--orange);
  border-right-color: var(--sky);
  animation: spin-ccw 14s linear infinite;
}

.core-ring--inner {
  inset: 54px;
  border: 1px solid color-mix(in srgb, var(--orange) 35%, transparent);
  animation: spin-cw 22s linear infinite;
}

@keyframes spin-cw { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

.core-bracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--orange);
  border-style: solid;
  pointer-events: none;
}

.core-bracket--tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.core-bracket--tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.core-bracket--bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.core-bracket--br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }

.core-emblem {
  position: relative;
  z-index: 2;
  width: 152px;
  height: 152px;
  border-radius: 34px;
  display: block;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 32px var(--orange-glow);
  transform: translateZ(36px);
}

.core-badge {
  position: absolute;
  z-index: 3;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-pill);
  background: var(--surface-1);
  border: 1px solid var(--line-bright);
  box-shadow: inset 0 1px 0 var(--bevel);
  color: var(--ink-1);
  transform: translateZ(52px);
  white-space: nowrap;
}

.core-badge--top {
  top: 28px;
  right: 10px;
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
}

.core-badge--bottom {
  bottom: 26px;
  left: 6px;
  color: var(--sky);
  border-color: color-mix(in srgb, var(--sky) 45%, transparent);
}

/* 粒子迸发 */
.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  left: 50%;
  top: 50%;
  z-index: 20;
}

.spark-1 { background: var(--orange); animation: spark-a 580ms var(--ease-out) forwards; }
.spark-2 { background: var(--green); animation: spark-b 580ms var(--ease-out) forwards; }
.spark-3 { background: var(--amber); animation: spark-c 580ms var(--ease-out) forwards; }
.spark-4 { background: var(--sky); animation: spark-d 580ms var(--ease-out) forwards; }
.spark-5 { background: var(--orange-bright); animation: spark-e 580ms var(--ease-out) forwards; }
.spark-6 { background: var(--green); animation: spark-f 580ms var(--ease-out) forwards; }

@keyframes spark-a {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-48px, -40px) rotate(45deg) scale(0.3); opacity: 0; }
}
@keyframes spark-b {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(42px, -44px) rotate(-35deg) scale(0.3); opacity: 0; }
}
@keyframes spark-c {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-56px, 20px) rotate(60deg) scale(0.3); opacity: 0; }
}
@keyframes spark-d {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(52px, 24px) rotate(-50deg) scale(0.3); opacity: 0; }
}
@keyframes spark-e {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(0px, -54px) rotate(25deg) scale(0.3); opacity: 0; }
}
@keyframes spark-f {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-20px, 40px) rotate(-25deg) scale(0.3); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 内容区块 */
.section {
  padding-top: 56px;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.sec-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-bright);
  padding: 3px 9px;
  background: var(--orange-soft);
  border-radius: var(--r-sm);
}

.sec-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sec-sub {
  font-size: 13px;
  color: var(--ink-3);
}

.branch-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
}

.hud-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: inset 0 1px 0 var(--bevel);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  transition: transform 240ms var(--ease-spring), border-color 180ms var(--ease-out);
}

.hud-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--orange-soft), transparent 70%);
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}

.hud-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
}

.hud-card:hover::before {
  opacity: 1;
}

.hud-card--smp {
  border-top: 3px solid var(--orange);
}

.hud-card--planned {
  background: color-mix(in srgb, var(--surface-1) 60%, transparent);
  border-style: dashed;
  justify-content: space-between;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title-group h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.chip--green { background: var(--green-soft); color: var(--green); }
.chip--sky { background: var(--sky-soft); color: var(--sky); }
.chip--amber { background: var(--amber-soft); color: var(--amber); }
.chip--orange { background: var(--orange-soft); color: var(--orange-bright); }

.card-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.seat-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.seat-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
}

.seat-cells {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}

.seat-cell {
  height: 10px;
  border-radius: 3px;
  background: var(--green);
}

.seat-cell--empty {
  background: transparent;
  border: 1px dashed var(--line-bright);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

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

.trio-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  box-shadow: inset 0 1px 0 var(--bevel);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform 220ms var(--ease-spring), border-color 180ms var(--ease-out);
}

.trio-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
}

.trio-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--sky);
}

.trio-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.trio-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 var(--bevel);
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-left h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.contact-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-note {
  font-size: 13px;
  color: var(--ink-2);
}

/* 404 页面 */
.err-stage {
  min-height: calc(100dvh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.err-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  align-items: center;
}

.err-code {
  margin: 0;
  font-size: clamp(48px, 10vw, 84px);
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}

/* 页脚 */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-1) 88%, transparent);
  padding: 24px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 140ms var(--ease-out);
}

.footer-links a:hover {
  color: var(--orange-bright);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-3);
}

.snackbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--surface-2);
  color: var(--ink-1);
  border: 1px solid var(--orange);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  z-index: 60;
}

/* 顶栏站点结构指示与五个月纪念壁纸 */
.hud-tree {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hud-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.hud-switch-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  transition: color 150ms var(--ease-out), background 150ms var(--ease-out);
}

.hud-switch-item--active {
  background: var(--surface-1);
  color: var(--ink-1);
  box-shadow: inset 0 1px 0 var(--bevel), 0 1px 3px rgba(0, 0, 0, 0.16);
}

.hud-switch-item--branch:hover {
  color: var(--orange-bright);
  background: var(--orange-soft);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  transition: transform 180ms var(--ease-spring);
}

.btn--launch:hover .btn-arrow {
  transform: translateX(3px);
}

/* 5 周月庆祝飞艇与 Apple Intelligence 风格五彩光圈弹窗 */
.airship-craft {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
  animation: airship-fly 11s linear forwards;
}

.airship-banner {
  padding: 5px 16px;
  margin-bottom: 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #f97316, #facc15, #22c55e, #0ea5e9, #ec4899);
  background-size: 200% 100%;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
  animation: rainbow-flow 4s linear infinite, banner-wave 2.4s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes banner-wave {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-3px) rotate(1.5deg); }
}

.airship-hull {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  background: linear-gradient(110deg, #ff3b30, #f97316, #facc15, #22c55e, #06b6d4, #3b82f6, #a855f7, #ec4899, #ff3b30);
  background-size: 240% 100%;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 36px rgba(249, 115, 22, 0.38), inset 0 3px 0 rgba(255, 255, 255, 0.4);
  animation: rainbow-flow 5s linear infinite;
  transition: transform 200ms var(--ease-spring);
}

.airship-craft:hover .airship-hull {
  transform: scale(1.06);
}

.airship-fin {
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 36px;
  background: linear-gradient(180deg, #ff3b30, #f97316, #ec4899);
  border-radius: 6px 0 0 6px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  z-index: -1;
}

.airship-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.airship-ropes {
  width: 96px;
  height: 12px;
  border-left: 2px dashed rgba(255, 255, 255, 0.7);
  border-right: 2px dashed rgba(255, 255, 255, 0.7);
}

.airship-payload {
  width: 152px;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.airship-payload img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.airship-payload-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--orange-bright);
  text-align: center;
  white-space: nowrap;
}

@keyframes rainbow-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}

@keyframes airship-fly {
  0% { transform: translate3d(-88vw, -62vh, 0) rotate(-2deg); opacity: 0; }
  8% { transform: translate3d(-78vw, -56vh, 0) rotate(-1deg); opacity: 1; }
  25% { transform: translate3d(-58vw, -44vh, 0) rotate(1.5deg); }
  50% { transform: translate3d(-34vw, -28vh, 0) rotate(-1.5deg); }
  75% { transform: translate3d(-14vw, -12vh, 0) rotate(1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
}

@property --ai-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.airship-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 65;
  width: min(328px, calc(100vw - 32px));
  background: var(--surface-1);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  isolation: isolate;
  animation: dock-pop 320ms var(--ease-spring);
}

.airship-dock::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--r-lg) + 4px);
  background: conic-gradient(
    from var(--ai-angle),
    #ff3b30,
    #f97316,
    #facc15,
    #22c55e,
    #06b6d4,
    #3b82f6,
    #a855f7,
    #ec4899,
    #ff3b30
  );
  filter: blur(12px);
  opacity: 0.85;
  z-index: -2;
  animation: ai-aura-spin 4s linear infinite;
}

.airship-dock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  z-index: -1;
}

@keyframes ai-aura-spin {
  to { --ai-angle: 360deg; }
}

@keyframes dock-pop {
  0% { transform: scale(0.86) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.airship-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.airship-dock-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.airship-dock-close:hover {
  border-color: var(--orange);
  color: var(--ink-1);
}

.airship-thumb {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.airship-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.airship-dl {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
}

.airship-mini {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--surface-1);
  border: 1.5px solid var(--orange);
  color: var(--ink-1);
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--orange-glow);
}

.airship-mini:hover {
  background: var(--orange-soft);
}

.wallpaper-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.wallpaper-preview {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.wallpaper-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 350ms var(--ease-out);
}

.wallpaper-card:hover .wallpaper-preview img {
  transform: scale(1.03);
}

.wallpaper-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallpaper-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 960px) {
  .wallpaper-card {
    grid-template-columns: 1fr;
  }
  .hero-arena {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 16px;
  }

  .hero-core-wrap {
    order: -1;
  }

  .hero-core {
    width: 260px;
    height: 260px;
  }

  .core-emblem {
    width: 118px;
    height: 118px;
    border-radius: 26px;
  }

  .branch-grid,
  .trio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .hud-bar-wrap {
    padding: 10px 14px 0;
  }

  .hud-nav,
  .hud-tag,
  .hud-status-mini {
    display: none;
  }

  .canvas {
    padding: 20px 16px 56px;
  }

  .hud-telemetry {
    grid-template-columns: 1fr;
  }
}

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

  .glow-orb,
  .core-halo,
  .core-ring,
  .pulse-dot,
  .spark,
  .scroll-cue-arrow,
  .airship-craft,
  .airship-banner,
  .airship-hull,
  .airship-dock::before {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
