/* =========================================================
   大神棋牌 · 共享站点样式 /assets/site.css
   热带夜航：深海夜底 → 夜航蓝面板 → 玻璃浮岛
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

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 {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

[hidden] { display: none !important; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩 */
  --c-deep: #061826;
  --c-night: #0B2C45;
  --c-tide: #174E6B;
  --c-coral: #FF6B4A;
  --c-amber: #F4B74A;
  --c-palm: #2FAE8F;
  --c-mist: #F2F7F5;
  --c-glass: #9FD6D0;
  --c-sand: #F7E7C6;
  --c-dusk: #143A52;

  /* 文本 */
  --ink: #F2F7F5;
  --ink-soft: rgba(242, 247, 245, 0.72);
  --ink-mute: rgba(242, 247, 245, 0.55);
  --line: rgba(159, 214, 208, 0.22);
  --line-strong: rgba(159, 214, 208, 0.38);

  /* 字体 */
  --font-display: "HarmonyOS Sans SC", "Alibaba PuHuiTi", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Noto Sans Mono CJK SC", monospace;

  /* 尺度 */
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --reading: 44rem;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;

  /* 其它 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --island-shadow: 0 24px 60px -26px rgba(0, 0, 0, 0.82);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--c-deep);
  background-image:
    radial-gradient(1100px 660px at 8% -8%, rgba(23, 78, 107, 0.62), transparent 64%),
    radial-gradient(760px 520px at 96% 2%, rgba(255, 107, 74, 0.13), transparent 62%),
    radial-gradient(900px 700px at 50% 108%, rgba(47, 174, 143, 0.12), transparent 66%),
    linear-gradient(180deg, #061826 0%, #0B2C45 38%, #061826 100%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0.01em;
}

p { line-height: 1.8; }

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

::selection {
  background: var(--c-coral);
  color: #08131c;
}

/* ---------- 4. 通用工具 ---------- */
.shell {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section + .section { margin-top: clamp(48px, 7vw, 96px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-amber);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-coral);
}

.coord {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(244, 183, 74, 0.9);
}

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

.visually-hidden {
  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;
}

/* ---------- 5. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -96px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: 0 0 16px 16px;
  background: var(--c-coral);
  color: #08131c;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: top 0.24s var(--ease);
}

.skip-link:focus-visible {
  top: 0;
  outline-offset: -4px;
}

/* ---------- 6. 页头：悬浮胶囊导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: clamp(10px, 1.6vw, 20px) var(--gutter) 0;
}

.header-shell {
  position: relative;
  width: min(var(--shell), 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  padding: 9px 10px 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(11, 44, 69, 0.68);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--island-shadow);
}

/* 品牌 */
.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease);
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(142deg, #FFD089 0%, var(--c-coral) 62%, #E4532F 100%);
  color: #08131c;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 1px rgba(255, 107, 74, 0.45), 0 12px 26px -14px rgba(255, 107, 74, 0.95);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  color: var(--c-mist);
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  order: 2;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

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

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(242, 247, 245, 0.78);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease);
}

.site-nav__link:hover {
  color: var(--c-mist);
  background: rgba(159, 214, 208, 0.1);
}

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

.site-nav__link[aria-current="page"] { color: var(--c-mist); }

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

/* 行动区 */
.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* ---------- 7. 按钮 ---------- */
.cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.22s var(--ease);
}

.cta--solid,
.btn--solid {
  background: var(--c-coral);
  color: #08131c;
  box-shadow: 0 14px 32px -16px rgba(255, 107, 74, 0.95);
}

.cta--solid:hover,
.btn--solid:hover {
  background: #FF8266;
  transform: translateY(-1px);
}

.cta--ghost,
.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(159, 214, 208, 0.08);
  color: var(--c-mist);
}

.cta--ghost:hover,
.btn--ghost:hover {
  border-color: var(--c-coral);
  color: var(--c-coral);
  transform: translateY(-1px);
}

.btn--palm {
  background: rgba(47, 174, 143, 0.16);
  border-color: rgba(47, 174, 143, 0.55);
  color: #7FE0C8;
}

.btn--palm:hover {
  background: rgba(47, 174, 143, 0.3);
  color: var(--c-mist);
  transform: translateY(-1px);
}

.cta:active,
.btn:active { transform: translateY(0); }

/* ---------- 8. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  border: 1px solid var(--line-strong);
  background: rgba(159, 214, 208, 0.08);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--c-coral);
  background: rgba(159, 214, 208, 0.14);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-mist);
  transition: transform 0.26s var(--ease), opacity 0.18s var(--ease);
}

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

/* ---------- 9. 滚动航迹线 ---------- */
.header-progress {
  width: min(var(--shell), 100%);
  margin: 8px auto 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(159, 214, 208, 0.14);
  overflow: hidden;
  pointer-events: none;
}

.header-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-palm) 0%, var(--c-amber) 46%, var(--c-coral) 100%);
  transition: width 0.15s linear;
}

/* ---------- 10. 面板与玻璃层 ---------- */
.panel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 40px);
}

