/* ============================================================
   华体会体育 · 共享站点样式 /assets/site.css
   夜场战术板：夜赛蓝 + 深墨绿 + 苔绿面板 + 荧光青柠高亮
   ============================================================ */

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

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

body, 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 { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; }

:root {
  /* 色彩 */
  --night: #0A1A2B;
  --pine: #0E2B25;
  --moss: #1C4438;
  --stone: #8A968F;
  --bone: #F1EEE3;
  --lime: #C9F24D;
  --gold: #E7B24C;
  --ember: #FF5C38;
  --clay: #B06B46;

  --edge: rgba(241, 238, 227, .78);
  --edge-soft: rgba(138, 150, 143, .34);
  --shadow-hard: 8px 8px 0 #04101B;
  --shadow-soft: 6px 6px 0 rgba(4, 16, 27, .85);

  /* 骨架 */
  --rail-w: 88px;
  --shell-max: 1280px;
  --gutter: 28px;

  /* 字体 */
  --font-display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-numeric: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --ease-out: cubic-bezier(.2, .7, .3, 1);
}

body {
  min-height: 100vh;
  padding-inline-start: var(--rail-w);
  background-color: var(--night);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 战术板网格底纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(241, 238, 227, .035) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(241, 238, 227, .028) 0 1px, transparent 1px 96px);
}

.site-header,
.site-footer,
.site-main {
  position: relative;
  z-index: 1;
}

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

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

/* ---------------- 跳转链接 ---------------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  transform: translate(-50%, -160%);
  padding: 12px 22px;
  background: var(--lime);
  color: var(--night);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------------- 侧边品牌轨道 ---------------- */
.brand-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 0 24px;
  background: linear-gradient(180deg, var(--night) 0%, var(--pine) 100%);
  border-inline-end: 2px solid var(--bone);
}

.rail-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  background: var(--lime);
  color: var(--night);
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(4, 16, 27, .9);
  transition: transform .18s var(--ease-out);
}
.rail-mark:hover { transform: translate(-2px, -2px); }
.rail-mark-glyph {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.rail-word {
  writing-mode: vertical-rl;
  font-family: var(--font-numeric);
  font-size: 10px;
  letter-spacing: .42em;
  color: var(--stone);
  user-select: none;
}

.rail-scale {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 12px 0;
  overflow: hidden;
}

.rail-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.rail-node-tick {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--edge-soft);
  transition: width .24s var(--ease-out), background-color .24s var(--ease-out);
}
.rail-node-label {
  font-family: var(--font-numeric);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--edge-soft);
  transition: color .24s var(--ease-out);
}
.rail-node-name { display: none; }
.rail-node.is-active .rail-node-tick { width: 40px; background: var(--lime); }
.rail-node.is-active .rail-node-label { color: var(--lime); }

.rail-progress {
  position: relative;
  flex: 0 0 132px;
  width: 3px;
  background: rgba(138, 150, 143, .28);
  overflow: hidden;
}
.rail-progress-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(180deg, var(--lime), var(--gold));
  transition: height .12s linear;
}

/* ---------------- 刊头 ---------------- */
.site-header { position: relative; }

.masthead {
  padding: 40px var(--gutter) 0;
  background:
    radial-gradient(120% 150% at 50% -25%, rgba(28, 68, 56, .9) 0%, rgba(10, 26, 43, 0) 62%),
    linear-gradient(180deg, #0A1A2B 0%, #0E2B25 100%);
  border-bottom: 3px solid var(--bone);
}

.masthead-kicker {
  text-align: center;
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--stone);
}

.masthead-logo {
  display: block;
  margin-top: 14px;
  text-align: center;
  text-decoration: none;
}
.masthead-logo-cn {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 8vw, 84px);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--bone);
  text-shadow: 6px 6px 0 rgba(4, 16, 27, .9);
}
.masthead-logo-en {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 13px;
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--night);
  background: var(--lime);
}

.masthead-status {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--stone);
  border-top: 1px dashed var(--edge-soft);
  border-bottom: 1px dashed var(--edge-soft);
}

