/* ============================================================
   必博体育CN · 共享站点样式 /assets/site.css
   深墨蓝仪表底 + 荧光青绿速度线 + 琥珀橙数据高亮
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --ink:        #0B1C2C;
  --ink-2:      #12293D;
  --ink-3:      #17324A;
  --neon:       #1FE0B4;
  --neon-dark:  #0E8F78;
  --amber:      #FFA62B;
  --clay:       #C2704F;
  --moss:       #7FA06A;
  --rock:       #5B6470;
  --cream:      #F4F0E6;
  --warn:       #E4572E;

  --line:       rgba(31, 224, 180, 0.20);
  --line-soft:  rgba(244, 240, 230, 0.09);
  --text-dim:   rgba(244, 240, 230, 0.66);
  --text-mute:  rgba(244, 240, 230, 0.44);

  --font-display: "Oswald", "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-heading: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-body:    "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --wrap: 1320px;
  --wrap-tight: 980px;
  --gutter: clamp(16px, 4vw, 40px);
  --rail: 80px;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --pill: 999px;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 72px;
  --sp-12: 112px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .24s;
}

/* ---------- base ---------- */
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--cream);
}
p { max-width: 68ch; }

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

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

#main-content { display: block; }
#main-content:focus { outline: none; }
#main-content:focus-visible { outline: 2px solid var(--neon); outline-offset: -2px; }

/* ---------- type atoms ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.28;
  padding-left: 16px;
  border-left: 4px solid var(--neon);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon);
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--tight { max-width: var(--wrap-tight); }

.grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: minmax(0, 1fr);
}
.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.surface-grid {
  background-image:
    linear-gradient(rgba(31, 224, 180, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 224, 180, .055) 1px, transparent 1px);
  background-size: 56px 56px;
}
.surface-light {
  background: var(--cream);
  color: var(--ink);
}
.surface-light h1, .surface-light h2, .surface-light h3, .surface-light h4 { color: var(--ink); }
.surface-light .section-title { border-left-color: var(--neon-dark); }
.surface-light .eyebrow { color: var(--neon-dark); }
.surface-light p { color: rgba(11, 28, 44, .78); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -220%);
  padding: 10px 20px;
  border-radius: var(--pill);
  background: var(--neon);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header[data-collapsed] {
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -32px rgba(31, 224, 180, .7);
}

.progress-rail {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: rgba(244, 240, 230, .08);
  z-index: 3;
}
.progress-rail > i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon) 0%, var(--amber) 100%);
  transition: transform .12s linear;
}

.header-utility {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 9px var(--gutter);
  max-height: 60px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--text-mute);
  border-bottom: 1px dashed var(--line-soft);
  transition: max-height var(--dur) var(--ease), padding var(--dur) var(--ease),
              opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header[data-collapsed] .header-utility {
  max-height: 0;
  padding-block: 0;
  opacity: 0;
  border-bottom-color: transparent;
}
.utility-pulse {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  animation: pulse 2.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 224, 180, .55); }
  70%  { box-shadow: 0 0 0 11px rgba(31, 224, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 224, 180, 0); }
}
.utility-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility-year { flex: 0 0 auto; color: var(--rock); }

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px var(--gutter);
  transition: padding var(--dur) var(--ease);
}
.site-header[data-collapsed] .header-bar { padding-block: 8px; }

/* brand */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}
.brand-badge {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--neon) 0%, var(--neon-dark) 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  box-shadow: 0 0 0 1px rgba(31, 224, 180, .35), 0 10px 22px -14px rgba(31, 224, 180, .9);
  transition: width var(--dur) var(--ease), height var(--dur) var(--ease);
}
.site-header[data-collapsed] .brand-badge { width: 36px; height: 36px; font-size: 18px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--cream);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  line-height: 1.5;
  color: var(--rock);
  white-space: nowrap;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(31, 224, 180, .07);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-toggle:hover { background: rgba(31, 224, 180, .14); }
.nav-toggle-text { white-space: nowrap; }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.nav-toggle-bars i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle-bars i:first-child { top: 1px; }
.nav-toggle-bars i:last-child { top: 9px; }
.site-header[data-nav-open] .nav-toggle-bars i:first-child { top: 5px; transform: rotate(45deg); }
.site-header[data-nav-open] .nav-toggle-bars i:last-child { top: 5px; transform: rotate(-45deg); }

/* nav */
.site-nav { margin-left: auto; min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.nav-item { display: flex; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--cream); background: rgba(244, 240, 230, .06); }
.nav-link[aria-current="page"] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
  font-weight: 700;
}
.nav-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--neon);
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-link[aria-current="page"] .nav-num { color: rgba(11, 28, 44, .62); }
.nav-label {
  display: inline-block;
  max-width: 8em;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  transition: max-width .26s var(--ease), opacity .22s var(--ease);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--neon); color: var(--ink); }
