/* ============================================================
   风云体育 · 共享站点样式
   路径：/assets/site.css
   ============================================================ */

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

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

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

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

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

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

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

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

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

hr { border: 0; border-top: 1px solid var(--c-line); margin: 0; }

:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; }

/* ---------- 2. Tokens ---------- */
:root {
  --c-ink: #0B1B33;
  --c-ink-2: #12294A;
  --c-ink-3: #1A3760;
  --c-orange: #FF6A1A;
  --c-orange-2: #FFA23A;
  --c-green: #23C08A;
  --c-red: #E4323C;
  --c-violet: #4B3B8F;
  --c-wine: #7A1F35;
  --c-teal: #0E3B3A;
  --c-cyan: #3FD0D4;
  --c-paper: #F5F7FA;
  --c-text: #101820;
  --c-line: #C7D0DC;

  --line-soft: rgba(199, 208, 220, 0.24);
  --line-hair: rgba(199, 208, 220, 0.14);
  --muted-dark: #93A3BC;
  --muted-light: #5A6779;

  --font-head: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 26px;
  --fs-2xl: clamp(24px, 2.4vw + 10px, 34px);
  --fs-3xl: clamp(30px, 3.4vw + 10px, 46px);
  --fs-4xl: clamp(36px, 4.8vw + 10px, 60px);

  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 72px;
  --sp-8: 104px;

  --shell: 1240px;
  --rail: 232px;
  --radius: 3px;
  --shadow-hair: 0 2px 8px rgba(11, 27, 51, 0.16);
  --shadow-lift: 0 18px 40px rgba(11, 27, 51, 0.42);
}

/* ---------- 3. Base typography ---------- */
body {
  background: var(--c-paper);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-4xl); font-weight: 900; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

.num,
.mono,
time {
  font-family: var(--font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.tilt {
  display: inline-block;
  transform: skewX(-4deg);
}

/* ---------- 4. Layout helpers ---------- */
.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-4);
}

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

.with-rail {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-md > * + * { margin-top: var(--sp-4); }

.prose { max-width: 34em; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin-top: var(--sp-6); font-size: var(--fs-2xl); }
.prose h3 { margin-top: var(--sp-5); color: var(--c-ink); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 13px 26px;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-orange {
  background: var(--c-orange);
  color: #101820;
}
.btn-orange:hover { background: var(--c-orange-2); }

.btn-ghost {
  border-color: var(--line-soft);
  color: var(--c-paper);
}
.btn-ghost:hover {
  border-color: var(--c-orange);
  color: var(--c-orange);
}

.btn-sm {
  padding: 9px 18px;
  font-size: var(--fs-xs);
}

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 220;
  padding: 10px 18px;
  background: var(--c-orange);
  color: #101820;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 14px; }

/* ---------- 7. Header ---------- */
.site-header {
  position: relative;
  z-index: 80;
  background: var(--c-ink);
  color: var(--c-paper);
  border-bottom: 1px solid var(--line-hair);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 15px
  );
  pointer-events: none;
}

.header-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 84px;
  padding-block: 16px;
}

