/* ============================================================
   云体育主站 · 共享站点样式 /assets/site.css
   设计轴：侧边导览式横向层级 / 透明叠加转实色 / 深色赛场底
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 78px) + 24px);
  background-color: #070C18;
}

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

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

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

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

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

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 品牌色板 */
  --void: #070C18;
  --deep: #0D1528;
  --deep-2: #0B1324;
  --deep-3: #101B31;
  --card: #121D35;
  --legalese: #0A1020;

  --blue: #1D5DFF;
  --orange: #FF6B2C;
  --cyan: #5CFFF3;
  --violet: #8B6CFF;

  --ink: #E8EEF9;
  --ink-2: #A9B6CE;
  --line: #2B3A5C;

  --green: #35D07F;
  --amber: #FFB020;

  /* 透明衍色 */
  --blue-a12: rgba(29, 93, 255, .12);
  --blue-a22: rgba(29, 93, 255, .22);
  --cyan-a14: rgba(92, 255, 243, .14);
  --line-a60: rgba(43, 58, 92, .60);
  --line-a90: rgba(43, 58, 92, .90);

  /* 圆角 */
  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --pill: 999px;

  /* 尺度 */
  --wrap-max: 1260px;
  --gutter: clamp(18px, 4vw, 48px);
  --sec-y: clamp(56px, 8vw, 112px);
  --header-h: 78px;

  /* 字体 */
  --font-head: "Noto Sans SC", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* 阴影 */
  --shadow-lift: 0 24px 50px -30px rgba(0, 0, 0, .92);
  --shadow-card: 0 18px 40px -28px rgba(0, 0, 0, .95);
}

/* ---------- 3. 基础排版 ---------- */
html { background-color: var(--void); }

body {
  min-height: 100vh;
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(29, 93, 255, .30), transparent 62%),
    radial-gradient(760px 520px at 4% 8%, rgba(139, 108, 255, .16), transparent 66%),
    radial-gradient(900px 520px at 92% 96%, rgba(255, 107, 44, .10), transparent 70%),
    linear-gradient(168deg, #070C18 0%, #0B1324 46%, #070C18 100%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: .01em;
  color: #FFFFFF;
}

h1 { font-size: clamp(34px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 46px); }
h3 { font-size: clamp(20px, 2.1vw, 28px); }

p { max-width: 74ch; }

strong { font-weight: 800; }

a { text-decoration: none; }

::selection {
  background: rgba(92, 255, 243, .30);
  color: #FFFFFF;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.section {
  padding-block: var(--sec-y);
  position: relative;
}

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

.section--alt {
  background: linear-gradient(180deg, rgba(11, 19, 36, .0) 0%, rgba(16, 27, 49, .72) 18%, rgba(16, 27, 49, .72) 82%, rgba(11, 19, 36, .0) 100%);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

.stack > * + * { margin-top: 18px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.display {
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.005em;
  color: #FFFFFF;
}

.title-xl {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.6vw, 54px);
  font-weight: 900;
  line-height: 1.14;
  color: #FFFFFF;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 68ch;
}

.accent-line {
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 60%, var(--violet));
}

/* ---------- 5. 按钮 ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

.button--primary {
  background: linear-gradient(135deg, #2F6DFF 0%, var(--blue) 55%, #144BD8 100%);
  color: #FFFFFF;
  box-shadow: 0 16px 34px -18px rgba(29, 93, 255, .95);
}

.button--accent {
  background: var(--orange);
  color: #1A0C04;
  box-shadow: 0 16px 34px -18px rgba(255, 107, 44, .92);
}

.button--ghost {
  background: rgba(18, 29, 53, .70);
  color: var(--ink);
  border-color: var(--line);
}

.button:hover { transform: translateY(-2px); }

.button--ghost:hover {
  border-color: rgba(92, 255, 243, .55);
  color: #FFFFFF;
}

.button:active { transform: translateY(0); }

/* ---------- 6. 标签与 chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(29, 93, 255, .38);
  border-radius: var(--pill);
  background: var(--blue-a12);
  color: #9FC0FF;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.7;
}

.tag--cyan {
  background: rgba(92, 255, 243, .12);
  border-color: rgba(92, 255, 243, .42);
  color: var(--cyan);
}

.tag--orange {
  background: rgba(255, 107, 44, .14);
  border-color: rgba(255, 107, 44, .44);
  color: #FFB08F;
}

.tag--violet {
  background: rgba(139, 108, 255, .14);
  border-color: rgba(139, 108, 255, .44);
  color: #C3B2FF;
}

.tag--green {
  background: rgba(53, 208, 127, .13);
  border-color: rgba(53, 208, 127, .42);
  color: var(--green);
}

.tag--amber {
  background: rgba(255, 176, 32, .13);
  border-color: rgba(255, 176, 32, .42);
  color: var(--amber);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(18, 29, 53, .68);
  color: var(--ink-2);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.chip:hover {
  border-color: rgba(92, 255, 243, .50);
  color: var(--ink);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--blue-a22);
  border-color: rgba(92, 255, 243, .62);
  color: #FFFFFF;
}

/* ---------- 7. 卡片与网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line-a90);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(92, 255, 243, .60), rgba(29, 93, 255, .06) 46%, rgba(255, 107, 44, .52));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- 8. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #16233D 0%, #0B1324 100%);
  box-shadow: inset 0 0 0 1px var(--line-a90);
}

.media img,
.media__img,
.media picture,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }

.media--round { border-radius: var(--r-xl); }

.media--tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0) 38%, rgba(7, 12, 24, .82) 100%);
  pointer-events: none;
}

/* 占位骨架，页面阶段可替换为真实图片 */
.media--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(43, 58, 92, .35) 0 2px, transparent 2px 12px),
    radial-gradient(closest-side at 70% 30%, rgba(29, 93, 255, .28), transparent 72%);
  opacity: .9;
}

