/* ==========================================================================
   捕鱼吧电玩 · 街区坐标 —— 共享站壳样式 /assets/site.css
   赛博渔港夜色 · 深海蓝 + 电光青 · 珊瑚橙与荧光黄点睛
   ========================================================================== */

/* 0. Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

/* 1. 设计令牌
   ========================================================================== */
:root {
  /* 色彩体系 */
  --deep: #061427;
  --trench: #0B2036;
  --cyan: #2FE3D0;
  --cyan-soft: #7BF3E6;
  --coral: #FF6B4A;
  --coral-soft: #FF8E5E;
  --lime: #F5E14A;
  --haze: #9FB6C9;
  --ghost: #EAF6FF;
  --violet: #5A4BE0;
  --ink: #020A12;

  --line: rgba(47, 227, 208, 0.22);
  --line-soft: rgba(123, 243, 230, 0.12);
  --line-strong: rgba(47, 227, 208, 0.5);
  --glass: rgba(11, 32, 54, 0.62);
  --glass-strong: rgba(6, 20, 39, 0.94);

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", "Cascadia Mono", ui-monospace, monospace;

  /* 几何 */
  --radius-pill: 999px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;

  /* 度量 */
  --shell: min(1180px, 100% - 2.5rem);
  --header-pad: 14px;
  --ease: cubic-bezier(0.22, 0.68, 0.34, 1);
}

/* 2. 基础与中文排版
   ========================================================================== */
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 10% -10%, rgba(90, 75, 224, 0.30), transparent 62%),
    radial-gradient(920px 540px at 92% 4%, rgba(47, 227, 208, 0.14), transparent 60%),
    var(--deep);
  color: var(--ghost);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ghost);
}

p {
  text-wrap: pretty;
}

strong {
  color: var(--cyan-soft);
  font-weight: 700;
}

em {
  font-style: normal;
}

::selection {
  background: rgba(47, 227, 208, 0.30);
  color: var(--ghost);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 3. 布局工具
   ========================================================================== */
.page-main {
  display: block;
  outline: none;
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(26px, 4vw, 56px);
}

.prose {
  max-width: 40em;
  color: var(--haze);
  font-size: 17px;
  line-height: 1.85;
}

.prose p + p {
  margin-top: 1.05em;
}

.prose h2,
.prose h3 {
  color: var(--ghost);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }

@media (max-width: 900px) {
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8 {
    grid-column: span 12;
  }
}

/* 4. 通用按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.55em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    background 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--coral {
  background: linear-gradient(120deg, var(--coral), var(--coral-soft));
  color: #1B0700;
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.30);
}

.btn--coral:hover {
  box-shadow: 0 12px 32px rgba(255, 107, 74, 0.44);
}

.btn--cyan {
  background: linear-gradient(120deg, var(--cyan), var(--cyan-soft));
  color: #032A26;
  box-shadow: 0 8px 24px rgba(47, 227, 208, 0.26);
}

.btn--cyan:hover {
  box-shadow: 0 12px 32px rgba(47, 227, 208, 0.38);
}

.btn--ghost {
  background: rgba(47, 227, 208, 0.06);
  border-color: var(--line);
  color: var(--cyan-soft);
}

.btn--ghost:hover {
  background: rgba(47, 227, 208, 0.14);
  border-color: var(--line-strong);
  color: var(--ghost);
}

.btn--sm {
  padding: 0.62em 1.15em;
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* 5. 标签、说明牌、索引
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.plate {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.7em;
  padding: 0.65em 1.15em;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--cyan);
  border-radius: 6px 16px 6px 16px;
  background: linear-gradient(120deg, rgba(11, 32, 54, 0.9), rgba(6, 20, 39, 0.6));
}

.plate-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.plate-name {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ghost);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.32em 0.82em;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(47, 227, 208, 0.1);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
}

.tag--lime {
  background: var(--lime);
  border-color: transparent;
  color: #1E1A00;
  box-shadow: 0 0 16px rgba(245, 225, 74, 0.32);
}

.tag--coral {
  background: var(--coral);
  border-color: transparent;
  color: #2A0A00;
}

.index-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.index-item {
  display: flex;
  align-items: baseline;
  gap: 1em;
  padding: 0.85em 0.2em;
  border-bottom: 1px solid var(--line-soft);
  color: var(--haze);
  text-decoration: none;
  transition: color 0.24s var(--ease), background 0.24s var(--ease);
}

.index-item:hover {
  color: var(--ghost);
  background: rgba(47, 227, 208, 0.06);
}

.index-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(47, 227, 208, 0.55);
}

/* 6. 容器：玻璃浮层与实色内容层
   ========================================================================== */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  border-radius: var(--radius-lg);
}

