/* ===== K8体育官网 · 共享样式 /assets/site.css ===== */

:root {
  --ink-950: #061224;
  --ink-900: #08182E;
  --ink-800: #0B1E3A;
  --ink-700: #102A4C;
  --cyan: #00E5C7;
  --cyan-soft: rgba(0, 229, 199, 0.12);
  --orange: #FF6B35;
  --violet: #7B4DFF;
  --green: #3DDC97;
  --mist: #E6FFFB;
  --slate: #8FA6C4;
  --glass: rgba(0, 229, 199, 0.10);
  --line: rgba(143, 166, 196, 0.18);
  --line-strong: rgba(0, 229, 199, 0.34);
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 24px);
  --font-display: 'Source Han Sans SC Heavy', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-editorial: 'Source Han Serif SC', 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Menlo', Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

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

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

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

button { font: inherit; color: inherit; }

body {
  margin: 0;
  background-color: var(--ink-800);
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(0, 229, 199, 0.10), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, rgba(123, 77, 255, 0.12), transparent 58%);
  background-repeat: no-repeat;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 中文排版基础 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.05em;
  color: var(--mist);
}

h1 { font-size: clamp(32px, 5.2vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); letter-spacing: 0.04em; }

p { max-width: 68ch; }

a { color: var(--cyan); text-decoration: none; }

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

::selection { background: var(--cyan); color: #04151f; }

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

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04151f;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: top 0.16s var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- 布局壳 ---------- */
.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.page-main {
  display: block;
  padding-bottom: clamp(48px, 7vw, 96px);
}

.section { padding-block: clamp(40px, 6.5vw, 88px); }

.stack { display: grid; gap: 14px; }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(0, 229, 199, 0.55), rgba(143, 166, 196, 0.06));
}

.muted { color: var(--slate); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background:
    linear-gradient(180deg, rgba(8, 24, 46, 0.97) 0%, rgba(6, 18, 36, 0.93) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-block: 16px 12px;
  position: relative;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2.5vw, 32px);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 229, 199, 0.16);
}

.masthead-kicker {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--slate);
  line-height: 1.6;
  max-width: 22ch;
}

.masthead-brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--mist);
}

.brand-mark {
  display: inline-block;
  padding: 5px 10px 5px 9px;
  background: var(--cyan);
  color: #04151f;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.masthead-brand:hover .brand-name { color: var(--cyan); }

.masthead-meta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  white-space: nowrap;
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: meta-pulse 2.6s ease-out infinite;
}

.meta-label { color: var(--slate); }

.meta-value { color: var(--mist); font-weight: 700; }

@keyframes meta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: rgba(0, 229, 199, 0.10);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover { background: rgba(0, 229, 199, 0.2); }

.nav-toggle-bar {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--cyan);
  transition: transform 0.18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-toggle-text { line-height: 1; }

/* 导航 */
.site-nav { padding-top: 10px; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.nav-item { display: flex; }

.nav-link {
  display: block;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--slate);
  background: rgba(16, 42, 76, 0.55);
  clip-path: polygon(11px 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}

.nav-link:hover {
  color: var(--mist);
  background: rgba(0, 229, 199, 0.18);
}

.nav-link[aria-current="page"] {
  color: #04151f;
  background: var(--cyan);
  font-weight: 800;
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--orange));
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink-950);
  border-top: 1px solid rgba(0, 229, 199, 0.18);
  padding-top: clamp(40px, 6vw, 72px);
}

.footer-inner {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--mist);
  line-height: 1.4;
}

.footer-tagline {
  margin-top: 12px;
  font-family: var(--font-editorial);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #CDEDE6;
}

.footer-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--slate);
  max-width: 34ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

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

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list a {
  display: inline-block;
  font-size: 15px;
  color: #C3D6E8;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(0, 229, 199, 0.6);
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-row { display: grid; gap: 3px; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(143, 166, 196, 0.8);
}

.contact-value {
  font-size: 15px;
  line-height: 1.6;
  color: #D9EFEA;
  overflow-wrap: anywhere;
}

.contact-value--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-base {
  border-top: 1px solid rgba(143, 166, 196, 0.16);
}

.footer-base-inner {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(143, 166, 196, 0.85);
}

.footer-copy,
.footer-legal { line-height: 1.6; }

/* ---------- 通用文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.5;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.section-note {
  font-family: var(--font-editorial);
  font-size: 15px;
  line-height: 1.9;
  color: var(--slate);
  max-width: 52ch;
}

.data-num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(123, 77, 255, 0.18);
  color: #BCA6FF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}

.tag--cyan {
  background: rgba(0, 229, 199, 0.14);
  color: #7FF0E0;
}

.tag--orange {
  background: rgba(255, 107, 53, 0.18);
  color: #FFB596;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 100%, 13px 100%);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
}

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

.btn--primary:hover {
  background: #FF8255;
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(0, 229, 199, 0.08);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 199, 0.5);
}

.btn--ghost:hover {
  background: rgba(0, 229, 199, 0.18);
  color: var(--mist);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--ink-700);
}

.card--glass {
  background: var(--glass);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card--solid {
  background: var(--ink-700);
  border-color: rgba(143, 166, 196, 0.22);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 28px);
}

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

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-top: 18px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(143, 166, 196, 0.5);
}

.breadcrumb-link {
  color: var(--slate);
  transition: color 0.16s var(--ease);
}

.breadcrumb-link:hover { color: var(--cyan); }

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 229, 199, 0.14), rgba(123, 77, 255, 0.16) 60%, rgba(255, 107, 53, 0.12));
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
}

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

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

.media-caption {
  margin-top: 10px;
  font-family: var(--font-editorial);
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 显现协议 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
}

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

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }

  .footer-contact { grid-column: 1 / -1; }

  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }

  .nav-link { padding: 8px 16px; font-size: 13px; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .header-inner {
    display: block;
    padding-block: 13px 14px;
  }

  .masthead {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 8px;
    padding-bottom: 12px;
    padding-right: 84px;
  }

  .masthead-kicker {
    font-size: 11px;
    letter-spacing: 0.12em;
    max-width: none;
  }

  .masthead-brand { justify-self: start; gap: 10px; }

  .brand-name { font-size: 17px; letter-spacing: 0.08em; }

  .masthead-meta {
    justify-self: start;
    font-size: 10px;
    padding: 5px 10px;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 12px;
    right: 0;
  }

  .site-nav {
    display: none;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }

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

  .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 3px;
  }

  .nav-link {
    padding: 13px 16px;
    font-size: 15px;
    letter-spacing: 0.08em;
    background: rgba(16, 42, 76, 0.6);
    clip-path: none;
    border-left: 2px solid transparent;
    border-radius: 2px;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--cyan);
    background: rgba(0, 229, 199, 0.2);
    color: var(--mist);
  }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }

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

  .footer-contact { grid-column: auto; }

  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 6; }
}

@media (max-width: 620px) {
  .eyebrow { font-size: 11px; letter-spacing: 0.18em; }

  .section-note { font-size: 14px; }

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

  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 {
    grid-column: span 1;
  }

  .contact-list { grid-template-columns: minmax(0, 1fr); }

  .footer-nav { grid-template-columns: minmax(0, 1fr); }

  .footer-base-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------- 减少动效 ---------- */
@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;
  }

  .meta-dot { animation: none; box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.22); }

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