.masthead-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-top: 20px;
  border-top: 1px solid var(--edge-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 2px solid var(--edge);
  color: var(--bone);
  cursor: pointer;
}
.nav-toggle-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2em;
}
.nav-toggle-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
}
.nav-toggle-mark span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease-out), opacity .22s var(--ease-out);
}
.nav-toggle-mark span:nth-child(2) { width: 70%; }
.nav-toggle[aria-expanded="true"] .nav-toggle-mark span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-mark span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-mark span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  display: flex;
  justify-content: center;
  max-width: 100%;
}
.primary-nav-list {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.primary-nav-list::-webkit-scrollbar { display: none; }
.primary-nav-list a {
  display: block;
  padding: 15px 18px 13px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--stone);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .18s var(--ease-out), background-color .18s var(--ease-out), border-color .18s var(--ease-out);
}
.primary-nav-list a:hover { color: var(--bone); background: rgba(201, 242, 77, .08); }
.primary-nav-list a[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.nav-scale { display: none; }

/* ---------------- 通用容器 ---------------- */
.wrap {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding: 56px 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

/* ---------------- 文字 ---------------- */
.display-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--bone);
}

.lede {
  max-width: 68ch;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(241, 238, 227, .82);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-numeric);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
}

.num {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.annotation {
  font-family: var(--font-numeric);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone);
}
.annotation--vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.rule { height: 0; border: 0; border-top: 1px solid var(--edge-soft); }
.rule--thick { border-top: 3px solid var(--bone); }

/* ---------------- 面包屑 ---------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--stone);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--edge-soft); }
.breadcrumbs a { text-decoration: none; color: var(--stone); }
.breadcrumbs a:hover { color: var(--lime); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--bone);
  border: 2px solid var(--edge);
  background: transparent;
  cursor: pointer;
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .16s var(--ease-out), color .16s var(--ease-out), border-color .16s var(--ease-out);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-soft); }
.btn--lime { background: var(--lime); border-color: var(--lime); color: var(--night); }
.btn--lime:hover { background: #D8FF66; }
.btn--ghost { border-color: var(--edge-soft); color: var(--stone); }
.btn--ghost:hover { color: var(--bone); border-color: var(--edge); }

/* ---------------- 面板与卡片 ---------------- */
.panel {
  position: relative;
  padding: 24px;
  background: var(--moss);
  border: 2px solid var(--edge);
  box-shadow: var(--shadow-hard);
}

.card {
  position: relative;
  padding: 22px;
  background: linear-gradient(180deg, rgba(28, 68, 56, .94), rgba(14, 43, 37, .94));
  border: 2px solid var(--edge-soft);
  transition: transform .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--edge);
  box-shadow: var(--shadow-soft);
}
.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--bone);
}

/* ---------------- 标签 ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.tag--lime { color: var(--lime); }
.tag--gold { color: var(--gold); }
.tag--ember { color: var(--ember); }

/* ---------------- 比分牌 ---------------- */
.scoreboard {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  background: var(--night);
  border: 2px solid var(--edge);
  box-shadow: var(--shadow-hard);
}
.scoreboard-num {
  font-family: var(--font-numeric);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
}

