/* ==========================================================================
   万合足球 /assets/site.css
   全站共享：reset · 变量 · 中文排版 · 头部 · 页脚 · 按钮 · 通用组件
   ========================================================================== */

/* ---------- 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, figure, blockquote, dl, dd { margin: 0; }

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

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

button { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩 */
  --ink:        #06120E;
  --deep:       #0B2A20;
  --turf:       #14503A;
  --mid:        #1F7A4C;
  --acid:       #C8FF3D;
  --acid-soft:  #E9FFB0;
  --paper:      #F5F2E9;
  --card:       #FBFAF5;
  --char:       #14181A;
  --moss:       #7C8A82;
  --whistle:    #FF7A3C;

  /* 细线与描边 */
  --line-soft:  rgba(20, 80, 58, .28);
  --line-acid:  rgba(200, 255, 61, .34);
  --line-paper: rgba(245, 242, 233, .16);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system,
               "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", "SF Mono",
               Consolas, "Liberation Mono", monospace;

  /* 尺度 */
  --shell-max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --capsule: 999px;

  /* 动效 */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 200ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--paper);
  color: var(--char);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}

h1 { font-size: clamp(34px, 6vw, 88px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.16; }
h3 { font-size: clamp(18px, 2vw, 22px); line-height: 1.35; letter-spacing: -.01em; }
h4 { font-size: 17px; line-height: 1.45; letter-spacing: 0; }

p { max-width: 74ch; }

strong { font-weight: 800; }

/* ---------- 4. 无障碍 ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(6, 18, 14, .55);
  border-radius: 2px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  display: inline-block;
  padding: 11px 20px;
  background: var(--acid);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: var(--capsule);
  transform: translateY(-220%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: rgba(6, 18, 14, .30);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--turf) 0%, var(--acid) 68%, var(--acid-soft) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 6. 头部：悬浮胶囊导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px clamp(12px, 3vw, 32px) 0;
  display: flex;
  justify-content: center;
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.3vw, 16px);
  width: min(100%, var(--shell-max));
  padding: 8px 10px 8px 18px;
  border-radius: var(--capsule);
  background: rgba(6, 18, 14, .88);
  border: 1px solid rgba(200, 255, 61, .16);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 22px 48px -30px rgba(6, 18, 14, .95);
  transition: padding var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

/* 品牌 */
.brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 2px;
  transform: skewX(-8deg);
  transition: background var(--dur) var(--ease);
}

.brand:hover .brand__mark { background: var(--acid-soft); }

.brand__text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .1em;
  transition: font-size var(--dur) var(--ease);
}

.brand--footer .brand__text { font-size: 18px; }

/* 主导航 */
.primary-nav { margin-inline: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list__item { display: block; }

.nav-link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--capsule);
  color: rgba(245, 242, 233, .78);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--acid-soft);
  background: rgba(200, 255, 61, .09);
}

.nav-link[aria-current="page"] {
  background: var(--acid);
  color: var(--ink);
  font-weight: 800;
}

.nav-link[aria-current="page"]:hover {
  background: var(--acid-soft);
  color: var(--ink);
}

/* 收缩态显示的当前栏目 */
.nav-current {
  display: none;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line-acid);
  border-radius: var(--capsule);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--acid);
  white-space: nowrap;
}

.nav-current:empty { display: none; }

/* 快速入口 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 移动端菜单按钮 */
.nav-toggle {
  position: relative;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid rgba(245, 242, 233, .28);
  border-radius: var(--capsule);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}

.site-header[data-open] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 收缩态 */
.site-header[data-condensed] .nav-shell {
  padding-block: 5px;
  background: rgba(6, 18, 14, .96);
  border-color: rgba(200, 255, 61, .28);
}

.site-header[data-condensed] .brand__mark { width: 30px; height: 30px; }
.site-header[data-condensed] .brand__text { font-size: 14px; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--capsule);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn--sm { padding: 9px 16px; font-size: 13px; }

.btn--accent {
  background: var(--acid);
  color: var(--ink);
}

.btn--accent:hover { background: var(--acid-soft); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245, 242, 233, .28);
}

.btn--ghost:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.btn--outline {
  background: transparent;
  color: var(--turf);
  border-color: var(--line-soft);
}

.btn--outline:hover {
  border-color: var(--turf);
  color: var(--ink);
  background: rgba(20, 80, 58, .06);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark:hover { background: var(--turf); }

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

/* ---------- 8. 布局与通用组件 ---------- */
.shell {
  width: min(calc(100% - var(--gutter) * 2), var(--shell-max));
  margin-inline: auto;
}

.main-offset { padding-top: clamp(96px, 12vw, 132px); }

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

/* 索引编号 */
.idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(245, 242, 233, .42);
}

/* 等宽数字 */
.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

