/* ============================================================
   半岛体育看台 · /assets/site.css
   共享外壳 / 设计令牌 / 基础组件
   ============================================================ */

:root {
  --abyss: #04121f;
  --stand: #0a1e33;
  --panel: #102b45;
  --line: #1c3a55;
  --line-soft: rgba(28, 58, 85, 0.72);
  --cyan: #22d3ee;
  --cyan-soft: #a5f3fc;
  --coral: #ff6b4a;
  --lime: #a3e635;
  --mist: #e6f1f7;
  --slate: #7c93a6;
  --white: #ffffff;
  --ink: #04121f;

  --font-display: "Barlow Condensed", "DIN Condensed", "Oswald", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  --width: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius: 2px;
  --ease: cubic-bezier(0.4, 0.1, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--abyss);
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.045) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: -1px -1px;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-soft); }

ul, ol { padding-left: 1.2em; }
strong { color: var(--white); font-weight: 600; }
img { max-width: 100%; }

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

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

/* ---------- 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shell--narrow { max-width: 840px; }

.blueprint {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.blueprint > * { min-width: 0; }

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

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--coral);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: var(--ink);
  outline-offset: 2px;
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(4, 18, 31, 0.97) 0%, rgba(4, 18, 31, 0.78) 62%, rgba(4, 18, 31, 0) 100%);
}

/* 顶部状态带 */
.header-rail {
  max-height: 46px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(4, 18, 31, 0.98), rgba(10, 30, 51, 0.98));
  border-bottom: 1px solid var(--line-soft);
  transition: max-height 0.24s var(--ease), opacity 0.18s var(--ease);
}

.site-header[data-scrolled="true"] .header-rail {
  max-height: 0;
  opacity: 0;
}

.header-rail__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 28px);
  min-height: 36px;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.header-rail__inner > * {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rail-status { color: var(--cyan-soft); }

.rail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.14);
  animation: rail-pulse 2.6s ease-in-out infinite;
}

.rail-coord { color: var(--slate); }

.rail-note {
  margin-left: auto;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--slate);
}

@keyframes rail-pulse {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.1); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(163, 230, 53, 0.16); }
}

/* 悬浮胶囊 */
.header-island {
  position: relative;
  max-width: var(--width);
  margin: 10px auto 0;
  padding: 0 var(--gutter);
  transition: margin 0.22s var(--ease);
}

.site-header[data-scrolled="true"] .header-island { margin-top: 6px; }

.header-island__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 16px;
  background: rgba(10, 30, 51, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 20px 44px -32px #000, inset 0 1px 0 rgba(165, 243, 252, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: padding 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.site-header[data-scrolled="true"] .header-island__inner {
  padding: 4px 8px 4px 12px;
  background: rgba(10, 30, 51, 0.97);
  border-color: rgba(34, 211, 238, 0.26);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  color: var(--mist);
  text-decoration: none;
}

.brand:hover { color: var(--mist); }

.brand__mark {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.brand__mark i {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan);
}

.brand__mark i:nth-child(1) { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.brand__mark i:nth-child(2) { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.brand__mark i:nth-child(3) { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.brand__mark i:nth-child(4) { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.brand__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--cyan);
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--slate);
}

/* 主导航 */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: #a9bfcc;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.primary-nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.primary-nav a:hover {
  color: var(--cyan-soft);
  background: rgba(34, 211, 238, 0.09);
}

.primary-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(34, 211, 238, 0.16);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.42);
}

.primary-nav a[aria-current="page"]::before {
  opacity: 1;
  transform: scale(1);
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan-soft);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover { background: rgba(34, 211, 238, 0.18); }

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__label { letter-spacing: 0.04em; }

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

/* 右侧服务 */
.header-util {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.util-hours {
  margin: 0;
  padding-right: 12px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  color: var(--slate);
}

.util-hours b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan-soft);
}

.util-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 107, 74, 0.45);
  border-radius: 999px;
  background: rgba(255, 107, 74, 0.1);
  color: var(--coral);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.util-mail:hover {
  background: rgba(255, 107, 74, 0.2);
  color: #ffd9cf;
  transform: translateY(-1px);
}

.util-mail__icon {
  position: relative;
  width: 16px;
  height: 11px;
  border: 1.4px solid currentColor;
  border-radius: 1px;
}

.util-mail__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-left: 1.4px solid currentColor;
  border-top: 1.4px solid currentColor;
  transform: translate(-50%, -70%) rotate(45deg);
}

/* 滚动进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(28, 58, 85, 0.6);
}

.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width 0.1s linear;
}

/* ============================================================
   通用内容组件
   ============================================================ */
