/* =====================================================
   乐宝体育 · 全局共享层 /assets/site.css
   深空蓝赛场 / 框架式导航 / 数据流边框 / 运动杂志长卷
   ===================================================== */

/* ---------- 1. CSS 变量 ---------- */
:root {
  --bg-deep: #0B1E3A;
  --bg-night: #051020;
  --bg-panel: #16325B;
  --accent: #FF6B00;
  --accent-soft: #FFB24C;
  --neon: #39FF14;
  --text-hi: #F5F7FA;
  --text-mid: #B0C4DE;
  --text-low: #8B9CB8;
  --wine: #A32136;
  --line: rgba(139, 156, 184, 0.26);
  --rail-w: 88px;
  --panel-w: 136px;
  --container: 1200px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-float: 0 18px 40px rgba(5, 16, 32, 0.55);
  --font-display: "Oswald", "DIN Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

/* ---------- 2. Reset / 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-hi);
  background:
    radial-gradient(1100px 420px at 88% -4%, rgba(255, 107, 0, 0.08), transparent 62%),
    radial-gradient(900px 400px at -6% 18%, rgba(57, 255, 20, 0.05), transparent 58%),
    var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text-hi);
}

p { margin: 0.6em 0; }

a {
  color: var(--neon);
  text-decoration: none;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, padding 0.22s ease;
}

a:hover { color: var(--accent); }

ul, ol { padding-left: 1.25rem; }

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent); color: #ffffff; }

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

.site-main:focus { outline: none; }
section[id] { scroll-margin-top: 76px; }

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -240%);
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  z-index: 300;
  box-shadow: 0 8px 28px rgba(5, 16, 32, 0.6);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: #fff;
}

/* ---------- 4. 品牌标识 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-hi);
  flex: none;
}

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

.brand__mark {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 38px;
  height: 38px;
  padding: 8px 6px;
  background: linear-gradient(140deg, var(--accent) 0%, var(--wine) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  flex: none;
}

.brand__mark b {
  display: block;
  width: 4px;
  background: #fff;
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
}

.brand__mark b:nth-child(1) { height: 55%; }
.brand__mark b:nth-child(2) { height: 96%; }
.brand__mark b:nth-child(3) { height: 74%; }

.brand__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: inherit;
  white-space: nowrap;
}

.brand__text small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--neon);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- 5. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(57, 255, 20, 0.1);
  z-index: 200;
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--neon));
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.55);
  transition: width 0.08s linear;
}

/* ---------- 6. 头部框架：左侧导航栏 ---------- */
.site-header {
  position: relative;
  z-index: 150;
}

.frame-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail-w);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px 0 14px;
  background:
    repeating-linear-gradient(180deg, rgba(57, 255, 20, 0.028) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #071528, #0A1B33);
  border-right: 1px solid var(--line);
  z-index: 160;
}

.frame-rail .brand,
.brand--rail {
  flex-direction: column;
  gap: 7px;
  padding: 2px 0 16px;
  text-align: center;
  border-bottom: 1px solid rgba(139, 156, 184, 0.16);
  margin: 0 8px;
}

.frame-rail .brand__text strong,
.brand--rail .brand__text strong {
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.frame-rail .brand__text small,
.brand--rail .brand__text small {
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  margin: 0 auto;
}

/* 主导航 */
.rail-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
  padding: 12px 0;
  overflow-y: auto;
}

.rail-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 2px;
  border-radius: 10px;
  color: var(--text-mid);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.rail-nav__idx {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  color: var(--text-low);
  transition: color 0.24s ease;
}

.rail-nav__name {
  white-space: nowrap;
}

.rail-nav__link:hover {
  color: var(--text-hi);
  background: rgba(57, 255, 20, 0.06);
}

.rail-nav__link:hover .rail-nav__idx { color: var(--neon); }

.rail-nav__link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.2), rgba(255, 107, 0, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.18);
}

.rail-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.6);
}

.rail-nav__link[aria-current="page"] .rail-nav__idx { color: var(--accent); }

