/* ==========================================================================
   完美体育APP · 共享样式表 /assets/site.css
   骨架：状态条 + 左侧导轨式框架导航 + 连续画布 + 索引柱 + 进度返回顶部
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
hr { border: 0; }

:root {
  /* 出版色体系 */
  --ink-950: #0F0D0B;
  --ink-800: #1B1613;
  --ink-700: #2A231D;
  --cream-050: #F5EFE3;
  --paper-200: #E2D7C3;
  --text-900: #14110E;
  --warm-gray-500: #8A7F72;
  --orange-500: #FF6A1A;
  --orange-600: #D94E06;
  --blue-500: #2E6BFF;
  --blue-800: #10307A;
  --neon-400: #45F5A3;
  --amber-500: #FFB020;

  /* 描边与纹理 */
  --line: rgba(226, 215, 195, 0.14);
  --line-strong: rgba(226, 215, 195, 0.26);
  --line-dark: rgba(20, 17, 14, 0.14);

  /* 尺度 */
  --rail-w: 88px;
  --brand-h: 88px;
  --status-h: 34px;
  --topbar-h: 72px;
  --mobile-bar-h: 58px;
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);

  /* 字体 */
  --font-head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-head);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 1023px) {
  :root {
    --status-h: 30px;
    --topbar-h: 72px;
    --brand-h: 42px;
  }
}

/* ------------------------------ base ---------------------------------- */
body {
  background: var(--ink-950);
  color: var(--cream-050);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(118deg, rgba(245, 239, 227, 0.028) 0 1px, transparent 1px 11px);
  opacity: 0.9;
}

@media (min-width: 1024px) {
  body {
    padding-top: var(--status-h);
    padding-left: var(--rail-w);
  }
}

@media (max-width: 1023px) {
  body {
    padding-top: var(--topbar-h);
    padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
    font-size: 16px;
    line-height: 1.75;
  }
}

main { position: relative; z-index: 1; display: block; }
#main-content:focus { outline: none; }

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

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

/* ---------------------------- skip link -------------------------------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 11px 20px;
  background: var(--orange-500);
  color: var(--text-900);
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 10px; }

/* ---------------------------- site header ------------------------------ */
.site-header { position: relative; z-index: 60; }

@media (max-width: 1023px) {
  .site-header::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: var(--topbar-h);
    z-index: 50;
    background: var(--ink-950);
    border-bottom: 1px solid var(--line);
  }
}

/* 细条状态栏 */
.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--status-h);
  z-index: 60;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line-strong);
  color: var(--cream-050);
}

.status-bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
}

.status-bar__version {
  flex: none;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--orange-500);
  border: 1px solid rgba(255, 106, 26, 0.55);
  border-radius: 2px;
  padding: 1px 7px;
  line-height: 1.5;
}

.status-bar__ticker {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.status-bar__pulse {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-400);
  box-shadow: 0 0 8px rgba(69, 245, 163, 0.75);
  animation: sp-pulse 2.4s ease-in-out infinite;
}

.status-bar__track {
  display: flex;
  flex: none;
  white-space: nowrap;
  animation: sp-marquee 34s linear infinite;
}

.status-bar__item {
  padding-right: 72px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(245, 239, 227, 0.74);
}

.status-bar__rhythm {
  flex: none;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--warm-gray-500);
}

@keyframes sp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes sp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 品牌署名 */
.brand {
  position: fixed;
  left: 0;
  top: var(--status-h);
  width: var(--rail-w);
  min-height: var(--brand-h);
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 16px 12px;
  background: var(--ink-800);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand__mark {
  width: 26px;
  height: 3px;
  background: var(--orange-500);
  transform: skewX(-24deg);
}

.brand__text {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--cream-050);
  white-space: nowrap;
}

.brand__sub {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--warm-gray-500);
}

@media (max-width: 1023px) {
  .brand {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: var(--brand-h);
    height: var(--brand-h);
    padding: 0 16px;
    background: transparent;
    border: 0;
  }
  .brand__mark { flex: none; }
  .brand__text { display: flex; align-items: baseline; gap: 8px; font-size: 16px; }
  .brand__sub { display: inline; margin-top: 0; font-size: 10px; }
}

