/* =========================================================
   完美体育入口 · 共享站点样式 /assets/site.css
   夜间赛事指挥中心：深墨蓝底 / 电光青主脉 / 赛道橙爆发
   ========================================================= */

/* ---------- 1. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #A9FFF7;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink-900: #06131F;
  --ink-800: #0A1B2B;
  --ink-700: #10283D;
  --cyan-400: #3DE8DA;
  --cyan-200: #A9FFF7;
  --orange-500: #FF7A2F;
  --paper-100: #F2E8D5;
  --mist-300: #A9B7C6;
  --text: #EAF6F8;

  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(48px, 7vw, 92px);
  --fs-h2: clamp(32px, 4vw, 52px);
  --fs-h3: 24px;
  --fs-body: 17px;
  --fs-label: 12px;
  --fs-data: 15px;

  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-gap: clamp(64px, 10vw, 128px);
  --note-width: 200px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --line: rgba(169, 183, 198, 0.18);
  --line-cyan: rgba(61, 232, 218, 0.22);
  --line-strong: rgba(61, 232, 218, 0.45);
  --glass: rgba(16, 40, 61, 0.55);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- 3. 页面基调 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(880px 520px at 84% -8%, rgba(61, 232, 218, 0.11), transparent 62%),
    radial-gradient(700px 460px at 6% 10%, rgba(255, 122, 47, 0.08), transparent 64%),
    linear-gradient(180deg, #06131F 0%, #081725 52%, #06131F 100%);
}

/* ---------- 4. 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
}

p {
  max-width: 68ch;
}

strong, b {
  font-weight: 700;
  color: var(--cyan-200);
}

::selection {
  background: rgba(61, 232, 218, 0.28);
  color: #ffffff;
}

/* ---------- 5. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-gap);
}

.section:first-of-type {
  padding-top: clamp(28px, 5vw, 64px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(12px, 2vw, 28px);
  padding-top: 22px;
  margin-bottom: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line);
}

.section-index {
  font-family: var(--font-mono);
  font-size: var(--fs-data);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan-400);
  flex: 0 0 auto;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

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

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(28px, 4vw, 56px);
  background: linear-gradient(90deg, var(--line-cyan), var(--line) 55%, transparent);
}

/* ---------- 6. 文本组件 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-200);
}

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-300);
}

.data {
  font-family: var(--font-mono);
  font-size: var(--fs-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--cyan-200);
}

.lead {
  max-width: 62ch;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.85;
  color: rgba(234, 246, 248, 0.86);
}

.prose {
  max-width: 72ch;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h3 {
  margin-top: 2em;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.4em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--cyan-400);
}

.prose blockquote {
  border-left: 2px solid var(--orange-500);
  padding: 12px 0 12px 20px;
  color: var(--paper-100);
  background: rgba(242, 232, 213, 0.04);
}

/* ---------- 7. 链接与按钮 ---------- */
.link {
  position: relative;
  display: inline-block;
  color: var(--cyan-400);
  padding-bottom: 2px;
  text-decoration: underline;
  text-decoration-color: rgba(61, 232, 218, 0.4);
  text-underline-offset: 4px;
  transition: color 0.18s var(--ease);
}

