/* ==========================================================================
   博鱼官方站 · 共享样式 /assets/site.css
   负责：变量 / 重置 / 中文排版 / 头部 / 页脚 / 按钮 / 面包屑 / 容器 /
        网格 / 基础组件 / 响应式 / 可访问性 / 图片容器基础规则
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 品牌色 */
  --abyss: #0B3A5B;
  --abyss-2: #082C45;
  --deep: #145C82;
  --coral: #FF6B4A;
  --coral-deep: #D94A2F;
  --mint: #9FE0D3;
  --sand: #F4E7D3;
  --mist: #F7FBFC;
  --ink: #102A3A;
  --slate: #5E7887;
  --line: #C9DCE4;
  --state: #1F8A70;

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

  /* 字体 */
  --font-ui: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
             "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system,
             "Segoe UI", sans-serif;
  --font-title: var(--font-ui);
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
               Menlo, Consolas, "Courier New", monospace;

  /* 栅格与节奏 */
  --shell: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.33, 0.9, 0.28, 1);

  /* 阴影 */
  --shadow-soft: 0 18px 40px -30px rgba(8, 44, 69, 0.55);
  --shadow-lift: 0 22px 44px -26px rgba(8, 44, 69, 0.45);
}

/* ---------- 2. 重置 ---------- */
*,
*::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, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }

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

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

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%; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. 基础排版（中文友好） ---------- */
body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--mist);
  background-image:
    radial-gradient(1200px 620px at 88% -12%, rgba(159, 224, 211, 0.34), transparent 70%),
    radial-gradient(900px 540px at -12% 8%, rgba(244, 231, 211, 0.55), transparent 66%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.3vw, 1.15rem); font-weight: 800; }

p { text-wrap: pretty; }

strong { font-weight: 800; color: var(--abyss); }

::selection {
  background: var(--mint);
  color: var(--abyss);
}

main [id],
#main-content {
  scroll-margin-top: clamp(96px, 14vh, 150px);
}

#main-content:focus-visible { outline-offset: -3px; }

/* ---------- 4. 通用工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.index-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--deep);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deep);
}

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

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

/* ---------- 5. 分区与章节 ---------- */
.section { padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(26px, 3.6vw, 52px); }
.section--sand { background: var(--sand); }
.section--mist { background: var(--mist); }
.section--abyss {
  background:
    radial-gradient(900px 460px at 92% 0%, rgba(20, 92, 130, 0.9), transparent 60%),
    var(--abyss);
  color: var(--mist);
}
.section--abyss :is(h1, h2, h3, h4, h5) { color: var(--mist); }
.section--abyss .eyebrow { color: var(--mint); }
.section--abyss .section-lead { color: rgba(247, 251, 252, 0.78); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 64ch;
  margin-bottom: clamp(22px, 3.4vw, 44px);
}

.section-title { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }

.section-lead {
  font-size: 1.02rem;
  color: var(--slate);
  line-height: 1.8;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.78em 1.45em;
  border-radius: var(--pill);
  border: 1.5px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s linear,
              color 0.2s linear, border-color 0.2s linear, box-shadow 0.2s linear;
}

