/* ==========================================================================
   华体登录口 — 站点共享样式 /assets/site.css
   夜场墨绿 · 跑道红 · 荧光青 · 暖白纸色
   ========================================================================== */

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

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

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

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

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

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

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

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --night:        #06231C;
  --green-deep:   #0B3B2E;
  --green-line:   #145C46;
  --red:          #D7263D;
  --wine:         #8C1226;
  --cyan:         #34E0C8;
  --paper:        #F4F1E8;
  --paper-2:      #E7E2D5;
  --ink:          #1B1A17;
  --ink-soft:     #5E7268;
  --amber:        #C9A227;

  --on-dark:      #F4F1E8;
  --on-dark-soft: rgba(244, 241, 232, 0.64);
  --on-dark-mute: rgba(244, 241, 232, 0.40);

  --font-title: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body:  "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono:  "IBM Plex Mono", "Roboto Condensed", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "SimSun", serif;

  --rail:     88px;
  --rail-top: 32px;
  --mast:     56px;

  --wrap:   1320px;
  --gutter: clamp(18px, 4vw, 44px);

  --line: 1px solid var(--green-line);
}

/* ---------- 3. Base ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (min-width: 901px) {
  body { padding-left: var(--rail); padding-top: var(--rail-top); }
}
@media (max-width: 900px) {
  body { padding-top: calc(var(--rail-top) + var(--mast)); }
}

body.is-nav-open { overflow: hidden; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-220%);
  background: var(--cyan);
  color: var(--night);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 11px 18px;
  border-radius: 2px;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. Info rail（电子计分牌信息条） ---------- */
.info-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--rail-top);
  z-index: 60;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-deep);
  border-bottom: 1px solid var(--green-line);
}

@media (min-width: 901px) {
  .info-rail { left: var(--rail); }
}

.info-rail__viewport { width: 100%; overflow: hidden; }

.info-rail__track {
  display: flex;
  width: max-content;
  animation: rail-scroll 46s linear infinite;
}

.info-rail:hover .info-rail__track,
.info-rail:focus-within .info-rail__track { animation-play-state: paused; }

@keyframes rail-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.info-rail__group { display: flex; align-items: center; flex: 0 0 auto; }

.info-rail__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 26px;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.info-rail__key {
  font-family: var(--font-serif);
  color: var(--cyan);
  opacity: 0.86;
}

.info-rail__val {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--on-dark-soft);
}

/* ---------- 6. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: var(--rail-top);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 68;
  pointer-events: none;
  background: rgba(20, 92, 70, 0.32);
}

@media (min-width: 901px) {
  .scroll-progress { left: var(--rail); }
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--red) 100%);
}

/* ---------- 7. Left nav track（桌面端侧边轨道） ---------- */
.nav-track { display: none; }

@media (min-width: 901px) {
  .nav-track {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail);
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 0 16px;
    background: var(--night);
    border-right: 1px solid var(--green-line);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .nav-track::-webkit-scrollbar { display: none; }
}

/* 品牌标识 */
.brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand__plate {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 4px 4px 0 rgba(52, 224, 200, 0.24);
  transition: transform 0.2s ease;
}

.brand:hover .brand__plate { transform: translate(-2px, -2px); }

.brand__word {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--on-dark-mute);
  line-height: 1;
}

/* 轨道导航 */
.nav-track__nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-track__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.nav-track__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px;
  border-left: 2px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-track__num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  line-height: 1;
  color: rgba(244, 241, 232, 0.34);
  padding: 1px 3px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-track__label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: rgba(244, 241, 232, 0.70);
  white-space: nowrap;
  text-align: center;
  transition: color 0.18s ease;
}

.nav-track__link:hover { background: rgba(52, 224, 200, 0.07); }
.nav-track__link:hover .nav-track__label { color: var(--on-dark); }
.nav-track__link:hover .nav-track__num { color: var(--cyan); }

.nav-track__link[aria-current="page"] {
  border-left-color: var(--red);
  background: rgba(52, 224, 200, 0.10);
}

.nav-track__link[aria-current="page"] .nav-track__num {
  background: var(--cyan);
  color: var(--night);
}

.nav-track__link[aria-current="page"] .nav-track__label { color: var(--on-dark); }

/* 轨道底部短标签 */
.nav-track__pins {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 0 8px;
}

.pin {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px 4px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--on-dark);
  background: rgba(20, 92, 70, 0.38);
  border: 1px solid var(--green-line);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pin:hover { background: var(--green-line); border-color: var(--cyan); color: var(--paper); }

.pin--red { background: var(--red); border-color: var(--red); color: var(--paper); }
.pin--red:hover { background: var(--wine); border-color: var(--cyan); }

/* ---------- 8. Mobile masthead ---------- */
.masthead {
  position: fixed;
  top: var(--rail-top);
  left: 0;
  right: 0;
  height: var(--mast);
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: var(--night);
  border-bottom: 1px solid var(--green-line);
}

