/* ============================================================
   三亿体育 / 共享样式表  —  /assets/site.css
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #06141B;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(23, 70, 111, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 70, 111, .075) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

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

p { margin: 0 0 1em; }

a { color: var(--lime); text-decoration: none; }
a:hover { color: #d3ff6a; }

main { display: block; }

::selection {
  background: var(--lime);
  color: var(--night);
}

/* ---------- tokens ---------- */
:root {
  --night:  #06141B;
  --lake:   #0E2A47;
  --line:   #17466F;
  --lime:   #B7F13A;
  --orange: #FF7A1A;
  --red:    #E63946;
  --paper:  #F4F1E8;
  --graphite:#2A3238;
  --mist:   #C9D6DE;
  --white:  #FFFFFF;

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

  --shell: 1240px;
  --radius: 4px;
  --shadow-card: 6px 6px 0 rgba(3, 10, 14, .6);
  --shadow-paper: 5px 5px 0 rgba(3, 10, 14, .35);
  --ease: cubic-bezier(.33, 1, .68, 1);
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .04em;
  color: var(--white);
}

h1 { font-size: clamp(34px, 5.2vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 42px); }
h3 { font-size: clamp(19px, 2.2vw, 25px); }
h4 { font-size: 17px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--lime);
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--mist);
  max-width: 36em;
}

.prose {
  max-width: 38em;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mist);
}

.prose h2,
.prose h3 { margin-top: 1.6em; }

.prose > :last-child { margin-bottom: 0; }

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

.score-figure {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(56px, 12vw, 180px);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.04em;
  color: var(--lime);
}

/* ---------- layout ---------- */
.container {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
}

.section { padding: 76px 0; }
.section--tight { padding: 48px 0; }

.band--lake {
  background: linear-gradient(180deg, rgba(14, 42, 71, .82), rgba(14, 42, 71, .35));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band--paper {
  background: var(--paper);
  color: var(--graphite);
  border-top: 1px solid rgba(42, 50, 56, .25);
  border-bottom: 1px solid rgba(42, 50, 56, .25);
}

.band--paper h1,
.band--paper h2,
.band--paper h3,
.band--paper h4 { color: var(--graphite); }

.band--paper .prose,
.band--paper .lead { color: rgba(42, 50, 56, .86); }

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.layout-split--wide {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-rank {
  background: var(--lime);
  color: var(--night);
}

.btn-rank:hover { background: #cbf562; color: var(--night); }

.btn-app {
  border-color: rgba(201, 214, 222, .32);
  color: var(--mist);
  background: transparent;
}

.btn-app:hover { border-color: var(--lime); color: var(--white); }

.btn--lime { background: var(--lime); color: var(--night); }
.btn--lime:hover { background: #cbf562; color: var(--night); }

.btn--orange { background: var(--orange); color: #1a0d02; }
.btn--orange:hover { background: #ff9147; color: #1a0d02; }

.btn--ghost {
  border-color: rgba(201, 214, 222, .32);
  color: var(--mist);
  background: transparent;
}

.btn--ghost:hover { border-color: var(--lime); color: var(--white); }

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .22);
  animation: pulse-breathe 2s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes pulse-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.8); }
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(14, 42, 71, .6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

.tag--lime   { border-color: rgba(183, 241, 58, .5);  color: var(--lime); }
.tag--orange { border-color: rgba(255, 122, 26, .5);  color: var(--orange); }
.tag--red    { border-color: rgba(230, 57, 70, .55);  color: #ff8792; }
.tag--paper  { background: var(--paper); color: var(--graphite); border-color: rgba(42, 50, 56, .22); }

/* ---------- cards ---------- */
.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 42, 71, .62);
  box-shadow: var(--shadow-card);
}

.card--paper {
  background: var(--paper);
  color: var(--graphite);
  border-color: rgba(42, 50, 56, .22);
  box-shadow: var(--shadow-paper);
}

.card--paper h2,
.card--paper h3,
.card--paper h4 { color: var(--graphite); }

.card--paper p { color: rgba(42, 50, 56, .86); }

.card__num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--lime);
  margin-bottom: 10px;
}

.card--paper .card__num { color: var(--graphite); }

.card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(201, 214, 222, .7);
  margin-bottom: 8px;
}

.card--paper .card__label { color: rgba(42, 50, 56, .6); }

.card--offset { margin-top: 32px; }

