/* ============================================================
   3344体育 · 共享站点样式 /assets/site.css
   暖砂底色 / 深赭红 / 沙金 / 天山雪青 / 夜赛场电光蓝
   ============================================================ */

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

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

body,
h1, h2, h3, h4, h5,
p, figure, blockquote, dl, dd { margin: 0; }

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

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

button { font: inherit; color: inherit; }

/* ---------- 2. tokens ---------- */
:root {
  --ink: #1E1A17;
  --ink-2: #3B322B;
  --muted: #8C7B6B;
  --sand: #F5EDE0;
  --sand-2: #E8D9C4;
  --sand-3: #FBF6EE;
  --red: #6B2D2B;
  --red-deep: #4A1E1D;
  --gold: #C9A15A;
  --gold-2: #E2C288;
  --cyan: #7FA8B8;
  --blue: #2E4A7A;
  --night: #121A2B;
  --glass: rgba(255, 255, 255, 0.10);
  --line: rgba(30, 26, 23, 0.14);
  --line-soft: rgba(30, 26, 23, 0.08);

  --font-head: 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;

  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --header-h: 112px;
  --shell: min(1240px, 92vw);

  --shadow-1: 0 12px 32px -20px rgba(30, 26, 23, 0.6);
  --shadow-2: 0 26px 64px -34px rgba(18, 26, 43, 0.72);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. base typography ---------- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--sand);
  background-image:
    radial-gradient(1200px 520px at 88% -8%, rgba(201, 161, 90, 0.16), transparent 62%),
    radial-gradient(900px 460px at -6% 6%, rgba(107, 45, 43, 0.10), transparent 66%);
  background-repeat: no-repeat;
  padding-top: var(--header-h);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.6rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
h4 { font-size: clamp(1.02rem, 1.4vw, 1.2rem); letter-spacing: 0; }

p { text-wrap: pretty; }

a { color: var(--blue); }

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

/* ---------- 4. layout helpers ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.78;
  color: var(--ink-2);
  max-width: 58ch;
}

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { list-style: disc; padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(28px, 4.5vw, 52px);
}

/* ---------- 5. buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.64em 1.18em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #2A1B10;
  box-shadow: 0 10px 22px -14px rgba(201, 161, 90, 0.95);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -15px rgba(201, 161, 90, 1);
}

.btn--ghost {
  background: rgba(107, 45, 43, 0.06);
  color: var(--red);
  border-color: rgba(107, 45, 43, 0.22);
}
.btn--ghost:hover {
  background: rgba(201, 161, 90, 0.16);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--night);
  color: var(--sand);
}
.btn--dark:hover {
  background: #1B2740;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -18px rgba(18, 26, 43, 0.9);
}

/* ---------- 6. tags / cards / data ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.28em 0.8em;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(127, 168, 184, 0.16);
  color: #2A5364;
  border: 1px solid rgba(127, 168, 184, 0.42);
}

.tag--gold {
  background: rgba(201, 161, 90, 0.18);
  color: #7A5620;
  border-color: rgba(201, 161, 90, 0.48);
}

.tag--red {
  background: rgba(107, 45, 43, 0.12);
  color: var(--red);
  border-color: rgba(107, 45, 43, 0.3);
}

.card {
  position: relative;
  background: var(--sand-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 30px);
  box-shadow: var(--shadow-1);
}

.card--glass {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--sand);
}

.card--night {
  background: linear-gradient(150deg, #1A2440, var(--night));
  border-color: rgba(245, 237, 224, 0.16);
  color: var(--sand);
  box-shadow: var(--shadow-2);
}

.stat-figure {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* ---------- 7. breadcrumb ---------- */
.crumbs {
  font-size: 0.82rem;
  color: var(--muted);
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
}

.crumbs__list li {
  display: flex;
  align-items: center;
  gap: 0.55em;
}

.crumbs__list li + li::before {
  content: "/";
  color: rgba(140, 123, 107, 0.55);
}