.panel--solid {
  background: linear-gradient(165deg, var(--c-tide) 0%, var(--c-night) 46%, #081F31 100%);
}

.panel--glass {
  background: rgba(23, 78, 107, 0.34);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  border-color: rgba(159, 214, 208, 0.3);
  box-shadow: 0 30px 70px -42px rgba(0, 0, 0, 0.92);
}

.panel--sand {
  background: var(--c-sand);
  color: var(--c-night);
  border-color: transparent;
}

/* ---------- 11. 标签与数据 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.tag--coral { color: var(--c-coral); }
.tag--amber { color: var(--c-amber); }
.tag--palm { color: #7FE0C8; }
.tag--mist { color: rgba(242, 247, 245, 0.8); }

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

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1;
  color: var(--c-amber);
}

.stat__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}

/* ---------- 12. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

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

/* ---------- 13. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

.crumbs a {
  color: rgba(244, 183, 74, 0.9);
  transition: color 0.2s var(--ease);
}

.crumbs a:hover { color: var(--c-coral); }

.crumbs__sep {
  color: rgba(159, 214, 208, 0.45);
}

/* ---------- 14. 正文容器 ---------- */
.prose {
  max-width: var(--reading);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.9;
  color: rgba(242, 247, 245, 0.86);
}

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

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--c-mist);
  margin-top: 1.9em;
}

.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); }
.prose h3 { font-size: clamp(1.14rem, 1rem + 0.6vw, 1.34rem); }

.prose a {
  color: var(--c-amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.prose a:hover { color: var(--c-coral); }

.prose strong { color: var(--c-mist); }

.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li + li { margin-top: 0.5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.82em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-coral);
}

.prose ol {
  list-style: decimal;
  padding-left: 1.6em;
}

.prose ol li + li { margin-top: 0.5em; }

.prose ol li::marker {
  font-family: var(--font-mono);
  color: var(--c-amber);
}

/* ---------- 15. 图片容器（页面阶段放占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(23, 78, 107, 0.9) 0%, transparent 62%),
    linear-gradient(150deg, var(--c-dusk) 0%, var(--c-night) 52%, var(--c-deep) 100%);
  aspect-ratio: 16 / 10;
  width: 100%;
}

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

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(6, 24, 38, 0.72);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--c-sand);
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 9vw, 120px);
  padding-inline: var(--gutter);
  padding-bottom: clamp(24px, 4vw, 52px);
}

.footer-shell {
  position: relative;
  width: min(var(--shell), 100%);
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(159, 214, 208, 0.2);
  background: linear-gradient(155deg, rgba(23, 78, 107, 0.72) 0%, rgba(11, 44, 69, 0.86) 34%, rgba(6, 24, 38, 0.97) 100%);
}

.footer-shell::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -150px;
  height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 74, 0.22), rgba(255, 107, 74, 0) 70%);
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: clamp(24px, 4vw, 64px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--c-mist);
}

.footer-brand__line {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--c-amber);
}

.footer-brand__summary {
  margin-top: 18px;
  max-width: 34ch;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.footer-group__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(159, 214, 208, 0.18);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}

.footer-group__index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--c-amber);
}

.footer-group__list {
  display: grid;
  gap: 2px;
}

.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: 22px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: rgba(242, 247, 245, 0.82);
  transition: color 0.2s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-coral);
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  transition: transform 0.22s var(--ease);
}

.footer-link:hover { color: var(--c-mist); }
.footer-link:hover::after { transform: translateY(-50%) scaleX(1); }

/* 联络坐标行 */
.footer-contact {
  position: relative;
  z-index: 1;
  margin-top: clamp(24px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid rgba(159, 214, 208, 0.18);
}

.footer-contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4px clamp(20px, 3vw, 40px);
}

.footer-contact__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 44px;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #7FE0C8;
  min-width: 34px;
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--c-mist);
  word-break: break-word;
}

.copy-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--c-glass);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.copy-btn:hover {
  border-color: var(--c-coral);
  background: rgba(159, 214, 208, 0.14);
  color: var(--c-mist);
}

.copy-btn[data-copied] {
  border-color: var(--c-palm);
  background: rgba(47, 174, 143, 0.18);
  color: #7FE0C8;
}

.footer-contact__note {
  margin-top: 14px;
  max-width: 62ch;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--ink-mute);
}

/* 法律带 */
.footer-legal {
  position: relative;
  z-index: 1;
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: 18px;
  border-top: 1px solid rgba(159, 214, 208, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(242, 247, 245, 0.52);
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 30px);
  bottom: clamp(14px, 2.5vw, 30px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(11, 44, 69, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--c-mist);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
              visibility 0.25s 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 {
  border-color: var(--c-coral);
  color: var(--c-coral);
}

/* ---------- 17. 平板与移动端 ---------- */
@media (max-width: 1080px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 3vw, 36px);
  }
}

@media (max-width: 900px) {
  .header-shell {
    flex-wrap: wrap;
    padding: 8px 10px 8px 14px;
    border-radius: 26px;
  }

  .brand { order: 1; }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .nav-toggle { display: flex; }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.32s var(--ease), opacity 0.2s var(--ease);
  }

  .site-nav[data-open] {
    max-height: 520px;
    opacity: 1;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(159, 214, 208, 0.22);
  }

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.98rem;
  }

  .site-nav__link::after {
    left: auto;
    right: 16px;
    top: 50%;
    bottom: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transform-origin: center;
  }

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

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

@media (max-width: 720px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .header-actions .cta {
    padding: 0 14px;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
  }

  .brand__name { font-size: 0.95rem; }

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

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

  .to-top {
    right: 12px;
    bottom: 12px;
    padding: 0 14px;
    font-size: 0.75rem;
  }
}

/* ---------- 18. 动效偏好 ---------- */
@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;
  }

  .brand:hover,
  .cta:hover,
  .btn:hover { transform: none; }
}
