/* =========================================================
   亚富赛场 · 共享样式 /assets/site.css
   结构：重置 → 变量 → 排版 → 通用组件 → 头部轨道 → 页脚 → 响应式 → 动效降级
   ========================================================= */

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

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

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

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

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

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

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

:root {
  --c-pine: #0E3B32;
  --c-night: #0A1B33;
  --c-mist: #1E5A4E;
  --c-ice: #DCEDE7;
  --c-lime: #C8FF3D;
  --c-orange: #FF7A3D;
  --c-white: #F4F8F5;
  --c-steel: #8FA3A0;
  --c-crack: #2C4A63;
  --c-text-soft: #C3D7D1;

  --rail-w: 96px;
  --bar-h: 64px;
  --maxw: 1280px;
  --pad: clamp(18px, 4vw, 44px);
  --cut: 14px;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --scroll-progress: 0;
}

@media (min-width: 901px) and (max-width: 1180px) {
  :root { --rail-w: 84px; }
}

/* ---------- 基础排版 ---------- */

body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-ice);
  background-color: var(--c-pine);
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(30, 90, 78, .45) 0%, transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(10, 27, 51, .55) 0%, transparent 65%);
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--c-white);
}

h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: .95;
  letter-spacing: -.03em;
}

h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1; }

h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.15; }

p { max-width: 38em; }

::selection { background: var(--c-lime); color: var(--c-night); }

:focus-visible {
  outline: 2px solid var(--c-lime);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* 跳到主内容 */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-night);
  background: var(--c-lime);
  transform: translateY(-140%);
  transition: transform .2s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.skip-link:focus-visible { transform: translateY(0); outline-offset: -4px; }

/* ---------- 布局与通用组件 ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(30px, 5vw, 72px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(16px, 2.4vw, 28px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-lime);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--c-lime);
}

.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-text-soft);
  max-width: 38em;
}

.panel {
  position: relative;
  padding: clamp(16px, 2.4vw, 28px);
  background: linear-gradient(160deg, rgba(30, 90, 78, .55), rgba(14, 59, 50, .92));
  border: 1px solid rgba(44, 74, 99, .9);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.panel--night {
  background: linear-gradient(160deg, rgba(10, 27, 51, .96), rgba(10, 27, 51, .78));
}

.sign {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(10, 27, 51, .55);
  border-left: 3px solid var(--c-lime);
}

.sign-label {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-lime);
}

.sign-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-steel);
}

.data-num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: var(--c-lime);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-ice);
  background: rgba(30, 90, 78, .6);
  border: 1px solid rgba(44, 74, 99, .9);
}

.tag--lime {
  color: var(--c-lime);
  background: rgba(200, 255, 61, .14);
  border-color: rgba(200, 255, 61, .4);
}

.tag--orange {
  color: var(--c-orange);
  background: rgba(255, 122, 61, .14);
  border-color: rgba(255, 122, 61, .45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease);
}

.btn--primary { background: var(--c-orange); color: var(--c-night); }
.btn--primary:hover { background: #FF9463; transform: translateY(-2px); }

.btn--lime { background: var(--c-lime); color: var(--c-night); }
.btn--lime:hover { background: #D8FF75; transform: translateY(-2px); }

.btn--ghost {
  color: var(--c-lime);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 61, .5);
}

.btn--ghost:hover { color: var(--c-white); background: rgba(200, 255, 61, .14); }

.breadcrumb { padding: 18px 0 4px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-steel);
}

.breadcrumb-list a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--c-text-soft);
}

.breadcrumb-list a:hover { color: var(--c-lime); }

.breadcrumb-list [aria-current="page"] { color: var(--c-lime); }

.breadcrumb-sep { color: #3D6480; }

/* 图片容器基础规则（页面阶段填入 img 或占位） */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(44, 74, 99, .9);
  background:
    linear-gradient(150deg, #123F36 0%, #0A1B33 55%, #1E5A4E 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(220, 237, 231, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 237, 231, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .6;
}

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

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

.media-frame-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 10px 14px;
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-ice);
  background: linear-gradient(180deg, transparent, rgba(10, 27, 51, .88));
}

