/* ============================================================
   看台登录入口 · 共享样式表 /assets/site.css
   深色看台 + 暖纸数据板 · 切角面板 · 6 度斜线母题
   ============================================================ */

/* ---------- 1. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
table { border-collapse: collapse; border-spacing: 0; }
main { display: block; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 场馆色 */
  --c-ink: #07130F;
  --c-night: #0D1B2A;
  --c-turf: #123024;
  --c-paper: #E8E1CF;
  --c-paper-hi: #F4F0E5;
  --c-ink-2: #171812;
  --c-mint: #45E0AE;
  --c-mint-deep: #0E7A57;
  --c-sub: #FF8A3C;
  --c-pen: #FF4D4D;
  --c-mute: #8FA79C;

  /* 线条 */
  --line-dark: rgba(143, 167, 156, .22);
  --line-soft: rgba(143, 167, 156, .12);
  --line-mint: rgba(69, 224, 174, .34);

  /* 几何与节奏 */
  --cut: 14px;
  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --stack-s: 16px;
  --stack-m: 32px;

  /* 字体 */
  --font-display: "Archivo Narrow", "Oswald", "Helvetica Neue", Arial,
    "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, "Noto Sans SC",
    "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  background-color: var(--c-ink);
  background-image:
    linear-gradient(180deg, rgba(18, 48, 36, .55) 0%, rgba(7, 19, 15, 0) 420px);
  color: var(--c-paper-hi);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.14;
}
h1 { font-size: clamp(38px, 5.6vw, 82px); }
h2 { font-size: clamp(26px, 3.2vw, 44px); }
h3 { font-size: clamp(20px, 2.1vw, 27px); }

::selection { background: var(--c-mint); color: var(--c-ink); }

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

/* ---------- 4. 容器与栅格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.flow > * + * { margin-top: clamp(16px, 2.2vw, 28px); }
.offset-s { margin-top: var(--stack-s); }
.offset-m { margin-top: var(--stack-m); }

.divider {
  height: 1px;
  border: 0;
  background: var(--line-dark);
}
.divider--slash {
  height: 14px;
  background: linear-gradient(90deg, var(--c-mint) 0%, rgba(69, 224, 174, .28) 46%, rgba(69, 224, 174, 0) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 3px, 0 100%);
}

@media (max-width: 1000px) {
  .col-7, .col-8 { grid-column: span 12; }
  .col-4, .col-5 { grid-column: span 6; }
  .col-6 { grid-column: span 12; }
}
@media (max-width: 640px) {
  .col-4, .col-5, .col-6 { grid-column: span 12; }
  .offset-s, .offset-m { margin-top: 0; }
}

/* ---------- 5. 章节画板 ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); position: relative; }
.section--ink { background: var(--c-ink); color: var(--c-paper-hi); }
.section--night { background: var(--c-night); color: var(--c-paper-hi); }
.section--turf { background: var(--c-turf); color: var(--c-paper-hi); }
.section--paper { background: var(--c-paper); color: var(--c-ink-2); }

.texture-turf {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(244, 240, 229, .035) 0 44px,
    rgba(244, 240, 229, 0) 44px 88px
  );
}

/* ---------- 6. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: var(--gutter);
  z-index: 200;
  padding: 11px 20px;
  background: var(--c-mint);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: top .18s ease;
}
.skip-link:focus { top: 10px; }

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--c-ink);
  border-bottom: 1px solid var(--line-dark);
}

/* 7.1 上层品牌说明行 */
.brand-rail {
  background: var(--c-night);
  border-bottom: 1px solid rgba(69, 224, 174, .16);
  overflow: hidden;
  max-height: 60px;
  transition: max-height .24s ease, opacity .24s ease, border-color .24s ease;
}
.site-header[data-scrolled="true"] .brand-rail {
  max-height: 0;
  opacity: 0;
  border-color: transparent;
}
.brand-rail__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  padding-block: 11px;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .08em;
  color: var(--c-mute);
}
.brand-rail__name {
  color: var(--c-paper-hi);
  font-weight: 600;
  letter-spacing: .06em;
}
.brand-rail__name::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  vertical-align: 1px;
  background: var(--c-mint);
  transform: rotate(45deg);
}
.brand-rail__geo { margin-left: auto; }

/* 7.2 下层栏目行 */
.nav-bar { background: var(--c-ink); }
.nav-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-block: 9px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--c-paper-hi);
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand::before {
  content: "";
  width: 9px;
  height: 24px;
  background: var(--c-mint);
  clip-path: polygon(62% 0, 100% 0, 38% 100%, 0 100%);
}
.nav-brand:hover { color: var(--c-mint); }