/* 移动端索引按钮 */
.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .nav-toggle {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 58px;
    height: var(--mobile-bar-h);
    z-index: 59;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--orange-500);
    color: var(--text-900);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] {
    background: var(--blue-500);
    color: #fff;
  }
  .nav-toggle__bars {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 18px;
  }
  .nav-toggle__bars i {
    display: block;
    height: 2px;
    background: currentColor;
    transform: skewX(-24deg);
  }
  .nav-toggle__bars i:nth-child(2) { width: 13px; }
  .nav-toggle__text {
    font-size: 9.5px;
    letter-spacing: 0.16em;
  }
}

/* 框架式导航 */
@media (min-width: 1024px) {
  .nav {
    position: fixed;
    left: 0;
    top: calc(var(--status-h) + var(--brand-h));
    bottom: 0;
    width: var(--rail-w);
    z-index: 55;
    display: flex;
    flex-direction: column;
    padding: 10px 0 18px;
    background: var(--ink-800);
    border-right: 1px solid var(--line);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }

  .nav__list { display: flex; flex-direction: column; }

  .nav__link {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 10px 12px 15px;
    color: rgba(245, 239, 227, 0.78);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  }
  .nav__idx {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    color: var(--warm-gray-500);
    transition: color 0.2s var(--ease);
  }
  .nav__label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
  }
  .nav__link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--orange-500);
    transform: translateY(-50%);
    transition: width 0.22s var(--ease);
  }
  .nav__link:hover { color: var(--cream-050); background: rgba(255, 106, 26, 0.07); }
  .nav__link[aria-current="page"] {
    color: var(--cream-050);
    background: rgba(255, 106, 26, 0.1);
  }
  .nav__link[aria-current="page"]::before { width: 12px; }
  .nav__link[aria-current="page"] .nav__idx { color: var(--orange-500); }

  .nav__actions {
    margin-top: auto;
    padding: 16px 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--line);
  }
  .nav__actions .btn { width: 100%; }
}

@media (max-width: 1023px) {
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 58;
    display: flex;
    align-items: stretch;
    padding: 0 58px 0 0;
    max-height: var(--mobile-bar-h);
    overflow: hidden;
    background: var(--ink-950);
    border-top: 1px solid var(--line-strong);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: max-height 0.3s var(--ease);
  }

  .nav__list {
    display: flex;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav__list::-webkit-scrollbar { display: none; }
  .nav__item { flex: none; }

  .nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: var(--mobile-bar-h);
    padding: 6px 13px;
    color: rgba(245, 239, 227, 0.64);
    white-space: nowrap;
    transition: color 0.2s var(--ease);
  }
  .nav__idx { font-size: 9px; letter-spacing: 0.12em; color: var(--warm-gray-500); }
  .nav__label { font-size: 12px; font-weight: 600; }
  .nav__link[aria-current="page"] {
    color: var(--cream-050);
    box-shadow: inset 0 -2px 0 var(--orange-500);
  }
  .nav__link[aria-current="page"] .nav__idx { color: var(--orange-500); }

  .nav__actions { display: none; }

  .nav[data-open] {
    max-height: 82vh;
    flex-direction: column;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    overflow-y: auto;
    background: var(--ink-800);
  }
  .nav[data-open] .nav__list { flex-direction: column; overflow: visible; }
  .nav[data-open] .nav__item { border-bottom: 1px solid var(--line); }
  .nav[data-open] .nav__link {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 14px;
    height: auto;
    padding: 15px 22px;
    color: rgba(245, 239, 227, 0.86);
  }
  .nav[data-open] .nav__idx { font-size: 10px; }
  .nav[data-open] .nav__label { font-size: 15px; }
  .nav[data-open] .nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange-500); }
  .nav[data-open] .nav__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 22px 26px;
  }
}