/* 纵向注释 */
.vertical-note {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: .3em;
  line-height: 1.2;
  color: var(--moss);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.6;
  border-radius: 2px;
}

.tag--outline {
  background: transparent;
  color: var(--turf);
  border: 1px solid var(--line-soft);
}

.tag--whistle {
  background: var(--whistle);
  color: var(--paper);
}

/* 首屏倾斜标题 */
.title-skew { transform: rotate(-3deg); transform-origin: left bottom; }

/* 卡片 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: var(--acid);
  background: #FFFFFF;
}

.card--dark {
  background: var(--deep);
  border-color: var(--line-paper);
  color: var(--paper);
}

.card--dark:hover,
.card--dark:focus-within {
  background: var(--deep);
  border-color: var(--acid);
}

/* 图片容器基础规则（页面阶段放入 <img> 即可） */
.media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--deep) 0%, var(--ink) 100%);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.88) saturate(1.05);
  transition: transform 420ms var(--ease);
}

.media:hover img { transform: scale(1.035); }

.media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--acid) 0%, transparent 62%);
  opacity: .75;
  pointer-events: none;
}

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

.media--cut {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.media__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 5px 11px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.7;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--moss);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--moss);
  opacity: .7;
}

.breadcrumb a {
  color: var(--turf);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.breadcrumb a:hover {
  color: var(--ink);
  border-bottom-color: var(--acid);
}

/* 分隔线 */
.rule-diagonal {
  height: 1px;
  border: 0;
  margin: clamp(32px, 5vw, 56px) 0;
  background: linear-gradient(90deg, var(--line-soft) 0%, transparent 72%);
}

/* 进入视口显现 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(64px, 10vw, 120px);
  background: var(--ink);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -12%;
  width: min(780px, 92vw);
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 50%, rgba(200, 255, 61, .16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--acid) 18%, var(--line-paper) 62%, transparent 100%);
  opacity: .6;
  z-index: 1;
}

.footer__inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - var(--gutter) * 2), var(--shell-max));
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.9fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line-paper);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
}

.footer__tagline {
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 242, 233, .66);
}

.footer__contact {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer__key {
  flex: 0 0 auto;
  min-width: 42px;
  padding-top: 2px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
}

.footer__val {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 242, 233, .8);
  word-break: break-word;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer__col-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-acid);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--acid);
}

.footer__links {
  display: grid;
  gap: 9px;
}

.footer__links a {
  display: inline-block;
  font-size: 14px;
  color: rgba(245, 242, 233, .72);
  text-decoration: none;
  transition: color 140ms var(--ease), padding-left 140ms var(--ease);
}

.footer__links a:hover {
  color: var(--acid);
  padding-left: 6px;
}

.footer__legal {
  display: grid;
  gap: 16px;
  padding-top: clamp(24px, 4vw, 36px);
}

.footer__note {
  max-width: 72ch;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 242, 233, .5);
}

.footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(245, 242, 233, .46);
}

.footer__legal-row a {
  color: rgba(245, 242, 233, .72);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer__legal-row a:hover { color: var(--acid); }

.footer__closing {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--acid-soft);
}

.footer__closing::before {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  background: var(--acid);
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-link { padding: 9px 11px; font-size: 13px; }
  .nav-actions .btn--sm { padding: 8px 13px; font-size: 12px; }
}

@media (max-width: 980px) {
  .nav-shell {
    justify-content: space-between;
    padding: 8px 10px 8px 14px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-actions { display: none; }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 100px clamp(20px, 6vw, 40px) 40px;
    background:
      radial-gradient(circle at 88% 8%, rgba(200, 255, 61, .14), transparent 58%),
      linear-gradient(160deg, var(--deep) 0%, var(--ink) 64%);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }

  .site-header[data-open] .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 17px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(245, 242, 233, .12);
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--paper);
  }

  .nav-link:hover { background: transparent; color: var(--acid); }

  .nav-link[aria-current="page"] {
    background: transparent;
    color: var(--acid);
  }

  .nav-link[aria-current="page"]::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 12px;
    vertical-align: middle;
    background: var(--acid);
  }

  body.nav-open { overflow: hidden; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { max-width: none; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

@media (min-width: 981px) {
  .site-header[data-condensed] .nav-list { display: none; }
  .site-header[data-condensed] .nav-current { display: inline-flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__text { font-size: 15px; letter-spacing: .06em; }
  .brand__mark { width: 30px; height: 30px; }
  .footer__legal-row { font-size: 11px; gap: 6px 16px; }
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 460px) {
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 9px 11px; }
  .footer__cols { grid-template-columns: 1fr; gap: 26px; }
  .footer__key { min-width: 36px; }
}

/* ---------- 11. 减弱动效 ---------- */
@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;
  }

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

  .media:hover img { transform: none; }
  .footer__links a:hover { padding-left: 0; }
  .title-skew { transform: none; }
}
