/* ============================================================
   MANBETX体育 — 共享 Site Kit
   /assets/site.css
   1. 令牌与变量   2. Reset   3. 基础排版   4. 按钮
   5. 头部        6. 页脚     7. 通用组件（容器/卡片/图片/面包屑）
   8. 动效与可访问性
   ============================================================ */

/* ---------- 1. 令牌与变量 ---------- */
:root {
  /* 色彩体系 */
  --ink: #0B0F0E;          /* 炭黑底 */
  --deep: #0F2A22;         /* 深墨绿 */
  --moss: #163D31;         /* 苔绿面 */
  --lime: #C6FF3D;         /* 荧光青柠 */
  --lime-soft: #E4FF9A;    /* 浅青柠 */
  --amber: #E8A33D;        /* 琥珀金 */
  --bone: #F2F3EA;         /* 骨白 */
  --mist: #A9B8AE;         /* 雾灰绿 */
  --line: #2A463B;         /* 结构线 */

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺度 */
  --maxw: 1240px;
  --edge: 20px;
  --header-h: 64px;
  --radius-sm: 10px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

@media (min-width: 768px) {
  :root { --edge: 48px; --header-h: 72px; }
  body { font-size: 17px; }
}

@media (min-width: 1280px) {
  :root { --edge: 72px; }
}

/* ---------- 2. 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, dt, dd,
ul, ol { margin: 0; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button { font: inherit; color: inherit; }

a {
  color: var(--bone);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

/* ---------- 3. 基础排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--bone);
}

h1, h2 { line-height: .95; }
h3 { line-height: 1.1; font-size: clamp(20px, 2.4vw, 26px); }
h4 { line-height: 1.3; font-size: 17px; letter-spacing: -.01em; }

h1 { font-size: clamp(40px, 8vw, 96px); }
h2 { font-size: clamp(28px, 4.6vw, 52px); }

p { max-width: 42ch; }

strong { font-weight: 700; color: var(--bone); }

/* 长文正文容器 */
.prose { max-width: 42ch; }
.prose > * + * { margin-top: 1.1em; }
.prose p { max-width: none; }
.prose ul, .prose ol {
  padding-left: 1.1em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--lime-soft); }

/* 等宽数字与轮次标注 */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.round-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--amber);
  background: rgba(232, 163, 61, .1);
  border: 1px solid rgba(232, 163, 61, .38);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease),
              color 200ms var(--ease),
              border-color 200ms var(--ease),
              transform 200ms var(--ease);
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.btn-primary:hover {
  background: var(--lime-soft);
  border-color: var(--lime-soft);
  transform: translateY(-1px);
}

.btn-login {
  background: transparent;
  color: var(--lime);
  border-color: var(--lime);
  padding: 10px 18px;
  font-size: 13px;
}
.btn-login:hover {
  background: var(--lime);
  color: var(--ink);
}

.btn-ghost {
  background: rgba(22, 61, 49, .5);
  border-color: var(--line);
  color: var(--bone);
}
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-1px);
}

/* ---------- 5. 头部 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 300;
  padding: 10px 22px;
  border-radius: 0 0 12px 12px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, -130%);
  transition: transform 200ms var(--ease);
}
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: -4px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(11, 15, 14, .78), rgba(11, 15, 14, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 240ms var(--ease),
              background-image 240ms var(--ease),
              border-color 240ms var(--ease),
              box-shadow 240ms var(--ease);
}

.site-header[data-scrolled="true"] {
  background-color: rgba(11, 15, 14, .95);
  background-image: none;
  border-bottom-color: var(--line);
  box-shadow: 0 22px 48px -38px #000;
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
}

.site-header[data-nav-open="true"] {
  background-color: var(--ink);
  background-image: none;
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

/* 品牌锁定单元 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--bone);
  text-decoration: none;
}
.brand:hover { color: var(--bone); }

.brand-mark {
  display: block;
  width: 12px;
  height: 26px;
  border-radius: 2px 9px 2px 9px;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(198, 255, 61, .3),
              0 0 20px rgba(198, 255, 61, .38);
  transform: skewX(-9deg);
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--bone);
}

.brand-tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 1.2;
  color: var(--mist);
  text-transform: uppercase;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 61, 49, .55);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: 0 0 auto;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease), top 240ms var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8px; }

.nav-toggle.is-active { color: var(--lime); border-color: var(--lime); }
.nav-toggle.is-active .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bars::after { top: 4px; transform: rotate(-45deg); }

.nav-toggle-label {
  display: block;
  line-height: 1;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--mist);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms var(--ease);
}
.nav-link:hover { color: var(--bone); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--lime);
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  height: 2px;
}

/* 头部状态条 */
.site-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  max-height: 64px;
  padding: 7px max(var(--edge), calc((100% - var(--maxw)) / 2 + var(--edge)));
  border-top: 1px solid rgba(42, 70, 59, .7);
  background: rgba(15, 42, 34, .55);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.6;
  color: var(--mist);
  text-transform: uppercase;
  overflow: hidden;
  opacity: 1;
  transition: max-height 260ms var(--ease),
              opacity 200ms var(--ease),
              padding 260ms var(--ease);
}