/* ------------------------------ buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange-500); color: var(--text-900); }
.btn--primary:hover { background: var(--orange-600); color: var(--cream-050); }
.btn--blue { background: var(--blue-500); color: #fff; }
.btn--blue:hover { background: var(--blue-800); }
.btn--ghost {
  background: transparent;
  color: var(--cream-050);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--orange-500); color: var(--orange-500); }
.btn--sm { padding: 9px 10px; font-size: 12px; font-weight: 600; }

/* ------------------------------ site footer ---------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  padding: 72px 0 44px;
  background: var(--ink-950);
  border-top: 1px solid var(--line-strong);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(245, 239, 227, 0.03) 0 1px, transparent 1px 10px);
}

.footer__slash {
  position: absolute;
  top: 0;
  right: -6%;
  width: 58%;
  max-width: 680px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(46, 107, 255, 0.14), rgba(16, 48, 122, 0) 72%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.footer__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 26px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer__brand { display: inline-flex; flex-direction: column; gap: 8px; }

.footer__brand-mark {
  width: 34px;
  height: 3px;
  background: var(--orange-500);
  transform: skewX(-24deg);
}

.footer__brand-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.footer__brand-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--warm-gray-500);
}

.footer__tagline {
  font-size: 13.5px;
  color: rgba(245, 239, 227, 0.7);
  letter-spacing: 0.04em;
}

.footer__status {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--warm-gray-500);
}

.footer__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-400);
  box-shadow: 0 0 8px rgba(69, 245, 163, 0.7);
  animation: sp-pulse 2.4s ease-in-out infinite;
}

.footer__sep { color: rgba(226, 215, 195, 0.28); }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 42px 0 34px;
}

.footer__col-title {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--warm-gray-500);
}

.footer__links li + li { margin-top: 10px; }

.footer__links a {
  font-size: 14px;
  color: rgba(245, 239, 227, 0.78);
  transition: color 0.2s var(--ease);
}
.footer__links a:hover { color: var(--orange-500); }

.footer__contact {
  font-size: 13px;
  color: var(--warm-gray-500);
  line-height: 2;
}

.footer__email {
  display: inline;
  padding: 1px 0;
  font-size: 12.5px;
  color: var(--cream-050);
  text-align: left;
  word-break: break-all;
  border-bottom: 1px dashed rgba(226, 215, 195, 0.42);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__email:hover { color: var(--orange-500); border-color: var(--orange-500); }
.footer__email.is-copied { color: var(--neon-400); border-color: var(--neon-400); }

.footer__tel {
  font-size: 15px;
  font-weight: 600;
  color: var(--orange-500);
  letter-spacing: 0.04em;
}

.footer__note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--warm-gray-500);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.footer__address {
  font-size: 13px;
  color: rgba(245, 239, 227, 0.62);
}

.footer__legal {
  max-width: 62ch;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--warm-gray-500);
}

.footer__icp {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: var(--warm-gray-500);
}

.footer__copy { color: rgba(138, 127, 114, 0.8); }

/* ------------------------------ breadcrumb ----------------------------- */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warm-gray-500);
}

.breadcrumb__link {
  color: rgba(245, 239, 227, 0.7);
  transition: color 0.2s var(--ease);
}
.breadcrumb__link:hover { color: var(--orange-500); }

.breadcrumb__sep { color: rgba(226, 215, 195, 0.3); }

.section--cream .breadcrumb { border-color: var(--paper-200); }
.section--cream .breadcrumb__item { color: rgba(20, 17, 14, 0.5); }
.section--cream .breadcrumb__link { color: rgba(20, 17, 14, 0.72); }
.section--cream .breadcrumb__link:hover { color: var(--orange-600); }
.section--cream .breadcrumb__sep { color: rgba(20, 17, 14, 0.3); }

/* ------------------------------ layout --------------------------------- */
.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

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

.section { position: relative; padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--ink { background: var(--ink-800); }
.section--blue { background: var(--blue-800); color: var(--cream-050); }
.section--cream {
  background: var(--cream-050);
  color: var(--text-900);
}
.section--cream p { color: rgba(20, 17, 14, 0.78); }
.section--cream h1,
.section--cream h2,
.section--cream h3 { color: var(--text-900); }

@media (max-width: 1023px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 44px 0; }
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
}

.divider {
  height: 1px;
  background: var(--line);
}
.divider--slash {
  height: 6px;
  background: repeating-linear-gradient(-24deg, var(--orange-500) 0 6px, transparent 6px 15px);
}

