/* ============================================================
   19体育主站 — 共享样式表 /assets/site.css
   夜蓝底 · 琥珀主色 · 侧轨导航 · 海报式粗野主义
   ============================================================ */

/* ---------- 01. 设计变量 ---------- */
:root {
  --ink:        #0E1B2A;
  --ink-deep:   #0A1420;
  --ink-2:      #14273C;
  --amber:      #C46A1B;
  --amber-lift: #E08A35;
  --oasis:      #2A9D8F;
  --cyan:       #7FD6CB;
  --card-red:   #D6453D;
  --card-yellow:#E3B23C;
  --sand:       #F2EDE3;
  --sand-dim:   #D9D2C5;
  --rock:       #93A6B8;
  --edge:       #060F19;

  --rail-w: 232px;
  --shell-max: 1440px;
  --line: 3px;
  --measure: 68ch;

  --hard:    8px 8px 0 0 var(--edge);
  --hard-sm: 4px 4px 0 0 var(--edge);
  --hard-lg: 12px 12px 0 0 var(--edge);

  --font-display: "Archivo Narrow", "DIN Condensed", "Roboto Condensed",
                  "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "HarmonyOS Sans", "PingFang SC",
               "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas,
               "Noto Sans SC", monospace;

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

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

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

body {
  margin: 0;
  padding-left: var(--rail-w);
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 90% at 88% -8%, rgba(196, 106, 27, .17), transparent 62%),
    radial-gradient(95% 72% at 8% 108%, rgba(42, 157, 143, .14), transparent 64%);
  background-attachment: fixed;
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(6, 11, 20, .66);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

body.nav-open::after {
  opacity: 1;
  pointer-events: auto;
}

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

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

::selection {
  background: var(--amber);
  color: var(--edge);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 03. 中文排版层级 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.5px;
  color: var(--sand);
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 7.2vw, 96px); }
h2 { font-size: clamp(30px, 4.4vw, 58px); }
h3 { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: 0; }
h4 { font-size: 18px; letter-spacing: .01em; }
h5 { font-size: 15px; letter-spacing: .02em; }

p { margin: 0 0 1.1em; }

a {
  color: var(--amber-lift);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .16s var(--ease);
}
a:hover { color: var(--cyan); }

ul, ol { padding-left: 1.15em; }

strong { color: #FFFFFF; font-weight: 700; }

small { font-size: 13px; color: var(--rock); }

hr {
  border: 0;
  border-top: 2px solid rgba(147, 166, 184, .24);
  margin: 2.5rem 0;
}

/* ---------- 04. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  transform: translateY(-130%);
  padding: 12px 22px;
  background: var(--amber);
  color: var(--edge);
  border: var(--line) solid var(--edge);
  border-top: 0;
  border-left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  color: var(--edge);
}

/* ---------- 05. 移动端抽屉按钮 ---------- */
.nav-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--edge);
  border: var(--line) solid var(--edge);
  box-shadow: var(--hard-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.nav-toggle:hover { background: var(--amber-lift); }
.nav-toggle:active { transform: translate(2px, 2px); }
.nav-toggle[aria-expanded="true"] {
  background: var(--sand);
  color: var(--edge);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
}
.nav-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--edge);
}

/* ---------- 06. 侧边轨道 header ---------- */
.site-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 18px 20px;
  background: var(--ink-2);
  border-right: var(--line) solid var(--edge);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-rail::-webkit-scrollbar { width: 6px; }
.site-rail::-webkit-scrollbar-track { background: transparent; }
.site-rail::-webkit-scrollbar-thumb {
  background: rgba(147, 166, 184, .34);
}

.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--amber-lift), var(--amber));
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
  pointer-events: none;
}

/* ---------- 07. 品牌块 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sand);
}
.brand:hover { color: var(--sand); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 38px;
  background: var(--amber);
  color: var(--edge);
  border: var(--line) solid var(--edge);
  box-shadow: var(--hard-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -1px;
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: .01em;
}

.brand--foot .brand__mark { box-shadow: none; }

/* ---------- 08. 轨道状态块 ---------- */
.rail__status {
  display: grid;
  gap: 8px;
  padding: 12px 12px 11px;
  background: rgba(10, 20, 32, .6);
  border: 2px solid rgba(147, 166, 184, .3);
}

