/* =============================================
   伟博体育 · 全站共享样式
   文件：/assets/site.css
   ============================================= */

:root {
  --bg-deep: #0D0F1A;
  --bg-card: #161822;
  --bg-trench: #1A2233;
  --text-light: #F2F5FF;
  --text-muted: #A8B0C0;
  --accent-green: #C6FF3A;
  --accent-blue: #00E5FF;
  --accent-amber: #FFB300;
  --gradient-line: linear-gradient(90deg, #C6FF3A, #00E5FF);
  --font-head: "DIN Condensed", "Oswald", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "DIN Alternate", "Roboto Mono", Consolas, monospace;
  --radius-card: 24px;
  --radius-pill: 999px;
  --header-h: 72px;
  --content-max: 1440px;
}

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

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

body {
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

ul[class], ol[class] {
  list-style: none;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
}

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

strong {
  color: var(--text-light);
  font-weight: 600;
}

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

h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
}

p {
  color: var(--text-muted);
}

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

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

/* ---------- 内容容器与分区 ---------- */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 64px);
}

.section {
  position: relative;
  padding-block: clamp(64px, 8vw, 120px);
}

.section--deep {
  background: var(--bg-deep);
}

.section--tint {
  background: var(--bg-card);
}

.section--trench {
  background: var(--bg-trench);
}

.section--slant::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(-45deg, var(--accent-green) 0 8px, transparent 8px 24px);
  opacity: 0.65;
}

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px));
  padding-bottom: clamp(32px, 5vw, 64px);
  background: var(--bg-deep);
}

.page-hero__title {
  font-size: clamp(32px, 4.5vw, 56px);
  max-width: 18em;
}

.page-hero__lead {
  max-width: 34em;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- 栅格 ---------- */

.grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
}

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

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

.grid--asym {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--accent-green);
  color: var(--bg-deep);
}

.btn--primary:hover {
  color: var(--bg-deep);
  box-shadow: 0 10px 30px rgba(198, 255, 58, 0.28);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(242, 245, 255, 0.28);
}

.btn--ghost:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(198, 255, 58, 0.06);
  transform: translateY(-2px);
}

.btn--blue {
  background: var(--accent-blue);
  color: var(--bg-deep);
}

.btn--blue:hover {
  color: var(--bg-deep);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
}

/* ---------- 卡片 ---------- */

.card {
  position: relative;
  background: linear-gradient(165deg, var(--bg-card), rgba(22, 24, 34, 0.88));
  border: 1px solid rgba(168, 176, 192, 0.15);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 32px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(198, 255, 58, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.card__title {
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.card__text {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- 标签 ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.badge--green {
  background: rgba(198, 255, 58, 0.1);
  color: var(--accent-green);
  border-color: rgba(198, 255, 58, 0.3);
}

.badge--amber {
  background: rgba(255, 179, 0, 0.12);
  color: var(--accent-amber);
  border-color: rgba(255, 179, 0, 0.32);
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.breadcrumb li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-green);
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--accent-blue);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--text-muted);
}

/* ---------- 数据与工具 ---------- */

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

.stat {
  display: grid;
  gap: 4px;
}

.stat__value {
  font-family: var(--font-data);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue), transparent);
  opacity: 0.4;
  margin-block: 24px;
}

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

/* ---------- 图片占位与底纹 ---------- */

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(168, 176, 192, 0.16);
  background: linear-gradient(145deg, rgba(26, 34, 51, 0.85), rgba(13, 15, 26, 0.95));
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
}

.media-frame::after {
  content: attr(data-caption);
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(13, 15, 26, 0.78);
  border: 1px solid rgba(168, 176, 192, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.pitch-ring {
  position: relative;
  pointer-events: none;
  width: min(520px, 74vw);
  aspect-ratio: 1;
  border: 2px solid rgba(198, 255, 58, 0.18);
  border-radius: 50%;
}

.pitch-ring::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-green);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 22px rgba(198, 255, 58, 0.5);
}

.pitch-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 2px;
  background: rgba(242, 245, 255, 0.35);
  transform: translate(-50%, -50%);
}

.bg-grid {
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- 固定顶栏 ---------- */

.skip-link {
  position: fixed;
  top: -64px;
  left: 18px;
  z-index: 1001;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-green);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(13, 15, 26, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(198, 255, 58, 0.12);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-line);
  transform: scaleX(0);
  transform-origin: left top;
  z-index: 5;
  will-change: transform;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

/* ---------- 品牌 ---------- */

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
}

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

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent-green);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(198, 255, 58, 0.12), rgba(0, 229, 255, 0.08));
}

