/* =========================================================
   UNIBET赛场 — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   ========================================================= */

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; }

/* ---------- 2. Design tokens ---------- */
:root {
  --ink: #0B1F1A;
  --carbon: #12171A;
  --deep: #1A2A26;
  --lime: #C8FF3D;
  --orange: #FF7A3D;
  --mist: #F2F5F1;
  --slate: #7C8B86;
  --white: #FFFFFF;
  --glass: rgba(28, 43, 39, 0.72);

  --line: rgba(242, 245, 241, 0.12);
  --line-soft: rgba(242, 245, 241, 0.07);
  --line-lime: rgba(200, 255, 61, 0.38);
  --line-warn: rgba(255, 122, 61, 0.42);

  --display: "Arial Narrow", "Helvetica Neue Condensed", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shell: min(1320px, 100% - clamp(32px, 8vw, 96px));
  --radius: 18px;
  --radius-lg: 26px;
  --header-space: 96px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--header-space);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(200, 255, 61, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 61, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--mist);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1.2;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { color: rgba(242, 245, 241, 0.82); }

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

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

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

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

/* ---------- 4. 容器与节奏 ---------- */
.container {
  width: var(--shell);
  margin-inline: auto;
}

.section { padding-block: clamp(44px, 7vw, 92px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--lime);
}

.index-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- 5. 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 220;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- 6. 头部：悬浮胶囊导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 14px clamp(16px, 3vw, 34px) 0;
  pointer-events: none;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(242, 245, 241, 0.07);
  z-index: 120;
}

.read-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.header-inner {
  max-width: 1320px;
  margin-inline: auto;
}

.nav-shell {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  pointer-events: auto;
  transition: padding 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.site-header.is-compact .nav-shell {
  padding-block: 6px;
  border-color: var(--line-lime);
  box-shadow: 0 18px 44px -28px rgba(200, 255, 61, 0.5);
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--lime);
  color: var(--carbon);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.brand__name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.brand__tagline {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--slate);
}

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

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

.nav-item { display: block; }

.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  color: rgba(242, 245, 241, 0.76);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(242, 245, 241, 0.06);
}

.nav-link[aria-current="page"] {
  color: var(--lime);
  border-color: var(--line-lime);
  background: rgba(200, 255, 61, 0.09);
}

.nav-cta {
  flex: 0 0 auto;
  padding: 9px 16px;
  font-size: 13.5px;
  white-space: nowrap;
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--line-lime);
  color: var(--lime);
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__icon i {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 130px);
  padding: clamp(42px, 6vw, 78px) 0 26px;
  background: var(--carbon);
  border-top: 1px solid var(--line-soft);
  color: rgba(242, 245, 241, 0.72);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(360px, 46%);
  height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent);
}

.footer-inner { width: var(--shell); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1.25fr 1.05fr;
  gap: clamp(22px, 3.4vw, 52px);
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
}

.footer-col__title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 245, 241, 0.85);
}

.footer-brand {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-note {
  font-size: 14px;
  line-height: 1.9;
  color: var(--slate);
}

.footer-icp {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(242, 245, 241, 0.72);
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--lime);
  transform: translateX(2px);
}

.footer-link--inline {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.footer-list--meta li {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: rgba(242, 245, 241, 0.68);
  word-break: break-word;
}

.footer-list--legal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
}

/* 第三栏：固定反馈入口 */
.footer-col--feedback {
  padding: 22px;
  gap: 12px;
  border: 1px solid var(--line-warn);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 122, 61, 0.1), rgba(18, 23, 26, 0.6) 70%);
}

.footer-col--feedback .footer-col__title { color: var(--orange); }

.footer-feedback__text {
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(242, 245, 241, 0.8);
}

.footer-feedback__hint {
  font-size: 13px;
  line-height: 1.9;
  color: var(--slate);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 4vw, 54px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.footer-copy--muted { color: rgba(124, 139, 134, 0.72); }

/* ---------- 8. 按钮 / 标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 14px 34px -18px rgba(200, 255, 61, 0.85);
}

.btn--primary:hover { transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--line);
  color: var(--mist);
  background: rgba(242, 245, 241, 0.03);
}

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

.btn--warn {
  border-color: var(--line-warn);
  background: rgba(255, 122, 61, 0.14);
  color: var(--orange);
}

.btn--warn:hover {
  background: var(--orange);
  color: var(--carbon);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 245, 241, 0.72);
}

.tag--lime {
  border-color: var(--line-lime);
  background: rgba(200, 255, 61, 0.1);
  color: var(--lime);
}

.tag--warn {
  border-color: var(--line-warn);
  background: rgba(255, 122, 61, 0.12);
  color: var(--orange);
}

/* ---------- 9. 数据焦点 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lime);
}

.stat__label {
  font-size: 13px;
  line-height: 1.9;
  color: var(--slate);
}

/* ---------- 10. 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(26, 42, 38, 0.92), rgba(18, 23, 26, 0.88));
}

.card__title {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 800;
  color: var(--white);
}

.card__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.card__text {
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(242, 245, 241, 0.78);
}

.card--focus {
  border-color: var(--line-lime);
  background: linear-gradient(160deg, rgba(200, 255, 61, 0.12), rgba(18, 23, 26, 0.92) 58%);
}

.card--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.card--warn {
  border-color: var(--line-warn);
  background: linear-gradient(160deg, rgba(255, 122, 61, 0.1), rgba(18, 23, 26, 0.9) 62%);
}

/* ---------- 11. Bento 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
}

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

/* ---------- 12. 图像 / 图形容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(200, 255, 61, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 61, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}

.media img {
  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--tall { aspect-ratio: 3 / 4; }

.media__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(11, 31, 26, 0.72);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ---------- 13. 面包屑 / 正文 / 侧轴 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(242, 245, 241, 0.24);
}

.breadcrumb a {
  color: rgba(242, 245, 241, 0.68);
  text-decoration: none;
}

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

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
}

.prose > * + * { margin-top: 1.15em; }

.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }

.prose p { color: rgba(242, 245, 241, 0.8); }

.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.prose ul,
.prose ol {
  padding-left: 1.15em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: 0.5em; }

.rail {
  position: sticky;
  top: 118px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.rail__title {
  margin-bottom: 8px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

.rail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-left: 2px solid transparent;
  border-radius: 0 10px 10px 0;
  color: var(--slate);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.rail__item:hover { color: var(--mist); }

.rail__item.is-active,
.rail__item[aria-current="true"] {
  border-left-color: var(--lime);
  background: rgba(200, 255, 61, 0.08);
  color: var(--lime);
}

/* ---------- 14. 动效协议 ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

[data-section] { scroll-margin-top: 120px; }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  .brand__tagline { display: none; }
}

@media (max-width: 1040px) {
  .nav-link { padding: 8px 9px; font-size: 14px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 960px) {
  :root { --header-space: 84px; }

  .site-header { padding: 10px 14px 0; }

  .nav-shell {
    border-radius: 24px;
    padding: 9px 12px;
  }

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

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
  }

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

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

  .nav-link {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 14px;
  }

  .nav-cta {
    justify-content: center;
    padding: 12px 16px;
    font-size: 14.5px;
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--feedback { order: -1; grid-column: 1 / -1; }
  .rail { position: static; }
}

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

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

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col__title { letter-spacing: 0.14em; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  .footer-link:hover { transform: none; }
  .btn--primary:hover { transform: none; }
}
