/* ============================================
   易倍赛事 Site Kit — /assets/site.css
   全局基础：变量、重置、排版、头部、页脚、
   通用组件与交互协议
   ============================================ */

/* ---------- 变量 ---------- */
:root {
  --c-bg: #0a1a2f;
  --c-bg-deep: #061124;
  --c-bg-soft: #10233c;
  --c-yellow: #f5c518;
  --c-orange: #ff7f00;
  --c-cyan: #0e4d5c;
  --c-wine: #8a1c2d;
  --c-indigo: #2a3b6e;
  --c-white: #ffffff;
  --c-gray: #c0c8d0;
  --c-black: #111111;

  --font-heading: Impact, Anton, "Arial Black", "Noto Sans SC", sans-serif;
  --font-body: Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-number: "Roboto Mono", "Consolas", monospace;

  --radius-pill: 999px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --container-max: 1200px;
}

/* ---------- Reset 与基础排版 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-white);
  background-color: var(--c-bg);
  background-image:
    linear-gradient(rgba(245, 197, 24, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 24, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
  width: 100%;
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--c-white);
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding-left: 1.4em;
}

a {
  color: var(--c-yellow);
  text-underline-offset: 4px;
}

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

/* ---------- 焦点可见 ---------- */
:focus-visible {
  outline: 3px solid var(--c-yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: -999px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--c-yellow);
  color: var(--c-black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 8px;
}

/* ---------- 内容容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(6, 17, 36, 0.97) 0%, rgba(10, 26, 47, 0.92) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.12);
  box-shadow: var(--shadow-sm);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-yellow) 55%, transparent 90%);
  z-index: 1;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(245, 197, 24, 0.05) 55%, rgba(255, 127, 0, 0.09));
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 12px 24px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__cta {
  flex-shrink: 0;
}

/* ---------- 品牌组合 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--c-yellow);
  color: var(--c-black);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 10px;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 rgba(255, 127, 0, 0.45);
  transition: transform 0.25s ease;
}

.brand:hover .brand__mark {
  transform: rotate(3deg);
}

.brand__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-heading);
  color: var(--c-white);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.brand__tag {
  font-family: var(--font-number);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--c-yellow);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- 主导航 ---------- */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: rgba(16, 35, 60, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
}

.site-nav__item {
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--c-gray);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.site-nav__link:hover {
  background: rgba(245, 197, 24, 0.1);
  color: var(--c-white);
}

.site-nav__link[aria-current="page"] {
  background: var(--c-yellow);
  color: var(--c-black);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(245, 197, 24, 0.3);
}

/* ---------- 移动菜单按钮 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(245, 197, 24, 0.4);
  background: rgba(10, 26, 47, 0.8);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-yellow);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 按钮体系 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--c-yellow);
  color: var(--c-black);
  box-shadow: 0 4px 18px rgba(245, 197, 24, 0.25);
}

.btn--primary:hover {
  background: transparent;
  color: var(--c-yellow);
  border-color: var(--c-yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(122, 133, 144, 0.5);
}

.btn--ghost:hover {
  border-color: var(--c-yellow);
  color: var(--c-yellow);
  transform: translateY(-2px);
}

.btn--small {
  padding: 6px 16px;
  font-size: 0.82rem;
}

/* ---------- 页面标题区 ---------- */
.page-hero {
  padding: 64px 0 32px;
  position: relative;
}

.page-hero__title {
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.page-hero__sub {
  max-width: 680px;
  color: var(--c-gray);
  font-size: 1.04rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-number);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--c-orange);
  text-transform: uppercase;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 16px 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px 14px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--c-gray);
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(245, 197, 24, 0.5);
  font-family: var(--font-number);
}

.breadcrumb a {
  color: var(--c-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--c-yellow);
}

.breadcrumb li[aria-current="page"] {
  color: var(--c-yellow);
  font-family: var(--font-number);
}

