/* ===========================================================
   九游赛场 · 共享站点样式  /assets/site.css
   夜场墨绿底 + 荧光橙灯带 + 电光蓝数据
   =========================================================== */

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

* { margin: 0; }

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

body { min-height: 100dvh; }

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

a { color: inherit; }

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

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

h1, h2, h3, h4, h5 { line-height: 1.12; font-weight: 900; }

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

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #0A1C17;
  --ink-2: #102A22;
  --ink-3: #143026;
  --line: #1C4638;

  --orange: #FF6A1A;
  --orange-soft: #FFA45C;
  --blue: #2FD4FF;
  --violet: #6C5CFF;

  --snow: #F2F6F3;
  --muted: #9BB0A6;
  --paper: #E9F1EC;

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", "Roboto Mono", ui-monospace, monospace;

  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --rail-w: 236px;
  --rail-w-sm: 84px;
  --gutter: clamp(18px, 4vw, 48px);
  --max-w: 1180px;

  --ease: cubic-bezier(.3, .7, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background:
    radial-gradient(115% 70% at 82% -8%, rgba(47, 212, 255, .075), transparent 58%),
    radial-gradient(85% 55% at 6% 108%, rgba(255, 106, 26, .07), transparent 62%),
    var(--ink);
  background-attachment: fixed;
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.75;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(2.1rem, 6.2vw, 5.5rem);
  line-height: .98;
  font-weight: 900;
}

.h1 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
.h2 { font-size: clamp(1.35rem, 2.8vw, 2.15rem); }
.h3 { font-size: clamp(1.05rem, 1.8vw, 1.4rem); letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
  color: #C7D6CE;
  max-width: 34em;
}

.muted { color: var(--muted); }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 14px;
  z-index: 999;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--orange);
  color: #1A0E06;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: top .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 14px; }

/* ---------- 5. 头部：框架式导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: rgba(16, 42, 34, .96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rail {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 4px 6px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--snow);
  flex: 0 0 auto;
  transition: background .16s var(--ease);
}

.brand:hover { background: rgba(255, 255, 255, .04); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orange) 0%, #FF9A4D 100%);
  color: #17100A;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .06em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .32em;
  color: var(--muted);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 导航按钮 */
.rail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-inline-start: auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}

.rail-toggle:hover {
  border-color: var(--orange);
  color: var(--orange-soft);
}

.rail-toggle__lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.rail-toggle__lines i {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}

.site-header[data-open] .rail-toggle__lines i:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open] .rail-toggle__lines i:last-child { transform: translateY(-3px) rotate(-45deg); }

.rail-toggle__label {
  font-size: 12.5px;
  letter-spacing: .14em;
}

/* 移动端下拉面板 */
.rail-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100dvh - 62px);
  padding: 16px 16px 24px;
  overflow-y: auto;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 46px rgba(0, 0, 0, .5);
}

.site-header[data-open] .rail-panel { display: flex; }

/* 导航列表 */
.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-nav__item { min-width: 0; }

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .03em;
  transition: color .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
}

.site-nav__link:hover {
  color: var(--snow);
  background: rgba(255, 255, 255, .035);
  border-color: var(--line);
}

.site-nav__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--orange-soft);
  opacity: .85;
  flex: 0 0 auto;
}

.site-nav__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 当前项：橙色灯带 */
.site-nav__link[aria-current="page"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0E06;
  font-weight: 700;
  box-shadow: 0 12px 26px -16px rgba(255, 106, 26, .95);
}

.site-nav__link[aria-current="page"] .site-nav__num { color: rgba(26, 14, 6, .62); }

.site-nav__link[aria-current="page"]:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
  color: #1A0E06;
}

/* 底部入口 */
.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--orange) 0%, #FF8A3D 100%);
  color: #1A0E06;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}

.cta-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 30px -18px rgba(255, 106, 26, .95);
}

.rail-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--muted);
  text-align: center;
}

/* 阅读进度 */
.rail-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  transform: scaleX(var(--rail-progress, 0));
  transform-origin: left center;
  pointer-events: none;
  opacity: .95;
}

