/* ============================================================
   杏彩体育 · beyond-xingcai.com.cn
   共享外壳样式 /assets/site.css
   语汇：夜色赛场控制台 —— 墨绿底 / 玻璃层 / 杏橙信号 / 等宽读数
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --night: #071A16;
  --console: #0B0D0C;
  --glass: #12332B;
  --signal: #FF8A3D;
  --signal-soft: #FFB27A;
  --paper: #F4F7F5;
  --mist: #9FB4BE;
  --steel: #5E7C88;
  --data: #4ED6A8;
  --amber: #F5C15C;

  --line: rgba(94, 124, 136, 0.34);
  --line-soft: rgba(94, 124, 136, 0.18);
  --line-signal: rgba(255, 138, 61, 0.38);
  --field: rgba(255, 255, 255, 0.04);

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --shell: 1320px;
  --gutter: clamp(18px, 4.5vw, 64px);
  --header-h: 76px;
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button { font: inherit; color: inherit; }

/* ---------- 3. 中文排版基线 ---------- */
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.5rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }

p { margin: 0 0 1.1em; max-width: 34em; }

a {
  color: var(--signal-soft);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--signal); }

strong { color: var(--paper); font-weight: 700; }

::selection { background: rgba(255, 138, 61, 0.28); color: var(--paper); }

/* 焦点环 —— 键盘与鼠标状态都可辨 */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--signal-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.shell--narrow {
  width: min(780px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 30px);
}
.grid-12 > * { grid-column: 1 / -1; }

@media (min-width: 960px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* ---------- 5. 通用文字件 ---------- */
.rail-label {
  margin: 0 0 0.9em;
  max-width: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

.index-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.data-figure {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--paper);
}

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

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: #08130F;
}
.btn--signal:hover {
  background: var(--signal-soft);
  border-color: var(--signal-soft);
  color: #08130F;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-signal);
  color: var(--signal);
}
.btn--ghost:hover {
  background: rgba(255, 138, 61, 0.12);
  border-color: var(--signal);
  color: var(--signal-soft);
}

.btn:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--steel);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--steel);
  opacity: 0.6;
}
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--signal); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 8. 内容与卡片件 ---------- */
.prose {
  max-width: 34em;
  font-size: clamp(15px, 1.02vw, 16.5px);
  line-height: 1.9;
  color: #DCE6E2;
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.prose h3 { margin-top: 1.7em; }
.prose ul,
.prose ol { margin: 0 0 1.1em; padding-left: 1.15em; }
.prose li { margin-bottom: 0.45em; max-width: 32em; }
.prose li::marker { color: var(--signal); }
.prose a {
  color: var(--signal-soft);
  text-decoration: underline;
  text-decoration-color: rgba(255, 138, 61, 0.45);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--signal); }
.prose blockquote {
  margin: 1.6em 0;
  padding-left: 1.05em;
  border-left: 2px solid var(--signal);
  color: var(--mist);
}

.exhibit-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  background: rgba(255, 138, 61, 0.07);
  border: 1px solid var(--line-signal);
  border-radius: 1px;
}
.exhibit-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--signal);
  border-radius: 50%;
}

