/* ============================================================
   球会体育赛事 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1180px 620px at 84% -10%, rgba(255, 90, 31, 0.09), transparent 62%),
    radial-gradient(900px 520px at 4% 2%, rgba(47, 198, 192, 0.07), transparent 60%),
    var(--ink-800);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a { color: inherit; }

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

button { background: none; border: 0; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 底色 */
  --ink-900: #06101c;
  --ink-800: #0b1b2e;
  --ink-700: #14304d;

  /* 强调 */
  --orange: #ff5a1f;
  --amber: #ffb020;

  /* 经幡五色 */
  --cyan: #2fc6c0;
  --yellow: #f7e04b;
  --red: #e23b4e;
  --green: #4fbf6a;
  --white: #f4f1ea;

  /* 中性 */
  --mist: #8fa3b8;
  --sand: #d9cdb8;

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  /* 尺度 */
  --maxw: 1180px;
  --maxw-wide: 1440px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;

  /* 运动 */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 中文排版 ---------- */
body,
.display,
.brand-name {
  font-family: var(--font-display);
}

.display {
  font-size: clamp(40px, 6.4vw, 96px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tag,
.pill,
.btn,
.eyebrow {
  letter-spacing: 0.04em;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mist);
}

.side-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--mist);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--amber);
  color: #08131f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 180ms var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- 5. 头部刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(11, 27, 46, 0.98), rgba(9, 22, 38, 0.96));
  border-bottom: 1px solid rgba(143, 163, 184, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand actions"
    "nav nav";
  align-items: center;
  column-gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--gutter) 0;
  transition: padding 240ms var(--ease);
}

.masthead-kicker {
  display: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--mist);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.brand {
  grid-area: brand;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
}

.brand-name {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--white);
  transition: font-size 240ms var(--ease), color 180ms var(--ease);
}

.brand:hover .brand-name { color: var(--amber); }

.brand-tail {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--mist);
}

.masthead-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* 胶囊入口 */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease),
    color 180ms var(--ease), border-color 180ms var(--ease);
}

.pill--fill {
  background: var(--orange);
  color: #08131f;
}

.pill--fill:hover {
  background: #ff7c4a;
  transform: translateY(-2px);
}

.pill--line {
  border-color: rgba(244, 241, 234, 0.3);
  color: var(--white);
}

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

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(244, 241, 234, 0.26);
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 180ms var(--ease), color 180ms var(--ease),
    background 180ms var(--ease);
}

.nav-toggle:hover {
  border-color: var(--amber);
  color: var(--amber);
}

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

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease), top 200ms var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8px; }

.site-header[data-open] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle-bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* 导航 */
.site-nav {
  grid-area: nav;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 340ms var(--ease), opacity 200ms var(--ease),
    visibility 0s linear 340ms;
}

.site-header[data-open] .site-nav {
  max-height: 620px;
  opacity: 1;
  visibility: visible;
  transition: max-height 400ms var(--ease), opacity 240ms var(--ease) 60ms,
    visibility 0s;
}

.site-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 10px 0 16px;
}

.site-nav-list a {
  position: relative;
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(20, 48, 77, 0.42);
  color: var(--mist);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.site-nav-list a::after {
  display: none;
}

.site-nav-list a:hover {
  color: var(--white);
  background: rgba(20, 48, 77, 0.85);
}

.site-nav-list a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 90, 31, 0.16);
  box-shadow: inset 3px 0 0 var(--orange);
}

/* 阅读进度 */
.scroll-meter {
  position: relative;
  height: 2px;
  background: rgba(143, 163, 184, 0.12);
}

.scroll-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 55%, var(--orange));
  transition: width 90ms linear;
}

/* 经幡五色条 */
.flagline {
  display: flex;
  height: 4px;
  overflow: hidden;
}

.flagline-seg { flex: 1 1 0; min-width: 0; }
.flagline-seg--cyan { background: var(--cyan); }
.flagline-seg--yellow { background: var(--yellow); }
.flagline-seg--red { background: var(--red); }
.flagline-seg--green { background: var(--green); }
.flagline-seg--white { background: var(--white); }

/* 收窄态 */
.site-header.is-compact .header-shell {
  padding-top: 7px;
}

.site-header.is-compact .masthead-kicker {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}

.site-header.is-compact .brand-name {
  font-size: clamp(19px, 2.1vw, 26px);
}

.site-header.is-compact .site-nav-list {
  margin-bottom: 10px;
}