/* ---------- 6. 桌面 / 平板：竖向侧轨 ---------- */
@media (min-width: 900px) {
  html[data-rail="collapsed"] { --rail-w: var(--rail-w-sm); }

  body {
    padding-inline-start: var(--rail-w);
    transition: padding-inline-start .22s var(--ease);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--rail-w);
    height: 100dvh;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: var(--ink-2);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: width .22s var(--ease);
  }

  .rail {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    height: 100%;
    padding: 22px 14px 18px;
  }

  .rail-toggle {
    margin-inline-start: 0;
    justify-content: center;
    width: 100%;
  }

  .rail-panel {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav { flex: 1 1 auto; min-height: 0; }

  .rail-progress {
    left: auto;
    right: 0;
    bottom: auto;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--orange), var(--blue));
    transform: scaleY(var(--rail-progress, 0));
    transform-origin: top center;
  }

  /* 折叠态 */
  html[data-rail="collapsed"] .brand { justify-content: center; padding-inline: 0; }
  html[data-rail="collapsed"] .brand__text { display: none; }
  html[data-rail="collapsed"] .rail-toggle__label { display: none; }
  html[data-rail="collapsed"] .rail-toggle { padding-inline: 0; }
  html[data-rail="collapsed"] .site-nav__label { display: none; }
  html[data-rail="collapsed"] .site-nav__link { justify-content: center; padding-inline: 0; gap: 0; }
  html[data-rail="collapsed"] .site-nav__num {
    font-size: 13px;
    letter-spacing: .06em;
    opacity: 1;
  }
  html[data-rail="collapsed"] .rail-foot { display: none; }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0 26px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--violet) 42%, transparent 78%);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.footer__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .05em;
  color: var(--snow);
  line-height: 1.2;
}

.footer__tag {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 22em;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 26px 22px;
}

.footer__col { min-width: 0; }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--orange-soft);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__link {
  position: relative;
  display: inline-block;
  padding-block: 3px;
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  transition: color .16s var(--ease);
}

.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible { color: var(--snow); }

.footer__link:hover::after,
.footer__link:focus-visible::after { transform: scaleX(1); }

/* 纸白反白块 */
.footer__contact {
  position: relative;
  overflow: hidden;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
}

.footer__contact::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--orange), var(--blue));
}

.footer__contact-line {
  font-size: 13px;
  line-height: 1.85;
  color: #12271F;
  letter-spacing: .01em;
  word-break: break-word;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__legal-line { min-width: 0; }

@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr);
    column-gap: 56px;
  }

  .footer__contact,
  .footer__legal { grid-column: 1 / -1; }
}

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

.section { padding-block: clamp(36px, 5.5vw, 84px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 26px;
  margin-bottom: clamp(18px, 3vw, 34px);
}

.rule {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line);
}

.slash {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
}

/* ---------- 9. 注释与展签 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .4em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--orange-soft);
}

.eyebrow--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .42em;
}

.exhibit-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- 10. 按钮与胶囊 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #1A0E06;
}

.btn--primary:hover {
  background: var(--orange-soft);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -20px rgba(255, 106, 26, .95);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--snow);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange-soft);
}

.btn--data {
  background: rgba(47, 212, 255, .12);
  border-color: rgba(47, 212, 255, .42);
  color: var(--blue);
}

.btn--data:hover {
  background: rgba(47, 212, 255, .2);
  border-color: var(--blue);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}

.pill:hover,
.pill[aria-selected="true"] {
  border-color: var(--orange);
  color: var(--snow);
  background: rgba(255, 106, 26, .1);
}

.pill--data:hover,
.pill--data[aria-selected="true"] {
  border-color: var(--blue);
  background: rgba(47, 212, 255, .12);
  color: var(--blue);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .16s var(--ease);
}

.breadcrumb a:hover { color: var(--orange-soft); }

.breadcrumb__sep {
  color: var(--line);
  user-select: none;
}

.breadcrumb [aria-current="page"] { color: var(--snow); }

/* ---------- 12. 卡片与网格 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-2);
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}

.card:hover {
  border-color: rgba(255, 106, 26, .55);
  background: var(--ink-3);
  transform: translateY(-2px);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---------- 13. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(140deg, rgba(47, 212, 255, .1), transparent 54%),
    linear-gradient(320deg, rgba(255, 106, 26, .12), transparent 58%),
    var(--ink-3);
}

.media > img,
.media > picture > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }
.media--round { border-radius: var(--r-lg); }

.media__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 28, 23, .82);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
}

/* ---------- 14. 启动 ---------- */
@media (max-width: 899px) {
  body { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
