@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #261717;
  color: #f0e8e8;
}

body {
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background-color: #261717;
  color: #f0e8e8;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

/* =============================================
   BACKGROUND LAYERS
   ============================================= */
.site-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.orb-red {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ff0000 0%, transparent 70%);
  top: -120px;
  left: -80px;
}

.orb-purple {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #8b00ff 0%, transparent 70%);
  bottom: -200px;
  right: -100px;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* =============================================
   ASIDE NAV (顶部横向 + 药丸胶囊导航)
   ============================================= */
.site-aside-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 2rem;
  background: rgba(38, 23, 23, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: nowrap;
}

.nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.site-logo {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ff0000, #8b00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-pill-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-pill-group li {
  display: flex;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f0e8e8;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  min-height: 44px;
  white-space: nowrap;
}

.pill-btn:hover,
.pill-btn:focus-visible {
  background: rgba(255,0,0,0.25);
  border-color: rgba(255,0,0,0.6);
  transform: translateY(-1px);
  outline: none;
}

.cta-main-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff0000 0%, #8b00ff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  min-height: 44px;
  box-shadow: 0 4px 20px rgba(255,0,0,0.35);
  white-space: nowrap;
}

.cta-main-btn:hover,
.cta-main-btn:focus-visible {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,0,255,0.45);
  outline: none;
}

/* =============================================
   ANCHOR BAR (二级粘性锚点条)
   ============================================= */
.anchor-bar {
  position: sticky;
  top: 73px;
  z-index: 190;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 2rem;
  background: rgba(38,23,23,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139,0,255,0.25);
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-bar::-webkit-scrollbar {
  display: none;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(240,232,232,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  min-height: 40px;
}

.anchor-link:hover,
.anchor-link:focus-visible {
  color: #fff;
  border-color: #ff0000;
  background: rgba(255,0,0,0.15);
  outline: none;
}

/* =============================================
   MAIN
   ============================================= */
.site-main {
  position: relative;
  z-index: 10;
  padding-top: 73px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-a {
  transform: translateY(-32px) rotate(-1.5deg) scale(1.06);
  filter: brightness(0.55) saturate(1.2);
}

.hero-img-b {
  transform: translateY(32px) rotate(1.5deg) scale(1.06);
  filter: brightness(0.45) saturate(1.3);
}

.hero-collage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(38,23,23,0.55) 0%, rgba(38,23,23,0.82) 100%);
  z-index: 2;
}

.hero-decor-dot {
  position: absolute;
  bottom: 60px;
  left: 40px;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(circle, rgba(255,0,0,0.5) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  z-index: 3;
  border-radius: 50%;
  opacity: 0.7;
}

.hero-decor-line {
  position: absolute;
  top: 30%;
  right: 60px;
  width: 3px;
  height: 200px;
  background: linear-gradient(to bottom, #ff0000, #8b00ff, transparent);
  z-index: 3;
  opacity: 0.6;
}

.hero-aside-badge {
  position: absolute;
  top: 120px;
  right: 2.5rem;
  z-index: 10;
}

.badge-glass {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
}

.badge-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,232,232,0.8);
}

.badge-hot {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff0000;
}

.hero-text-center {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-h1 {
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 30%, #ff0000 60%, #8b00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(240,232,232,0.8);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff0000 0%, #8b00ff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 28px rgba(255,0,0,0.4);
  transition: transform 0.18s, box-shadow 0.18s;
  min-height: 52px;
}

.btn-hero-primary:hover,
.btn-hero-primary:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(139,0,255,0.5);
  outline: none;
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #f0e8e8;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  min-height: 52px;
}

.btn-hero-ghost:hover,
.btn-hero-ghost:focus-visible {
  background: rgba(139,0,255,0.2);
  border-color: #8b00ff;
  transform: translateY(-2px);
  outline: none;
}

/* =============================================
   CONTENT SECTIONS (page.content injection)
   ============================================= */
.content-sections {
  position: relative;
  z-index: 10;
}

.content-sections article {
  scroll-margin-top: 140px;
  padding: 5rem 2rem;
  max-width: 1140px;
  margin: 0 auto;
}

.content-sections article + article {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.content-sections h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #fff 0%, #ff0000 50%, #8b00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-sections h2 span {
  display: inline;
}

.content-sections h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #f0e8e8;
}

