/* ==========================================================================
   华体会赛事 · 共享站点样式  /assets/site.css
   夜场竞技场：墨绿黑底 + 荧光青柠焦点 + 琥珀橙数据高亮
   ========================================================================== */

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

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

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; }

[id] { scroll-margin-top: 7rem; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 底色分区 */
  --bg:        #06120E;
  --bg-2:      #0B241B;
  --panel:     #123528;
  --wine:      #5B1B2A;
  --indigo:    #241B4A;

  /* 强调 */
  --lime:      #C6FF3D;
  --lime-soft: #8FD64A;
  --amber:     #FFA726;

  /* 文字 */
  --bone:      #F2F7F0;
  --mint:      #A8BDB2;

  /* 边界 */
  --line:      #1F3A30;

  /* 骨架 */
  --shell:     1240px;
  --step:      220ms;

  --font-head: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  /* 切角（全站方向一致：右上 + 左下） */
  --cut:    polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  --cut-sm: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 82% -8%, rgba(198, 255, 61, .07), transparent 62%),
    radial-gradient(760px 420px at -6% 12%, rgba(36, 27, 74, .55), transparent 68%);
  background-repeat: no-repeat;
  color: var(--bone);
  font: 400 17px/1.8 var(--font-body);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .005em;
  color: var(--bone);
}

p { line-height: 1.85; }

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

/* ---------- 4. 壳层 ---------- */
.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -4.5rem;
  left: 1rem;
  z-index: 200;
  display: inline-block;
  padding: .7rem 1.15rem;
  background: var(--lime);
  color: #06120E;
  font: 700 14px/1 var(--font-body);
  letter-spacing: .04em;
  text-decoration: none;
  clip-path: var(--cut-sm);
  transition: top var(--step) ease;
}

.skip-link:focus { top: .85rem; }

/* ==========================================================================
   6. 页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 18, 14, .95);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

/* 6.1 阅读进度线 */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, var(--lime), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* 6.2 悬浮比分条 */
.ticker {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.ticker__inner {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 40px;
  padding-block: .35rem;
}

.ticker__tag {
  flex: none;
  padding: .33rem .55rem;
  background: var(--lime);
  color: #06120E;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  clip-path: var(--cut-sm);
}

.ticker__list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.ticker__item {
  display: flex;
  align-items: baseline;
  gap: .38rem;
  flex: none;
  white-space: nowrap;
  font-size: 13px;
  color: var(--mint);
}

.ticker__league {
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .12em;
  color: var(--mint);
  opacity: .78;
  text-transform: uppercase;
}

.ticker__team { color: var(--bone); font-weight: 600; }

.ticker__score {
  font: 700 16px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}

.ticker__vs { color: var(--mint); opacity: .5; }

.ticker__clock {
  font: 400 11px/1 var(--font-mono);
  color: var(--lime-soft);
}

.ticker__note {
  flex: none;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mint);
  opacity: .8;
}

/* 6.3 品牌与行动区 */
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 72px;
  padding-block: .7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .72rem;
  margin-right: auto;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--lime), var(--lime-soft));
  color: #06120E;
  font: 800 15px/1 var(--font-mono);
  letter-spacing: .02em;
  clip-path: var(--cut-sm);
}

.brand__text { display: flex; flex-direction: column; gap: .22rem; min-width: 0; }

.brand__name {
  font: 800 19px/1 var(--font-head);
  letter-spacing: .04em;
  color: var(--bone);
}

.brand__sub {
  font: 600 11px/1 var(--font-body);
  letter-spacing: .2em;
  color: var(--mint);
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: none;
}

