/* ==========================================================================
   澳发平台CN · 共享站点样式 /assets/site.css
   深海青轨道 + 暖砂金标记 + 珊瑚橙单一动作
   ========================================================================== */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, dt {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

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

summary { cursor: pointer; }

/* --- 2. 设计令牌 --- */
:root {
  --c-deep-900: #0A2A33;
  --c-deep-700: #13434F;
  --c-deep-500: #1E6675;
  --c-deep-100: #DCE9EB;
  --c-gold-500: #C99A4E;
  --c-gold-200: #EFDCB6;
  --c-coral-500: #E2664A;
  --c-teal-400: #2CC7B8;
  --c-paper-50: #F7F4EE;
  --c-ink-900: #102226;
  --c-stone-500: #687A7D;

  --c-line: rgba(16, 34, 38, 0.14);
  --c-line-strong: rgba(16, 34, 38, 0.3);
  --line-on-deep: rgba(247, 244, 238, 0.14);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --rail-w: 268px;
  --bar-h: 64px;

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --shadow-card: 0 16px 34px -28px rgba(10, 42, 51, 0.65);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* --- 3. 基础排版 --- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-ink-900);
  background-color: var(--c-paper-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--c-ink-900);
}

h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 18px; }

strong, b { font-weight: 700; }

::selection { background: var(--c-gold-200); color: var(--c-deep-900); }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

/* --- 4. 跳转链接 --- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--c-gold-500);
  color: var(--c-deep-900);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

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

/* --- 5. 头部：移动顶部条 --- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  font-family: var(--font-head);
}

.head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--bar-h);
  padding: 0 16px;
  background: var(--c-deep-900);
  color: var(--c-paper-50);
  border-bottom: 1px solid rgba(201, 154, 78, 0.28);
}

.head-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--c-paper-50);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--c-deep-700);
  border: 1px solid rgba(201, 154, 78, 0.55);
  color: var(--c-gold-200);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 154, 78, 0.5);
  color: var(--c-gold-200);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
  background: rgba(201, 154, 78, 0.16);
  border-color: rgba(201, 154, 78, 0.85);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.22s;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease), top 0.26s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-head[data-open] .nav-toggle__bars { background: transparent; }
.site-head[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-head[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* --- 6. 头部：轨道导航（移动端为抽屉） --- */
.rail {
  position: fixed;
  top: var(--bar-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 79;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 20px 44px;
  overflow-y: auto;
  background: var(--c-deep-900);
  color: var(--c-paper-50);
  border-right: 1px solid rgba(201, 154, 78, 0.22);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 0.34s var(--ease), visibility 0.34s;
}

.site-head[data-open] .rail {
  transform: translateX(0);
  visibility: visible;
}

html[data-nav-open] { overflow: hidden; }

.rail-brand__link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rail-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--c-deep-700);
  border: 1px solid rgba(201, 154, 78, 0.55);
}

.rail-brand__glyph {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-gold-200);
  line-height: 1;
}

.rail-brand__text { display: block; }

.rail-brand__name {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.rail-brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(239, 220, 182, 0.72);
}

.rail-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(239, 220, 182, 0.62);
}

.rail-label__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 154, 78, 0.6), rgba(201, 154, 78, 0));
}

.rail-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: rgba(247, 244, 238, 0.78);
  font-size: 15.5px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.rail-nav__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-gold-500);
  opacity: 0.8;
}

.rail-nav__text { flex: 1; }

.rail-nav__link:hover {
  background: rgba(44, 199, 184, 0.12);
  border-color: rgba(44, 199, 184, 0.35);
  color: #fff;
  transform: translateX(3px);
}

.rail-nav__link[aria-current="page"] {
  background: rgba(201, 154, 78, 0.16);
  border-color: rgba(201, 154, 78, 0.55);
  color: #fff;
}

.rail-nav__link[aria-current="page"] .rail-nav__num {
  color: var(--c-gold-200);
  opacity: 1;
}

.rail-nav__link[aria-current="page"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-coral-500);
}