/* ---------- 9. 横向轨道 ---------- */
.rail {
  display: flex;
  gap: clamp(14px, 1.8vw, 22px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.rail > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb__link {
  color: var(--ink-2);
  text-decoration: none;
  transition: color .18s ease;
}

.breadcrumb__link:hover { color: var(--cyan); }

.breadcrumb__sep { color: var(--line); }

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--cyan);
  color: #04121A;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: top .2s ease;
}

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

/* ============================================================
   12. 页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: transparent;
  transition: background-color .34s ease, box-shadow .34s ease, backdrop-filter .34s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 12, 24, .94) 0%, rgba(7, 12, 24, .55) 62%, rgba(7, 12, 24, 0) 100%);
  transition: opacity .34s ease;
}

.site-header.is-scrolled {
  background-color: rgba(9, 15, 30, .93);
  box-shadow: 0 1px 0 var(--line-a90), 0 22px 46px -30px rgba(0, 0, 0, 1);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.site-header.is-scrolled::before { opacity: 0; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding: 12px var(--gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px 14px 14px 4px;
  background: linear-gradient(140deg, #2F6DFF 0%, #1D5DFF 42%, #0A2B8F 100%);
  box-shadow: inset 0 0 0 1px rgba(92, 255, 243, .38), 0 12px 26px -14px rgba(29, 93, 255, 1);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.brand-mark-core {
  width: 12px;
  height: 12px;
  border-radius: 4px 4px 4px 0;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(92, 255, 243, .95);
  transform: rotate(-45deg);
}

.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); }

.brand-copy { display: block; min-width: 0; }

.brand-name {
  display: block;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.18;
  color: #FFFFFF;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .20em;
  line-height: 1.5;
  color: var(--ink-2);
  white-space: nowrap;
}

/* 导航面板 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
  min-width: 0;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--pill);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s cubic-bezier(.22, 1, .36, 1);
}

.nav-link:hover {
  color: var(--ink);
  background: var(--blue-a12);
}

.nav-link[aria-current="page"] {
  color: #FFFFFF;
  background: var(--blue-a22);
  box-shadow: inset 0 0 0 1px rgba(92, 255, 243, .32);
}

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

/* 快捷入口胶囊 */
.nav-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 16px;
  border-left: 1px solid var(--line-a60);
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

.quick-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  flex: 0 0 auto;
}

.quick-pill:hover { transform: translateY(-2px); }

.quick-pill--phone {
  color: var(--cyan);
  border-color: rgba(92, 255, 243, .42);
  background: rgba(92, 255, 243, .08);
}

.quick-pill--phone:hover { background: rgba(92, 255, 243, .16); }

.quick-pill--export {
  color: #1A0C04;
  background: var(--orange);
  box-shadow: 0 10px 24px -14px rgba(255, 107, 44, 1);
}

.quick-pill--export:hover { box-shadow: 0 14px 28px -14px rgba(255, 107, 44, 1); }

.quick-pill--rules {
  color: #C3B2FF;
  border-color: rgba(139, 108, 255, .46);
  background: rgba(139, 108, 255, .10);
}

.quick-pill--rules:hover { background: rgba(139, 108, 255, .20); }

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(18, 29, 53, .88);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .10em;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.nav-toggle:hover { border-color: rgba(92, 255, 243, .55); }

.nav-toggle-box {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
}

.nav-toggle-label { line-height: 1; }

.site-header[data-open] .nav-toggle {
  border-color: rgba(92, 255, 243, .70);
  background: rgba(29, 93, 255, .22);
}

.site-header[data-open] .nav-toggle-box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 遮罩（桌面隐藏） */
.nav-scrim { display: none; }

