/* ==========================================================================
   HI合乐在线 · 共享样式表 /assets/site.css
   设计基线：数据叙事型布局 · 居中刊头 · 高原天空蓝 × 藏红
   ========================================================================== */

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

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

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

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

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

a { color: inherit; }

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

button { background: none; border: 0; }

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #E0A93B;
  outline-offset: 3px;
}

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 品牌色 */
  --sky: #1B62B8;
  --deep: #0E2E4F;
  --light-sky: #7FB2E8;
  --red: #B3252C;
  --red-deep: #7A1418;
  --gold: #E0A93B;
  --green: #1E9C8C;
  --cloud: #F6F8FB;
  --snow: #FFFFFF;
  --stone: #4A5A6B;
  --sand: #EDE3D4;

  /* 语义 */
  --ink: var(--deep);
  --muted: var(--stone);
  --line: rgba(14, 46, 79, 0.12);
  --line-strong: rgba(14, 46, 79, 0.24);

  /* 圆角 */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* 阴影 */
  --shadow-soft: 0 2px 8px rgba(14, 46, 79, 0.06), 0 16px 36px -22px rgba(14, 46, 79, 0.34);
  --shadow-lift: 0 8px 20px rgba(14, 46, 79, 0.1), 0 30px 54px -26px rgba(14, 46, 79, 0.4);

  /* 节律 */
  --gutter: clamp(1rem, 2.2vw, 1.75rem);
  --sect: clamp(3rem, 6.5vw, 5.25rem);
  --measure: 38rem;

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
}

/* ---------- 2. 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.75;
  color: var(--deep);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--deep);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.125rem); }
h3 { font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem); }
h4 { font-size: 1.0625rem; }

p + p { margin-block-start: 1em; }

strong { font-weight: 800; }

small { font-size: 0.8125rem; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 3. 布局工具 ---------- */
.container {
  width: min(100% - clamp(1.5rem, 5vw, 3.5rem), 1180px);
  margin-inline: auto;
}

.page-shell {
  padding-block: clamp(1.25rem, 3vw, 2.25rem) 0;
}

.section { padding-block: var(--sect); }
.section--tight { padding-block: calc(var(--sect) * 0.55); }
.section--snow { background: var(--snow); }
.section--sand { background: var(--sand); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-block-end: clamp(1.25rem, 2.6vw, 2rem);
}

.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--red);
}

.section-head__eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}

.section-head__title { letter-spacing: -0.015em; }

.section-head__desc {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1rem;
}

.grid {
  display: grid;
  gap: var(--gutter);
}