.content-sections h3 span {
  display: inline;
}

.content-sections p {
  color: rgba(240,232,232,0.85);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 760px;
}

.content-sections ul,
.content-sections ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  color: rgba(240,232,232,0.8);
  line-height: 1.8;
}

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

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

.content-sections a {
  color: #ff0000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}

.content-sections a:hover {
  color: #8b00ff;
}

.content-sections article figure,
.content-sections article aside {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 2rem;
  margin: 2rem 0;
}

.content-sections article figure figcaption {
  font-size: 0.85rem;
  color: rgba(240,232,232,0.55);
  margin-top: 0.75rem;
  font-style: italic;
}

/* =============================================
   SCROLL MARGIN FOR ANCHORS
   ============================================= */
article[id] {
  scroll-margin-top: 140px;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.js-reveal .reveal-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  position: relative;
  z-index: 10;
  background: rgba(20, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,0,0,0.2);
  padding: 4rem 2rem 2rem;
}

.footer-brand-block {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-super-brand {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, #ff0000, #8b00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(240,232,232,0.5);
  max-width: 400px;
  margin: 0 auto;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-dl dt {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff0000;
  margin-bottom: 1rem;
}

.footer-dl dd {
  margin-bottom: 0.55rem;
}

.footer-dl dd a {
  font-size: 0.9rem;
  color: rgba(240,232,232,0.65);
  transition: color 0.18s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  line-height: 1.4;
}

.footer-dl dd a:hover {
  color: #ff0000;
}

.footer-dl dd:not(:has(a)) {
  font-size: 0.9rem;
  color: rgba(240,232,232,0.5);
  min-height: 28px;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(240,232,232,0.5);
}

.footer-notice {
  font-size: 0.8rem;
  color: rgba(240,232,232,0.35);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .nav-pill-group {
    display: none;
  }

  .nav-inner {
    padding: 0.75rem 1rem;
    justify-content: space-between;
  }

  .anchor-bar {
    top: 68px;
    padding: 0.5rem 1rem;
    gap: 0.4rem;
  }

  .site-main {
    padding-top: 68px;
  }

  .hero-section {
    padding: 5rem 1rem 3rem;
  }

  .hero-aside-badge {
    top: 80px;
    right: 1rem;
  }

  .content-sections article {
    padding: 3.5rem 1rem;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-cols .footer-dl:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .hero-h1 {
    font-size: 2.4rem;
  }

  .hero-collage {
    grid-template-columns: 1fr;
  }

  .hero-img-b {
    display: none;
  }

  .hero-aside-badge {
    display: none;
  }

  .hero-section {
    min-height: 100svh;
    padding: 4rem 1rem 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .btn-hero-primary,
  .btn-hero-ghost {
    justify-content: center;
  }

  .anchor-bar {
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
  }

  .anchor-link {
    font-size: 0.72rem;
    padding: 0.55rem 0.85rem;
    min-height: 40px;
  }

  .footer-super-brand {
    font-size: 3rem;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-cols .footer-dl:last-child {
    grid-column: auto;
  }

  .content-sections article {
    padding: 2.5rem 1rem;
  }

  .content-sections h2 {
    font-size: 1.7rem;
  }

  .pill-btn {
    min-height: 44px;
  }

  .cta-main-btn {
    min-height: 44px;
    padding: 0.65rem 1.2rem;
  }
}

/* =============================================
   UTILITY
   ============================================= */
:focus-visible {
  outline: 2px solid #ff0000;
  outline-offset: 3px;
}

::selection {
  background: rgba(255,0,0,0.35);
  color: #fff;
}

button[aria-expanded]{min-width:44px;min-height:44px}
