/* ==========================================================================
   乐动赛场 / assets/site.css
   共享外壳：reset、变量、中文排版、头部、页脚、基础组件
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, address { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

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

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

/* ---------- 设计变量 ---------- */
:root {
  --night: #0A2620;
  --deep: #12382F;
  --grass: #1E5142;
  --orange: #FF6B1A;
  --orange-soft: #FFA45C;
  --ice: #6FD3E8;
  --cream: #F3EFE4;
  --white: #FFFFFF;
  --graphite: #0D1512;
  --sage: #8EA79E;

  --line: rgba(111, 211, 232, 0.2);
  --line-soft: rgba(111, 211, 232, 0.12);
  --ink-on-orange: #14100A;

  --rail-w: 72px;
  --wrap: 1120px;
  --gap: 24px;

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;

  --font-title: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-fast: 140ms;
  --t-mid: 200ms;
  --t-slow: 260ms;
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

h1 { font-size: clamp(30px, 4.6vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 20px; }

p { max-width: 40em; }

strong, b { font-weight: 700; }

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

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

/* ---------- 焦点 ---------- */
:focus { outline: none; }

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--ink-on-orange);
  font-weight: 800;
  font-size: 15px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top var(--t-fast) ease;
}

.skip-link:focus { top: 0; }

/* ---------- 通用容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 40px);
  padding-right: clamp(18px, 4vw, 40px);
}

.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.75;
}

.prose p + p { margin-top: 1.75em; }

.breath { height: clamp(48px, 7vw, 96px); }

#main-content { scroll-margin-top: 90px; }

/* ---------- 滚动进度条（JS 创建） ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--orange), var(--ice));
  transition: width 80ms linear;
  pointer-events: none;
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--night);
}

/* --- 左侧品牌轨道 --- */
.rail {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 22px;
  background: var(--deep);
  border-right: 1px solid var(--line);
}

.rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 4px 4px;
}

.rail-brand {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.34em;
  color: var(--white);
  padding: 4px 0;
  transition: color var(--t-fast) ease;
}

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

.rail-rule {
  flex: 1 1 auto;
  width: 1px;
  margin: 18px 0;
  background: linear-gradient(180deg, transparent, var(--ice), transparent);
  opacity: 0.5;
}

.rail-note {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ice);
}

/* --- 移动导航按钮 --- */
.nav-toggle {
  display: none;
  position: absolute;
  top: 0; right: 0;
  z-index: 70;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 15px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  background: rgba(10, 38, 32, 0.6);
  border-radius: 0 0 0 var(--r-md);
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
}

.nav-toggle:hover { color: var(--orange-soft); background: rgba(255, 107, 26, 0.14); }

.nav-toggle-bars {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: transform var(--t-mid) ease, opacity var(--t-fast) ease;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* --- 居中刊头 --- */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 38px clamp(18px, 4vw, 40px) 24px;
}

.masthead-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.masthead-side:first-child { justify-content: flex-start; }
.masthead-side:last-child { justify-content: flex-end; }

.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(30, 81, 66, 0.9);
  border: 1px solid var(--line-soft);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mono-tag--ice {
  background: rgba(111, 211, 232, 0.09);
  border-color: rgba(111, 211, 232, 0.45);
  color: var(--ice);
}

.masthead-brand {
  display: block;
  text-align: center;
  padding: 0 8px;
}

.masthead-name {
  display: block;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--white);
}

.masthead-name::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--orange);
}

.masthead-tagline {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--sage);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(111, 211, 232, 0.28);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background var(--t-fast) ease, transform var(--t-fast) ease;
}

.icon-link:hover {
  color: var(--orange-soft);
  border-color: var(--orange);
  background: rgba(255, 107, 26, 0.1);
  transform: translateY(-2px);
}

.icon-link-svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* --- 赛程提示条 --- */
.ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 11px clamp(18px, 4vw, 40px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(18, 56, 47, 0.55);
  font-size: 14px;
  color: var(--sage);
}

.ticker-pulse {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: tickPulse 1.2s ease-out infinite;
}

@keyframes tickPulse {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(1.65); opacity: 0.35; }
  100% { transform: scale(1);   opacity: 1; }
}

.ticker-text {
  flex: 1 1 auto;
  max-width: none;
  color: var(--cream);
  line-height: 1.6;
}

.ticker-text .mono { color: var(--ice); font-weight: 700; }

.ticker-link {
  flex: none;
  font-size: 14px;
  font-weight: 800;
  color: var(--orange);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.ticker-link:hover { color: var(--orange-soft); border-bottom-color: currentColor; }

/* --- 居中栏目导航 --- */
.site-nav {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 12px 0 4px;
}

.site-nav-item { position: relative; }

.site-link {
  display: block;
  position: relative;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
}

.site-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-mid) ease;
}

.site-link:hover {
  color: var(--orange-soft);
  background: rgba(255, 107, 26, 0.08);
}

.site-link:hover::after { transform: scaleX(1); }

.site-link[aria-current="page"] { color: var(--orange); }

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

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  padding: 60px 0 28px;
  background: var(--deep);
  border-top: 1px solid var(--line);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px 36px;
  align-items: start;
}

.footer-brand {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--grass);
  border: 1px solid rgba(111, 211, 232, 0.16);
  rotate: -0.6deg;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.footer-logo:hover { color: var(--orange-soft); }

.footer-summary {
  margin-top: 12px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(243, 239, 228, 0.82);
}

.footer-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-facts li {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 38, 32, 0.62);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.footer-facts .mono { color: var(--orange); font-weight: 700; }

.footer-heading {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
}

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

.footer-links a {
  font-size: 15px;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.footer-links a:hover {
  color: var(--orange-soft);
  border-bottom-color: currentColor;
}

.footer-contact-list li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--sage);
}

