/* =================================================================
   亿发门户 · 共享样式 /assets/site.css
   通道 + 档案：深墨控制台 / 暖纸阅读面 / 电光青绿导引 / 暖琥珀批次
   ================================================================= */

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

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

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

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

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

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

button { background: none; border: 0; }

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

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

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #07111F;
  --ink-deep: #040B14;
  --panel: #0F1E32;
  --panel-soft: #16283F;
  --paper: #F4EFE3;
  --paper-line: #D8CDB8;
  --paper-shade: #E7DFCE;
  --signal: #21E6C1;
  --signal-deep: #087A6B;
  --amber: #F4A340;
  --alert: #D34A44;
  --mist: #9AA8B8;
  --text-on-ink: #E9EFF6;

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

  --max: 1440px;
  --gutter: clamp(18px, 4vw, 48px);
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 88px;
  --sp-8: 120px;

  --shadow-hard: 8px 8px 0 rgba(33, 230, 193, 0.16);
  --shadow-paper: 10px 10px 0 rgba(7, 17, 31, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 2. 基础排版 ---------- */
body {
  background-color: var(--ink);
  color: var(--text-on-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(154, 168, 184, 0.05) 0 1px,
    transparent 1px 4px
  );
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--paper);
}

h1 { font-size: clamp(32px, 6vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 42px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: clamp(17px, 1.8vw, 20px); }

p { max-width: 72ch; }

strong { font-weight: 700; color: var(--paper); }

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

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

#main-content { scroll-margin-top: 96px; }

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -140px;
  z-index: 300;
  display: inline-block;
  padding: 13px 20px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(7, 17, 31, 0.5);
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 16px; }

/* ---------- 4. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.96) 0%, rgba(7, 17, 31, 0.72) 100%);
  border-bottom: 1px solid rgba(154, 168, 184, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header[data-scrolled] {
  background: rgba(7, 17, 31, 0.985);
  border-bottom-color: var(--signal);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
}

.header-strip {
  border-bottom: 1px solid rgba(154, 168, 184, 0.16);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 6px var(--gutter);
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  max-width: none;
  white-space: nowrap;
}

.strip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(33, 230, 193, 0.18);
  animation: strip-pulse 2.6s var(--ease) infinite;
}

@keyframes strip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.strip-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--signal);
}

.strip-text { color: rgba(154, 168, 184, 0.92); }

.strip-item--live .strip-mono { color: var(--signal); }

.strip-item--ghost { color: rgba(154, 168, 184, 0.62); letter-spacing: 0.12em; }
.strip-item--ghost .strip-mono { color: var(--amber); }

.strip-item--right { color: rgba(154, 168, 184, 0.78); }

.header-main { position: relative; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--max);
  min-height: 76px;
  margin-inline: auto;
  padding: 10px var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  border: 2px solid var(--signal);
  box-shadow: 4px 4px 0 rgba(33, 230, 193, 0.22);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.brand:hover .brand-mark {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(33, 230, 193, 0.3);
}

.brand-text { display: flex; flex-direction: column; gap: 3px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.brand-desc {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--mist);
}

/* 导航 */
.site-nav { flex: 1 1 auto; display: flex; justify-content: center; }

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

.nav-item { margin: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(233, 239, 246, 0.82);
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--signal); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(154, 168, 184, 0.35);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.header-search::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  box-shadow: 3px 3px 0 -1px rgba(33, 230, 193, 0.85);
  flex: 0 0 auto;
}

.header-search:hover {
  border-color: var(--signal);
  background: rgba(33, 230, 193, 0.1);
  color: var(--signal);
}

.header-search-label { font-weight: 600; }

.header-search-hint {
  color: var(--mist);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-left: 1px solid rgba(154, 168, 184, 0.32);
  padding-left: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(154, 168, 184, 0.4);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--signal);
  background: rgba(33, 230, 193, 0.12);
  color: var(--signal);
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--signal);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

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

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

.nav-toggle-label { line-height: 1; }

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-on-ink);
  border-top: 4px solid var(--signal);
  padding-top: clamp(36px, 5vw, 68px);
}

