/* ==========================================================================
   伟德官网 · 共享样式表 /assets/site.css
   批次 B-2024-08 ｜ 深靛蓝基底 + 电光青 / 暖琥珀对照体系
   纵向叙事长卷 · 悬浮胶囊导航 · 切角面板 · 档案编码感
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-900: #0A0F2C;
  --ink-800: #121A44;
  --ink-700: #18224F;
  --line-600: #2A3670;
  --line-500: #2F3B72;
  --cyan: #25E1D4;
  --cyan-deep: #0E8C86;
  --amber: #FFB347;
  --amber-deep: #C97A1C;
  --text: #E9EDF7;
  --text-dim: #A8B3CE;
  --wash: #0F2A44;

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

  --shell: 1280px;
  --gap: clamp(18px, 2.6vw, 36px);
  --cut: 14px;
  --pill: 999px;
  --header-h: 76px;
  --dur: 240ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2. Reset 与基础排版 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

body {
  min-height: 100%;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 680px at 6% -14%, rgba(37, 225, 212, .10), transparent 62%),
    radial-gradient(900px 620px at 104% 4%, rgba(255, 179, 71, .07), transparent 58%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: .005em;
  color: var(--text);
}
h1 { font-size: clamp(30px, 5vw, 54px); }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }

::selection { background: var(--cyan); color: #04141C; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

.wd-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

#main-content {
  display: block;
  padding-top: clamp(94px, 11vw, 132px);
}
#main-content:focus { outline: none; }

/* ---------- 3. 跳转链接 ---------- */
.wd-skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 120;
  padding: 12px 20px;
  background: var(--cyan);
  color: #04141C;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  transition: top var(--dur) var(--ease);
}
.wd-skip:focus { top: 0; }

/* ---------- 4. 色带 ---------- */
.wd-band {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan) 0 34%, var(--amber) 34% 46%, var(--line-600) 46% 100%);
}

/* ---------- 5. 头部：悬浮胶囊浮岛 ---------- */
.wd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: clamp(10px, 1.6vw, 16px) clamp(12px, 2vw, 24px) 0;
  pointer-events: none;
}

.wd-header__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 30px);
  padding: 8px 12px 8px 18px;
  border: 1px solid var(--line-600);
  border-radius: var(--pill);
  background: rgba(18, 26, 68, .88);
  box-shadow: 0 22px 50px -30px rgba(0, 0, 0, .95);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  pointer-events: auto;
}

.wd-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.wd-brand__mark {
  flex: 0 0 auto;
  width: 14px;
  height: 16px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 58% 100%, 0 100%);
  box-shadow: 0 0 0 4px rgba(37, 225, 212, .1);
}
.wd-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.wd-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .08em;
}
.wd-brand__note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--text-dim);
}

.wd-nav { flex: 1 1 auto; min-width: 0; }
.wd-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wd-nav__list::-webkit-scrollbar { display: none; }
.wd-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--pill);
  color: var(--text-dim);
  font-size: 14.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wd-nav__link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: rgba(233, 237, 247, .34);
  transition: color var(--dur) var(--ease);
}
.wd-nav__link:hover {
  color: var(--text);
  background: rgba(37, 225, 212, .07);
}
.wd-nav__link:hover::before { color: var(--cyan); }
.wd-nav__link[aria-current="page"] {
  color: var(--text);
  background: rgba(37, 225, 212, .1);
  box-shadow: inset 0 0 0 1px rgba(37, 225, 212, .34);
}
.wd-nav__link[aria-current="page"]::before { color: var(--cyan); }

.wd-header__side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wd-batch-chip {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 14px 4px 12px;
  border-left: 1px solid var(--line-600);
  line-height: 1.2;
}
.wd-batch-chip__label {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--text-dim);
}
.wd-batch-chip__value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.wd-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-600);
  border-radius: var(--pill);
  background: rgba(10, 15, 44, .7);
  color: var(--text);
  font-size: 13.5px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.wd-nav-toggle:hover { border-color: rgba(37, 225, 212, .55); color: var(--cyan); }
.wd-nav-toggle__box { display: grid; gap: 4px; width: 16px; }
.wd-nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.wd-nav-toggle[aria-expanded="true"] .wd-nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.wd-nav-toggle[aria-expanded="true"] .wd-nav-toggle__bar:nth-child(2) { opacity: 0; }
.wd-nav-toggle[aria-expanded="true"] .wd-nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. 阅读进度 ---------- */
.wd-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(47, 59, 114, .5);
  pointer-events: none;
}
.wd-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  transition: transform 120ms linear;
}

/* ---------- 7. 页脚：档案抽屉 ---------- */
.wd-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 116px);
  background: var(--ink-800);
  border-top: 1px solid var(--line-600);
}
.wd-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 3.2vw, 40px) clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.wd-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wd-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .08em;
}
.wd-footer__domain {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--text-dim);
}
.wd-footer__batch { margin-top: 4px; }
.wd-footer__tag {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim);
}
.wd-footer__col-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--cyan);
}
.wd-footer__list { display: flex; flex-direction: column; }
.wd-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wd-footer__link:hover { color: var(--cyan); transform: translateX(3px); }