@media (min-width: 901px) { .masthead { display: none; } }

.masthead__brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.masthead__brand::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: var(--red);
  flex: 0 0 auto;
}

.masthead__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--on-dark);
  background: rgba(20, 92, 70, 0.42);
  border: 1px solid var(--green-line);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.masthead__toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.masthead__toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
  flex: 0 0 auto;
}

.masthead__toggle-bars i {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* ---------- 9. Drawer ---------- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 35, 28, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.drawer-scrim[data-open="true"] { opacity: 1; visibility: visible; }

@media (min-width: 901px) { .drawer-scrim { display: none; } }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(322px, 86vw);
  display: flex;
  flex-direction: column;
  background: var(--night);
  border-left: 1px solid var(--green-line);
  transform: translateX(102%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s ease;
}

.drawer[data-open="true"] { transform: translateX(0); visibility: visible; }

@media (min-width: 901px) { .drawer { display: none; } }

.drawer__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--green-line);
}

.drawer__title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--on-dark);
}

.drawer__close {
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--on-dark-soft);
  border: 1px solid var(--green-line);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.drawer__close:hover { color: var(--cyan); border-color: var(--cyan); }

.drawer__nav { flex: 1 1 auto; }

.drawer__list { padding: 10px 0; }

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(244, 241, 232, 0.78);
  border-left: 3px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.drawer__link:hover { background: rgba(52, 224, 200, 0.08); color: var(--on-dark); }

.drawer__link[aria-current="page"] {
  border-left-color: var(--red);
  background: rgba(52, 224, 200, 0.11);
  color: var(--on-dark);
}

.drawer__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.drawer__pins {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--green-line);
}

.drawer__pins .pin { font-size: 12px; padding: 11px 6px; }

/* ---------- 10. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap--narrow { max-width: 920px; }

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }

@media (min-width: 900px) {
  .grid--editorial { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-main { grid-column: 1 / span 8; min-width: 0; }
  .col-aside { grid-column: 10 / span 3; min-width: 0; }
  .col-full { grid-column: 1 / -1; min-width: 0; }
}

.band {
  position: relative;
  padding: clamp(36px, 5.4vw, 68px) 0;
}

.band--deep { background: var(--green-deep); color: var(--on-dark); }
.band--night { background: var(--night); color: var(--on-dark); }
.band--paper2 { background: var(--paper-2); color: var(--ink); }

.band--deep .h-section,
.band--night .h-section { color: var(--on-dark); }

/* 跑道带：横向停靠滚动 */
.rail-scroller {
  display: flex;
  gap: clamp(16px, 2vw, 26px);
  overflow-x: auto;
  padding: 6px var(--gutter) 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--green-line) transparent;
  -webkit-overflow-scrolling: touch;
}

.rail-scroller > * { flex: 0 0 auto; scroll-snap-align: start; }

.rail-scroller::-webkit-scrollbar { height: 6px; }
.rail-scroller::-webkit-scrollbar-track { background: transparent; }
.rail-scroller::-webkit-scrollbar-thumb { background: var(--green-line); }

/* ---------- 11. Typography ---------- */
.h-display {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--night);
}

.h-section {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--night);
}

.h-sub {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--night);
}

.band--deep .h-sub,
.band--night .h-sub { color: var(--on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  flex: 0 0 auto;
}

.eyebrow--on-dark { color: var(--cyan); }
.eyebrow--on-dark::before { background: var(--cyan); }

.annotation {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.band--deep .annotation,
.band--night .annotation { color: var(--on-dark-soft); }

.num {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.prose { max-width: 44em; }

.prose p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 1.2em;
  color: var(--ink);
}

.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  font-family: var(--font-title);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.24;
  margin: 1.8em 0 0.7em;
  color: var(--night);
}

.prose h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin: 1.5em 0 0.6em;
  color: var(--night);
}

.prose ul, .prose ol { margin: 0 0 1.2em; }

.prose li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.62em;
  font-size: 16.5px;
  line-height: 1.8;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 2px;
  background: var(--red);
}

.prose a {
  color: var(--wine);
  border-bottom: 1px solid rgba(140, 18, 38, 0.34);
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

.link-u {
  position: relative;
  display: inline-block;
  color: var(--wine);
  font-weight: 600;
}

.link-u::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.link-u:hover::after { transform: scaleX(1); }

/* ---------- 12. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

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

.btn--primary { background: var(--red); color: var(--paper); }
.btn--primary:hover { background: var(--wine); }

.btn--ghost { background: transparent; color: var(--night); border-color: var(--green-line); }
.btn--ghost:hover { background: var(--green-deep); color: var(--paper); border-color: var(--green-deep); }

.btn--on-dark { background: transparent; color: var(--cyan); border-color: rgba(52, 224, 200, 0.5); }
.btn--on-dark:hover { background: var(--cyan); color: var(--night); border-color: var(--cyan); }

/* ---------- 13. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.breadcrumb a {
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

.breadcrumb__sep { color: rgba(94, 114, 104, 0.5); }

/* ---------- 14. Paper cards & stat blocks ---------- */
.card-paper {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--green-line);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: 7px 7px 0 rgba(11, 59, 46, 0.14);
}

