/* ============================================================
   利来官网 · 共享站点样式 /assets/site.css
   入口闸机 + 纸质档案：深墨蓝承重，纸白阅读，信号橙定位
   ============================================================ */

:root {
  --ink: #0B1F2A;
  --ink-2: #122C3A;
  --paper: #F4F1E9;
  --archive: #EFE6D6;
  --silver: #C7CDD2;
  --graphite: #182024;
  --signal: #FF6B2C;
  --amber: #FFB38A;
  --jade: #2FAF8F;
  --teal: #1E6F63;
  --clay: #B46A4F;
  --moss: #6F7F5E;

  --line: rgba(24, 32, 36, 0.14);
  --line-strong: rgba(24, 32, 36, 0.3);
  --line-dark: rgba(244, 241, 233, 0.16);

  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --shell: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --measure: 40em;
}

/* ---------------- reset ---------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

a { color: inherit; }

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

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

table { border-collapse: collapse; }

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

.site-footer :focus-visible,
.header-bar :focus-visible { outline-color: var(--amber); }

/* ---------------- base ---------------- */
body {
  background-color: var(--paper);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 5vw, 64px); }
h2 { font-size: clamp(26px, 3.2vw, 44px); }
h3 {
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
h4 { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.35; letter-spacing: 0; }

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

/* ---------------- skip link ---------------- */
.skip-link {
  position: fixed;
  top: -72px;
  left: 14px;
  z-index: 200;
  padding: 11px 18px;
  background-color: var(--signal);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 14px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

/* --- 信号带 --- */
.header-bar {
  background-color: var(--ink);
  color: var(--paper);
}

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

.status-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 241, 233, 0.78);
}

.status-chip__label { letter-spacing: 0.08em; }

.status-chip__ver {
  color: var(--signal);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.status-chip__state {
  padding: 2px 7px;
  border: 1px solid rgba(47, 175, 143, 0.55);
  border-radius: 2px;
  color: var(--jade);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.status-lamp {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(47, 175, 143, 0.18);
  animation: lamp-breathe 3.4s ease-in-out infinite;
}

@keyframes lamp-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 175, 143, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(47, 175, 143, 0.04); }
}

.header-bar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  background-color: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.bar-cta:hover {
  background-color: var(--amber);
  border-color: var(--amber);
}

.bar-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(244, 241, 233, 0.3);
  border-radius: 2px;
  color: rgba(244, 241, 233, 0.86);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.bar-link:hover {
  color: var(--signal);
  border-color: var(--signal);
}

/* --- 移动导航按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(244, 241, 233, 0.3);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover { color: var(--signal); border-color: var(--signal); }

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 14px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 0.22s ease;
}

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

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

.nav-toggle__text { line-height: 1; }

/* --- 刊头 --- */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding-block: clamp(14px, 2vw, 24px) clamp(10px, 1.4vw, 16px);
}

.masthead__brand {
  grid-column: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 74px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.masthead__brand:hover { color: var(--teal); }

.masthead__stamp,
.masthead__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}

.masthead__stamp { grid-column: 1; }
.masthead__meta { grid-column: 3; text-align: right; }

/* --- 栏目导航 --- */
.site-nav {
  border-top: 2px solid var(--ink);
  background-color: var(--paper);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 3vw, 42px);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 11px 2px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.18s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background-color: var(--signal);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.22s ease;
}

.site-nav__link:hover { color: var(--ink); }
.site-nav__link:hover::after { transform: scaleX(1); }

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

.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 96px);
  background-color: var(--ink);
  color: var(--paper);
  border-top: 6px solid var(--ink-2);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 78px;
  height: 2px;
  background-color: var(--signal);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(34px, 5vw, 68px) clamp(24px, 3.5vw, 42px);
}