.wd-footer__meta {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.2vw, 40px) clamp(28px, 4vw, 44px);
}
.wd-footer__contact {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.6vw, 26px) 0;
  border-top: 1px solid var(--line-500);
  border-bottom: 1px solid var(--line-500);
}
.wd-footer__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
}
.wd-footer__key {
  min-width: 72px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--text-dim);
}
.wd-footer__strong { color: var(--text); }
.wd-footer__hint { font-size: 12.5px; color: var(--text-dim); }

.wd-copy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-600);
  border-radius: var(--pill);
  background: rgba(10, 15, 44, .55);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.wd-copy:hover { border-color: rgba(37, 225, 212, .55); color: var(--cyan); }
.wd-copy[data-state="done"] { border-color: var(--cyan); color: var(--cyan); background: rgba(37, 225, 212, .1); }
.wd-copy[data-state="fail"] { border-color: rgba(255, 179, 71, .6); color: var(--amber); }

.wd-footer__legal { padding-top: 16px; display: grid; gap: 6px; }
.wd-footer__meta-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--text-dim);
}

/* ---------- 8. 布局骨架 ---------- */
.wd-container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.2vw, 40px);
}

.wd-section {
  position: relative;
  padding: clamp(34px, 4.6vw, 64px) 0;
  border-top: 1px solid var(--line-500);
  scroll-margin-top: 118px;
  transition: border-color var(--dur) var(--ease);
}
.wd-section:first-of-type { border-top: 0; }
.wd-section[data-active] { border-top-color: rgba(37, 225, 212, .5); }
.wd-section__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: clamp(16px, 2vw, 26px);
}
.wd-section__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--cyan);
}
.wd-section__title { margin: 0; }
.wd-section__note { font-size: 14px; color: var(--text-dim); }

.wd-grid { display: grid; gap: var(--gap); }
.wd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wd-grid--aside {
  grid-template-columns: minmax(200px, 264px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 46px);
  align-items: start;
}

/* ---------- 9. 左侧版本对照轴 ---------- */
.wd-rail {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
}
.wd-rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line-500);
}
.wd-rail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin-left: -1px;
  padding: 0 12px;
  border: 0;
  border-left: 2px solid transparent;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.wd-rail__item:hover { color: var(--text); background: var(--wash); }
.wd-rail__item[data-active],
.wd-rail__item[aria-current="true"] {
  color: var(--text);
  border-left-color: var(--cyan);
  background: var(--wash);
}
.wd-rail__code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--cyan);
}
.wd-rail__label { min-width: 0; }

/* ---------- 10. 面板 / 切角 ---------- */
.wd-panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-700);
  border: 1px solid var(--line-600);
  border-radius: 2px;
}
.wd-panel--cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.wd-panel--cut::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 38px;
  background: var(--cyan);
}
.wd-panel[data-state="diff"]::before { background: var(--amber); }
.wd-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.wd-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .03em;
}
.wd-panel__body { font-size: 15px; color: var(--text-dim); }
.wd-panel__body p + p { margin-top: .8em; }

/* ---------- 11. 按钮与胶囊 ---------- */
.wd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wd-btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04141C;
}
.wd-btn--primary:hover {
  background: #48EFE4;
  box-shadow: 0 0 0 4px rgba(37, 225, 212, .16);
  transform: translateY(-1px);
}
.wd-btn--primary:active { background: var(--cyan-deep); box-shadow: none; transform: none; }
.wd-btn--ghost {
  background: transparent;
  border-color: var(--line-600);
  color: var(--text);
}
.wd-btn--ghost:hover { border-color: rgba(37, 225, 212, .6); color: var(--cyan); }
.wd-btn--small { padding: 0 16px; font-size: 13.5px; }
.wd-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.wd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 12px;
  border: 1px solid var(--line-600);
  border-radius: var(--pill);
  background: rgba(24, 34, 79, .7);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
}
.wd-chip--cyan { border-color: rgba(37, 225, 212, .5); background: rgba(37, 225, 212, .09); color: var(--cyan); }
.wd-chip--amber { border-color: rgba(255, 179, 71, .5); background: rgba(255, 179, 71, .09); color: var(--amber); }

/* ---------- 12. 面包屑与正文 ---------- */
.wd-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--text-dim);
}
.wd-crumbs__item { display: inline-flex; align-items: center; gap: 6px; }
.wd-crumbs__link { color: var(--text-dim); text-decoration: none; transition: color var(--dur) var(--ease); }
.wd-crumbs__link:hover { color: var(--cyan); }
.wd-crumbs__sep { color: var(--line-600); }

