/* ============================================================
   球王会赛场 QWH CHINA — 共享站点样式 /assets/site.css
   结构：变量 → 重置 → 排版 → 无障碍 → 页头 → 按钮
        → 布局与组件 → 页脚 → 显现 → 响应式 → 降级
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink-900: #061A2B;
  --ink-800: #0B2B45;
  --ink-700: #184C6B;
  --cyan: #22D3EE;
  --glass-cyan: rgba(34, 211, 238, 0.12);
  --coral: #FF6B3D;
  --lime: #C7F464;
  --paper: #F4F7F5;
  --mist: #8FA6B2;
  --alert: #FF4D5E;
  --line-soft: rgba(143, 166, 178, 0.16);
  --line-mid: rgba(143, 166, 178, 0.26);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-float: 0 20px 44px -26px rgba(0, 0, 0, 0.9);
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-condensed: "Oswald", "Barlow Condensed", "Arial Narrow", var(--font-sans);
  --shell-max: 1440px;
  --gutter: clamp(18px, 4vw, 72px);
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.16s ease;
}
a:hover { color: var(--paper); }

strong { font-weight: 800; color: var(--paper); }

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

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 4. 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content { scroll-margin-top: clamp(88px, 12vw, 112px); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); color: var(--ink-900); }

/* ---------- 5. 悬浮胶囊页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 14px var(--gutter) 10px;
  transition: padding 0.24s ease;
}

.scroll-meter {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 140;
  pointer-events: none;
}
.scroll-meter::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width 0.12s linear;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 9px 12px 9px 18px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-pill);
  background: rgba(11, 43, 69, 0.74);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-float);
  transition: background 0.24s ease, padding 0.24s ease, border-color 0.24s ease;
}

.site-header[data-scrolled] { padding-top: 8px; padding-bottom: 6px; }
.site-header[data-scrolled] .header-shell {
  background: rgba(6, 26, 43, 0.93);
  border-color: rgba(34, 211, 238, 0.24);
  padding-top: 6px;
  padding-bottom: 6px;
}

/* 品牌字标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 3px 8px 3px 0;
  color: var(--paper);
  border-radius: var(--radius-pill);
  flex: 0 0 auto;
}
.brand:hover { color: var(--paper); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--cyan) 0%, #0E9DB6 100%);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.06; }
.brand-cn { font-size: 16px; font-weight: 900; letter-spacing: 0.02em; }
.brand-en {
  font-family: var(--font-condensed);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mist);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 16px 9px 14px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: var(--radius-pill);
  background: var(--glass-cyan);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--paper); }

.nav-toggle-bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.site-header[data-open] .nav-toggle-bars span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

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

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  color: var(--mist);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-link:hover { color: var(--paper); background: rgba(34, 211, 238, 0.09); }

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: var(--glass-cyan);
  box-shadow: inset 0 -2px 0 var(--cyan);
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.nav-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line-mid);
  list-style: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.nav-cta:hover { background: #FF845C; color: var(--ink-900); transform: translateY(-1px); }

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--coral { background: var(--coral); color: var(--ink-900); }
.btn--coral:hover { background: #FF845C; color: var(--ink-900); }

.btn--cyan { background: var(--cyan); color: var(--ink-900); }
.btn--cyan:hover { background: #6BE4F6; color: var(--ink-900); }

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

/* ---------- 7. 布局容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 920px; }

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

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 30px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ---------- 8. 文本与基础组件 ---------- */
.lede {
  max-width: 44ch;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.75;
  color: var(--mist);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--coral);
}

.prose {
  max-width: 920px;
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.8;
  color: rgba(244, 247, 245, 0.9);
}
.prose h2 { margin: 1.8em 0 0.6em; }
.prose h3 { margin: 1.5em 0 0.5em; color: var(--paper); }
.prose ul,
.prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--paper); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--mist);
}
.breadcrumb-item { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(143, 166, 178, 0.5);
}
.breadcrumb-link { color: var(--mist); }
.breadcrumb-link:hover { color: var(--cyan); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.tag--cyan { background: var(--glass-cyan); border-color: rgba(34, 211, 238, 0.3); color: var(--cyan); }
.tag--coral { background: rgba(255, 107, 61, 0.14); border-color: rgba(255, 107, 61, 0.36); color: var(--coral); }
.tag--lime { background: rgba(199, 244, 100, 0.14); border-color: rgba(199, 244, 100, 0.34); color: var(--lime); }

.tag--slant {
  border-radius: 0;
  padding: 6px 18px;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.panel {
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--ink-800);
}
.panel--glass {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 图片容器基础规则（页面阶段放置占位） */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--ink-800);
}
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--banner { aspect-ratio: 21 / 9; }
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin: 10px 2px 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 108px);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  background: var(--ink-900);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), transparent);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -90px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 70%);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 66px) var(--gutter) 28px;
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand { display: flex; align-items: center; gap: 13px; }

.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink-700);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-brand-cn {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.footer-brand-en {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-summary {
  flex: 1 1 260px;
  max-width: 46ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  padding-block: clamp(28px, 3.4vw, 46px);
}

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

.footer-col-title {
  margin: 0 0 15px;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mist);
  font-size: 15px;
  transition: color 0.16s ease, transform 0.16s ease;
}
.footer-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--ink-700);
  transition: background-color 0.16s ease;
}
.footer-link:hover { color: var(--paper); transform: translateX(2px); }
.footer-link:hover::before { background: var(--lime); }

.footer-contact {
  display: grid;
  gap: 14px;
  list-style: none;
}
.footer-contact-item { display: grid; gap: 3px; }
.footer-contact-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(143, 166, 178, 0.85);
}
.footer-contact-value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(143, 166, 178, 0.82);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
}
.footer-legal a {
  color: var(--mist);
  font-size: 13.5px;
}
.footer-legal a:hover { color: var(--cyan); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mist);
}
.footer-icp { color: rgba(143, 166, 178, 0.75); }

/* ---------- 10. 滚动显现协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal="shear"] { transform: translate3d(-14px, 12px, 0); }
[data-reveal="tile"] { transform: scale(0.96); }
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 9px 10px; font-size: 14px; }
  .nav-utility { padding-left: 10px; margin-left: 4px; }
}

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

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

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: min(74vh, 540px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--line-mid);
    border-radius: 22px;
    background: rgba(9, 36, 58, 0.98);
    box-shadow: var(--shadow-float);
  }
  .site-header[data-open] .site-nav {
    display: flex;
    animation: qwh-nav-drop 0.18s ease-out;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15.5px;
  }
  .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); }
  .nav-link[aria-current="page"]::after {
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
  }

  .nav-utility {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-mid);
  }
  .nav-cta { padding: 13px 18px; }

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

@keyframes qwh-nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .header-shell { padding: 8px 10px 8px 14px; }
  .brand-cn { font-size: 15px; }
  .brand-en { font-size: 10px; letter-spacing: 0.22em; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 11.5px; }
}

@media (max-width: 620px) {
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-head .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-meta { font-size: 12px; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 10px 13px; }
}

/* ---------- 12. 动效降级 ---------- */
@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;
  }

  [data-reveal],
  [data-reveal="shear"],
  [data-reveal="tile"] {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-meter::before { transition: none; }
}