/* 7.3 栏目标签 */
.site-nav { display: flex; margin-left: auto; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nav-list__item { display: flex; }
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px 11px;
  color: var(--c-paper);
  font-size: 15px;
  text-decoration: none;
  background: rgba(13, 27, 42, .5);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.nav-link__num {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--c-mute);
}
.nav-link__label { white-space: nowrap; }
.nav-link:hover {
  transform: translateY(-2px);
  background: rgba(69, 224, 174, .10);
  color: var(--c-paper-hi);
  box-shadow: inset 0 -2px 0 var(--line-mint);
}
.nav-link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--c-mint), inset 0 -2px 0 var(--c-mint);
}
.nav-link[aria-current="page"] {
  background: rgba(69, 224, 174, .15);
  color: var(--c-paper-hi);
  box-shadow: inset 0 -2px 0 var(--c-mint);
}
.nav-link[aria-current="page"] .nav-link__num { color: var(--c-mint); }

/* 7.4 移动开关 */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid var(--line-dark);
  background: rgba(13, 27, 42, .75);
  color: var(--c-paper);
  font-size: 14px;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.nav-toggle:hover { border-color: var(--line-mint); color: var(--c-paper-hi); }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--c-mint);
  background: rgba(69, 224, 174, .14);
  color: var(--c-paper-hi);
}
.nav-toggle:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--c-mint); }
.nav-toggle__bars {
  width: 18px;
  height: 12px;
  background: linear-gradient(
    to bottom,
    var(--c-mint) 0 2px, transparent 2px 5px,
    var(--c-mint) 5px 7px, transparent 7px 10px,
    var(--c-mint) 10px 12px
  );
}
.nav-toggle__text { letter-spacing: .08em; }

/* 7.5 阅读进度条 */
.scroll-progress {
  height: 3px;
  background: rgba(69, 224, 174, .10);
  overflow: hidden;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-mint) 0%, var(--c-mint) 70%, var(--c-sub) 100%);
}

/* 7.6 移动端导航形态 */
@media (max-width: 900px) {
  .site-nav {
    width: 100%;
    margin-left: 0;
    order: 3;
  }
  .nav-list { gap: 4px; }
  .js-ready .nav-toggle { display: inline-flex; }
  .js-ready .site-nav {
    display: none;
    border-top: 1px solid var(--line-dark);
    margin-top: 4px;
    padding-top: 8px;
  }
  .js-ready .site-nav[data-open="true"] { display: block; }
  .js-ready .nav-list { flex-direction: column; gap: 2px; padding-bottom: 6px; }
  .js-ready .nav-link { width: 100%; padding: 12px 14px; }
  .js-ready .nav-list__item { display: block; }
  .site-header[data-scrolled="true"] .brand-rail {
    max-height: 60px;
    opacity: 1;
    border-color: rgba(69, 224, 174, .16);
  }
  .brand-rail__geo { margin-left: 0; }
}
@media (max-width: 520px) {
  .brand-rail__nature { display: none; }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 84px);
  background: var(--c-night);
  color: var(--c-paper);
  border-top: 1px solid var(--line-dark);
}
.footer-rule {
  height: 14px;
  background: linear-gradient(90deg, var(--c-mint) 0%, rgba(69, 224, 174, .3) 44%, rgba(69, 224, 174, 0) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 2px, 0 100%);
}
.footer-inner { padding-block: clamp(32px, 4.6vw, 60px) clamp(24px, 3vw, 38px); }

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding-bottom: clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--c-paper-hi);
}
.footer-brand__line {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-mute);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-top: clamp(22px, 3vw, 34px);
}
.footer-block__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--c-mint);
  margin-bottom: 14px;
}
.footer-block__title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 2px;
  margin-right: 8px;
  vertical-align: 3px;
  background: var(--c-mint);
}
.footer-links li + li { margin-top: 10px; }
.footer-link {
  font-size: 15px;
  color: var(--c-paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease;
}
.footer-link:hover {
  color: var(--c-mint);
  border-bottom-color: var(--line-mint);
}
.footer-contact {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-mute);
}
.footer-contact li { padding-left: 12px; position: relative; }
.footer-contact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 5px;
  height: 5px;
  background: var(--c-turf);
  transform: rotate(45deg);
}

.footer-closing {
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.85;
  color: var(--c-mute);
}