.site-header[data-scrolled="true"] .site-status {
  max-height: 0;
  padding-block: 0;
  border-top-color: transparent;
  opacity: 0;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, .18);
  flex: 0 0 auto;
}

/* 阅读进度线 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  pointer-events: none;
}

/* 页面顶部占位（供非通栏首屏避开固定头部） */
.header-spacer {
  height: calc(var(--header-h) + 34px);
}

/* 移动端头部形态 */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    order: 3;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    margin-top: 4px;
    padding-block: 8px 18px;
    border-top: 1px solid var(--line);
    max-height: calc(100dvh - var(--header-h) - 48px);
    overflow-y: auto;
  }

  .site-nav[data-open="true"] { display: flex; }

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

  .nav-link {
    display: block;
    padding: 13px 6px;
    font-size: 14px;
    letter-spacing: .06em;
    border-radius: 0;
    border-bottom: 1px solid rgba(42, 70, 59, .55);
  }
  .nav-link::after { left: 6px; right: auto; width: 18px; bottom: 7px; }
  .nav-link:hover { background: rgba(22, 61, 49, .45); }

  .btn-login {
    align-self: flex-start;
    margin-top: 16px;
    padding: 11px 22px;
  }
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  padding-top: 8px;
  background: linear-gradient(180deg, var(--deep) 0%, var(--ink) 68%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -140px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 61, .16), rgba(198, 255, 61, 0) 68%);
  pointer-events: none;
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 32px;
  padding-block: 56px 40px;
}

.footer-brand { grid-column: 1 / -1; }

.footer-lede {
  max-width: 30ch;
  margin-top: 18px;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.7;
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.footer-contact-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: baseline;
}

.footer-contact-row dt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--amber);
  text-transform: uppercase;
}

.footer-contact-row dd {
  color: var(--bone);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.footer-contact-note {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--mist);
  font-size: 12px;
  line-height: 1.7;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.4;
  color: var(--lime);
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.footer-links {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}

.footer-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--mist);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}
.footer-links a:hover {
  color: var(--lime);
  transform: translateX(3px);
}

.footer-help {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(22, 61, 49, .42);
}

.footer-help-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--lime);
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-help-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-help-list a {
  color: var(--mist);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.footer-help-list a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 32px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
}

.footer-copy,
.footer-legal { max-width: none; }

.footer-right {
  max-width: none;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}
.footer-right a {
  color: var(--mist);
  text-decoration: none;
}
.footer-right a:hover { color: var(--lime); }

@media (min-width: 720px) {
  .footer-top { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    align-items: start;
    padding-block: 72px 48px;
  }
  .footer-brand { grid-column: auto; }
}

/* ---------- 7. 通用组件 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.section-title {
  font-size: clamp(28px, 4.6vw, 52px);
  color: var(--bone);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--lime);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: var(--lime);
}

.lede {
  max-width: 42ch;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.8;
}

/* 面包屑 */
.breadcrumb { padding-block: 20px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--bone); }

/* 资料卡片 */
.card {
  position: relative;
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(22, 61, 49, .9), rgba(15, 42, 34, .75));
  color: var(--bone);
  text-decoration: none;
  transition: border-color 220ms var(--ease),
              transform 220ms var(--ease),
              background-color 220ms var(--ease);
}
.card:hover {
  border-color: rgba(198, 255, 61, .48);
  transform: translateY(-2px);
}

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--moss);
}

.media-frame > img,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.05) brightness(.92);
  transition: transform 560ms var(--ease), filter 560ms var(--ease);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 15, 14, 0) 38%, rgba(11, 15, 14, .74) 100%),
    radial-gradient(120% 90% at 86% 0%, rgba(198, 255, 61, .22), rgba(198, 255, 61, 0) 62%);
  pointer-events: none;
}

.media-frame:hover > img,
.media-frame:hover > picture > img {
  transform: scale(1.04);
  filter: saturate(.88) contrast(1.06) brightness(1);
}

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

/* ---------- 8. 动效与可访问性 ---------- */
.reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal-ready,
  .reveal-ready.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

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