.footer-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-desc {
  max-width: 26em;
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(244, 241, 233, 0.72);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.footer-group__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-group__list {
  display: grid;
  gap: 9px;
}

.footer-group__list a {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: rgba(244, 241, 233, 0.84);
  font-size: 14.5px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-group__list a:hover {
  color: var(--paper);
  border-bottom-color: var(--signal);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px clamp(16px, 3vw, 40px);
  padding-block: clamp(18px, 2.6vw, 26px);
  border-top: 1px solid var(--line-dark);
}

.footer-contact__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 233, 0.76);
  overflow-wrap: anywhere;
}

.footer-contact__key {
  flex: none;
  min-width: 5.2em;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px clamp(20px, 2.6vw, 28px);
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 233, 0.56);
}

.footer-legal__copy,
.footer-legal__icp { margin: 0; }

.footer-legal__back {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 107, 44, 0.45);
  color: var(--signal);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-legal__back:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ============================================================
   通用组件
   ============================================================ */
.content {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(26px, 4.2vw, 56px) clamp(48px, 7vw, 96px);
}

.content--narrow { max-width: 52em; }

.section { padding-block: clamp(30px, 4.6vw, 68px); }
.section + .section { border-top: 1px solid var(--line); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.stack {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
}

.grid--sidebar {
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  align-items: start;
}

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

.rule {
  height: 0;
  margin-block: clamp(22px, 3.6vw, 46px);
  border: 0;
  border-top: 1px solid var(--line-strong);
}

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.82em 1.4em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--signal {
  background-color: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.btn--signal:hover {
  background-color: var(--amber);
  border-color: var(--amber);
}

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

.btn--ghost:hover {
  border-color: var(--ink);
  background-color: rgba(11, 31, 42, 0.04);
}

.btn--dark {
  background-color: var(--ink);
  border-color: var(--ink-2);
  color: var(--paper);
}

.btn--dark:hover {
  background-color: var(--ink-2);
  border-color: var(--signal);
}

.btn--sm {
  padding: 0.6em 1em;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

/* --- 标签 --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: var(--archive);
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.tag--jade {
  background-color: rgba(47, 175, 143, 0.1);
  border-color: rgba(47, 175, 143, 0.5);
  color: var(--teal);
}

.tag--signal {
  background-color: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  font-weight: 600;
}

.tag--clay {
  background-color: rgba(180, 106, 79, 0.08);
  border-color: rgba(180, 106, 79, 0.45);
  color: var(--clay);
}

.tag--moss {
  background-color: rgba(111, 127, 94, 0.09);
  border-color: rgba(111, 127, 94, 0.45);
  color: var(--moss);
}

.tag--dark {
  background-color: var(--ink);
  border-color: var(--ink-2);
  color: var(--paper);
}

/* --- 眉题 --- */
.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow--light { color: var(--amber); }

/* --- 面包屑 --- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(24, 32, 36, 0.6);
}

.crumbs a {
  color: var(--teal);
  text-decoration: none;
}

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

.crumbs__sep { color: var(--silver); }

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

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

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

.prose h2 { margin-block: 1.9em 0.55em; }
.prose h3 { margin-block: 1.7em 0.5em; }

.prose p { margin: 0; }

.prose a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 111, 99, 0.4);
}

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

.prose ul { display: grid; gap: 0.4em; }

.prose ul li {
  position: relative;
  padding-left: 1.1em;
}

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

.prose blockquote {
  padding: 0.1em 0 0.1em 1.1em;
  border-left: 2px solid var(--signal);
  color: rgba(24, 32, 36, 0.78);
}

.prose small,
.note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(24, 32, 36, 0.55);
}

/* --- 面板 --- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: var(--archive);
  box-shadow: 6px 6px 0 -1px rgba(11, 31, 42, 0.08);
}

.panel--ink {
  background-color: var(--ink);
  border-color: var(--ink-2);
  color: var(--paper);
  box-shadow: 6px 6px 0 -1px rgba(11, 31, 42, 0.2);
}

.panel--ink h2,
.panel--ink h3 { color: var(--paper); }

.panel--ink .note { color: rgba(244, 241, 233, 0.62); }

.panel--signal {
  background-color: var(--signal);
  border-color: rgba(11, 31, 42, 0.2);
  color: var(--ink);
  box-shadow: 6px 6px 0 -1px rgba(11, 31, 42, 0.14);
}

.panel--signal h2,
.panel--signal h3 { color: var(--ink); }

/* --- 章节目录 --- */
.section-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 2px;
  align-content: start;
}

.section-nav__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

.section-nav__link {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--line-strong);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(24, 32, 36, 0.68);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.section-nav__link:hover {
  color: var(--ink);
  background-color: rgba(11, 31, 42, 0.045);
}

.section-nav__link[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--signal);
}

/* --- 图片容器 --- */
.media {
  display: block;
  margin: 0;
}

.media__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--archive);
  border: 1px solid var(--line-strong);
  box-shadow: 8px 8px 0 -2px rgba(11, 31, 42, 0.07);
}

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

