/* ==========================================================================
   乐鱼体育入口 — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   页面专属布局在页面 CSS 中另行编写，此处只提供框架与基础件
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote, dl, dd {
  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;
}

table { border-collapse: collapse; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --c-ink: #061E2E;
  --c-deep: #0B3D5C;
  --c-surge: #082B42;
  --c-mid: #12547A;
  --c-line: #1C6E8C;
  --c-aqua: #00C2A8;
  --c-aqua-lt: #5FE0CD;
  --c-orange: #FF7A3D;
  --c-paper: #F4F8FA;
  --c-mist: #C9D8E2;

  /* 字体 */
  --f-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --f-body: var(--f-head);
  --f-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺寸节奏 */
  --header-h: 78px;
  --w-max: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* 蓝图网格 */
  --grid-line: rgba(28, 110, 140, .22);
  --grid-size: 76px;
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
    --grid-size: 56px;
  }
}

/* ---------- 3. 页面基底 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  background-color: var(--c-ink);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(120% 82% at 84% -14%, rgba(0, 194, 168, .16), transparent 62%),
    radial-gradient(95% 72% at -4% 2%, rgba(18, 84, 122, .46), transparent 60%);
  background-size:
    var(--grid-size) var(--grid-size),
    var(--grid-size) var(--grid-size),
    100% 100%,
    100% 100%;
  color: var(--c-paper);
  font-family: var(--f-body);
  font-size: clamp(15px, .55vw + 13.6px, 17px);
  font-weight: 400;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body > main { flex: 1 1 auto; }

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

::selection {
  background: var(--c-aqua);
  color: #04202B;
}

/* ---------- 4. 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--c-paper);
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 900;
  line-height: 1.06;
}

h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: clamp(19px, 1.7vw, 26px); }
h4 { font-size: clamp(16px, 1.2vw, 19px); }

p { text-wrap: pretty; }

strong { font-weight: 700; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 11px 20px;
  border-radius: 2px;
  background: var(--c-aqua);
  color: #04202B;
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 6. 容器与区块 ---------- */
.wrap {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 7vw, 96px); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

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

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--c-aqua);
  opacity: .8;
}

.section-no {
  display: block;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(52px, 8vw, 104px);
  line-height: .82;
  letter-spacing: -.05em;
  color: rgba(0, 194, 168, .28);
  user-select: none;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(0, 194, 168, .55), rgba(28, 110, 140, .2) 42%, transparent 100%);
}

/* ---------- 7. 网格骨架 ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }

.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

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

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

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

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  transition:
    background-color .18s var(--ease),
    color .18s var(--ease),
    border-color .18s var(--ease),
    transform .18s var(--ease);
}

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

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn--primary {
  background: var(--c-aqua);
  color: #04202B;
}

.btn--primary:hover { background: var(--c-aqua-lt); }

.btn--ghost {
  background: rgba(8, 43, 66, .55);
  border-color: rgba(28, 110, 140, .85);
  color: var(--c-paper);
}

.btn--ghost:hover {
  border-color: var(--c-aqua);
  color: var(--c-aqua-lt);
}

.btn--alert {
  background: var(--c-orange);
  color: #2A0B00;
}

.btn--alert:hover { background: #FF9160; }

/* ---------- 9. 头部框架 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(6, 30, 46, .98) 0%, rgba(6, 30, 46, .9) 100%);
  border-bottom: 1px solid rgba(28, 110, 140, .6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-aqua), var(--c-aqua-lt) 62%, var(--c-orange));
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 28px);
  width: 100%;
  max-width: var(--w-max);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

/* 品牌锁定 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 4px 2px;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--c-mid), var(--c-aqua));
  box-shadow: inset 0 0 0 1px rgba(244, 248, 250, .22);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(6, 30, 46, .55) 0 2px, transparent 2px 7px);
  opacity: .8;
}

.brand__fin {
  width: 15px;
  height: 17px;
  background: var(--c-paper);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--c-paper);
}

.brand__sub {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--c-aqua);
}

/* 状态灯 */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid rgba(0, 194, 168, .42);
  border-radius: 2px;
  background: rgba(0, 194, 168, .09);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--c-aqua-lt);
  white-space: nowrap;
}

.header-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-aqua);
  animation: status-pulse 3s ease-out infinite;
}

@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 194, 168, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(0, 194, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 194, 168, 0); }
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 20px);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
}

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 6px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: rgba(244, 248, 250, .78);
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.site-nav__index {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--c-line);
  transition: color .18s var(--ease);
}

.site-nav__link:hover {
  color: var(--c-paper);
  border-bottom-color: rgba(0, 194, 168, .5);
}

.site-nav__link:hover .site-nav__index { color: var(--c-aqua); }

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

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

.header-cta {
  flex: 0 0 auto;
  margin-left: 4px;
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid rgba(28, 110, 140, .8);
  border-radius: 2px;
  background: rgba(8, 43, 66, .5);
  color: var(--c-paper);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--c-aqua);
  color: var(--c-aqua-lt);
}

.nav-toggle__box {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .24s var(--ease), opacity .16s var(--ease);
}

.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 5px; }
.nav-toggle__bar:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(5px) 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(-5px) rotate(-45deg);
}