/* ---------------- 数据条 ---------------- */
.data-bar {
  position: relative;
  height: 10px;
  background: rgba(138, 150, 143, .22);
  border: 1px solid var(--edge-soft);
  overflow: hidden;
}
.data-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), #9BD82B);
  transition: width .4s var(--ease-out);
}
.data-bar--gold .data-bar-fill { background: linear-gradient(90deg, var(--gold), #C98F2E); }
.data-bar--ember .data-bar-fill { background: linear-gradient(90deg, var(--ember), #C93F1E); }

/* ---------------- 图片容器 ---------------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--edge);
  background-image: repeating-linear-gradient(115deg, rgba(28, 68, 56, .95) 0 24px, rgba(14, 43, 37, .95) 24px 48px);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 80px;
  color: var(--stone);
  background: linear-gradient(180deg, #0E2B25 0%, #0A1A2B 100%);
  border-top: 3px solid var(--bone);
}

.footer-strip {
  height: 8px;
  background-image: repeating-linear-gradient(
    135deg,
    var(--lime) 0 14px,
    transparent 14px 28px,
    var(--gold) 28px 42px,
    transparent 42px 56px
  );
  opacity: .6;
}

.footer-top { padding-block: 56px 48px; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(120px, .8fr)) minmax(240px, 1.5fr);
  gap: 40px 30px;
}

.footer-brandmark { display: inline-block; text-decoration: none; }
.footer-brandmark-cn {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--bone);
}
.footer-brandmark-en {
  display: block;
  margin-top: 7px;
  font-family: var(--font-numeric);
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--lime);
}
.footer-tagline {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone);
}
.footer-note {
  margin-top: 10px;
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--stone);
  border-left: 2px solid var(--gold);
}

.footer-col-title {
  padding-bottom: 12px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone);
  border-bottom: 2px solid rgba(201, 242, 77, .32);
}

.footer-col-list li { line-height: 2; }
.footer-col-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease-out), border-color .16s var(--ease-out);
}
.footer-col-list a:hover { color: var(--bone); border-bottom-color: var(--lime); }

.contact-list { display: grid; gap: 10px; }
.contact-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.65;
}
.contact-label {
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gold);
  padding-top: 2px;
}
.contact-value { color: var(--bone); word-break: break-word; }
.contact-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--stone);
}

.footer-bottom {
  background: rgba(10, 26, 43, .65);
  border-top: 1px solid var(--edge-soft);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding-block: 22px 28px;
  font-size: 13px;
}
.footer-copy { font-size: 13px; color: var(--stone); }
.footer-icp {
  font-family: var(--font-numeric);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--stone);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.footer-legal-links a {
  font-size: 13px;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease-out), border-color .16s var(--ease-out);
}
.footer-legal-links a:hover { color: var(--lime); border-bottom-color: var(--lime); }

/* ============================================================
   平板
   ============================================================ */
@media (max-width: 1099px) {
  :root { --gutter: 24px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact { padding-top: 8px; border-top: 1px dashed var(--edge-soft); }
}

/* ============================================================
   移动端：轨道折叠为左侧抽屉
   ============================================================ */
@media (max-width: 759px) {
  :root {
    --rail-w: 0px;
    --gutter: 18px;
    --shadow-hard: 6px 6px 0 #04101B;
  }

  body { padding-inline-start: 0; font-size: 16px; }

  .brand-rail { display: none; }

  .masthead {
    padding: 22px var(--gutter) 0;
  }
  .masthead-kicker { font-size: 10px; letter-spacing: .2em; }
  .masthead-logo-cn { font-size: clamp(34px, 11vw, 52px); text-shadow: 4px 4px 0 rgba(4, 16, 27, .9); }
  .masthead-logo-en { font-size: 10px; letter-spacing: .26em; }
  .masthead-status { font-size: 12px; margin-top: 14px; }

  .masthead-bar {
    align-items: center;
    justify-content: flex-start;
    margin-top: 14px;
    padding-bottom: 14px;
  }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: min(86vw, 340px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px 22px 36px;
    overflow-y: auto;
    background: linear-gradient(180deg, #0A1A2B 0%, #0E2B25 58%, #1C4438 100%);
    border-inline-end: 3px solid var(--lime);
    box-shadow: 12px 0 0 rgba(4, 16, 27, .6);
    transform: translateX(-104%);
    transition: transform .34s var(--ease-out);
  }
  .primary-nav[data-open] { transform: translateX(0); }

  .primary-nav-list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    margin-top: 62px;
  }
  .primary-nav-list a {
    padding: 14px 4px 14px 14px;
    font-size: 21px;
    border-bottom: 1px solid rgba(138, 150, 143, .18);
    border-left: 3px solid transparent;
  }
  .primary-nav-list li:last-child a { border-bottom: 0; }
  .primary-nav-list a[aria-current="page"] {
    border-bottom-color: rgba(138, 150, 143, .18);
    border-left-color: var(--lime);
    background: rgba(201, 242, 77, .07);
  }

  .nav-scale {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed var(--edge-soft);
  }
  .nav-scale .rail-node {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .nav-scale .rail-node-tick { width: 18px; }
  .nav-scale .rail-node-label { font-size: 10px; }
  .nav-scale .rail-node-name {
    display: inline;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--stone);
  }
  .nav-scale .rail-node.is-active .rail-node-name { color: var(--lime); }

  .section { padding: 40px 0; }
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .display-title { font-size: clamp(26px, 8vw, 40px); }
  .lede { font-size: 16px; }
  .panel { padding: 18px; }
  .card { padding: 18px; }
  .scoreboard-num { font-size: 28px; }

  .site-footer { margin-top: 56px; }
  .footer-top { padding-block: 40px 32px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-brand,
  .footer-contact { grid-column: auto; }
  .footer-contact { padding-top: 0; border-top: 0; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal-links { gap: 6px 16px; }
}

/* ============================================================
   偏好减弱动效
   ============================================================ */
@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;
  }
  .card:hover,
  .btn:hover,
  .rail-mark:hover { transform: none; }
}
