/* ==========================================================================
   玩球体育安卓 · 共享站点样式 /assets/site.css
   夜场战术板体系：堆叠画板、切角、刊头导航、斜纹底边
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--night);
  color: var(--warm);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

a { color: inherit; }

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

button { background: none; border: 0; }

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩 */
  --night: #061B16;
  --board: #0C2B23;
  --line: #1E4A3D;
  --warm: #F7F3E8;
  --muted: #B9C9C1;
  --cyan: #4EF2C3;
  --orange: #FF8A3D;
  --alert: #FF5D45;
  --charcoal: #1B1F1D;
  --pale: #E9EFEA;

  /* 排版 */
  --font-display: "Barlow Condensed", "HarmonyOS Sans SC Condensed", "HarmonyOS Sans SC",
    "Alibaba PuHuiTi 3.0", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, monospace;

  /* 度量 */
  --maxw: 1200px;
  --gut: 24px;
  --cut: 14px;
  --radius: 0px;
}

@media (max-width: 640px) {
  :root { --gut: 16px; --cut: 12px; }
}

/* ---------- 3. 基础排版与焦点 ---------- */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection {
  background-color: var(--cyan);
  color: var(--night);
}

#main-content { display: block; scroll-margin-top: 132px; }

strong, b { font-weight: 700; color: var(--warm); }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: .92em;
  color: var(--cyan);
}

/* ---------- 4. 布局壳 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.grid {
  display: grid;
  gap: var(--gut);
}

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

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

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

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--warm);
}

.section-head__note {
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background-color: var(--cyan);
  flex: none;
}

.lede {
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.72;
  color: var(--warm);
  max-width: 58ch;
}

/* ---------- 5. 切角画板与编号牌 ---------- */
.panel {
  padding: clamp(18px, 2.6vw, 30px);
  background-color: var(--board);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
  transition: box-shadow .16s ease, background-color .16s ease;
}

.panel:hover {
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.plate {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  box-shadow: inset 0 0 0 1px var(--line);
  background-color: var(--night);
}

.plate__num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.plate__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.1;
  text-decoration: none;
  color: var(--warm);
  background-color: transparent;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease,
    box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}

.btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background-color: rgba(78, 242, 195, .07);
}

.btn:active { transform: translateY(1px); }

.btn--accent {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--night);
  box-shadow: 4px 4px 0 0 rgba(78, 242, 195, .32);
}

.btn--accent:hover {
  background-color: #FFA063;
  border-color: #FFA063;
  color: var(--night);
  box-shadow: 2px 2px 0 0 var(--cyan);
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--muted);
  color: var(--warm);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background-color: rgba(78, 242, 195, .06);
}

.btn--sm {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 13.5px;
  letter-spacing: .04em;
}

/* ---------- 7. 状态芯片与标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  background-color: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  line-height: 1.7;
  color: var(--muted);
  white-space: nowrap;
}

.chip--live {
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(78, 242, 195, .45);
}

.chip--accent {
  color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .5);
}

.chip__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background-color: currentColor;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-left: 2px solid var(--cyan);
  background-color: rgba(78, 242, 195, .08);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.tag--live {
  border-left-color: var(--orange);
  background-color: rgba(255, 138, 61, .1);
  color: var(--orange);
}

.tag--warn {
  border-left-color: var(--alert);
  background-color: rgba(255, 93, 69, .12);
  color: var(--alert);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs {
  border-bottom: 1px solid var(--line);
  background-color: rgba(12, 43, 35, .55);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px var(--gut);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}

.breadcrumbs__link {
  text-decoration: none;
  color: var(--muted);
  transition: color .16s ease;
}

.breadcrumbs__link:hover { color: var(--cyan); }

.breadcrumbs__sep {
  color: var(--line);
  user-select: none;
}

/* ---------- 9. 正文长文 ---------- */
.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--warm);
}

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

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.prose h2 { font-size: clamp(24px, 2.6vw, 34px); }
.prose h3 { font-size: clamp(19px, 2vw, 25px); }

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

.prose ul li { list-style: none; position: relative; padding-left: .2em; }

.prose ul li::before {
  content: "";
  position: absolute;
  left: -1em;
  top: .72em;
  width: 7px;
  height: 2px;
  background-color: var(--cyan);
}

.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--cyan); font-family: var(--font-mono); }

.prose blockquote {
  padding: 14px 20px;
  border-left: 3px solid var(--orange);
  background-color: var(--board);
  color: var(--muted);
}