/* 主题筛选：只过滤当前页面已有条目 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(10, 27, 51, .6);
  border: 1px solid rgba(44, 74, 99, .85);
}

.filter-btn {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--c-ice);
  background: rgba(30, 90, 78, .28);
  border: 1px solid rgba(44, 74, 99, .9);
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.filter-btn:hover { color: var(--c-white); border-color: var(--c-lime); }

.filter-btn[aria-pressed="true"] {
  color: var(--c-night);
  font-weight: 700;
  background: var(--c-lime);
  border-color: var(--c-lime);
  box-shadow: 0 0 18px rgba(200, 255, 61, .35);
}

.filter-empty {
  margin-top: 14px;
  font-size: 14px;
  color: var(--c-steel);
}

[data-filter-item][hidden] { display: none !important; }

/* ---------- 头部：左侧品牌轨道 ---------- */

.site-header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  color: var(--c-ice);
  background:
    linear-gradient(180deg, rgba(10, 27, 51, .98) 0%, rgba(14, 59, 50, .98) 52%, rgba(10, 27, 51, .98) 100%);
  border-right: 1px solid var(--c-crack);
  transition: width .28s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(220, 237, 231, .055) 1px, transparent 1px);
  background-size: 100% 26px;
}

.rail-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0 10px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-night);
  background: linear-gradient(150deg, var(--c-lime) 0%, #8FDC1F 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform .24s var(--ease);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  writing-mode: vertical-rl;
  color: var(--c-white);
}

/* 移动端抽屉按钮（桌面隐藏） */
.nav-toggle { display: none; }

.rail-nav {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 255, 61, .4) transparent;
}

.rail-nav::-webkit-scrollbar { width: 3px; }
.rail-nav::-webkit-scrollbar-thumb { background: rgba(200, 255, 61, .4); }

.rail-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rail-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 12px 0;
  color: #BFD4CE;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.rail-link-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
}

.rail-link-mark {
  display: block;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  opacity: .45;
  transition: width .2s var(--ease), height .2s var(--ease), opacity .2s var(--ease);
}

.rail-link:hover { color: var(--c-white); transform: translateY(3px); }

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

.rail-link[aria-current="page"] .rail-link-mark {
  width: 18px;
  height: 2px;
  border-radius: 0;
  background: var(--c-lime);
  opacity: 1;
  box-shadow: 0 0 12px rgba(200, 255, 61, .8);
}

.rail-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px 18px;
  border-top: 1px solid rgba(44, 74, 99, .75);
}

.rail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--c-night);
  background: var(--c-orange);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background-color .22s var(--ease), transform .22s var(--ease), color .22s var(--ease);
}

.rail-cta:hover { background: #FF9463; transform: translateY(-2px); }

.rail-cta--ghost {
  color: var(--c-lime);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(200, 255, 61, .55);
}

.rail-cta--ghost:hover { color: var(--c-white); background: rgba(200, 255, 61, .14); }

.rail-note {
  display: none;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-steel);
}

.rail-progress {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: block;
  width: 2px;
  height: 100%;
  pointer-events: none;
  background: rgba(200, 255, 61, .12);
}

.rail-progress::after {
  content: "";
  display: block;
  width: 100%;
  height: calc(var(--scroll-progress, 0) * 100%);
  background: linear-gradient(180deg, var(--c-lime), var(--c-orange));
  box-shadow: 0 0 10px rgba(200, 255, 61, .7);
  transition: height .12s linear;
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(36px, 5vw, 68px);
  overflow: hidden;
  color: var(--c-ice);
  background: var(--c-night);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-lime) 0%, var(--c-mist) 55%, var(--c-orange) 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(44, 74, 99, .4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 74, 99, .4) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 72%);
}

.footer-glow {
  position: absolute;
  top: -28%;
  left: -8%;
  width: 62%;
  height: 72%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(30, 90, 78, .6), transparent 72%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding-bottom: clamp(28px, 4vw, 48px);
}

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

.brand-mark--lg {
  width: 54px;
  height: 54px;
  font-size: 24px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.footer-brand-name {
  max-width: none;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--c-white);
}

.footer-brand-line {
  max-width: 22em;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--c-steel);
}

.footer-col { display: block; }

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--c-lime);
}

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

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  font-size: 15px;
  color: var(--c-text-soft);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer-list a::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--c-lime);
  transition: width .2s var(--ease), margin-right .2s var(--ease);
}