/* ---------- 10. 头部断点 ---------- */
@media (max-width: 1120px) {
  .header-status { display: none; }

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px var(--gutter) 26px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(6, 30, 46, .99), rgba(8, 43, 66, .99));
    border-bottom: 1px solid rgba(0, 194, 168, .38);
    box-shadow: 0 24px 48px rgba(4, 21, 36, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity .24s var(--ease),
      transform .24s var(--ease),
      visibility .24s var(--ease);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    justify-content: flex-start;
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(28, 110, 140, .34);
  }

  .site-nav__link:hover { border-bottom-color: rgba(28, 110, 140, .34); }

  .site-nav__link[aria-current="page"] {
    background: rgba(0, 194, 168, .09);
    border-bottom-color: rgba(28, 110, 140, .34);
  }

  .header-cta {
    align-self: stretch;
    justify-content: center;
    margin: 20px 0 0;
    padding: 14px 20px;
    font-size: 14px;
  }

  body.is-nav-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .brand__sub { display: none; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 16px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 10px 12px; }
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  background: linear-gradient(180deg, #082B42 0%, #061E2E 58%, #041524 100%);
  color: var(--c-paper);
  border-top: 1px solid rgba(28, 110, 140, .45);
}

.footer-tide {
  height: 46px;
  border-bottom: 1px solid rgba(0, 194, 168, .16);
  background-image:
    radial-gradient(140px 46px at 50% 100%, rgba(0, 194, 168, .1) 0 58%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(28, 110, 140, .38) 0 1px, transparent 1px 96px);
  background-size: 280px 46px, auto;
  background-repeat: repeat-x, repeat;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 60px) var(--gutter) 0;
}

.footer-brand__name {
  font-family: var(--f-head);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--c-paper);
}

.footer-brand__note {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(201, 216, 226, .82);
}

.footer-brand__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--c-aqua-lt);
}

.footer-brand__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-aqua);
}

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--c-line);
  text-transform: uppercase;
}

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

.footer-col a {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(244, 248, 250, .78);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-col a:hover {
  color: var(--c-aqua-lt);
  border-bottom-color: rgba(0, 194, 168, .5);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  width: 100%;
  max-width: var(--w-max);
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: 20px var(--gutter);
  border-top: 1px solid rgba(28, 110, 140, .32);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: rgba(201, 216, 226, .74);
}

.footer-meta__contact { line-height: 1.7; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(26px, 3vw, 40px);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(28, 110, 140, 1);
}

.footer-legal p { color: rgba(201, 216, 226, .56); }

@media (max-width: 920px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-meta { flex-direction: column; }
  .footer-legal { flex-direction: column; }
}

/* ---------- 12. 媒体占位容器 ---------- */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(0, 194, 168, .34), transparent 58%),
    linear-gradient(150deg, var(--c-mid), var(--c-surge) 72%);
  box-shadow: inset 0 0 0 1px rgba(28, 110, 140, .5);
}

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

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(170deg, rgba(11, 61, 92, .42) 0%, rgba(0, 194, 168, .2) 58%, rgba(6, 30, 46, .58) 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .7;
  background-image: repeating-linear-gradient(90deg, rgba(244, 248, 250, .07) 0 1px, transparent 1px 44px);
}

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

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-paper);
  background: linear-gradient(0deg, rgba(6, 30, 46, .9), rgba(6, 30, 46, 0));
}

/* ---------- 13. 面包屑 / 正文 / 标签 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  color: rgba(201, 216, 226, .68);
}

.breadcrumb a {
  color: var(--c-aqua);
  transition: color .18s var(--ease);
}

.breadcrumb a:hover { color: var(--c-aqua-lt); }

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

.prose {
  max-width: 68ch;
  font-size: clamp(15.5px, .5vw + 14px, 17px);
  line-height: 1.85;
  color: rgba(244, 248, 250, .86);
}

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

.prose a {
  color: var(--c-aqua-lt);
  border-bottom: 1px solid rgba(0, 194, 168, .5);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(28, 110, 140, .7);
  border-radius: 2px;
  background: rgba(8, 43, 66, .55);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--c-mist);
  transition:
    border-color .18s var(--ease),
    color .18s var(--ease),
    background-color .18s var(--ease);
}

.chip:hover,
.chip[aria-pressed="true"] {
  border-color: var(--c-aqua);
  color: var(--c-aqua-lt);
  background: rgba(0, 194, 168, .1);
}

/* ---------- 14. 章节目录 ---------- */
.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 2px;
  border-left: 1px solid rgba(28, 110, 140, .5);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
}

.toc__link {
  display: block;
  margin-left: -3px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  color: rgba(201, 216, 226, .72);
  transition:
    color .18s var(--ease),
    border-color .18s var(--ease),
    background-color .18s var(--ease);
}

.toc__link:hover { color: var(--c-paper); }

.toc__link.is-active,
.toc__link[aria-current] {
  color: var(--c-aqua-lt);
  border-left-color: var(--c-aqua);
  background: rgba(0, 194, 168, .08);
}

/* ---------- 15. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 190;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(0, 194, 168, .5);
  border-radius: 2px;
  background: rgba(8, 43, 66, .94);
  color: var(--c-paper);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity .22s var(--ease),
    transform .22s var(--ease),
    background-color .18s var(--ease),
    color .18s var(--ease),
    border-color .18s var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  background: var(--c-aqua);
  border-color: var(--c-aqua);
  color: #04202B;
}

.to-top__arrow { font-size: 13px; line-height: 1; }

@media (max-width: 600px) {
  .to-top__label { display: none; }
  .to-top { padding: 12px; }
}

/* ---------- 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;
  }

  .btn:hover { transform: none; }
  .to-top { transition: none; }
}