.brand-rail {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.brand::before {
  content: "";
  flex: none;
  width: 9px;
  height: 21px;
  background: var(--c-orange);
  transform: skewX(-14deg);
  border-radius: 1px;
}

.rail-quick {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rail-link {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.rail-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}
.rail-link[aria-current="page"] {
  color: var(--c-orange);
  border-color: rgba(255, 106, 26, 0.42);
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(245, 247, 250, 0.78);
  border-radius: 2px;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-link:hover { color: #FFFFFF; }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: #FFFFFF; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--c-paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.nav-toggle:hover { border-color: var(--c-orange); color: var(--c-orange); }

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 6;
  background: linear-gradient(90deg, var(--c-orange), var(--c-orange-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: var(--sp-8);
  background: var(--c-ink);
  color: var(--c-paper);
  border-top: 1px solid var(--line-hair);
  padding-block: var(--sp-6) var(--sp-5);
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 22px var(--sp-5);
  background: var(--c-ink-2);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--c-orange);
  border-radius: var(--radius);
}

.footer-cta-text {
  font-family: var(--font-head);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #FFFFFF;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: var(--sp-6) var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-hair);
}

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

.footer-brand {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.footer-desc {
  margin-top: 10px;
  max-width: 28em;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--muted-dark);
}

.footer-meta {
  margin-top: 14px;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: rgba(147, 163, 188, 0.72);
}

.footer-title {
  margin-bottom: var(--sp-3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-orange-2);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted-dark);
}

.footer-list a {
  color: var(--muted-dark);
  transition: color 0.18s ease;
}
.footer-list a:hover { color: #FFFFFF; }

.footer-contact { color: var(--muted-dark); }
.footer-contact li { word-break: break-word; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-hair);
  font-size: 13px;
  color: rgba(147, 163, 188, 0.82);
}

.footer-copy { letter-spacing: 0.02em; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-legal a { transition: color 0.18s ease; }
.footer-legal a:hover { color: #FFFFFF; }

/* ---------- 9. Breadcrumb ---------- */
.breadcrumb { padding-block: 20px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--muted-light);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--c-line);
}

.breadcrumb-list a:hover { color: var(--c-orange); }
.breadcrumb-list [aria-current="page"] { color: var(--c-text); font-weight: 600; }

/* ---------- 10. Panels & bands ---------- */
.panel {
  position: relative;
  padding: var(--sp-5);
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hair);
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 0.5px),
    var(--c-orange) calc(50% - 0.5px),
    var(--c-orange) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
  opacity: 0.9;
  pointer-events: none;
}

.panel-dark {
  background: var(--c-ink-2);
  border-color: var(--line-soft);
  color: var(--c-paper);
  box-shadow: none;
}

.panel-violet {
  background: var(--c-violet);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  box-shadow: none;
}

.panel-wine {
  background: var(--c-wine);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  box-shadow: none;
}

.panel-teal {
  background: var(--c-teal);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  box-shadow: none;
}

.panel-violet::after,
.panel-wine::after,
.panel-teal::after { background: none; }

.band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-ink);
  color: var(--c-paper);
  border-radius: var(--radius);
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.04) 0 1px,
    transparent 1px 16px
  );
  pointer-events: none;
}

.band > * { position: relative; }

/* ---------- 11. Section head ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-num);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-orange);
}

.section-title {
  margin-top: 6px;
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--c-ink);
}

.panel-dark .section-title,
.band .section-title { color: #FFFFFF; }

/* ---------- 12. Tags & dots ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  border-radius: 2px;
  background: rgba(11, 27, 51, 0.07);
  color: var(--muted-light);
}

.tag-live { background: rgba(228, 50, 60, 0.13); color: #B21F28; }
.tag-open { background: rgba(35, 192, 138, 0.15); color: #14795A; }
.tag-orange { background: rgba(255, 106, 26, 0.15); color: #B8480A; }

.dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- 13. Media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-ink-2);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(11, 27, 51, 0.58) 0%,
    rgba(11, 27, 51, 0) 46%,
    rgba(255, 106, 26, 0.2) 100%
  );
  pointer-events: none;
}

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

.media-frame--flat::after { background: none; }

/* ---------- 14. Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.72, 0.28, 1);
  will-change: opacity, transform;
}

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

/* ---------- 15. Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-about { grid-column: span 3; }
}

@media (max-width: 1024px) {
  .rail-quick { display: none; }
  .with-rail { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 92px; }

  .header-shell {
    min-height: 68px;
    padding-block: 12px;
    gap: var(--sp-3);
  }

  .brand { font-size: 18px; }

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

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: block;
    z-index: 160;
    padding: 10px;
    background: var(--c-ink-2);
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    box-shadow: var(--shadow-lift);
    transform: translateY(calc(100% + 28px));
    transition: transform 0.32s cubic-bezier(0.2, 0.75, 0.3, 1);
    max-height: 72vh;
    overflow-y: auto;
  }

  .site-nav[data-open] { transform: translateY(0); }

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

  .nav-link {
    display: block;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.045);
    border-radius: 3px;
    color: var(--c-paper);
  }

  .nav-link::after { display: none; }

  .nav-link:hover { background: rgba(255, 255, 255, 0.1); }

  .nav-link[aria-current="page"] {
    background: rgba(255, 106, 26, 0.16);
    color: var(--c-orange);
    box-shadow: inset 2px 0 0 var(--c-orange);
  }

  .grid-12 { gap: var(--sp-3); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }

  .footer-cta { padding: 20px var(--sp-4); }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, var(--shell)); }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5) var(--sp-4);
  }
  .footer-about { grid-column: span 2; }

  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-about { grid-column: span 1; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .footer-cta .btn { width: 100%; }
  .nav-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 16. Reduced motion ---------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .skip-link { transition: none; }
}