.site-footer::before {
  content: "YF—042";
  position: absolute;
  top: -0.18em;
  right: -0.06em;
  font-family: var(--font-mono);
  font-size: clamp(88px, 15vw, 220px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(33, 230, 193, 0.06);
  pointer-events: none;
  user-select: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: clamp(24px, 3vw, 48px);
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }

.footer-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  line-height: 1;
  box-shadow: 5px 5px 0 rgba(33, 230, 193, 0.2);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--paper);
  max-width: none;
}

.footer-line {
  margin: 0;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-heading {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(33, 230, 193, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.6;
  color: var(--signal);
  text-transform: uppercase;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer-item { margin: 0; }

.footer-link {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 15px;
  color: rgba(233, 239, 246, 0.8);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-link::before {
  content: "—";
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(33, 230, 193, 0.55);
}

.footer-link:hover {
  color: var(--signal);
  transform: translateX(3px);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--mist);
  text-transform: uppercase;
}

.contact-val {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}

.contact-note {
  margin: 16px 0 0;
  max-width: 40ch;
  padding-left: 12px;
  border-left: 2px solid var(--amber);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-meta {
  margin: 14px 0 0;
  max-width: 26ch;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(28px, 4vw, 52px);
  padding-block: 20px 26px;
  border-top: 1px solid rgba(154, 168, 184, 0.2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.footer-base p { margin: 0; max-width: none; }

.footer-icp { color: rgba(154, 168, 184, 0.9); }

.footer-copyright { color: rgba(154, 168, 184, 0.7); }

/* ---------- 6. 容器与分区 ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 104px);
}

.section--ink { background: var(--ink-deep); }

.section--panel { background: var(--panel); }

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--paper :is(h1, h2, h3, h4, h5, h6) { color: var(--ink); }
.section--paper strong { color: var(--ink); }

/* ---------- 7. 栅格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 8. 正文与链接 ---------- */
.prose {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.9;
}

.prose > * + * { margin-top: 1.05em; }

.prose h3 {
  margin-top: 1.9em;
  margin-bottom: 0.6em;
  font-size: clamp(20px, 2.2vw, 25px);
}

.prose p { max-width: none; margin: 0; }

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

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

.link {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: color 0.18s var(--ease);
}

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

.section--paper .link { color: var(--signal-deep); }
.section--paper .link:hover { color: var(--ink); }

.rule {
  height: 1px;
  margin-block: var(--sp-4);
  border: 0;
  background: rgba(154, 168, 184, 0.28);
}

.section--paper .rule { background: var(--paper-line); }

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 2px solid currentColor;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.btn--signal {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
  box-shadow: 5px 5px 0 rgba(33, 230, 193, 0.28);
}

.btn--signal:hover { box-shadow: 8px 8px 0 rgba(33, 230, 193, 0.34); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 239, 227, 0.42);
  box-shadow: 5px 5px 0 rgba(154, 168, 184, 0.16);
}

.btn--ghost:hover {
  color: var(--signal);
  border-color: var(--signal);
  box-shadow: 8px 8px 0 rgba(33, 230, 193, 0.2);
}

.btn--amber {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
  box-shadow: 5px 5px 0 rgba(244, 163, 64, 0.26);
}

.btn--amber:hover { box-shadow: 8px 8px 0 rgba(244, 163, 64, 0.32); }

.section--paper .btn--ghost {
  color: var(--ink);
  border-color: rgba(7, 17, 31, 0.45);
  box-shadow: 5px 5px 0 rgba(7, 17, 31, 0.12);
}

.section--paper .btn--ghost:hover {
  color: var(--signal-deep);
  border-color: var(--signal-deep);
}

/* ---------- 10. 状态标签与编号 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--signal { color: var(--signal); background: rgba(33, 230, 193, 0.1); }
.tag--amber { color: var(--amber); background: rgba(244, 163, 64, 0.12); }
.tag--alert { color: var(--alert); background: rgba(211, 74, 68, 0.12); }
.tag--mute { color: var(--mist); background: rgba(154, 168, 184, 0.1); }

.section--paper .tag--signal { color: var(--signal-deep); background: rgba(8, 122, 107, 0.1); }
.section--paper .tag--amber { color: #9a5c0d; background: rgba(244, 163, 64, 0.18); }
.section--paper .tag--alert { color: #a8322c; background: rgba(211, 74, 68, 0.12); }
.section--paper .tag--mute { color: #5a6776; background: rgba(7, 17, 31, 0.06); }

.folio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--signal);
  text-transform: uppercase;
}

.folio::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

.section--paper .folio { color: var(--signal-deep); }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(154, 168, 184, 0.5);
}

.breadcrumb-item a {
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.breadcrumb-item a:hover { color: var(--signal); }

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

.section--paper .breadcrumb { color: rgba(7, 17, 31, 0.55); }
.section--paper .breadcrumb-item a { color: rgba(7, 17, 31, 0.6); }
.section--paper .breadcrumb-item a:hover { color: var(--signal-deep); }
.section--paper .breadcrumb-item [aria-current="page"] { color: var(--ink); }
.section--paper .breadcrumb-item + .breadcrumb-item::before { color: rgba(7, 17, 31, 0.35); }

/* ---------- 12. 图像容器 ---------- */
.figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.figure-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid var(--paper-line);
  background: var(--panel);
  box-shadow: var(--shadow-hard);
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(33, 230, 193, 0.09) 0 2px,
    transparent 2px 10px
  );
}

.figure-frame img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.section--paper .figure-frame {
  border-color: var(--paper-line);
  background: var(--paper-shade);
  box-shadow: var(--shadow-paper);
}

.figure-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--mist);
  max-width: none;
}

.section--paper .figure-caption { color: rgba(7, 17, 31, 0.6); }

/* ---------- 13. 进度条 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 3px;
  background: rgba(154, 168, 184, 0.15);
  pointer-events: none;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--signal-deep), var(--signal));
  transition: width 0.1s linear;
}

/* ---------- 14. 复制反馈 ---------- */
[data-copy] { cursor: pointer; }

[data-copy][data-copied] {
  color: var(--signal);
  border-color: var(--signal);
}

/* ---------- 15. 滚动显现 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1280px) {
  .header-search-hint { display: none; }
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    flex: none;
    max-height: 0;
    overflow: hidden;
    background: var(--ink);
    border-top: 1px solid rgba(154, 168, 184, 0.2);
    transition: max-height 0.3s var(--ease);
  }

  .site-nav[data-open] {
    max-height: 74vh;
    overflow-y: auto;
    border-bottom: 3px solid var(--signal);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 22px;
  }

  .nav-item { margin: 0; }

  .nav-link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(154, 168, 184, 0.14);
    font-size: 17px;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    padding-left: 14px;
    border-left: 3px solid var(--signal);
    background: rgba(33, 230, 193, 0.07);
  }

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

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

@media (max-width: 900px) {
  .strip-item--ghost,
  .strip-item--right { display: none; }

  .header-strip { font-size: 11px; }

  .col-3,
  .col-4,
  .col-5,
  .col-6 { grid-column: span 6; }

  .col-7,
  .col-8,
  .col-9 { grid-column: span 12; }

  .grid-12 { gap: 18px; }
}

@media (max-width: 720px) {
  .brand-desc { display: none; }

  .brand-mark { width: 40px; height: 40px; font-size: 18px; }

  .brand-name { font-size: 17px; }

  .header-inner { min-height: 62px; gap: 10px; }

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

@media (max-width: 620px) {
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-12 { grid-column: span 12; }

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

  .footer-line,
  .contact-note,
  .footer-meta { max-width: none; }

  .prose { font-size: 16px; }

  .btn { width: 100%; }
}

@media (max-width: 560px) {
  .header-search { display: none; }

  .strip-mono { font-size: 10px; }

  .nav-toggle-label { display: none; }

  .nav-toggle { padding: 10px 12px; }
}

/* ---------- 17. 减少动态效果 ---------- */
@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;
  }

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

  .strip-dot { animation: none; }
}

/* ---------- 18. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .progress,
  body::before { display: none !important; }

  body { background: #fff; color: #000; }

  .section--paper { background: #fff; color: #000; }
}