.panel--glass {
  background: linear-gradient(140deg, rgba(11, 32, 54, 0.72), rgba(6, 20, 39, 0.56));
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(234, 246, 255, 0.06), 0 18px 44px rgba(2, 10, 18, 0.5);
}

.panel--solid {
  background: linear-gradient(160deg, var(--trench), var(--deep));
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(2, 10, 18, 0.45);
}

/* 7. 图片容器基础（页面阶段放入 img / picture）
   ========================================================================== */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(90, 75, 224, 0.42), transparent 62%),
    radial-gradient(90% 80% at 86% 82%, rgba(47, 227, 208, 0.24), transparent 64%),
    linear-gradient(160deg, var(--trench), var(--ink));
}

.media-frame > img,
.media-frame > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.media-frame > img,
.media-frame > picture > img {
  object-fit: cover;
  border-radius: inherit;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(123, 243, 230, 0.13) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(-45deg, rgba(123, 243, 230, 0.13) 0 1px, transparent 1px 24px);
  mask-image: radial-gradient(120% 100% at 50% 50%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 10%, transparent 78%);
  opacity: 0.55;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame--net {
  background:
    repeating-linear-gradient(60deg, rgba(123, 243, 230, 0.10) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-60deg, rgba(123, 243, 230, 0.10) 0 1px, transparent 1px 26px),
    linear-gradient(160deg, var(--trench), var(--ink));
}

.media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  padding: 0.3em 0.8em;
  border-radius: var(--radius-sm);
  background: rgba(2, 10, 18, 0.78);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan-soft);
}

/* 8. 装饰层
   ========================================================================== */
.net-overlay {
  background-image:
    repeating-linear-gradient(45deg, rgba(123, 243, 230, 0.14) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(-45deg, rgba(123, 243, 230, 0.14) 0 1px, transparent 1px 24px);
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.60; }
}

.glow-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 22%, rgba(90, 75, 224, 0.55), transparent 62%);
  animation: glowBreath 10s ease-in-out infinite;
}

.divider-slash {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  transform: skewX(-8deg);
}

/* 9. 面包屑
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
  width: var(--shell);
  margin: 20px auto 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--haze);
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--haze);
  border-bottom: 1px solid transparent;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.crumb-sep {
  color: rgba(159, 182, 201, 0.45);
}

.crumb-current {
  color: var(--cyan-soft);
}

/* 10. 头部浮岛
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 0.7em 1.4em;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #032A26;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translate(-50%, -160%);
  transition: transform 0.28s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: var(--header-pad) 0;
  transition: padding 0.3s var(--ease);
}

.site-header[data-compact="true"] {
  padding: 7px 0;
}

.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  background: rgba(2, 10, 18, 0.6);
  pointer-events: none;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 55%, var(--cyan-soft));
  box-shadow: 0 0 12px rgba(47, 227, 208, 0.7);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: var(--shell);
  margin-inline: auto;
  padding: 9px 12px 9px 18px;
  border: 1px solid rgba(47, 227, 208, 0.18);
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, rgba(11, 32, 54, 0.88), rgba(6, 20, 39, 0.74));
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    0 12px 38px rgba(2, 10, 18, 0.55),
    inset 0 1px 0 rgba(234, 246, 255, 0.07);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header[data-compact="true"] .header-inner {
  background: linear-gradient(120deg, rgba(6, 20, 39, 0.94), rgba(2, 10, 18, 0.9));
  box-shadow: 0 10px 30px rgba(2, 10, 18, 0.68);
}

/* 品牌 */
.brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  line-height: 1;
}

.brand-mark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ghost);
  white-space: nowrap;
}

.brand-mark em {
  color: var(--cyan);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--haze);
}

/* 胶囊导航 */
.nav-pill {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(2, 10, 18, 0.42);
  border: 1px solid rgba(123, 243, 230, 0.12);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--haze);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.24s var(--ease), background 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.nav-link:hover {
  color: var(--ghost);
  background: rgba(47, 227, 208, 0.12);
}

.nav-link[aria-current="page"] {
  color: #032A26;
  background: linear-gradient(120deg, var(--cyan), var(--cyan-soft));
  box-shadow:
    0 0 0 1px rgba(47, 227, 208, 0.55),
    0 6px 18px rgba(47, 227, 208, 0.3);
}

/* 右侧动作区 */
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--lime);
  color: #1E1A00;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(245, 225, 74, 0.6), 0 0 18px rgba(245, 225, 74, 0.34);
}

.version-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #1E1A00;
  box-shadow: 4px 0 0 #1E1A00, 8px 0 0 #1E1A00;
  animation: chipBlink 2.4s steps(2, end) infinite;
}

@keyframes chipBlink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.32; }
}

