:root {
  color-scheme: light;
  --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;

  /* 飞牛 SMP 温暖活力画报：暖阳米白底 + 品牌橙/樱粉/向日葵金/草木绿/晴空蓝（严禁紫色） */
  --bg: #fff8f0;
  --surface-1: #ffffff;
  --surface-2: #fdf1e4;
  --surface-3: #f7e4d0;
  --line: #eadbd0;
  --line-bright: #d8c3b2;
  --shadow-card: 0 10px 30px rgba(120, 62, 18, 0.07);
  --shadow-hover: 0 16px 38px rgba(249, 115, 22, 0.14);

  --ink-1: #1f1712;
  --ink-2: #5c4d42;
  --ink-3: #8c7a6b;

  --orange: #f97316;
  --orange-deep: #c2410c;
  --orange-glow: rgba(249, 115, 22, 0.25);
  --orange-soft: #ffedd5;

  --sakura: #f43f5e;
  --sakura-soft: #ffe4e6;

  --green: #10b981;
  --green-deep: #047857;
  --green-soft: #d1fae5;

  --sky: #0ea5e9;
  --sky-deep: #0369a1;
  --sky-soft: #e0f2fe;

  --amber: #f59e0b;
  --amber-deep: #b45309;
  --amber-soft: #fef3c7;

  --red: #e11d48;
  --red-soft: #ffe4e6;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --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="dark"] {
  color-scheme: dark;
  /* 夜间改为暖炭篝火底，拒绝冰冷暗绿恐怖感 */
  --bg: #171311;
  --surface-1: #221c18;
  --surface-2: #2c241f;
  --surface-3: #382e27;
  --line: #3a3029;
  --line-bright: #52443a;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 40px rgba(249, 115, 22, 0.18);

  --ink-1: #faf4ee;
  --ink-2: #cbbcb0;
  --ink-3: #928174;

  --orange: #fb923c;
  --orange-deep: #f97316;
  --orange-glow: rgba(251, 146, 60, 0.28);
  --orange-soft: rgba(249, 115, 22, 0.18);

  --sakura: #fb7185;
  --sakura-soft: rgba(244, 63, 94, 0.18);

  --green: #34d399;
  --green-deep: #34d399;
  --green-soft: rgba(16, 185, 129, 0.18);

  --sky: #38bdf8;
  --sky-deep: #38bdf8;
  --sky-soft: rgba(14, 165, 233, 0.18);

  --amber: #fbbf24;
  --amber-deep: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.18);

  --red: #fb7185;
  --red-soft: rgba(244, 63, 94, 0.18);
}

*,
*::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.is-locked {
  overflow: hidden;
}

.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;
}

.mt { margin-top: 16px; }
.mt-0 { margin-top: 0; }
.fine { font-size: 12px; color: var(--ink-3); }
.hint { font-size: 13px; color: var(--ink-2); }
.big { font-size: 22px; font-weight: 800; color: var(--ink-1); }
.addr { overflow-wrap: anywhere; }

/* 温暖日光与樱花氛围光晕 */
.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(110px);
  opacity: 0.48;
}

.glow-orb--orange {
  width: 560px;
  height: 560px;
  background: var(--orange-soft);
  top: -180px;
  left: -100px;
  animation: orb-drift-a 16s ease-in-out infinite alternate;
}

.glow-orb--sky {
  width: 480px;
  height: 480px;
  background: var(--sakura-soft);
  bottom: -140px;
  right: -80px;
  animation: orb-drift-b 18s ease-in-out infinite alternate;
}

@keyframes orb-drift-a {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(55px, 45px) scale(1.1); }
}

@keyframes orb-drift-b {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-55px, -35px) scale(1.12); }
}

/* 顶置 HUD 导航条（与官网主站统一） */
.hud-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 24px 0;
}

.hud-bar {
  max-width: 1200px;
  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) 88%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
}

.hud-tree {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

.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-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);
  white-space: nowrap;
  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: 0 1px 3px rgba(0, 0, 0, 0.14);
}

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

html[data-theme="dark"] .hud-switch-item--branch:hover {
  color: var(--orange);
}

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

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

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

.nav-item[aria-current="page"] {
  color: var(--orange-deep);
  background: var(--orange-soft);
}

html[data-theme="dark"] .nav-item[aria-current="page"] {
  color: var(--orange);
}

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

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

html[data-theme="dark"] .hud-status-mini {
  color: var(--amber);
}

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

[data-state="online"] .pulse-dot { background: var(--green); }
[data-state="offline"] .pulse-dot { background: var(--red); }
[data-state="unknown"] .pulse-dot { background: var(--amber); }

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

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

[data-state="online"] .status-dot { background: var(--green); }
[data-state="offline"] .status-dot { background: var(--red); }
[data-state="unknown"] .status-dot { background: var(--amber); }

.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);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-1);
  cursor: pointer;
}

