/* ===========================================================
   BOWAN体育 · 共享 Site Kit  ( /assets/site.css )
   =========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- 2. Design tokens ---------- */
:root {
  --ink:        #07121F;
  --ink-2:      #0C1B2A;
  --surface:    #142A3D;
  --line:       #2B455C;
  --line-soft:  rgba(43, 69, 92, .5);

  --mint:       #3DF5C0;
  --mint-soft:  rgba(61, 245, 192, .12);
  --cyan:       #25C7F0;
  --orange:     #FF8A3D;
  --paper:      #EAF2F5;
  --muted:      #8FA6B8;
  --coral:      #FF5C7A;

  --shell-max:  1320px;
  --gutter:     clamp(16px, 4vw, 28px);

  --r-pill: 999px;
  --r-xl:   24px;
  --r-lg:   16px;
  --r-md:   12px;
  --r-sm:   8px;

  --f-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-body:    Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-panel: 0 30px 70px -50px rgba(0, 0, 0, .95);
  --shadow-lift:  0 20px 44px -28px rgba(0, 0, 0, .8);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 10% -8%, rgba(37, 199, 240, .10), transparent 62%),
    radial-gradient(760px 480px at 92% 0%, rgba(61, 245, 192, .08), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1100px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); letter-spacing: -.02em; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }

p { max-width: 72ch; }
strong { font-weight: 700; color: var(--paper); }

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

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

/* ---------- 4. Layout helpers ---------- */
.shell {
  width: min(var(--shell-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.shell--narrow { max-width: 880px; }

.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

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

@media (max-width: 1000px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3, .span-4 { grid-column: span 3; }
  .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line-soft);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -160%);
  padding: 12px 22px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform .2s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 6. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 150;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mint), var(--cyan) 55%, var(--orange));
}

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 14px 0 22px;
  background: linear-gradient(180deg,
      #07121F 0%,
      rgba(7, 18, 31, .94) 58%,
      rgba(7, 18, 31, 0) 100%);
}

.header-shell {
  width: min(var(--shell-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

.nav-capsule {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(12, 27, 42, .92);
  box-shadow: 0 26px 50px -40px #000;
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(61, 245, 192, .55);
  background: linear-gradient(140deg, rgba(61, 245, 192, .22), rgba(37, 199, 240, .08));
  color: var(--mint);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: inset 0 0 12px rgba(61, 245, 192, .18);
}
.brand-word { letter-spacing: -.01em; }

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.nav-toggle:hover { border-color: var(--mint); color: var(--mint); }
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transition: transform .25s ease;
}
.nav-toggle-text {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
}
.site-header[data-open] .nav-toggle-bars i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* primary nav */
.primary-nav { margin-left: auto; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.nav-list a:hover {
  color: var(--paper);
  background: rgba(234, 242, 245, .06);
}
.nav-list a[aria-current="page"] {
  color: var(--mint);
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px rgba(61, 245, 192, .45);
}

.nav-cta {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-size: 14px;
}

/* quick bar */
.quick-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 6px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(12, 27, 42, .62);
}
.quick-bar-label {
  flex: 0 0 auto;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}
.quick-list {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-list::-webkit-scrollbar { display: none; }
.quick-list li { flex: 0 0 auto; }
.quick-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.quick-list a:hover {
  color: var(--paper);
  background: rgba(37, 199, 240, .12);
}
.quick-index {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--orange);
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease,
              border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 16px 34px -22px rgba(61, 245, 192, .95);
}
.btn-primary:hover { background: #6CFFD7; transform: translateY(-1px); }

.btn-ghost {
  color: var(--paper);
  border-color: var(--line);
  background: rgba(20, 42, 61, .5);
}
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }

.btn-quiet {
  padding-inline: 6px;
  border-radius: var(--r-sm);
  color: var(--mint);
}
.btn-quiet:hover { background: var(--mint-soft); }

/* ---------- 9. Footer ---------- */
.site-footer {
  margin-top: 110px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg,
      rgba(12, 27, 42, 0) 0%,
      rgba(12, 27, 42, .85) 12%,
      var(--ink-2) 100%);
}

.footer-shell {
  width: min(var(--shell-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) repeat(3, minmax(140px, .75fr));
  gap: 36px 28px;
}

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

.footer-tagline {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper);
}

.footer-contact {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.footer-contact-key {
  min-width: 58px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-contact-val {
  font-size: 14px;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.copy-btn {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.copy-btn:hover { border-color: var(--mint); color: var(--mint); }
.copy-btn.is-copied {
  border-color: var(--mint);
  color: var(--mint);
  background: var(--mint-soft);
}

.footer-note {
  margin-top: 18px;
  max-width: 40ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-col { min-width: 0; }
.footer-col-title {
  margin: 0 0 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}

.footer-links { display: grid; gap: 11px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  color: var(--paper);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-links a::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1px;
  margin-right: 10px;
  background: var(--line);
  transition: width .22s ease, background-color .22s ease;
}
.footer-links a:hover { color: var(--mint); }
.footer-links a:hover::before { width: 16px; background: var(--mint); }

.footer-base {
  width: min(var(--shell-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: 20px 0 36px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-copy { font-size: 12.5px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-legal a:hover { color: var(--mint); }
.footer-icp {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 10. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  padding: 22px 0 0;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 11. Panels & chips ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface), #0F2233);
  box-shadow: var(--shadow-panel);
}
.panel--ink { background: linear-gradient(160deg, var(--ink-2), #0A1727); }
.panel--focus {
  border-color: rgba(61, 245, 192, .42);
  box-shadow: 0 0 0 1px rgba(61, 245, 192, .16), var(--shadow-panel);
}
.panel--flat { box-shadow: none; }

.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip--mint {
  color: var(--mint);
  border-color: rgba(61, 245, 192, .4);
  background: rgba(61, 245, 192, .08);
}
.chip--orange {
  color: var(--orange);
  border-color: rgba(255, 138, 61, .4);
  background: rgba(255, 138, 61, .08);
}

@keyframes bowanPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 245, 192, .45); }
  70%      { box-shadow: 0 0 0 7px rgba(61, 245, 192, 0); }
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: bowanPulse 2.8s ease-out infinite;
}

/* ---------- 12. Media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(rgba(61, 245, 192, .05) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(61, 245, 192, .05) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(160deg, #102A3F, #0A1727);
}
.media-frame > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide   { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall   { aspect-ratio: 4 / 5; }

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(7, 18, 31, .92), rgba(7, 18, 31, 0));
}

/* ---------- 13. Reveal ---------- */
[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease,
              transform .6s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-pending.is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 900px) {
  .site-header { padding: 10px 0 16px; }
  .header-shell { gap: 8px; }

  .nav-capsule {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 10px 8px 12px;
    border-radius: 20px;
  }
  .brand { font-size: 16px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .primary-nav {
    order: 5;
    flex: 1 0 100%;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .34s ease, opacity .22s ease, visibility .34s;
  }
  .site-header[data-open] .primary-nav {
    max-height: 60vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
  }
  .nav-list a { padding: 12px 14px; border-radius: 12px; font-size: 16px; }

  .nav-cta { display: none; }

  .quick-bar { gap: 0; padding: 5px 8px; }
  .quick-bar-label { display: none; }
  .quick-list { width: 100%; gap: 0; }

  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .footer-lead { grid-column: 1 / -1; }
  .footer-icp { margin-left: 0; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .footer-shell { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal { width: 100%; }
  .panel { border-radius: var(--r-md); }
}

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

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