/* =========================================================
   开yun体育入口 · 共享样式 /assets/site.css
   夜间球场灯光 · 纸张叠层战报
   ========================================================= */

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

:root {
  --ink: #0B2B22;
  --ink-deep: #08211A;
  --ink-panel: #123D31;
  --line: #1E5645;
  --orange: #F25C05;
  --orange-soft: #FF8A3D;
  --cyan: #00E5C0;
  --gold: #F5C542;
  --paper: #F4F7F6;
  --paper-2: #E6ECE9;
  --char: #1A1F1D;
  --muted: #7E8C86;
  --rail-w: 92px;
  --top-h: 60px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

body {
  margin: 0;
  min-height: 100vh;
  padding-top: calc(var(--top-h) + 2px);
  overflow-x: hidden;
  background:
    radial-gradient(1100px 560px at 86% -12%, rgba(0, 229, 192, .07), transparent 62%),
    radial-gradient(900px 520px at -8% 112%, rgba(242, 92, 5, .10), transparent 62%),
    var(--ink);
  color: #DCE7E2;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.22; }
p { margin: 0; }
a { color: var(--cyan); }
img { max-width: 100%; }
button { font-family: inherit; }

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

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -90px;
  left: 14px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--orange);
  color: #08170F;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  border: 2px solid #08170F;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 10px; }

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  height: calc(var(--top-h) + 2px);
  padding: 0 14px;
  background: var(--ink-deep);
  border-bottom: 2px solid var(--line);
}

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

.brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: 6px;
  height: 24px;
  background: var(--orange);
  border-radius: 1px;
  transform: skewX(-9deg);
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .08em;
  color: #fff;
}

.score-ticker {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 14px;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: #8FB3A8;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 18px), transparent);
}
.ticker-item { flex: none; }
.ticker-item .fig { color: var(--cyan); }

.nav-toggle {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: transparent;
  border: 1.5px solid var(--line);
  color: #DCE7E2;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--orange); color: var(--orange-soft); }
.nav-toggle[aria-expanded="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #08170F;
}
.nav-toggle-label { display: inline-block; }

/* ---------- 侧边轨道导航（移动端为抽屉） ---------- */
.rail-nav {
  position: fixed;
  top: calc(var(--top-h) + 2px);
  right: 0;
  bottom: 0;
  z-index: 290;
  width: min(84vw, 340px);
  display: flex;
  flex-direction: column;
  padding: 8px 0 24px;
  background: var(--ink);
  border-left: 2px solid var(--line);
  overflow-y: auto;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .28s var(--ease), visibility .28s var(--ease);
}
.site-header[data-open] .rail-nav {
  transform: translateX(0);
  visibility: visible;
}

.rail-nav a {
  position: relative;
  display: block;
  padding: 15px 24px;
  color: #C7D8D1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 86, 69, .8);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.rail-nav a:hover { color: #fff; background: rgba(0, 229, 192, .07); }
.rail-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(90deg, rgba(242, 92, 5, .24), rgba(242, 92, 5, 0) 74%);
}
.rail-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
}

.rail-indicator { display: none; }

.rail-foot { display: none; }

.rail-cta {
  display: block;
  width: 100%;
  padding: 9px 4px;
  background: var(--orange);
  border: 2px solid var(--orange);
  color: #08170F;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.rail-cta:hover { background: var(--orange-soft); border-color: var(--orange-soft); }

.rail-mail {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--muted);
  word-break: break-all;
  text-align: center;
}

.nav-scrim {
  position: fixed;
  inset: calc(var(--top-h) + 2px) 0 0 0;
  z-index: 280;
  background: rgba(4, 15, 11, .66);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s var(--ease), visibility .24s var(--ease);
}
.site-header[data-open] .nav-scrim {
  opacity: 1;
  visibility: visible;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 54px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.section-title {
  border-left: 6px solid var(--orange);
  padding-left: 16px;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.16;
  color: #F2F7F5;
  transform: skewX(-2deg);
  transform-origin: left bottom;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 229, 192, .45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--cyan);
}

.lede {
  max-width: 36em;
  font-size: 16px;
  line-height: 1.85;
  color: #B9C9C3;
}

.divider {
  height: 2px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, var(--orange), rgba(242, 92, 5, .1) 55%, transparent);
}