.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)); }
.grid--asym { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

.stack--tight { gap: 0.75rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 正文容器 ---------- */
.prose { max-width: var(--measure); }

.prose > * + * { margin-block-start: 1em; }

.prose h2 {
  margin-block-start: 1.8em;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}

.prose h3 { margin-block-start: 1.5em; }

.prose ul,
.prose ol {
  padding-inline-start: 1.35rem;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-block-start: 0.35em; }

.prose a {
  color: var(--sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.prose blockquote {
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--sand);
  color: var(--deep);
}

/* ---------- 5. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.24s ease, background-color 0.24s ease,
              border-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--sky), #154E92);
  color: #FFFFFF;
  box-shadow: 0 12px 26px -14px rgba(27, 98, 184, 0.95);
}

.btn--primary:hover { box-shadow: 0 18px 32px -14px rgba(27, 98, 184, 1); }

.btn--accent {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #FFFFFF;
  box-shadow: 0 12px 26px -14px rgba(179, 37, 44, 0.95);
}

.btn--accent:hover { box-shadow: 0 18px 32px -14px rgba(179, 37, 44, 1); }

.btn--ghost {
  background: var(--snow);
  color: var(--deep);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.btn--sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transition: transform 0.24s ease, border-color 0.24s ease,
              background-color 0.24s ease, color 0.24s ease;
}

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

.pill--sky {
  background: rgba(27, 98, 184, 0.1);
  border-color: rgba(27, 98, 184, 0.24);
  color: var(--sky);
}

.pill--red {
  background: rgba(179, 37, 44, 0.1);
  border-color: rgba(179, 37, 44, 0.26);
  color: var(--red);
}

.pill--gold {
  background: rgba(224, 169, 59, 0.16);
  border-color: rgba(224, 169, 59, 0.42);
  color: #8A6410;
}

.pill--green {
  background: rgba(30, 156, 140, 0.12);
  border-color: rgba(30, 156, 140, 0.32);
  color: #12705F;
}

.pill--stone {
  background: rgba(74, 90, 107, 0.1);
  border-color: rgba(74, 90, 107, 0.22);
  color: var(--stone);
}

/* ---------- 6. 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 98, 184, 0.32);
  box-shadow: var(--shadow-lift);
}

.card__title { font-size: 1.1875rem; }

.card__text {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: auto;
  padding-block-start: 0.6rem;
  color: var(--stone);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.card__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.card__list li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  margin-block-start: 0.6rem;
  border-radius: 50%;
  background: var(--light-sky);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb { padding-block: 0.25rem; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--stone);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--light-sky);
}

.breadcrumb a {
  color: var(--sky);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

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

/* ---------- 8. 媒体容器（供页面阶段放置图片） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(127, 178, 232, 0.34), rgba(237, 227, 212, 0.62));
  border: 1px solid var(--line);
}

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

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

.media--scrim::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(14, 46, 79, 0.42), transparent);
  pointer-events: none;
}

.media__caption {
  margin-block-start: 0.6rem;
  color: var(--stone);
  font-size: 0.8125rem;
}

.texture-dots {
  background-image: radial-gradient(rgba(14, 46, 79, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* ---------- 9. 页头 ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -6rem;
  z-index: 200;
  padding: 0.7rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--red);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.22s ease;
}

.skip-link:focus {
  top: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--cloud);
  transition: box-shadow 0.3s ease;
}

.site-header[data-stuck] {
  box-shadow: 0 14px 34px -22px rgba(14, 46, 79, 0.65);
}

/* 状态带 */
.status-rail {
  background: linear-gradient(90deg, var(--deep) 0%, var(--sky) 48%, var(--light-sky) 100%);
  color: #EAF2FC;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.status-rail__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 38px;
  padding-block: 0.35rem;
}

.status-rail__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.24rem 0.9rem 0.24rem 0.65rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #F2F7FD;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.status-rail__dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  animation: hl-pulse 2.6s ease-out infinite;
}

@keyframes hl-pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 169, 59, 0.62); }
  70% { box-shadow: 0 0 0 9px rgba(224, 169, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 169, 59, 0); }
}

.status-rail__text { white-space: nowrap; }

.status-rail__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: #2A1B00;
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.24s ease, background-color 0.24s ease;
}

.status-rail__cta:hover {
  transform: translateY(-2px);
  background: #F0BC55;
}

/* 刊头 */
.masthead {
  max-height: 280px;
  overflow: hidden;
  background:
    radial-gradient(120% 150% at 50% -40%, rgba(127, 178, 232, 0.34), transparent 64%),
    var(--cloud);
  border-bottom: 1px solid var(--line);
  transition: max-height 0.36s cubic-bezier(0.2, 0.7, 0.3, 1),
              opacity 0.26s ease, border-color 0.26s ease;
}

.site-header[data-stuck] .masthead {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.masthead__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(1.4rem, 3.6vw, 2.6rem) clamp(1rem, 2.4vw, 1.5rem);
  text-align: center;
}

.brandmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.brandmark__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  height: 2.25rem;
  padding-inline: 0.75rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 18px -8px rgba(122, 20, 24, 0.85);
}

.brandmark__name {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.125rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--deep);
}

.brandmark__line {
  font-size: clamp(0.8125rem, 0.78rem + 0.18vw, 0.9375rem);
  letter-spacing: 0.08em;
  color: var(--stone);
}

/* 导航 */
.nav-bar {
  background: var(--snow);
  border-bottom: 1px solid var(--line);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0.65rem;
}

.nav-bar__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 1.05rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  color: var(--deep);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.24s ease, background-color 0.24s ease,
              border-color 0.24s ease, transform 0.24s ease;
}

