/* ============ Reset & Variables ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --kiwi: #00A651;
  --lime: #B4E400;
  --yellow: #FFD500;
  --dark: #121212;
  --dark-raised: #1a1a1a;
  --cream: #F5F0E6;
  --orange: #FF6B00;
  --text-dark: #1A1A1A;
  --text-light: #FFFFFF;
  --muted: #9E9E9E;
  --border: #333333;
  --font-head: 'Anton', 'Archivo Black', 'Noto Sans SC', 'Arial Black', sans-serif;
  --font-body: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  --font-data: 'Roboto Mono', 'Courier New', monospace;
  --container: 1180px;
  --radius-pill: 999px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --header-h: 72px;
  --transition: all 0.2s ease-out;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--text-light);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1 0 auto;
  width: 100%;
}

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

a {
  color: var(--lime);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--yellow); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-light);
}

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

::selection {
  background: var(--yellow);
  color: var(--text-dark);
}

/* ============ 品牌轨道 ============ */
body::before {
  content: '奇异果体育 · KIWI DATA ENGINE';
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.14);
  z-index: 2;
  pointer-events: none;
  display: none;
}

@media (min-width: 1440px) {
  body::before { display: block; }
}

/* ============ Visually Hidden ============ */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Skip Link ============ */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 1000;
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: top 0.2s ease-out;
}

.skip-link:focus {
  top: 16px;
}

/* ============ Scroll Progress ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kiwi), var(--lime), var(--yellow));
  z-index: 1200;
  border-radius: 0 3px 3px 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.scroll-progress.is-visible { opacity: 1; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--kiwi);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.header-shell {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  min-height: var(--header-h);
}

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

.brand-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--kiwi), #007A3A);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 166, 81, 0.3);
  transform: rotate(-2deg);
  transition: var(--transition);
}

.brand:hover .brand-capsule {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 166, 81, 0.4);
}

.brand-text {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.2;
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  position: relative;
  line-height: 1.4;
  white-space: nowrap;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease-out;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.04);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-list a[aria-current="page"] {
  color: var(--text-light);
  background: rgba(0, 166, 81, 0.18);
}

.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--kiwi);
}

.nav-index {
  font-size: 10px;
  color: var(--kiwi);
  font-weight: 700;
  transition: var(--transition);
}

.nav-list a:hover .nav-index {
  color: var(--lime);
}

.nav-list a[aria-current="page"] .nav-index {
  color: var(--lime);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--kiwi);
  color: var(--text-light);
  box-shadow: 0 6px 20px rgba(0, 166, 81, 0.35);
}

.btn-primary:hover {
  background: var(--lime);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(180, 228, 0, 0.3);
}

.btn-highlight {
  background: var(--orange);
  color: var(--text-light);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.32);
}

.btn-highlight:hover {
  background: #FF8A3D;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.38);
}

/* Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover {
  border-color: var(--kiwi);
  background: rgba(0, 166, 81, 0.08);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ Footer ============ */
.site-footer {
  background-color: #080808;
  border-top: 4px solid var(--kiwi);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 166, 81, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.footer-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand .brand-capsule {
  font-size: 16px;
  padding: 10px 15px;
}

.footer-brand-text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: 1px;
  line-height: 1.2;
}

.footer-trust {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  border-left: 3px solid var(--kiwi);
  padding-left: 18px;
}

.footer-title {
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--kiwi);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 18px 0 0 var(--lime);
}

.footer-nav-list,
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a,
.footer-contact-list a {
  color: var(--muted);
  font-size: 14px;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 6px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-nav-list a::before {
  content: '↗';
  color: var(--kiwi);
  font-size: 12px;
  opacity: 0;
  transform: translateY(2px);
  transition: var(--transition);
}

.footer-nav-list a:hover::before,
.footer-nav-list a:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible,
.footer-contact-list a:hover,
.footer-contact-list a:focus-visible {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.04);
}

.footer-contact-list li {
  color: var(--muted);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-legal a {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  padding: 6px 10px;
  border-radius: 6px;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--lime);
  background: rgba(0, 166, 81, 0.1);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ============ Layout & Container ============ */
.container-slim {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px;
  width: 100%;
}

.layout-section {
  padding: 72px 24px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

/* ============ Breadcrumbs ============ */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 32px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-link {
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.04);
}

.breadcrumb-separator {
  color: var(--kiwi);
  font-weight: 700;
}

.breadcrumbs [aria-current="page"] {
  color: var(--lime);
  font-weight: 700;
}

/* ============ Section Elements ============ */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(0, 166, 81, 0.15);
  border: 1px solid rgba(0, 166, 81, 0.4);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin-bottom: 20px;
}

