/* ==========================================================================
   三升体育官网 · 共享样式 /assets/site.css
   高原赛场控制台：青蓝深区 + 雪白长读区 + 粗边框硬阴影 + 斜切色带
   ========================================================================== */

/* ---------- 01 · reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- 02 · tokens ---------- */
:root {
  --ink: #071A20;
  --blue: #0B3B4D;
  --snow: #F7FBF9;
  --frost: #DDE7E5;
  --sand: #EEF3F0;
  --rock: #6E7F82;
  --orange: #FF5A1F;
  --lime: #B6FF3B;
  --cyan: #2DD4FF;
  --violet: #7C5CFF;

  --snow-a16: rgba(247, 251, 249, 0.16);
  --snow-a55: rgba(247, 251, 249, 0.55);
  --snow-a72: rgba(247, 251, 249, 0.72);
  --snow-a82: rgba(247, 251, 249, 0.82);

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;

  --shell: 1220px;
  --pad-x: clamp(16px, 4vw, 40px);
  --band: clamp(44px, 6vw, 92px);
  --gap: clamp(12px, 1.6vw, 20px);

  --pill: 999px;
  --block: 6px;
  --line: 2px solid var(--ink);
  --hard: 8px 8px 0 var(--ink);
  --hard-sm: 4px 4px 0 var(--ink);

  --ease: cubic-bezier(.22, .68, .36, 1);
  --t: .28s;
}

/* ---------- 03 · base type ---------- */
body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } }

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

h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }

.display-1 { font-size: clamp(38px, 7.4vw, 104px); font-weight: 400; line-height: .95; letter-spacing: -.045em; }
.display-2 { font-size: clamp(27px, 4.2vw, 50px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.heading-3 { font-size: clamp(19px, 2.1vw, 23px); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }

.lede { font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.72; color: var(--rock); max-width: 34em; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.25em; list-style: disc; }
.prose li + li { margin-top: .45em; }

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

.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;
}

.index-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; line-height: 1.4;
  color: var(--blue);
}
.index-label::before { content: ""; width: 18px; height: 2px; background: currentColor; flex: none; }
.section--blue .index-label,
.section--ink .index-label,
.on-dark .index-label { color: var(--lime); }
.index-label--orange { color: var(--orange); }

/* ---------- 04 · layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad-x); }
.shell--narrow { max-width: 880px; }

.section { position: relative; padding-block: var(--band); }
.section--frost { background: var(--frost); }
.section--sand { background: var(--sand); }
.section--blue { background: var(--blue); color: var(--snow); }
.section--ink { background: var(--ink); color: var(--snow); }
.section--blue .lede,
.section--ink .lede { color: var(--snow-a72); }

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: clamp(12px, 1.6vw, 20px); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.bento > * { min-width: 0; }

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 12; }
}
@media (max-width: 640px) {
  .bento > * { grid-column: span 12 !important; }
}

/* ---------- 05 · buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px;
  border: var(--line); border-radius: var(--pill);
  background: var(--snow); color: var(--ink);
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  line-height: 1.2; letter-spacing: .03em; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-sm); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn--primary { background: var(--orange); border-color: var(--ink); color: #160701; }
.btn--lime { background: var(--lime); border-color: var(--ink); color: var(--ink); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(45, 212, 255, .14); border-color: var(--cyan); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- 06 · breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rock);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--frost); }
.breadcrumb a {
  color: var(--rock); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.breadcrumb a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.breadcrumb [aria-current="page"] { color: var(--blue); }

/* ---------- 07 · panels ---------- */
.panel {
  background: var(--snow);
  border: var(--line); border-radius: var(--block);
  box-shadow: var(--hard-sm);
  padding: clamp(16px, 2vw, 26px);
}
.panel--dark { background: var(--ink); color: var(--snow); }
.panel--blue { background: var(--blue); color: var(--snow); }
.panel--frost { background: var(--frost); }
.panel--flat { box-shadow: none; }

/* ---------- 08 · media（可复用图片容器基础规则） ---------- */
.media {
  position: relative; overflow: hidden;
  border: var(--line); border-radius: var(--block);
  background: var(--frost);
  aspect-ratio: 16 / 10;
}
.media > img,
.media > svg,
.media > picture > img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--plain { border: 0; border-radius: 0; }
.media--slash { border: 0; border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.media__caption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 7px 12px;
  background: rgba(7, 26, 32, .84); color: var(--snow);
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- 09 · reveal ---------- */
html[data-js="true"] [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html[data-js="true"] [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 10 · header · 悬浮胶囊浮岛 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  padding: clamp(10px, 1.5vw, 18px) var(--pad-x) 0;
  pointer-events: none;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 20px; border-radius: var(--pill);
  background: var(--lime); color: var(--ink);
  font-size: 14px; font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
  pointer-events: auto;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid var(--ink); outline-offset: 2px; }

.scroll-meter {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150;
  background: rgba(11, 59, 77, .12);
  pointer-events: none;
}
.scroll-meter > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--lime) 60%, var(--orange));
  transition: width .15s linear;
}

.nav-shell {
  position: relative;
  display: flex; align-items: center;
  gap: clamp(10px, 2vw, 26px);
  width: 100%; max-width: var(--shell); margin-inline: auto;
  padding: 10px 12px 10px 18px;
  background: var(--blue); color: var(--snow);
  border: var(--line); border-radius: var(--pill);
  box-shadow: var(--hard-sm);
  pointer-events: auto;
  transition: padding .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header[data-scrolled="true"] .nav-shell {
  padding-block: 6px;
  box-shadow: 5px 5px 0 rgba(7, 26, 32, .62);
}

.brand-lockup {
  display: inline-flex; align-items: center; gap: 10px;
  flex: none; text-decoration: none; color: var(--snow);
  border-radius: 10px; padding: 2px 4px 2px 0;
}
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; width: 24px; height: 20px; flex: none; }
.brand-mark i { display: block; width: 5px; border-radius: 1px; background: var(--lime); }
.brand-mark i:nth-child(1) { height: 56%; background: var(--cyan); }
.brand-mark i:nth-child(2) { height: 100%; background: var(--lime); }
.brand-mark i:nth-child(3) { height: 38%; background: var(--orange); }

