/* ============================================================
   有球赛场 / STADIUM YOUQIU — shared site kit
   /assets/site.css
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body { margin: 0; }

h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, figure, blockquote, pre { margin: 0; }

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

img, svg, picture, video, canvas { display: block; max-width: 100%; height: auto; }

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #07130F;
  --ink-2: #0E1512;
  --panel: #1E3A2C;
  --lime: #B8FF3D;
  --amber: #F2B84B;
  --paper: #EAF2EC;
  --grey: #8C9890;
  --clay: #B86B4B;
  --cream: #F1E8D8;

  --line: rgba(234, 242, 236, 0.13);
  --line-strong: rgba(234, 242, 236, 0.26);
  --lime-soft: rgba(184, 255, 61, 0.10);
  --amber-soft: rgba(242, 184, 75, 0.12);
  --glass: rgba(14, 21, 18, 0.86);

  --rail-w: 0px;
  --gut: clamp(16px, 3vw, 40px);
  --content-max: 1340px;

  --r-sm: 3px;
  --r-md: 6px;
  --r-pill: 999px;

  --shadow-hard: 5px 5px 0 rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 18px 44px -28px rgba(0, 0, 0, 0.95);

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

  --fs-display: clamp(44px, 6.6vw, 96px);
  --fs-h1: clamp(34px, 4.4vw, 64px);
  --fs-h2: clamp(26px, 3vw, 40px);
  --fs-h3: clamp(20px, 2vw, 28px);
  --fs-lead: clamp(17px, 1.4vw, 20px);
  --fs-body: 17px;
  --fs-sm: 14px;
  --fs-xs: 12px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base ---------- */
body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
  padding-left: var(--rail-w);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.28; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-lead); line-height: 1.4; letter-spacing: 0; }

strong { font-weight: 700; color: var(--cream); }

::selection {
  background: var(--lime);
  color: #07130F;
}

/* ---------- 4. Utilities ---------- */
.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;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: calc(var(--rail-w) + 50%);
  transform: translate(-50%, -240%);
  z-index: 900;
  padding: 12px 24px;
  background: var(--lime);
  color: #07130F;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-hard);
  transition: transform 0.26s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 2px solid #07130F;
  outline-offset: 3px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}

.prose { font-size: var(--fs-body); line-height: 1.85; }

.prose p { max-width: 64ch; color: rgba(234, 242, 236, 0.86); }

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

.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ---------- 5. Layout ---------- */
#main-content {
  display: block;
  padding: clamp(96px, 14vh, 128px) var(--gut) clamp(48px, 7vw, 88px);
}

.page-wrap {
  max-width: var(--content-max);
  margin-inline: auto;
}

.section { padding-block: clamp(32px, 5vw, 72px); }

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 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); }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s var(--ease),
              box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease),
              color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

.btn--primary {
  background: var(--lime);
  color: #07130F;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.48);
}

.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.52);
}

.btn--amber {
  background: var(--amber);
  color: #07130F;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.48);
}

.btn--amber:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.52);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}

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

/* ---------- 7. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: clamp(20px, 3vw, 34px);
}

.breadcrumb a {
  color: var(--grey);
  transition: color 0.18s var(--ease);
}

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

.breadcrumb-sep {
  color: rgba(234, 242, 236, 0.28);
  font-size: 10px;
}

/* ---------- 8. Media containers ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background-color: var(--ink-2);
  background-image:
    repeating-linear-gradient(90deg, rgba(184, 255, 61, 0.055) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(0deg, rgba(234, 242, 236, 0.035) 0 1px, transparent 1px 30px),
    radial-gradient(130% 95% at 18% 0%, rgba(30, 58, 44, 0.95), rgba(7, 19, 15, 0.99));
}

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

.media--wide { aspect-ratio: 16 / 9; }
.media--band { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 19, 15, 0) 38%, rgba(7, 19, 15, 0.92) 100%);
}

.media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper);
  opacity: 0.82;
}

/* ---------- 9. Header ---------- */
.site-header {
  position: relative;
  z-index: 200;
}

/* 9.1 左侧品牌轨道 */
.brand-rail { display: none; }

.rail-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--lime);
  color: #07130F;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  border-radius: var(--r-sm);
  box-shadow: 4px 4px 0 rgba(184, 255, 61, 0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.rail-mark:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(184, 255, 61, 0.24);
}

.rail-word {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.30em;
  color: var(--paper);
  padding-block: 12px;
}

.rail-annotation {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--grey);
}