.crumbs__link {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.crumbs__link:hover {
  color: var(--red);
  border-bottom-color: var(--gold);
}

.crumbs__current { color: var(--muted); }

/* ---------- 8. media frame (供页面阶段放图) ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(90% 70% at 78% 12%, rgba(201, 161, 90, 0.32), transparent 62%),
    linear-gradient(142deg, var(--red-deep) 0%, #2A2233 46%, var(--night) 72%, var(--blue) 100%);
  box-shadow: var(--shadow-2);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.media-caption {
  margin-top: 0.7em;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- 9. grids ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- 10. reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

/* ---------- 11. header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding-block: clamp(14px, 2.2vw, 26px);
  pointer-events: none;
  transition: padding-block 0.28s var(--ease);
}

.site-header[data-scrolled="true"] { padding-block: 10px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 52%, var(--cyan) 78%, var(--blue) 100%);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 0.66em 1.15em;
  border-radius: 12px;
  background: var(--night);
  color: var(--sand);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: var(--shadow-2);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

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

.header-shell {
  width: var(--shell);
  margin-inline: auto;
  pointer-events: none;
}

.nav-island {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.5vw, 20px);
  padding: 9px clamp(12px, 1.4vw, 18px);
  border-radius: var(--radius-pill);
  background: rgba(251, 246, 238, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 20px 48px -30px rgba(18, 26, 43, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  pointer-events: auto;
  transition:
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    padding 0.3s var(--ease);
}

.site-header[data-scrolled="true"] .nav-island {
  background: rgba(251, 246, 238, 0.93);
  box-shadow:
    0 14px 34px -26px rgba(18, 26, 43, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* brand cluster */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--red) 0 52%, var(--gold) 52% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 8px 16px -10px rgba(74, 30, 29, 0.95);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.14;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-tag {
  margin-top: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.version-badge {
  flex: 0 0 auto;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  background: rgba(201, 161, 90, 0.2);
  border: 1px solid rgba(201, 161, 90, 0.5);
  white-space: nowrap;
}

/* primary nav */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

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

.nav-link {
  display: block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--red);
  background: rgba(107, 45, 43, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--sand-3);
  background: linear-gradient(120deg, var(--red), var(--red-deep));
  box-shadow: 0 10px 20px -14px rgba(107, 45, 43, 0.95);
}

/* header actions */
.nav-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions .btn {
  font-size: 0.84rem;
  padding: 0.56em 1.02em;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(107, 45, 43, 0.24);
  background: rgba(107, 45, 43, 0.06);
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(201, 161, 90, 0.18);
  border-color: var(--gold);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle__text { line-height: 1; }

/* ---------- 12. footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  overflow: hidden;
  border-top: 1px solid rgba(201, 161, 90, 0.38);
  background-color: var(--night);
  background-image:
    radial-gradient(120% 92% at 10% 0%, rgba(107, 45, 43, 0.62), transparent 58%),
    radial-gradient(95% 80% at 94% 10%, rgba(46, 74, 122, 0.55), transparent 62%),
    radial-gradient(70% 60% at 50% 110%, rgba(127, 168, 184, 0.16), transparent 70%);
  color: var(--sand);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    114deg,
    transparent 0 41%,
    rgba(201, 161, 90, 0.13) 41% 42.4%,
    transparent 42.4% 100%
  );
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) 0 clamp(26px, 4vw, 44px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

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

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sand);
}

.footer-brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.footer-version {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-2);
}

.footer-note {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.72;
  color: rgba(245, 237, 224, 0.66);
}

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

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

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list li + li { margin-top: 9px; }

.footer-link {
  color: rgba(245, 237, 224, 0.8);
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-link:hover { color: var(--gold-2); }

.footer-link:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.footer-contact__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 13px;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold-2);
}

.footer-contact__value {
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(245, 237, 224, 0.9);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  margin-top: clamp(34px, 5vw, 62px);
  padding-top: 20px;
  border-top: 1px solid rgba(245, 237, 224, 0.16);
}

.footer-bottom__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(245, 237, 224, 0.58);
}

/* ---------- 13. responsive ---------- */
@media (max-width: 1180px) and (min-width: 1081px) {
  .nav-link { padding: 8px 9px; font-size: 0.86rem; }
  .brand-tag { display: none; }
  .version-badge { display: none; }
}

@media (max-width: 1080px) {
  :root { --header-h: 100px; }

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

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex: 0 0 auto;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px;
    border-radius: 24px;
    background: rgba(251, 246, 238, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 28px 64px -34px rgba(18, 26, 43, 0.8);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
  }

  .primary-nav[data-open="true"] { display: flex; }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.98rem;
  }

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

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

@media (max-width: 860px) {
  :root { --header-h: 94px; --shell: min(1240px, 94vw); }

  .nav-actions .btn--ghost { display: none; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 88px; }

  .brand-tag { display: none; }
  .version-badge { display: none; }
  .nav-actions { display: none; }
  .nav-island { padding: 8px 12px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }

  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { justify-content: flex-start; }
  .footer-bottom__meta { font-size: 0.74rem; }
}

/* ---------- 14. motion preferences ---------- */
@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;
  }

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

  .btn:hover,
  .btn--gold:hover,
  .btn--ghost:hover,
  .btn--dark:hover {
    transform: none;
  }
}