/* 6.4 命令栏索引 */
.nav {
  background: linear-gradient(90deg, var(--bg-2) 0%, #081C15 60%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
}

.nav__list {
  display: flex;
  align-items: stretch;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav__item { flex: none; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .82rem 1rem;
  border-bottom: 3px solid transparent;
  color: var(--mint);
  font: 600 14px/1 var(--font-body);
  letter-spacing: .05em;
  text-decoration: none;
  transition: color var(--step) ease, background-color var(--step) ease, border-color var(--step) ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--bone);
  background: rgba(198, 255, 61, .07);
}

.nav__link[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.nav__index {
  font: 700 11px/1 var(--font-mono);
  color: var(--lime-soft);
  opacity: .8;
}

.nav__link[aria-current="page"] .nav__index { color: var(--lime); opacity: 1; }

.nav__label { white-space: nowrap; }

/* 6.5 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  flex: none;
  padding: .62rem .82rem;
  border: 1px solid var(--line);
  color: var(--bone);
  font: 600 13px/1 var(--font-body);
  letter-spacing: .08em;
  cursor: pointer;
  clip-path: var(--cut-sm);
  transition: background-color var(--step) ease, color var(--step) ease, border-color var(--step) ease;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--lime);
  transition: background-color var(--step) ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--lime);
  transition: transform var(--step) ease, background-color var(--step) ease;
}

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

.site-header[data-open] .nav-toggle {
  background: var(--lime);
  border-color: var(--lime);
  color: #06120E;
}

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { background: #06120E; transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after  { background: #06120E; transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   7. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 4.5rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 72%);
  border-top: 1px solid var(--line);
  color: var(--mint);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(115deg, var(--lime) 0 14px, transparent 14px 34px);
  opacity: .68;
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, 1fr));
  gap: 2.2rem;
  padding-block: 3.4rem 2.6rem;
}

.footer__brand { min-width: 0; }

.footer__mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--panel);
  border: 1px solid var(--lime-soft);
  color: var(--lime);
  font: 800 13px/1 var(--font-mono);
  letter-spacing: .04em;
  clip-path: var(--cut-sm);
}

.footer__name {
  margin-top: .85rem;
  font: 800 20px/1.25 var(--font-head);
  letter-spacing: .05em;
  color: var(--bone);
}

.footer__desc {
  margin-top: .55rem;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mint);
}

.footer__col { min-width: 0; }

.footer__title {
  margin-bottom: .95rem;
  font: 700 12px/1 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer__list {
  display: grid;
  gap: .58rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--step) ease, border-color var(--step) ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime-soft);
}

.footer__meta {
  border-top: 1px solid var(--line);
  background: rgba(6, 18, 14, .62);
}

.footer__meta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .45rem 1.6rem;
  padding-block: 1.15rem;
}

.footer__contact,
.footer__legal {
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--mint);
}

.footer__legal { font-family: var(--font-mono); }

.footer__copy { white-space: nowrap; }

/* ==========================================================================
   8. 通用组件
   ========================================================================== */

/* 8.1 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .68rem 1.15rem;
  border: 1px solid transparent;
  font: 700 14px/1 var(--font-head);
  letter-spacing: .07em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  clip-path: var(--cut-sm);
  transition: background-color var(--step) ease, color var(--step) ease,
              border-color var(--step) ease, transform var(--step) ease;
}

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

.btn--lime {
  background: var(--lime);
  color: #06120E;
}

.btn--lime:hover,
.btn--lime:focus-visible { background: var(--lime-soft); }

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

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--lime-soft);
  color: var(--lime);
}

.btn--amber {
  background: var(--amber);
  color: #24150A;
}

.btn--block { width: 100%; }

/* 8.2 面包屑 */
.breadcrumb { margin-top: 1.6rem; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 600 11.5px/1 var(--font-mono);
  letter-spacing: .12em;
  color: var(--mint);
}

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

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: .5rem;
  color: var(--mint);
  opacity: .42;
}

.breadcrumb__link {
  color: var(--mint);
  text-decoration: none;
  transition: color var(--step) ease;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible { color: var(--lime); }

.breadcrumb__current { color: var(--bone); }

/* 8.3 正文容器 */
.prose { max-width: 70ch; }

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

.prose h2 {
  font-size: clamp(23px, 2.8vw, 33px);
  color: var(--bone);
}

.prose h3 {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--bone);
}

.prose p { color: rgba(242, 247, 240, .86); }

.prose strong { color: var(--lime); font-weight: 700; }

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

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  list-style: none;
}

