/* ==========================================================================
   麻将胡了电玩 · 共享样式 /assets/site.css
   01 重置  02 变量  03 基础排版  04 布局容器  05 蓝图装饰
   06 按钮与筛选  07 刊头  08 页脚  09 通用组件  10 响应式  11 减弱动效
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, p,
ul, ol, li, figure, figcaption, blockquote,
dl, dt, dd, fieldset, legend {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

a { color: inherit; }

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

/* ---------- 02 变量 ---------- */
:root {
  --ivory: #F7F2E8;
  --ivory-deep: #EFE7D8;
  --green: #0E3B2E;
  --green-deep: #0A2B21;
  --red: #B5122F;
  --red-deep: #8C0D24;
  --gold: #C9A227;
  --gold-pale: #E8D9A8;
  --neon: #35E0C8;
  --night: #101613;
  --fog: #D8D0C2;
  --pink: #FF4D8D;

  --ink: #141A16;
  --ink-soft: #46534A;

  --wrap: 1280px;
  --gutter: 24px;
  --baseline: 8px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "DIN Condensed", "Oswald", "Arial Narrow", ui-monospace,
    "SFMono-Regular", "Menlo", monospace;

  --ease-out: cubic-bezier(0.22, 0.75, 0.3, 1);
}

/* ---------- 03 基础排版 ---------- */
body {
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#main-content { display: block; }
#main-content:focus { outline: none; }

p { max-width: 72ch; }

.display {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--green);
}

.display--xl {
  font-size: clamp(3rem, 8.5vw, 7.2rem);
  line-height: 1;
}

.headline {
  font-weight: 900;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--green);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 34em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background-color: currentColor;
  flex: none;
}

.annotation {
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.vertical-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--red);
  padding: 4px 0;
}

.numeric {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--red);
}