/* 导航底部状态 */
.rail-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 14px 8px 6px;
  border-top: 1px solid rgba(139, 156, 184, 0.16);
}

.rail-foot .streamline { height: 26px; }

.rail-foot__ping {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-low);
}

.rail-foot__ping i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 1.9s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- 7. 头部框架：右侧迷你数据面板 ---------- */
.frame-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--panel-w);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 20px 12px;
  z-index: 155;
  pointer-events: none;
}

.frame-panel > * { pointer-events: auto; }

.frame-panel__stream {
  height: 46px;
  flex: none;
  align-self: center;
  opacity: 0.75;
}

.mini-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 12px;
  background: rgba(22, 50, 91, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
  background: rgba(22, 50, 91, 0.98);
}

.mini-card--league { border-left-color: var(--accent); }
.mini-card--fav { border-left-color: var(--neon); }
.mini-card--status { border-left-color: var(--accent-soft); }

.mini-card__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-low);
}

.mini-card__value {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-hi);
}

.mini-card--league .mini-card__value { color: var(--accent-soft); }
.mini-card--fav .mini-card__value { color: var(--neon); }

.mini-card__meta {
  font-size: 10px;
  color: var(--text-mid);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--neon);
}

.status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 1.8s ease-in-out infinite;
}

.status-badge em { font-style: normal; }

/* 返回顶部 */
.btn-backtop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border: 1px solid rgba(57, 255, 20, 0.38);
  background: rgba(5, 16, 32, 0.78);
  border-radius: 999px;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 18px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn-backtop:hover {
  border-color: var(--neon);
  background: rgba(57, 255, 20, 0.1);
}

.btn-backtop.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- 8. 移动端顶栏 + 抽屉 ---------- */
.mobile-bar {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(139, 156, 184, 0.3);
  border-radius: 999px;
  background: rgba(22, 50, 91, 0.5);
  color: var(--text-hi);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--neon);
  background: rgba(22, 50, 91, 0.9);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 17px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars i {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: top 0.28s ease, transform 0.28s ease, opacity 0.28s ease;
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars i { top: 5px; }
.nav-toggle__bars::after { top: 10px; }

.nav-toggle.is-active .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle.is-active .nav-toggle__bars i { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .mobile-bar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: rgba(5, 16, 32, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 170;
  }

  .mobile-bar .brand__mark { width: 32px; height: 32px; padding: 6px 5px; }
  .mobile-bar .brand__text strong { font-size: 1.05rem; }
  .mobile-bar .brand__text small { font-size: 0.5rem; }

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

  .frame-rail {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    padding: 12px 14px 16px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  }

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

  .frame-rail .brand { display: none; }

  .rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(139, 156, 184, 0.16);
  }

  .rail-nav__link {
    flex-direction: row;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(139, 156, 184, 0.22);
    border-radius: 999px;
    font-size: 13px;
  }

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

  .rail-nav__link[aria-current="page"]::before { display: none; }

  .rail-foot { display: none; }

  /* 右侧面板在移动端变为底部数据坞 */
  .frame-panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: rgba(5, 16, 32, 0.86);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 156, 184, 0.18);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(5, 16, 32, 0.55);
    overflow-x: auto;
    z-index: 145;
    pointer-events: auto;
  }

  .frame-panel__stream { display: none; }

  .mini-card {
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    background: transparent;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    white-space: nowrap;
  }

  .mini-card:hover { transform: none; background: transparent; }

  .mini-card__label { display: none; }

  .mini-card__value { font-size: 13px; line-height: 1; }

  .mini-card--league .mini-card__value::before {
    content: "联赛 ";
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 11px;
    color: var(--text-mid);
  }

  .mini-card--fav .mini-card__value::before {
    content: "关注 ";
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 11px;
    color: var(--text-mid);
  }

  .mini-card__meta { display: none; }

  .status-badge { font-size: 10px; }

  .btn-backtop {
    width: 34px;
    height: 34px;
    flex: none;
    margin-left: 4px;
    border-radius: 999px;
    border-color: rgba(255, 107, 0, 0.5);
    color: var(--accent);
    background: rgba(255, 107, 0, 0.08);
    font-size: 15px;
    opacity: 0;
    transform: translateY(4px);
  }
}

