/* =========================================================
   华体会体育 CN 品牌专区 — /assets/site.css
   共享外壳：左侧战术轨道 + 抽屉导航 + 海报式页脚
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --ink-900: #071A2F;
  --ink-800: #0E2A47;
  --ink-700: #163A5E;
  --accent: #FF6B2C;
  --accent-soft: #FF8A4C;
  --data: #2DE2B7;
  --paper: #F7F3EA;
  --paper-tint: #EFEAE0;
  --mist: #C9D3DD;
  --charcoal: #111820;
  --chart: #2F80ED;
  --alert: #E5484D;

  --line-dark: rgba(247, 243, 234, 0.14);
  --line-dark-soft: rgba(247, 243, 234, 0.07);
  --line-light: rgba(17, 24, 32, 0.12);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail-w: 230px;
  --bar-h: 64px;
  --shell-w: 1400px;
  --gutter: clamp(20px, 4.5vw, 64px);

  --dur: 0.22s;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --scroll: 0;
}

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

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

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

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

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

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

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

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.02vw, 17.5px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { max-width: 68ch; }

strong { font-weight: 800; }

::selection {
  background: var(--accent);
  color: #150D06;
}

/* ---------- 4. Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.site-footer :focus-visible {
  outline-color: var(--data);
}

#main-content:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

/* ---------- 5. Layout helpers ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell-w));
  margin-inline: auto;
}

.shell--narrow {
  width: min(100% - (var(--gutter) * 2), 760px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(48px, 7vw, 104px);
}

.section--dark {
  background: var(--ink-900);
  color: var(--paper);
}

.section--tint {
  background: var(--paper-tint);
}

/* ---------- 6. Small type utilities ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section--dark .eyebrow { color: var(--data); }

.lede {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.8;
  color: rgba(17, 24, 32, 0.78);
  max-width: 62ch;
}

.section--dark .lede { color: rgba(247, 243, 234, 0.76); }

.rule {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line-light);
}

.section--dark .rule { background: var(--line-dark); }

/* ---------- 7. Buttons / tags / stats ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.82em 1.5em;
  border-radius: 2px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #150D06;
}

.btn--primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: currentColor;
  color: inherit;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--on-dark {
  background: var(--paper);
  color: var(--ink-900);
}

.btn--on-dark:hover { background: #ffffff; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.28em 0.7em;
  border: 1px solid var(--line-light);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.section--dark .tag {
  border-color: var(--line-dark);
  color: var(--data);
}

.stat {
  display: block;
  padding-left: 12px;
  border-left: 2px solid var(--data);
}

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 24, 32, 0.6);
}

.section--dark .stat__label { color: rgba(247, 243, 234, 0.6); }

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 24, 32, 0.55);
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4em;
  color: var(--mist);
}

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

/* ---------- 9. Media containers (页面阶段放图片用) ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink-800);
  border: 1px solid var(--line-light);
}

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

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

.media__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(17, 24, 32, 0.55);
}

.section--dark .media { border-color: var(--line-dark); }
.section--dark .media__caption { color: rgba(247, 243, 234, 0.55); }

/* ---------- 10. Tabs (共享交互组件) ---------- */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line-light);
}

.tab {
  padding: 0.62rem 1rem;
  border-radius: 2px 2px 0 0;
  border-bottom: 2px solid transparent;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(17, 24, 32, 0.6);
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.tab:hover { color: var(--ink-900); }

.tab[aria-selected="true"] {
  color: var(--ink-900);
  background: rgba(255, 107, 44, 0.1);
  border-bottom-color: var(--accent);
}

.section--dark .tabs-nav { border-bottom-color: var(--line-dark); }
.section--dark .tab { color: rgba(247, 243, 234, 0.62); }
.section--dark .tab:hover { color: var(--paper); }
.section--dark .tab[aria-selected="true"] {
  color: var(--paper);
  background: rgba(45, 226, 183, 0.12);
  border-bottom-color: var(--data);
}

.tab-panel { padding-top: 1.5rem; }

/* ---------- 11. Reveal protocol ---------- */
[data-reveal] {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(8px);
}

/* =========================================================
   12. HEADER — 侧边战术轨道 / 移动抽屉
   ========================================================= */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 0.65rem 1.1rem;
  border-radius: 2px;
  background: var(--accent);
  color: #150D06;
  font-size: 0.9375rem;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  height: var(--bar-h);
  background: var(--ink-900);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.header-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-inline: var(--gutter);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 24px;
  height: 24px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.brand-text { display: block; min-width: 0; }

.brand-name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--data);
}

/* Toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--paper);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

.nav-toggle-box {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.site-header[data-open] .nav-toggle-box span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

/* Panel (移动抽屉) */
.header-panel {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  width: min(84vw, 340px);
  height: calc(100% - var(--bar-h));
  height: calc(100dvh - var(--bar-h));
  padding: 26px 22px 30px;
  gap: 8px;
  background: var(--ink-800);
  border-right: 1px solid var(--line-dark);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.site-header[data-open] .header-panel {
  transform: translateX(0);
  visibility: visible;
}

/* Nav list */
.primary-nav { display: block; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item { display: block; }

.nav-link {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 12px 13px 10px;
  border-left: 2px solid transparent;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(247, 243, 234, 0.72);
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.nav-label { display: block; }

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(247, 243, 234, 0.34);
  transition: color var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(247, 243, 234, 0.06);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 107, 44, 0.12);
  border-left-color: var(--accent);
}

.nav-link[aria-current="page"] .nav-index { color: var(--accent); }

/* Rail foot */
.rail-foot {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark-soft);
}

.rail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 2px;
  background: var(--accent);
  color: #150D06;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.3;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.rail-cta:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.rail-cta-text { display: block; }

.rail-cta-arrow {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}

.rail-note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: rgba(247, 243, 234, 0.5);
  max-width: 30ch;
}

/* Scroll meter */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  display: block;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--data);
  transform: scaleX(var(--scroll));
  transform-origin: left center;
  transition: transform 0.12s linear;
}

/* Scrim */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(7, 26, 47, 0.66);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.nav-scrim[data-visible] {
  opacity: 1;
  pointer-events: auto;
}

html[data-nav-locked] { overflow: hidden; }

/* ---------- 13. Desktop rail ---------- */
@media (min-width: 1100px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--rail-w);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding-block: 26px 24px;
    border-bottom: 0;
    border-right: 1px solid var(--line-dark);
    overflow: hidden;
  }

  /* 竖排标尺纹理 */
  .site-header::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 9px;
    width: 1px;
    pointer-events: none;
    opacity: 0.7;
    background: repeating-linear-gradient(
      to bottom,
      var(--line-dark) 0 1px,
      transparent 1px 12px
    );
  }

  .header-bar {
    width: auto;
    padding-inline: 22px;
    justify-content: flex-start;
  }

  .nav-toggle { display: none; }

  .header-panel {
    position: static;
    transform: none;
    visibility: visible;
    width: auto;
    height: auto;
    flex: 1;
    min-height: 0;
    margin-top: 34px;
    padding: 0;
    gap: 0;
    background: none;
    border-right: 0;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .primary-nav { padding-inline: 20px; }

  .nav-link {
    padding: 11px 10px;
    font-size: 0.9375rem;
  }

  .rail-foot {
    margin-top: auto;
    padding: 22px 20px 0;
    margin-inline: 20px;
  }

  .rail-note { max-width: none; }

  .scroll-meter {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    background: rgba(247, 243, 234, 0.08);
  }

  .scroll-meter-fill {
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: scaleY(var(--scroll));
    transform-origin: center top;
  }

  .nav-scrim { display: none; }
}

/* =========================================================
   14. FOOTER — 海报式收束面板
   ========================================================= */
.site-footer {
  position: relative;
  background: var(--ink-900);
  color: var(--paper);
  padding-block: clamp(48px, 7vw, 96px) 28px;
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 104px;
  height: 3px;
  background: var(--accent);
}

.footer-inner {
  width: min(100% - (var(--gutter) * 2), var(--shell-w));
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
}

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

.footer-kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--data);
}

.footer-mark {
  margin-top: 10px;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.footer-desc {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(247, 243, 234, 0.68);
  max-width: 30ch;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: rgba(247, 243, 234, 0.52);
}

.status-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--data);
  box-shadow: 0 0 0 3px rgba(45, 226, 183, 0.16);
}

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

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

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--data);
  white-space: nowrap;
}

.footer-col-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-dark);
}

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

.footer-list a {
  display: inline-block;
  padding: 5px 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(247, 243, 234, 0.72);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-list a:hover {
  color: var(--paper);
  border-bottom-color: var(--accent);
}

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

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

.contact-list li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.42);
}

.contact-val {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.contact-val--addr {
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.footer-note {
  margin-top: 16px;
  font-size: 0.75rem;
  line-height: 1.75;
  color: rgba(247, 243, 234, 0.48);
  max-width: 32ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.footer-legal {
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.55);
  max-width: none;
}

.footer-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-mini a {
  font-size: 0.75rem;
  color: rgba(247, 243, 234, 0.55);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-mini a:hover {
  color: var(--paper);
  border-bottom-color: var(--data);
}

@media (min-width: 760px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

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

  .footer-desc { max-width: 40ch; }
}

@media (min-width: 1100px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
  }

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

/* ---------- 15. Reduced motion ---------- */
@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;
  }

  [data-reveal],
  [data-reveal].is-pending {
    opacity: 1;
    transform: none;
  }

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