.wd-prose {
  max-width: 70ch;
  font-size: 16.5px;
  line-height: 1.85;
}
.wd-prose p { margin-bottom: 1.05em; }
.wd-prose h2 { margin: 1.6em 0 .6em; font-size: clamp(22px, 2.8vw, 30px); }
.wd-prose h3 { margin: 1.4em 0 .5em; }
.wd-prose ul,
.wd-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; list-style: disc; }
.wd-prose ol { list-style: decimal; }
.wd-prose li { margin-bottom: .45em; }
.wd-prose li::marker { color: var(--cyan); font-family: var(--font-mono); }
.wd-prose strong { color: var(--cyan); font-weight: 600; }
.wd-prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.wd-prose hr { border: 0; border-top: 1px solid var(--line-500); margin: 1.8em 0; }

/* ---------- 13. 折叠面板 ---------- */
.wd-fold {
  background: var(--ink-700);
  border: 1px solid var(--line-600);
  border-radius: 2px;
}
.wd-fold + .wd-fold { margin-top: 8px; }
.wd-fold__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.wd-fold__btn:hover { background: rgba(37, 225, 212, .06); }
.wd-fold__sign {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.wd-fold__sign::before,
.wd-fold__sign::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--cyan);
  transform: translateY(-50%);
}
.wd-fold__sign::after { transform: translateY(-50%) rotate(90deg); transition: transform var(--dur) var(--ease); }
.wd-fold[data-open] .wd-fold__sign::after { transform: translateY(-50%) rotate(0deg); }
.wd-fold__panel { display: none; padding: 0 18px 22px; color: var(--text-dim); font-size: 15px; }
.wd-fold[data-open] .wd-fold__panel { display: block; }

/* ---------- 14. 对照表 ---------- */
.wd-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-600);
  background: var(--ink-700);
}
.wd-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.wd-table th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-500);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-align: left;
  white-space: nowrap;
}
.wd-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(47, 59, 114, .6);
  color: var(--text);
  vertical-align: top;
}
.wd-table tr:last-child td { border-bottom: 0; }
.wd-table tr[data-diff] { background: var(--wash); }
.wd-table tr[data-diff] td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.wd-table .wd-mono { color: var(--cyan); }

/* ---------- 15. 图片容器（页面阶段放图） ---------- */
.wd-figure { margin: 0; }
.wd-figure__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-600);
  background-color: var(--ink-700);
  background-image:
    linear-gradient(rgba(42, 54, 112, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 54, 112, .55) 1px, transparent 1px),
    radial-gradient(420px 260px at 80% 10%, rgba(37, 225, 212, .12), transparent 70%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.wd-figure__frame > img,
.wd-figure__frame > picture > img,
.wd-figure__frame > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wd-figure--wide .wd-figure__frame { aspect-ratio: 21 / 9; }
.wd-figure--tall .wd-figure__frame { aspect-ratio: 3 / 4; }
.wd-figure--square .wd-figure__frame { aspect-ratio: 1 / 1; }
.wd-figure__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--text-dim);
}

/* ---------- 16. 入场显现协议 ---------- */
.wd-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wd-js [data-reveal][data-visible] {
  opacity: 1;
  transform: none;
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .wd-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .wd-grid--aside { grid-template-columns: minmax(0, 1fr); }
  .wd-rail { position: static; top: auto; }
  .wd-rail__list { flex-direction: row; overflow-x: auto; border-left: 0; border-top: 1px solid var(--line-500); scrollbar-width: none; }
  .wd-rail__list::-webkit-scrollbar { display: none; }
  .wd-rail__item { width: auto; white-space: nowrap; border-left: 0; border-top: 2px solid transparent; margin-left: 0; margin-top: -1px; }
  .wd-rail__item[data-active],
  .wd-rail__item[aria-current="true"] { border-left-color: transparent; border-top-color: var(--cyan); }
}

@media (max-width: 900px) {
  .wd-header__inner { flex-wrap: nowrap; padding: 8px 10px 8px 14px; }
  .wd-nav-toggle { display: inline-flex; }
  .wd-batch-chip { display: none; }
  .wd-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line-600);
    border-radius: 22px;
    background: rgba(16, 23, 60, .98);
    box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .wd-nav[data-open] { display: block; }
  .wd-nav__list { flex-direction: column; align-items: stretch; gap: 2px; overflow: visible; }
  .wd-nav__link { min-height: 50px; padding: 0 14px; border-radius: 14px; font-size: 16px; }
  .wd-nav__link::before { font-size: 11px; }
  .wd-header__side { margin-left: auto; }
  .wd-grid--2,
  .wd-grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wd-footer__inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 18px; }
  .wd-footer__link { min-height: 44px; }
  .wd-footer__key { min-width: 66px; }
}

@media (max-width: 560px) {
  .wd-brand__note { display: none; }
  .wd-nav-toggle__text { display: none; }
  .wd-nav-toggle { padding: 0 14px; }
  .wd-header__inner { gap: 8px; }
  .wd-section { padding: 28px 0; }
}

/* ---------- 18. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .wd-js [data-reveal] { opacity: 1; transform: none; }
  .wd-progress__bar { transition: none; }
  .wd-btn--primary:hover { transform: none; }
}
