/* =========================================================
   麻将胡了俱乐部 · 共享站点样式 /assets/site.css
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #0B1F1A;
  --ink-2: #12302A;
  --ink-3: #173C34;
  --jade: #12A67A;
  --jade-lite: #6FE3B8;
  --cinnabar: #C8382F;
  --cinnabar-lite: #E8705F;
  --gold: #D9A94A;
  --bone: #F2EDE3;
  --mute: #A8B3AE;
  --pg-blue: #1E6BFF;

  --line-gold: rgba(217, 169, 74, .30);
  --line-jade: rgba(18, 166, 122, .38);
  --line-bone: rgba(242, 237, 227, .13);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", "Roboto Mono", Consolas, "Courier New", monospace;

  --shell: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 84% -12%, rgba(18, 166, 122, .17), transparent 70%),
    radial-gradient(880px 520px at -10% 12%, rgba(200, 56, 47, .10), transparent 72%),
    repeating-linear-gradient(122deg, rgba(217, 169, 74, .035) 0 1px, transparent 1px 76px);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.012em;
  color: var(--bone);
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

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

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

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

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

::selection { background: var(--jade); color: #04140F; }

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

/* ---------- 3. 跳过链接与滚动进度 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 220;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--jade);
  color: #04140F;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .24s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.scroll-meter {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 150;
  pointer-events: none;
  background: rgba(242, 237, 227, .06);
}
.scroll-meter-fill {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--jade), var(--jade-lite) 56%, var(--gold));
}

/* ---------- 4. 布局容器 ---------- */
.wrap {
  width: min(calc(100% - 12%), var(--shell));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(calc(100% - 12%), 880px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-top: 96px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: 34px;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 10px;
}

.section-lede {
  max-width: 62ch;
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--mute);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

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

.col-4, .col-6, .col-8 { grid-column: 1 / -1; }

@media (min-width: 861px) {
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 8; }
}

/* ---------- 5. 文本与装饰 ---------- */
.index-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.index-num::after {
  content: "";
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.rule-gold {
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, rgba(217, 169, 74, .55), rgba(217, 169, 74, .08) 62%, transparent);
}

.prose { max-width: 68ch; }
.prose p { color: #D5DBD7; }
.prose h2 {
  font-size: clamp(23px, 2.6vw, 30px);
  margin: 1.7em 0 .55em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 19.5px;
  margin: 1.5em 0 .5em;
}
.prose ul { margin: 0 0 1.2em; }
.prose li {
  position: relative;
  padding-left: 22px;
  margin-bottom: .5em;
  color: #D5DBD7;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 9px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 6. 表面与标签 ---------- */
.panel {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line-bone);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(23, 60, 52, .74), rgba(11, 31, 26, .74));
}
.panel--cut { border-radius: 2px 26px 2px 26px; }
.panel-body { display: grid; gap: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line-jade);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jade-lite);
  white-space: nowrap;
}
.chip--red { border-color: rgba(200, 56, 47, .52); color: var(--cinnabar-lite); }
.chip--gold { border-color: rgba(217, 169, 74, .46); color: var(--gold); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background-color .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--jade);
  color: #04140F;
  box-shadow: 0 12px 26px -18px rgba(18, 166, 122, .95);
}
.btn-solid:hover { background: var(--jade-lite); }

.btn-quiet {
  border-color: var(--line-gold);
  color: var(--bone);
  background: rgba(217, 169, 74, .05);
}
.btn-quiet:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  border-color: var(--line-bone);
  color: var(--bone);
}
.btn-ghost:hover { border-color: var(--jade-lite); color: var(--jade-lite); }

.btn-sand {
  background: var(--cinnabar);
  color: #FFF2EE;
}
.btn-sand:hover { background: var(--cinnabar-lite); }

.btn-link {
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(111, 227, 184, .42);
  color: var(--jade-lite);
  font-size: 14.5px;
}
.btn-link:hover { border-bottom-color: var(--jade-lite); transform: none; }

/* ---------- 8. 数据带 ---------- */
.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  border: 1px solid var(--line-bone);
  border-radius: 4px;
  background: var(--line-bone);
  overflow: hidden;
}
.data-strip-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: rgba(18, 48, 42, .82);
}
.data-strip-value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--jade-lite);
  line-height: 1.1;
}
.data-strip-label {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--mute);
}

/* ---------- 9. 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--line-bone);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mute);
  transition: background-color .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease);
}
.filter-btn:hover { color: var(--bone); border-color: var(--line-gold); }
.filter-btn[aria-pressed="true"] {
  background: var(--jade);
  border-color: var(--jade);
  color: #04140F;
}

[data-tags][hidden] { display: none !important; }

/* ---------- 10. 表格 ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-bone);
  border-radius: 4px;
  background: rgba(11, 31, 26, .5);
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.data-table caption {
  padding: 16px 18px 0;
  text-align: left;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--mute);
}
.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  border-bottom: 1px solid var(--line-bone);
}
.data-table thead th {
  background: rgba(18, 166, 122, .10);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(111, 227, 184, .05); }
.data-table tr[data-emphasis="true"] td { background: rgba(200, 56, 47, .13); }
.data-table th.num,
.data-table td.num {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--jade-lite);
}

/* ---------- 11. 折叠块 ---------- */
.disclosure {
  border: 1px solid var(--line-bone);
  border-radius: 4px;
  background: rgba(18, 48, 42, .5);
  overflow: hidden;
  transition: border-color .24s var(--ease);
}
.disclosure + .disclosure { margin-top: 10px; }
.disclosure[data-open="true"] { border-color: var(--line-jade); }

