/* ===== 九游赛场 Shared Site CSS ===== */

/* ---- CSS Variables ---- */
:root {
  --green-deep: #0A2E1F;
  --green-mid: #14532D;
  --green-live: #22C55E;
  --gold: #D4AF37;
  --gold-light: #F0D68A;
  --ink: #111827;
  --paper: #FFFFFF;
  --muted: #F3F4F6;
  --alert: #DC2626;
  --shadow: rgba(0, 0, 0, 0.25);
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --container-w: 1200px;
  --radius: 20px;
  --radius-pill: 999px;
  --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --topbar-h: 32px;
}

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 3000;
  padding: 12px 24px;
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 0;
}

@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;
  }
  .scroll-progress {
    display: none;
  }
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--muted);
}

.section--dark {
  background: var(--green-deep);
  color: var(--paper);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  border-radius: 4px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--green-deep);
}

.section--dark .section-title {
  color: var(--paper);
}

.section-lede {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: #4B5563;
}

.section--dark .section-lede {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Scroll Progress ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-live), var(--gold));
  z-index: 10000;
  pointer-events: none;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background:
    linear-gradient(105deg, rgba(212, 175, 55, 0.07) 0%, transparent 30%, transparent 68%, rgba(212, 175, 55, 0.04) 100%),
    radial-gradient(ellipse at 18% 0%, rgba(212, 175, 55, 0.1), transparent 46%),
    radial-gradient(ellipse at 88% 120%, rgba(34, 197, 94, 0.08), transparent 50%),
    linear-gradient(160deg, var(--green-deep) 0%, #0C3822 65%, var(--green-mid) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-topbar {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(6, 24, 16, 0.45);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-quick {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-quick-link {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.header-quick-link:hover {
  color: var(--gold-light);
}

.header-quick-sep {
  color: rgba(255, 255, 255, 0.25);
}

/* ---- Live Dot ---- */
.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-live);
  flex-shrink: 0;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.6);
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ---- Floating Nav ---- */
.nav-hull {
  padding: 12px 0 20px;
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 10px;
  background: rgba(10, 46, 31, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-pill);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.brand-flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 8px 3px 12px 3px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.brand-flag-core {
  width: 15px;
  height: 15px;
  background: var(--green-deep);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

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

.brand-mark {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--paper);
  position: relative;
}

.brand-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---- Nav Menu ---- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(34, 197, 94, 0.16);
}

.nav-link[aria-current="page"] {
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 700;
}

.nav-item--cta {
  margin-left: 8px;
}

.nav-cta {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

.nav-cta[aria-current="page"] {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.nav-item--quick {
  display: none;
}

/* ---- Nav Toggle ---- */
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 12px;
  flex-shrink: 0;
}

.nav-toggle-bar {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-toggle-bar:nth-child(1) {
  top: 13px;
}

.nav-toggle-bar:nth-child(2) {
  top: 19px;
}

.nav-toggle-bar:nth-child(3) {
  top: 25px;
}

.nav-bar[data-open] .nav-toggle-bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.nav-bar[data-open] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-bar[data-open] .nav-toggle-bar:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* ---- Header Media Queries ---- */
@media (max-width: 900px) {
  .nav-hull {
    padding: 8px 0 12px;
  }

  .nav-bar {
    border-radius: 24px;
    padding: 8px 10px;
    gap: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    background: var(--green-deep);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 20px 50px var(--shadow);
  }

  .nav-bar[data-open] .nav-menu {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item--cta {
    margin-left: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-item--quick {
    display: block;
    margin-top: 4px;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .header-topbar {
    display: none;
  }
}

@media (min-width: 641px) {
  .nav-item--quick {
    display: none;
  }
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(34, 197, 94, 0.08), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(212, 175, 55, 0.07), transparent 45%),
    #071D13;
  padding-top: 64px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-live), var(--gold), var(--green-live));
  opacity: 0.55;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
}

.footer-brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.footer-brand-tag {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.footer-trust {
  max-width: 420px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
}

.footer-contact-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

.footer-contact-value {
  color: rgba(255, 255, 255, 0.82);
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-copyright {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-note {
  text-align: right;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-top: 48px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-note {
    text-align: center;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--green-deep);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--green-mid);
  border-color: var(--green-mid);
}

.btn-ghost:hover {
  background: rgba(20, 83, 45, 0.08);
}

.panel-dark .btn-ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.55);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: 12px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  font-size: 14px;
  color: #6B7280;
}

.breadcrumb-link {
  color: var(--green-mid);
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--gold);
}

.breadcrumb-sep {
  color: #9CA3AF;
}

.breadcrumb-current {
  color: #6B7280;
  font-weight: 500;
}

/* ---- Content Body ---- */
.content-body {
  max-width: 760px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.content-body h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--green-deep);
}

.content-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--green-deep);
}

.content-body p {
  margin-bottom: 20px;
}

.content-body ul,
.content-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.content-body ul {
  list-style: disc;
}

.content-body ol {
  list-style: decimal;
}

.content-body li {
  margin-bottom: 8px;
}

.content-body a:not(.btn) {
  color: var(--green-mid);
  text-decoration: underline;
  text-decoration-color: rgba(20, 83, 45, 0.3);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.content-body a:not(.btn):hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ---- Bento Grid ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-cell {
  min-width: 0;
}

@media (min-width: 901px) {
  .bento-cell--span-3 { grid-column: span 3; }
  .bento-cell--span-4 { grid-column: span 4; }
  .bento-cell--span-5 { grid-column: span 5; }
  .bento-cell--span-6 { grid-column: span 6; }
  .bento-cell--span-7 { grid-column: span 7; }
  .bento-cell--span-8 { grid-column: span 8; }
  .bento-cell--span-12 { grid-column: span 12; }
}

@media (max-width: 900px) {
  .bento-cell--span-3,
  .bento-cell--span-4,
  .bento-cell--span-5,
  .bento-cell--span-6,
  .bento-cell--span-7,
  .bento-cell--span-8 {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .bento-cell--span-3,
  .bento-cell--span-4,
  .bento-cell--span-5,
  .bento-cell--span-6,
  .bento-cell--span-7,
  .bento-cell--span-8,
  .bento-cell--span-12 {
    grid-column: span 12;
  }
}

/* ---- Panels ---- */
.panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.panel-dark {
  background: var(--green-deep);
  color: var(--paper);
}

.panel-gold {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.12);
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: inherit;
}

.panel-metric {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--green-live);
}

/* ---- Data Components ---- */
.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.12);
  color: var(--green-mid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.data-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.data-strip-cell {
  flex: 1 1 160px;
  background: var(--green-deep);
  color: var(--paper);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.data-strip-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}

.stat-value {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--green-mid);
}

.stat-label {
  font-size: 14px;
  color: #6B7280;
  margin-top: 4px;
}

.panel-dark .stat-value {
  color: var(--gold);
}

.panel-dark .stat-label {
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Image Shell ---- */
.img-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(10, 46, 31, 0.06) 0 12px, transparent 12px 24px),
    var(--muted);
}

.img-shell--wide {
  aspect-ratio: 16 / 7;
}

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

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

/* ---- Utilities ---- */
.text-center {
  text-align: center;
}

.site-main {
  min-height: 60vh;
  position: relative;
}
