/* ==========================================================================
   拾卡 SHIKA · 基础层
   纸张 / 墨 / 朱砂 · 取货凭条式视觉语言
   ========================================================================== */

@font-face {
  font-family: 'Shika Serif';
  src: url('../fonts/serif-subset.woff2') format('woff2'),
       url('../fonts/serif-subset.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Shika Serif';
  src: url('../fonts/serif-bold-subset.woff2') format('woff2'),
       url('../fonts/serif-bold-subset.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 纸张 */
  --paper: #f6f2ea;
  --paper-deep: #efe9dd;
  --surface: #fffdf8;
  --surface-2: #fbf7ef;

  /* 墨 */
  --ink: #151b1c;
  --ink-2: #33403f;
  --ink-3: #5c6866;
  --ink-4: #8b938f;

  /* 线 */
  --line: #e3dacb;
  --line-2: #d3c8b6;
  --dash: #cfc4b0;

  /* 朱砂 / 松 / 金 */
  --red: #bf3f28;
  --red-deep: #9e2f1c;
  --red-soft: #f7e7e1;
  --pine: #16342c;
  --pine-2: #22493d;
  --pine-soft: #e5efe9;
  --gold: #a87c2a;
  --gold-soft: #f6ecd7;

  /* 类型 */
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-display: 'Shika Serif', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', Georgia, serif;
  --font-mono: 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-21: 21px;
  --fs-26: 26px;
  --fs-34: 34px;
  --fs-46: 46px;
  --fs-64: 64px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-full: 999px;

  --wrap: 1180px;
  --header-h: 64px;

  --ease: cubic-bezier(.22, .68, .28, 1);
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  --shadow-paper: 0 1px 0 rgba(21, 27, 28, .03), 0 12px 32px -24px rgba(21, 27, 28, .5);
  --shadow-lift: 0 2px 2px rgba(21, 27, 28, .03), 0 24px 48px -32px rgba(21, 27, 28, .5);
  --shadow-float: 0 40px 80px -50px rgba(21, 27, 28, .6), 0 8px 24px -18px rgba(21, 27, 28, .4);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-14);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

/* 极细纸纹，避免大面积纯色发空 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(rgba(21, 27, 28, .035) .6px, transparent .7px),
    radial-gradient(rgba(21, 27, 28, .022) .6px, transparent .7px);
  background-size: 5px 5px, 7px 7px;
  background-position: 0 0, 3px 4px;
}

main { position: relative; z-index: 1; flex: 1; }

h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

::selection { background: rgba(191, 63, 40, .16); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

[hidden] { display: none !important; }

.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;
}

/* ---------- 排版 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.14;
}
.serif { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); font-variant-ligatures: none; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.tiny { font-size: var(--fs-12); }
.small { font-size: var(--fs-13); }
.strong { font-weight: 600; }
.red { color: var(--red); }
.pine { color: var(--pine); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--red);
}
.eyebrow--plain::before { display: none; }

/* ---------- 布局 ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
}

.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-8) 0; }
.section--lined { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-34);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-top: 6px;
}
.section-head .sideline {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-13);
  color: var(--ink-3);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .section { padding: var(--s-7) 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  .section-head h2 { font-size: var(--fs-26); }
}

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fbf7ef;
  --btn-line: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(21, 27, 28, .8); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .ico { transition: transform .22s var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--red { --btn-bg: var(--red); --btn-fg: #fff9f2; --btn-line: var(--red); }
.btn--red:hover { --btn-bg: var(--red-deep); --btn-line: var(--red-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-line: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-line: var(--ink-3); }
.btn--quiet { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-line: transparent; padding-inline: 10px; }
.btn--quiet:hover { --btn-fg: var(--red); box-shadow: none; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: var(--fs-13); }
.btn--lg { min-height: 52px; padding: 0 30px; font-size: var(--fs-16); }
.btn--block { width: 100%; }

.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  color: var(--btn-fg);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 文字链接 */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.tlink:hover { color: var(--red); border-color: currentColor; }
.tlink .ico { transition: transform .2s var(--ease); }
.tlink:hover .ico { transform: translate(2px, -2px); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label {
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-14);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(21, 27, 28, .08);
}
.input[aria-invalid='true'], .input.is-error { border-color: var(--red); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none' stroke='%235c6866' stroke-width='1.5'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.hint { font-size: var(--fs-12); color: var(--ink-3); line-height: 1.55; }
.form-error { font-size: var(--fs-12); color: var(--red-deep); }

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--fs-13);
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.55;
}
.check input[type='checkbox'] {
  appearance: none;
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 2px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--surface);
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
  position: relative;
}
.check input[type='checkbox']:checked { background: var(--ink); border-color: var(--ink); }
.check input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1.5px;
  width: 4px; height: 8px;
  border: solid #fff9f2;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}
