/* ==========================================================================
   乐鱼·竞技 全站共享样式 /assets/site.css
   深空蓝数据仪表盘 · 斜切语言 · 目录型内容地图
   ========================================================================== */

/* ---------- 1. CSS 变量 ---------- */
:root {
  --color-primary: #0B1D3A;
  --color-primary-lift: #2A4A7F;
  --color-primary-deep: #071327;
  --color-accent: #39FF88;
  --color-accent-dark: #1A9E5C;
  --color-warm: #FF6B2C;
  --color-warm-gray: #C7CBD1;
  --color-light-gray: #E5E7EB;
  --color-white: #FFFFFF;
  --color-dark: #1F2937;
  --color-line: rgba(255, 255, 255, 0.08);
  --color-line-strong: rgba(255, 255, 255, 0.16);

  --font-display: "Arial Narrow", "Roboto Condensed", "DIN Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "JetBrains Mono", "Consolas", monospace;

  --header-h: 68px;
  --container: 1200px;
  --gutter: 24px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-warm-gray);
  background-color: var(--color-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

p {
  margin: 0 0 1em;
}

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

[hidden] {
  display: none !important;
}

/* ---------- 3. 可访问性基座 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 10px 18px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

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

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

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

#main-content {
  flex: 1 0 auto;
  padding-top: var(--header-h);
  scroll-margin-top: var(--header-h);
}

#main-content:focus {
  outline: none;
}

/* ---------- 4. 容器 ---------- */
.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- 5. 通用排版工具 ---------- */
.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.sec-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  transform: skewX(-30deg);
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: var(--color-white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sec-lead {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-warm-gray);
}

.title-skew {
  display: inline-block;
  transform: skewX(-5deg);
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-warm-gray);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(57, 255, 136, 0.25);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(26, 158, 92, 0.35);
}

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

.btn--ghost:hover {
  border-color: rgba(57, 255, 136, 0.5);
  color: var(--color-accent);
}

.btn--skew {
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

/* ---------- 7. 章节 / 栅格 / 卡片 / 背景块 ---------- */
.section {
  padding-block: 56px;
}

.section--tight {
  padding-block: 32px;
}

.section--roomy {
  padding-block: 80px;
}

.grid {
  display: grid;
  gap: var(--gutter);
}

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

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

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

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

.card {
  background: linear-gradient(180deg, rgba(42, 74, 127, 0.22), rgba(11, 29, 58, 0.6));
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 136, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.card--cut {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.diag-band {
  position: relative;
  padding-block: 72px;
  background: linear-gradient(115deg, #0E2142 0%, #1B3D77 55%, #0A172A 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%);
}

/* ---------- 8. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--color-primary-lift);
  border-radius: 6px;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 29, 58, 0) 55%, rgba(57, 255, 136, 0.12) 100%);
  pointer-events: none;
}

.media--wide {
  aspect-ratio: 21 / 9;
}

.media--landscape {
  aspect-ratio: 16 / 9;
}

.media--square {
  aspect-ratio: 1 / 1;
}

.media--tall {
  aspect-ratio: 3 / 4;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  margin: 24px 0 0;
  font-size: 13px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb__item a {
  color: var(--color-warm-gray);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

.breadcrumb__item[aria-current="page"] {
  color: var(--color-white);
  font-weight: 600;
}

/* ---------- 10. 头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(11, 29, 58, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 29, 58, 0.97);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  flex-shrink: 0;
  margin-right: auto;
}

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
}

.brand__badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  box-shadow: 0 0 16px rgba(57, 255, 136, 0.35);
}

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

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

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--color-warm-gray);
  text-transform: uppercase;
}

/* ---------- 11. 主导航 ---------- */
.site-nav {
  display: flex;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__item {
  margin: 0;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 18px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-light-gray);
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 2px;
  background: var(--color-accent);
  transform: skewX(-30deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--color-white);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: skewX(-30deg) scaleX(1);
}

/* ---------- 12. 头部工具按钮与移动菜单按钮 ---------- */
.header-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-warm-gray);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.tool-btn:hover,
.tool-btn.is-active {
  border-color: rgba(57, 255, 136, 0.55);
  color: var(--color-accent);
  background: rgba(57, 255, 136, 0.06);
}

.tool-btn__icon {
  width: 16px;
  height: 16px;
}

.tool-btn__label {
  white-space: nowrap;
}

.tool-btn__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-warm);
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.5);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(255, 107, 44, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 44, 0);
  }
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(57, 255, 136, 0.55);
}

.nav-toggle__bars {
  display: grid;
  gap: 5px;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-warm-gray);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease),
    background 0.2s var(--ease);
}

.nav-toggle:hover .nav-toggle__bar {
  background: var(--color-accent);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.5);
}

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

/* ---------- 13. 头部下拉面板 ---------- */
.header-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 1200;
  width: 370px;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0s linear 0.25s;
}

