/* ==========================================================
   猫头鹰体育 / Owl Sports
   Shared Site CSS — /assets/site.css
   ========================================================== */

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

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

body {
  min-height: 100vh;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #f5f7fa;
  background-color: #080d19;
  background-image:
    radial-gradient(ellipse at 85% 8%, rgba(69, 217, 197, 0.05), transparent 48%),
    radial-gradient(ellipse at 12% 92%, rgba(198, 255, 46, 0.035), transparent 42%),
    linear-gradient(45deg, transparent 48%, rgba(245, 247, 250, 0.008) 50%, rgba(245, 247, 250, 0.008) 52%, transparent 54%),
    linear-gradient(-45deg, transparent 48%, rgba(245, 247, 250, 0.008) 50%, rgba(245, 247, 250, 0.008) 52%, transparent 54%);
  background-size: auto, auto, 80px 80px, 80px 80px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}

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

img {
  border: 0;
}

a {
  color: #c6ff2e;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #d8ff66;
}

ul, ol {
  list-style-position: inside;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- 2. Variables ---------- */
:root {
  --site-max: 1280px;
  --header-h: 72px;
  --radius: 2px;
  --color-bg: #080d19;
  --color-bg-2: #10213d;
  --color-dark: #161a24;
  --color-accent: #c6ff2e;
  --color-accent-alt: #ffa430;
  --color-teal: #45d9c5;
  --color-text: #f5f7fa;
  --color-muted: #8a97a8;
  --color-border: rgba(245, 247, 250, 0.08);
  --color-glow: rgba(198, 255, 46, 0.12);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-display: 'Inter Tight', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

/* ---------- 3. Focus & Motion ---------- */
:focus-visible {
  outline: 2px solid #c6ff2e;
  outline-offset: 3px;
}

::selection {
  background: #c6ff2e;
  color: #0a0f1d;
}

#main-content {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

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

/* ---------- 4. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 999;
  background: #c6ff2e;
  color: #0a0f1d;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: #0a0f1d;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 25, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 247, 250, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 140px;
  height: 1px;
  background: linear-gradient(270deg, #c6ff2e, transparent 85%);
  opacity: 0.45;
  pointer-events: none;
}

.header-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: var(--header-h);
  padding: 0 24px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: #f5f7fa;
}

.brand:hover {
  color: #f5f7fa;
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  color: #c6ff2e;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.brand:hover .brand-mark {
  transform: rotate(-5deg);
}

.brand-name {
  font-family: 'Inter Tight', 'Noto Sans SC', 'PingFang SC', sans-serif;
  font-weight: 200;
  font-size: 24px;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

/* Nav Toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(198, 255, 46, 0.3);
  border-radius: 2px;
  cursor: pointer;
  color: #c6ff2e;
}

.nav-toggle:hover {
  background: rgba(198, 255, 46, 0.06);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s, background 0.25s;
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
}

.nav-toggle-bar::before {
  transform: translateY(-6px);
}

.nav-toggle-bar::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(0) rotate(-45deg);
}

/* Site Nav */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px 10px;
  color: #f5f7fa;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #c6ff2e;
}

.nav-link[aria-current="page"] {
  color: #c6ff2e;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  background: #c6ff2e;
  transform: translateX(-50%) skewX(-20deg);
}

/* Header Responsive */
@media (max-width: 860px) {
  :root {
    --header-h: 60px;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: #080d19;
    border-top: 1px solid rgba(245, 247, 250, 0.08);
    border-bottom: 1px solid rgba(245, 247, 250, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 8px 24px 24px;
  }

  .site-nav[data-open] {
    display: block;
  }

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

  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-link[aria-current="page"]::after {
    left: 0;
    right: auto;
    bottom: auto;
    top: 0;
    width: 3px;
    height: 100%;
    transform: none;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .header-inner {
    gap: 16px;
  }
}

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative;
  background: #161a24;
  border-top: 1px solid rgba(198, 255, 46, 0.22);
  margin-top: 96px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #c6ff2e 0%, #ffa430 55%, transparent 100%);
  opacity: 0.8;
  pointer-events: none;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 64px;
}

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

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand-text {
  max-width: 46em;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.8;
  color: #8a97a8;
}

.footer-icp {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border: 1px solid rgba(245, 247, 250, 0.08);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8a97a8;
}

.footer-heading {
  margin: 0 0 16px;
  font-family: 'Inter Tight', 'Noto Sans SC', 'PingFang SC', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5f7fa;
}

.footer-heading::before {
  content: "// ";
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  color: #c6ff2e;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}

.footer-links li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.footer-links a {
  color: #8a97a8;
  font-size: 14px;
  line-height: 1.8;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: #c6ff2e;
  padding-left: 4px;
}

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

.footer-contact-item {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact-label {
  flex-shrink: 0;
  min-width: 2.5em;
  padding-top: 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8a97a8;
}

.footer-contact-value {
  color: #f5f7fa;
  word-break: break-word;
}

.footer-note {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid rgba(198, 255, 46, 0.3);
  font-size: 13px;
  line-height: 1.7;
  color: #8a97a8;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  margin: 0;
}

.footer-copy {
  font-size: 12px;
  color: #8a97a8;
}

.footer-version {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 12px;
  color: #8a97a8;
}

.footer-version::before {
  content: "ver ";
  color: #8a97a8;
}

/* Footer Responsive */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
  }

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 16px 24px;
  }

  .footer-bottom {
    padding: 16px 16px 24px;
  }

  .footer-links ul {
    columns: 1;
  }
}

/* ---------- 7. Layout ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.page-grid-narrow {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 40px;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 40px 0;
}

.section-dark {
  background: #10213d;
  border-top: 1px solid rgba(245, 247, 250, 0.08);
  border-bottom: 1px solid rgba(245, 247, 250, 0.08);
}

@media (max-width: 960px) {
  .page-grid,
  .page-grid-narrow {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0;
  }
}

/* ---------- 8. Typography ---------- */
.display-title {
  font-family: 'Inter Tight', 'Noto Sans SC', 'PingFang SC', sans-serif;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}

.display-title em {
  font-style: italic;
  font-weight: 700;
  color: #c6ff2e;
}

.page-title {
  font-family: 'Inter Tight', 'Noto Sans SC', 'PingFang SC', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 200;
  line-height: 1.1;
  margin: 0 0 24px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c6ff2e;
}

.section-index::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #c6ff2e;
  transform: skewX(-20deg);
}

