/* ==========================================================================
   易倍体育登录 · 站点共享样式表
   文件路径：/assets/site.css
   内容：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --paper: #F6F1E6;
  --navy: #0F2C4C;
  --navy-mid: #1D5285;
  --orange: #FF7A29;
  --orange-soft: #FF8F4D;
  --lime: #C6FF4A;
  --ink: #241C15;
  --line-blue: #D9E4EE;
  --warm: #6E6459;
  --orange-pale: #FFE0C2;
  --deep: #061726;

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono",
    Menlo, Consolas, "Courier New", monospace;

  --wrap-width: 1240px;
  --gutter: clamp(16px, 4.2vw, 44px);
  --cut: 22px;
  --cut-sm: 12px;
  --header-h: 118px;

  --ease: cubic-bezier(.22, .68, .28, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(15, 44, 76, .05) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(15, 44, 76, .05) 0 1px, transparent 1px 96px);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
}

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

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

ul, ol { padding-left: 1.25em; }

a { color: inherit; }

button { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

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

.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--lime); }

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3 { font-weight: 800; line-height: 1.16; letter-spacing: -.01em; }

h1 { font-size: clamp(40px, 6.4vw, 88px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }

p { max-width: 38em; }

.num,
.num--xl,
[data-year] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.num--xl {
  font-size: 2.2em;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--warm);
}

.section-index {
  font-family: var(--font-mono);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.vertical-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--warm);
}

/* ---------- 4. 布局容器与网格 ---------- */
.wrap {
  width: min(var(--wrap-width), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.stack {
  display: grid;
  gap: clamp(14px, 2vw, 26px);
  align-content: start;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.6vw, 32px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 5. 面板 / 分隔 / 背景图形 ---------- */
.panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-blue);
  padding: clamp(20px, 3vw, 38px);
}

.panel--cut {
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.panel--navy {
  background: var(--navy);
  color: var(--paper);
  border-color: transparent;
}

.panel--deep {
  background: var(--deep);
  color: var(--paper);
  border-color: rgba(217, 228, 238, .16);
}

.panel--orange {
  background: var(--orange-pale);
  border-color: var(--orange);
}

.slash-divider {
  position: relative;
  height: 44px;
  margin-block: clamp(22px, 4.6vw, 60px);
  overflow: hidden;
}

.slash-divider::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  height: 9px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(102deg, var(--navy) 0 34px, transparent 34px 68px);
  opacity: .9;
}

.slash-divider::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  height: 2px;
  transform: translateY(14px);
  background: var(--orange);
  opacity: .8;
}

.track-field { position: relative; }

.track-field::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(29, 82, 133, .16) 0 1px, transparent 1px 64px);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
    border-color .22s var(--ease), transform .22s var(--ease);
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
}

.btn--primary {
  background: var(--orange);
  color: var(--deep);
}

.btn--primary:hover { background: var(--orange-soft); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 241, 230, .42);
}

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

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--warm);
}

.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }

.crumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--line-blue);
}

.crumbs__item a { text-decoration: none; }
.crumbs__item a:hover { color: var(--orange); }

/* ---------- 8. 图片容器基础 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line-blue);
}

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

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

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

.media--empty {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(29, 82, 133, .92) 0 12px,
    rgba(15, 44, 76, .92) 12px 24px
  );
}

.media--empty::after {
  content: "DATA VISUAL";
  position: absolute;
  left: 16px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(198, 255, 74, .78);
}

.media__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(rgba(198, 255, 74, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 74, .12) 1px, transparent 1px);
  background-size: 52px 52px;
}

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 9px 14px;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
}

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 220;
  padding: 11px 20px;
  background: var(--lime);
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform .22s var(--ease);
}

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

/* ---------- 10. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--paper);
}

.header-bar { position: relative; }

.header-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 34px);
  padding-block: 13px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
  color: var(--paper);
  text-decoration: none;
  flex: none;
}

.brand__mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  flex: none;
}

.brand__mark i {
  display: block;
  width: 5px;
  transform: skewX(-20deg);
  border-radius: 1px;
}

.brand__mark i:nth-child(1) { height: 15px; background: var(--orange); }
.brand__mark i:nth-child(2) { height: 21px; background: rgba(246, 241, 230, .88); }
.brand__mark i:nth-child(3) { height: 28px; background: var(--lime); }

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

.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--lime);
  white-space: nowrap;
}

/* 主导航 */
.nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.6vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(246, 241, 230, .78);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--ease);
}

.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 74, .2);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  background: transparent;
  border: 1px solid rgba(217, 228, 238, .34);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle__bars i {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

/* 联赛切换带 */
.league-strip {
  background: var(--deep);
  border-top: 1px solid rgba(217, 228, 238, .14);
}

.league-strip__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.league-strip__inner::-webkit-scrollbar { display: none; }

.league-strip__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--lime);
}

.league-strip__tags {
  display: flex;
  flex: none;
  gap: 8px;
}

.league-tag {
  padding: 5px 16px;
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(246, 241, 230, .72);
  background: transparent;
  border: 1px solid rgba(217, 228, 238, .24);
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
    border-color .22s var(--ease);
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 50%,
    calc(100% - 10px) 100%,
    0 100%
  );
}

.league-tag:hover {
  color: var(--paper);
  border-color: var(--lime);
}

.league-tag[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--deep);
  font-weight: 700;
}

.league-strip__status {
  flex: none;
  margin-left: auto;
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(246, 241, 230, .58);
  white-space: nowrap;
}

/* 滚动进度条 */
.header-progress {
  height: 3px;
  background: rgba(217, 228, 238, .16);
}

.header-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transition: width .14s linear;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 9vw, 120px);
  background: var(--deep);
  color: var(--paper);
  border-top: 6px solid var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px);
}

.footer-col { min-width: 0; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
}

.footer-brand .brand__mark { height: 24px; }

.footer-tagline {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--lime);
}

.footer-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(246, 241, 230, .66);
  max-width: 34ch;
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--orange);
}

.footer-links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-size: 15px;
  color: rgba(246, 241, 230, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer-links a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-contact {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246, 241, 230, .78);
}

.footer-key {
  display: inline-block;
  min-width: 5em;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(198, 255, 74, .85);
}

.footer-timeline {
  height: 24px;
  border-top: 1px solid rgba(217, 228, 238, .14);
  background-image:
    repeating-linear-gradient(90deg, rgba(246, 241, 230, .32) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, var(--lime) 0 1px, transparent 1px 72px);
  background-repeat: repeat-x, repeat-x;
  background-position: 0 100%, 0 100%;
  background-size: 12px 8px, 72px 18px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(246, 241, 230, .52);
}

.footer-legal p { max-width: none; }

/* ---------- 12. 入场动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

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

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 116px; }

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

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: block;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 14px) var(--gutter) 56px;
    background: var(--deep);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .28s var(--ease), visibility .28s;
  }

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

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

  .nav__list li { border-bottom: 1px solid rgba(217, 228, 238, .14); }

  .nav__link {
    display: block;
    padding: 16px 4px;
    font-size: 17px;
  }

  .nav__link::after {
    left: 0;
    right: auto;
    bottom: 9px;
    width: 22px;
  }

  .nav__link[aria-current="page"] { color: var(--lime); }
  .nav__link[aria-current="page"]::before { display: none; }

  .league-strip__status { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .brand__sub { display: none; }

  .brand__name { font-size: 16px; }

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

  .footer-legal { flex-direction: column; }
}

@media (max-width: 420px) {
  .nav-toggle__text { display: none; }
  .league-strip__label { display: none; }
}

/* ---------- 14. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .header-progress__bar { transition: none; }
}
