/* ==========================================================================
   顶盛体育VIP · 共享样式表 /assets/site.css
   墨绿房间 · 铜色刻度 · 荧光青指示灯
   ========================================================================== */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

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

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  color-scheme: dark;

  --ink-900: #071A14;
  --ink-800: #0C2A20;
  --ink-700: #123A2C;
  --copper-500: #C88A4A;
  --copper-300: #E3B583;
  --cyan-400: #35F0D0;
  --teal-600: #0E8F7C;
  --paper: #F2EDE3;
  --slate: #8FA39A;
  --amber: #E8A33D;

  --line: rgba(200, 138, 74, 0.34);
  --line-soft: rgba(200, 138, 74, 0.16);
  --line-cyan: rgba(53, 240, 208, 0.42);

  --font-display: "Oswald", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --rail: 288px;
  --gap: 24px;
  --pad: clamp(16px, 4vw, 40px);
  --head-h: 96px;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-card: 0 1px 0 rgba(227, 181, 131, 0.07), 0 22px 48px -32px rgba(0, 0, 0, 0.95);
  --shadow-pill: 0 1px 0 rgba(227, 181, 131, 0.09), 0 20px 44px -28px #000;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-block-start: var(--head-h);
  background:
    radial-gradient(1200px 600px at 82% -8%, rgba(14, 143, 124, 0.16), transparent 62%),
    radial-gradient(900px 520px at 4% 12%, rgba(200, 138, 74, 0.10), transparent 60%),
    var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 92%;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--paper);
}

h1 { font-size: clamp(2.5rem, 6.2vw, 5.5rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.25; }
h4 { font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.3; }

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

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-300);
}

.label::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 1px;
  background: var(--copper-500);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 3px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--copper-300);
}

.tag--live {
  color: var(--cyan-400);
  border-color: var(--line-cyan);
  background: rgba(53, 240, 208, 0.08);
}

.tag--warn {
  color: var(--amber);
  border-color: rgba(232, 163, 61, 0.42);
  background: rgba(232, 163, 61, 0.08);
}

/* ---------- 4. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }

.layout-rail {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.rail { position: sticky; top: calc(var(--head-h) + 16px); }

.band { background: var(--ink-800); }

.band--paper {
  background: var(--paper);
  color: var(--ink-900);
}

.band--paper h1,
.band--paper h2,
.band--paper h3,
.band--paper h4 { color: var(--ink-900); }

.band--paper .label { color: var(--teal-600); }
.band--paper .label::before { background: var(--teal-600); }

.slice {
  height: clamp(44px, 5.5vw, 76px);
  background: linear-gradient(100deg, var(--ink-800), rgba(18, 58, 44, 0.55));
  clip-path: polygon(0 0, 100% 42%, 100% 100%, 0 58%);
}

.slice--paper {
  background: linear-gradient(100deg, var(--paper), #e6dfd1);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
}

/* ---------- 5. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover { border-color: var(--copper-300); background: rgba(200, 138, 74, 0.14); }
.btn:active { transform: translateY(1px); }

.btn--solid {
  border-color: transparent;
  background: linear-gradient(100deg, var(--copper-500), #a96f35);
  color: #20130a;
}
.btn--solid:hover { background: linear-gradient(100deg, var(--copper-300), var(--copper-500)); }

.btn--ghost {
  border-color: var(--line-cyan);
  color: var(--cyan-400);
  background: rgba(53, 240, 208, 0.06);
}
.btn--ghost:hover { background: var(--cyan-400); color: #06231c; border-color: var(--cyan-400); }

.btn--cyan {
  border-color: transparent;
  background: var(--cyan-400);
  color: #06231c;
}
.btn--cyan:hover { background: #6ff8de; }

/* ---------- 6. 面包屑 / 正文容器 / 页首 ---------- */
.breadcrumbs { padding-block: 20px 0; }

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.breadcrumbs__list li { display: inline-flex; align-items: center; }
.breadcrumbs__list li + li::before {
  content: "/";
  margin-inline-end: 0.5rem;
  color: var(--copper-500);
}
.breadcrumbs__list a { transition: color 0.2s var(--ease); }
.breadcrumbs__list a:hover { color: var(--paper); }

.page-head { padding-block: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 36px); }

.page-head__title { font-size: clamp(2rem, 5vw, 4rem); }

.page-head__lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
  color: var(--slate);
}

.prose { max-width: 36em; font-size: 17px; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; margin-bottom: 0.6em; }
.prose h3 { margin-top: 1.8em; margin-bottom: 0.5em; }
.prose p { max-width: 34em; }
.prose a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--copper-500);
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--cyan-400); text-decoration-color: var(--cyan-400); }
.prose ul,
.prose ol { display: grid; gap: 0.55em; }
.prose ul > li { position: relative; padding-left: 1.4em; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--copper-500);
}
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose strong { color: var(--copper-300); font-weight: 700; }

#main-content {
  display: block;
  scroll-margin-top: calc(var(--head-h) + 20px);
}