/* ------------------------------ grid ----------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--asym { grid-template-columns: 1fr; }
}

/* ------------------------------ typography ----------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--orange-500);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange-500);
  transform: skewX(-24deg);
}
.section--cream .eyebrow { color: var(--orange-600); }
.section--cream .eyebrow::before { background: var(--orange-600); }

.lede {
  max-width: 34em;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.8;
  color: rgba(245, 239, 227, 0.82);
}
.section--cream .lede { color: rgba(20, 17, 14, 0.75); }

.prose { max-width: 38em; line-height: 1.85; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2em;
}
.prose h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 1.8em;
}
.prose li {
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background: var(--orange-500);
  transform: skewX(-24deg);
}
.prose a { color: var(--blue-500); border-bottom: 1px solid rgba(46, 107, 255, 0.4); }
.section--cream .prose a { color: var(--orange-600); border-color: rgba(217, 78, 6, 0.4); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-500);
  border-bottom: 1px solid rgba(255, 106, 26, 0.42);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-more::after { content: "→"; font-family: var(--font-mono); }
.link-more:hover { color: var(--orange-600); border-color: var(--orange-600); }
.section--cream .link-more { color: var(--orange-600); border-color: rgba(217, 78, 6, 0.42); }

/* ------------------------------ panels --------------------------------- */
.panel {
  position: relative;
  padding: 28px 26px;
  background: var(--ink-800);
  color: var(--cream-050);
}
.panel--cut {
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.panel--cream { background: var(--cream-050); color: var(--text-900); }
.panel--blue { background: var(--blue-800); }
.panel__label {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--orange-500);
}
.panel__title {
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.panel--cream .panel__label { color: var(--orange-600); }
.panel--cream .panel__title { color: var(--text-900); }

/* ------------------------------ tags & notice -------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(245, 239, 227, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.tag--live { color: var(--neon-400); border-color: rgba(69, 245, 163, 0.5); }
.tag--blue { color: #8FB2FF; border-color: rgba(46, 107, 255, 0.6); }
.tag--amber { color: var(--amber-500); border-color: rgba(255, 176, 32, 0.6); }

.notice {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 239, 227, 0.9);
  background: rgba(255, 176, 32, 0.1);
  border-left: 3px solid var(--amber-500);
}
.section--cream .notice { color: rgba(20, 17, 14, 0.86); background: rgba(255, 176, 32, 0.16); }

/* ------------------------------ stats ---------------------------------- */
.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--orange-500);
}
.stat__label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--warm-gray-500);
}

/* ------------------------------ media frame ---------------------------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-800);
}
.media-frame img,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245, 239, 227, 0.86);
  background: linear-gradient(180deg, rgba(15, 13, 11, 0), rgba(15, 13, 11, 0.88));
}

/* ------------------------------ table ---------------------------------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--warm-gray-500);
}
.table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.section--cream .table th,
.section--cream .table td { border-color: var(--paper-200); }

/* ------------------------------ chapter index -------------------------- */
.index-follow {
  position: sticky;
  top: calc(var(--status-h) + 40px);
  font-family: var(--font-mono);
  font-size: 12px;
}
.index-follow__list { display: flex; flex-direction: column; gap: 2px; }
.index-follow__link {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 7px 0 7px 15px;
  letter-spacing: 0.04em;
  color: var(--warm-gray-500);
  transition: color 0.2s var(--ease);
}
.index-follow__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--orange-500);
  transform: translateY(-50%);
  transition: width 0.22s var(--ease);
}
.index-follow__link:hover { color: var(--cream-050); }
.index-follow__link[aria-current="true"] { color: var(--cream-050); }
.index-follow__link[aria-current="true"]::before { width: 9px; }

/* ------------------------------ back to top ---------------------------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(27, 22, 19, 0.92);
  border: 1px solid var(--line-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s var(--ease), border-color 0.2s var(--ease);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { border-color: var(--orange-500); }
.back-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.back-top__track { fill: none; stroke: rgba(226, 215, 195, 0.18); stroke-width: 2; }
.back-top__ring {
  fill: none;
  stroke: var(--orange-500);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
}
.back-top__arrow {
  position: relative;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--cream-050);
  border-left: 2px solid var(--cream-050);
  transform: translateY(3px) rotate(45deg);
}

@media (max-width: 1023px) {
  .back-top { right: 14px; bottom: calc(var(--mobile-bar-h) + 16px); width: 46px; height: 46px; }
  .index-follow { position: static; }
}

/* ------------------------------ reveal --------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------ motion prefs --------------------------- */
@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;
  }
  .status-bar__track { animation: none !important; transform: none !important; }
  .status-bar__pulse,
  .footer__dot { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
