/* ==========================================================================
   艾乐牌局 · /assets/site.css
   共享外壳：reset / tokens / 中文排版 / 侧边编号轨道 / 页脚 / 基础组件
   ========================================================================== */

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

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

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

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

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

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

button { background: none; border: 0; cursor: pointer; }

table { border-collapse: collapse; }

/* ---------- Tokens ---------- */
:root {
  --ink-0: #0E1030;
  --ink-1: #171A3A;
  --ink-2: #1F2233;
  --gold: #C9A227;
  --gold-lt: #E0B84C;
  --red: #C0392B;
  --jade: #2E7D6B;
  --neon: #6F5BD6;
  --cream: #F3EDE0;
  --mist: #9AA0C0;

  --hair: rgba(243, 237, 224, .12);
  --hair-strong: rgba(243, 237, 224, .28);

  --n: var(--gold);

  --rail-w: 88px;
  --rail-h: 56px;
  --maxw: 1240px;

  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: var(--font-head);
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--cream);
  background-color: var(--ink-0);
  background-image:
    radial-gradient(1100px 640px at 84% -8%, rgba(111, 91, 214, .18), transparent 62%),
    radial-gradient(960px 560px at 4% 106%, rgba(201, 162, 39, .11), transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

p { max-width: 62ch; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--cream);
  text-shadow: 0 0 18px rgba(201, 162, 39, .16), 0 1px 0 rgba(0, 0, 0, .45);
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 7vw, 96px); letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); }

a {
  color: var(--gold-lt);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(224, 184, 76, .35);
  transition: color .24s var(--ease), text-decoration-color .24s var(--ease);
}

a:hover { text-decoration-color: currentColor; }

::selection { background: rgba(201, 162, 39, .32); color: var(--cream); }

/* ---------- Focus ---------- */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 6px;
  background: linear-gradient(170deg, var(--gold-lt), var(--gold));
  color: #15121F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform .2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: none; }

/* ---------- Layout shell ---------- */
#main-content {
  display: block;
  scroll-margin-top: 24px;
}

.wrap {
  width: min(calc(100% - 40px), var(--maxw));
  margin-inline: auto;
}

.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.2em; }

.stack > * + * { margin-top: var(--gap, 20px); }

/* ==========================================================================
   侧边编号轨道（Header）
   ========================================================================== */
.site-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 22px 10px 18px;
  background: linear-gradient(180deg, rgba(23, 26, 58, .98), rgba(14, 16, 48, .99));
  border-right: 1px solid var(--hair);
}

.site-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image: radial-gradient(rgba(243, 237, 224, .05) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* 品牌 */
.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
}

.rail-brand__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 4px;
  border-radius: 9px;
  text-decoration: none;
}

.rail-brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(160deg, var(--gold-lt), var(--gold) 62%, #8C6E14);
  color: #15121F;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(201, 162, 39, .22);
}

.rail-brand__name {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .14em;
  color: var(--cream);
}

/* 移动端按钮（桌面隐藏） */
.rail-toggle { display: none; }

/* 导航 */
.rail-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.rail-nav::-webkit-scrollbar { width: 0; height: 0; }

.rail-nav__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.rail-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 11px 2px 11px 6px;
  border-radius: 7px;
  color: var(--mist);
  text-decoration: none;
  transition: color .24s var(--ease), background-color .24s var(--ease), transform .24s var(--ease);
}

.rail-nav__link::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 2px;
  height: 70%;
  border-radius: 2px;
  background: var(--n);
  opacity: .4;
  transform: translateY(-50%) scaleY(.4);
  transition: transform .28s var(--ease), opacity .28s var(--ease), width .28s var(--ease);
}

.rail-nav__link:hover {
  color: var(--cream);
  background: rgba(243, 237, 224, .05);
  transform: translateX(2px);
}

.rail-nav__link:hover::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.rail-nav__link[aria-current="page"] {
  color: var(--cream);
  background: rgba(243, 237, 224, .07);
}

.rail-nav__link[aria-current="page"]::before {
  opacity: 1;
  width: 4px;
  transform: translateY(-50%) scaleY(1);
}

.rail-nav__num {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--n);
}

.rail-nav__label {
  font-size: 11.5px;
  line-height: 1.25;
  letter-spacing: .1em;
  white-space: nowrap;
}

/* 侧轨底部 */
.rail-foot { padding-top: 16px; }

.rail-cta {
  display: block;
  padding: 12px 6px;
  border-radius: 7px;
  background: linear-gradient(170deg, var(--gold-lt), var(--gold));
  color: #15121F;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(201, 162, 39, .2);
  transition: filter .24s var(--ease), transform .24s var(--ease);
}

.rail-cta:hover { filter: brightness(1.09); transform: translateY(-2px); }

