/* ==========================================================================
   365棋牌电玩 · /assets/site.css
   共享外壳：重置 / 变量 / 中文排版 / 悬浮胶囊页头 / 档案柜页脚 / 通用组件
   ========================================================================== */

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

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

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

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

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

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 矿物色板 */
  --ink: #0B1F1A;
  --slate: #162923;
  --moss: #2F5D50;
  --cyan: #35E0D2;
  --amber: #F2B84B;
  --magenta: #E0448A;
  --cream: #F4F0E6;
  --mist: #A8C7C0;
  --clay: #B86B4B;

  --line: rgba(168, 199, 192, 0.16);
  --line-soft: rgba(168, 199, 192, 0.09);
  --line-strong: rgba(53, 224, 210, 0.34);

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 形状与节奏 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --pad-block: clamp(48px, 7vw, 88px);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(168, 199, 192, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 199, 192, 0.045) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--cream);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p { text-wrap: pretty; }

small { font-size: 0.82em; }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.86em; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #05231F;
  font-weight: 800;
  font-size: 0.9rem;
  transform: translate(-50%, -180%);
  transition: transform 0.22s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- 5. 悬浮胶囊页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px var(--gutter) 0;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 9px 10px 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(22, 41, 35, 0.95);
  box-shadow: 0 14px 34px rgba(3, 12, 10, 0.48);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header[data-scrolled="true"] .header-shell {
  background: rgba(11, 31, 26, 0.98);
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(2, 10, 9, 0.62);
}

/* 品牌 */
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
  border-radius: var(--r-md);
}

.brand-mark {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px 12px 12px 4px;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(53, 224, 210, 0.35);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  background: var(--ink);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
  white-space: nowrap;
}

/* 导航浮岛 */
.nav-island {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { display: block; }

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--mist);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--cream);
  background: rgba(53, 224, 210, 0.1);
}

.nav-link[aria-current="page"],
.nav-link[aria-current="page"]:hover {
  color: #05231F;
  font-weight: 800;
  background: var(--cyan);
}

.nav-cta {
  margin-left: 10px;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #05231F;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: #5CEBE0;
  box-shadow: 0 0 0 4px rgba(53, 224, 210, 0.15);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 16px 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--cream);
  background: rgba(53, 224, 210, 0.06);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover { background: rgba(53, 224, 210, 0.12); }

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

.nav-toggle-box span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

/* 移动端抽屉 */
@media (max-width: 1000px) {
  .site-header { padding: 10px var(--gutter) 0; }

  .header-shell {
    padding: 8px 10px 8px 14px;
    gap: 10px;
  }

  .brand-tagline { display: none; }
  .brand-name { font-size: 0.98rem; }

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

  .nav-island {
    position: fixed;
    top: 82px;
    left: var(--gutter);
    right: var(--gutter);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    padding: 14px;
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: #0E251F;
    box-shadow: 0 26px 64px rgba(2, 10, 9, 0.72);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s linear;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .nav-cta {
    margin: 8px 0 0;
    padding: 14px;
    text-align: center;
    font-size: 1rem;
  }
}

/* ---------- 6. 档案柜式页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--slate);
  border-top: 1px solid var(--line);
  color: var(--mist);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--clay) 0 16%,
    var(--cyan) 16% 48%,
    var(--amber) 48% 74%,
    var(--magenta) 74% 80%,
    var(--moss) 80% 100%
  );
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 0.78fr 0.78fr 0.78fr 1.25fr;
  gap: clamp(24px, 3vw, 44px);
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 68px) var(--gutter) clamp(32px, 4vw, 48px);
}

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

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.footer-desc {
  max-width: 34ch;
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--mist);
}

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

.footer-tag {
  padding: 4px 11px;
  border: 1px solid rgba(53, 224, 210, 0.26);
  border-radius: var(--r-pill);
  background: rgba(53, 224, 210, 0.06);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

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

.footer-col-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.footer-col-label::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 2px;
  background: var(--clay);
  transform: rotate(45deg);
}

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

.footer-link {
  display: inline-block;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(53, 224, 210, 0.45);
}

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

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

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

.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(168, 199, 192, 0.7);
}

.footer-contact-value {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.footer-contact-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(168, 199, 192, 0.22);
  font-size: 0.79rem;
  line-height: 1.75;
  color: rgba(168, 199, 192, 0.8);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(168, 199, 192, 0.72);
}

.footer-copy { color: rgba(168, 199, 192, 0.78); }

.footer-icp { color: rgba(242, 184, 75, 0.85); }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.footer-legal-links a {
  color: var(--mist);
  border-bottom: 1px solid rgba(168, 199, 192, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }

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

  .footer-contact-note { max-width: 62ch; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }

  .footer-brand,
  .footer-contact { grid-column: auto; }

  .footer-contact-list { grid-template-columns: 1fr; }

  .footer-legal { flex-direction: column; align-items: flex-start; gap: 8px; }

  .footer-legal-links { margin-left: 0; gap: 14px; }
}

/* ---------- 7. 通用容器与章节 ---------- */
.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--pad-block); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 20px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  margin-top: clamp(18px, 3vw, 30px);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(168, 199, 192, 0.8);
}

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