.footer-base {
  background: var(--c-ink);
  border-top: 1px solid var(--line-soft);
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding-block: 16px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-mute);
}

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

/* ---------- 9. 通用文字组件 ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.label--accent { color: var(--c-mint); }
.label--rule::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .01em;
  color: var(--c-mint);
}
.num--ink { color: var(--c-ink-2); }
.section--paper .num,
.panel--paper .num { color: var(--c-ink-2); }

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose a { color: var(--c-mint); text-underline-offset: 3px; }
.section--paper .prose a,
.panel--paper .prose a { color: var(--c-mint-deep); }
.prose strong { font-weight: 600; }

.signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .06em;
}
.signal::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: currentColor;
  transform: rotate(45deg);
}
.signal--data { color: var(--c-mint); }
.signal--sub { color: var(--c-sub); }
.signal--pen { color: var(--c-pen); }

/* ---------- 10. 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: rgba(13, 27, 42, .74);
  border: 1px solid var(--line-dark);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.panel--paper {
  background: var(--c-paper);
  color: var(--c-ink-2);
  border-color: rgba(23, 24, 18, .16);
}
.panel--turf {
  background: var(--c-turf);
  border-color: var(--line-soft);
}
.panel--flat {
  background: transparent;
  border-color: transparent;
}
.panel--lift { transition: transform .18s ease, box-shadow .18s ease; }
.panel--lift:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--line-mint);
}

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line-mint);
  background: rgba(69, 224, 174, .07);
  color: var(--c-mint);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: rgba(69, 224, 174, .16);
  color: var(--c-paper-hi);
}
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--c-mint); }
.btn--solid {
  background: var(--c-mint);
  border-color: var(--c-mint);
  color: var(--c-ink);
}
.btn--solid:hover { background: #63E9C0; color: var(--c-ink); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--c-paper);
}
.btn--ghost:hover { border-color: var(--line-mint); color: var(--c-paper-hi); }
.btn--paper {
  background: transparent;
  border-color: rgba(23, 24, 18, .42);
  color: var(--c-ink-2);
}
.btn--paper:hover { background: rgba(23, 24, 18, .07); color: var(--c-ink-2); }

/* ---------- 12. 面包屑 ---------- */
.breadcrumbs { padding-top: 18px; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-mute);
}
.breadcrumbs__list li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs__list li + li::before {
  content: "/";
  color: rgba(143, 167, 156, .55);
}
.breadcrumbs a { color: var(--c-mute); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-mint); }
.breadcrumbs [aria-current="page"] { color: var(--c-paper-hi); }
.section--paper .breadcrumbs [aria-current="page"] { color: var(--c-ink-2); }
.section--paper .breadcrumbs__list { color: #6C7263; }
.section--paper .breadcrumbs a { color: #6C7263; }

/* ---------- 13. 数据表 ---------- */
.table {
  width: 100%;
  font-size: 14px;
}
.table caption {
  text-align: left;
  padding-bottom: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--c-mute);
}
.table th,
.table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
}
.table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.table td.num,
.table th.num { text-align: right; }
.section--paper .table th,
.section--paper .table td { border-bottom-color: rgba(23, 24, 18, .16); }
.section--paper .table th { color: #5C6152; }

/* ---------- 14. 标签页 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tab {
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  color: var(--c-paper);
  background: rgba(13, 27, 42, .68);
  border: 1px solid var(--line-dark);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.tab:hover { background: rgba(69, 224, 174, .10); color: var(--c-paper-hi); }
.tab[aria-selected="true"] {
  background: rgba(69, 224, 174, .16);
  border-color: var(--line-mint);
  color: var(--c-paper-hi);
  box-shadow: inset 0 -2px 0 var(--c-mint);
}
.tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--c-mint); }
.tab-panel { padding-top: clamp(14px, 2vw, 22px); }
.tab-panel[hidden] { display: none; }

/* ---------- 15. 图片容器 ---------- */
.figure { margin: 0; }
.frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, var(--c-turf) 0%, var(--c-night) 100%);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.frame > img,
.frame > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(69, 224, 174, .16) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(69, 224, 174, .11) 0 1px, transparent 1px 44px);
}
.frame--wide { aspect-ratio: 21 / 9; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--square { aspect-ratio: 1 / 1; }
.figure__caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-mute);
}

/* ---------- 16. 滚动渐显 ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease;
}
.js-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 17. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .nav-link:hover,
  .panel--lift:hover,
  .btn:hover { transform: none; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 96px; }
}