.rail-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-on-deep);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rail-hint {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(247, 244, 238, 0.18);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(247, 244, 238, 0.72);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.rail-hint:hover {
  border-color: rgba(44, 199, 184, 0.6);
  background: rgba(44, 199, 184, 0.1);
  color: var(--c-teal-400);
}

/* --- 7. 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.2s;
}

.btn--accent {
  background: var(--c-coral-500);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(226, 102, 74, 0.95);
}

.btn--accent:hover { background: #d2553a; transform: translateY(-1px); }

.btn--ghost {
  background: var(--c-deep-700);
  color: var(--c-paper-50);
}

.btn--ghost:hover { background: var(--c-deep-500); transform: translateY(-1px); }

.btn--outline {
  border-color: var(--c-gold-500);
  color: var(--c-deep-700);
  background: transparent;
}

.btn--outline:hover { background: var(--c-gold-200); }

.btn--line {
  border-color: rgba(201, 154, 78, 0.6);
  color: var(--c-gold-200);
  background: transparent;
}

.btn--line:hover {
  background: rgba(201, 154, 78, 0.18);
  border-color: var(--c-gold-500);
}

.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--block { width: 100%; }

.rail-cta { letter-spacing: 0.06em; }

/* --- 8. 页脚 --- */
.site-foot {
  margin-top: 0;
  background: var(--c-deep-900);
  color: rgba(247, 244, 238, 0.82);
  font-family: var(--font-head);
  border-top: 3px solid var(--c-gold-500);
}

.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.foot-brand {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 12px;
}

.foot-note {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(247, 244, 238, 0.72);
  max-width: 46ch;
  margin-bottom: 10px;
}

.foot-note--dim { color: rgba(247, 244, 238, 0.5); font-size: 14px; }

.foot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.foot-tag {
  padding: 5px 12px;
  border: 1px solid rgba(201, 154, 78, 0.45);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--c-gold-200);
}

.foot-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(239, 220, 182, 0.85);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-on-deep);
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 15px;
  color: rgba(247, 244, 238, 0.8);
  transition: color 0.2s, transform 0.2s;
}

.foot-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(201, 154, 78, 0.7);
}

.foot-links a:hover { color: var(--c-gold-200); transform: translateX(3px); }

.foot-contact { display: flex; flex-direction: column; gap: 12px; }

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(247, 244, 238, 0.14);
}

.foot-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(239, 220, 182, 0.62);
  flex: 0 0 68px;
}

.foot-val {
  font-size: 14.5px;
  color: rgba(247, 244, 238, 0.9);
  word-break: break-word;
}

.foot-row--wide .foot-val { flex: 1 1 160px; }

.copy-btn {
  padding: 4px 10px;
  border: 1px solid rgba(201, 154, 78, 0.5);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-gold-200);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.copy-btn:hover { background: rgba(201, 154, 78, 0.18); }

.copy-btn[data-copied] {
  background: var(--c-teal-400);
  border-color: var(--c-teal-400);
  color: #05322e;
}

.foot-cta { margin-top: 16px; }

.foot-base {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 32px;
  border-top: 1px solid var(--line-on-deep);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  font-size: 13px;
  color: rgba(247, 244, 238, 0.6);
}

.foot-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.foot-hours { margin-left: auto; }

/* --- 9. 布局容器与分区 --- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: clamp(44px, 7vw, 92px) 0; }
.section--paper { background: var(--c-paper-50); }
.section--tint { background: var(--c-deep-100); }
.section--deep {
  background: var(--c-deep-900);
  color: var(--c-paper-50);
}
.section--deep h1,
.section--deep h2,
.section--deep h3 { color: var(--c-paper-50); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--c-line);
}

/* --- 10. 小标、区块头、面包屑、正文 --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-deep-500);
}

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

.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 20px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
}

.block-head__title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
}

.block-head__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-stone-500);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-stone-500);
}

.crumbs a { transition: color 0.2s; }
.crumbs a:hover { color: var(--c-deep-500); text-decoration: underline; }

.crumbs__sep { color: var(--c-gold-500); }

.crumbs [aria-current="page"] { color: var(--c-deep-700); }

.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.8;
}

.prose p { margin-bottom: 1.05em; }

.prose h2 {
  margin: 1.6em 0 0.6em;
  font-size: clamp(22px, 3vw, 30px);
}

.prose h3 { margin: 1.4em 0 0.5em; }

.prose ul,
.prose ol {
  margin: 0 0 1.05em;
  padding-left: 1.15em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li { margin-bottom: 0.4em; }

/* --- 11. 网格与卡片 --- */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

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

