/* =========================================================
   BAPP免费 · Site Wide CSS
   Fingerprint: 7452a9fb51af92a8
   ========================================================= */

/* ── Reset & Variables ─────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-space: #0B1026;
  --color-violet: #7B2FBE;
  --color-violet-bright: #9B3FE4;
  --color-orange: #FF6B00;
  --color-neon: #39FF14;
  --color-dusk: #1A1F3D;
  --color-mist: #E8E9F3;
  --color-ash: #A8ABC1;
  --color-line: #2E3355;

  --gradient-primary: linear-gradient(135deg, #0B1026 0%, #7B2FBE 100%);
  --gradient-cta: linear-gradient(135deg, #7B2FBE 0%, #FF6B00 100%);

  --font-heading: Impact, 'Arial Black', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;

  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow-violet: 0 0 24px rgba(123, 47, 190, 0.4);

  --header-width: 200px;
  --content-max: 1200px;
  --transition-base: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--color-space);
  color: var(--color-mist);
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  display: block;
  min-height: 50vh;
}

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

a {
  color: var(--color-violet-bright);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

#main-content:focus {
  outline: none;
}

::selection {
  background: var(--color-violet);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-space);
}

::-webkit-scrollbar-thumb {
  background: var(--color-line);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-violet);
}

/* ── Skip Link ─────────────────────────────────────────── */

.skip-link {
  position: fixed;
  left: -9999px;
  top: 12px;
  z-index: 9999;
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-orange);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: var(--shadow-float);
}

.skip-link:focus {
  left: 12px;
}

/* ── Scroll Progress ───────────────────────────────────── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-violet) 0%, var(--color-violet-bright) 60%, var(--color-orange) 100%);
  z-index: 2000;
  box-shadow: 0 0 12px rgba(123, 47, 190, 0.5);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Brand ─────────────────────────────────────────────── */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-mist);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-mist);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px 12px 12px 2px;
  background: var(--gradient-cta);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  box-shadow: 0 0 20px rgba(123, 47, 190, 0.4), 0 4px 10px rgba(0, 0, 0, 0.35);
}

.brand-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-mist);
}

.brand-accent {
  color: var(--color-orange);
  margin-left: 2px;
}

/* ── Header ────────────────────────────────────────────── */

.site-header {
  position: fixed;
  z-index: 1000;
  background: linear-gradient(160deg, rgba(26, 31, 61, 0.88) 0%, rgba(11, 16, 38, 0.92) 100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-float);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--color-violet) 0%, var(--color-violet-bright) 60%, var(--color-orange) 100%);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

/* Header — desktop floating capsule */

@media (min-width: 1024px) {
  .site-header {
    top: 50%;
    left: clamp(16px, 2vw, 32px);
    transform: translateY(-50%);
    width: var(--header-width);
    padding: 24px 16px;
    border-radius: 28px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  body {
    padding-left: calc(var(--header-width) + 48px);
  }
}

/* Header — tablet & mobile top bar */

@media (max-width: 1023.98px) {
  .site-header {
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 12px 16px;
  }

  .site-header::before {
    display: none;
  }

  body {
    padding-top: 64px;
    padding-left: 0;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 18px;
    border-radius: 10px;
  }

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

/* ── Navigation ────────────────────────────────────────── */

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  color: var(--color-ash);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.nav-link:hover {
  color: var(--color-mist);
  background: rgba(123, 47, 190, 0.18);
  border-color: rgba(123, 47, 190, 0.5);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--color-violet), var(--color-violet-bright));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(123, 47, 190, 0.45);
}

@media (min-width: 1024px) {
  .site-nav {
    gap: 6px;
  }
}

@media (max-width: 1023.98px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(11, 16, 38, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    text-align: center;
    padding: 12px 16px;
  }
}

/* ── Nav Toggle ────────────────────────────────────────── */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  min-width: 56px;
  min-height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(11, 16, 38, 0.6);
  transition: border-color var(--transition-base), background var(--transition-base);
}

.nav-toggle:hover {
  border-color: var(--color-violet);
  background: rgba(123, 47, 190, 0.12);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-mist);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle-text {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ash);
  margin-top: 2px;
}

.nav-toggle.is-active .nav-toggle-text {
  color: var(--color-neon);
}

@media (max-width: 1023.98px) {
  .nav-toggle {
    display: inline-flex;
  }
}

/* ── Live Status ───────────────────────────────────────── */

.live-pill,
.footer-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neon);
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-neon);
  position: relative;
  flex-shrink: 0;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(57, 255, 20, 0.35);
  animation: live-pulse 1.8s ease-out infinite;
}

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

