/* ==========================================================================
   浩瀚体育赛场 · 共享样式表 /assets/site.css
   01 变量与重置  02 中文排版  03 通用组件  04 命令栏  05 页脚  06 响应式
   ========================================================================== */

/* ---------- 01 变量与重置 ---------- */
:root {
  --blue-deep: #06182B;
  --blue-indigo: #111D3D;
  --green-deep: #06343A;
  --wine: #3B1426;
  --cyan: #39F2E0;
  --orange: #FF6B2C;
  --mist: #C7D7E6;
  --paper: #F3F8FC;
  --ink: #0A1D30;
  --ok: #6FE3A4;
  --warn: #FFB3A3;

  --line: rgba(199, 215, 230, 0.14);
  --line-strong: rgba(57, 242, 224, 0.34);
  --glass: rgba(17, 29, 61, 0.62);

  --font-head: "Saira Condensed", "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1440px;
  --bar-h: 56px;
  --rail-w: 72px;
  --radius: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-micro: 160ms;
  --t-std: 220ms;
  --t-sec: 320ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 24px);
}

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

ul, ol { padding: 0; }

body {
  min-height: 100vh;
  background: var(--blue-deep);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--cyan); color: #04222A; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

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

#main-content { display: block; outline: none; }

/* ---------- 02 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
}

h1 { font-size: clamp(36px, 4.8vw, 64px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 26px); }

p { max-width: 72ch; }

.display {
  font-family: var(--font-head);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.lede {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
  color: var(--mist);
  max-width: 62ch;
}

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

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

/* ---------- 03 通用组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid--cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 26px);
  backdrop-filter: blur(10px);
  transition: transform var(--t-std) var(--ease), border-color var(--t-std) var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--cyan);
  opacity: 0;
  transition: opacity var(--t-std) var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 44, 0.5);
}

.card:hover::after,
.card:focus-within::after { opacity: 1; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(57, 242, 224, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 107, 44, 0.45);
  background: rgba(255, 107, 44, 0.1);
}

.tag--wine {
  color: #FFC9D8;
  border-color: rgba(255, 140, 170, 0.4);
  background: rgba(59, 20, 38, 0.72);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background var(--t-micro) var(--ease),
              color var(--t-micro) var(--ease),
              border-color var(--t-micro) var(--ease),
              transform var(--t-micro) var(--ease);
}

.btn--sm { padding: 7px 13px; font-size: 13px; }

.btn--accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #20100A;
}

.btn--accent:hover { background: #FF8552; border-color: #FF8552; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--cyan);
}

.btn--ghost:hover { background: rgba(57, 242, 224, 0.12); }

.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--light:hover { background: #FFFFFF; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(199, 215, 230, 0.62);
  list-style: none;
}

.breadcrumbs li { display: flex; align-items: center; gap: 10px; }

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(57, 242, 224, 0.5);
}

.breadcrumbs a { color: var(--mist); }
.breadcrumbs a:hover { color: var(--cyan); }

.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(6, 52, 58, 0.9), transparent 60%),
    linear-gradient(150deg, #0B2440, #0A1E33);
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
  background: linear-gradient(0deg, rgba(4, 16, 29, 0.92), transparent);
}

.rail {
  position: fixed;
  inset: var(--bar-h) auto 0 0;
  width: var(--rail-w);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-right: 1px solid var(--line);
  background: rgba(6, 24, 43, 0.75);
  backdrop-filter: blur(10px);
  z-index: 60;
}

.rail__item {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(199, 215, 230, 0.5);
  transition: color var(--t-micro) var(--ease);
}

.rail__item:hover,
.rail__item[aria-current="true"] { color: var(--cyan); }

.surface-light {
  background: var(--paper);
  color: var(--ink);
}

.surface-light h1,
.surface-light h2,
.surface-light h3,
.surface-light h4 { color: var(--ink); }

.surface-light p { color: #23405A; }

.surface-light a {
  color: #0B4C6B;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.surface-light :where(a, button):focus-visible { outline-color: var(--ink); }

/* ---------- 04 命令栏 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--cyan);
  color: #04222A;
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform var(--t-micro) var(--ease);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(6, 24, 43, 0.98), rgba(6, 24, 43, 0.9));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.cmdbar { position: relative; }

.cmdbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  height: var(--bar-h);
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(14px, 2.4vw, 28px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-inline-end: auto;
  padding: 4px 6px 4px 0;
  border-radius: 8px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: linear-gradient(160deg, #0C2C4A, #07203A);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  color: var(--cyan);
}

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

.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(199, 215, 230, 0.66);
}

.site-nav { flex: 0 1 auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mist);
  white-space: nowrap;
  transition: color var(--t-micro) var(--ease), background var(--t-micro) var(--ease);
}

.site-nav__link:hover {
  color: var(--paper);
  background: rgba(57, 242, 224, 0.08);
}

.site-nav__link[aria-current="page"] { color: var(--cyan); }

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
}

.cmdbar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.device-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 29, 61, 0.55);
}

.device-switch__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(199, 215, 230, 0.6);
  white-space: nowrap;
}

.segmented { display: flex; gap: 2px; }

.segmented__btn {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mist);
  cursor: pointer;
  transition: background var(--t-micro) var(--ease),
              color var(--t-micro) var(--ease);
}

.segmented__btn:not([aria-pressed="true"]):hover {
  color: var(--paper);
  background: rgba(57, 242, 224, 0.1);
}

.segmented__btn[aria-pressed="true"] {
  background: var(--cyan);
  color: #04222A;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(57, 242, 224, 0.1);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-micro) var(--ease);
}

.nav-toggle:hover { background: rgba(57, 242, 224, 0.18); }

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

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-micro) var(--ease), opacity var(--t-micro) var(--ease);
}

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

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, #5CE6FF 55%, var(--orange) 100%);
  box-shadow: 0 0 12px rgba(57, 242, 224, 0.5);
  pointer-events: none;
  will-change: transform;
}

/* ---------- 05 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line-strong);
  color: var(--mist);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(6, 52, 58, 0.85), transparent 62%),
    linear-gradient(180deg, #081A2C, #06182B 58%, #04101D);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(57, 242, 224, 0) 55%, var(--orange));
  opacity: 0.85;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(0, 1.6fr) minmax(250px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(38px, 5.5vw, 72px) clamp(16px, 3vw, 32px) clamp(26px, 3.5vw, 44px);
}

.footer__brand { min-width: 0; }

.footer__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(57, 242, 224, 0.72);
  margin-bottom: 14px;
}

.footer__line {
  font-family: var(--font-head);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper);
  max-width: 22ch;
}

.footer__mini {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(199, 215, 230, 0.6);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--cyan);
  margin-bottom: 14px;
}

.footer__list {
  list-style: none;
  display: block;
}

.footer__list li + li { margin-top: 10px; }

.footer__list a {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  transition: color var(--t-micro) var(--ease);
}

.footer__list a:hover { color: var(--cyan); }

.footer__contact {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 29, 61, 0.6);
  backdrop-filter: blur(10px);
}

.footer__list--contact li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.footer__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(57, 242, 224, 0.8);
  padding-top: 3px;
}

.footer__v {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  overflow-wrap: anywhere;
}

.footer__note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(199, 215, 230, 0.62);
  max-width: none;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px clamp(16px, 3vw, 32px) 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(199, 215, 230, 0.6);
}

.footer__copy,
.footer__icp { max-width: none; }

/* ---------- 06 响应式 ---------- */
@media (max-width: 1279px) {
  .device-switch__label { display: none; }
  .device-switch { padding-left: 6px; }
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--bar-h));
    overflow-y: auto;
    padding: 8px clamp(14px, 3vw, 28px) 18px;
    border-bottom: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(9, 27, 48, 0.99), rgba(6, 24, 43, 0.99));
    box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.95);
  }

  .site-header[data-open="true"] .site-nav {
    display: block;
    animation: navDrop var(--t-std) var(--ease) both;
  }

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

  .site-nav__link {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(199, 215, 230, 0.12);
    border-radius: 0;
    font-size: 16px;
  }

  .site-nav__link[aria-current="page"]::after {
    left: 4px;
    right: auto;
    bottom: 11px;
    width: 18px;
    height: 2px;
  }

  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__contact { grid-column: 1 / -1; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .split,
  .split--reverse { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.72; }

  .cmdbar__inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 8px;
    padding-block: 9px;
  }

  .brand { margin-inline-end: auto; }
  .brand__sub { display: none; }

  .cmdbar__tools {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .device-switch { flex: 1 1 auto; justify-content: space-between; }

  .nav-toggle { order: 2; }
  .cmdbar__cta { display: none; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1180px) {
  .rail { display: flex; }
}

@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;
  }

  .card:hover,
  .card:focus-within { transform: none; }

  .scroll-progress { box-shadow: none; }
}