/* ---------- 04 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--dark {
  background-color: var(--green);
  color: var(--ivory);
}

.section--night {
  background-color: var(--night);
  color: var(--fog);
}

.section--dark .display,
.section--dark .headline,
.section--night .display,
.section--night .headline { color: var(--ivory); }

.section--dark .lede,
.section--night .lede { color: rgba(247, 242, 232, 0.78); }

.section--dark .annotation,
.section--night .annotation { color: rgba(247, 242, 232, 0.62); }

.grid {
  display: grid;
  gap: var(--gutter);
}

.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }

/* ---------- 05 蓝图装饰 ---------- */
.bp-grid {
  background-image:
    linear-gradient(to right, rgba(14, 59, 46, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 59, 46, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

.section--dark.bp-grid,
.section--night.bp-grid {
  background-image:
    linear-gradient(to right, rgba(216, 208, 194, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(216, 208, 194, 0.09) 1px, transparent 1px);
}

.bp-frame { position: relative; }

.bp-frame::before,
.bp-frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  opacity: 0.85;
  pointer-events: none;
}

.bp-frame::before {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.bp-frame::after {
  right: 0;
  bottom: 0;
  border-top: 0;
  border-left: 0;
}

.slanted-band {
  height: clamp(40px, 6vw, 72px);
  background-image: linear-gradient(96deg,
    var(--red) 0 30%,
    var(--gold) 30% 42%,
    var(--green) 42% 100%);
  clip-path: polygon(0 24%, 100% 0, 100% 76%, 0 100%);
}

/* ---------- 06 按钮与筛选 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--primary:hover { background-color: var(--red-deep); border-color: var(--red-deep); }

.btn--ghost {
  background-color: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn--ghost:hover { background-color: var(--green); color: var(--ivory); }

.btn--gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}
.btn--gold:hover { background-color: var(--gold-pale); border-color: var(--gold-pale); }

.btn--on-dark {
  background-color: transparent;
  border-color: var(--gold);
  color: var(--gold-pale);
}
.btn--on-dark:hover { background-color: var(--gold); color: var(--night); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid rgba(14, 59, 46, 0.28);
  border-radius: 999px;
  background-color: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.chip:hover { border-color: var(--gold); background-color: var(--gold-pale); }

.chip[aria-pressed="true"] {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--ivory);
}

/* ---------- 07 刊头 ---------- */
.site-header {
  position: relative;
  background-color: var(--ivory);
  isolation: isolate;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background-color: var(--gold);
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s ease-out;
}

.skip-link:focus-visible { transform: translateY(0); }

.topbar {
  background-color: var(--night);
  color: var(--fog);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 40px;
  padding-block: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.topbar__mark { color: var(--gold-pale); font-weight: 700; }

.topbar__coord {
  color: rgba(216, 208, 194, 0.56);
  font-family: var(--font-num);
  letter-spacing: 0.16em;
}

.topbar__season {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon);
  font-weight: 700;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(53, 224, 200, 0.22);
  vertical-align: middle;
}

.masthead {
  position: relative;
  background-color: var(--ivory);
  background-image:
    linear-gradient(to right, rgba(14, 59, 46, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 59, 46, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  border-bottom: 1px solid rgba(14, 59, 46, 0.1);
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: clamp(18px, 3vw, 30px);
}

.masthead__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--green);
}

.masthead__title {
  font-size: clamp(1.75rem, 4.4vw, 3.3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--green);
  text-shadow:
    1px 0 0 var(--gold),
    -1px 0 0 var(--gold),
    0 1px 0 var(--gold),
    0 -1px 0 var(--gold),
    4px 4px 0 rgba(181, 18, 47, 0.12);
  transition: color 0.2s ease;
}

.masthead__brand:hover .masthead__title { color: var(--green-deep); }

.masthead__sub {
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--ink-soft);
}

.masthead__note {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.36em;
  color: var(--red);
  opacity: 0.85;
  align-self: center;
}

.masthead__note--left { justify-self: start; }
.masthead__note--right { justify-self: end; color: var(--green); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  background-color: var(--green);
  border: 1px solid var(--green);
  border-radius: 2px;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle[aria-expanded="true"] {
  background-color: var(--red);
  border-color: var(--red);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

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

.nav-deck {
  position: relative;
  z-index: 30;
  background-color: var(--ivory);
}

.nav-deck__list {
  display: flex;
  justify-content: center;
  gap: 2px;
  max-height: none;
  opacity: 1;
  overflow: visible;
}

.nav-tile {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 15px 18px 12px;
  border-bottom: 3px solid transparent;
  background-image: linear-gradient(180deg, transparent 60%, rgba(201, 162, 39, 0.16) 100%);
  background-size: 100% 0;
  background-repeat: no-repeat;
  background-position: center bottom;
  text-decoration: none;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: color 0.18s ease, border-color 0.18s ease,
    transform 0.18s var(--ease-out), background-size 0.24s var(--ease-out);
}

.nav-tile:hover,
.nav-tile:focus-visible {
  transform: translateY(-2px);
  border-bottom-color: var(--gold);
  background-size: 100% 100%;
}

.nav-tile[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--green-deep);
}

.nav-tile__idx {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  opacity: 0.7;
  transition: opacity 0.18s ease;
}

.nav-tile:hover .nav-tile__idx,
.nav-tile[aria-current="page"] .nav-tile__idx { opacity: 1; }

.nav-tile__label { display: inline-block; }

.nav-tile__note {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 40;
  padding: 5px 12px;
  border-radius: 2px;
  background-color: var(--green);
  color: var(--gold-pale);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s ease-out, transform 0.2s var(--ease-out);
}

.nav-tile:hover .nav-tile__note,
.nav-tile:focus-visible .nav-tile__note {
  opacity: 1;
  transform: translate(-50%, 4px);
}

.header-rule {
  position: relative;
  height: 8px;
  background-image: linear-gradient(100deg,
    var(--red) 0 34%,
    var(--gold) 34% 44%,
    var(--green) 44% 100%);
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  background-image: linear-gradient(90deg, var(--red), var(--gold), var(--neon));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 08 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--night);
  color: var(--fog);
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(216, 208, 194, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(216, 208, 194, 0.075) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.footer__rule {
  position: relative;
  z-index: 1;
  height: 6px;
  background-image: linear-gradient(100deg,
    var(--gold) 0 22%,
    var(--red) 22% 46%,
    var(--green) 46% 100%);
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 72px) clamp(32px, 4vw, 48px);
}

.footer__brand-name {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--ivory);
  text-shadow: 0 0 0 transparent;
}

.footer__brand-summary {
  margin-top: 14px;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(216, 208, 194, 0.74);
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(53, 224, 200, 0.4);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--neon);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.footer__group-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(216, 208, 194, 0.2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-pale);
}

.footer__group-idx {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--red);
}

.footer__links { display: grid; gap: 10px; }

.footer__links a {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(216, 208, 194, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--neon);
  border-bottom-color: rgba(53, 224, 200, 0.6);
  transform: translateX(3px);
}

.footer__contact-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  font-size: 13px;
  line-height: 1.7;
}