.footer-contact-list li + li { margin-top: 10px; }

.footer-contact-list .mono {
  color: var(--cream);
  letter-spacing: 0.04em;
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--sage);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal a {
  color: var(--ice);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.footer-legal a:hover {
  color: var(--orange-soft);
  border-bottom-color: currentColor;
}

.footer-icp {
  max-width: none;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.footer-copy {
  max-width: none;
  margin-left: auto;
}

/* --- 固定返回入口 --- */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink-on-orange);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-mid) ease, transform var(--t-mid) ease, background var(--t-fast) ease,
              visibility 0s linear var(--t-mid);
}

.fab.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--t-mid) ease, transform var(--t-mid) ease, background var(--t-fast) ease,
              visibility 0s linear 0s;
}

.fab:hover { background: var(--orange-soft); }

.fab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-on-orange);
  flex: none;
}

/* ==========================================================================
   基础组件
   ========================================================================== */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, transform var(--t-fast) ease;
}

.btn--primary {
  background: var(--orange);
  color: var(--ink-on-orange);
}

.btn--primary:hover { background: var(--orange-soft); transform: translateY(-2px); }

.btn--ghost {
  border: 1px solid var(--ice);
  color: var(--ice);
  background: transparent;
}

.btn--ghost:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(111, 211, 232, 0.12);
}

.btn--quiet { color: var(--sage); }
.btn--quiet:hover { color: var(--orange-soft); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

/* 卡片 */
.card {
  position: relative;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--deep);
  border: 1px solid var(--line-soft);
  transition: transform var(--t-fast) ease, border-color var(--t-fast) ease, background var(--t-fast) ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: rgba(30, 81, 66, 0.75);
}

.card--tilt { rotate: -1.4deg; }
.card--tilt-r { rotate: 1.6deg; }

.card--tilt:hover,
.card--tilt-r:hover { rotate: 0deg; }

/* 图片容器 */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(111, 211, 232, 0.22), transparent 60%),
    linear-gradient(145deg, var(--grass), var(--deep) 70%);
  aspect-ratio: 16 / 9;
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 13px 13px;
}

.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--round { aspect-ratio: 1 / 1; border-radius: 50%; }

.media-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 16px 16px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(10, 38, 32, 0.9));
}

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sage);
}

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

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(142, 167, 158, 0.6);
}

.breadcrumbs a {
  color: var(--ice);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.breadcrumbs a:hover { color: var(--orange-soft); border-bottom-color: currentColor; }

/* 分区标题组 */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 24px;
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--white);
}

/* 分区 */
.section { padding: clamp(40px, 6vw, 72px) 0; }

.section--cream {
  background: var(--cream);
  color: var(--graphite);
}

.section--cream h1,
.section--cream h2,
.section--cream h3,
.section--cream .section-title { color: var(--graphite); }

.section--cream .eyebrow { color: var(--grass); }

.section--cream .card {
  background: var(--white);
  border-color: rgba(13, 21, 18, 0.12);
  color: var(--graphite);
}

.section--cream .card:hover { border-color: var(--orange); }

/* 网格 */
.grid {
  display: grid;
  gap: var(--gap);
}

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

/* 比分芯片 */
.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  border-radius: var(--r-md);
  background: rgba(10, 38, 32, 0.72);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.score-chip b { color: var(--orange); font-weight: 700; }

/* 进入视口的显现 */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}

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

/* 桌面端为固定左轨让出空间 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

/* ==========================================================================
   响应式：平板与手机
   ========================================================================== */
@media (max-width: 1023px) {
  .rail {
    position: static;
    width: 100%;
    height: 40px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 0 66px 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail::after { opacity: 0.35; }

  .rail-brand {
    writing-mode: horizontal-tb;
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .rail-rule {
    flex: none;
    width: 22px;
    height: 1px;
    margin: 0;
    background: var(--ice);
  }

  .rail-note {
    writing-mode: horizontal-tb;
    font-size: 11px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--line-soft);
  }

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

  .masthead {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 22px 18px 16px;
  }

  .masthead-side { display: none; }

  .masthead-name::after { margin-top: 10px; }

  .ticker {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 18px;
    font-size: 13px;
  }

  .ticker-link { margin-left: auto; }

  .site-nav {
    padding: 0 12px;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height var(--t-slow) ease, visibility 0s linear var(--t-slow);
  }

  .site-nav[data-open] {
    max-height: 72vh;
    visibility: visible;
    overflow-y: auto;
    transition: max-height var(--t-slow) ease, visibility 0s linear 0s;
  }

  .site-nav-list {
    flex-direction: column;
    gap: 0;
    padding: 6px 0 12px;
  }

  .site-link {
    padding: 13px 12px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
  }

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

  .site-link:hover { background: rgba(255, 107, 26, 0.08); }

  .site-link[aria-current="page"] {
    background: rgba(255, 107, 26, 0.14);
    box-shadow: inset 3px 0 0 var(--orange);
  }

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

  .footer-brand { grid-column: 1 / -1; rotate: 0deg; }

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

@media (max-width: 640px) {
  body { font-size: 15px; }

  .masthead-name { font-size: clamp(28px, 9vw, 38px); }

  .masthead-tagline { font-size: 11px; letter-spacing: 0.14em; }

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

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

  .footer-copy { margin-left: 0; }

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

  .fab {
    right: 14px;
    bottom: 14px;
    padding: 11px 16px;
    font-size: 13px;
  }
}

/* ==========================================================================
   降低动态效果
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .ticker-pulse { animation: none; }

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

  .card--tilt,
  .card--tilt-r { rotate: 0deg !important; }

  .footer-brand { rotate: 0deg !important; }

  .btn--primary:hover,
  .icon-link:hover,
  .card:hover { transform: none; }
}