.breadcrumb {
  max-width: var(--width);
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a { color: #9ec3d4; text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan-soft); }
.breadcrumb [aria-current="page"] { color: var(--cyan-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 34px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.section-head__title {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -0.015em;
}

.section-head__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.75;
}

.btn--coral {
  background: var(--coral);
  color: var(--ink);
  box-shadow: 0 14px 30px -18px rgba(255, 107, 74, 0.9);
}

.btn--coral:hover {
  background: #ff8266;
  color: var(--ink);
  transform: translateY(-1px);
}

.btn--cyan {
  background: transparent;
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--cyan-soft);
}

.btn--cyan:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--cyan);
  color: #ffffff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--mist);
}

.btn--ghost:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--cyan-soft);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan);
}

.link-arrow:hover::after { transform: translateX(3px); }

/* 面板 */
.panel {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 43, 69, 0.92), rgba(10, 30, 51, 0.94));
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  pointer-events: none;
}

.panel--muted { background: rgba(10, 30, 51, 0.62); }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: 0.01em;
}

/* 标签与索引 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.tag--live {
  border-color: rgba(163, 230, 53, 0.45);
  background: rgba(163, 230, 53, 0.1);
  color: #dcf99b;
}

.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.16);
  animation: rail-pulse 2.6s ease-in-out infinite;
}

.tag--coral {
  border-color: rgba(255, 107, 74, 0.45);
  background: rgba(255, 107, 74, 0.12);
  color: #ffcabb;
}

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

/* 图片容器 */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  isolation: isolate;
  background:
    radial-gradient(120% 110% at 15% 0%, rgba(34, 211, 238, 0.18), transparent 62%),
    linear-gradient(155deg, #0a1e33 0%, #04121f 72%);
}

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

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(165, 243, 252, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(165, 243, 252, 0.09) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 82%);
  mask-image: linear-gradient(160deg, #000, transparent 82%);
}

.media-frame::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

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

.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  background: linear-gradient(180deg, transparent, rgba(4, 18, 31, 0.94));
}

/* 长页目录 */
.toc {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 30, 51, 0.55);
}

.toc__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.toc__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc__link {
  display: block;
  padding: 7px 10px;
  border-left: 1px solid var(--line);
  color: #a9bfcc;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.toc__link:hover {
  color: var(--cyan-soft);
  background: rgba(34, 211, 238, 0.06);
}

.toc__link[aria-current="true"] {
  color: var(--white);
  border-left-color: var(--coral);
  background: rgba(34, 211, 238, 0.1);
}

/* 进场 */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(40px, 6vw, 72px) 0 28px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 30, 51, 0.78), rgba(4, 18, 31, 0.99) 58%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.55;
}

.footer-frame {
  position: relative;
  z-index: 1;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2.4fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand { max-width: 330px; }

.footer-brand__name {
  margin: 14px 0 2px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
}

.footer-brand__sub {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-brand__note {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--slate);
}

.footer-brand__cta { margin-top: 4px; }

.footer-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-col__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list a {
  font-size: 14px;
  color: #b9cbd6;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-col__list a:hover { color: var(--cyan-soft); }

.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
}

.footer-contact__row {
  display: grid;
  gap: 1px;
  margin: 0;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer-contact__value {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #cfe0e9;
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.footer-legal {
  margin: 0;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cyan-soft);
}

.footer-note {
  flex: 1 1 260px;
  margin: 0;
  text-align: center;
  color: var(--slate);
}

.footer-copy { margin: 0; }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 16px 32px -18px rgba(255, 107, 74, 0.95);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s, background 0.18s var(--ease);
}

.to-top::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid currentColor;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: #ff8266; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .util-hours { display: none; }
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-island__inner { border-radius: 18px; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: block;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 30, 51, 0.98);
    box-shadow: 0 30px 60px -30px #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), max-height 0.26s var(--ease), visibility 0.2s;
  }

  .primary-nav[data-open="true"],
  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    max-height: 70vh;
    overflow: auto;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .primary-nav a {
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 15px;
  }

  .primary-nav a[aria-current="page"] { background: rgba(34, 211, 238, 0.14); }

  .header-rail__inner { font-size: 10px; letter-spacing: 0.12em; }
  .rail-coord { display: none !important; }

  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-7, .span-8, .span-9 { grid-column: span 12; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { max-width: none; }
  .footer-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-note { text-align: left; }
}

@media (max-width: 640px) {
  .header-rail__inner { min-height: 32px; }
  .rail-note { border: 0; padding: 0; }

  .header-island__inner { gap: 10px; padding: 6px 8px 6px 12px; }
  .brand__name { font-size: 15px; }
  .brand__sub { font-size: 8px; letter-spacing: 0.22em; }
  .util-mail { display: none; }

  .span-3, .span-4, .span-5, .span-6 { grid-column: span 12; }

  .footer-index { grid-template-columns: 1fr; }
  .footer-base { justify-content: flex-start; font-size: 11px; letter-spacing: 0.06em; }
  .to-top { height: 40px; padding: 0 13px; font-size: 12px; }
}

/* ============================================================
   可访问性偏好
   ============================================================ */
@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;
  }

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