.brand__mark::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  background: rgba(242, 245, 255, 0.5);
  transform: translateY(-50%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  background: var(--accent-green);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

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

.brand__name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand__suffix {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* ---------- 主导航 ---------- */

.site-nav {
  justify-self: center;
}

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

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-light);
}

.nav__link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  transform: translateX(-50%) scale(0);
  transition: transform 0.25s ease;
}

.nav__link:hover {
  color: var(--accent-green);
  background-color: rgba(198, 255, 58, 0.08);
}

.nav__link:hover::before,
.nav__link[aria-current="page"]::before {
  transform: translateX(-50%) scale(1);
}

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

/* ---------- 顶栏动作与图标 ---------- */

.header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(242, 245, 255, 0.2);
  background: rgba(13, 15, 26, 0.45);
  color: var(--text-light);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.header__action:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(198, 255, 58, 0.08);
}

.header__action.is-spinning .icon {
  animation: spin 0.8s ease;
}

.header__action.is-shake {
  animation: shake 0.4s ease;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 移动导航按钮 ---------- */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(242, 245, 255, 0.2);
  background: rgba(13, 15, 26, 0.45);
  color: var(--text-light);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

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

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--bg-trench);
  margin-top: clamp(48px, 7vw, 96px);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue) 55%, transparent);
  z-index: 2;
}

.site-footer__deco {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 2px solid rgba(0, 229, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.site-footer__deco::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(198, 255, 58, 0.7);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px rgba(198, 255, 58, 0.4);
}

.site-footer__deco::after {
  content: "";
  position: absolute;
  left: 110px;
  right: 110px;
  top: 50%;
  height: 2px;
  background: rgba(242, 245, 255, 0.12);
  transform: translateY(-50%);
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) 0.7fr 0.7fr 1.2fr;
  gap: clamp(28px, 3vw, 48px);
  padding-block: clamp(48px, 6vw, 72px) clamp(28px, 4vw, 44px);
}

.footer-gate {
  position: relative;
}

.footer-gate--contact {
  padding-right: clamp(0px, 2vw, 24px);
}

.footer-gate--brand .footer-gate__desc {
  max-width: 36em;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-gate__title {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(168, 176, 192, 0.18);
  position: relative;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.footer-gate__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 26px;
  height: 2px;
  background: var(--accent-green);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
}

.footer-brand:hover {
  color: var(--accent-green);
}

.footer-brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent-green);
  border-radius: 10px;
  background: rgba(198, 255, 58, 0.08);
}

.footer-brand__mark::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  background: rgba(242, 245, 255, 0.55);
  transform: translateY(-50%);
}

.footer-brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  background: var(--accent-green);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.footer-brand__name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-trust {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36em;
}

.footer-trust__icon {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 12px rgba(198, 255, 58, 0.8);
}

.footer-linklist {
  display: grid;
  gap: 10px;
}

.footer-linklist a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-linklist a:hover {
  color: var(--accent-green);
  padding-left: 4px;
}

.footer-contactlist {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-contactlist li {
  display: grid;
  grid-template-columns: 3em 1fr;
  gap: 8px;
  line-height: 1.5;
}

.footer-contactlist__label {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
}

.footer-contact__note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(198, 255, 58, 0.16);
  border-radius: 14px;
  background: rgba(198, 255, 58, 0.05);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 30em;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: center;
  padding-block: 20px 24px;
  border-top: 1px solid rgba(168, 176, 192, 0.14);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom__copy,
.footer-bottom__icp,
.footer-bottom__trust {
  margin: 0;
}

.footer-bottom__icp {
  font-family: var(--font-data);
  letter-spacing: 0.04em;
}

.footer-bottom__trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom__trust::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

/* ---------- 滚动显现 ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

html.js [data-reveal-delay="1"] {
  transition-delay: 90ms;
}

html.js [data-reveal-delay="2"] {
  transition-delay: 180ms;
}

html.js [data-reveal-delay="3"] {
  transition-delay: 270ms;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1023px) {
  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    justify-self: stretch;
    background: rgba(13, 15, 26, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(198, 255, 58, 0.2);
    padding: 16px clamp(24px, 4vw, 64px) 28px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

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

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

  .nav__link {
    min-height: 46px;
    padding: 8px 18px;
    justify-content: flex-start;
    font-size: 16px;
  }

  .nav__link::before {
    top: 50%;
    bottom: auto;
    left: 12px;
    transform: translateY(-50%) scale(0);
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .header__action {
    display: none;
  }

  .brand__suffix {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__deco {
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -120px;
  }
}

@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg-deep);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--bg-trench);
    border-radius: 10px;
    border: 2px solid var(--bg-deep);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(198, 255, 58, 0.4);
  }
}

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

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

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

  html.js [data-reveal],
  html.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .header__action.is-spinning .icon,
  .header__action.is-shake {
    animation: none;
  }
}
