/* ============================================
   博澳体育 Shared Site Kit
   /assets/site.css
   ============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}
li {
  margin-bottom: 0.35em;
}
a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--accent);
}
strong {
  font-weight: 600;
  color: #ffffff;
}
small {
  font-size: 0.875rem;
}
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* ---------- Variables ---------- */
:root {
  --bg: #0a0f1e;
  --bg-card: #121a30;
  --bg-soft: #0d1425;
  --accent: #c8ff00;
  --accent-2: #9b5cff;
  --text: #e6f1ff;
  --text-dim: #7a8ba8;
  --border: #2a3550;
  --alert: #ffb020;
  --success: #36f5b0;
  --danger: #ff4d4f;
  --font-heading: 'Space Grotesk', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'IBM Plex Mono', 'Noto Sans Mono SC', 'SF Mono', Consolas, monospace;
  --container-w: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ---------- Base Typography ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.15rem;
}
h1, h2 {
  transform: skewX(-2deg);
  transform-origin: left center;
}
p {
  margin: 0 0 1em;
}
main {
  display: block;
}
#main-content {
  min-height: 60vh;
}

/* ---------- Focus & Selection ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
::-moz-focus-inner {
  border: 0;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a4766;
}

/* ---------- Utility ---------- */
.container {
  width: min(var(--container-w), 100% - 48px);
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus-visible {
  top: 0;
}
.divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, var(--border), transparent);
  margin: 3em 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 18px rgba(200, 255, 0, 0.18);
}
.btn-secondary {
  background: transparent;
  color: var(--accent-2);
  border-color: var(--accent-2);
}
.btn-secondary:hover {
  background: var(--accent-2);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(155, 92, 255, 0.28);
}

/* ---------- Card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: rgba(155, 92, 255, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(155, 92, 255, 0.12);
  border: 1px solid rgba(155, 92, 255, 0.35);
  color: var(--accent-2);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-live {
  background: rgba(54, 245, 176, 0.1);
  border-color: rgba(54, 245, 176, 0.35);
  color: var(--success);
}
.badge-hot {
  background: rgba(255, 176, 32, 0.1);
  border-color: rgba(255, 176, 32, 0.35);
  color: var(--alert);
}

/* ---------- Status Panel ---------- */
.status-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.status-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.status-panel-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}
.status-panel-value {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

/* ---------- Section Heading ---------- */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.section-heading::before {
  content: '';
  width: 6px;
  height: 1.1em;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  flex-shrink: 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb li {
  display: inline-flex;
  margin: 0;
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--border);
}
.breadcrumb li[aria-current="page"] {
  color: var(--accent);
}

/* ---------- Data Grid ---------- */
.data-grid {
  display: grid;
  gap: 24px;
}
.data-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.data-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.data-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 992px) {
  .data-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
  .data-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .data-grid.cols-2,
  .data-grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Image Frame ---------- */
.image-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.08), transparent 40%);
  pointer-events: none;
}
.image-frame[data-caption]::before {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 14px 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: linear-gradient(0deg, rgba(10, 15, 30, 0.9), transparent);
  z-index: 1;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 53, 80, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 53, 80, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.4;
  pointer-events: none;
}
.site-header.scrolled {
  background: rgba(10, 15, 30, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 26px 24px 14px;
  text-align: center;
  transition: padding 0.3s ease, max-width 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.brand-mark-cn {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 1.1;
}
.brand-mark-tag {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-left: 14px;
}
.brand-mark-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(54, 245, 176, 0.7);
}

.nav-toggle {
  display: none;
}

.header-support {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - var(--container-w)) / 2 + 8px));
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(155, 92, 255, 0.45);
  background: rgba(155, 92, 255, 0.08);
  color: var(--accent-2);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.header-support::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(54, 245, 176, 0.6);
}
.header-support:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(155, 92, 255, 0.3);
}
@media (max-width: 1024px) {
  .header-support {
    display: none;
  }
}

.top-nav {
  margin-top: 12px;
}
.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 6px;
  list-style: none;
}
.nav-list li {
  margin: 0;
}
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav-list a:hover {
  background: rgba(200, 255, 0, 0.1);
  color: var(--accent);
}
.nav-list a[aria-current="page"] {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 18px rgba(200, 255, 0, 0.3);
  animation: current-pulse 2.4s ease-in-out infinite;
}
@keyframes current-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(200, 255, 0, 0.22); }
  50% { box-shadow: 0 0 22px rgba(200, 255, 0, 0.5); }
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.08s linear;
  z-index: 4;
}

/* ---------- Header Scrolled Pill (Desktop) ---------- */
@media (min-width: 768px) {
  .site-header.scrolled {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
  }
  .site-header.scrolled .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 860px;
    padding: 8px 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
    text-align: left;
  }
  .site-header.scrolled .brand-mark {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
  }
  .site-header.scrolled .brand-mark-cn {
    font-size: 1.15rem;
    letter-spacing: 0.06em;
  }
  .site-header.scrolled .brand-mark-tag {
    display: none;
  }
  .site-header.scrolled .top-nav {
    margin-top: 0;
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  .site-header.scrolled .nav-list {
    justify-content: flex-end;
    padding: 4px;
  }
  .site-header.scrolled .nav-list a {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  .site-header.scrolled .header-support {
    display: none;
  }
}

/* ---------- Mobile Header ---------- */
@media (max-width: 767px) {
  .site-header::before {
    background-size: 20px 20px;
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 16px;
    text-align: left;
  }
  .brand-mark {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .brand-mark-cn {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
  }
  .brand-mark-tag {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
  }
  .nav-toggle:hover {
    border-color: var(--accent);
  }
  .nav-toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .top-nav {
    flex-basis: 100%;
    display: none;
    margin-top: 10px;
  }
  .top-nav[data-open] {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .nav-list li {
    margin: 0;
  }
  .nav-list a {
    padding: 12px 16px;
    border-radius: 8px;
  }
  .header-support {
    display: none;
  }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.55;
  pointer-events: none;
}
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(155, 92, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer-logo {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
}
.footer-logo span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 8px;
  letter-spacing: 0.04em;
}
.footer-desc {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 32ch;
}
.footer-trust {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(200, 255, 0, 0.06);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  line-height: 1.7;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-2);
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col li {
  margin: 0 0 10px;
}
.footer-col a {
  color: var(--text-dim);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-list li {
  color: var(--text-dim);
  font-size: 0.825rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-bottom p {
  margin: 0;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@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;
  }
  .nav-list a[aria-current="page"] {
    animation: none;
  }
  .scroll-progress {
    transition: none;
  }
}