.btn--primary {
  background: var(--coral);
  color: #08232F;
  box-shadow: 0 14px 28px -18px var(--coral-deep);
}
.btn--primary:hover {
  background: var(--coral-deep);
  color: var(--mist);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover {
  background: rgba(159, 224, 211, 0.2);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.55em 1.05em;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ---------- 7. 胶囊标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.34em 0.92em;
  border-radius: var(--pill);
  border: 1px solid rgba(31, 138, 112, 0.25);
  background: rgba(159, 224, 211, 0.35);
  color: var(--abyss);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}
.chip--coral {
  background: rgba(255, 107, 74, 0.16);
  border-color: rgba(217, 74, 47, 0.32);
  color: var(--coral-deep);
}
.chip--mint {
  background: var(--mint);
  border-color: #7CCFBE;
  color: var(--abyss);
}

/* ---------- 8. 卡片 ---------- */
.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s linear;
}
.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: var(--mint);
  box-shadow: var(--shadow-lift);
}
.card--sand { background: var(--sand); border-color: #E4D3B8; }
.card--mint { background: var(--mint); border-color: #7CCFBE; }

/* ---------- 9. 网格 ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2,
.grid--3,
.grid--split { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

/* ---------- 10. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--mist);
  background:
    radial-gradient(circle at 78% 16%, rgba(159, 224, 211, 0.55), transparent 58%),
    radial-gradient(circle at 12% 92%, rgba(255, 107, 74, 0.38), transparent 54%),
    var(--deep);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 100%,
      transparent 16px,
      rgba(247, 251, 252, 0.22) 16.5px,
      rgba(247, 251, 252, 0.22) 17.5px,
      transparent 18px);
  background-size: 40px 26px;
  opacity: 0.6;
}

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

.media-frame--circle { aspect-ratio: 1 / 1; border-radius: 50%; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame--soft {
  background:
    radial-gradient(circle at 82% 12%, rgba(159, 224, 211, 0.7), transparent 58%),
    linear-gradient(155deg, var(--sand), #FFFFFF 58%);
  color: var(--abyss);
  border: 1px solid var(--line);
}

.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
  background: linear-gradient(transparent, rgba(8, 44, 69, 0.72));
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumb a {
  color: var(--deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s linear, color 0.2s linear;
}
.breadcrumb a:hover {
  color: var(--coral-deep);
  border-bottom-color: var(--coral);
}
.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 12. 正文排版区 ---------- */
.prose {
  max-width: 68ch;
  font-size: 1.01rem;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s linear;
}
.prose a:hover { text-decoration-color: var(--coral); }
.prose blockquote {
  border-left: 3px solid var(--mint);
  padding-left: 1em;
  color: var(--slate);
}

/* ---------- 13. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 400;
  padding: 12px 22px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--coral);
  color: #08232F;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 16px 30px -18px rgba(8, 44, 69, 0.8);
  transition: top 0.22s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 14. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--abyss);
  color: var(--mist);
  border-bottom: 1px solid rgba(159, 224, 211, 0.18);
  box-shadow: 0 12px 34px -26px rgba(8, 44, 69, 0.95);
  transition: box-shadow 0.25s linear;
}
.site-header[data-compact] {
  box-shadow: 0 18px 40px -28px rgba(8, 44, 69, 1);
}

/* 公告细条 */
.notice-bar {
  max-height: 78px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--deep), var(--abyss) 48%, #0E4A6E);
  border-bottom: 1px solid rgba(159, 224, 211, 0.2);
  transition: max-height 0.3s var(--ease), opacity 0.24s linear;
}
.site-header[data-compact] .notice-bar {
  max-height: 0;
  opacity: 0;
}
.notice-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  padding-block: 9px;
  font-size: 0.82rem;
}
.notice-tag {
  flex: none;
  padding: 2px 9px;
  border-radius: var(--pill);
  background: var(--coral);
  color: #08232F;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.notice-text {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(247, 251, 252, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-link {
  flex: none;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(159, 224, 211, 0.5);
  transition: color 0.2s linear, border-color 0.2s linear;
}
.notice-link:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* 头部主行 */
.header-main {
  position: relative;
  padding-block: 10px;
}
@media (min-width: 901px) {
  .header-main { padding-block: 14px; }
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: inherit;
}
.brand-mark {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: inset 0 0 0 2px rgba(247, 251, 252, 0.35);
}
.brand-mark::before {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  top: 11px;
  left: 11px;
  border-radius: 0 62% 62% 62%;
  background: var(--abyss);
  transform: rotate(45deg);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: 16px;
  left: 14px;
  background: var(--mist);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.brand-name {
  display: block;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.brand-domain {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  color: var(--mint);
  opacity: 0.88;
}

/* 移动按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 9px 15px;
  border-radius: var(--pill);
  border: 1px solid rgba(159, 224, 211, 0.36);
  background: rgba(159, 224, 211, 0.13);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: background 0.2s linear, border-color 0.2s linear;
}
.nav-toggle:hover { background: rgba(159, 224, 211, 0.22); }
.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: var(--mint);
  transition: transform 0.22s var(--ease), opacity 0.18s linear;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
.nav-toggle-text { line-height: 1; }

/* 导航 */
.nav-pier {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-capsule {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  color: rgba(247, 251, 252, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s linear, color 0.2s linear,
              border-color 0.2s linear, transform 0.2s var(--ease);
}
.nav-capsule:hover {
  background: rgba(159, 224, 211, 0.16);
  color: var(--mist);
  transform: translateY(-1px);
}
.nav-capsule[aria-current="page"] {
  background: var(--coral);
  color: #08232F;
  font-weight: 800;
  box-shadow: 0 8px 20px -12px var(--coral-deep);
}
.nav-capsule[aria-current="page"]:hover {
  background: var(--coral);
  color: #08232F;
  transform: none;
}

/* 滚动进度刻线 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 移动导航面板 */
@media (max-width: 900px) {
  .site-nav { display: none; }

  .site-nav[data-open] {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 8;
    max-height: min(72vh, 440px);
    overflow-y: auto;
    background: var(--abyss-2);
    border-top: 1px solid rgba(159, 224, 211, 0.25);
    border-bottom: 1px solid rgba(159, 224, 211, 0.25);
    box-shadow: 0 28px 44px -30px #000000;
    padding: 12px 0 16px;
  }

  .site-nav[data-open] .nav-pier {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 2px var(--gutter) 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(159, 224, 211, 0.5) transparent;
  }

  .site-nav[data-open] .nav-capsule {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 11px 16px;
    border-radius: 14px;
    background: rgba(159, 224, 211, 0.08);
    border-color: rgba(159, 224, 211, 0.28);
  }

  .site-nav[data-open] .nav-capsule[aria-current="page"] {
    border-color: var(--coral);
  }

  .nav-toggle:focus-visible,
  .site-nav[data-open] .nav-capsule:focus-visible {
    outline-offset: -2px;
  }
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 74px) 0;
  color: rgba(247, 251, 252, 0.86);
  background:
    radial-gradient(circle at 92% 0%, rgba(20, 92, 130, 0.92), transparent 56%),
    linear-gradient(180deg, var(--abyss) 0%, var(--abyss-2) 100%);
}

.footer-scales {
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 50% 100%,
      transparent 16px,
      rgba(159, 224, 211, 0.9) 16.5px,
      rgba(159, 224, 211, 0.9) 17.5px,
      transparent 18px);
  background-size: 38px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000000, transparent);
  mask-image: linear-gradient(180deg, #000000, transparent);
}

.footer-shell { position: relative; z-index: 1; }

.footer-main {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .footer-main {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.55fr);
    align-items: start;
  }
}

.footer-brand { min-width: 0; }
.brand--footer { color: var(--mist); }
.brand--footer .brand-domain { color: var(--mint); opacity: 1; }
.brand--footer .brand-mark { box-shadow: 0 0 0 4px rgba(159, 224, 211, 0.18); }

.footer-note {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(247, 251, 252, 0.72);
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.footer-chips .btn--ghost {
  color: var(--mist);
  border-color: rgba(247, 251, 252, 0.45);
}
.footer-chips .btn--ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(159, 224, 211, 0.14);
}

.footer-nav {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 560px) {
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.92rem;
  color: rgba(247, 251, 252, 0.78);
  transition: color 0.2s linear;
}
.footer-link::before {
  content: "";
  width: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--coral);
  transition: width 0.25s var(--ease);
}
.footer-link:hover { color: var(--mist); }
.footer-link:hover::before { width: 14px; }