.rail-meter {
  position: relative;
  display: block;
  width: 2px;
  height: 74px;
  background: rgba(234, 242, 236, 0.14);
  border-radius: 2px;
  overflow: hidden;
}

.rail-meter-fill {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--lime), var(--amber));
  transition: height 0.12s linear;
}

@media (min-width: 1080px) {
  :root { --rail-w: 86px; }

  .brand-rail {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0 28px;
    background: var(--ink-2);
    border-right: 1px solid var(--line);
    z-index: 150;
  }
}

/* 9.2 顶部浮岛条 */
.header-bar {
  position: fixed;
  top: 12px;
  left: calc(var(--rail-w) + 12px);
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 210;
  pointer-events: none;
  transition: top 0.3s var(--ease);
}

.header-bar > * { pointer-events: auto; }

.site-header.is-scrolled .header-bar { top: 8px; }

@media (min-width: 1080px) {
  .header-bar {
    top: 18px;
    left: calc(var(--rail-w) + 18px);
    right: 18px;
  }
  .site-header.is-scrolled .header-bar { top: 12px; }
}

/* 9.3 品牌胶囊 */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 18px 6px 6px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.brand-lockup:hover { border-color: var(--lime); }

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: var(--lime);
  color: #07130F;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  border-radius: 50%;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.brand-latin {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

/* 9.4 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-toggle-icon {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-icon > span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

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

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

.nav-toggle-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* 9.5 主导航胶囊 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { display: block; }

.nav-link {
  display: block;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--paper);
  opacity: 0.74;
  transition: opacity 0.2s var(--ease),
              background-color 0.2s var(--ease),
              color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

.nav-link:hover {
  opacity: 1;
  background: rgba(234, 242, 236, 0.08);
}

.nav-link:focus-visible { opacity: 1; }

.nav-link[aria-current="page"] {
  opacity: 1;
  color: var(--lime);
  background: var(--lime-soft);
  box-shadow: inset 0 0 0 1px rgba(184, 255, 61, 0.55);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-left: 4px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: #07130F;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.5);
}

/* 9.6 折叠断点 */
@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(10, 17, 14, 0.97);
    box-shadow: 0 26px 52px -26px rgba(0, 0, 0, 0.92);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }

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

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

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 13px 16px;
    border-radius: 14px;
    opacity: 1;
    font-size: 15.5px;
  }

  .nav-cta {
    margin: 8px 0 0;
    min-height: 48px;
    border-radius: 14px;
    box-shadow: none;
  }

  .nav-cta:hover { transform: none; box-shadow: none; }
}

@media (max-width: 560px) {
  .header-bar { top: 10px; left: 10px; right: 10px; }
  .site-header.is-scrolled .header-bar { top: 8px; }

  .brand-lockup { gap: 8px; padding: 6px 14px 6px 6px; min-height: 46px; }
  .brand-mark { flex-basis: 32px; width: 32px; height: 32px; font-size: 14px; }
  .brand-name { font-size: 13.5px; }
  .brand-latin { display: none; }

  .nav-toggle { min-height: 46px; padding: 0 14px; }
  .nav-toggle-text { display: none; }
}

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line-strong);
  margin-top: clamp(56px, 9vw, 112px);
}

.footer-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gut) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
}

@media (min-width: 700px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--lime);
  color: #07130F;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  border-radius: var(--r-sm);
  box-shadow: 4px 4px 0 rgba(184, 255, 61, 0.16);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.footer-latin {
  margin-top: -4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey);
}

.footer-note {
  margin-top: 6px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--grey);
}

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

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

.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-list {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}

.footer-list a {
  display: inline-block;
  color: var(--paper);
  opacity: 0.78;
  transition: opacity 0.18s var(--ease),
              color 0.18s var(--ease),
              padding-left 0.18s var(--ease);
}

.footer-list a:hover {
  opacity: 1;
  color: var(--lime);
  padding-left: 4px;
}

.footer-list--contact { gap: 8px; }

.footer-contact-item {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--grey);
}

.footer-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--paper);
}

.footer-service {
  margin-top: 16px;
  max-width: 32ch;
  padding-left: 12px;
  border-left: 2px solid var(--clay);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--grey);
}

.footer-base {
  max-width: var(--content-max);
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 22px var(--gut) 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  font-size: 12.5px;
  color: var(--grey);
}

.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.footer-copy span { color: var(--paper); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  color: var(--grey);
  transition: color 0.18s var(--ease);
}

.footer-legal a:hover { color: var(--lime); }

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--grey);
}

/* ---------- 11. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  [data-reveal][data-revealed="true"] {
    opacity: 1;
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

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