/* ---------- 区块标题 ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--c-white);
  margin: 0 0 22px;
}

.section-title::before {
  content: "";
  width: 6px;
  height: 1.25em;
  background: linear-gradient(180deg, var(--c-yellow), var(--c-orange));
  border-radius: 2px;
  transform: skewX(-10deg);
}

.section-title__link {
  margin-left: auto;
  font-family: var(--font-number);
  font-size: 0.8rem;
  color: var(--c-yellow);
  text-decoration: none;
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.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));
}

/* ---------- 卡片 ---------- */
.card {
  background: linear-gradient(150deg, rgba(16, 35, 60, 0.65), rgba(10, 26, 47, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 24, 0.35);
  box-shadow: var(--shadow-md);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.card__body {
  color: var(--c-gray);
  font-size: 0.92rem;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  font-family: var(--font-number);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--c-cyan);
  color: var(--c-white);
  white-space: nowrap;
}

.tag--accent {
  background: var(--c-orange);
  color: var(--c-black);
}

.tag--warn {
  background: var(--c-wine);
  color: var(--c-white);
}

/* ---------- 数据数字 ---------- */
.data-number {
  font-family: var(--font-number);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--c-yellow);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.data-number--sm {
  font-size: 1.4rem;
}

.data-number--accent {
  color: var(--c-orange);
}

.data-label {
  display: block;
  font-family: var(--font-number);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--c-gray);
  text-transform: uppercase;
}

/* ---------- 分隔线 ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.35), transparent 80%);
  border: 0;
  margin: 32px 0;
}

/* ---------- 图片容器占位 ---------- */
.media {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: linear-gradient(125deg, var(--c-indigo) 0%, var(--c-bg-soft) 45%, var(--c-cyan) 130%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.media--portrait {
  aspect-ratio: 3 / 4;
}

.media--wide {
  aspect-ratio: 21 / 9;
}

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

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__label {
  font-family: var(--font-number);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-yellow) 0%, var(--c-orange) 100%);
  z-index: 400;
  pointer-events: none;
  transition: width 0.08s ease-out, opacity 0.3s ease;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--c-yellow);
  background: rgba(10, 26, 47, 0.88);
  color: var(--c-yellow);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.back-to-top:hover {
  background: var(--c-yellow);
  color: var(--c-black);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: 64px;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-deep) 18%);
  border-top: 1px solid rgba(245, 197, 24, 0.12);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-yellow) 0%, var(--c-orange) 60%, transparent 100%);
}

.site-footer::after {
  content: "24H · DAILY";
  position: absolute;
  right: -30px;
  bottom: -50px;
  font-family: var(--font-number);
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(245, 197, 24, 0.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.site-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 56px 24px 36px;
}

.site-footer__about {
  max-width: 360px;
}

.site-footer__desc {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: var(--c-gray);
  line-height: 1.8;
}

.site-footer__heading {
  margin: 0 0 14px;
  font-family: var(--font-number);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--c-yellow);
  text-transform: uppercase;
}

.site-footer__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-footer__links a {
  display: inline-block;
  padding: 4px 0;
  text-decoration: none;
  color: var(--c-gray);
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-footer__links a:hover {
  color: var(--c-yellow);
  border-bottom-color: var(--c-yellow);
}

.site-footer__contact .site-footer__line {
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--c-gray);
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--c-gray);
}

.site-footer__copyright {
  margin: 0;
}

.site-footer__icp {
  margin: 0;
  font-family: var(--font-number);
}

.site-footer__trust {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 24px 24px;
  font-size: 0.78rem;
  color: rgba(192, 200, 208, 0.7);
}

.site-footer__trust p {
  margin: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }

  .site-header__cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    z-index: 99;
    padding: 10px;
    background: rgba(6, 17, 36, 0.98);
    border: 1px solid rgba(245, 197, 24, 0.22);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .site-nav__link {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1rem;
  }

  .site-nav__link[aria-current="page"] {
    border-radius: var(--radius-pill);
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 44px;
  }

  .site-footer__about {
    max-width: none;
  }

  .site-footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .site-footer__trust {
    text-align: center;
  }

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

@media (max-width: 640px) {
  .site-header__inner {
    padding: 10px 16px;
  }

  .brand__tag {
    display: none;
  }

  .brand__name {
    font-size: 1.1rem;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding-inline: 16px;
  }
}

/* ---------- 减少动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .brand__mark,
  .card,
  .btn,
  .nav-toggle__bar,
  .site-nav,
  .back-to-top,
  .scroll-progress {
    transition: none;
  }
}