.footer__contact-list dt {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(201, 162, 39, 0.9);
  padding-top: 3px;
  white-space: nowrap;
}

.footer__contact-list dd {
  color: rgba(216, 208, 194, 0.86);
  word-break: break-word;
}

.footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(216, 208, 194, 0.16);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 18px 26px;
}

.footer__legal {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(216, 208, 194, 0.7);
}

.footer__note {
  max-width: 58ch;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(216, 208, 194, 0.56);
}

.footer__watermark {
  position: absolute;
  right: -2%;
  bottom: -8%;
  z-index: 0;
  font-size: clamp(9rem, 26vw, 21rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 162, 39, 0.16);
  pointer-events: none;
  user-select: none;
}

/* ---------- 09 通用组件 ---------- */
.breadcrumb {
  padding-top: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 59, 46, 0.32);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb a:hover { color: var(--red); border-bottom-color: var(--red); }

.figure-frame {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(14, 59, 46, 0.18);
  border-radius: 4px;
  background-image: linear-gradient(135deg, var(--ivory-deep), #E3D8C4);
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(14, 59, 46, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 59, 46, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

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

.figure-frame--wide { aspect-ratio: 16 / 9; }
.figure-frame--tall { aspect-ratio: 3 / 4; }

.figure-frame__cap {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.tile-card {
  --tile-min: 220px;
  position: relative;
  min-height: var(--tile-min);
  perspective: 900px;
}

.tile-card__box {
  position: relative;
  min-height: var(--tile-min);
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.48s var(--ease-out);
}

.tile-card:hover .tile-card__box,
.tile-card:focus-within .tile-card__box { transform: rotateY(180deg); }

.tile-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(14, 59, 46, 0.22);
  border-radius: 6px;
  background-color: var(--ivory);
  box-shadow: 0 2px 0 rgba(14, 59, 46, 0.12);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tile-card__face--back {
  transform: rotateY(180deg);
  background-color: var(--green);
  border-color: var(--green);
  color: var(--ivory);
  box-shadow: 0 2px 0 rgba(14, 59, 46, 0.3);
}

.tile-card__idx {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--red);
}

.tile-card__face--back .tile-card__idx { color: var(--neon); }

.tile-card__title {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--green);
}

.tile-card__face--back .tile-card__title { color: var(--ivory); }

.tile-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.tile-card__face--back .tile-card__text { color: rgba(247, 242, 232, 0.82); }

.tile-card__link {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-pale);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 217, 168, 0.5);
}

.tile-card__link:hover { color: var(--neon); border-bottom-color: var(--neon); }

.index-list { border-top: 1px solid var(--fog); }

.index-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--fog);
}

.index-list__num {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--red);
}

