/* ============================================================
   196体育 · 共享站点样式 /assets/site.css
   ============================================================ */

/* ---------- 1. 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, li, figure, blockquote, dl, dt, dd {
  margin: 0;
}

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --ink: #0A1F44;
  --ink-deep: #061229;
  --paper: #F4F1E9;
  --paper-2: #E6E1D4;
  --accent: #FF6B1A;
  --accent-soft: #FFB489;
  --accent-text: #C2410C;
  --mint: #2EE6A8;
  --mint-deep: #0F7A5A;
  --slate: #7C8AA5;
  --mist: #C9F5E4;

  /* 字体 */
  --font-sans: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* 度量 */
  --rail: 96px;
  --frame: 56px;
  --maxw: 1320px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 深底通用 */
  --on-ink-72: rgba(244, 241, 233, 0.72);
  --on-ink-16: rgba(244, 241, 233, 0.16);
  --on-paper-16: rgba(10, 31, 68, 0.16);
}

/* ---------- 3. Base / 中文排版 ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--paper);
  padding-left: var(--rail);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; }

p { text-wrap: pretty; }

::selection {
  background-color: var(--accent);
  color: var(--ink-deep);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 1px var(--paper);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 12px 22px;
  background-color: var(--accent);
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-130%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 5. 头部框架：滚动进度 + 垂直轨道 ---------- */
.site-header {
  position: relative;
  z-index: 70;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: 0;
  height: 2px;
  background-color: rgba(10, 31, 68, 0.10);
  z-index: 50;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--accent) 0%, var(--accent) 55%, var(--mint) 100%);
}

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(46, 230, 168, 0.10) 0%, rgba(10, 31, 68, 0) 42%);
  border-right: 1px solid var(--on-ink-16);
  z-index: 70;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 241, 233, 0.28) transparent;
}

.rail::-webkit-scrollbar { width: 4px; }
.rail::-webkit-scrollbar-thumb { background-color: rgba(244, 241, 233, 0.28); }

/* 品牌 */
.rail__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 8px 18px;
  border-bottom: 1px solid var(--on-ink-16);
}

.rail__brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.rail__brand:hover::after,
.rail__brand:focus-visible::after {
  transform: scaleX(1);
}

.rail__mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 46px;
  border-radius: 2px;
  background-color: var(--accent);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rail__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.rail__name {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.rail__tagline {
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--on-ink-72);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(244, 241, 233, 0.32);
  border-radius: 2px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: border-color 0.16s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--accent);
  background-color: rgba(255, 107, 26, 0.12);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__label {
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* 主导航（桌面：轨道内竖排） */
.site-nav {
  flex: 1 1 auto;
  min-height: 0;
  padding-block: 8px;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__item { position: relative; }

.site-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 11px 12px 11px 13px;
  border-left: 3px solid transparent;
  color: var(--paper);
  overflow: hidden;
  transition: color 0.2s var(--ease), border-color 0.16s var(--ease), background-color 0.2s var(--ease);
}

.site-nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.site-nav__link > * {
  position: relative;
  z-index: 1;
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--ink-deep); }

.site-nav__link:hover::before,
.site-nav__link:focus-visible::before { transform: scaleX(1); }

.site-nav__link:hover .site-nav__num,
.site-nav__link:focus-visible .site-nav__num { color: rgba(6, 18, 41, 0.72); }

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  transition: color 0.2s var(--ease);
}

.site-nav__text {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.site-nav__link[aria-current="page"] {
  border-left-color: var(--accent);
  background-color: rgba(255, 107, 26, 0.14);
  color: #FFFFFF;
}

.site-nav__link[aria-current="page"] .site-nav__text { font-weight: 700; }
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--accent); }

/* 轨道底部：赛季状态 + CTA */
.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 10px 16px;
  border-top: 1px solid var(--on-ink-16);
}

.rail__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 233, 0.82);
}

.rail__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.18);
  animation: rail-pulse 2.4s var(--ease) infinite;
}

@keyframes rail-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(46, 230, 168, 0.05); }
}

.rail__status-text b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--mint);
}