/* ---------- 7. 卡片 ---------- */
.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(18, 58, 44, 0.72), rgba(12, 42, 32, 0.92));
  box-shadow: var(--shadow-card);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.card:hover { border-color: var(--line); transform: translateY(-2px); }

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card__title { font-size: 1.05rem; line-height: 1.3; }

.card__meta {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--slate);
}

/* ---------- 8. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(14, 143, 124, 0.22), transparent 60%),
    linear-gradient(160deg, var(--ink-700), var(--ink-800));
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 26, 20, 0) 42%, rgba(7, 26, 20, 0.78) 100%);
}

.media__caption {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--copper-300);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--cyan-400);
  color: #06231c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 10. 头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: 18px var(--pad) 0;
  transition: padding 0.3s var(--ease);
}

.site-header.is-condensed { padding-top: 8px; }

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: rgba(53, 240, 208, 0.08);
}

.scroll-meter__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--copper-500), var(--cyan-400));
}

.pill {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1180px;
  margin-inline: auto;
  padding: 7px 7px 7px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(7, 26, 20, 0.84);
  box-shadow: var(--shadow-pill);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  transition: max-width 0.3s var(--ease), padding 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-condensed .pill {
  max-width: 1080px;
  padding: 5px 5px 5px 16px;
  background: rgba(7, 26, 20, 0.95);
}

.pill__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  padding: 4px 2px;
  border-radius: var(--r-sm);
}

.pill__brand-cn {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 92%;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.pill__brand-en {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-500);
}

.pill__nav { margin-inline-start: auto; }

.nav-list { display: flex; align-items: center; gap: 2px; }

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  color: var(--slate);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover { color: var(--paper); background: rgba(200, 138, 74, 0.12); }

.nav-link[aria-current="page"] { color: var(--paper); }

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--copper-500);
}

.pill__version {
  flex: 0 0 auto;
  margin-inline-start: 12px;
  padding: 4px 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--copper-300);
}

.pill__search {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-cyan);
  border-radius: var(--r-pill);
  background: rgba(53, 240, 208, 0.1);
  color: var(--cyan-400);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.pill__search:hover { background: var(--cyan-400); color: #06231c; border-color: var(--cyan-400); }

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover { border-color: var(--copper-300); background: rgba(200, 138, 74, 0.12); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  padding-block: clamp(44px, 6vw, 72px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--ink-800);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 240px;
  pointer-events: none;
  background: radial-gradient(700px 240px at 14% 0%, rgba(200, 138, 74, 0.16), transparent 72%);
}

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer__col { min-width: 0; }

.footer__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 92%;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.footer__logo span {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--copper-500);
}

.footer__tag {
  margin-top: 14px;
  max-width: 22em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.footer__head {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-300);
}

.footer__list { display: grid; gap: 10px; }

.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
  transition: color 0.2s var(--ease);
}

.footer__list a:hover { color: var(--cyan-400); }

.footer__contact { display: grid; gap: 12px; }

.footer__contact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-500);
}

.footer__contact dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-block: 22px 26px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--slate);
}

/* ---------- 12. 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s ease-out, transform 0.24s ease-out;
}

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

/* ---------- 13. 响应式 ---------- */
@media (min-width: 961px) and (max-width: 1140px) {
  .nav-link { padding-inline: 9px; font-size: 13px; }
  .pill__version { display: none; }
}

@media (max-width: 1080px) {
  .layout-rail { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; top: auto; }
}

@media (max-width: 960px) {
  :root { --head-h: 84px; }

  body { font-size: 16px; line-height: 1.75; }

  .site-header { padding: 12px var(--pad) 0; }
  .site-header.is-condensed { padding-top: 6px; }

  .pill {
    gap: 6px;
    padding: 6px 6px 6px 14px;
    background: rgba(7, 26, 20, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.is-condensed .pill { padding: 5px 5px 5px 14px; }

  .pill__brand-cn { font-size: 16px; }
  .pill__brand-en { display: none; }
  .pill__version { display: none; }

  .pill__search { min-height: 40px; padding: 0 14px; font-size: 13px; }

  .nav-toggle { display: inline-flex; }

  .pill__nav {
    position: fixed;
    top: calc(var(--head-h) + 6px);
    left: 12px;
    right: 12px;
    z-index: 4;
    margin: 0;
    padding: 10px;
    max-height: calc(100vh - var(--head-h) - 24px);
    max-height: calc(100dvh - var(--head-h) - 24px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: rgba(9, 32, 25, 0.98);
    box-shadow: 0 30px 60px -30px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }

  .pill__nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list { flex-direction: column; gap: 2px; }

  .nav-link {
    width: 100%;
    min-height: 52px;
    padding-inline: 16px;
    border-radius: var(--r-md);
    font-size: 16px;
    color: var(--paper);
  }

  .nav-link[aria-current="page"] { background: rgba(200, 138, 74, 0.14); }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    width: 3px;
    height: 20px;
    border-radius: 2px;
    background: var(--copper-500);
    transform: translateY(-50%);
  }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .card { padding: 18px; }
}

/* ---------- 14. 动效偏好 ---------- */
@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;
  }
}