/* ---------- media ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--lake);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 70, 111, .28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 70, 111, .28) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .3;
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3  { aspect-ratio: 4 / 3; }
.media-frame--3x4  { aspect-ratio: 3 / 4; }

.media-frame--tilt {
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--mist);
  background: linear-gradient(0deg, rgba(6, 20, 27, .94), rgba(6, 20, 27, 0));
}

/* ---------- index & breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(201, 214, 222, .6);
}

.breadcrumb a {
  color: var(--mist);
  border-bottom: 1px solid rgba(201, 214, 222, .28);
}

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

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

.index-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.index-rail a {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(201, 214, 222, .72);
  border-bottom: 1px dashed rgba(23, 70, 111, .7);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.index-rail a:hover { color: var(--lime); padding-left: 6px; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 6px 6px;
  background: var(--lime);
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 0; color: var(--night); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 20, 27, .88);
  border-bottom: 1px solid rgba(23, 70, 111, .55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  position: relative;
  width: min(calc(100% - 32px), var(--shell));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 14px 0;
  transition: padding .25s var(--ease);
}

.site-header.is-condensed .header-inner { padding: 8px 0; }

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
}

.brand-word {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.1;
  color: var(--white);
}

.brand-suffix {
  padding: 2px 6px;
  border: 1px solid rgba(183, 241, 58, .45);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--lime);
}

.brand-tagline {
  margin: 0;
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(201, 214, 222, .68);
  overflow: hidden;
  transition: opacity .25s var(--ease), max-height .25s var(--ease);
  max-height: 20px;
}

.site-header.is-condensed .brand-tagline {
  opacity: 0;
  max-height: 0;
}

.pill-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.pill-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(23, 70, 111, .85);
  border-radius: 999px;
  background: rgba(14, 42, 71, .6);
}

.pill-nav-list a {
  position: relative;
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.pill-nav-list a:hover {
  color: var(--white);
  background: rgba(23, 70, 111, .85);
}

.pill-nav-list a[aria-current="page"] {
  color: var(--night);
  background: var(--lime);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(6, 20, 27, .38);
}

.pill-nav-list a[aria-current="page"]:hover {
  color: var(--night);
  background: var(--lime);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(201, 214, 222, .3);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-size: 13px;
  letter-spacing: .1em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

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

.nav-toggle-lines {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: top .25s var(--ease), transform .25s var(--ease);
}

.nav-toggle-lines::before { top: -5px; }
.nav-toggle-lines::after  { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after  { top: 0; transform: rotate(-45deg); }

.header-progress {
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transition: width .12s linear;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--night) 0%, #041017 100%);
  border-top: 1px solid var(--line);
  color: var(--mist);
}

.footer-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: 1;
  pointer-events: none;
  opacity: .6;
}

.footer-ridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 70, 111, 0), rgba(23, 70, 111, .6));
  clip-path: polygon(
    0 100%, 0 72%, 7% 48%, 14% 66%, 22% 30%, 30% 58%, 38% 40%,
    47% 68%, 55% 34%, 63% 62%, 71% 44%, 80% 70%, 88% 50%,
    95% 66%, 100% 52%, 100% 100%
  );
}

.footer-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.2fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer-col--brand { display: flex; flex-direction: column; gap: 10px; }

.brand--footer { margin-bottom: 4px; }

.footer-note {
  margin: 0;
  max-width: 22em;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(201, 214, 222, .8);
}

.footer-coord {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(255, 122, 26, .85);
}

.footer-label {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(23, 70, 111, .9);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}

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

.footer-nav-list a {
  position: relative;
  display: inline-block;
  padding: 4px 0 4px 14px;
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer-nav-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--line);
  transition: background .2s var(--ease), width .2s var(--ease);
}

.footer-nav-list a:hover { color: var(--lime); transform: translateX(3px); }
.footer-nav-list a:hover::before { background: var(--lime); width: 9px; }

.footer-contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid rgba(23, 70, 111, .45);
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(201, 214, 222, .88);
}

.coord-mark {
  flex: 0 0 auto;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--orange);
}

.footer-base {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
  padding: 20px 0 36px;
  border-top: 1px solid rgba(23, 70, 111, .55);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: rgba(201, 214, 222, .62);
}

.footer-base-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.footer-meta {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  color: rgba(201, 214, 222, .55);
}

.footer-shift { margin: 0; color: rgba(201, 214, 222, .55); }

/* ---------- reveal protocol ---------- */
[data-reveal] { opacity: 1; }

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1200px) {
  .pill-nav-list a { padding: 8px 11px; font-size: 13px; }
  .brand-tagline { display: none; }
}

@media (max-width: 1024px) {
  .site-header.is-condensed .header-inner { padding: 12px 0; }

  .pill-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: block;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(6, 20, 27, .98);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .55);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height .3s var(--ease), opacity .2s var(--ease),
                visibility .3s var(--ease);
  }

  .pill-nav[data-open="true"] {
    max-height: 72vh;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }

  .pill-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .pill-nav-list a {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 15px;
  }

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

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

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

@media (max-width: 720px) {
  body { font-size: 15.5px; background-size: 64px 64px, 64px 64px; }

  .section { padding: 56px 0; }
  .section--tight { padding: 36px 0; }

  .btn-app { display: none; }
  .btn-rank { padding: 10px 16px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0 32px;
  }

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

  .footer-base { flex-direction: column; padding-bottom: 28px; }

  .footer-ridge { height: 110px; }
}

@media (max-width: 420px) {
  .brand-word { font-size: 20px; }
  .nav-toggle-text { display: none; }
  .footer-nav-list { grid-template-columns: 1fr; }
}

/* ============================================================
   reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

  .pulse-dot { animation: none; }
}
