/* ========================================
   Site Kit — 竞博JBO 极速控制台
   /assets/site.css
   ======================================== */

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

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

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--c-navy);
  color: var(--c-cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--c-gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Arial Black", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.2;
  color: inherit;
  margin-bottom: 0.4em;
}

p {
  margin-bottom: 1em;
}

::selection {
  background: var(--c-gold);
  color: var(--c-navy);
}

:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.8);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- CSS Variables ---------- */
:root {
  --c-navy: #0A1E3C;
  --c-gold: #D4AF37;
  --c-red: #C41E3A;
  --c-gray: #4A4A4A;
  --c-green: #2F4F4F;
  --c-terra: #C66A4A;
  --c-cream: #F8F4E6;
  --c-steel: #2A4C7C;

  --font-head: "Arial Black", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --container-w: 1180px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10, 30, 60, 0.15);
  --transition: 0.25s ease;
}

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

.page-section {
  padding: 56px 0;
}

.page-section--cream {
  background: var(--c-cream);
  color: var(--c-navy);
}

.section-head {
  margin-bottom: 32px;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--c-gray);
  max-width: 520px;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Card ---------- */
.card {
  background: var(--c-cream);
  color: var(--c-navy);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 28px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover {
  text-decoration: none;
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-navy);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.btn--gold:hover {
  background: transparent;
  border-color: var(--c-gold);
  color: var(--c-gold);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--c-gold);
}

.btn--ghost:hover {
  background: var(--c-gold);
  color: var(--c-navy);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(248, 244, 230, 0.6);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: rgba(248, 244, 230, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb-sep {
  color: rgba(212, 175, 55, 0.5);
  font-size: 12px;
}

.breadcrumb [aria-current="page"] {
  color: var(--c-gold);
  font-weight: 600;
}

/* ---------- Image Frame ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-steel), var(--c-navy));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-frame::after {
  content: "◆";
  font-size: 28px;
  color: rgba(212, 175, 55, 0.4);
  position: relative;
  z-index: 0;
}

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

/* ---------- Accessibility Helpers ---------- */
.visually-hidden {
  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: -120px;
  left: 16px;
  z-index: 1000;
  background: var(--c-gold);
  color: var(--c-navy);
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:hover {
  text-decoration: none;
}

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

/* ---------- Scroll Progress ---------- */
[data-scroll-progress] {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--c-gold), var(--c-red));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
  z-index: 999;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 30, 60, 0.96);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.site-topbar {
  background: rgba(10, 30, 60, 0.9);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  font-size: 13px;
  color: rgba(248, 244, 230, 0.7);
}

.topbar-inner {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 10px;
}

.topbar-item--key {
  color: var(--c-gold);
  font-weight: 700;
}

.topbar-item--dim {
  color: rgba(248, 244, 230, 0.45);
}

.topbar-sep {
  color: rgba(212, 175, 55, 0.45);
  font-size: 12px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-cube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #eccf5a, var(--c-gold) 45%, #8a6d1f);
  color: var(--c-navy);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 24px;
  clip-path: polygon(24% 0, 100% 0, 76% 100%, 0 100%);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--c-cream);
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-gold);
}

/* ---------- Capsule Navigation ---------- */
.capsule-nav {
  display: flex;
  align-items: center;
  background: rgba(10, 30, 60, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  padding: 4px;
}

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

.nav-item {
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 40px;
  color: rgba(248, 244, 230, 0.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.nav-link:hover {
  color: var(--c-gold);
  background: rgba(212, 175, 55, 0.12);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--c-navy);
  background: var(--c-gold);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

/* ---------- Mobile Nav Toggle ---------- */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 210;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(10, 30, 60, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--c-gold);
}

.toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Responsive Header / Nav ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .capsule-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 90px 20px 24px;
    background: rgba(10, 30, 60, 0.97);
    border: none;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0;
    transform: translateX(105%);
    transition: transform 0.3s ease;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 14px;
  }

  .nav-link[aria-current="page"] {
    border-radius: 14px;
  }

  .header-main {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

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

  .header-main {
    min-height: 58px;
  }

  .brand-cube {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

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

  .container {
    padding-inline: 16px;
  }

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

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--c-green) 0%, var(--c-navy) 120%);
  color: rgba(248, 244, 230, 0.75);
  position: relative;
}

.footer-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-gold) 30%, var(--c-red) 70%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand--footer .brand-cube {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

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

.footer-tagline {
  font-size: 15px;
  color: rgba(248, 244, 230, 0.65);
  max-width: 320px;
}

.footer-trust {
  font-size: 13px;
  color: var(--c-gold);
  padding-left: 14px;
  border-left: 2px solid var(--c-gold);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-cream);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: rgba(248, 244, 230, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--c-gold);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.contact-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.contact-row dt {
  color: var(--c-gold);
  min-width: 56px;
  font-weight: 600;
}

.contact-row dd {
  margin: 0;
  color: rgba(248, 244, 230, 0.68);
}

.footer-meta {
  background: rgba(10, 30, 60, 0.55);
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding: 16px 0;
  font-size: 13px;
}

.meta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(248, 244, 230, 0.5);
}

.meta-copyright {
  color: rgba(248, 244, 230, 0.6);
}

.meta-link {
  color: rgba(248, 244, 230, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.meta-link:hover {
  color: var(--c-gold);
  text-decoration: none;
}

.meta-sep {
  color: rgba(212, 175, 55, 0.4);
  font-size: 12px;
}

.meta-icp {
  color: rgba(248, 244, 230, 0.4);
  margin-left: auto;
}

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

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

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

  .footer-brand {
    grid-column: auto;
  }

  .meta-icp {
    margin-left: 0;
    flex-basis: 100%;
  }
}

/* ---------- Responsive Grid ---------- */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal Animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .capsule-nav {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