.section-head {
  font-family: 'Inter Tight', 'Noto Sans SC', 'PingFang SC', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 200;
  line-height: 1.2;
  margin: 16px 0 24px;
}

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.data-value {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.data-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #8a97a8;
}

.note-text {
  margin: 16px 0;
  padding-left: 16px;
  border-left: 2px solid rgba(198, 255, 46, 0.3);
  font-size: 13px;
  line-height: 1.7;
  color: #8a97a8;
}

/* ---------- 9. Components ---------- */
.card {
  background: #10213d;
  border: 1px solid rgba(245, 247, 250, 0.06);
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 24px;
}

.card-flat {
  background: #161a24;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
}

.card-accent-border {
  border-left: 2px solid #c6ff2e;
  border-radius: 0;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  background: rgba(198, 255, 46, 0.08);
  color: #c6ff2e;
  border: 1px solid rgba(198, 255, 46, 0.3);
  border-radius: 2px;
}

.tag-orange {
  background: rgba(255, 164, 48, 0.08);
  color: #ffa430;
  border-color: rgba(255, 164, 48, 0.3);
}

.tag-gray {
  background: rgba(138, 151, 168, 0.06);
  color: #8a97a8;
  border-color: rgba(138, 151, 168, 0.2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid rgba(245, 247, 250, 0.18);
  border-radius: 2px;
  background: transparent;
  color: #8a97a8;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover {
  color: #f5f7fa;
  border-color: #8a97a8;
}

.chip.is-active,
.chip[aria-pressed="true"] {
  color: #c6ff2e;
  border-color: #c6ff2e;
  background: rgba(198, 255, 46, 0.06);
}

/* ---------- 10. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-accent {
  background: #c6ff2e;
  border-color: #c6ff2e;
  color: #0a0f1d;
}

.btn-accent:hover {
  background: #d8ff66;
  border-color: #d8ff66;
  color: #0a0f1d;
}

.btn-outline {
  background: transparent;
  border-color: rgba(245, 247, 250, 0.25);
  color: #f5f7fa;
}

.btn-outline:hover {
  border-color: #c6ff2e;
  color: #c6ff2e;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(198, 255, 46, 0.4);
  color: #c6ff2e;
}

.btn-ghost:hover {
  background: rgba(198, 255, 46, 0.08);
}

/* ---------- 11. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 13px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8a97a8;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: #8a97a8;
  opacity: 0.4;
}

.breadcrumb-link {
  color: #8a97a8;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: #c6ff2e;
}

.breadcrumb-current {
  color: #f5f7fa;
}

/* ---------- 12. Image Frames ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #161a24;
  border: 1px solid rgba(245, 247, 250, 0.06);
  aspect-ratio: 16 / 9;
}

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(16, 33, 61, 0.4));
  pointer-events: none;
}

.img-frame-square {
  aspect-ratio: 1 / 1;
}

.img-frame-tall {
  aspect-ratio: 4 / 5;
}

/* ---------- 13. Status Dots ---------- */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #8a97a8;
  vertical-align: middle;
}

.status-live .status-dot {
  background: #c6ff2e;
  box-shadow: 0 0 8px rgba(198, 255, 46, 0.6);
}

.status-done .status-dot {
  background: #ffa430;
}

/* ---------- 14. Scroll Progress & Back Top ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 300;
  background: linear-gradient(90deg, #c6ff2e, #ffa430);
  box-shadow: 0 0 8px rgba(198, 255, 46, 0.5);
  pointer-events: none;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid rgba(198, 255, 46, 0.35);
  background: #161a24;
  color: #c6ff2e;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
}

.back-top:hover {
  background: rgba(198, 255, 46, 0.1);
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

@media (max-width: 600px) {
  .back-top {
    right: 16px;
    bottom: 16px;
  }
}

/* ---------- 15. Utilities ---------- */
.text-accent { color: #c6ff2e; }
.text-alt { color: #ffa430; }
.text-muted { color: #8a97a8; }
.text-center { text-align: center; }

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.mt-4 { margin-top: 40px; }
.mb-4 { margin-bottom: 40px; }