.btn--primary:hover { background: #36f2c7; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #ffb855; }
.btn--ghost {
  border-color: rgba(244, 240, 230, .26);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--neon); color: var(--neon); }
.surface-light .btn--ghost { border-color: rgba(11, 28, 44, .25); color: var(--ink); }
.surface-light .btn--ghost:hover { border-color: var(--neon-dark); color: var(--neon-dark); }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-mute);
}
.breadcrumb-item { display: inline-flex; align-items: center; }
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 10px;
  color: var(--rock);
}
.breadcrumb-item a { color: inherit; transition: color var(--dur) var(--ease); }
.breadcrumb-item a:hover { color: var(--neon); }
.breadcrumb-item [aria-current="page"] { color: var(--cream); }

/* ---------- card ---------- */
.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 26px);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.surface-light .card {
  background: #fff;
  border-color: rgba(11, 28, 44, .1);
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(31, 224, 180, .35);
  background: rgba(31, 224, 180, .08);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.7;
  white-space: nowrap;
}
.tag--amber { border-color: rgba(255, 166, 43, .42); background: rgba(255, 166, 43, .1); color: var(--amber); }
.tag--clay  { border-color: rgba(194, 112, 79, .48); background: rgba(194, 112, 79, .12); color: #E08360; }
.tag--moss  { border-color: rgba(127, 160, 106, .48); background: rgba(127, 160, 106, .12); color: #9CC183; }
.tag--rock  { border-color: rgba(91, 100, 112, .6); background: rgba(91, 100, 112, .18); color: #A9B2BD; }
.surface-light .tag { border-color: rgba(14, 143, 120, .4); background: rgba(14, 143, 120, .1); color: var(--neon-dark); }
.surface-light .tag--amber { border-color: rgba(194, 112, 79, .45); background: rgba(255, 166, 43, .16); color: #A25A16; }
.surface-light .tag--rock { border-color: rgba(91, 100, 112, .35); background: rgba(91, 100, 112, .1); color: #4A525C; }

/* ---------- stat ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--amber);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--text-mute);
}
.surface-light .stat__label { color: rgba(11, 28, 44, .55); }

/* ---------- figure ---------- */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  isolation: isolate;
}
.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3  { aspect-ratio: 4 / 3; }
.figure--1x1  { aspect-ratio: 1 / 1; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.figure:hover .figure__img { transform: scale(1.03); }
.figure__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 20px 16px;
  background: linear-gradient(to top, rgba(11, 28, 44, .92), rgba(11, 28, 44, 0));
  color: var(--cream);
  font-size: 13px;
  line-height: 1.6;
}
.figure__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(rgba(31, 224, 180, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 224, 180, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--rock);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
[data-reveal][data-visible] { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 112px);
  background: var(--ink);
  color: var(--text-dim);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--neon) 30%, var(--amber) 68%, transparent 100%);
  opacity: .55;
}
.footer-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 4vw, 44px);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.brand-mark--footer .brand-name { font-size: 17px; }
.footer-line {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 42ch;
}
.footer-sync {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--moss);
}
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon);
  padding-left: 10px;
  border-left: 2px solid var(--neon);
  line-height: 1.4;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--neon); transform: translateX(3px); }

.footer-base {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}
.footer-contact {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: none;
}
.footer-contact .mono { color: var(--amber); }
.footer-hours { font-size: 13px; color: var(--text-mute); max-width: none; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 18px 0 34px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--rock);
}
.footer-icp { color: var(--text-mute); }
.footer-mark { color: rgba(31, 224, 180, .45); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid--5-7, .grid--4-8 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  :root { --rail: 0px; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 10px var(--gutter) 20px;
    background: var(--ink-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 52px -28px rgba(0, 0, 0, .85);
    max-height: min(74vh, 560px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-item { display: block; }
  .nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15.5px;
    color: var(--text-dim);
  }
  .nav-num { width: 2.6em; flex: 0 0 auto; }
  .nav-link[aria-current="page"] {
    background: rgba(31, 224, 180, .12);
    border-color: rgba(31, 224, 180, .42);
    color: var(--neon);
  }
  .nav-link[aria-current="page"] .nav-num { color: var(--amber); }
  .nav-label { max-width: none; }

  .utility-text { font-size: 11px; }
  .utility-year { display: none; }

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

@media (max-width: 620px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-legal { font-size: 11.5px; }
  .brand-sub { display: none; }
  .header-bar { gap: 10px; }
}

/* ---------- motion preferences ---------- */
@media (min-width: 900px) {
  .site-header[data-collapsed] .nav-label {
    max-width: 0;
    opacity: 0;
  }
  .site-header[data-collapsed] .nav-link[aria-current="page"] .nav-label,
  .site-header[data-collapsed] .nav-link:hover .nav-label,
  .site-header[data-collapsed] .nav-link:focus-visible .nav-label {
    max-width: 8em;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .figure__img { transition: none; }
}