/* 滚动进度 */
.rail-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: rgba(243, 237, 224, .06);
  overflow: hidden;
  pointer-events: none;
}

.rail-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .12s linear;
}

/* 桌面端为内容让位 */
@media (min-width: 1100px) {
  body { padding-left: var(--rail-w); }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-foot {
  position: relative;
  margin-top: 120px;
  background: linear-gradient(180deg, var(--ink-1), #0A0B22);
  border-top: 1px solid var(--hair);
}

.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    var(--gold) 0 25%,
    var(--red) 25% 50%,
    var(--jade) 50% 75%,
    var(--neon) 75% 100%);
  opacity: .9;
}

.site-foot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(243, 237, 224, .035) 1px, transparent 1px);
  background-size: 3px 3px;
}

.foot-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--maxw));
  margin-inline: auto;
  padding: 72px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 40px;
}

.foot-brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--cream);
  max-width: 34ch;
}

.foot-brand__dot {
  margin: 0 .45em;
  color: var(--gold);
}

.foot-contact {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.foot-contact__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
}

.foot-contact__row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
  padding-top: 2px;
}

.foot-contact__row dd {
  margin: 0;
  color: var(--cream);
  word-break: break-word;
}

.foot-nav__title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--mist);
  text-shadow: none;
  margin-bottom: 18px;
}

.foot-nav__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 20px;
}

.foot-nav__list a {
  font-size: 14px;
  color: var(--cream);
  text-decoration: none;
  transition: color .22s var(--ease), transform .22s var(--ease);
  display: inline-block;
}

.foot-nav__list a:hover {
  color: var(--gold-lt);
  transform: translateX(2px);
}

.foot-nav__list a[aria-current="page"] {
  color: var(--gold-lt);
  font-weight: 700;
}

.foot-feedback__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--hair-strong);
  border-radius: 6px;
  background: rgba(243, 237, 224, .03);
  color: var(--cream);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  transition: border-color .24s var(--ease), color .24s var(--ease), background-color .24s var(--ease);
}

.foot-feedback__btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  transition: background-color .24s var(--ease);
}

.foot-feedback__btn:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
}

.foot-feedback__btn[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold-lt);
}

.foot-feedback__btn[aria-expanded="true"]::after { background: var(--jade); }

.foot-feedback__panel {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .36s var(--ease), opacity .3s var(--ease), margin-top .36s var(--ease);
}

.foot-feedback__btn[aria-expanded="true"] + .foot-feedback__panel {
  max-height: 300px;
  margin-top: 14px;
  opacity: 1;
}

.foot-feedback__panel p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 36ch;
}

.foot-mail {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold-lt);
  letter-spacing: .02em;
  word-break: break-all;
}

.foot-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mist);
}

.foot-legal p { max-width: none; }

/* ==========================================================================
   基础组件
   ========================================================================== */

/* 面包屑 */
.crumbs { margin-bottom: 26px; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}

.crumbs li { display: inline-flex; align-items: center; gap: 8px; }

.crumbs li + li::before {
  content: "/";
  color: rgba(154, 160, 192, .55);
}

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

.crumbs a:hover { color: var(--gold-lt); }

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

/* 区块标题行 */
.sec-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 26px;
}

.sec-head__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--n);
}

.sec-head__title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--cream);
}

.sec-head__note {
  margin-left: auto;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mist);
}

/* 超大编号锚点 */
.num-anchor {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(72px, 14vw, 220px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.04em;
  color: var(--n);
  opacity: .18;
  -webkit-text-stroke: 1px currentColor;
  user-select: none;
  pointer-events: none;
}

/* 色带与圆点 */
.band {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 2px;
  background: var(--n);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--n);
  flex: none;
}

/* 面板 */
.panel {
  padding: 24px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(31, 34, 51, .88), rgba(23, 26, 58, .88));
}

.panel--dealt { border-radius: 8px 8px 8px 2px; }

.panel--shadow { box-shadow: var(--shadow); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .24s var(--ease), filter .24s var(--ease),
              border-color .24s var(--ease), color .24s var(--ease),
              background-color .24s var(--ease);
}

.btn--gold {
  background: linear-gradient(170deg, var(--gold-lt), var(--gold));
  color: #15121F;
  box-shadow: 0 8px 22px rgba(201, 162, 39, .18);
}

.btn--gold:hover { filter: brightness(1.08); transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--hair-strong);
  background: rgba(243, 237, 224, .03);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

/* 图片容器基础 */
.figure { margin: 0; }

.figure__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--ink-2);
}

.figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.06);
  transition: transform .5s var(--ease);
}

.figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 16, 48, 0) 45%, rgba(14, 16, 48, .86) 100%);
}

.figure__frame:hover img { transform: scale(1.02); }

.figure__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
}

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

