/* ==========================================================================
   米博体育中文站 · 共享站点套件 /assets/site.css
   夜场指挥台：墨绿高压背景 · 熔岩橙决策色 · 荧光青绿数据色
   ========================================================================== */

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

* { margin: 0; }

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

body { min-height: 100vh; }

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

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

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

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

a { color: inherit; }

[id] { scroll-margin-top: 76px; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A1D18;
  --ink-deep: #06120E;
  --panel: #123028;
  --glass: rgba(13, 21, 18, 0.78);
  --rock: #23332E;
  --lava: #FF6A2B;
  --lava-soft: #FFB489;
  --aqua: #38F0BE;
  --paper: #F2EBDE;
  --clay: #C2603C;
  --teal: #1C6E63;

  --paper-72: rgba(242, 235, 222, 0.72);
  --paper-58: rgba(242, 235, 222, 0.58);
  --paper-42: rgba(242, 235, 222, 0.42);

  --f-head: "Barlow Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --h1: clamp(30px, 4.4vw, 54px);
  --h2: clamp(22px, 2.6vw, 32px);
  --h3: clamp(18px, 1.9vw, 23px);

  --shadow-hard: 6px 6px 0 #000;
  --shadow-soft: 4px 4px 0 #000;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shell-max: 1280px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: clamp(15.5px, 0.38vw + 14px, 17px);
  font-weight: 450;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--paper);
  text-align: left;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

p { line-height: 1.75; }

small { font-size: 0.82em; }

strong { font-weight: 800; }

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

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

/* ---------- 4. 布局骨架 ---------- */
.shell {
  width: min(var(--shell-max), 100% - 48px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- 5. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--rock);
  background-color: transparent;
  color: var(--paper);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .16s var(--ease), background-color .16s var(--ease),
              color .16s var(--ease), border-color .16s var(--ease),
              box-shadow .16s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.btn--primary {
  background-color: var(--lava);
  border-color: var(--lava);
  color: var(--ink-deep);
}

.btn--primary:hover {
  background-color: var(--lava-soft);
  border-color: var(--lava-soft);
  color: var(--ink-deep);
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--rock);
  color: var(--paper);
}

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

.panel {
  background-color: var(--glass);
  border: 2px solid var(--rock);
  box-shadow: var(--shadow-hard);
  padding: 24px;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--rock);
  background-color: rgba(35, 51, 46, 0.5);
  color: var(--paper-72);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
}

.tag--lava {
  background-color: var(--lava);
  border-color: var(--lava);
  color: var(--ink-deep);
}

.tag--aqua {
  background-color: var(--aqua);
  border-color: var(--aqua);
  color: var(--ink-deep);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background-color: var(--lava);
}

.section-num {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid rgba(194, 96, 60, 0.55);
  color: var(--clay);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.num {
  font-family: var(--f-mono);
  font-size: 1.08em;
  font-variant-numeric: tabular-nums;
  color: var(--aqua);
}

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

.crumbs {
  padding-block: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-42);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--rock);
}

.crumbs a {
  color: var(--paper-72);
  text-decoration: none;
}

.crumbs a:hover { color: var(--lava-soft); }

.crumbs [aria-current="page"] { color: var(--aqua); }

/* 图片容器基础规则，供页面阶段复用 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid var(--rock);
  background-image: linear-gradient(160deg, var(--panel), var(--ink));
  box-shadow: var(--shadow-hard);
}

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06) brightness(0.86);
}

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

.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 12px;
  border-top: 1px solid var(--rock);
  background-color: rgba(10, 29, 24, 0.84);
  color: var(--aqua);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

/* 滚动显现 */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}

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

/* ---------- 6. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 70;
  background-color: var(--ink);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background-color: var(--lava);
  color: var(--ink-deep);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: top .15s var(--ease);
}

.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: 3px;
  background-color: rgba(35, 51, 46, 0.7);
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--lava);
}

/* 品牌行 */
.topbar {
  border-bottom: 1px solid var(--rock);
  background-color: var(--ink);
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 66px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background-color: var(--lava);
  color: var(--ink-deep);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.brand__lockup {
  display: inline-grid;
  gap: 2px;
  line-height: 1.1;
}

.brand__text {
  display: block;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.brand__sub {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aqua);
}

.topbar__note {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--paper-58);
}

.topbar__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.ver-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--rock);
  color: var(--paper-72);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  white-space: nowrap;
}