.footer-contact {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid rgba(159, 224, 211, 0.22);
}

.contact-list {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
  .contact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.contact-val {
  font-size: 0.95rem;
  color: var(--mist);
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: clamp(22px, 3vw, 34px);
  padding-block: 20px 28px;
  border-top: 1px solid rgba(159, 224, 211, 0.16);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(247, 251, 252, 0.62);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-left: auto;
}
.legal-links a {
  color: rgba(247, 251, 252, 0.74);
  border-bottom: 1px solid transparent;
  transition: color 0.2s linear, border-color 0.2s linear;
}
.legal-links a:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* ---------- 16. 返回顶部气泡 ---------- */
.back-top {
  position: fixed;
  right: clamp(14px, 2.6vw, 28px);
  bottom: calc(clamp(14px, 2.6vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  width: 58px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 50%;
  background: var(--coral);
  color: #08232F;
  box-shadow: 0 18px 34px -18px rgba(8, 44, 69, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.86);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
              visibility 0.28s linear, background 0.2s linear, color 0.2s linear;
}
.back-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-top:hover {
  background: var(--coral-deep);
  color: var(--mist);
}
.back-top-arrow {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
}
.back-top-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

/* ---------- 17. 由页面 JS 触发的轻量动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .brand-mark {
    animation: brand-float 6s ease-in-out infinite;
  }
  @keyframes brand-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
  }

  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 18. 小屏微调 ---------- */
@media (max-width: 560px) {
  .notice-tag { padding: 2px 7px; letter-spacing: 0.1em; }
  .notice-link { font-size: 0.7rem; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark::before { width: 18px; height: 18px; top: 9px; left: 9px; }
  .brand-mark::after { top: 13px; left: 12px; width: 5px; height: 5px; }
  .brand-name { font-size: 1rem; }
  .brand-domain { font-size: 0.62rem; }
  .legal-links { margin-left: 0; width: 100%; }
  .back-top { width: 52px; height: 52px; }
}

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