/* ============================================================
   万合足球站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   ============================================================ */

:root {
  /* 红土系 */
  --dirt-deep: #6E2A17;
  --dirt: #C2472A;
  --ember: #F2761F;
  /* 草皮系 */
  --pitch-deep: #135C38;
  --pitch: #1E8B4E;
  --pitch-light: #E4F2E6;
  /* 记分牌 */
  --scoreboard: #12DFC6;
  /* 纸与墨 */
  --paper: #F8F4ED;
  --ink: #12191C;
  --rule: #C9D6CC;
  --glass: rgba(255, 255, 255, 0.72);

  --font-sans: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Roboto Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail-w: 96px;
  --shell: 1200px;
  --gutter: 48px;
  --radius: 12px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

@media (max-width: 640px) {
  :root { --gutter: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 420px at 92% -8%, rgba(194, 71, 42, .13), transparent 62%),
    radial-gradient(760px 400px at 0% 96%, rgba(19, 92, 56, .10), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--scoreboard);
  outline-offset: 2px;
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(18, 25, 28, .30);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 桌面轨道把主体推开 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

/* ============================================================
   头部
   ============================================================ */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .16s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.rail-scrim { display: none; }

/* ---- 桌面端：固定垂直轨道 ---- */
@media (min-width: 1024px) {
  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px 12px;
    z-index: 90;
    background: linear-gradient(180deg, #6E2A17 0%, #54210F 58%, #3D170A 100%);
    border-right: 1px solid rgba(201, 214, 204, .20);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
  }
  html[data-scrolled] .site-header {
    box-shadow: 10px 0 34px -22px rgba(18, 25, 28, .95);
  }
}

.rail-brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rail-pin {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--scoreboard);
  box-shadow: 0 0 0 5px rgba(18, 223, 198, .16);
}

.rail-brand-name {
  writing-mode: vertical-rl;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .22em;
  line-height: 1;
  color: var(--paper);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.rail-brand-name:hover { color: var(--scoreboard); }

/* 移动端汉堡 */
.rail-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid rgba(248, 244, 237, .38);
  border-radius: 6px;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.rail-toggle:hover { border-color: var(--scoreboard); background: rgba(18, 223, 198, .10); }

.rail-toggle-box {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.rail-toggle-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.rail-toggle-box span:nth-child(1) { top: 0; }
.rail-toggle-box span:nth-child(2) { top: 5px; }
.rail-toggle-box span:nth-child(3) { top: 10px; }
.site-header[data-open] .rail-toggle-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .rail-toggle-box span:nth-child(2) { opacity: 0; }
.site-header[data-open] .rail-toggle-box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---- 导航 ---- */
@media (min-width: 1024px) {
  .rail-nav {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.rail-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.rail-link {
  display: block;
  writing-mode: vertical-rl;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: rgba(248, 244, 237, .70);
  text-decoration: none;
  transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}
.rail-link:hover {
  color: var(--paper);
  background: rgba(242, 118, 31, .18);
  border-color: rgba(242, 118, 31, .55);
}
.rail-link[aria-current="page"] {
  color: var(--scoreboard);
  border-color: var(--scoreboard);
  background: rgba(18, 223, 198, .10);
}

.rail-foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 0 2px;
}

.rail-cta {
  display: block;
  padding: 8px 4px;
  border: 1px solid var(--ember);
  border-radius: 5px;
  background: var(--ember);
  color: #12191C;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.rail-cta:hover { background: #FF8F45; border-color: #FF8F45; }

.rail-cta--quiet {
  background: transparent;
  color: rgba(248, 244, 237, .86);
  border-color: rgba(248, 244, 237, .36);
}
.rail-cta--quiet:hover {
  background: rgba(18, 223, 198, .12);
  color: var(--scoreboard);
  border-color: var(--scoreboard);
}

.rail-ticker {
  flex: 0 0 auto;
  display: block;
  writing-mode: vertical-rl;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed rgba(201, 214, 204, .28);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  color: rgba(18, 223, 198, .88);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.rail-ticker:hover { color: #FFFFFF; }

@media (min-width: 1024px) and (max-height: 780px) {
  .rail-ticker { display: none; }
}

/* ---- 移动 / 平板：顶栏 + 抽屉 ---- */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 90;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(90deg, #6E2A17 0%, #4A1B0D 100%);
    border-bottom: 2px solid var(--dirt);
    overflow: visible;
  }
  html[data-scrolled] .site-header {
    box-shadow: 0 10px 26px -18px rgba(18, 25, 28, .85);
  }

  .rail-brand { flex-direction: row; gap: 8px; }
  .rail-pin { width: 8px; height: 8px; box-shadow: 0 0 0 4px rgba(18, 223, 198, .16); }
  .rail-brand-name {
    writing-mode: horizontal-tb;
    font-size: 15px;
    letter-spacing: .14em;
  }

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

  .rail-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(18, 25, 28, .52);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), visibility .2s var(--ease);
  }
  .site-header[data-open] .rail-scrim { opacity: 1; visibility: visible; }

  .rail-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: min(304px, 84vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 70px 20px 26px;
    background: linear-gradient(180deg, #6E2A17 0%, #3A1509 100%);
    border-right: 1px solid rgba(201, 214, 204, .20);
    transform: translateX(-102%);
    transition: transform .24s var(--ease);
    overflow-y: auto;
  }
  .site-header[data-open] .rail-nav { transform: translateX(0); }

  .rail-nav-list {
    align-items: stretch;
    gap: 2px;
    width: 100%;
    flex: 0 0 auto;
  }
  .rail-link {
    writing-mode: horizontal-tb;
    width: 100%;
    padding: 12px 10px;
    border-left: 2px solid transparent;
    font-size: 15px;
    letter-spacing: .12em;
  }
  .rail-link[aria-current="page"] { border-left-color: var(--scoreboard); }

  .rail-foot {
    margin-top: 24px;
    padding: 18px 0 0;
    border-top: 1px dashed rgba(201, 214, 204, .25);
  }
  .rail-cta { font-size: 13px; padding: 12px 8px; }

  .rail-ticker { display: none; }
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: 80px;
  background: linear-gradient(180deg, #6E2A17 0%, #481A0C 100%);
  border-top: 3px solid var(--dirt);
  color: rgba(248, 244, 237, .78);
}

.footer-inner {
  width: min(var(--shell), calc(100% - var(--gutter)));
  margin-inline: auto;
  padding: 56px 0 42px;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.25fr;
  gap: 38px 32px;
}

.footer-brand {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--paper);
}

.footer-note {
  margin-bottom: 16px;
  max-width: 26em;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(248, 244, 237, .68);
}

.footer-versions {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-versions li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(18, 223, 198, .45);
  border-radius: 4px;
  background: rgba(18, 223, 198, .08);
}
.ver-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(18, 223, 198, .92);
}
.ver-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(242, 118, 31, .38);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--ember);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: rgba(248, 244, 237, .80);
  text-decoration: none;
  background-image: linear-gradient(var(--scoreboard), var(--scoreboard));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  padding-bottom: 2px;
  transition: background-size .16s var(--ease), color .16s var(--ease);
}
.footer-list a:hover {
  color: var(--paper);
  background-size: 100% 1px;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fc-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(201, 214, 204, .72);
}
.fc-val {
  font-size: 14px;
  color: rgba(248, 244, 237, .90);
  word-break: break-word;
}
.fc-val--num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.footer-bar {
  border-top: 1px solid rgba(201, 214, 204, .20);
  background: rgba(0, 0, 0, .16);
}
.footer-bar-inner {
  width: min(var(--shell), calc(100% - var(--gutter)));
  margin-inline: auto;
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(248, 244, 237, .70);
}
.footer-legal a {
  color: rgba(248, 244, 237, .86);
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 244, 237, .32);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-legal a:hover {
  color: var(--scoreboard);
  border-bottom-color: var(--scoreboard);
}
.footer-dot { color: rgba(201, 214, 204, .42); }
.footer-hours {
  color: rgba(18, 223, 198, .88);
  font-weight: 600;
  letter-spacing: .06em;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
    padding: 44px 0 34px;
  }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bar-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   通用容器与网格
   ============================================================ */
.container {
  width: min(var(--shell), calc(100% - var(--gutter)));
  margin-inline: auto;
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 900px) {
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   章节头（堆叠面板顶条）
   ============================================================ */
.section { margin-bottom: 64px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--dirt);
}
.section-index {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--pitch-deep);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.section-note {
  margin-left: auto;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: rgba(18, 25, 28, .55);
}

/* ============================================================
   面板
   ============================================================ */
.panel {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: 0 18px 36px -30px rgba(18, 25, 28, .80);
}
.panel--glass {
  background: var(--glass);
  border-color: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
}
.panel--pitch {
  background: var(--pitch-deep);
  border-color: transparent;
  color: rgba(248, 244, 237, .90);
}
.panel--pitch .section-note { color: rgba(248, 244, 237, .60); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease), transform .16s var(--ease);
}
.btn--ember { background: var(--ember); border-color: var(--ember); color: #12191C; }
.btn--ember:hover { background: #FF8F45; border-color: #FF8F45; }
.btn--dirt { background: var(--dirt); border-color: var(--dirt); color: var(--paper); }
.btn--dirt:hover { background: #D4552F; border-color: #D4552F; }
.btn--outline { background: transparent; border-color: var(--pitch-deep); color: var(--pitch-deep); }
.btn--outline:hover { background: var(--pitch-deep); border-color: var(--pitch-deep); color: var(--paper); }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  list-style: none;
  font-size: 13px;
  color: rgba(18, 25, 28, .62);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '/'; color: var(--rule); }
.breadcrumb a {
  color: var(--pitch-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .16s var(--ease);
}
.breadcrumb a:hover { border-bottom-color: var(--scoreboard); }
.breadcrumb [aria-current="page"] { color: rgba(18, 25, 28, .58); }

/* ============================================================
   标签 / 价格 / 文本
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--pitch-deep);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.tag--dirt { background: var(--dirt); }
.tag--ember { background: var(--ember); color: #12191C; }
.tag--line { background: transparent; border: 1px solid var(--dirt); color: var(--dirt); }
.tag--pitch-line { background: transparent; border: 1px solid var(--pitch-deep); color: var(--pitch-deep); }

.price { display: flex; align-items: baseline; gap: 5px; }
.price__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 40px);
  letter-spacing: -.02em;
  color: var(--ember);
}
.price__cur {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ember);
}
.price__unit { font-size: 13px; color: rgba(18, 25, 28, .60); }

.lede {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(18, 25, 28, .86);
}

.vert-note {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: rgba(18, 25, 28, .45);
}

/* ============================================================
   图片容器（页面阶段放图）
   ============================================================ */
.media {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--pitch-light);
  aspect-ratio: 3 / 2;
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--tall { aspect-ratio: 2 / 3; }
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }

.media__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px 10px;
  background: linear-gradient(0deg, rgba(18, 25, 28, .86), rgba(18, 25, 28, 0));
  color: var(--paper);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: .04em;
}

/* ============================================================
   显现（[data-reveal]）
   ============================================================ */
[data-reveal] {
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
[data-reveal][data-reveal-state="hidden"] {
  opacity: 0;
  transform: translateY(8px);
}

/* ============================================================
   降低动态
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .rail-nav { transition: none !important; }
}