.header-panel[data-open] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0s linear 0s;
}

.header-panel--team {
  width: 340px;
}

.panel-card {
  background: linear-gradient(180deg, #10264C 0%, #0C1E3E 100%);
  border: 1px solid var(--color-line-strong);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.panel-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.panel-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.04em;
  margin: 0;
}

.panel-card__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

.panel-card__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse-green 1.6s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.5);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(57, 255, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 136, 0);
  }
}

.panel-card__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-warm-gray);
}

.panel-card__count span {
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 700;
}

/* ---------- 14. 面板标签页 ---------- */
.panel-tabs {
  display: flex;
  gap: 4px;
  margin: 0 18px 12px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 5px;
}

.panel-tabs__tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--color-warm-gray);
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.panel-tabs__tab:hover {
  color: var(--color-white);
}

.panel-tabs__tab[aria-selected="true"] {
  background: rgba(57, 255, 136, 0.14);
  color: var(--color-accent);
}

.panel-tabs__panel {
  padding: 4px 10px 10px;
}

.panel-tabs__panel:not([hidden]) {
  animation: panel-in 0.25s var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 15. 比分条目 ---------- */
.score-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-line);
  border-radius: 4px;
  color: var(--color-light-gray);
  transition: background 0.2s var(--ease);
}

.score-mini:last-child {
  border-bottom: none;
}

.score-mini:hover {
  background: rgba(57, 255, 136, 0.06);
}

.score-mini__status {
  flex: 0 0 auto;
  min-width: 64px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-warm-gray);
}

.score-mini__status--live {
  color: var(--color-accent);
}

.score-mini__status--warning {
  color: var(--color-warm);
}

.score-mini__match {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-mini__match b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-white);
  margin: 0 1px;
}

.score-mini__tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid var(--color-line-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-warm-gray);
  text-transform: uppercase;
}

.panel-card__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--color-line);
  color: var(--color-warm-gray);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.panel-card__more:hover {
  color: var(--color-accent);
  background: rgba(57, 255, 136, 0.04);
}

/* ---------- 16. 球队订阅条目 ---------- */
.team-mini-list {
  padding: 4px 10px 10px;
}

.team-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-line);
}

.team-mini:last-child {
  border-bottom: none;
}

.team-mini__info {
  flex: 1;
  display: grid;
  gap: 3px;
}

.team-mini__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
}

.team-mini__status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-warm-gray);
}

.btn-follow {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--color-accent);
  border-radius: 3px;
  background: transparent;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn-follow:hover {
  background: rgba(57, 255, 136, 0.1);
}

.btn-follow:active {
  transform: scale(0.96);
}

.btn-follow--active {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn-follow--active:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
}

/* ---------- 17. 页脚 ---------- */
.site-footer {
  margin-top: auto;
  background: var(--color-primary);
  border-top: 2px solid rgba(57, 255, 136, 0.35);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 48px;
  padding-block: 56px 48px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.06em;
  margin: 0 0 18px;
}

.footer-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-warm-gray);
  max-width: 380px;
}

.footer-trust {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 2px solid var(--color-accent);
  background: rgba(57, 255, 136, 0.05);
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-light-gray);
}

.footer-trust svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--color-accent);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  display: inline-block;
  color: var(--color-warm-gray);
  font-size: 14px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: var(--color-warm-gray);
  font-style: normal;
}

.footer-contact__item--email,
.footer-contact__item--phone {
  font-family: var(--font-mono);
}

.footer-contact__item--address {
  line-height: 1.6;
}

.footer-icp {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(199, 203, 209, 0.7);
}

.footer-bottom {
  background: var(--color-primary-deep);
  border-top: 1px solid var(--color-line);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 18px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-warm-gray);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--color-warm-gray);
  font-size: 13px;
  transition: color 0.2s var(--ease);
}

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

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1023px) {
  .tool-btn__label {
    display: none;
  }

  .tool-btn {
    padding: 0 10px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    z-index: 1100;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    padding: 24px 20px 40px;
    background: #0D2143;
    border-left: 1px solid var(--color-line-strong);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    display: block;
    visibility: hidden;
    transform: translateX(102%);
    transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  .site-nav[data-open] {
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.3s var(--ease), visibility 0s linear 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    padding: 14px 8px;
    border-bottom: 1px solid var(--color-line);
    font-size: 16px;
  }

  .site-nav__link::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 18px;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
  }

  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after {
    transform: translateY(-50%) scaleY(1);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 60px;
    --gutter: 16px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .grid--aside {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .section {
    padding-block: 40px;
  }

  .diag-band {
    padding-block: 48px;
  }

  .header-panel {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 40px 32px;
  }

  .footer-col--brand {
    grid-column: auto;
  }

  .footer-bottom__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .brand__sub {
    display: none;
  }
}

/* ---------- 19. 降低动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .tool-btn__dot,
  .panel-card__pulse {
    animation: none !important;
  }
}
