/* =========================================================
   澳门永信 · 共享站点样式 /assets/site.css
   设计语言：堆叠面板 / 双层导航 / 深墨绿 + 暖金 + 青蓝强调
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink-900: #0B2B23;
  --ink-800: #0F3529;
  --ink-700: #16453A;
  --ink-400: #2E6B57;
  --gold-500: #C9A227;
  --gold-200: #EBD49B;
  --cyan-500: #17B5C6;
  --paper-050: #F5F1E7;
  --paper-150: #E6DFCF;
  --ink-text: #12211C;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.14);

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, "Courier New", monospace;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}


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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-text);
  background-color: var(--paper-050);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(23, 181, 198, 0.06), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(201, 162, 39, 0.08), transparent 46%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

svg { max-width: 100%; }

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

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 800; line-height: 1.25; }
h4 { font-size: 1.05rem; font-weight: 800; line-height: 1.35; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

dl,
dd,
dt { margin: 0; }

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

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

#main-content { scroll-margin-top: clamp(120px, 18vh, 190px); }


/* ---------- 3. 通用工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.94em;
  letter-spacing: 0.04em;
}

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--gold-500);
  color: var(--ink-900);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
  flex: none;
}
.eyebrow--light { color: var(--gold-200); }
.eyebrow--light::before { background: var(--cyan-500); }

.divider {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 48px) 0;
  background: linear-gradient(90deg, rgba(46, 107, 87, 0.4), rgba(46, 107, 87, 0));
}


/* ---------- 4. 按钮与状态 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold-500);
  color: #0B2B23;
  box-shadow: 0 14px 26px -16px rgba(201, 162, 39, 0.95);
}
.btn--gold:hover { background: var(--gold-200); }

.btn--cyan {
  background: var(--cyan-500);
  color: #04211F;
  box-shadow: 0 14px 26px -16px rgba(23, 181, 198, 0.9);
}
.btn--cyan:hover { background: #4ad0dd; }

.btn--ghost {
  border-color: rgba(46, 107, 87, 0.45);
  color: var(--ink-700);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink-700);
  background: rgba(46, 107, 87, 0.08);
  color: var(--ink-900);
}

.btn--onDark {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--paper-050);
  background: var(--glass);
}
.btn--onDark:hover {
  border-color: var(--cyan-500);
  color: #ffffff;
  background: rgba(23, 181, 198, 0.16);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(23, 181, 198, 0.35);
  background: rgba(23, 181, 198, 0.12);
  color: #0d6d78;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.12);
  color: #7d6410;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(23, 181, 198, 0.18);
  flex: none;
}
.status-dot--gold {
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}
.status-dot--muted {
  background: var(--ink-400);
  box-shadow: 0 0 0 4px rgba(46, 107, 87, 0.16);
}


/* ---------- 5. 结构组件 ---------- */
.card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(46, 107, 87, 0.18);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 32px);
  box-shadow: 0 18px 36px -30px rgba(11, 43, 35, 0.7);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-500);
  box-shadow: 0 26px 44px -30px rgba(11, 43, 35, 0.75);
}

.panel {
  position: relative;
  background: var(--ink-700);
  color: var(--paper-050);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 44px);
  overflow: hidden;
}
.panel h1,
.panel h2,
.panel h3,
.panel h4 { color: var(--paper-050); }

.panel--glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: clamp(14px, 2vw, 22px);
  color: var(--paper-050);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.section { padding-block: clamp(40px, 6vw, 80px); }

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

.section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  margin: 0;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
}
.prose h2 { margin: 2em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose p { margin: 0 0 1.2em; }
.prose ul,
.prose ol {
  list-style: disc;
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.45em; }
.prose a {
  color: #0d6d78;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(23, 181, 198, 0.45);
}
.prose a:hover { color: var(--cyan-500); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 16px 22px;
  border-left: 3px solid var(--gold-500);
  background: var(--gold-200);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-900);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-400);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb li + li::before {
  content: "/";
  color: rgba(46, 107, 87, 0.45);
}
.breadcrumb a {
  color: var(--ink-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(46, 107, 87, 0.35);
}
.breadcrumb a:hover { color: var(--ink-900); }
.breadcrumb [aria-current="page"] {
  color: var(--ink-text);
  font-weight: 700;
  text-decoration: none;
}


/* ---------- 6. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(46, 107, 87, 0.18);
  background-color: var(--paper-150);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(46, 107, 87, 0.12) 0 8px,
    transparent 8px 16px
  );
}
.media img,
.media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.media img { object-fit: cover; }

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media--onDark {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: var(--ink-700);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.06) 0 8px,
    transparent 8px 16px
  );
}

.media__caption {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-400);
}


/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--paper-050);
  background: linear-gradient(180deg, #0B2B23 0%, #10382D 55%, #0B2B23 100%);
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.24);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.3), 0 22px 38px -28px rgba(0, 0, 0, 0.85);
}

/* 上层信息条 */
.header-top {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(201, 162, 39, 0.16);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  min-height: 48px;
  flex-wrap: wrap;
  padding-block: 6px;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: #B4C9C0;
}
.brand-line::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
  flex: none;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #96AFA5;
}
.header-meta__region { letter-spacing: 0.03em; }
.header-meta__version {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-200);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.header-meta__help {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 2px;
  color: var(--cyan-500);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(23, 181, 198, 0.45);
  text-decoration-thickness: 1px;
}
.header-meta__help:hover {
  color: #6fe0eb;
  text-decoration-color: currentColor;
}

/* 下层主导航 */
.header-main { position: relative; }

.header-main__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-right: auto;
  min-height: 44px;
  padding-right: 8px;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #E0BC3B 0%, #C9A227 45%, #8A6F13 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  flex: none;
}
.brand__mark::after {
  content: "";
  width: 16px;
  height: 22px;
  border-radius: 8px 8px 2px 2px;
  background: var(--ink-900);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}
