/* ===========================================================
   /assets/site.css — 乐竟体育 共享样式
   reset → 变量 → 中文排版 → 壳层 → 头部 → 页脚 → 组件
   =========================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

/* ---------- 变量 ---------- */
:root {
  --ink: #0E2B25;
  --ink-2: #1B3F35;
  --sand: #E7D8BC;
  --paper: #FBF7EF;
  --orange: #E4622A;
  --orange-soft: #F3A176;
  --blue: #7C93A6;
  --brick: #A9503C;
  --moss-tag: #6B7F5A;
  --rock: #6E6E68;
  --text: #1C1C1A;

  --line: rgba(110, 110, 104, 0.28);
  --line-soft: rgba(110, 110, 104, 0.16);
  --line-invert: rgba(251, 247, 239, 0.22);

  --shadow: 0 2px 10px rgba(14, 43, 37, 0.06);

  --font-display: 'Barlow Condensed', 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;

  --shell: 1240px;
  --gutter: 40px;
  --radius: 2px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
}

/* ---------- 基础中文排版 ---------- */
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h1 { font-size: 44px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; letter-spacing: 0; }
h4 { font-size: 17px; letter-spacing: 0; font-weight: 500; font-family: var(--font-body); }

@media (max-width: 720px) {
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
}

p { max-width: 68ch; }

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

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rock);
  margin-bottom: 10px;
}

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

.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;
}

/* ---------- 壳层与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.section-head p {
  font-size: 14px;
  color: var(--rock);
  max-width: 46ch;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split-5-7 { display: grid; grid-template-columns: 5fr 7fr; gap: 0; }
.split-4-8 { display: grid; grid-template-columns: 4fr 8fr; gap: 0; }

@media (max-width: 900px) {
  .grid--2, .grid--3, .split-5-7, .split-4-8 { grid-template-columns: 1fr; }
}

/* ---------- 无障碍焦点 ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.header-top a:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline-color: var(--orange-soft);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--orange);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ===========================================================
   头部：双层控制台
   =========================================================== */
.site-header {
  position: relative;
  z-index: 70;
}

.header-top {
  background: var(--ink);
  color: var(--paper);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark__sep {
  color: var(--orange-soft);
  font-weight: 400;
}

.brand-mark__sub {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(251, 247, 239, 0.68);
}

.header-note {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(251, 247, 239, 0.66);
  max-width: none;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(251, 247, 239, 0.7);
  white-space: nowrap;
}

.header-meta__batch {
  padding: 3px 8px;
  border: 1px solid var(--line-invert);
  border-radius: var(--radius);
  color: rgba(251, 247, 239, 0.88);
}

.header-meta__date {
  color: rgba(251, 247, 239, 0.6);
}

/* 下层栏目条 */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--sand);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), var(--shadow);
}

.header-bar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
}

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

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.site-nav__list a {
  display: inline-block;
  padding: 13px 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}

.site-nav__list a:hover {
  border-bottom-color: var(--orange-soft);
  background: rgba(14, 43, 37, 0.05);
}

.site-nav__list a[aria-current="page"] {
  font-weight: 700;
  border-bottom-color: var(--orange);
}

.header-bar__aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.chip--status {
  font-family: var(--font-mono);
  letter-spacing: 0;
  color: var(--rock);
  background: rgba(251, 247, 239, 0.6);
  border: 1px solid var(--line);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--rock);
  background: rgba(251, 247, 239, 0.7);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 阅读进度线 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(14, 43, 37, 0.08);
  pointer-events: none;
}

.scroll-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.1s linear;
}

/* ---------- 头部断点 ---------- */
@media (max-width: 1080px) {
  .header-note { display: none; }
}

@media (max-width: 900px) {
  .header-bar__inner {
    flex-wrap: wrap;
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 10px;
  }

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

  .header-bar__aside {
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    display: none;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list a {
    display: block;
    padding: 14px 6px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
  }

  .site-nav__list a:hover {
    background: rgba(14, 43, 37, 0.05);
    border-bottom-color: var(--line-soft);
  }

  .site-nav__list a[aria-current="page"] {
    border-bottom-color: var(--line-soft);
    border-left-color: var(--orange);
    background: rgba(228, 98, 42, 0.06);
  }
}

@media (max-width: 640px) {
  .chip--status { display: none; }
  .brand-mark { font-size: 18px; }
  .header-meta { gap: 8px; font-size: 11px; }
  .header-meta__date { display: none; }
}

/* ===========================================================
   页脚：四栏档案柜
   =========================================================== */
.site-footer {
  margin-top: 80px;
  background: var(--ink);
  color: rgba(251, 247, 239, 0.82);
  border-top: 1px solid var(--line-invert);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 44px;
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 16px;
}

.footer-list {
  display: grid;
  gap: 9px;
  font-size: 14px;
}

.footer-list a {
  color: rgba(251, 247, 239, 0.76);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-list a:hover {
  color: var(--orange-soft);
  border-bottom-color: var(--orange-soft);
}

.footer-list--contact {
  gap: 14px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-list--contact li {
  display: grid;
  gap: 3px;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 247, 239, 0.46);
}

.footer-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(251, 247, 239, 0.58);
  max-width: 34ch;
}

.batch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 7px 12px;
  background: rgba(251, 247, 239, 0.06);
  border: 1px solid var(--line-invert);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.batch-toggle:hover {
  border-color: var(--orange-soft);
  background: rgba(228, 98, 42, 0.14);
}

.batch-toggle__caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--orange-soft);
  border-bottom: 1.5px solid var(--orange-soft);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s var(--ease);
}