/* ---------- 数字与注释 ---------- */
.fig {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.note {
  font-size: 12.5px;
  line-height: 1.7;
  color: #93A8A0;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 1px;
}

.aside-note {
  border-left: 2px solid var(--cyan);
  padding-left: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #93A8A0;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1.5px solid var(--line);
  background: rgba(30, 86, 69, .35);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.tag--orange { border-color: var(--orange); color: var(--orange-soft); }
.tag--gold { border-color: var(--gold); color: var(--gold); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--orange);
  border: 2px solid var(--orange);
  color: #08170F;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 4px 4px 0 0 #04120E, 4px 4px 0 2px var(--line);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover {
  background: var(--orange-soft);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 0 #04120E, 6px 6px 0 2px var(--orange);
}
.btn--ghost {
  background: transparent;
  color: var(--orange-soft);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(242, 92, 5, .14);
  box-shadow: none;
  transform: none;
}

/* ---------- 纸张叠层卡片与深色面板 ---------- */
.card {
  position: relative;
  display: block;
  padding: 24px 20px 20px;
  background: var(--paper);
  border: 2px solid #fff;
  color: var(--char);
  box-shadow: 6px 6px 0 0 #04120E, 6px 6px 0 2px var(--line);
  text-decoration: none;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 4px;
  background: var(--orange);
}
.card p { color: #3B4741; }
.card h3,
.card h4 { color: var(--char); }

.panel {
  position: relative;
  padding: 22px 20px;
  background: var(--ink-panel);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 0 rgba(4, 18, 14, .55);
}
.panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 18px solid var(--orange);
  border-left: 18px solid transparent;
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: 0;
  border: 2px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 229, 192, .12), transparent 56%),
    linear-gradient(315deg, rgba(242, 92, 5, .16), transparent 52%),
    var(--ink-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.media-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .65;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 12px;
  background: var(--orange);
  color: #08170F;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}
.breadcrumbs a {
  color: #9FB3AC;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.breadcrumbs a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.breadcrumbs [aria-current] { color: var(--paper); }

/* ---------- 筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: transparent;
  border: 1.5px solid var(--line);
  color: #AFC4BC;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.filter-btn::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.filter-btn:hover { color: #fff; border-color: var(--orange); }
.filter-btn[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 192, .08);
}
.filter-btn[aria-pressed="true"]::before { opacity: 1; }

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

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  padding-top: 52px;
  background: var(--ink-deep);
  border-top: 2px solid var(--line);
}
.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft) 38%, transparent 88%);
}

.footer-entries {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 16px 16px;
  background: var(--paper);
  border: 2px solid #fff;
  color: var(--char);
  text-decoration: none;
  box-shadow: 5px 5px 0 0 #04120E, 5px 5px 0 2px var(--line);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.entry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 4px;
  background: var(--orange);
}
.entry-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 #04120E, 8px 8px 0 2px var(--orange);
}
.entry-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.entry-title {
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: .08em;
}
.entry-note {
  font-size: 12px;
  line-height: 1.6;
  color: #6C7B75;
}

.footer-mid {
  display: grid;
  gap: 28px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px 26px;
}
.footer-nav a {
  color: #CFDDD7;
  font-size: 13.5px;
  letter-spacing: .06em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer-nav a:hover {
  color: var(--orange-soft);
  border-bottom-color: var(--orange-soft);
}

.footer-contact { font-size: 13px; }
.footer-contact p {
  margin: 0 0 6px;
  color: #B7C7C1;
  line-height: 1.7;
}
.footer-label {
  margin-bottom: 10px !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--cyan) !important;
}
.footer-meta {
  font-size: 11.5px;
  color: var(--muted) !important;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-top: 38px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-brand {
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--paper);
}

/* =========================================================
   平板
   ========================================================= */
@media (min-width: 620px) {
  .footer-entries { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 700px) {
  .container { padding-inline: 36px; }
  .section { padding-block: 66px; }
  .grid { gap: 24px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 800px) {
  .footer-mid { grid-template-columns: 1.618fr 1fr; gap: 56px; }
  .footer-entries { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   桌面：侧边轨道
   ========================================================= */
@media (min-width: 900px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

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

  .site-header {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: var(--rail-w);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 0 14px;
    border-bottom: none;
    border-right: 2px solid var(--line);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .header-top {
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 8px;
  }

  .brand {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .brand-mark {
    width: 26px;
    height: 6px;
    transform: skewY(-9deg);
  }
  .brand-text {
    flex-direction: column;
    align-items: center;
    font-size: 11.5px;
    letter-spacing: .1em;
    line-height: 1.35;
  }

  .score-ticker { display: none; }
  .nav-toggle { display: none; }
  .nav-scrim { display: none; }

  .rail-nav {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    padding: 0;
    background: transparent;
    border-left: none;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .rail-nav a {
    writing-mode: vertical-rl;
    padding: 11px 7px;
    border-bottom: none;
    border-radius: 2px;
    font-size: 12.5px;
    letter-spacing: .2em;
    line-height: 1;
    color: #AFC4BC;
  }
  .rail-nav a:hover { background: rgba(242, 92, 5, .16); color: #fff; }
  .rail-nav a[aria-current="page"] {
    background: none;
    color: #fff;
  }
  .rail-nav a[aria-current="page"]::before { display: none; }

  .rail-indicator {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--orange);
    border-radius: 2px;
    transform: translateY(0);
    transition: transform .24s var(--ease), height .24s var(--ease);
  }

  .rail-foot {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 0 8px;
  }

  .container { padding-inline: 48px; }
  .section { padding-block: 84px; }
  .section-head { margin-bottom: 36px; }

  .grid--2 { grid-template-columns: 1.618fr 1fr; gap: 28px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }

  .site-footer { margin-top: 96px; padding-top: 64px; }
  .footer-entries { gap: 18px; }
  .footer-bottom { margin-top: 44px; }
}

/* =========================================================
   降低动效
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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