/* ============================================================
   /assets/site.css — 浩瀚体育内容中心 共享外壳
   侧轨导航 · 深海底色 · 电光青轨道 · 切角数据舱
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

/* ---------- tokens ---------- */
:root {
  --night: #05101C;
  --deep: #0A2136;
  --mid: #123A5A;
  --cyan: #1FE0D0;
  --cyan-soft: #7CF3E8;
  --orange: #FF6A2C;
  --amber: #FFC15A;
  --white: #E9F3F8;
  --muted: #8AA3B6;
  --paper: #F1F6FA;

  --rail-w: 88px;
  --bar-h: 56px;
  --maxw: 1280px;
  --gutter: 24px;
  --gap: 24px;
  --cut: 20px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- page canvas ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--white);
  background-color: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 80% -8%, rgba(31, 224, 208, 0.18), transparent 72%),
    radial-gradient(46% 38% at 4% 104%, rgba(255, 106, 44, 0.12), transparent 74%),
    linear-gradient(180deg, #061421 0%, #05101C 42%, #030b13 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(138, 163, 182, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 163, 182, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 90% at 68% 0%, #000 18%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 68% 0%, #000 18%, transparent 78%);
}

.nav-open {
  overflow: hidden;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--night);
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ---------- header : 侧轨控制台 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 10px 14px;
  background: linear-gradient(180deg, #08202f 0%, #05121e 42%, #030c15 100%);
  border-right: 1px solid rgba(31, 224, 208, 0.16);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.site-header::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  opacity: 0.45;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(233, 243, 248, 0.22) 0 1px,
    transparent 1px 16px
  );
}

/* 轨道滚动进度 */
.rail-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  pointer-events: none;
  background: rgba(138, 163, 182, 0.16);
}

.rail-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--cyan) 55%, var(--orange) 100%);
  transform: scaleY(var(--p, 0));
  transform-origin: top center;
  transition: transform 0.12s linear;
}

/* 品牌 */
.rail-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(138, 163, 182, 0.16);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--night);
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
  transition: background-color 0.2s var(--ease);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  background: var(--orange);
}

.brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.brand-name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
}

.brand-sub {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-top: 2px;
}

.brand-tagline {
  display: none;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* 轨道导航 */
.rail-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
  padding-top: 12px;
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-item {
  list-style: none;
}

.rail-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 2px;
  color: #A6BCCB;
  background-image: linear-gradient(90deg, rgba(31, 224, 208, 0.16), rgba(31, 224, 208, 0));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.22s var(--ease), color 0.18s var(--ease);
}

.rail-link:hover,
.rail-link:focus-visible {
  color: var(--cyan);
  background-size: 100% 100%;
}

.rail-link[aria-current="page"] {
  color: var(--cyan);
  background-size: 100% 100%;
}

.rail-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(31, 224, 208, 0.7);
}

.rail-index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(124, 243, 232, 0.55);
}

.rail-link[aria-current="page"] .rail-index {
  color: var(--orange);
}

.rail-label {
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

/* 轨道底部状态 */
.rail-aside {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(138, 163, 182, 0.16);
}

.status-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2.4s var(--ease) infinite;
}

.status-text {
  display: block;
  max-width: 68px;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 224, 208, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(31, 224, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 224, 208, 0); }
}

/* 轨道底部行动 */
.hdr-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.hdr-actions .btn {
  --cut: 8px;
  width: 100%;
  padding: 9px 4px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: var(--cyan-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 224, 208, 0.35);
  transition: color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-toggle:hover {
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(31, 224, 208, 0.75);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 14px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-label {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.site-header[data-open] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, #061826 0%, #041019 60%, #030b13 100%);
  border-top: 1px solid rgba(31, 224, 208, 0.18);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(31, 224, 208, 0.75) 22%,
    rgba(255, 106, 44, 0.6) 62%,
    transparent 100%
  );
}

.foot-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.foot-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.foot-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--orange);
}

.foot-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.foot-summary {
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

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

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.foot-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31, 224, 208, 0.22);
}

.foot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1.5;
  color: #C3D6E2;
  transition: color 0.18s var(--ease);
}

.foot-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.2s var(--ease);
}

.foot-link:hover,
.foot-link:focus-visible {
  color: var(--cyan);
}

.foot-link:hover::after,
.foot-link:focus-visible::after {
  width: 100%;
}

.foot-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.foot-line {
  font-size: 13.5px;
  line-height: 1.7;
  color: #C3D6E2;
  word-break: break-word;
}

.foot-note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid rgba(138, 163, 182, 0.18);
}

.foot-watermark {
  position: relative;
  z-index: 1;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 11vw, 150px);
  line-height: 0.86;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  color: transparent;
  -webkit-text-stroke: 1px rgba(31, 224, 208, 0.16);
  pointer-events: none;
  user-select: none;
}