.disclosure-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  color: var(--bone);
}
.disclosure-idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--gold);
}
.disclosure-title {
  flex: 1 1 auto;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
}
.disclosure-icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.disclosure-icon::before,
.disclosure-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--jade-lite);
  transform: translate(-50%, -50%);
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.disclosure-icon::before { width: 14px; height: 1.5px; }
.disclosure-icon::after { width: 1.5px; height: 14px; }
.disclosure[data-open="true"] .disclosure-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}
.disclosure-panel {
  padding: 0 20px 22px;
  font-size: 15.5px;
  color: var(--mute);
}
.disclosure[data-open="true"] .disclosure-panel {
  animation: discIn .3s var(--ease) both;
}
@keyframes discIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 12. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(145deg, rgba(23, 60, 52, .92), rgba(11, 31, 26, .96));
}
.media-frame > img,
.media-frame > svg,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(11, 31, 26, .58));
  box-shadow: inset 0 0 0 1px rgba(242, 237, 227, .06);
}
.media-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 16px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--bone);
}
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mute);
}
.breadcrumb a { color: var(--mute); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--jade-lite); }
.breadcrumb-sep { color: rgba(217, 169, 74, .6); }
.breadcrumb [aria-current="page"] { color: var(--bone); }
.breadcrumb-back {
  margin-left: auto;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(217, 169, 74, .45);
  color: var(--gold);
}

/* ---------- 14. 进入显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.has-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0 12px;
  background: linear-gradient(180deg,
    rgba(11, 31, 26, .96) 0%,
    rgba(11, 31, 26, .82) 58%,
    rgba(11, 31, 26, 0) 100%);
  transition: padding .3s var(--ease);
}
.site-header[data-stuck="true"] {
  padding-top: 8px;
  padding-bottom: 6px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(23, 60, 52, .96), rgba(11, 31, 26, .98));
  box-shadow:
    0 22px 46px -30px rgba(0, 0, 0, .95),
    inset 0 1px 0 rgba(242, 237, 227, .07);
  transition: padding .3s var(--ease), border-color .3s var(--ease);
}
.site-header[data-stuck="true"] .header-inner {
  padding-top: 5px;
  padding-bottom: 5px;
  border-color: rgba(217, 169, 74, .46);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px 4px 12px 4px;
  background: var(--pg-blue);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .3),
    0 10px 22px -14px rgba(30, 107, 255, .95);
  transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-2deg); }
.brand-words {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.brand-cn {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--bone);
  white-space: nowrap;
}
.brand-en {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* 导航胶囊 */
.nav-capsule {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mute);
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover {
  color: var(--bone);
  background: rgba(111, 227, 184, .10);
}
.nav-link[aria-current="page"] {
  background: var(--jade);
  color: #04140F;
  font-weight: 700;
  box-shadow: 0 10px 24px -15px rgba(18, 166, 122, .95);
}

/* 工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.header-tools .btn {
  padding: 9px 16px;
  font-size: 14px;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-bone);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mute);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: var(--bone);
  background: rgba(217, 169, 74, .06);
  transition: border-color .22s var(--ease), background-color .22s var(--ease);
}
.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(217, 169, 74, .13);
}
.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 17px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--bone);
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bar:last-child { width: 11px; }
.nav-toggle[data-open="true"] .nav-toggle-bar:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[data-open="true"] .nav-toggle-bar:last-child {
  width: 17px;
  transform: translateY(-3px) rotate(-45deg);
}
.nav-toggle-text {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 112px;
  padding: 74px 0 30px;
  border-top: 1px solid var(--line-gold);
  background: linear-gradient(180deg, #0B1F1A 0%, #0F2A23 44%, #12302A 100%);
  color: var(--mute);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 240px;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg,
    rgba(217, 169, 74, .075) 0 1px,
    transparent 1px 52px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 74px);
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line-bone);
}

.footer-brand .brand { padding-left: 0; margin-bottom: 20px; }
.footer-note {
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mute);
}
.footer-tag { margin: 20px 0 0; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--gold);
}
.footer-col-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--gold);
  opacity: .75;
}
.footer-col a {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: var(--mute);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-col a:hover {
  color: var(--jade-lite);
  transform: translateX(3px);
}

.footer-contact {
  position: relative;
  z-index: 1;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-bone);
}
.footer-contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px 32px;
}
.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact-item--wide { grid-column: 1 / -1; }
.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-contact-value {
  font-size: 15px;
  color: var(--bone);
  word-break: break-word;
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-top: 24px;
}
.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(168, 179, 174, .8);
}
.footer-signoff {
  margin: 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mute);
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1240px) {
  .lang-chip { display: none; }
}

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

  .nav-capsule {
    position: absolute;
    top: calc(100% - 6px);
    left: 5%;
    right: 5%;
    display: block;
    margin-left: 0;
    padding: 12px;
    border: 1px solid rgba(217, 169, 74, .38);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(23, 60, 52, .99), rgba(11, 31, 26, .99));
    box-shadow: 0 40px 72px -36px rgba(0, 0, 0, .96);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .nav-capsule[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }
  .nav-link {
    justify-content: flex-start;
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 16px;
  }
  .nav-link[aria-current="page"] { box-shadow: none; }
}

@media (max-width: 980px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap,
  .wrap--narrow { width: calc(100% - 10%); }
  .section { padding-top: 72px; }
  .site-footer { margin-top: 80px; padding-top: 58px; }
  .header-tools .btn-quiet { display: none; }
  .brand-en { letter-spacing: .18em; }
}

@media (max-width: 560px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .brand-cn { font-size: 15px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px 4px 10px 4px; }
  .header-inner { padding-left: 12px; }
  .header-tools .btn { padding: 8px 13px; font-size: 13px; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 9px 12px; }
}

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