.nav-link:hover {
  background: var(--snow);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.nav-link[aria-current="page"] {
  color: var(--red);
  background: var(--snow);
  border-color: var(--red);
  font-weight: 800;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--snow);
  color: var(--deep);
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.nav-toggle:hover {
  border-color: var(--sky);
  color: var(--sky);
  transform: translateY(-2px);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.05rem;
  height: 0.7rem;
}

.nav-toggle__bars > span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-bar[data-open] .nav-toggle__bars > span:nth-child(1) {
  transform: translateY(0.34rem) rotate(45deg);
}

.nav-bar[data-open] .nav-toggle__bars > span:nth-child(2) {
  opacity: 0;
}

.nav-bar[data-open] .nav-toggle__bars > span:nth-child(3) {
  transform: translateY(-0.34rem) rotate(-45deg);
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-block-start: clamp(3rem, 6vw, 5rem);
  padding-block-end: 0.5rem;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  color: #D7E5F4;
  background:
    radial-gradient(120% 130% at 10% 0%, rgba(27, 98, 184, 0.62), transparent 62%),
    radial-gradient(100% 110% at 90% 6%, rgba(30, 156, 140, 0.28), transparent 58%),
    linear-gradient(180deg, #123A63 0%, var(--deep) 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.55;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem);
}

.site-footer__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.site-footer__markglyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 1.85rem;
  padding-inline: 0.55rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.site-footer__line {
  margin-block-start: 0.65rem;
  font-size: 0.9375rem;
  color: #9FC0E2;
}

.site-footer__note {
  margin-block-start: 0.9rem;
  max-width: 32rem;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: #8AA9CB;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.footer-col__title {
  margin-block-end: 0.8rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #D7E5F4;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.24s ease, transform 0.24s ease;
}

.footer-col__link::before {
  content: "";
  flex: none;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--light-sky);
  opacity: 0.55;
  transition: background-color 0.24s ease, opacity 0.24s ease;
}

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

.footer-col__link:hover::before {
  background: var(--gold);
  opacity: 1;
}

.site-footer__contact {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding-block: clamp(1.15rem, 2.4vw, 1.6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9375rem;
  color: #BCD4EC;
}

.site-footer__contactitem { display: inline-flex; }

.site-footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1.1rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  color: #8AA9CB;
}

.site-footer__legal { font-variant-numeric: tabular-nums; }

.site-footer__closing { color: #BCD4EC; }

/* ---------- 11. 动效与滚动组件 ---------- */
.scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold) 52%, var(--green));
  transition: width 0.12s linear;
}

.to-top {
  position: fixed;
  inset-inline-end: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--snow);
  color: var(--deep);
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease,
              visibility 0.28s ease, border-color 0.24s ease, color 0.24s ease;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.hl-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav-bar__inner {
    justify-content: center;
    padding-block: 0.6rem;
  }

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

  .nav-bar__list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin-block-start: 0.6rem;
    padding: 0.5rem;
    border-radius: var(--r-lg);
  }

  .nav-bar[data-open] .nav-bar__list {
    display: flex;
    animation: hl-nav-in 0.28s ease both;
  }

  .nav-bar__inner { flex-direction: column; }

  .nav-link {
    padding: 0.7rem 1rem;
    border-radius: var(--r-sm);
    text-align: start;
  }

  .nav-link:hover { transform: none; }

  .nav-link[aria-current="page"] {
    background: var(--sand);
    border-color: var(--red);
  }
}

@keyframes hl-nav-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

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

@media (max-width: 720px) {
  .masthead { max-height: 230px; }

  .site-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

  .site-footer__bottom { justify-content: flex-start; }
}

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

  .status-rail__inner {
    justify-content: center;
    gap: 0.5rem;
    padding-block: 0.45rem;
  }

  .status-rail__pill {
    padding-inline: 0.7rem;
    font-size: 0.75rem;
  }

  .status-rail__text { white-space: normal; }

  .status-rail__cta { font-size: 0.75rem; }

  .media--wide { aspect-ratio: 16 / 10; }

  .to-top { padding: 0.6rem 0.95rem; }
}

/* ---------- 13. 偏好与印刷 ---------- */
@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;
  }

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

  .to-top {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .scroll-progress,
  .to-top {
    display: none !important;
  }
}
