/* =========================================================
   安博赛事 · 乐动体育平台 CN
   共享样式表 /assets/site.css
   仅负责 reset、变量、中文排版、头部、页脚、通用组件
   ========================================================= */

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

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

body { margin: 0; }

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --ink-900: #080F22;
  --ink-700: #101C3A;
  --ink-500: #1B2A4E;
  --line-800: #1A2848;
  --line-600: #26375F;
  --steel-400: #8E9AB3;
  --white-050: #F4F7FA;
  --grass-500: #1FD95F;
  --grass-700: #0E8F3D;
  --neon-500: #FF7A1A;
  --score-red: #FF3B47;
  --cyan-400: #2FE8E8;
  --violet-500: #7B61FF;

  /* 字体 */
  --font-display: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 尺度 */
  --shell-w: min(1280px, 92vw);
  --gut: clamp(16px, 3.6vw, 44px);
  --r: 4px;
  --header-h: 74px;

  /* 阴影与缓动 */
  --shadow-hard: 6px 6px 0 var(--grass-700);
  --shadow-hard-ink: 6px 6px 0 #02060F;
  --ease: cubic-bezier(.2, .72, .28, 1);

  /* 层级 */
  --z-header: 100;
  --z-nav: 90;
  --z-toggle: 110;
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  background: var(--ink-900);
  color: var(--white-050);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

/* ---------- 4. 焦点与可访问性 ---------- */
:focus { outline: none; }

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 14px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--cyan-400);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--r);
  box-shadow: 4px 4px 0 rgba(8, 15, 34, .8);
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* ---------- 5. 页面骨架工具 ---------- */
.shell {
  width: var(--shell-w);
  margin-inline: auto;
}

.section {
  padding: clamp(44px, 7vw, 96px) 0;
}

.prose {
  max-width: 68ch;
}

.prose p + p { margin-top: 1em; }

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

.hard { box-shadow: var(--shadow-hard); }
.hard-ink { box-shadow: var(--shadow-hard-ink); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 2px solid var(--grass-500);
  border-radius: var(--r);
  background: var(--grass-500);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 rgba(14, 143, 61, .55);
  transition: transform .18s var(--ease),
              box-shadow .18s var(--ease),
              background-color .18s var(--ease),
              color .18s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--grass-700);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--grass-700);
}

.btn--ghost {
  background: transparent;
  color: var(--grass-500);
}

.btn--ghost:hover {
  background: var(--grass-500);
  color: var(--ink-900);
}

/* ---------- 7. 标签与刻度 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--grass { color: var(--grass-500); }
.tag--orange { color: var(--neon-500); }
.tag--violet { color: var(--violet-500); }
.tag--cyan { color: var(--cyan-400); }
.tag--red { color: var(--score-red); }

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

.breadcrumb a {
  color: var(--steel-400);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.breadcrumb a:hover { color: var(--grass-500); }

.breadcrumb__sep { color: #38496F; }

.breadcrumb [aria-current="page"] { color: var(--white-050); }

/* ---------- 9. 图片容器基础 ---------- */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-500);
  border: 2px solid #22304F;
  border-radius: var(--r);
}

.frame > img,
.frame > picture > img,
.frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.frame--21x9 { aspect-ratio: 21 / 9; }
.frame--1x1 { aspect-ratio: 1 / 1; }
.frame--3x4 { aspect-ratio: 3 / 4; }

.frame--tilt {
  clip-path: polygon(0 1.6%, 100% 0, 100% 98.4%, 0 100%);
}

.frame__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(8, 15, 34, .08) 0%, rgba(8, 15, 34, .80) 100%);
}

.frame__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 10px;
  background: var(--neon-500);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ---------- 10. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(8, 15, 34, .95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-800);
  box-shadow: 0 1px 0 rgba(31, 217, 95, .18);
}

.header-bar {
  width: var(--shell-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--white-050);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 2px solid var(--grass-500);
  border-radius: var(--r);
  background: var(--grass-500);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--ink-500);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.brand:hover .brand__mark {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--grass-700);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grass-500);
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 2px solid var(--line-600);
  border-radius: var(--r);
  background: var(--ink-700);
  color: var(--white-050);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: var(--z-toggle);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

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

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 导航（桌面默认） */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 18px);
}

.nav-list > li > a {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  color: #C9D3E6;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .18s var(--ease);
}

.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background: var(--grass-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}

.nav-list > li > a:hover { color: var(--white-050); }
.nav-list > li > a:hover::after { transform: scaleX(1); }

.nav-list > li > a[aria-current="page"] {
  color: var(--grass-500);
  font-weight: 700;
}

.nav-list > li > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-drawer-foot { display: none; }

/* 滚动进度条 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--grass-500) 0%, var(--cyan-400) 100%);
  pointer-events: none;
  will-change: transform;
}

body.is-nav-open { overflow: hidden; }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 9vw, 110px);
  background: var(--ink-700);
  border-top: 3px solid var(--grass-700);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: min(260px, 34%);
  height: 3px;
  background: var(--neon-500);
}

.footer-inner {
  width: var(--shell-w);
  margin-inline: auto;
  padding: clamp(36px, 6vw, 68px) 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr 1.4fr;
  gap: clamp(20px, 3vw, 40px);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.footer-tag {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel-400);
}

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grass-500);
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-list a {
  display: inline-block;
  color: #C0CBE0;
  font-size: 14px;
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.footer-list a:hover {
  color: var(--grass-500);
  padding-left: 4px;
}

.footer-contact {
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #C0CBE0;
}

.footer-contact__item {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--white-050);
  word-break: break-all;
}

.footer-contact__note {
  font-size: 12.5px;
  color: var(--steel-400);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(28px, 5vw, 52px);
  padding-top: 18px;
  border-top: 1px solid #23325A;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--steel-400);
}

/* ---------- 12. 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* ---------- 13. 平板 ---------- */
@media (max-width: 1120px) {
  .nav-list > li > a { font-size: 14px; }
  .nav-cta .btn { padding: 10px 15px; font-size: 13px; }
}

/* ---------- 14. 移动端 ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

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

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 1px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-nav);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 28px var(--gut) 40px;
    background: var(--ink-900);
    background-image: linear-gradient(180deg, rgba(31, 217, 95, .08), rgba(8, 15, 34, 0) 46%);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: transform .32s var(--ease),
                opacity .26s var(--ease),
                visibility .32s;
  }

  .site-nav[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

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

  .nav-list > li + li { border-top: 1px solid var(--line-800); }

  .nav-list > li > a {
    display: block;
    padding: 16px 0;
    font-size: 21px;
    font-weight: 700;
    color: var(--white-050);
  }

  .nav-list > li > a::after { display: none; }

  .nav-list > li > a:hover { color: var(--grass-500); }

  .nav-list > li > a[aria-current="page"] { color: var(--grass-500); }

  .nav-cta {
    margin-top: 26px;
    display: block;
  }

  .nav-cta .btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 15px;
  }

  .nav-drawer-foot {
    display: block;
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px dashed var(--line-600);
    font-size: 13px;
    color: var(--steel-400);
  }

  .nav-drawer-foot a {
    color: var(--grass-500);
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.02em;
    text-decoration: none;
    word-break: break-all;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col--brand,
  .footer-col--contact { grid-column: auto; }
  .footer-base { font-size: 11.5px; }
}

/* ---------- 15. 降低动效 ---------- */
@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;
  }

  .btn:hover,
  .brand:hover .brand__mark,
  .footer-list a:hover {
    transform: none;
  }
}