/* 可展开内容组 */
.fold {
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: rgba(23, 26, 58, .6);
  overflow: hidden;
  transition: border-color .28s var(--ease), background-color .28s var(--ease);
}

.fold + .fold { margin-top: 10px; }

.fold[data-open] {
  border-color: var(--hair-strong);
  background: rgba(31, 34, 51, .72);
}

.fold__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  text-align: left;
  color: var(--cream);
  transition: background-color .24s var(--ease), color .24s var(--ease);
}

.fold__head:hover { background: rgba(243, 237, 224, .04); }

.fold[data-open] .fold__head { color: var(--gold-lt); }

.fold__title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .01em;
}

.fold__sign {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--mist);
  transition: transform .3s var(--ease), color .3s var(--ease);
}

.fold[data-open] .fold__sign {
  color: var(--gold);
  transform: rotate(45deg);
}

.fold__panel {
  display: none;
  padding: 4px 20px 20px;
  border-top: 1px solid var(--hair);
  margin-top: 0;
}

.fold[data-open] .fold__panel { display: block; }

.fold__panel > * + * { margin-top: 14px; }

/* 标签 / 筛选 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .24s var(--ease), border-color .24s var(--ease),
              background-color .24s var(--ease);
}

.tag:hover {
  color: var(--cream);
  border-color: var(--n);
}

.tag[aria-pressed="true"],
.tag[aria-selected="true"] {
  background: var(--n);
  border-color: var(--n);
  color: #12142C;
  font-weight: 700;
}

/* 页面显现（依赖 html.js-ready，无 JS 时不隐藏内容） */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .52s var(--ease), transform .52s var(--ease);
}

.js-ready [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   平板
   ========================================================================== */
@media (max-width: 1099px) {
  body { padding-top: var(--rail-h); }

  .site-rail {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--rail-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
    background: linear-gradient(180deg, rgba(18, 20, 56, .98), rgba(14, 16, 48, .97));
    backdrop-filter: blur(10px);
  }

  .rail-brand {
    flex-direction: row;
    align-items: center;
    padding-bottom: 0;
  }

  .rail-brand__link {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 2px;
  }

  .rail-brand__mark { width: 30px; height: 30px; font-size: 15px; border-radius: 6px; }

  .rail-brand__name { font-size: 13px; letter-spacing: .1em; }

  .rail-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid var(--hair-strong);
    border-radius: 6px;
    color: var(--cream);
    font-size: 12.5px;
    letter-spacing: .12em;
    transition: border-color .24s var(--ease), color .24s var(--ease);
  }

  .rail-toggle:hover { border-color: var(--gold); color: var(--gold-lt); }

  .rail-toggle__bars {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
  }

  .rail-toggle__bars i {
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .24s var(--ease), opacity .24s var(--ease);
  }

  .rail-toggle[aria-expanded="true"] .rail-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .rail-toggle[aria-expanded="true"] .rail-toggle__bars i:nth-child(2) { opacity: 0; }
  .rail-toggle[aria-expanded="true"] .rail-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

  .rail-nav {
    position: fixed;
    top: var(--rail-h);
    left: 0;
    right: 0;
    z-index: 90;
    flex: none;
    max-height: calc(100vh - var(--rail-h));
    padding: 6px 0 18px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(23, 26, 58, .99), rgba(14, 16, 48, .99));
    border-bottom: 1px solid var(--hair);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }

  .rail-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .rail-nav__list { gap: 0; }

  .rail-nav__link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-radius: 0;
    border-bottom: 1px solid var(--hair);
    color: var(--cream);
    font-size: 15px;
  }

  .rail-nav__link::before {
    left: 0;
    top: 50%;
    width: 4px;
    height: 22px;
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
  }

  .rail-nav__link:hover { background: rgba(243, 237, 224, .04); transform: none; }

  .rail-nav__num { font-size: 12.5px; }

  .rail-nav__label {
    font-size: 15px;
    letter-spacing: .08em;
    white-space: normal;
  }

  .rail-foot { display: none; }

  .rail-progress { display: none; }

  #main-content { scroll-margin-top: calc(var(--rail-h) + 16px); }

  .foot-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-top: 60px;
  }

  .foot-lead { grid-column: 1 / -1; }
}

/* ==========================================================================
   手机
   ========================================================================== */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .wrap,
  .foot-inner { width: min(calc(100% - 28px), var(--maxw)); }

  .site-foot { margin-top: 88px; }

  .foot-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 56px 0 28px;
  }

  .foot-lead,
  .foot-nav,
  .foot-feedback { grid-column: auto; }

  .foot-contact__row { grid-template-columns: 42px minmax(0, 1fr); }

  .foot-nav__list { grid-template-columns: 1fr 1fr; }

  .foot-legal { flex-direction: column; align-items: flex-start; }

  .sec-head__note { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   动效克制
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail-progress__bar { transition: none !important; }
}