.topbar__mail {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--lava-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}

.topbar__mail:hover {
  color: var(--lava);
  border-bottom-color: var(--lava);
}

/* 主导航行 */
.navbar {
  background-color: var(--panel);
  border-bottom: 2px solid var(--rock);
}

.navbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.nav__item { display: block; }

.nav__link {
  display: block;
  padding: 16px 14px 13px;
  border-bottom: 3px solid transparent;
  color: var(--paper-72);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s var(--ease), border-color .15s var(--ease),
              background-color .15s var(--ease);
}

.nav__link:hover {
  color: var(--paper);
  border-bottom-color: var(--lava-soft);
}

.nav__link[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--lava);
  background-color: rgba(255, 106, 43, 0.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 2px solid var(--rock);
  background-color: transparent;
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) 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(-5px) rotate(-45deg);
}

.header-cta {
  flex: 0 0 auto;
  font-size: 14px;
  padding: 9px 16px;
}

/* 常用栏 */
.quickbar {
  position: relative;
  z-index: 75;
  background-color: var(--ink-deep);
  border-bottom: 2px solid var(--rock);
}

.quickbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding-block: 6px;
  overflow: hidden;
}

.quickbar__tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  background-color: var(--aqua);
  color: var(--ink-deep);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}

.quickbar__list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.quickbar__list::-webkit-scrollbar { display: none; }

.quickbar__list a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--rock);
  color: var(--paper-72);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s var(--ease), background-color .12s var(--ease),
              border-color .12s var(--ease);
}

.quickbar__list a:hover,
.quickbar__list a:focus-visible {
  background-color: var(--lava);
  border-color: var(--lava);
  color: var(--ink-deep);
}

.site-header.is-pinned .quickbar {
  position: fixed;
  inset: 3px 0 auto 0;
  border-bottom: 2px solid var(--rock);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
}

.site-header.is-pinned .quickbar__inner {
  min-height: 44px;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  margin-top: 0;
  background-color: var(--panel);
  border-top: 2px solid var(--rock);
  color: var(--paper-72);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr;
  gap: 32px;
  padding-block: 56px 44px;
}

.footer__col { min-width: 0; }

.footer__brand .brand__text { font-size: 17px; }

.footer__desc {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-58);
}

.footer__text {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-58);
}

.footer__brand .footer__text { margin-top: 12px; }

.footer__title {
  margin-bottom: 14px;
  color: var(--aqua);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
}

.footer__list {
  display: grid;
  gap: 9px;
}

.footer__list a {
  color: var(--paper-72);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}

.footer__list a:hover {
  color: var(--lava-soft);
  border-bottom-color: var(--lava-soft);
}

.footer__bottom {
  border-top: 1px solid var(--rock);
  padding-block: 18px 22px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  color: var(--paper-42);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
  }
}

@media (max-width: 960px) {
  .topbar__inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand ver"
      "note note";
    gap: 8px 20px;
    min-height: 0;
    padding-block: 14px;
  }

  .brand { grid-area: brand; }
  .topbar__meta { grid-area: ver; }
  .topbar__note { grid-area: note; }

  .topbar__mail { display: none; }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 65;
    background-color: var(--panel);
    border: 2px solid var(--rock);
    box-shadow: var(--shadow-hard);
  }

  .nav[data-open] { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 8px;
    gap: 0;
  }

  .nav__item {
    border-bottom: 1px solid var(--rock);
  }

  .nav__item:last-child { border-bottom: 0; }

  .nav__link {
    padding: 14px 12px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav__link:hover {
    border-bottom-color: transparent;
    border-left-color: var(--lava-soft);
  }

  .nav__link[aria-current="page"] {
    border-bottom-color: transparent;
    border-left-color: var(--lava);
    background-color: rgba(255, 106, 43, 0.12);
  }

  .navbar__inner {
    gap: 12px;
    padding-block: 8px;
  }

  .header-cta {
    margin-left: auto;
  }
}

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

  .quickbar__inner { gap: 8px; }

  .quickbar__tag { display: none; }

  .footer__grid {
    padding-block: 40px 32px;
    gap: 28px 20px;
  }

  .footer__legal { font-size: 11.5px; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }

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

  .panel { padding: 18px; }

  .nav__link { font-size: 14.5px; }

  .header-cta { padding: 8px 12px; font-size: 13px; }

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

  .footer__desc { max-width: none; }
}

/* ---------- 9. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }

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