.check input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- 提示 ---------- */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-3);
  border-radius: var(--r-xs);
  background: var(--surface);
  font-size: var(--fs-13);
  line-height: 1.6;
  animation: alertIn .3s var(--ease-out) both;
}
.alert .ico { flex: 0 0 auto; margin-top: 2px; }
.alert--success { border-left-color: var(--pine-2); background: var(--pine-soft); color: #14382d; }
.alert--error { border-left-color: var(--red); background: var(--red-soft); color: #70200f; }
.alert--info { border-left-color: var(--gold); background: var(--gold-soft); color: #5b4312; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  right: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}
.flash-stack .alert { box-shadow: var(--shadow-lift); }
.flash-stack .alert.is-leaving { animation: alertOut .25s var(--ease) forwards; }
@keyframes alertOut { to { opacity: 0; transform: translateX(12px); } }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 234, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(246, 242, 234, .96);
  box-shadow: 0 6px 24px -28px rgba(21, 27, 28, .8);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__mark {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--ink);
  color: #f8f3e9;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.05em;
  position: relative;
  overflow: hidden;
}
.brand__mark::after {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 100%;
  background: repeating-linear-gradient(to bottom, rgba(248,243,233,.5) 0 2px, transparent 2px 5px);
  opacity: .6;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: .08em;
}
.brand__sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--ink-4);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--s-4);
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-xs);
  font-size: var(--fs-13);
  color: var(--ink-2);
  transition: color .18s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); font-weight: 600; }

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--r-xs);
  color: var(--ink-2);
  font-size: var(--fs-13);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.tool:hover { background: rgba(21, 27, 28, .05); color: var(--ink); }
.tool__badge {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--red);
  color: #fff8f0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}
.tool--account .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--pine);
  color: #efe9dc;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

.header-login {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.header-login .btn { min-height: 36px; padding: 0 16px; font-size: var(--fs-13); }

.burger {
  display: none;
  width: 38px; height: 38px;
  place-items: center;
  border-radius: var(--r-xs);
  color: var(--ink);
}
.burger:hover { background: rgba(21, 27, 28, .05); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-menu.is-open { display: block; }
.mobile-menu__inner { padding: var(--s-4) 0 var(--s-5); display: grid; gap: 2px; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-14);
}
.mobile-menu .btn { margin-top: var(--s-3); }

@media (max-width: 940px) {
  .nav { display: none; }
  .header-tools .tool--search span, .header-tools .tool--orders span { display: none; }
  .burger { display: grid; }
}
@media (max-width: 720px) {
  .header-inner { gap: var(--s-3); }
  .brand__sub { display: none; }
  .header-login .btn--ghost { display: none; }
}

/* 顶部公告 */
.notice-bar {
  position: relative;
  z-index: 2;
  background: var(--pine);
  color: #e7eadf;
  font-size: var(--fs-12);
}
.notice-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  min-height: 34px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: .01em;
}
.notice-bar strong { color: #f3e6c8; font-weight: 600; }
.notice-bar .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(231, 234, 223, .45); }
.notice-bar a { text-decoration: underline; text-underline-offset: 3px; color: #f0e2c4; }
@media (max-width: 640px) {
  .notice-bar__inner { gap: var(--s-2); font-size: 11px; flex-wrap: wrap; }
  .notice-bar .hide-sm { display: none; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--s-9);
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding: var(--s-8) 0 var(--s-7);
}
.footer-brand .brand { margin-bottom: var(--s-4); }
.footer-brand p { max-width: 30ch; color: var(--ink-3); font-size: var(--fs-13); }
.footer-col h3 {
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--s-3);
}
.footer-col li { margin-bottom: 8px; }
.footer-col a, .footer-col span { font-size: var(--fs-13); color: var(--ink-2); }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) 0 var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-12);
  color: var(--ink-4);
  flex-wrap: wrap;
}
.footer-bottom .links { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--ink-2); }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-5); padding: var(--s-7) 0 var(--s-6); }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- 通用面片 ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-paper);
}
.panel--flat { box-shadow: none; }
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel__head h3 { font-size: var(--fs-14); font-weight: 600; letter-spacing: .02em; }
.panel__body { padding: 20px; }

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

/* 徽标 / 标签 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  font-size: var(--fs-11);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-2);
  background: var(--surface-2);
  white-space: nowrap;
}
.chip--red { border-color: rgba(191, 63, 40, .25); background: var(--red-soft); color: var(--red-deep); }
.chip--pine { border-color: rgba(34, 73, 61, .22); background: var(--pine-soft); color: #1d4a3b; }
.chip--gold { border-color: rgba(168, 124, 42, .25); background: var(--gold-soft); color: #6d4f13; }
.chip--muted { color: var(--ink-4); background: transparent; }

.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.status-dot--ok { color: #2f7a5c; }
.status-dot--wait { color: var(--gold); }
.status-dot--bad { color: var(--red); }

/* 空态 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-8) var(--s-4);
  text-align: center;
  color: var(--ink-3);
}
.empty__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-2);
  border-radius: 50%;
  color: var(--ink-4);
}
.empty h3 { font-family: var(--font-display); font-size: var(--fs-21); color: var(--ink); font-weight: 600; }
.empty p { max-width: 34ch; font-size: var(--fs-13); }

/* 骨架 */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: var(--r-xs);
  color: transparent !important;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 253, 248, .7), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* 滚动进场 */
/* 滚动进场：仅在 JS 可用时隐藏，避免脚本失效后内容不可见 */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: var(--s-6);
}
.pager a, .pager span {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--ink-2);
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.pager a:hover { border-color: var(--line-2); background: var(--surface); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #f8f3e9; }
.pager .is-disabled { color: var(--ink-4); opacity: .5; }