/* ---------- 9. 主内容容器 ---------- */
.site-main {
  display: block;
  width: 100%;
  min-height: 60vh;
  position: relative;
}

@media (min-width: 1024px) {
  .site-main {
    padding-left: var(--rail-w);
    padding-right: var(--panel-w);
  }
}

@media (max-width: 1023px) {
  .site-main { padding-top: 60px; padding-bottom: 68px; }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding: 48px 0; }
.section--tight { padding: 28px 0; }

@media (min-width: 768px) {
  .section { padding: 72px 0; }
  .section--tight { padding: 40px 0; }
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(139, 156, 184, 0.45);
}

.breadcrumbs a { color: var(--text-mid); }
.breadcrumbs a:hover { color: var(--neon); }
.breadcrumbs [aria-current="page"] { color: var(--accent-soft); }

/* ---------- 11. 通用网格 ---------- */
.rich-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 640px) {
  .rich-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .rich-grid--2 { gap: 26px; }
  .rich-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

/* ---------- 12. 按钮体系 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

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

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { color: #fff; background: #ff7a20; box-shadow: 0 10px 26px rgba(255, 107, 0, 0.35); }

.btn--green { background: var(--neon); color: var(--bg-night); }
.btn--green:hover { color: var(--bg-night); box-shadow: 0 10px 26px rgba(57, 255, 20, 0.28); }

.btn--ghost {
  background: transparent;
  color: var(--accent-soft);
  border-color: rgba(255, 107, 0, 0.5);
}

.btn--ghost:hover { background: rgba(255, 107, 0, 0.1); color: var(--accent-soft); }

.btn--sm { padding: 7px 16px; font-size: 13px; }

/* ---------- 13. 图片容器 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background:
    linear-gradient(135deg, rgba(22, 50, 91, 0.9), rgba(5, 16, 32, 0.96)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(139, 156, 184, 0.08) 10px 11px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--portrait { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }

.img-frame__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-low);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.img-frame__ph::after {
  content: "IMG";
  padding: 7px 16px;
  border: 1px dashed rgba(139, 156, 184, 0.5);
  border-radius: 999px;
}

/* ---------- 14. 卡片与数据组件 ---------- */
.panel--cut {
  position: relative;
  background: linear-gradient(160deg, rgba(22, 50, 91, 0.92), rgba(5, 16, 32, 0.9));
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow-float);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-hi);
}

.stat-value--accent { color: var(--accent); }
.stat-value--neon { color: var(--neon); }

/* ---------- 15. 数据流装饰线 ---------- */
.streamline {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.1), rgba(57, 255, 20, 0.45), rgba(255, 107, 0, 0.1));
  overflow: hidden;
}

.streamline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(245, 247, 250, 0.5), transparent);
}

.streamline--vertical {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(57, 255, 20, 0.12), rgba(255, 107, 0, 0.55));
}

.streamline--vertical::after {
  top: -40%;
  bottom: auto;
  left: 0;
  right: 0;
  width: 100%;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(245, 247, 250, 0.5), transparent);
}

/* ---------- 16. 关注按钮协议 ---------- */
[data-fav-btn] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(139, 156, 184, 0.3);
  border-radius: 999px;
  background: rgba(22, 50, 91, 0.7);
  color: var(--text-mid);
  font-size: 14px;
  transition: border-color 0.24s ease, color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

[data-fav-btn]::before {
  content: "☆";
  font-size: 15px;
  line-height: 1;
}

[data-fav-btn]:hover {
  border-color: var(--accent);
  color: var(--text-hi);
}

[data-fav-btn].is-faved {
  border-color: rgba(255, 107, 0, 0.55);
  background: rgba(255, 107, 0, 0.12);
  color: var(--accent-soft);
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.25);
}