.media__frame--grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 31, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 42, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(24, 32, 36, 0.55);
}

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

/* --- 档案表格 --- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
}

.ledger {
  width: 100%;
  font-size: 14.5px;
  text-align: left;
}

.ledger caption {
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  text-align: left;
}

.ledger th {
  padding: 11px 12px;
  background-color: rgba(199, 205, 210, 0.26);
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.ledger td {
  padding: 12px;
  border-bottom: 1px solid var(--silver);
  color: var(--graphite);
  vertical-align: top;
}

.ledger tbody tr:hover { background-color: rgba(239, 230, 214, 0.8); }

.ledger .num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  white-space: nowrap;
}

/* --- 滚动进度与返回顶部（JS 注入） --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--signal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 90;
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink-2);
  border-radius: 2px;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 5px 5px 0 -1px rgba(11, 31, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease,
    background-color 0.18s ease, color 0.18s ease;
}

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

.back-to-top:hover {
  background-color: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

/* --- 显现 --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .footer-top {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  }
}

@media (max-width: 899px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    box-shadow: 0 1px 0 rgba(11, 31, 42, 0.08);
  }

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

  .masthead {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 12px 10px;
  }

  .masthead__brand {
    grid-column: 1;
    font-size: clamp(30px, 8vw, 46px);
  }

  .masthead__stamp,
  .masthead__meta { display: none; }

  .site-nav {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.3s ease, visibility 0.3s ease;
  }

  .site-nav[data-open] {
    grid-template-rows: 1fr;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    min-height: 0;
    overflow: hidden;
  }

  .site-nav__link {
    display: block;
    padding: 13px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] { color: var(--signal); }

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

  .section-nav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .section-nav__title { grid-column: 1 / -1; }

  .section-nav__link {
    padding: 6px 10px;
    border-left: 0;
    border-bottom: 2px solid var(--line-strong);
  }

  .section-nav__link[aria-current="true"] {
    border-bottom-color: var(--signal);
  }

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

@media (max-width: 680px) {
  .bar-cta { display: none; }

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

@media (max-width: 620px) {
  .status-chip__label { display: none; }
  .status-chip { font-size: 10.5px; letter-spacing: 0.07em; }
}

@media (max-width: 460px) {
  .footer-groups { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { font-size: 11px; letter-spacing: 0.05em; }
  .back-to-top { width: 44px; height: 44px; }
}

/* ============================================================
   减少动效
   ============================================================ */
@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;
  }

  .status-lamp {
    animation: none;
    box-shadow: 0 0 0 3px rgba(47, 175, 143, 0.18);
  }

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

  .btn:hover { transform: none; }
}

/* ============================================================
   打印（法律页可用）
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .scroll-progress,
  .back-to-top,
  .section-nav { display: none !important; }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .content { max-width: none; padding: 0; }
  .prose { max-width: none; }
  a { text-decoration: underline; }
}
