/* ============================================================
   米博体育主站 · 共享样式表 /assets/site.css
   深青绿即时数据屏 + 旧纸米白档案库，两组色温严格分区
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #0A1F22;
  --deep: #0F3D3E;
  --cyan: #3DE0D0;
  --orange: #FF5C1A;
  --paper: #FBF6EC;
  --archive: #F2E8D5;
  --archive-line: #DCCDAE;
  --moss: #1E4B3C;
  --grey: #7C8B84;
  --amber: #E8B23A;
  --amber-deep: #96690F;

  --hairline: rgba(201, 214, 210, 0.18);
  --hairline-strong: rgba(201, 214, 210, 0.34);
  --hairline-ink: rgba(10, 31, 34, 0.14);

  --text: #FBF6EC;
  --text-mute: rgba(251, 246, 236, 0.66);
  --text-dim: rgba(251, 246, 236, 0.42);

  --font-display: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-headline: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --head-h: 64px;
  --rail-h: 46px;
  --rail-w: 180px;
  --shell-top: calc(var(--head-h) + var(--rail-h));
  --gutter: clamp(18px, 3.4vw, 44px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (min-width: 1024px) {
  :root {
    --head-h: 76px;
    --rail-h: 0px;
    --shell-top: 76px;
  }
}

/* ---------- 2. 重置与基础排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-top: var(--shell-top);
  background: var(--deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-headline);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: clamp(19px, 2vw, 23px); }

p { margin: 0 0 1.1em; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; }

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

button { font-family: inherit; }

[hidden] { display: none !important; }

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

::selection {
  background: var(--orange);
  color: #fff;
}

#main-content { scroll-margin-top: calc(var(--shell-top) + 12px); }

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--orange);
  color: #fff;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: none;
  text-decoration: none;
}

/* ---------- 4. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--deep);
  border-bottom: 1px solid var(--hairline);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  height: var(--head-h);
  padding: 0 var(--gutter);
}

@media (min-width: 1024px) {
  .site-header__bar {
    padding-left: calc(var(--rail-w) + var(--gutter));
  }
}

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand__mark {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand__mark::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--cyan);
  transform: translateY(-1px);
}

.brand__note {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .brand__note { display: none; }
}

/* 移动端开关 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

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

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

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

/* 主导航：移动端面板 */
.site-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--head-h);
  z-index: 88;
  max-height: calc(100vh - var(--head-h));
  overflow-y: auto;
  padding: 6px var(--gutter) 22px;
  background: var(--ink);
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s linear;
}

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

.site-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li { border-bottom: 1px solid var(--hairline); }
.site-nav__list li:last-child { border-bottom: 0; }

.site-nav a {
  position: relative;
  display: block;
  padding: 15px 2px 15px 18px;
  color: var(--text-mute);
  font-size: 16px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.site-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: width 0.2s var(--ease), background 0.18s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover::before { width: 10px; }

.site-nav a[aria-current="page"] { color: var(--text); }

.site-nav a[aria-current="page"]::before {
  width: 10px;
  background: var(--orange);
}

/* 主导航：桌面端横排 */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    margin-left: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.6vw, 26px);
  }

  .site-nav__list li { border-bottom: 0; }

  .site-nav a {
    display: inline-block;
    padding: 8px 0;
    font-size: 14.5px;
    letter-spacing: 0.06em;
  }

  .site-nav a::before { display: none; }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.22s var(--ease), background 0.18s var(--ease);
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after {
    width: 100%;
    background: var(--cyan);
  }

  .site-nav a[aria-current="page"]::after {
    width: 100%;
    background: var(--orange);
  }
}

/* ---------- 5. 联赛导航轨 ---------- */
.league-rail {
  position: fixed;
  top: var(--head-h);
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--rail-h);
  padding: 0 var(--gutter);
  background: var(--ink);
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.league-rail::-webkit-scrollbar { display: none; }