/* ---------- 6. 平板与桌面头部 ---------- */
@media (min-width: 961px) {
  .header-shell {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "kicker brand actions"
      "nav nav nav";
    column-gap: 24px;
    padding-top: 20px;
  }

  .masthead-kicker {
    grid-area: kicker;
    justify-self: start;
    display: block;
    max-width: 140px;
    line-height: 1.57;
    letter-spacing: 0.3em;
  }

  .brand {
    grid-area: brand;
    align-items: center;
  }

  .masthead-actions {
    grid-area: actions;
    justify-self: end;
    flex-wrap: nowrap;
  }

  .nav-toggle { display: none; }

  .site-nav {
    max-height: none;
    opacity: 1;
    visibility: visible;
    overflow: visible;
  }

  .site-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 2px;
    margin: 14px 0 0;
    padding-bottom: 12px;
  }

  .site-nav-list a {
    padding: 8px 16px;
    background: transparent;
    color: var(--mist);
    font-size: 15px;
    border-radius: 999px;
  }

  .site-nav-list a::after {
    content: "";
    display: block;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms var(--ease);
  }

  .site-nav-list a:hover {
    background: transparent;
    color: var(--white);
  }

  .site-nav-list a:hover::after { transform: scaleX(1); }

  .site-nav-list a[aria-current="page"] {
    background: rgba(255, 90, 31, 0.12);
    color: var(--white);
    box-shadow: none;
  }

  .site-nav-list a[aria-current="page"]::after { transform: scaleX(1); }
}

/* 手机窄屏：两行头部 */
@media (max-width: 560px) {
  .header-shell {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand brand"
      "actions actions"
      "nav nav";
  }

  .masthead-actions {
    justify-content: stretch;
    margin-top: 12px;
  }

  .masthead-actions .pill {
    flex: 1 1 0;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav-toggle {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
  }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink-900);
  color: var(--white);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--cyan),
    var(--yellow),
    var(--red),
    var(--green),
    var(--white)
  );
  opacity: 0.55;
}

.footer-leagues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  width: 100%;
  max-width: var(--maxw-wide);
  margin-inline: auto;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(143, 163, 184, 0.14);
}

.league-chip {
  --chip: var(--tone, var(--mist));
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 18px 22px;
  border-top: 3px solid var(--chip);
  border-right: 1px solid rgba(143, 163, 184, 0.1);
  text-decoration: none;
  color: var(--white);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.league-chip:hover {
  background: var(--ink-800);
  transform: translateY(-2px);
}

.league-chip-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.league-chip-round {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  color: var(--chip);
}

.tone-cyan { --tone: var(--cyan); }
.tone-yellow { --tone: var(--yellow); }
.tone-red { --tone: var(--red); }
.tone-green { --tone: var(--green); }
.tone-white { --tone: var(--white); }
.tone-amber { --tone: var(--amber); }

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 60px) var(--gutter) clamp(32px, 4vw, 48px);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--white);
}

.footer-brand-note {
  margin-top: 12px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-col-title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--amber);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}

.footer-list a {
  position: relative;
  display: inline-block;
  color: var(--mist);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease);
}

.footer-list a:hover {
  color: var(--white);
}

.footer-list a:hover::after { transform: scaleX(1); }

.footer-contact { gap: 14px; }

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(143, 163, 184, 0.75);
}

.footer-contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  color: var(--white);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) 44px;
  font-size: 13px;
  color: var(--mist);
}

.footer-copy,
.footer-legal { margin: 0; }

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

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(79, 191, 106, 0.18);
}

/* ---------- 8. 容器与页面骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--maxw-wide);
}

.page-main {
  display: block;
  padding-bottom: clamp(64px, 9vw, 128px);
}

.section {
  padding-block: clamp(44px, 6vw, 96px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 20px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--amber);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(143, 163, 184, 0.45);
}

.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.breadcrumbs a:hover { color: var(--amber); }

.breadcrumbs [aria-current="page"] { color: var(--white); }

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease),
    color 180ms var(--ease), border-color 180ms var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #08131f;
}

.btn--primary:hover {
  background: #ff7c4a;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(244, 241, 234, 0.3);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

/* ---------- 11. 标签胶囊 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag--cyan { background: rgba(47, 198, 192, 0.16); color: var(--cyan); }
.tag--yellow { background: rgba(247, 224, 75, 0.16); color: var(--yellow); }
.tag--red { background: rgba(226, 59, 78, 0.18); color: #ff8a96; }
.tag--green { background: rgba(79, 191, 106, 0.16); color: var(--green); }
.tag--amber { background: rgba(255, 176, 32, 0.16); color: var(--amber); }
.tag--orange { background: var(--orange); color: #08131f; }

/* ---------- 12. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 205, 184, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink-700), var(--ink-900));
}

.figure > img,
.figure-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.figure--portrait { aspect-ratio: 4 / 5; }
.figure--land { aspect-ratio: 16 / 9; }
.figure--pan { aspect-ratio: 21 / 9; }
.figure--square { aspect-ratio: 1 / 1; }

.figure-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 20px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
  background: linear-gradient(0deg, rgba(6, 16, 28, 0.94), rgba(6, 16, 28, 0));
}

/* ---------- 13. 平板 / 桌面页脚 ---------- */
@media (min-width: 720px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}

@media (min-width: 1040px) {
  .footer-main {
    grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(150px, 1fr));
    gap: 32px 44px;
  }

  .footer-brand { padding-right: 20px; }
}

/* ---------- 14. 无障碍与偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-meter-fill { transition: none; }
}

@media print {
  .site-header,
  .site-footer,
  .scroll-meter,
  .flagline { display: none; }

  body {
    background: #fff;
    color: #08131f;
  }
}