.rail__status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.rail__status-key {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rock);
}

.rail__status-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--sand);
}

.rail__status-val--live { color: var(--cyan); }

/* ---------- 09. 轨道导航 ---------- */
.rail__nav { margin-top: 2px; }

.rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rail__item { margin: 0; }

.rail__link {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 6px;
  padding: 9px 10px 9px 16px;
  color: var(--rock);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .24s var(--ease);
}

.rail__link:hover {
  color: var(--sand);
  background: rgba(196, 106, 27, .12);
}
.rail__link:hover::before { transform: scaleY(1); }

.rail__link[aria-current="page"] {
  color: var(--sand);
  font-weight: 700;
  background: rgba(196, 106, 27, .18);
}
.rail__link[aria-current="page"]::before { transform: scaleY(1); }

.rail__link-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--rock);
}
.rail__link[aria-current="page"] .rail__link-num { color: var(--amber-lift); }

.rail__link-text { display: block; }

/* ---------- 10. 轨道底部 ---------- */
.rail__foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 2px solid rgba(147, 166, 184, .24);
}

.rail__cta {
  width: 100%;
  font-size: 15px;
}

.rail__sub-link {
  display: block;
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--rock);
  text-decoration: none;
}
.rail__sub-link:hover {
  color: var(--amber-lift);
  text-decoration: underline;
}

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--sand);
  color: var(--ink);
  border: var(--line) solid var(--edge);
  box-shadow: 5px 5px 0 0 var(--edge);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background-color .16s var(--ease), color .16s var(--ease);
}
.btn:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 0 var(--edge);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--edge);
}

.btn--primary { background: var(--amber); color: var(--edge); }
.btn--primary:hover { background: var(--amber-lift); color: var(--edge); }

.btn--oasis { background: var(--oasis); color: #06201D; }
.btn--oasis:hover { background: var(--cyan); color: #06201D; }

.btn--ghost {
  background: transparent;
  color: var(--sand);
  border-color: var(--rock);
  box-shadow: 5px 5px 0 0 rgba(147, 166, 184, .35);
}
.btn--ghost:hover { color: var(--sand); border-color: var(--sand); }

.btn--block { width: 100%; }

/* ---------- 12. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}

.page-head {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: var(--line) solid rgba(147, 166, 184, .22);
}

.prose {
  max-width: var(--measure);
  font-size: 17px;
  line-height: 1.75;
  color: var(--sand-dim);
}
.prose p { margin-bottom: 1.15em; }
.prose h2, .prose h3 { color: var(--sand); }

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.grid--4-8 { grid-template-columns: 4fr 8fr; }
.grid--3-9 { grid-template-columns: 3fr 9fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }

/* ---------- 13. 内容组件 ---------- */
.card {
  padding: clamp(1.25rem, 2.4vw, 2rem);
  background: var(--ink-2);
  border: var(--line) solid var(--edge);
  box-shadow: var(--hard);
}
.card--plain {
  box-shadow: none;
  border-color: rgba(147, 166, 184, .3);
}
.card--amber {
  background: var(--amber);
  color: var(--edge);
  border-color: var(--edge);
}
.card--amber h2,
.card--amber h3,
.card--amber h4 { color: var(--edge); }
.card--amber a { color: #2B1403; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 .9rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-lift);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--amber);
}

.chapter-num {
  display: block;
  margin: 0 0 .5rem;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--amber);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 2px solid currentColor;
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.5;
  color: var(--rock);
  white-space: nowrap;
}
.tag--amber  { color: var(--amber-lift); background: rgba(196, 106, 27, .14); }
.tag--oasis  { color: var(--cyan);        background: rgba(42, 157, 143, .16); }
.tag--red    { color: #F08079;            background: rgba(214, 69, 61, .18); }
.tag--yellow { color: var(--card-yellow); background: rgba(227, 178, 60, .14); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 96px);
  line-height: .95;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--amber-lift);
}
.stat__num--oasis { color: var(--cyan); }
.stat__unit {
  font-size: 14px;
  line-height: 1.5;
  color: var(--rock);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--rock);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li::after {
  content: "/";
  color: rgba(147, 166, 184, .5);
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a {
  color: var(--rock);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--amber-lift); }