.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-name { font-size: 15.5px; font-weight: 700; letter-spacing: .04em; color: var(--snow); }
.brand-latin {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--snow-a55);
}

.nav-toggle {
  display: none; align-items: center; gap: 10px; margin-left: auto;
  padding: 9px 16px; border-radius: var(--pill);
  border: 1px solid rgba(247, 251, 249, .38);
  background: rgba(7, 26, 32, .34); color: var(--snow);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { background: rgba(45, 212, 255, .16); border-color: var(--cyan); }
.nav-toggle-bars {
  position: relative; display: block; width: 16px; height: 2px;
  background: currentColor; transition: background-color .2s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px;
  background: currentColor; transition: transform .25s var(--ease);
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.site-header[data-open="true"] .nav-toggle-bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle-text { white-space: nowrap; }

.nav-panel { display: flex; align-items: center; gap: clamp(8px, 1.3vw, 18px); margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  padding: 8px 12px; border-radius: var(--pill);
  font-size: 14px; line-height: 1.25; letter-spacing: .02em; white-space: nowrap;
  color: var(--snow-a82); text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-link:hover { color: var(--snow); background: rgba(45, 212, 255, .16); }
.nav-link[aria-current="page"] {
  color: var(--snow);
  background: rgba(45, 212, 255, .2);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.nav-status {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 6px 12px; border-radius: var(--pill);
  border: 1px solid var(--snow-a16);
  background: rgba(7, 26, 32, .36);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.4;
  letter-spacing: .08em; color: var(--snow-a72);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(182, 255, 59, .18);
}
.status-label { color: var(--snow-a55); }
.status-value { color: var(--snow); }

.nav-cta { flex: none; padding: 9px 18px; font-size: 13.5px; white-space: nowrap; }

/* ---------- 11 · footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink); color: var(--snow);
  overflow: hidden;
}
.footer-slash {
  display: block; width: 100%; height: clamp(26px, 4vw, 50px);
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 42%, var(--lime) 74%, var(--orange) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}
.footer-inner {
  width: 100%; max-width: var(--shell); margin-inline: auto;
  padding: clamp(30px, 4.5vw, 56px) var(--pad-x) clamp(18px, 3vw, 30px);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(26px, 3.6vw, 44px);
  border-bottom: 1px solid var(--snow-a16);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-mark--footer { width: 32px; height: 26px; margin-bottom: 4px; }
.brand-mark--footer i { width: 7px; }
.footer-brand-name {
  font-size: clamp(24px, 3vw, 36px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em; color: var(--snow);
}
.footer-brand-latin {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--snow-a55); margin-top: -2px;
}
.footer-tagline { font-size: 13.5px; line-height: 1.6; color: var(--snow-a55); max-width: 22ch; }

.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(16px, 2.6vw, 32px); }
.footer-col { min-width: 0; }
.footer-col-title {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; }
.footer-link {
  display: inline-block; width: fit-content; padding: 2px 0;
  font-size: 14.5px; line-height: 1.5;
  color: rgba(247, 251, 249, .78); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--cyan); border-bottom-color: var(--cyan); }

.footer-contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(14px, 2.2vw, 26px);
  padding: clamp(20px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--snow-a16);
}
.contact-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.contact-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--snow-a55);
}
.contact-value { font-size: 14px; line-height: 1.6; color: var(--snow); overflow-wrap: anywhere; }
.contact-value--mono { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .01em; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 10px 24px;
  padding-top: clamp(16px, 2.4vw, 26px);
}
.footer-legal {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em;
  color: rgba(247, 251, 249, .5);
}
.footer-note { font-size: 12.5px; line-height: 1.6; color: rgba(247, 251, 249, .45); max-width: 52ch; }

/* ---------- 12 · focus ---------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.section--blue :focus-visible,
.section--ink :focus-visible,
.site-footer :focus-visible,
.nav-shell :focus-visible { outline-color: var(--cyan); }
.skip-link:focus-visible { outline-color: var(--ink); }

/* ---------- 13 · responsive ---------- */
@media (max-width: 1080px) {
  .nav-status { display: none; }
  .nav-link { padding-inline: 10px; font-size: 13.5px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch;
    gap: 14px; margin-left: 0; padding: 16px;
    background: var(--blue);
    border: var(--line); border-radius: 22px;
    box-shadow: var(--hard);
    max-height: min(70vh, 540px); overflow-y: auto;
  }
  .site-header[data-open="true"] .nav-panel { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 13px 14px; font-size: 15px; border-radius: 12px; }
  .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); }
  .nav-cta { width: 100%; padding-block: 13px; }
  .nav-status { display: flex; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-shell { padding-left: 14px; gap: 8px; }
  .brand-name { font-size: 15px; }
  .brand-latin { font-size: 8px; letter-spacing: .14em; }
  .footer-slash { height: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-note { max-width: none; }
  .display-1 { letter-spacing: -.03em; }
}

/* ---------- 14 · 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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  html[data-js="true"] [data-reveal] { opacity: 1 !important; transform: none !important; }
  .btn:hover { transform: none; }
  .scroll-meter > span { transition: none; }
}