/* 移动端抽屉 */
.nav-drawer { display: none; position: fixed; inset: 0; z-index: 70; }
body.nav-open .nav-drawer { display: block; }
.nav-scrim { position: absolute; inset: 0; background: rgba(20, 12, 6, 0.52); backdrop-filter: blur(4px); }
.nav-sheet {
  position: relative;
  width: min(296px, 84vw);
  height: 100%;
  background: var(--surface-1);
  border-right: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}
.nav-sheet .nav-item { display: block; padding: 10px 14px; border-radius: var(--r-md); }

/* 主画布 */
.canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  flex: 1 0 auto;
}

/* 面包屑与页头 */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--orange-deep); }

.page-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.page-head h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lede { margin: 0; max-width: 680px; font-size: 15px; color: var(--ink-2); }

/* =========================================================
   SMP 首页：温暖热闹的游戏画报首屏 + 实景照片墙
   ========================================================= */
.sunny-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  padding: 12px 0 18px;
}

.sunny-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.sunny-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sunny-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

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

.ip-pill-box {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ip-pill-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ip-pill-addr {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-1);
  overflow-wrap: anywhere;
}

/* 右侧实景画报轮播舞台 */
.gallery-stage {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 200ms var(--ease-out);
  will-change: transform;
}

.gallery-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

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

.gallery-stage:hover .gallery-frame img {
  transform: scale(1.03);
}

.gallery-caption-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: rgba(20, 14, 10, 0.72);
  backdrop-filter: blur(8px);
  color: #fff8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

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

.thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
  aspect-ratio: 16 / 9;
  transition: transform 160ms var(--ease-spring), border-color 140ms var(--ease-out);
}

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

.thumb-btn[aria-pressed="true"] {
  border-color: var(--orange);
}

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

/* 存档里的烟火气：实景日常卡片墙 */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.moment-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 240ms var(--ease-spring), box-shadow 200ms var(--ease-out);
}

.moment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.moment-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

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

.moment-card:hover .moment-img-wrap img {
  transform: scale(1.05);
}

.moment-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.moment-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.moment-body p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}

/* 162 天里程碑标尺 */
.codex-ruler {
  margin-top: 28px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.ruler-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ruler-title { display: flex; align-items: center; gap: 10px; }
.ruler-title h2 { margin: 0; font-size: 18px; font-weight: 800; }
.ruler-days { font-size: 22px; font-weight: 800; color: var(--orange); }

.ruler-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}

.ruler-track::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--amber), var(--orange), var(--sakura), var(--green));
  opacity: 0.65;
}

.ruler-node {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-family: var(--f-sans);
}

.ruler-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 3px solid var(--orange);
  transition: transform 180ms var(--ease-spring), background 150ms var(--ease-out);
}

.ruler-node:hover .ruler-pin,
.ruler-node[aria-pressed="true"] .ruler-pin {
  transform: scale(1.28);
  background: var(--orange);
}

.ruler-date { font-size: 12px; font-weight: 700; }
.ruler-label { font-size: 12px; color: var(--ink-3); text-align: center; }
.ruler-node[aria-pressed="true"] .ruler-label { color: var(--ink-1); font-weight: 700; }

.ruler-detail {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-left: 3px solid var(--orange);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-1);
}

.codex-lower {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
}

/* 按钮与粒子 */
.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: 11px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 220ms var(--ease-spring), background 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: 0 6px 18px var(--orange-glow);
}

.btn--launch:hover { background: var(--orange-deep); }
.btn--launch[data-ok="1"] { background: var(--green); }

.btn--copy-hero,
.btn--ghost {
  background: var(--surface-2);
  color: var(--ink-1);
  border-color: var(--line-bright);
}

.btn--copy-hero:hover,
.btn--ghost:hover {
  border-color: var(--orange);
}

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

.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(--sakura); 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(--green); animation: spark-e 580ms var(--ease-out) forwards; }
.spark-6 { background: var(--orange); 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; } }

/* 区块与 12 栏栅格 */
.section { padding-top: 44px; }

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

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

html[data-theme="dark"] .sec-code { color: var(--orange); }

.sec-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.sec-sub { font-size: 13px; color: var(--ink-3); }
.sec-note { margin-left: auto; font-size: 12px; color: var(--ink-3); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.grid > * { min-width: 0; }
.c3 { grid-column: span 3; }
.c4 { grid-column: span 4; }
.c6 { grid-column: span 6; }
.c8 { grid-column: span 8; }
.c12 { grid-column: span 12; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.side-region { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }

.hud-card,
.tile {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 220ms var(--ease-spring), box-shadow 200ms var(--ease-out), border-color 160ms var(--ease-out);
}

.hud-card:hover,
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--orange);
}

.tile { text-decoration: none; }