.card-paper--stack { box-shadow: 7px 7px 0 rgba(11, 59, 46, 0.14), 13px 13px 0 rgba(215, 38, 61, 0.12); }

.card-paper--dark {
  background: var(--green-deep);
  color: var(--on-dark);
  border-color: var(--green-line);
  box-shadow: 7px 7px 0 rgba(6, 35, 28, 0.36);
}

.card-paper--dark .h-sub { color: var(--on-dark); }

.card-paper__tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--night);
  background: var(--amber);
}

.stat-block {
  border-left: 3px solid var(--red);
  padding: 6px 0 6px 16px;
}

.stat-block__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.stat-block__label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--on-dark-soft);
}

/* ---------- 15. Media frames（图片占位容器） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--green-deep);
  border: 1px solid var(--green-line);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(20, 92, 70, 0.55) 0 1px, transparent 1px 30px),
    linear-gradient(158deg, var(--green-deep) 0%, var(--night) 100%);
}

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

.media-frame > figcaption {
  position: relative;
  z-index: 1;
}

.media-frame--wide { aspect-ratio: 16 / 7; }
.media-frame--std { aspect-ratio: 4 / 3; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--strip { aspect-ratio: 21 / 6; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame--diagonal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(6, 35, 28, 0.62) 0%, rgba(6, 35, 28, 0) 48%, rgba(215, 38, 61, 0.20) 100%);
}

@media (max-width: 640px) {
  .media-frame--wide { aspect-ratio: 4 / 3; }
  .media-frame--strip { aspect-ratio: 16 / 7; }
}

/* ---------- 16. Accordion ---------- */
.accordion {
  border-top: 1px solid var(--green-line);
}

.acc-item { border-bottom: 1px solid var(--green-line); }

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  text-align: left;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--night);
  transition: color 0.18s ease;
}

.acc-btn:hover { color: var(--red); }

.acc-btn__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--wine);
}

.acc-btn__icon {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.acc-btn__icon::before,
.acc-btn__icon::after {
  content: "";
  position: absolute;
  background: var(--red);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.acc-btn__icon::before { left: 0; right: 0; top: 6px; height: 2px; }
.acc-btn__icon::after { top: 0; bottom: 0; left: 6px; width: 2px; }

.acc-btn[aria-expanded="true"] .acc-btn__icon::after { transform: scaleY(0); opacity: 0; }

.acc-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.24s ease;
}

.acc-panel__inner {
  padding: 0 4px 24px 32px;
  max-width: 60em;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.band--deep .acc-panel__inner,
.band--night .acc-panel__inner { color: var(--on-dark-soft); }

/* ---------- 17. Reveal ---------- */
[data-reveal] { transition: opacity 0.5s ease, transform 0.5s ease; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

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

/* ---------- 18. Footer ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--night);
  color: var(--on-dark);
  border-top: 1px solid var(--green-line);
}

.site-foot__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

@media (min-width: 760px) {
  .site-foot__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
}

@media (min-width: 1080px) {
  .site-foot__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr) minmax(0, 1.25fr); }
}

.site-foot__plate {
  display: inline-block;
  padding-bottom: 10px;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  border-bottom: 3px solid var(--red);
}

.site-foot__tag {
  margin-top: 16px;
  max-width: 26em;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--on-dark-soft);
}

.site-foot__meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(52, 224, 200, 0.7);
}

.site-foot__col--nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px 22px;
}

.foot-group__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
  border-bottom: 1px solid var(--green-line);
}

.foot-group__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-group__link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: rgba(244, 241, 232, 0.76);
  transition: color 0.18s ease;
}

.foot-group__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.22s ease;
}

.foot-group__link:hover { color: var(--on-dark); }
.foot-group__link:hover::after { width: 100%; }

.foot-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.foot-contact__k {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(244, 241, 232, 0.42);
}

.foot-contact__v {
  display: block;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(244, 241, 232, 0.86);
  word-break: break-word;
}

.foot-contact__v--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.site-foot__rule {
  height: 2px;
  width: 100%;
  background: var(--red);
}

.site-foot__base {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--gutter) 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 232, 0.52);
}

/* ---------- 19. Responsive fine-tuning ---------- */
@media (max-width: 900px) {
  .h-display { font-size: clamp(28px, 8.4vw, 42px); }
  .h-section { font-size: clamp(22px, 6.4vw, 30px); }
  .info-rail__item { padding: 0 18px; font-size: 11px; }
}

@media (max-width: 640px) {
  .prose p { font-size: 16px; }
  .prose li { font-size: 16px; }
  .site-foot__base { justify-content: flex-start; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .info-rail__track { animation: none; transform: none; }
  .rail-scroller { scroll-snap-type: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .drawer { transition: none; }
}
