/* ==========================================================================
   777老虎游 — /assets/site.css
   共享层：reset / 设计变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

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

button { background: none; border: 0; }

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

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

/* --------------------------------------------------------------------------
   2. 设计变量
   -------------------------------------------------------------------------- */
:root {
  /* 色彩体系 */
  --ink-900: #0B0B0F;
  --ink-800: #12121A;
  --ink-700: #1C1C28;
  --ink-600: #2A2A3A;
  --amber-500: #F2A33A;
  --amber-300: #FFD27A;
  --cyan-400: #31E0D6;
  --cyan-700: #0E7F7A;
  --cream-100: #F6E9D2;
  --rose-500: #FF5C7A;
  --violet-500: #8B5CF6;

  /* 语义色 */
  --bg: var(--ink-900);
  --surface: var(--ink-800);
  --surface-2: var(--ink-700);
  --text: var(--cream-100);
  --text-dim: rgba(246, 233, 210, 0.62);
  --text-faint: rgba(246, 233, 210, 0.40);
  --line: rgba(242, 163, 58, 0.24);
  --line-soft: rgba(246, 233, 210, 0.10);

  /* 字体 */
  --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  /* 字号台阶 */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-19: 1.1875rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-body: clamp(16px, 1.05vw, 18px);

  /* 布局 */
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;

  /* 动效 */
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 0.35s;
}

/* --------------------------------------------------------------------------
   3. 基础排版
   -------------------------------------------------------------------------- */
body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(76vw 52vw at 88% -6%, rgba(242, 163, 58, 0.10), transparent 62%),
    radial-gradient(64vw 46vw at -8% 104%, rgba(14, 127, 122, 0.16), transparent 66%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

strong, b { font-weight: 800; }

::selection {
  background: var(--amber-500);
  color: var(--ink-900);
}

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }

/* --------------------------------------------------------------------------
   4. 焦点与可访问性
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 999;
  transform: translate(-50%, -160%);
  padding: 12px 24px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan-400);
  color: var(--ink-900);
  font-size: var(--fs-14);
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.22s var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: 1px;
}

/* --------------------------------------------------------------------------
   5. 头部
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 15, 0.88) 0%,
    rgba(11, 11, 15, 0.42) 64%,
    rgba(11, 11, 15, 0) 100%
  );
  border-bottom: 1px solid transparent;
  transition: background var(--dur) ease, border-color var(--dur) ease,
    backdrop-filter var(--dur) ease;
}

.site-header[data-scrolled] {
  background: rgba(11, 11, 15, 0.94);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: var(--line);
}

.header-ticks {
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(242, 163, 58, 0.45) 0 1px,
    transparent 1px 14px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  opacity: 0.55;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 44px;
  border-radius: 8px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--ink-900);
  background: linear-gradient(160deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.45),
    0 10px 26px -12px rgba(242, 163, 58, 0.95);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cream-100);
}

.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  white-space: nowrap;
}

/* 版本徽章 */
.version-badge {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--cyan-400);
  border: 1px solid rgba(49, 224, 214, 0.32);
  background: rgba(14, 127, 122, 0.16);
  box-shadow: inset 0 0 14px -6px rgba(49, 224, 214, 0.8);
}

/* 导航 */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-track {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 16px);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding: 4px 2px;
  overscroll-behavior-x: contain;
}

.nav-track::-webkit-scrollbar { display: none; }

.nav-item { flex: 0 0 auto; scroll-snap-align: center; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 12px 4px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(246, 233, 210, 0.72);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber-500), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--cream-100); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--amber-300);
  font-weight: 800;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  box-shadow: 0 0 12px -2px rgba(255, 210, 122, 0.9);
}

/* 头部 CTA */
.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 clamp(14px, 1.6vw, 22px);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ink-900);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.35),
    0 12px 30px -16px rgba(242, 163, 58, 1);
  transition: transform 0.25s var(--ease-out), filter 0.25s ease,
    box-shadow 0.25s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  filter: saturate(1.12);
  box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.6),
    0 18px 36px -16px rgba(242, 163, 58, 1);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(242, 163, 58, 0.35);
  background: rgba(28, 28, 40, 0.72);
  color: var(--cream-100);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-toggle:hover { border-color: var(--amber-500); }

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.site-header[data-open] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.site-header[data-open] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.site-header[data-open] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
.site-header[data-open] .nav-toggle {
  border-color: var(--cyan-400);
  background: rgba(14, 127, 122, 0.24);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--amber-500), var(--cyan-400));
  box-shadow: 0 0 12px -2px rgba(49, 224, 214, 0.8);
  pointer-events: none;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   6. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(72vw 40vw at 10% 0%, rgba(139, 92, 246, 0.13), transparent 64%),
    radial-gradient(64vw 42vw at 94% 104%, rgba(14, 127, 122, 0.18), transparent 66%),
    linear-gradient(180deg, rgba(18, 18, 26, 0.9), var(--ink-900) 78%);
  color: var(--text);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(246, 233, 210, 0.035) 0 1px,
    transparent 1px 6px
  );
  opacity: 0.55;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(242, 163, 58, 0.55) 0 1px,
    transparent 1px 16px
  );
  opacity: 0.6;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(28px, 4vw, 56px);
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.brand--footer { min-height: 0; }