.brand__name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #F7F3E9;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #8CA79D;
  margin-top: 2px;
}

.site-nav { min-width: 0; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #CBDAD4;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-nav__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}
.site-nav__link[aria-current="page"] { color: var(--gold-200); }
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--cyan-500));
}

/* 移动栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.42);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper-050);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--cyan-500);
  background: rgba(23, 181, 198, 0.16);
  color: #ffffff;
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  flex: none;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-200);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

/* 通道索引按钮 */
.rail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #D5E3DD;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  flex: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.rail-toggle:hover {
  border-color: var(--cyan-500);
  color: #ffffff;
}
.rail-toggle[aria-expanded="true"] {
  border-color: var(--gold-500);
  background: rgba(201, 162, 39, 0.18);
  color: var(--gold-200);
}
.rail-toggle__icon {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  width: 14px;
  height: 14px;
  flex: none;
}
.rail-toggle__icon span {
  background: currentColor;
  border-radius: 1.5px;
  opacity: 0.85;
}
.rail-toggle__label { white-space: nowrap; }

/* 通道索引面板 */
.rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  padding: 18px 0 22px;
  background: #0C3128;
  border-top: 1px solid rgba(201, 162, 39, 0.24);
  border-bottom: 1px solid rgba(201, 162, 39, 0.34);
  box-shadow: 0 34px 44px -26px rgba(0, 0, 0, 0.8);
}
.rail[data-open] { display: block; }

.rail__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 10px;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #DCE8E2;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    background-color 0.22s var(--ease), color 0.22s var(--ease);
}
.rail__link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(23, 181, 198, 0.16);
  flex: none;
}
.rail__link:hover,
.rail__link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan-500);
  background: rgba(23, 181, 198, 0.14);
  color: #ffffff;
}

/* 阅读进度 */
.read-progress {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold-500) 0%, var(--gold-200) 46%, var(--cyan-500) 100%);
  transition: transform 0.18s linear;
}


/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 112px);
  padding-top: clamp(44px, 6vw, 76px);
  color: #C2D3CB;
  background: linear-gradient(180deg, #0B2B23 0%, #10382D 62%, #0B2B23 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500) 0%, var(--cyan-500) 55%, rgba(23, 181, 198, 0) 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(32px, 4.6vw, 56px);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #F7F3E9;
}
.footer__logo::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(145deg, #E0BC3B, #8A6F13);
  box-shadow: inset 0 0 0 2px rgba(11, 43, 35, 0.9);
  flex: none;
}
.footer__logo:hover { color: var(--gold-200); }

.footer__tagline {
  margin: 4px 0 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: #8CA79D;
}
.footer__note {
  max-width: 34ch;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.72;
  color: #A5BCB2;
}
.footer__version {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-200);
}

.footer__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-200);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14.5px;
  color: #B4C9C0;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__links a::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--cyan-500);
  transition: width 0.22s var(--ease), margin-right 0.22s var(--ease);
}
.footer__links a:hover { color: #ffffff; }
.footer__links a:hover::before {
  width: 12px;
  margin-right: 8px;
}

.footer__list { margin: 0; }
.footer__item { margin-bottom: 14px; }
.footer__item:last-of-type { margin-bottom: 0; }
.footer__item dt {
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #7C978C;
}
.footer__item dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #DCE8E2;
  overflow-wrap: anywhere;
}

.footer__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-200);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.footer__copy:hover {
  background: rgba(201, 162, 39, 0.24);
  border-color: var(--gold-500);
  color: #ffffff;
}

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.16);
}
.footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #829C92;
}
.footer__legal-inner p { margin: 0; }


/* ---------- 9. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}


/* ---------- 10. 响应式 ---------- */
@media (max-width: 1100px) {
  .site-nav__link { padding: 0 10px; font-size: 14.5px; }
  .site-nav__link[aria-current="page"]::after { left: 10px; right: 10px; }
  .brand__sub { letter-spacing: 0.1em; }
}

@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }

  .header-main__inner { min-height: 68px; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 12px var(--gutter) 18px;
    background: #0C3128;
    border-top: 1px solid rgba(201, 162, 39, 0.22);
    border-bottom: 1px solid rgba(201, 162, 39, 0.34);
    box-shadow: 0 34px 44px -26px rgba(0, 0, 0, 0.8);
  }
  .site-nav[data-open] { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav__link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 14px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }
  .site-nav__link[aria-current="page"] {
    background: rgba(201, 162, 39, 0.14);
    color: var(--gold-200);
  }
  .site-nav__link[aria-current="page"]::after {
    left: auto;
    right: 16px;
    top: 50%;
    bottom: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--gold-500);
  }

  .rail-toggle__label { display: none; }
  .rail-toggle {
    width: 44px;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
  }

  .grid--2,
  .grid--3,
  .grid--7-5,
  .grid--8-4,
  .grid--5-7 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .brand__name { font-size: 17px; }
  .brand__mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand__sub { font-size: 10px; letter-spacing: 0.1em; }
  .brand-line { font-size: 11.5px; letter-spacing: 0.03em; }
  .header-meta { font-size: 11.5px; gap: 6px 12px; }
  .header-meta__region { display: none; }
  .footer__links { grid-template-columns: minmax(0, 1fr); }
  .footer__links a { min-height: 44px; }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__legal-inner { justify-content: flex-start; }
  .panel { padding: 22px; }
  .card { padding: 20px; }
}


/* ---------- 11. 无障碍与偏好 ---------- */
@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;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .btn:hover,
  .card:hover,
  .rail__link:hover { transform: none; }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .read-progress { display: none !important; }
  body { background: #ffffff; color: #000000; }
}