.league-rail__label {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.league-rail__list {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.league-rail__item {
  -webkit-appearance: none;
  appearance: none;
  padding: 5px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--text-mute);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.league-rail__item:hover,
.league-rail__item:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.league-rail__item[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

@media (min-width: 1024px) {
  .league-rail {
    top: var(--head-h);
    right: auto;
    bottom: 0;
    width: var(--rail-w);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 28px 0 34px;
    border-right: 1px solid var(--hairline);
    border-bottom: 0;
    background: linear-gradient(180deg, #0A1F22 0%, #0F3D3E 100%);
    overflow: visible;
  }

  .league-rail__label {
    padding: 0 24px 16px;
    letter-spacing: 0.24em;
  }

  .league-rail__list {
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0;
  }

  .league-rail__list li { display: flex; }

  .league-rail__item {
    width: 100%;
    padding: 12px 24px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    font-size: 13.5px;
    letter-spacing: 0.1em;
    text-align: left;
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
  }

  .league-rail__item:hover,
  .league-rail__item:focus-visible {
    border-left-color: var(--cyan);
    color: var(--cyan);
  }

  .league-rail__item[aria-pressed="true"] {
    background: rgba(255, 92, 26, 0.12);
    border-left-color: var(--orange);
    color: #fff;
  }
}

/* ---------- 6. 滚动进度条 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.9;
  pointer-events: none;
}

/* ---------- 7. 通用容器与文字工具 ---------- */
.shell {
  width: 100%;
  padding: 0 var(--gutter);
}

.prose { max-width: 40em; }

.num {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-mute { color: var(--text-mute); }
.text-dim { color: var(--text-dim); }

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--orange);
  color: #fff;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  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:hover {
  background: #ff7338;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--paper {
  background: transparent;
  border-color: rgba(30, 75, 60, 0.32);
  color: var(--moss);
}

.btn--paper:hover {
  background: var(--moss);
  color: var(--archive);
  border-color: var(--moss);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.breadcrumb a {
  color: inherit;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-decoration: none;
}

.breadcrumb__sep {
  margin: 0 8px;
  color: rgba(201, 214, 210, 0.36);
}

/* ---------- 10. 展览标签组件 ---------- */
.exhibit {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.exhibit__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.exhibit__kicker::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--hairline);
}

.exhibit__title {
  margin: 12px 0 8px;
  font-family: var(--font-headline);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.3;
}

.exhibit__note {
  max-width: 36em;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

/* ---------- 11. 数据带 ---------- */
.datastrip {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(10, 31, 34, 0.55);
  scrollbar-width: none;
}

.datastrip::-webkit-scrollbar { display: none; }

.datastrip__cell {
  flex: 0 0 auto;
  padding: 14px 26px;
  border-right: 1px solid var(--hairline);
}

.datastrip__cell:last-child { border-right: 0; }

.datastrip__num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cyan);
}

.datastrip__label {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---------- 12. 档案分区（旧纸色温） ---------- */
.archive {
  background: var(--archive);
  color: var(--moss);
}

.archive .exhibit,
.archive .exhibit__title,
.archive .exhibit__note { color: var(--moss); }

.archive .exhibit {
  border-top-color: var(--archive-line);
}

.archive .exhibit__kicker {
  color: var(--amber-deep);
}

.archive .exhibit__kicker::after {
  background: var(--archive-line);
}

.archive .exhibit__note { color: rgba(30, 75, 60, 0.76); }

.archive a { color: var(--moss); }

.archive .datastrip {
  background: rgba(255, 255, 255, 0.4);
  border-color: var(--archive-line);
}

.archive .datastrip__cell { border-right-color: var(--archive-line); }

.archive .datastrip__num { color: var(--moss); }

.archive .datastrip__label { color: rgba(30, 75, 60, 0.62); }

/* ---------- 13. 响应式图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hairline);
  background: linear-gradient(140deg, #0F3D3E 0%, #0A1F22 100%);
}

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

.media--wide { aspect-ratio: 21 / 9; }
.media--portrait { aspect-ratio: 4 / 5; }

.media--archive {
  border-color: var(--archive-line);
  background: linear-gradient(140deg, #F2E8D5 0%, #E4D6BC 100%);
}

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 12px;
  background: var(--orange);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

/* ---------- 14. 网格辅助 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

@media (max-width: 560px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin: 0;
  padding: clamp(46px, 5.5vw, 80px) var(--gutter) 0;
  background: var(--ink);
  color: var(--text);
  border-top: 1px solid var(--hairline);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4vw, 52px);
}

@media (min-width: 640px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(130px, 1fr));
    align-items: start;
  }
  .footer-brand { grid-column: auto; }
}

.footer-brand__mark {
  margin: 0 0 8px;
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.footer-brand__echo {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  color: var(--cyan);
}

.footer-contact {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
}

.footer-contact__row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-contact dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.footer-contact dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-mute);
  word-break: break-word;
}

.footer-brand__note {
  max-width: 34em;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.footer-col__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text);
}

.footer-col__list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list a {
  display: inline-block;
  color: var(--text-mute);
  font-size: 14px;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-decoration: none;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: clamp(34px, 4vw, 56px);
  padding: 18px 0 30px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.site-footer__legal p { margin: 0; }

/* ---------- 16. 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  background: rgba(10, 31, 34, 0.9);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s linear, border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover,
.to-top:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 17. 联赛筛选状态 ---------- */
[data-league-status] {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

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