/* ---------- 10. 响应式图片容器 ---------- */
.figure { margin: 0; }

.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--board);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    0 100%
  );
}

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

.media__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-align: center;
  color: var(--muted);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(30, 74, 61, .55) 0 10px,
    transparent 10px 20px
  );
}

.media__inner img,
.media__inner picture,
.media__inner svg,
.media__inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------- 11. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 120;
  padding: 12px 20px;
  background-color: var(--cyan);
  color: var(--night);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .16s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--warm);
  outline-offset: 2px;
}

/* ---------- 12. 头部刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--night);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 0 rgba(6, 27, 22, .9);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--gut) 12px;
}

.masthead__side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.masthead__side--start { justify-self: start; }
.masthead__side--end { justify-self: end; }

.masthead__issue {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.masthead__issue-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__brand {
  justify-self: center;
  min-width: 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: inherit;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .14em;
  color: var(--warm);
  transition: color .16s ease;
}

.brand:hover .brand__name { color: var(--cyan); }

.brand__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
  white-space: nowrap;
}

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background-color: transparent;
  color: var(--warm);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}

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

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  transition: transform .16s ease, opacity .16s ease;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  background-color: rgba(78, 242, 195, .08);
}

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

/* ---------- 13. 主导航横带 ---------- */
.site-nav {
  position: relative;
  border-top: 1px solid var(--line);
  background-color: var(--board);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 1.8vw, 26px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 6px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--warm);
  transition: color .16s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 9px;
  height: 2px;
  background-color: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease;
}

.site-nav__link:hover { color: var(--cyan); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--cyan); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__tagline {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gut) 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-align: center;
  color: var(--muted);
}

/* 滚动进度轨 */
.scroll-rail {
  position: relative;
  height: 2px;
  width: 100%;
  background-color: var(--line);
  overflow: hidden;
}

.scroll-rail__fill {
  display: block;
  height: 100%;
  width: 0;
  background-color: var(--cyan);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 0;
  background-color: var(--board);
  border-top: 1px solid var(--line);
  color: var(--warm);
}

.footer__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 68px) var(--gut) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
  gap: clamp(22px, 3vw, 44px);
  padding-bottom: clamp(26px, 4vw, 48px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .16em;
  color: var(--warm);
}

.footer__line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.footer__intro {
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}

.footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.footer__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--warm);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__links a {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--muted);
  transition: color .16s ease, transform .16s ease;
}

.footer__links a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer__contact {
  display: grid;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--warm);
  overflow-wrap: anywhere;
}

.footer__contact-key {
  display: block;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  padding-left: 10px;
  border-left: 2px solid var(--line);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 22px;
  border-top: 1px solid var(--line);
}

.footer__icp,
.footer__copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.footer__legal-links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--muted);
  transition: color .16s ease;
}

.footer__legal-links a:hover { color: var(--cyan); }

.site-footer::after {
  content: "";
  display: block;
  height: 7px;
  background-image: repeating-linear-gradient(
    135deg,
    var(--line) 0 14px,
    transparent 14px 28px
  );
  border-top: 1px solid var(--line);
  opacity: .85;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .site-header { position: sticky; }

  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px var(--gut);
  }

  .masthead__side--start { display: none; }

  .masthead__brand {
    justify-self: start;
    grid-column: 1;
    grid-row: 1;
  }

  .brand { align-items: flex-start; }

  .masthead__side--end {
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background-color: var(--board);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .5);
  }

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

  .site-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 4px 0 0;
  }

  .site-nav__item {
    width: 100%;
    border-top: 1px solid var(--line);
  }

  .site-nav__item:first-child { border-top: 0; }

  .site-nav__link {
    width: 100%;
    min-height: 52px;
    padding: 0 var(--gut);
    font-size: 16px;
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] {
    color: var(--cyan);
    box-shadow: inset 3px 0 0 var(--cyan);
    background-color: rgba(78, 242, 195, .06);
  }

  .site-nav__tagline {
    padding: 12px var(--gut) 14px;
    text-align: left;
  }

  #main-content { scroll-margin-top: 96px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

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

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-toggle__label { display: none; }

  .nav-toggle { padding: 8px; }

  .masthead__cta { font-size: 12.5px; padding: 8px 11px; }
}

@media (max-width: 400px) {
  .brand__meta { display: none; }
}

/* ---------- 16. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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