.index-list__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.plaque {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 2px;
  background-color: var(--green);
  color: var(--gold-pale);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.note-card {
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background-color: rgba(232, 217, 168, 0.3);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.stat { display: grid; gap: 6px; }

.stat__value {
  font-family: var(--font-num);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--red);
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.section--dark .stat__label,
.section--night .stat__label { color: rgba(247, 242, 232, 0.66); }

.timeline { position: relative; }

.timeline__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.timeline__node {
  position: relative;
  flex: 0 0 clamp(180px, 26vw, 240px);
  scroll-snap-align: start;
  padding: 18px 16px 18px 18px;
  border-left: 2px solid var(--fog);
  background-color: rgba(247, 242, 232, 0.5);
}

.timeline__node::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--fog);
  border: 2px solid var(--ivory);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.timeline__node.is-active::before {
  background-color: var(--neon);
  box-shadow: 0 0 0 4px rgba(53, 224, 200, 0.24);
}

.timeline__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.faq-item { border-bottom: 1px solid var(--fog); }

.faq-item__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 16px 0;
  background: none;
  border: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--green);
  text-align: left;
  cursor: pointer;
}

.faq-item__btn::after {
  content: "+";
  flex: none;
  font-family: var(--font-num);
  font-size: 22px;
  line-height: 1;
  color: var(--red);
  transition: transform 0.2s ease-out;
}

.faq-item__btn[aria-expanded="true"]::after { transform: rotate(45deg); }

.faq-item__panel {
  padding-bottom: 18px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.faq-item__panel[hidden] { display: none; }

/* ---------- 10 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-tile { padding-inline: 13px; font-size: 14px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid--7-5,
  .grid--8-4 { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .topbar__coord { display: none; }

  .masthead__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    justify-items: start;
  }

  .masthead__brand { align-items: flex-start; text-align: left; }
  .masthead__note { display: none; }
  .masthead__title { font-size: clamp(1.5rem, 6.4vw, 2.2rem); }
  .nav-toggle { display: inline-flex; justify-self: end; }

  .nav-deck__inner { padding-inline: 0; }

  .nav-deck__list {
    flex-direction: column;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-inline: var(--gutter);
    transition: max-height 0.24s ease-out, opacity 0.2s ease-out,
      padding 0.24s ease-out;
  }

  .nav-deck[data-open] .nav-deck__list {
    max-height: 640px;
    opacity: 1;
    padding-bottom: 14px;
  }

  .nav-deck__item { border-top: 1px dashed rgba(14, 59, 46, 0.18); }

  .nav-tile {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 4px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-tile:hover,
  .nav-tile:focus-visible { transform: none; background-size: 0 0; }

  .nav-tile[aria-current="page"] {
    border-left-color: var(--gold);
    border-bottom-color: transparent;
  }

  .nav-tile__note { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }

  .topbar__inner { justify-content: space-between; letter-spacing: 0.1em; }
  .topbar__mark { order: 1; }
  .topbar__season { order: 2; }

  .footer__inner { grid-template-columns: 1fr; padding-block: 36px 24px; }
  .footer__nav { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer__contact { grid-column: auto; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer__watermark { font-size: clamp(7rem, 42vw, 12rem); bottom: -4%; right: -8%; }
  .footer__contact-list { grid-template-columns: 1fr; gap: 4px; }
  .footer__contact-list dt { padding-top: 10px; }

  .btn { width: 100%; }
  .btn-group { flex-direction: column; align-items: stretch; }

  .timeline__node { flex-basis: 78%; }
}

/* ---------- 11 减弱动效 ---------- */
@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;
    transition-delay: 0ms !important;
  }

  .tile-card:hover .tile-card__box,
  .tile-card:focus-within .tile-card__box { transform: none; }

  .tile-card__face--back { display: none; }
  .tile-card__face { position: relative; inset: auto; backface-visibility: visible; }

  .nav-tile:hover,
  .nav-tile:focus-visible { transform: none; }

  .btn:hover { transform: none; }
  .footer__links a:hover { transform: none; }
}