.card {
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-card);
}

.card__title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.card__body {
  font-size: 15.5px;
  color: var(--c-stone-500);
  line-height: 1.75;
}

.card__meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-deep-500);
}

/* --- 12. 标签、筛选、数值 --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--c-deep-100);
  color: var(--c-deep-700);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.tag--gold { background: var(--c-gold-200); color: #6B4C15; }
.tag--coral { background: rgba(226, 102, 74, 0.16); color: #A2381F; }
.tag--teal { background: rgba(44, 199, 184, 0.18); color: #10655D; }
.tag--line {
  background: transparent;
  border-color: var(--c-line-strong);
  color: var(--c-stone-500);
}

.chipline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-stone-500);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover { border-color: var(--c-deep-500); color: var(--c-deep-700); }

.chip[aria-pressed="true"],
.chip[data-active] {
  background: var(--c-deep-700);
  border-color: var(--c-deep-700);
  color: var(--c-paper-50);
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--c-deep-100);
}

.kpi__value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-deep-700);
  line-height: 1.2;
}

.kpi__label {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--c-stone-500);
}

/* --- 13. 折叠面板 --- */
.fold {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.fold + .fold { margin-top: 12px; }

.fold > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  list-style: none;
}

.fold > summary::-webkit-details-marker { display: none; }

.fold > summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--c-gold-500);
  border-bottom: 2px solid var(--c-gold-500);
  transform: rotate(45deg);
  transition: transform 0.26s var(--ease);
}

.fold[open] > summary::after { transform: rotate(-135deg); }

.fold__body {
  padding: 0 20px 20px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--c-stone-500);
  animation: foldIn 0.28s var(--ease);
}

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

/* --- 14. 图片容器（页面阶段放置图片） --- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-deep-100);
}

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

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

.media__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-deep-500);
  background-image: repeating-linear-gradient(135deg, rgba(30, 102, 117, 0.1) 0 10px, rgba(30, 102, 117, 0) 10px 20px);
}

.media__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 18px;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--c-paper-50);
  background: linear-gradient(0deg, rgba(10, 42, 51, 0.82), rgba(10, 42, 51, 0));
}

/* --- 15. 滚动进度与返回顶部 --- */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 95;
  height: 3px;
  pointer-events: none;
  background: rgba(10, 42, 51, 0.08);
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-gold-500), var(--c-teal-400));
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(201, 154, 78, 0.55);
  border-radius: 50%;
  background: var(--c-deep-700);
  color: var(--c-paper-50);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}

.to-top:hover { background: var(--c-deep-500); }

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

.to-top__arrow {
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

/* --- 16. 显现动效 --- */
html[data-js="ready"] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html[data-js="ready"] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* --- 17. 响应式 --- */
@media (min-width: 640px) {
  .wrap { padding: 0 32px; }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 52px 32px 30px;
  }

  .foot-col--brand { grid-column: 1 / -1; }

  .foot-base { padding: 18px 32px 32px; }

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

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

@media (min-width: 1024px) {
  body {
    font-size: 17px;
    padding-left: var(--rail-w);
  }

  .site-head {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--rail-w);
    height: 100%;
  }

  .head-bar,
  .nav-toggle { display: none; }

  .rail {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 32px 22px 28px;
    transform: none;
    visibility: visible;
  }

  html[data-nav-open] { overflow: auto; }

  .rail-nav__link { font-size: 16px; padding: 13px 15px; }

  .scroll-progress { left: var(--rail-w); }

  .wrap { padding: 0 48px; }

  .foot-grid {
    grid-template-columns: 1.5fr 0.9fr 0.9fr 1.15fr;
    gap: 36px;
    padding: 68px 48px 34px;
  }

  .foot-col--brand { grid-column: auto; }

  .foot-base { padding: 20px 48px 40px; }

  .grid { gap: 24px; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--aside { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }

  .to-top { right: 28px; bottom: 28px; }
}

@media (min-width: 1440px) {
  :root { --rail-w: 288px; }
}

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

  html[data-js="ready"] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .card:hover { transform: none; }
  .rail-nav__link:hover { transform: none; }
  .foot-links a:hover { transform: none; }
}