/* 滚动进度光带 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 52%, var(--orange) 100%);
  box-shadow: 0 0 14px rgba(92, 255, 243, .75);
  transition: width .10s linear;
}

body.nav-open { overflow: hidden; }

/* ============================================================
   13. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 9vw, 120px);
  padding-top: clamp(44px, 6vw, 78px);
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 82% 0%, rgba(29, 93, 255, .22), transparent 68%),
    linear-gradient(180deg, var(--legalese) 0%, #060A14 100%);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}

.footer-glow {
  position: absolute;
  top: -220px;
  left: -10%;
  right: -10%;
  height: 380px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(29, 93, 255, .30), transparent 74%);
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) minmax(0, 2.05fr) minmax(250px, 1.30fr);
  gap: clamp(26px, 4vw, 58px);
  padding-bottom: clamp(30px, 4vw, 52px);
}

/* 页脚品牌块 */
.footer-brand { min-width: 0; }

.brand--footer { margin-bottom: 16px; }

.footer-tagline {
  max-width: 32ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

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

.footer-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--line-a90);
  border-radius: var(--pill);
  background: rgba(18, 29, 53, .72);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
}

/* 页脚导航列 */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
}

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

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.footer-links a {
  display: inline-block;
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

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

/* 联系方式 */
.footer-contact { min-width: 0; }

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

.contact-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-a60);
  border-radius: var(--r-md);
  background: rgba(18, 29, 53, .55);
}

.contact-row--stack {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.contact-row--stack .contact-value { line-height: 1.6; }

.contact-row--stack .copy-btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  color: var(--ink-2);
  white-space: nowrap;
}

.contact-value {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

.copy-btn {
  padding: 4px 12px;
  border: 1px solid rgba(92, 255, 243, .38);
  border-radius: var(--pill);
  background: rgba(92, 255, 243, .08);
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.copy-btn:hover {
  background: rgba(92, 255, 243, .20);
  border-color: rgba(92, 255, 243, .72);
}

.contact-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 36ch;
}

.copy-status {
  min-height: 20px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  opacity: 0;
  transition: opacity .22s ease;
}

.copy-status.is-on { opacity: 1; }

/* 底栏 */
.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line-a60);
  font-size: 12.5px;
  color: var(--ink-2);
}

.footer-copy { max-width: none; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.footer-icp { color: var(--ink-2); }

.footer-dot { color: var(--line); }

.footer-domain { color: var(--ink-2); }

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid rgba(92, 255, 243, .46);
  border-radius: var(--pill);
  background: rgba(11, 19, 36, .94);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 1);
  transition: opacity .28s ease, transform .28s ease, visibility .28s, background-color .2s ease, border-color .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: rgba(18, 29, 53, .98);
  border-color: var(--cyan);
}

.back-to-top-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid var(--cyan);
  flex: 0 0 auto;
}

/* ============================================================
   14. 动效：显现
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* ============================================================
   15. 响应式
   ============================================================ */
@media (max-width: 1180px) {
  .nav-quick { gap: 6px; padding-left: 12px; }
  .quick-pill { padding: 8px 12px; font-size: 12.5px; }
  .nav-link { padding: 9px 11px; font-size: 14.5px; }
}

@media (max-width: 1080px) {
  .nav-quick { display: none; }
  .site-nav { gap: 0; }
  .nav-list { margin-left: auto; }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; }

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

  .nav-scrim {
    display: block;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgba(4, 8, 18, .62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .30s ease, visibility .30s ease;
  }

  .site-header[data-open] .nav-scrim {
    opacity: 1;
    visibility: visible;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: min(360px, 86vw);
    height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 22px var(--gutter) 44px;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--deep-2) 0%, var(--void) 100%);
    border-left: 1px solid var(--line);
    box-shadow: -34px 0 70px -34px rgba(0, 0, 0, 1);
    transform: translateX(102%);
    opacity: 0;
    visibility: hidden;
    transition: transform .34s cubic-bezier(.4, 0, .2, 1), opacity .28s ease, visibility .28s;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-left: 0;
  }

  .nav-link {
    display: block;
    padding: 14px 18px;
    border-radius: var(--r-md);
    background: rgba(18, 29, 53, .62);
    font-size: 16px;
  }

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

  .nav-link[aria-current="page"] {
    background: var(--blue-a22);
    box-shadow: inset 0 0 0 1px rgba(92, 255, 243, .42);
  }

  .nav-quick {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-a60);
  }

  .quick-pill {
    justify-content: center;
    padding: 13px 18px;
    font-size: 14px;
  }

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

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

  .contact-note { max-width: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.8; }

  .header-inner { padding-inline: 16px; }

  .brand-sub { display: none; }

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

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

  .back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 11px 16px;
    font-size: 12px;
  }

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

@media (max-width: 520px) {
  .brand-name { font-size: 17px; }

  .nav-toggle-label { display: none; }

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

  .footer-chips { margin-top: 14px; }

  .contact-row { grid-template-columns: 1fr auto; }

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

  .display { font-size: clamp(34px, 10vw, 46px); }
}

/* ============================================================
   16. 减少动效
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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

  .scroll-progress__bar { transition: none; }
}

/* ============================================================
   17. 高对比偏好
   ============================================================ */
@media (prefers-contrast: more) {
  :root {
    --ink-2: #C9D4E6;
    --line: #41537A;
  }
}