.section-kicker::before {
  content: '●';
  font-size: 8px;
  color: var(--kiwi);
}

.section-title {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.05;
}

.section-subtitle {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 40px;
}

/* ============ Prose & Text ============ */
.prose {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.prose p { margin-bottom: 1.4em; }

.prose h2,
.prose h3 {
  color: var(--text-light);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.prose h2 { font-size: 28px; }
.prose h3 { font-size: 20px; }

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

/* ============ Data Pill ============ */
.data-pill {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  background: var(--yellow);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
  letter-spacing: 0.5px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.data-pill-green {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--kiwi);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
  letter-spacing: 0.5px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

/* ============ Tag List ============ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  transition: var(--transition);
  cursor: pointer;
}

.tag:hover,
.tag:focus-visible {
  color: var(--yellow);
  border-color: var(--kiwi);
  background: rgba(0, 166, 81, 0.12);
}

.tag.is-active {
  color: var(--text-dark);
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 700;
}

/* ============ Feature Panel ============ */
.feature-panel {
  background: var(--cream);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--kiwi), var(--lime), var(--yellow), var(--orange));
}

.feature-panel h2,
.feature-panel h3 {
  color: var(--text-dark);
}

.feature-panel .text-muted {
  color: rgba(26, 26, 26, 0.72);
}

/* ============ Side Note ============ */
.side-note {
  background: rgba(0, 166, 81, 0.07);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin: 32px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  position: relative;
}

.side-note::before {
  content: '⌘';
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 18px;
  color: var(--kiwi);
  opacity: 0.5;
}

.side-note-title {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ============ Article Index ============ */
.article-index {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
}

.article-index-item {
  padding: 20px 24px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.article-index-item:hover,
.article-index-item:focus-within {
  background: rgba(0, 166, 81, 0.06);
  border-radius: var(--radius-md);
}

.article-index-item::before {
  content: counter(article-index, decimal-leading-zero);
  counter-increment: article-index;
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
  color: var(--kiwi);
  margin-right: 16px;
}

.article-index-item a {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
}

.article-index-item a small {
  display: block;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

.article-index-item:hover a {
  color: var(--yellow);
}

/* ============ Grid ============ */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============ Media Frames ============ */
.media-frame {
  background: linear-gradient(145deg, #1f2a22 0%, #162018 45%, #202a08 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}

.media-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(180, 228, 0, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 166, 81, 0.3) 0%, transparent 45%),
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.06) 98%),
    linear-gradient(0deg, transparent 95%, rgba(255, 255, 255, 0.06) 98%);
  background-size: auto, auto, 32px 32px, 32px 32px;
  opacity: 0.8;
  pointer-events: none;
}

.media-frame::after {
  content: 'DATA IMAGE';
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.media-frame img,
.media-frame picture {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame-ratio-16x9 { aspect-ratio: 16 / 9; }
.media-frame-ratio-4x3 { aspect-ratio: 4 / 3; }
.media-frame-ratio-square { aspect-ratio: 1 / 1; }

/* ============ Page Announce ============ */
.page-announce {
  padding: 80px 24px 100px;
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}

.page-announce-kicker {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--kiwi);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.page-announce-title {
  font-size: clamp(40px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 900px;
}

.page-announce-title em {
  font-style: normal;
  color: var(--yellow);
}

.page-announce-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 32px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 360px);
    background: var(--dark-raised);
    border-left: 3px solid var(--kiwi);
    padding: 96px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    margin: 0;
    z-index: 90;
    overflow-y: auto;
    visibility: hidden;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    font-size: 15px;
  }

  .nav-list a {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list a[aria-current="page"] {
    background: rgba(0, 166, 81, 0.24);
  }

  .nav-index {
    font-size: 12px;
    min-width: 28px;
  }

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

  .header-actions .btn {
    padding: 12px 18px;
    font-size: 13px;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .header-shell {
    padding: 0 16px;
    gap: 12px;
  }

  .brand-capsule {
    font-size: 15px;
    padding: 10px 14px;
  }

  .brand-text {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .container-slim {
    padding: 48px 16px;
  }

  .layout-section {
    padding: 48px 16px;
  }

  .page-announce {
    padding: 56px 16px 64px;
  }

  .page-announce-title {
    font-size: clamp(36px, 12vw, 56px);
  }

  .footer-shell {
    grid-template-columns: 1fr;
    padding: 48px 16px 32px;
    gap: 36px;
  }

  .footer-bottom {
    text-align: left;
    font-size: 11px;
  }

  .feature-panel {
    padding: 28px 20px;
  }
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .skip-link {
    transition: none;
  }

  .site-nav {
    transition: none;
  }
}