.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; flex-wrap: wrap; }
.card-title-group h3 { margin: 0; font-size: 20px; font-weight: 800; }
.card-desc { margin: 0; font-size: 14px; color: var(--ink-2); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

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

.chip--green, .tag[data-tone="ok"] { background: var(--green-soft); color: var(--green-deep); }
.chip--sky, .tag[data-tone="sky"] { background: var(--sky-soft); color: var(--sky-deep); }
.chip--amber, .tag[data-tone="warn"], .tag[data-tone="gold"] { background: var(--amber-soft); color: var(--amber-deep); }
.chip--orange, .tag[data-tone="accent"] { background: var(--orange-soft); color: var(--orange-deep); }
.chip--sakura { background: var(--sakura-soft); color: var(--sakura); }
.tag[data-tone="bad"] { background: var(--red-soft); color: var(--red); }

html[data-theme="dark"] .chip--orange, html[data-theme="dark"] .tag[data-tone="accent"] { color: var(--orange); }

.seat-cells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.seat-cell { height: 12px; border-radius: 4px; background: var(--green); }
.seat-cell--empty { background: transparent; border: 1px dashed var(--line-bright); }

.msgbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow-card);
}
.msgbar[data-tone="warn"] { border-left-color: var(--amber); }
.msgbar[data-tone="ok"] { border-left-color: var(--green); }
.msgbar[data-tone="bad"] { border-left-color: var(--red); }
.msgbar p { margin: 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }

.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.kv > div:last-child { border-bottom: none; }
.kv dt { font-size: 12px; color: var(--ink-3); }
.kv dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-1); }

.scroll { width: 100%; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 12px; color: var(--ink-3); font-weight: 600; }

.list-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 180ms var(--ease-spring), border-color 150ms var(--ease-out);
}
.list-row:hover { transform: translateX(4px); border-color: var(--orange); }
.li-no { font-size: 15px; font-weight: 800; color: var(--orange); }
.li-main h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 700; }
.li-main p { margin: 0; font-size: 13px; color: var(--ink-2); }
.li-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.li-arrow { font-size: 16px; color: var(--ink-3); }
.list-row:hover .li-arrow { color: var(--orange); }

.seats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.seat {
  padding: 14px;
  background: var(--surface-1);
  border: 1px dashed var(--line-bright);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.seat[data-filled="1"] { border-style: solid; border-top: 3px solid var(--orange); box-shadow: var(--shadow-card); }
.seat b { font-size: 14px; overflow-wrap: anywhere; }
.seat span { font-size: 11px; color: var(--ink-3); }
.seat .role { color: var(--orange-deep); font-weight: 700; }
html[data-theme="dark"] .seat .role { color: var(--orange); }

.tl { display: flex; flex-direction: column; gap: 14px; border-left: 2px solid var(--line); padding-left: 18px; margin-left: 6px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }

.doc {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.doc h2 { margin: 10px 0 0; font-size: 18px; font-weight: 800; color: var(--orange-deep); }
html[data-theme="dark"] .doc h2 { color: var(--orange); }
.doc p { margin: 0; font-size: 15px; color: var(--ink-1); }
.points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.quote { margin: 0; padding: 14px 18px; background: var(--surface-2); border-left: 3px solid var(--orange); border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); }

.art-fig { margin: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; }
.art-fig img { width: 100%; height: auto; border-radius: var(--r-md); display: block; }
.art-cap { font-size: 12px; color: var(--ink-3); }

.pager { margin-top: 28px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pager a { padding: 10px 16px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; font-size: 13px; font-weight: 600; }
.pager a:hover { border-color: var(--orange); }

.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); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-1) 88%, transparent);
  padding: 24px 20px;
}
.footer-inner { max-width: 1200px; 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); }
.footer-links a:hover { color: var(--orange); }
.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(--ink-1);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  z-index: 90;
}

.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: 1023px) {
  .wallpaper-card { grid-template-columns: 1fr; }
  .hud-nav, .hud-status-mini { display: none; }
  .nav-toggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .side-region { position: static; }
}

@media (max-width: 900px) {
  .sunny-hero, .moments-grid, .codex-lower { grid-template-columns: 1fr; }
  .ruler-track { grid-template-columns: 1fr; gap: 12px; }
  .ruler-track::before { display: none; }
  .ruler-node { flex-direction: row; justify-content: flex-start; gap: 12px; }
  .c3, .c4, .c6, .c8 { grid-column: span 12; }
  .seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .hud-bar-wrap { padding: 10px 14px 0; }
  .hud-switch-item { padding: 4px 8px; font-size: 11px; }
  .canvas { padding: 20px 16px 56px; }
  .list-row { grid-template-columns: 1fr; gap: 8px; }
  .seats { grid-template-columns: 1fr; }
}

/* 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(249, 115, 22, 0.65);
  border-right: 2px dashed rgba(14, 165, 233, 0.65);
}

.airship-payload {
  width: 152px;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 2px solid rgba(249, 115, 22, 0.55);
  box-shadow: var(--shadow-hover);
  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);
  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: var(--shadow-card);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow-orb, .pulse-dot, .spark, .airship-craft, .airship-banner, .airship-hull, .airship-dock::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