.glass-panel {
  background: linear-gradient(155deg, rgba(18, 51, 43, 0.92), rgba(18, 51, 43, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.plate {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  background: rgba(11, 13, 12, 0.72);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
}
.plate p:last-child,
.plate ul:last-child { margin-bottom: 0; }

.notice {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #F0DFB6;
  background: rgba(245, 193, 92, 0.07);
  border: 1px solid rgba(245, 193, 92, 0.35);
  border-radius: var(--radius);
}
.notice p { max-width: none; margin: 0; }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--data);
  box-shadow: 0 0 0 3px rgba(78, 214, 168, 0.16);
}

/* ---------- 9. 响应式图片容器（页面阶段放置图片） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 26, 22, 0) 45%, rgba(7, 26, 22, 0.72) 100%);
}
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

/* ---------- 10. 顶部命令栏 ---------- */
.skip-link {
  position: absolute;
  left: clamp(12px, 3vw, 32px);
  top: 0;
  z-index: 120;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #08130F;
  background: var(--signal);
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  color: #08130F;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--paper);
  background: rgba(7, 26, 22, 0.82);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(7, 26, 22, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}
.site-header[data-open="true"] {
  background: rgba(7, 26, 22, 0.99);
  border-bottom-color: var(--line-signal);
}

.header-inner {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  min-height: var(--header-h);
  margin-inline: auto;
  padding-block: 10px;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
}

/* 品牌锁定 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  padding-block: 4px;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--paper); }

.brand-mark {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid var(--signal);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.1);
  transition: box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--signal);
}
.brand:hover .brand-mark {
  border-color: var(--signal-soft);
  box-shadow: 0 0 0 5px rgba(255, 138, 61, 0.2);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: color 0.18s var(--ease);
}
.brand:hover .brand-name { color: var(--signal-soft); }
.brand-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--mist);
}

.header-descriptor {
  margin: 0;
  max-width: none;
  padding-left: clamp(12px, 1.6vw, 22px);
  border-left: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}

/* 主导航 */
.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 20px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0px, 0.6vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { min-width: 0; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 10px 11px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--mist);
  border-radius: 2px;
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}
.nav-link:hover {
  color: var(--paper);
  background: var(--field);
}
.nav-link:hover .nav-index { color: var(--signal-soft); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--paper); }
.nav-link[aria-current="page"] .nav-index { color: var(--signal); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
  transition: color 0.18s var(--ease);
}

.nav-foot { display: none; }
.nav-foot-note {
  margin: 0 0 12px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.header-cta {
  flex: none;
  margin-left: clamp(6px, 1vw, 14px);
}

/* 移动索引按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: rgba(18, 51, 43, 0.7);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover {
  background: rgba(18, 51, 43, 0.95);
  border-color: var(--line-signal);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: none;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--signal);
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars span:nth-child(3) { bottom: 0; }

.site-header[data-open="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(4.25px) rotate(45deg);
}
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-4.25px) rotate(-45deg);
}

/* 滚动进度光带 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--signal), var(--signal-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

/* 中部断点：收起副标语 */
@media (max-width: 1200px) {
  .header-descriptor { display: none; }
}

/* 移动抽屉 */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter) clamp(20px, 4vw, 32px);
    background: linear-gradient(180deg, rgba(9, 26, 22, 0.99), rgba(7, 26, 22, 0.99));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-header[data-open="true"] .primary-nav { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }
  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 4px;
    font-size: 15px;
    letter-spacing: 0.02em;
    background: transparent;
  }
  .nav-link::after {
    left: 4px;
    right: auto;
    width: 22px;
    bottom: 9px;
  }

  .nav-foot { display: block; padding-top: 18px; }
  .nav-foot .btn { width: 100%; }

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

/* ---------- 11. 页脚台账 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 9vw, 120px);
  color: var(--mist);
  background: var(--console);
  border-top: 1px solid var(--line-signal);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(440px, 62%);
  height: 1px;
  background: linear-gradient(90deg, var(--signal), transparent);
}

.footer-inner {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 76px) clamp(24px, 3vw, 34px);
}

.footer-ledger {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  padding-bottom: clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  margin: 0;
  max-width: none;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--paper);
}

.footer-summary {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist);
}

@media (min-width: 900px) {
  .footer-ledger {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(24px, 4vw, 64px);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 40px);
  padding-block: clamp(26px, 4vw, 44px);
}

.footer-col { min-width: 0; }
.footer-col-contact { grid-column: 1 / -1; }

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-col-contact { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.7fr);
    gap: clamp(28px, 3vw, 52px);
  }
  .footer-col-contact { grid-column: auto; }
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}
.footer-col-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--signal);
  flex: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}
.footer-link:hover {
  color: var(--paper);
  border-bottom-color: var(--signal);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.contact-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.contact-key {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.contact-value {
  margin: 0;
  max-width: none;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-note {
  margin: 0;
  max-width: 42ch;
  font-size: 12px;
  line-height: 1.8;
  color: var(--steel);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(14px, 3vw, 32px);
  padding-top: clamp(16px, 2.4vw, 24px);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
}
.footer-base p { margin: 0; max-width: none; }
.footer-icp { color: var(--mist); }
.footer-copy { color: var(--steel); }

@media (min-width: 760px) {
  .footer-copy { margin-left: auto; }
}

/* ---------- 12. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

@media (scripting: none) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 13. 减少动态偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .nav-link:hover::after { transform: scaleX(0); }
  .nav-link[aria-current="page"]::after { transform: scaleX(1); }
}