.rail__cta {
  display: block;
  padding: 10px 6px;
  text-align: center;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ink-deep);
  background-color: var(--accent);
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition: background-size 0.22s var(--ease);
}

.rail__cta:hover,
.rail__cta:focus-visible { background-size: 100% 100%; }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  background-color: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--accent);
  overflow: hidden;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 80px) clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--on-ink-16);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__watermark {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(46, 230, 168, 0.18);
}

.footer__claim {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: auto;
  padding-top: 8px;
}

.footer__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 64px;
}

.footer__stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--mint);
}

.footer__stat-label {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--on-ink-72);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--on-ink-16);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--accent);
}

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

.footer__link {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(244, 241, 233, 0.86);
  transition: color 0.2s var(--ease), padding-left 0.22s var(--ease);
}

.footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.22s var(--ease);
}

.footer__link:hover {
  color: var(--paper);
  padding-left: 16px;
}

.footer__link:hover::before { width: 10px; }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: rgba(244, 241, 233, 0.6);
}

.footer__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.footer__legal {
  border-bottom: 1px solid var(--on-ink-16);
}

.footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-block: 18px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 233, 0.68);
}

.footer__legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__legal-link {
  color: rgba(244, 241, 233, 0.82);
  transition: color 0.2s var(--ease);
}

.footer__legal-link:hover { color: var(--mint); }

.footer__legal-sep { color: rgba(244, 241, 233, 0.36); }

.footer__icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer__copy { margin-left: auto; }

.footer__closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 20px clamp(20px, 3.5vw, 48px);
  background-color: var(--ink-deep);
  border-top: 1px solid var(--on-ink-16);
  color: var(--paper);
}

.footer__closing-label {
  flex: none;
  padding: 3px 8px;
  border-radius: 2px;
  background-color: var(--mint);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer__closing-text {
  font-size: 14px;
  color: rgba(244, 241, 233, 0.86);
  transition: color 0.2s var(--ease);
}

.footer__closing-arrow {
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.22s var(--ease);
}

.footer__closing:hover .footer__closing-text { color: var(--paper); }
.footer__closing:hover .footer__closing-arrow { transform: translateX(6px); }

/* ---------- 7. 通用容器与排版组件 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 3.5vw, 48px);
}

.main-content { display: block; min-height: 60vh; }

.display-title {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.sub-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
  color: var(--ink);
}

.body-text {
  font-size: 16px;
  line-height: 1.85;
}

.body-text p + p { margin-top: 1.2em; }

.num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0.02em;
}

.annotation {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--slate);
  animation: annotation-in 0.24s var(--ease) both;
}

@keyframes annotation-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.index-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}

.index-num--invert,
.is-dark .index-num { color: var(--accent); }

/* 分区 */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }

.section--ink,
.is-dark {
  background-color: var(--ink);
  color: var(--paper);
}

.section--ink .display-title,
.section--ink .section-title,
.section--ink .sub-title,
.is-dark .display-title,
.is-dark .section-title,
.is-dark .sub-title { color: var(--paper); }

.section--ink .lead,
.is-dark .lead,
.is-dark .body-text { color: rgba(244, 241, 233, 0.88); }

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

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

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--aside { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.grid--aside-rev { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  background-repeat: no-repeat;
  background-position: left center;
  transition: background-size 0.22s var(--ease), background-color 0.2s var(--ease),
              border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), color 0.2s var(--ease);
}

.btn--primary {
  color: var(--ink-deep);
  background-color: var(--accent);
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-size: 0% 100%;
}

.btn--primary:hover,
.btn--primary:focus-visible { background-size: 100% 100%; }