.brand--footer .brand-name { font-size: 18px; }

.footer-tagline {
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer-stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(49, 224, 214, 0.28);
  background: rgba(14, 127, 122, 0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan-400);
}

.footer-stamp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px 1px rgba(49, 224, 214, 0.9);
}

.footer-nav-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber-500);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 36px;
  font-size: 15px;
  color: rgba(246, 233, 210, 0.72);
  transition: color 0.25s ease;
}

.footer-link::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--cyan-400);
  opacity: 0.45;
  transition: width 0.28s var(--ease-out), opacity 0.28s ease;
}

.footer-link:hover { color: var(--amber-300); }
.footer-link:hover::before { width: 24px; opacity: 1; }

.footer-contact-list {
  display: grid;
  gap: 14px;
}

.footer-contact-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.footer-contact-val {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(246, 233, 210, 0.86);
  word-break: break-word;
}

.footer-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px var(--gutter) clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.footer-copy { color: var(--text-dim); }

.footer-icp { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   7. 布局与通用组件
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--tight { padding-block: clamp(40px, 5vw, 72px); }

.section--flush { padding-block: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.section-index {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-500);
}

.section-title {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.02;
  color: var(--cream-100);
}

.section-lead {
  max-width: 44ch;
  font-size: var(--fs-16);
  color: var(--text-dim);
}

.measure { max-width: 42ch; }

.rule {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(242, 163, 58, 0.55),
    rgba(49, 224, 214, 0.22) 48%,
    transparent
  );
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 20px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.mono-num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber-300);
  text-shadow: 0 0 22px rgba(242, 163, 58, 0.35);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s ease,
    box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  color: var(--ink-900);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.35),
    0 14px 32px -18px rgba(242, 163, 58, 1);
}

.btn--ghost {
  color: var(--amber-300);
  border-color: rgba(242, 163, 58, 0.45);
  background: rgba(242, 163, 58, 0.07);
}

.btn--ghost:hover {
  border-color: var(--amber-500);
  background: rgba(242, 163, 58, 0.14);
}

.btn--cyan {
  color: var(--cyan-400);
  border-color: rgba(49, 224, 214, 0.45);
  background: rgba(14, 127, 122, 0.12);
}

.btn--cyan:hover {
  border-color: var(--cyan-400);
  background: rgba(14, 127, 122, 0.24);
}

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 20px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(246, 233, 210, 0.28);
}

.breadcrumbs a { color: var(--cyan-400); }
.breadcrumbs a:hover { color: var(--amber-300); }

/* 卡片与标签 */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(28, 28, 40, 0.94),
    rgba(18, 18, 26, 0.94)
  );
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.card:hover {
  border-color: rgba(242, 163, 58, 0.35);
  transform: translateY(-2px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(49, 224, 214, 0.3);
  background: rgba(14, 127, 122, 0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan-400);
  white-space: nowrap;
}

/* 图片容器基础规则 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--ink-700);
  background-image:
    linear-gradient(
      140deg,
      rgba(242, 163, 58, 0.16),
      rgba(14, 127, 122, 0.20) 52%,
      rgba(139, 92, 246, 0.18)
    );
  isolation: isolate;
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(11, 11, 15, 0.14) 0 1px,
      transparent 1px 4px
    ),
    radial-gradient(
      120% 80% at 82% 0%,
      rgba(49, 224, 214, 0.20),
      transparent 58%
    );
  mix-blend-mode: screen;
  opacity: 0.7;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   8. 滚动显现协议
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}

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

/* --------------------------------------------------------------------------
   9. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }

  body { background-attachment: scroll; }

  .header-inner { gap: 10px; }

  .brand-sub { display: none; }
  .version-badge { display: none; }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px var(--gutter) 22px;
    background: rgba(11, 11, 15, 0.985);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.95);
  }

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

  .nav-track {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-x: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .nav-item { width: 100%; }

  .nav-item + .nav-item { border-top: 1px solid var(--line-soft); }

  .nav-link {
    display: block;
    padding: 15px 2px;
    font-size: 16.5px;
  }

  .nav-link::after {
    bottom: 10px;
    right: auto;
    width: 0;
    transition: width 0.3s var(--ease-out);
    transform: none;
  }

  .nav-link:hover::after { width: 26px; }

  .nav-link[aria-current="page"]::after { width: 34px; }

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

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

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-tagline { max-width: none; }
  .section-head { align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   10. 减弱动效
   -------------------------------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .btn:hover,
  .header-cta:hover,
  .card:hover { transform: none; }

  .scroll-progress { box-shadow: none; }
}