.breadcrumb [aria-current="page"] { color: var(--sand); }

/* ---------- 14. 响应式图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-2), var(--ink-deep));
  border: var(--line) solid var(--edge);
  box-shadow: var(--hard);
}
.media-frame > * {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--hero     { aspect-ratio: 16 / 7; }
.media-frame--wide     { aspect-ratio: 16 / 9; }
.media-frame--standard { aspect-ratio: 4 / 3; }
.media-frame--square   { aspect-ratio: 1 / 1; }
.media-frame--tall     { aspect-ratio: 3 / 4; }
.media-frame--band     { aspect-ratio: 21 / 9; }

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: rgba(6, 15, 25, .88);
  border-top: 2px solid var(--edge);
  border-right: 2px solid var(--edge);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--rock);
}

/* ---------- 15. 页脚 ---------- */
.site-foot {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem) 1.25rem;
  background: var(--ink-2);
  border-top: var(--line) solid var(--edge);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr .9fr .9fr .9fr 1.7fr;
  gap: 2.5rem 2rem;
  align-items: start;
  max-width: var(--shell-max);
  margin-inline: auto;
}

.foot__brand { min-width: 0; }

.foot__tagline {
  margin: 14px 0 0;
  max-width: 20ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--rock);
}

.foot__col { min-width: 0; }

.foot__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-lift);
}

.foot__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foot__link {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rock);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.foot__link:hover {
  color: var(--sand);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
}
.foot__link[aria-current="page"] { color: var(--sand); }

.foot__contact { min-width: 0; }

.foot__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot__contact-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.5;
}

.foot__contact-key {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rock);
}

.foot__contact-val {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sand);
  word-break: break-all;
}
.foot__contact-val--text {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  word-break: normal;
}

.copy-btn {
  appearance: none;
  padding: 3px 9px;
  background: transparent;
  color: var(--cyan);
  border: 2px solid rgba(127, 214, 203, .45);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease);
}
.copy-btn:hover {
  background: var(--cyan);
  color: var(--edge);
  border-color: var(--cyan);
}
.copy-btn[data-copied="true"] {
  background: var(--oasis);
  border-color: var(--oasis);
  color: #06201D;
}

.foot__note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--rock);
}

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 22px;
  max-width: var(--shell-max);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding-top: 12px;
  border-top: 2px solid rgba(147, 166, 184, .22);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .03em;
  color: var(--rock);
}
.foot__legal { margin: 0; font-family: var(--font-mono); }
.foot__copy  { margin: 0; }

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

/* ---------- 17. 平板 ---------- */
@media (max-width: 1023px) {
  body { padding-left: 0; padding-top: 76px; }

  .site-rail {
    width: min(86vw, 304px);
    transform: translateX(-102%);
    box-shadow: none;
    transition: transform .32s var(--ease), box-shadow .32s var(--ease);
  }
  .site-rail[data-open] {
    transform: translateX(0);
    box-shadow: 10px 0 0 0 rgba(6, 15, 25, .6);
  }

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

  .grid--4-8,
  .grid--3-9,
  .grid--5-7 { grid-template-columns: 1fr; }

  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
  .foot__brand,
  .foot__contact { grid-column: 1 / -1; }

  .media-frame--hero { aspect-ratio: 16 / 9; }
}

/* ---------- 18. 手机 ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; padding-top: 70px; }

  html { scroll-padding-top: 74px; }

  .nav-toggle { top: 12px; left: 12px; padding: 9px 13px; font-size: 14px; }

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

  .foot__contact-item {
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
  }
  .foot__contact-key { grid-column: 1 / -1; }

  .media-frame--hero,
  .media-frame--band,
  .media-frame--tall { aspect-ratio: 4 / 3; }

  .foot__bar { justify-content: flex-start; }
}

/* ---------- 19. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .btn:hover,
  .btn:active { transform: none; }
}