[data-fav-btn].is-faved::before { content: "★"; }

/* ---------- 17. 滚动显现协议 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

html.js [data-reveal][data-reveal="left"] { transform: translateX(-32px); }
html.js [data-reveal][data-reveal="right"] { transform: translateX(32px); }

html.js [data-reveal].is-visible,
html.js [data-reveal][data-reveal="left"].is-visible,
html.js [data-reveal][data-reveal="right"].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 18. 页脚 ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(900px 320px at 82% 0%, rgba(57, 255, 20, 0.05), transparent 62%),
    repeating-linear-gradient(45deg, rgba(139, 156, 184, 0.018) 0 2px, transparent 2px 14px),
    var(--bg-night);
  border-top: 1px solid rgba(57, 255, 20, 0.24);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--neon) 60%, transparent);
  opacity: 0.5;
  pointer-events: none;
}

.footer-core {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: calc(var(--container) + var(--rail-w) + var(--panel-w));
  margin: 0 auto;
  padding: 52px 24px 36px;
}

@media (min-width: 640px) {
  .footer-core { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-core {
    grid-template-columns: 1.2fr 1fr 0.9fr 1.1fr;
    gap: 40px;
    margin-left: calc(var(--rail-w) + 24px);
    margin-right: calc(var(--panel-w) + 24px);
    padding-left: 0;
    padding-right: 0;
  }
}

.footer-brand .brand { margin-bottom: 14px; }

.footer-trust {
  max-width: 36ch;
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--neon);
}

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

.footer-list a {
  position: relative;
  display: inline-block;
  padding-left: 16px;
  color: var(--text-mid);
  font-size: 14px;
  transition: color 0.24s ease, padding-left 0.24s ease;
}

.footer-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: background 0.24s ease, transform 0.24s ease;
}

.footer-list a:hover { color: var(--neon); padding-left: 20px; }
.footer-list a:hover::before { background: var(--neon); transform: translateY(-50%) rotate(90deg); }

.footer-contact li {
  display: grid;
  gap: 1px;
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.5;
}

.footer-contact li span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-low);
}

.footer-servicetime {
  margin: 12px 0 0;
  padding-left: 10px;
  border-left: 2px solid rgba(57, 255, 20, 0.4);
  font-size: 12px;
  color: var(--text-low);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(139, 156, 184, 0.14);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
}

@media (min-width: 1024px) {
  .footer-bottom {
    margin-left: calc(var(--rail-w) + 24px);
    margin-right: calc(var(--panel-w) + 24px);
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 1023px) {
  .site-footer { padding-bottom: 64px; }
}

.footer-bottom p { margin: 0; }

.footer-copy { color: var(--text-mid); }
.footer-icp { color: var(--text-low); }
.footer-source { color: var(--text-low); margin-left: auto; }

/* ---------- 19. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .brand__mark b,
  .rail-foot__ping i,
  .status-badge i,
  .streamline::after,
  .streamline--vertical::after {
    animation: none !important;
  }

  html.js [data-reveal],
  html.js [data-reveal][data-reveal="left"],
  html.js [data-reveal][data-reveal="right"] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress i { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand__mark b:nth-child(1) { animation: eq 1.1s ease-in-out infinite; }
  .brand__mark b:nth-child(2) { animation: eq 1.5s ease-in-out infinite reverse; }
  .brand__mark b:nth-child(3) { animation: eq 1.3s ease-in-out infinite; }

  .streamline::after { animation: streamx 3.4s ease-in-out infinite; }
  .streamline--vertical::after { animation: streamy 3.4s ease-in-out infinite; }
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.65); }
  50% { transform: scaleY(1.06); }
}

@keyframes streamx {
  0% { left: -40%; opacity: 0; }
  25% { opacity: 1; }
  100% { left: 112%; opacity: 0; }
}

@keyframes streamy {
  0% { top: -40%; opacity: 0; }
  25% { opacity: 1; }
  100% { top: 112%; opacity: 0; }
}