.foot-base {
  position: relative;
  z-index: 2;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: 1px solid rgba(138, 163, 182, 0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.foot-legal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.foot-legal::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  transform: rotate(45deg);
}

.foot-copy {
  color: var(--muted);
}

/* ---------- 通用按钮 ---------- */
.btn {
  --cut: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

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

.btn-primary {
  color: var(--night);
  background: var(--orange);
}

.btn-primary:hover {
  background: #FF8551;
}

.btn-ghost {
  color: var(--cyan-soft);
  background: rgba(31, 224, 208, 0.06);
  box-shadow: inset 0 0 0 1px rgba(31, 224, 208, 0.4);
}

.btn-ghost:hover {
  color: var(--cyan);
  background: rgba(31, 224, 208, 0.14);
  box-shadow: inset 0 0 0 1px rgba(31, 224, 208, 0.8);
}

/* ---------- 容器与分区 ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px);
}

.section--paper {
  background: var(--paper);
  color: var(--night);
}

.section--paper .prose {
  color: #123A5A;
}

.section--paper .prose h2,
.section--paper .prose h3,
.section--paper .prose strong {
  color: var(--night);
}

.section--paper .eyebrow {
  color: #4A6579;
}

/* ---------- 文本组件 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan);
}

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: #D5E4EE;
}

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

.prose h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--white);
}

.prose h3 {
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose li {
  position: relative;
  padding-left: 18px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.prose a {
  color: var(--cyan-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--cyan);
}

.prose strong {
  color: var(--white);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "/";
  color: rgba(138, 163, 182, 0.5);
}

.crumbs a {
  color: var(--cyan-soft);
  transition: color 0.18s var(--ease);
}

.crumbs a:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs [aria-current="page"] {
  color: var(--white);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  box-shadow: inset 0 0 0 1px rgba(31, 224, 208, 0.35);
}

.tag--warm {
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(255, 193, 90, 0.42);
}

.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 9);
  background: linear-gradient(145deg, #123A5A 0%, #0A2136 45%, #05101C 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 224, 208, 0.18);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 16, 28, 0.08) 0%,
    rgba(5, 16, 28, 0) 38%,
    rgba(5, 16, 28, 0.72) 100%
  );
}

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

.media-frame-cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

/* ---------- 栅格 ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}

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

/* ---------- 进场显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 平板与手机：侧轨折叠为顶栏 + 抽屉 ---------- */
@media (max-width: 1180px) {
  body {
    padding-left: 0;
  }

  #main-content {
    scroll-margin-top: calc(var(--bar-h) + 16px);
  }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(31, 224, 208, 0.18);
    background: linear-gradient(100deg, #08202f 0%, #05121e 62%, #030c15 100%);
    overflow: visible;
  }

  .site-header::before {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 1px;
    opacity: 0.35;
    background-image: repeating-linear-gradient(
      to right,
      rgba(233, 243, 248, 0.2) 0 1px,
      transparent 1px 18px
    );
  }

  .rail-progress {
    top: auto;
    left: 0;
    right: 0;
    bottom: -1px;
    width: auto;
    height: 2px;
    background: rgba(138, 163, 182, 0.18);
  }

  .rail-progress span {
    background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 100%);
    transform: scaleX(var(--p, 0));
    transform-origin: left center;
  }

  .rail-top {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 15px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  }

  .brand-lockup {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }

  .brand-name {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0.08em;
  }

  .brand-sub {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-top: 0;
  }

  .hdr-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    margin-left: auto;
  }

  .hdr-actions .btn {
    --cut: 8px;
    width: auto;
    padding: 9px 13px;
    font-size: 12px;
    white-space: nowrap;
  }

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

  /* 抽屉 */
  .rail-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--bar-h);
    z-index: 78;
    max-height: calc(100dvh - var(--bar-h));
    overflow-y: auto;
    flex-direction: column;
    gap: 14px;
    padding: 16px 16px 24px;
    background: linear-gradient(180deg, #082330 0%, #05121e 70%, #030c15 100%);
    border-bottom: 1px solid rgba(31, 224, 208, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s linear;
  }

  .rail-nav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31, 224, 208, 0.8), transparent);
  }

  .site-header[data-open] .rail-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .rail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .rail-link {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    padding: 13px 10px;
    box-shadow: inset 0 0 0 1px rgba(138, 163, 182, 0.14);
  }

  .rail-link[aria-current="page"]::before {
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
  }

  .rail-index {
    font-size: 10px;
  }

  .rail-label {
    font-size: 15px;
  }

  .rail-aside {
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
  }

  .status-chip {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-align: left;
  }

  .status-text {
    max-width: none;
  }
}

@media (min-width: 641px) and (max-width: 1180px) {
  .brand-tagline {
    display: block;
    padding-left: 12px;
    border-left: 1px solid rgba(138, 163, 182, 0.24);
    letter-spacing: 0.06em;
  }
}

@media (max-width: 560px) {
  .hdr-actions .btn-ghost {
    display: none;
  }

  .hdr-actions .btn {
    padding: 9px 11px;
    font-size: 11.5px;
  }

  .nav-toggle-label {
    display: none;
  }
}

/* ---------- 组件响应式 ---------- */
@media (max-width: 1024px) {
  .foot-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .foot-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
    --gap: 18px;
  }

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

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .foot-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .btn:hover,
  .foot-link:hover {
    transform: none;
  }
}