.header-live {
  justify-content: center;
}

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

/* ── Footer ────────────────────────────────────────────── */

.footer-site {
  position: relative;
  margin-top: 80px;
  background: var(--color-space);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.footer-accent {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-violet) 0%, var(--color-orange) 50%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.4fr;
  gap: 48px;
  padding-block: 56px 40px;
}

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

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-ash);
  max-width: 30em;
}

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

.footer-title {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--color-mist);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-violet-bright);
  border-radius: 2px;
}

.footer-links a {
  display: inline-block;
  padding: 5px 0;
  color: var(--color-ash);
  font-size: 14px;
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.footer-links a::after {
  content: '›';
  margin-left: 4px;
  color: var(--color-line);
  font-family: var(--font-mono);
  transition: color var(--transition-base), margin-left 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-neon);
  padding-left: 8px;
}

.footer-links a:hover::after {
  color: var(--color-violet-bright);
  margin-left: 8px;
}

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

.footer-contact p {
  font-size: 14px;
  color: var(--color-ash);
  line-height: 1.5;
}

.contact-label {
  display: inline-block;
  min-width: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-violet-bright);
  margin-right: 4px;
}

.footer-note {
  font-size: 13px;
  color: var(--color-ash);
  border-left: 2px solid var(--color-violet);
  padding-left: 12px;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--color-line);
  padding-block: 16px;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-legal-links a {
  color: var(--color-ash);
  font-size: 13px;
  transition: color var(--transition-base);
}

.footer-legal-links a:hover {
  color: var(--color-neon);
}

.footer-icp {
  color: var(--color-ash);
  font-size: 13px;
  font-family: var(--font-mono);
}

.footer-copy {
  color: var(--color-ash);
  font-size: 13px;
}

@media (max-width: 1023.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-block: 44px 32px;
  }

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

@media (max-width: 767.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 36px 24px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ── Container & Breadcrumb ────────────────────────────── */

.container {
  width: min(100% - 48px, var(--content-max));
  margin-inline: auto;
}

@media (max-width: 767.98px) {
  .container {
    width: min(100% - 32px, var(--content-max));
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--color-ash);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--color-line);
}

.breadcrumb a {
  color: var(--color-ash);
  transition: color var(--transition-base);
}

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

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

/* ── Grid ──────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

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

/* ── Card & Badge ──────────────────────────────────────── */

.card {
  position: relative;
  background: var(--color-dusk);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 47, 190, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(123, 47, 190, 0.15);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  background: rgba(123, 47, 190, 0.14);
  color: var(--color-violet-bright);
  border: 1px solid rgba(123, 47, 190, 0.3);
}

.badge-hot {
  background: rgba(255, 107, 0, 0.14);
  color: var(--color-orange);
  border-color: rgba(255, 107, 0, 0.3);
}

.badge-live {
  background: rgba(57, 255, 20, 0.1);
  color: var(--color-neon);
  border-color: rgba(57, 255, 20, 0.25);
}

/* ── Data Numbers ──────────────────────────────────────── */

.data-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-orange);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-violet), var(--color-violet-bright));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 18px rgba(123, 47, 190, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 28px rgba(123, 47, 190, 0.55), 0 0 38px rgba(123, 47, 190, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-mist);
  border-color: var(--color-line);
}

.btn-outline:hover {
  color: #fff;
  border-color: var(--color-violet-bright);
  box-shadow: 0 0 20px rgba(123, 47, 190, 0.2);
}

.btn-orange {
  background: var(--color-orange);
  color: #fff;
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.3);
}

.btn-orange:hover {
  color: #fff;
  box-shadow: 0 6px 28px rgba(255, 107, 0, 0.5);
  transform: translateY(-1px);
}

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

/* ── Section Title ─────────────────────────────────────── */

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  color: var(--color-mist);
  margin-bottom: 12px;
}

.section-title::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--color-orange);
  border-radius: 2px;
  flex-shrink: 0;
  transform: skewX(-20deg);
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-ash);
  max-width: 56em;
  line-height: 1.7;
}

/* ── Back Top ──────────────────────────────────────────── */

.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-violet), var(--color-violet-bright));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(123, 47, 190, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  cursor: pointer;
}

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

.back-top:hover {
  background: linear-gradient(135deg, var(--color-orange), #E85F00);
  box-shadow: 0 8px 28px rgba(255, 107, 0, 0.45);
}

.back-top-arrow {
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

/* ── Reveal ────────────────────────────────────────────── */

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

html.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

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

  .live-dot::after {
    display: none;
  }

  html.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress {
    display: none;
  }

  .back-top,
  .back-top.is-visible {
    transition: none;
  }
}