.batch-toggle[aria-expanded="true"] .batch-toggle__caret {
  transform: rotate(-135deg) translateY(-2px);
}

.batch-panel {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 2px solid var(--orange);
  background: rgba(251, 247, 239, 0.05);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(251, 247, 239, 0.72);
}

.batch-panel[data-open] {
  display: block;
  animation: panel-in 0.2s var(--ease) both;
}

.batch-panel p + p { margin-top: 8px; }

@keyframes panel-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line-invert);
}

.footer-legal {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(251, 247, 239, 0.56);
  max-width: none;
}

.footer-legal--meta {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.15fr 0.8fr 0.8fr 1.25fr;
    gap: 0;
    padding-top: 60px;
  }

  .footer-col {
    padding: 0 30px;
    border-left: 1px solid var(--line-invert);
  }

  .footer-col:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .footer-col:last-child {
    padding-right: 0;
  }
}

/* ===========================================================
   通用组件
   =========================================================== */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 13px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--paper);
}

.btn--primary:hover {
  background: #ef7139;
  border-color: #ef7139;
}

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

.btn--ghost:hover {
  border-color: var(--rock);
  background: rgba(251, 247, 239, 0.6);
}

.btn--on-dark {
  background: transparent;
  border-color: var(--line-invert);
  color: var(--paper);
}

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

.btn--sm {
  padding: 9px 14px;
  font-size: 13px;
}

/* 联赛 / 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text);
  background: rgba(110, 110, 104, 0.12);
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
}

.tag--blue {
  background: rgba(124, 147, 166, 0.24);
  border-color: rgba(124, 147, 166, 0.5);
}

.tag--brick {
  background: rgba(169, 80, 60, 0.2);
  border-color: rgba(169, 80, 60, 0.45);
}

.tag--moss {
  background: rgba(107, 127, 90, 0.24);
  border-color: rgba(107, 127, 90, 0.48);
}

.tag--orange {
  background: rgba(228, 98, 42, 0.14);
  border-color: rgba(228, 98, 42, 0.45);
  color: #8f3a17;
}

/* 面板 */
.panel {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel--sand {
  background: var(--sand);
  border-color: rgba(14, 43, 37, 0.14);
}

.panel--dark {
  background: var(--ink-2);
  border-color: var(--line-invert);
  color: var(--paper);
}

.panel--dark p { color: rgba(251, 247, 239, 0.76); }

/* 图片容器（页面阶段放 img 或占位） */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: rgba(14, 43, 37, 0.78);
}

/* 可展开内容组 */
.disclosure {
  border-top: 1px solid var(--line);
}

.disclosure:last-child {
  border-bottom: 1px solid var(--line);
}

.disclosure__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 2px;
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.disclosure__btn:hover { color: var(--ink-2); }

.disclosure__btn::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s var(--ease);
}

.disclosure__btn[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-2px);
}

.disclosure__panel {
  display: none;
  padding: 0 2px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.disclosure__panel[data-open] {
  display: block;
  animation: panel-in 0.2s var(--ease) both;
}

.disclosure__panel p + p { margin-top: 10px; }

/* 筛选胶囊组 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-chip {
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease);
}

.filter-chip:hover { border-color: var(--orange); }

.filter-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* 面包屑 */
.breadcrumb {
  padding: 18px 0;
  font-size: 13px;
  color: var(--rock);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

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

.breadcrumb a:hover {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* 长文正文 */
.prose {
  max-width: 68ch;
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 1.8em;
  padding-top: 0.6em;
  border-top: 1px solid var(--line-soft);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: 0.4em; }

.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--orange-soft);
}

.prose a:hover {
  border-bottom-color: var(--orange);
}

.prose strong { font-weight: 700; }

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .skip-link {
    transform: none;
  }

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