.btn--ghost {
  color: var(--ink);
  border-color: rgba(10, 31, 68, 0.28);
  background-color: transparent;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.btn--on-dark {
  color: var(--paper);
  border-color: rgba(244, 241, 233, 0.4);
  background-color: transparent;
}

.btn--on-dark:hover,
.btn--on-dark:focus-visible {
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.breadcrumbs a {
  color: var(--slate);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.breadcrumbs__sep { color: rgba(124, 138, 165, 0.65); }

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.is-dark .breadcrumbs,
.is-dark .breadcrumbs a { color: var(--on-ink-72); }
.is-dark .breadcrumbs [aria-current="page"] { color: var(--paper); }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 2px;
  background-color: var(--mist);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.tag--accent {
  background-color: var(--accent);
  color: var(--ink-deep);
}

.tag--outline {
  background-color: transparent;
  border: 1px solid rgba(10, 31, 68, 0.24);
  color: var(--slate);
}

.is-dark .tag--outline {
  border-color: rgba(244, 241, 233, 0.32);
  color: var(--on-ink-72);
}

/* 数据条 */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--on-paper-16);
  border-bottom: 1px solid var(--on-paper-16);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--accent-text);
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--slate);
}

.is-dark .stat-strip {
  border-top-color: var(--on-ink-16);
  border-bottom-color: var(--on-ink-16);
}

.is-dark .stat__num { color: var(--mint); }
.is-dark .stat__label { color: var(--on-ink-72); }

/* 分隔线 */
.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 40px);
  background-color: var(--on-paper-16);
}

.is-dark .rule { background-color: var(--on-ink-16); }

/* 图片容器基础（页面阶段放 img / picture） */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--ink-deep);
  border: 1px solid rgba(10, 31, 68, 0.12);
  box-shadow: 10px 10px 0 rgba(230, 225, 212, 0.9);
}

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

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame--ink { box-shadow: 10px 10px 0 rgba(46, 230, 168, 0.16); }

/* 滚动显现 */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 8. 平板：轨道折叠为顶部框架条 ---------- */
@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-top: var(--frame);
  }

  .scroll-progress {
    left: 0;
    top: var(--frame);
  }

  .rail {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--frame);
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 241, 233, 0.2);
    background-image: linear-gradient(90deg, rgba(46, 230, 168, 0.12) 0%, rgba(10, 31, 68, 0) 40%);
    overflow: visible;
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 0;
    border-bottom: 0;
  }

  .rail__brand::after { display: none; }

  .rail__mark {
    width: 32px;
    height: 32px;
    flex: none;
    font-size: 13px;
  }

  .rail__wordmark {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    text-align: left;
  }

  .rail__name { font-size: 14px; }

  .rail__tagline {
    font-size: 10px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: var(--frame);
    left: 0;
    right: 0;
    flex: none;
    padding: 6px 12px 16px;
    background-color: var(--ink);
    border-bottom: 1px solid rgba(244, 241, 233, 0.2);
    box-shadow: 0 24px 48px rgba(6, 18, 41, 0.35);
    max-height: calc(100dvh - var(--frame));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
  }

  .site-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav__link {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 12px 14px 16px;
  }

  .site-nav__link + .site-nav__link { border-top: 1px solid rgba(244, 241, 233, 0.08); }

  .site-nav__num { font-size: 11px; }
  .site-nav__text { font-size: 15px; }
  .site-nav__link[aria-current="page"] { border-left-width: 4px; }

  .rail__foot {
    margin-top: 0;
    padding: 0;
    border-top: 0;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .rail__status { display: none; }

  .rail__cta {
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }

  /* 内容网格折叠 */
  .grid--7-5,
  .grid--aside,
  .grid--aside-rev { grid-template-columns: minmax(0, 1fr); }

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

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

  .footer__contact { grid-column: 1 / -1; }

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

/* ---------- 9. 手机 ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }

  .rail__tagline { display: none; }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

  .footer__contact { grid-column: auto; }

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

  .footer__copy {
    margin-left: 0;
    width: 100%;
  }

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

  .footer__closing-text { flex: 1 1 100%; }

  .media-frame { box-shadow: 6px 6px 0 rgba(230, 225, 212, 0.9); }
  .media-frame--ink { box-shadow: 6px 6px 0 rgba(46, 230, 168, 0.16); }
}

@media (max-width: 420px) {
  .nav-toggle__label { display: none; }
  .rail__cta { font-size: 10.5px; padding: 7px 8px; }
}

/* ---------- 10. 减动效 ---------- */
@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;
  }

  .js-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