.breadcrumb-list li + li::before {
  content: "/";
  color: rgba(53, 224, 210, 0.5);
}

.breadcrumb-link {
  color: var(--mist);
  transition: color 0.2s ease;
}

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

.breadcrumb-list [aria-current="page"] { color: var(--cream); }

/* ---------- 9. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

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

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

@media (max-width: 620px) {
  .grid--bento,
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- 10. 卡片与标签 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--slate);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.card:hover { border-color: rgba(53, 224, 210, 0.32); }

.card--moss {
  background: var(--moss);
  border-color: transparent;
  color: var(--cream);
}

.card--cream {
  background: var(--cream);
  border-color: transparent;
  color: var(--ink);
}

.card--cream h3,
.card--cream h4 { color: var(--ink); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(168, 199, 192, 0.26);
  border-radius: var(--r-pill);
  background: rgba(168, 199, 192, 0.06);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.chip--cyan {
  color: var(--cyan);
  border-color: rgba(53, 224, 210, 0.36);
  background: rgba(53, 224, 210, 0.08);
}

.chip--amber {
  color: var(--amber);
  border-color: rgba(242, 184, 75, 0.36);
  background: rgba(242, 184, 75, 0.08);
}

.chip--magenta {
  color: var(--magenta);
  border-color: rgba(224, 68, 138, 0.36);
  background: rgba(224, 68, 138, 0.08);
}

.chip--clay {
  color: #D9946F;
  border-color: rgba(184, 107, 75, 0.45);
  background: rgba(184, 107, 75, 0.13);
}

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--cyan);
  color: #05231F;
}

.btn--primary:hover {
  background: #5CEBE0;
  box-shadow: 0 0 0 4px rgba(53, 224, 210, 0.15);
}

.btn--amber {
  background: var(--amber);
  color: #2A1B00;
}

.btn--amber:hover {
  background: #FFCB6B;
  box-shadow: 0 0 0 4px rgba(242, 184, 75, 0.16);
}

.btn--ghost {
  border-color: rgba(53, 224, 210, 0.4);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 224, 210, 0.08);
}

.btn--block { width: 100%; }

/* ---------- 12. 正文与数据条带 ---------- */
.prose {
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(244, 240, 230, 0.86);
}

.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--cream); font-weight: 800; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 224, 210, 0.42);
}

.prose a:hover { border-bottom-color: var(--cyan); }

.prose ul,
.prose ol {
  margin-top: 1em;
  padding-left: 1.15em;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 14px;
}

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

.prose li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 2px;
  background: var(--clay);
}

.data-strip {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(22, 41, 35, 0.72);
}

.data-strip-item {
  flex: 1 1 140px;
  min-width: 0;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}

.data-strip-item:last-child { border-right: 0; }

.data-strip-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(168, 199, 192, 0.75);
}

.data-strip-value {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 1.32rem;
  line-height: 1.35;
  color: var(--amber);
  overflow-wrap: anywhere;
}

/* ---------- 13. 横向主题带 ---------- */
.band {
  padding-block: 14px;
  border-block: 1px solid var(--line);
  background: rgba(22, 41, 35, 0.5);
  overflow: hidden;
}

/* ---------- 14. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(47, 93, 80, 0.55), rgba(11, 31, 26, 0.9));
}

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

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

.media-frame--angled {
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 4px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

.media-frame-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 11px;
  border: 1px solid rgba(168, 199, 192, 0.22);
  border-radius: var(--r-pill);
  background: rgba(11, 31, 26, 0.8);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

/* ---------- 15. 可展开面板骨架 ---------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--slate);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--cream);
}

.panel-body {
  padding: 18px 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(244, 240, 230, 0.84);
}

/* ---------- 16. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 62%,
    var(--amber) 62% 88%,
    var(--magenta) 88% 100%
  );
  pointer-events: none;
}

/* ---------- 17. 滚动显现协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.62s cubic-bezier(0.22, 0.7, 0.3, 1),
    transform 0.62s cubic-bezier(0.22, 0.7, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 18. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

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

  .nav-island {
    transition: none;
    transform: none;
  }
}