.footer-list a:hover { color: var(--c-white); transform: translateX(4px); }

.footer-list a:hover::before { width: 12px; margin-right: 8px; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  background: rgba(30, 90, 78, .32);
  border: 1px solid rgba(44, 74, 99, .9);
  box-shadow: inset 0 1px 0 rgba(200, 255, 61, .18);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.footer-contact .footer-col-title { margin-bottom: 6px; }

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  max-width: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact-label {
  flex: 0 0 4.6em;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-steel);
}

.footer-contact-value {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--c-white);
  overflow-wrap: anywhere;
}

.footer-contact-note {
  max-width: 30em;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--c-steel);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(44, 74, 99, .85);
  font-size: 12px;
  color: var(--c-steel);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 0;
}

.footer-legal-links a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--c-ice);
  border-bottom: 1px solid rgba(200, 255, 61, .35);
}

.footer-legal-links a:hover { color: var(--c-lime); border-bottom-color: var(--c-lime); }

.footer-sep { color: #3D6480; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: none;
  margin: 0;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .02em;
}

.footer-icp { color: var(--c-text-soft); }

.footer-meta [data-year] { font-variant-numeric: tabular-nums; color: var(--c-lime); }

/* ---------- 平板 ---------- */

@media (max-width: 1180px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

/* ---------- 移动端：轨道回归抽屉 ---------- */

@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: var(--bar-h);
    background-attachment: scroll;
  }

  .site-header {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 27, 51, .97);
    border-right: 0;
    border-bottom: 1px solid var(--c-crack);
  }

  .site-header::before { background-size: 100% 22px; opacity: .7; }

  .rail-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: var(--bar-h);
    padding: 0 16px;
  }

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

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

  .brand-name {
    font-size: 15px;
    letter-spacing: .14em;
    writing-mode: horizontal-tb;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
    color: var(--c-ice);
    border: 1px solid rgba(44, 74, 99, .95);
    transition: border-color .22s var(--ease), background-color .22s var(--ease);
  }

  .nav-toggle:hover { border-color: var(--c-lime); }

  .nav-toggle-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 20px;
  }

  .nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-lime);
    transition: transform .25s var(--ease), opacity .2s var(--ease);
  }

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

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

  .rail-nav {
    position: fixed;
    top: var(--bar-h);
    right: 0;
    left: 0;
    z-index: 79;
    flex: none;
    max-height: calc(100vh - var(--bar-h));
    padding: 10px 16px 22px;
    overflow-y: auto;
    background: #0A1B33;
    border-bottom: 1px solid var(--c-crack);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s linear;
  }

  .site-header[data-open="true"] .rail-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .rail-nav-list { align-items: stretch; gap: 0; }

  .rail-link {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 4px;
    color: var(--c-ice);
    border-bottom: 1px solid rgba(44, 74, 99, .55);
  }

  .rail-link:hover { transform: none; color: var(--c-lime); }

  .rail-link-text {
    font-size: 16px;
    letter-spacing: .08em;
    writing-mode: horizontal-tb;
  }

  .rail-link-mark {
    width: 10px;
    height: 2px;
    border-radius: 0;
    opacity: .5;
  }

  .rail-link[aria-current="page"] .rail-link-mark { width: 24px; opacity: 1; }

  .rail-foot { display: none; }

  .rail-progress {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(200, 255, 61, .14);
  }

  .rail-progress::after {
    width: calc(var(--scroll-progress, 0) * 100%);
    height: 100%;
    background: linear-gradient(90deg, var(--c-lime), var(--c-orange));
    transition: width .12s linear;
  }

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

@media (max-width: 620px) {
  body { font-size: 16px; }

  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-contact-line { flex-direction: column; gap: 2px; }
  .footer-contact-label { flex: none; }
}

/* ---------- 动效与降级 ---------- */

[data-reveal] {
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

html.reveal-ready [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(12px);
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-reveal],
  html.reveal-ready [data-reveal]:not(.is-in) {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail-link:hover,
  .brand:hover .brand-mark,
  .btn:hover,
  .rail-cta:hover,
  .footer-list a:hover {
    transform: none !important;
  }
}