/* 移动端切换按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(47, 227, 208, 0.08);
  cursor: pointer;
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease);
}

.nav-toggle:hover {
  background: rgba(47, 227, 208, 0.18);
  border-color: var(--line-strong);
}

.nav-toggle-bar {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan-soft);
  transition: transform 0.26s var(--ease), opacity 0.26s var(--ease);
}

.site-header[data-open="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 11. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 132px);
  padding: clamp(52px, 7vw, 92px) 0 26px;
  overflow: hidden;
  border-top: 1px solid rgba(47, 227, 208, 0.16);
  background:
    radial-gradient(120% 78% at 50% 0%, rgba(90, 75, 224, 0.30), rgba(2, 10, 18, 0) 62%),
    linear-gradient(180deg, rgba(6, 20, 39, 0.35) 0%, rgba(2, 10, 18, 0.96) 32%, var(--ink) 100%);
}

.footer-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  width: min(900px, 120%);
  height: 300px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(47, 227, 208, 0.22), transparent 100%);
  animation: glowBreath 12s ease-in-out infinite;
}

.footer-net {
  position: absolute;
  inset: auto 0 0 0;
  height: 300px;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    repeating-linear-gradient(58deg, rgba(123, 243, 230, 0.09) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-58deg, rgba(123, 243, 230, 0.09) 0 1px, transparent 1px 28px),
    radial-gradient(7px 3px at 12% 66%, rgba(47, 227, 208, 0.45), transparent 100%),
    radial-gradient(6px 3px at 22% 84%, rgba(47, 227, 208, 0.35), transparent 100%),
    radial-gradient(8px 3.5px at 38% 72%, rgba(123, 243, 230, 0.4), transparent 100%),
    radial-gradient(5px 2.5px at 54% 88%, rgba(47, 227, 208, 0.3), transparent 100%),
    radial-gradient(7px 3px at 71% 74%, rgba(123, 243, 230, 0.36), transparent 100%),
    radial-gradient(6px 2.5px at 86% 90%, rgba(47, 227, 208, 0.3), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 62%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 62%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) 0.85fr;
  gap: clamp(24px, 3.2vw, 44px);
  width: var(--shell);
  margin-inline: auto;
  align-items: start;
}

.footer-brand {
  grid-column: 1 / 2;
  max-width: 30ch;
}

.footer-brand-mark {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ghost);
}

.footer-brand-sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.footer-brand-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--haze);
}

.footer-heading {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer-list {
  display: grid;
  gap: 9px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-list a {
  color: var(--haze);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.footer-list a:hover {
  color: var(--cyan-soft);
  border-bottom-color: rgba(123, 243, 230, 0.5);
}

.footer-list--plain li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(159, 182, 201, 0.7);
}

.footer-val,
.footer-mail {
  font-size: 14px;
  color: var(--ghost);
  word-break: break-word;
}

.footer-mail {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cyan-soft);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan-soft);
  text-shadow: 0 0 10px rgba(47, 227, 208, 0.4);
}

.footer-top {
  margin-top: 18px;
  padding: 0.55em 1.1em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(47, 227, 208, 0.06);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.footer-top:hover {
  background: rgba(47, 227, 208, 0.16);
  border-color: var(--line-strong);
  color: var(--ghost);
}

.footer-legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  width: var(--shell);
  margin: clamp(30px, 4vw, 48px) auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(123, 243, 230, 0.12);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(159, 182, 201, 0.82);
}

.footer-icp-line {
  color: var(--cyan-soft);
  text-shadow: 0 0 10px rgba(47, 227, 208, 0.35);
}

/* 回顶浮标 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72em 1.05em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(2, 10, 18, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s var(--ease);
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--line-strong);
  color: var(--ghost);
}

/* 12. 显现动效
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 13. 响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 42ch;
  }

  .nav-link {
    padding: 9px 11px;
    font-size: 13px;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-pad: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    padding: 8px 10px 8px 14px;
  }

  .nav-pill {
    position: fixed;
    top: 86px;
    left: 16px;
    right: 16px;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin-inline: 0;
    padding: 14px;
    border-radius: 24px;
    background: var(--glass-strong);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 24px 60px rgba(2, 10, 18, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s var(--ease);
  }

  .site-header[data-open="true"] .nav-pill {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    padding: 15px 18px;
    font-size: 15px;
    letter-spacing: 0.1em;
    border-radius: 14px;
  }

  .nav-link[aria-current="page"] {
    border-radius: 14px;
  }
}

@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: min(1180px, 100% - 1.6rem);
  }

  body {
    font-size: 15.5px;
  }

  .brand-sub {
    display: none;
  }

  .brand-mark {
    font-size: 15px;
  }

  .version-chip {
    padding: 6px 9px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .header-actions {
    gap: 7px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .version-chip {
    display: none;
  }
}

/* 14. 降低动态效果
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .glow-layer,
  .footer-glow,
  .version-chip::before {
    animation: none;
  }
}