.prose li { position: relative; padding-left: 1.1rem; color: rgba(242, 247, 240, .86); }

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 7px;
  height: 7px;
  background: var(--lime-soft);
  transform: rotate(45deg);
}

/* 8.4 章节头 */
.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  margin-bottom: 1.6rem;
}

.section-head__index {
  font: 700 13px/1 var(--font-mono);
  letter-spacing: .14em;
  color: var(--amber);
}

.section-head__title {
  font-size: clamp(26px, 3.6vw, 44px);
  color: var(--bone);
}

.section-head__note {
  font-size: 13.5px;
  color: var(--mint);
}

/* 8.5 面板与卡片 */
.panel {
  position: relative;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}

.panel--band { background: var(--bg-2); }
.panel--wine { background: linear-gradient(155deg, var(--wine) 0%, #3D1120 100%); }
.panel--indigo { background: linear-gradient(155deg, var(--indigo) 0%, #171034 100%); }

/* 8.6 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .62rem;
  background: rgba(198, 255, 61, .1);
  border: 1px solid rgba(198, 255, 61, .34);
  color: var(--lime);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  clip-path: var(--cut-sm);
}

.tag--amber {
  background: rgba(255, 167, 38, .12);
  border-color: rgba(255, 167, 38, .42);
  color: var(--amber);
}

.tag--mute {
  background: rgba(168, 189, 178, .08);
  border-color: var(--line);
  color: var(--mint);
}

/* 8.7 数字 */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* 8.8 数据条 */
.meter {
  position: relative;
  height: 6px;
  background: rgba(31, 58, 48, .95);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--lime-soft));
}

.meter__fill--amber {
  background: linear-gradient(90deg, var(--amber), #FFCF7A);
}

/* 8.9 图片容器 */
.media {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}

.media > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: .7rem 1rem;
  font-size: 12.5px;
  color: var(--mint);
  background: linear-gradient(180deg, rgba(6, 18, 14, 0), rgba(6, 18, 14, .92));
}

/* 8.10 网格 */
.grid {
  display: grid;
  gap: 1.25rem;
}

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

/* 8.11 主体 */
#main-content { display: block; }

/* ==========================================================================
   9. 动效：斜向显现
   ========================================================================== */
[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translate3d(-14px, 10px, 0);
  transition: opacity .4s ease, transform .42s cubic-bezier(.22, .7, .3, 1);
}

[data-js="on"] [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   10. 响应式
   ========================================================================== */
@media (max-width: 1040px) {
  .footer__grid {
    grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(120px, 1fr));
    gap: 1.6rem;
  }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }

  .nav { display: none; }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: .5rem 1rem;
  }

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

  .nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: .95rem .35rem;
    border-bottom: 0;
    font-size: 15px;
  }

  .nav__link[aria-current="page"] {
    border-bottom: 0;
    background: rgba(198, 255, 61, .08);
    box-shadow: inset 3px 0 0 var(--lime);
  }

  .masthead__actions .btn--ghost { display: none; }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.9rem;
    padding-block: 2.6rem 2rem;
  }

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

  .footer__meta-inner { flex-direction: column; }
}

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

  .shell { width: min(100% - 1.6rem, var(--shell)); }

  .ticker__note { display: none; }

  .brand__sub { display: none; }

  .brand__mark { width: 38px; height: 38px; font-size: 13px; }

  .brand__name { font-size: 17px; }

  .masthead__inner { min-height: 62px; gap: .7rem; }

  .btn { padding: .6rem .9rem; font-size: 13px; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .panel { padding: 1.15rem; }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
}

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

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

  [data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover { transform: none; }
}