.link:hover,
.link:focus-visible {
  color: var(--cyan-200);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn-accent {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #1A0B03;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: #FF9459;
  border-color: #FF9459;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(61, 232, 218, 0.06);
  border-color: var(--line-strong);
  color: var(--cyan-200);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(61, 232, 218, 0.15);
  border-color: var(--cyan-400);
  color: #ffffff;
}

/* ---------- 8. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(61, 232, 218, 0.08);
  color: var(--cyan-200);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

.tag--accent {
  border-color: rgba(255, 122, 47, 0.5);
  background: rgba(255, 122, 47, 0.14);
  color: #FFD7BE;
}

.tag--paper {
  border-color: transparent;
  background: var(--paper-100);
  color: var(--ink-900);
}

/* ---------- 9. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.card--glass {
  background: var(--glass);
  border-color: var(--line-cyan);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow:
    0 24px 60px -40px #000000,
    inset 0 1px 0 rgba(169, 255, 247, 0.07);
}

.card--solid {
  background: var(--ink-800);
  border-color: rgba(169, 183, 198, 0.13);
}

.card:hover,
.card:focus-within {
  border-color: rgba(255, 122, 47, 0.6);
  transform: translateY(-2px);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist-300);
}

.magnet {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-cyan);
  background: rgba(16, 40, 61, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.magnet:hover,
.magnet:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 47, 0.6);
  box-shadow: 0 28px 54px -36px #000000;
}

/* ---------- 10. 数据块 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cyan-400);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-300);
}

/* ---------- 11. 图片容器（页面阶段放图） ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(61, 232, 218, 0.16), transparent 60%),
    linear-gradient(140deg, var(--ink-700), var(--ink-900));
  aspect-ratio: 16 / 9;
}

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

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.media-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(6, 19, 31, 0.94), rgba(6, 19, 31, 0.18));
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--cyan-200);
}

/* ---------- 12. 时间轴 ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: clamp(24px, 3vw, 40px);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -34px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(61, 232, 218, 0.12);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.timeline-item:hover .timeline-node,
.timeline-item:focus-within .timeline-node {
  background: var(--cyan-400);
  box-shadow: 0 0 0 6px rgba(61, 232, 218, 0.18);
}

.timeline-body {
  max-width: 68ch;
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: clamp(18px, 2.6vw, 30px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist-300);
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(169, 183, 198, 0.5);
}

.breadcrumb-link {
  color: var(--cyan-200);
  transition: color 0.18s var(--ease);
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 14. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cyan-400);
  color: #04121C;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: top 0.18s var(--ease);
}

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

/* ---------- 15. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: clamp(10px, 1.4vw, 18px) var(--gutter);
  transition: padding 0.22s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 19, 31, 0.96) 0%, rgba(6, 19, 31, 0.74) 58%, rgba(6, 19, 31, 0) 100%);
}

.nav-capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 9px 9px 9px clamp(14px, 1.6vw, 22px);
  border-radius: 999px;
  background: rgba(10, 27, 43, 0.72);
  border: 1px solid rgba(61, 232, 218, 0.2);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 24px 60px -34px #000000,
    inset 0 1px 0 rgba(169, 255, 247, 0.08);
  transition:
    padding 0.22s var(--ease),
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.site-header[data-scrolled] .nav-capsule {
  padding-block: 5px;
  background: rgba(8, 22, 36, 0.92);
  border-color: rgba(61, 232, 218, 0.34);
  box-shadow:
    0 18px 44px -30px #000000,
    inset 0 1px 0 rgba(169, 255, 247, 0.1);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-badge {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(61, 232, 218, 0.42);
  background-image:
    repeating-linear-gradient(180deg, var(--cyan-400) 0 2px, transparent 2px 7px),
    linear-gradient(140deg, rgba(61, 232, 218, 0.2), rgba(255, 122, 47, 0.14));
  background-size: 12px 100%, 100% 100%;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

.brand-badge::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(6, 19, 31, 0.92);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.2em;
  color: var(--mist-300);
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 8px);
  flex-wrap: nowrap;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(234, 246, 248, 0.78);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
  background: rgba(61, 232, 218, 0.08);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--cyan-200);
  background: rgba(61, 232, 218, 0.12);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  flex: 0 0 auto;
  padding: 9px 18px;
  font-size: 13px;
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(61, 232, 218, 0.35);
  background: rgba(61, 232, 218, 0.06);
  color: var(--cyan-200);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan-400);
  background: rgba(61, 232, 218, 0.14);
}

.nav-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-lines span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.site-header[data-open] .nav-toggle-lines span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-lines span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--section-gap);
  background: linear-gradient(180deg, rgba(10, 27, 43, 0.62) 0%, #050F18 68%);
  border-top: 1px solid var(--line-cyan);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-400) 0%, rgba(61, 232, 218, 0) 46%, var(--orange-500) 100%);
  opacity: 0.72;
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 80px) var(--gutter) clamp(24px, 3vw, 36px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 0.85fr 1.3fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text);
}

.footer-brand-sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--cyan-200);
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.footer-col-list li + li {
  margin-top: 2px;
}

.footer-link {
  display: inline-block;
  padding: 3px 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(234, 246, 248, 0.8);
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan-200);
  padding-left: 4px;
  text-decoration: underline;
  text-decoration-color: rgba(61, 232, 218, 0.5);
  text-underline-offset: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(234, 246, 248, 0.86);
  word-break: break-word;
}

.footer-contact-label {
  flex: 0 0 auto;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.footer-note {
  margin-top: 12px;
  max-width: 40ch;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--mist-300);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist-300);
}

.footer-legal-item {
  display: inline-block;
}

/* ---------- 17. 脚本注入的界面 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-400), var(--orange-500));
  will-change: transform;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(61, 232, 218, 0.4);
  background: rgba(10, 27, 43, 0.92);
  color: var(--cyan-200);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover,
.to-top:focus-visible {
  border-color: var(--orange-500);
  color: #FFD7BE;
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1020px) {
  .site-header {
    padding-block: 10px;
  }

  .nav-capsule {
    position: relative;
    border-radius: 20px;
    padding: 10px 12px 10px 14px;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
  }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    padding: 16px;
    border-radius: 22px;
    background: rgba(10, 27, 43, 0.97);
    border: 1px solid rgba(61, 232, 218, 0.28);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 30px 70px -40px #000000;
  }

  .site-header[data-open] .site-nav {
    display: flex;
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--orange-500);
    background: rgba(61, 232, 218, 0.14);
  }

  .nav-cta {
    width: 100%;
    margin-top: 10px;
    padding: 12px 18px;
    font-size: 14px;
  }
}

@media (max-width: 960px) {
  .grid-7-5,
  .grid-5-7,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  :root {
    --fs-body: 17px;
  }

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

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-tagline {
    letter-spacing: 0.14em;
  }

  .to-top {
    padding: 9px 14px;
  }
}

@media (max-width: 400px) {
  .brand-tagline {
    display: none;
  }
}

/* ---------- 19. 降低动效 ---------- */
@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;
  }

  .card:hover,
  .card:focus-within,
  .magnet:hover,
  .magnet:focus-within,
  .btn-accent:hover,
  .to-top,
  .to-top[data-visible] {
    transform: none;
  }

  .timeline-item:hover .timeline-node,
  .timeline-item:focus-within .timeline-node {
    box-shadow: 0 0 0 4px rgba(61, 232, 218, 0.12);
  }

  .nav-link::after {
    transition: none;
  }
}
