/* ============================================================
   华体育 HTH · 共享样式 /assets/site.css
   夜场指挥台：深墨绿草皮 · 切角战术板 · 荧光青进度轨
   ============================================================ */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { 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;
}

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink:      #071A14;
  --ink-2:    #0E2B22;
  --panel:    #123D30;
  --line:     #1E5C49;
  --cyan:     #63F5D2;
  --amber:    #FFC857;
  --red:      #FF4D4D;
  --yellow:   #FFD84D;
  --text:     #E8FFF7;
  --muted:    #8FB8A9;
  --grid:     #A7F3D0;

  --shell:    1240px;
  --gutter:   clamp(16px, 4vw, 40px);
  --cut:      14px;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body:    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: 240ms cubic-bezier(.22, .7, .3, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(167, 243, 208, .05) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(167, 243, 208, .035) 0 1px, transparent 1px 96px),
    radial-gradient(120% 70% at 12% -8%, rgba(99, 245, 210, .12), transparent 62%),
    radial-gradient(90% 60% at 102% 2%, rgba(255, 200, 87, .07), transparent 58%);
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--cyan);
  color: #04211a;
}

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

#main-content {
  scroll-margin-top: 104px;
}

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

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

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

/* ---------- 5. Typography helpers ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.chapter-no {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--amber);
}

.stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.prose {
  max-width: 72ch;
  color: #d5efe7;
  font-size: 17px;
  line-height: 1.8;
}

.prose p + p { margin-top: 1em; }

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.005em;
  margin-top: 1.8em;
  margin-bottom: .5em;
  color: var(--text);
}

.prose h2 { font-size: clamp(24px, 3vw, 34px); }
.prose h3 { font-size: clamp(20px, 2.2vw, 24px); }

.prose ul,
.prose ol {
  margin-top: .8em;
  padding-left: 1.2em;
}

.prose ul li { list-style: none; position: relative; padding-left: 1.1em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}
.prose ol { list-style: decimal; }
.prose ol li { padding-left: .2em; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
}

.btn--primary {
  background: var(--amber);
  color: #22160a;
}
.btn--primary:hover { background: #ffd77e; transform: translateY(-2px); }

.btn--ghost {
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover {
  background: rgba(99, 245, 210, .1);
  box-shadow: inset 0 0 0 1px var(--cyan);
  transform: translateY(-2px);
}

/* ---------- 7. Panels ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.panel--flat { background: var(--ink-2); }

/* ---------- 8. Image frames ---------- */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(150deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.frame > img,
.frame > picture,
.frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(167, 243, 208, .16) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(167, 243, 208, .16) 0 1px, transparent 1px 24px);
  opacity: .45;
}

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

/* ---------- 9. Badges & breadcrumb ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.6;
  white-space: nowrap;
}

.badge--red    { background: var(--red);    color: #2a0505; }
.badge--yellow { background: var(--yellow); color: #2a2205; }
.badge--cyan {
  background: rgba(99, 245, 210, .14);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(99, 245, 210, .42);
}
.badge--amber {
  background: rgba(255, 200, 87, .14);
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 87, .4);
}

.breadcrumb { margin-bottom: clamp(18px, 2.4vw, 28px); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
}

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

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

.breadcrumb a {
  color: var(--muted);
  transition: color var(--ease);
}
.breadcrumb a:hover { color: var(--cyan); }

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

/* ---------- 10. Skip link ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: var(--gutter);
  z-index: 200;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  background: var(--cyan);
  color: #04211a;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: top 180ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline-offset: 4px;
}

/* ============================================================
   11. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 26, 20, .9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--ink); }
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(99, 245, 210, .05) 0 1px, transparent 1px 14px);
  opacity: .8;
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.header-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 12px rgba(99, 245, 210, .7);
  transition: width 120ms linear;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2.4vw, 32px);
  min-height: 78px;
  padding-block: 12px;
}

/* --- brand --- */
.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(150deg, var(--cyan), #2fae92);
  color: #04211a;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  padding-bottom: 1px;
  clip-path: polygon(0 0, 100% 0, 100% 64%, 64% 100%, 0 100%);
  box-shadow: 0 12px 26px -14px rgba(99, 245, 210, .95);
  transition: transform var(--ease);
}

.brand:hover .brand-mark { transform: translateY(-2px); }

.brand-text {
  display: block;
  line-height: 1;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--text);
}

.brand-tag {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--muted);
}

/* --- toggle --- */
.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background var(--ease), box-shadow var(--ease);
}

.nav-toggle:hover { background: rgba(99, 245, 210, .1); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--cyan); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- nav (desktop) --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 20px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .8vw, 8px);
}

.nav-list a {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #cfe8e0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: color var(--ease), background var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease);
}

.nav-list a:hover { color: var(--cyan); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(99, 245, 210, .09);
}
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  color: #22160a;
  background: var(--amber);
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background var(--ease), transform var(--ease);
}

.nav-cta:hover {
  background: #ffd77e;
  transform: translateY(-2px);
}

/* --- nav (tablet & mobile) --- */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 10px var(--gutter) 24px;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px -30px rgba(0, 0, 0, .9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a {
    padding: 15px 14px;
    font-size: 17px;
    color: var(--text);
    border-bottom: 1px solid rgba(30, 92, 73, .55);
  }

  .nav-list a::after {
    left: auto;
    right: 14px;
    bottom: 50%;
    width: 22px;
    transform: translateY(50%) scaleX(0);
    transform-origin: right center;
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after { transform: translateY(50%) scaleX(1); }

  .nav-list a[aria-current="page"] {
    background: rgba(99, 245, 210, .1);
    box-shadow: inset 3px 0 0 var(--cyan);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 18px;
    padding: 15px 20px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .header-bar { min-height: 68px; }
  .brand-mark { width: 38px; height: 38px; font-size: 18px; }
  .brand-name { font-size: 17px; }
  .brand-tag { display: none; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 11px 12px; }
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(115deg, var(--cyan) 0 44px, transparent 44px 88px);
  opacity: .38;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.55fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(44px, 6vw, 82px) clamp(28px, 4vw, 48px);
}

/* --- brand block --- */
.footer-brand { min-width: 0; }

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--text);
}

.footer-wordmark span { color: var(--cyan); }

.footer-tagline {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--amber);
}

.footer-summary {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* --- link columns --- */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  min-width: 0;
}

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

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

.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  transition: color var(--ease), transform var(--ease);
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 8px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}
.footer-links a:hover::before { transform: scaleX(1); }

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

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

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

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--line);
  text-transform: uppercase;
}

.contact-value {
  font-size: 14.5px;
  line-height: 1.65;
  color: #cfe8e0;
  word-break: break-word;
}

.contact-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* --- base bar --- */
.footer-base {
  border-top: 1px solid var(--line);
  background: rgba(7, 26, 20, .55);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
  font-size: 13px;
  color: var(--muted);
}

.footer-copy { letter-spacing: .04em; }

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--line);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}

.to-top::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid currentColor;
}

.to-top:hover {
  background: rgba(99, 245, 210, .1);
  box-shadow: inset 0 0 0 1px var(--cyan);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-summary { max-width: 52ch; }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============================================================
   13. Motion
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(.22, .7, .3, 1);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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