@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue: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: #1f1726;
  color: #f0eaf8;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Epilogue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #1f1726;
  color: #f0eaf8;
  overflow-x: hidden;
  padding-bottom: 70px;
}

a { color: #c084fc; text-decoration: none; transition: color 0.2s; }
a:hover { color: #e9d5ff; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Anton', 'PingFang SC', sans-serif;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* ===== SITE WRAP ===== */
.site-wrap { min-height: 100vh; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: #56228b;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  border: 2px solid #7c3aed;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.3;
}
.btn-primary:hover { background: #6d28d9; color: #fff; transform: translateY(-2px); }
.btn-primary.btn-large { font-size: 1.2rem; padding: 1rem 2.5rem; }

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: #e9d5ff;
  font-family: 'Anton', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  border: 2px solid #8b4513;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.3;
}
.btn-outline:hover { background: #8b4513; color: #fff; transform: translateY(-2px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1f1726 0%, #2d1b4e 50%, #1f1726 100%);
  overflow: hidden;
  padding-bottom: 60px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 480px;
  height: 480px;
  opacity: 0.7;
}
.blob-1 { top: -80px; right: -100px; }
.blob-2 { bottom: -120px; left: -80px; }

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(192,132,252,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: rgba(139,69,19,0.3);
  border: 1px solid #8b4513;
  color: #f5c27f;
  font-size: 0.8rem;
  font-family: 'Epilogue', sans-serif;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(86,34,139,0.5);
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #d8b4fe;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-arc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 2;
}
.hero-arc svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.content-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* ===== ASIDE (left sidebar) ===== */
.content-aside {
  flex: 0 0 220px;
  position: sticky;
  top: 90px;
  background: rgba(86,34,139,0.12);
  border: 1px solid rgba(86,34,139,0.35);
  border-radius: 20px;
  overflow: hidden;
}

.aside-inner {
  padding: 1.5rem 1.25rem;
}

.aside-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.4rem;
}

.aside-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  color: #e9d5ff;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(86,34,139,0.4);
}

.aside-nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.aside-link {
  display: block;
  padding: 0.45rem 0.75rem;
  color: #c4b5fd;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.aside-link:hover {
  background: rgba(86,34,139,0.3);
  color: #e9d5ff;
}

/* ===== CONTENT FIGURE ===== */
.content-figure {
  flex: 1;
  min-width: 0;
}

.content-body { width: 100%; }

/* ===== PAGE CONTENT SECTIONS (injected via page.content) ===== */
.content-body article {
  margin-bottom: 3.5rem;
  scroll-margin-top: 90px;
  padding: 2rem;
  background: rgba(45,27,78,0.4);
  border: 1px solid rgba(86,34,139,0.3);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.content-body article::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #56228b, #8b4513);
  border-radius: 20px 20px 0 0;
}

.content-body h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: #e9d5ff;
  margin-bottom: 1rem;
}

.content-body h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  color: #c4b5fd;
  margin: 1.5rem 0 0.6rem;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #e0d4f5;
  margin-bottom: 1rem;
}

.content-body ul, .content-body ol {
  margin: 0.75rem 0 1rem 1.25rem;
  list-style: disc;
}
.content-body ol { list-style: decimal; }
.content-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: #e0d4f5;
  margin-bottom: 0.35rem;
}

.content-body a {
  color: #c084fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-body a:hover { color: #e9d5ff; }

.content-body strong { color: #f5c27f; font-weight: 700; }

/* ===== FOOTER ===== */
.site-footer {
  background: #120c1e;
  border-top: 1px solid rgba(86,34,139,0.4);
  padding: 0 0 2rem;
}

.footer-cta-block {
  background: linear-gradient(135deg, #2d1b4e 0%, #3b0764 100%);
  text-align: center;
  padding: 4rem 2rem;
  border-bottom: 1px solid rgba(86,34,139,0.4);
  position: relative;
  overflow: hidden;
}

.footer-cta-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(192,132,252,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.footer-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5c27f;
  margin-bottom: 0.5rem;
}

.footer-cta-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.footer-cta-desc {
  color: #c4b5fd;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  color: #e9d5ff;
  letter-spacing: 0.05em;
}

.brand-icon { width: 36px; height: 36px; border-radius: 8px; }

.brand-text-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #56228b;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  border-radius: 8px;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-style: normal;
  margin-bottom: 1rem;
}

.footer-contact-link {
  font-size: 0.88rem;
  color: #a78bfa;
  display: block;
}
.footer-contact-link:hover { color: #e9d5ff; }

.footer-social-list { display: flex; flex-direction: column; gap: 0.4rem; }
.social-link {
  font-size: 0.88rem;
  color: #8b4513;
  border: 1px solid rgba(139,69,19,0.4);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  display: inline-block;
  transition: background 0.2s;
}
.social-link:hover { background: rgba(139,69,19,0.2); color: #f5c27f; }

.footer-nav-dl { display: flex; flex-direction: column; }
.footer-nav-dt {
  font-family: 'Anton', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(86,34,139,0.3);
}
.footer-nav-dd { margin: 0; }
.footer-nav-link {
  display: block;
  padding: 0.35rem 0;
  color: #c4b5fd;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(86,34,139,0.15);
  transition: color 0.2s, padding-left 0.2s;
  min-height: 40px;
  line-height: 40px;
}
.footer-nav-link:hover { color: #e9d5ff; padding-left: 0.5rem; }

.footer-info-title {
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  color: #e9d5ff;
  margin-bottom: 0.75rem;
}

.footer-info-desc {
  font-size: 0.88rem;
  color: #a78bfa;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(86,34,139,0.25);
  text-align: center;
  padding: 1.5rem 2rem 0.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.85rem;
  color: #7c6fa8;
  margin-bottom: 0.4rem;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: #5b4f7a;
}

/* ===== BOTTOM FIXED NAV ===== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(18, 10, 30, 0.97);
  border-top: 1px solid rgba(86,34,139,0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bottom-nav-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-right: 0.5rem;
  border-right: 1px solid rgba(86,34,139,0.3);
}

.bottom-nav-main { flex: 1; overflow: hidden; }

.bottom-nav-dl {
  display: flex;
  align-items: center;
  gap: 0;
  height: 62px;
}

.bottom-nav-dt { display: none; }

.bottom-nav-dl dd { flex: 1; }

.bottom-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 62px;
  font-size: 0.7rem;
  color: #a78bfa;
  font-family: 'Epilogue', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
  text-align: center;
  padding: 0 0.2rem;
  white-space: nowrap;
}
.bottom-nav-link:hover,
.bottom-nav-link:focus {
  color: #e9d5ff;
  background: rgba(86,34,139,0.2);
}

.bottom-nav-cta {
  flex: 0 0 auto;
  background: #56228b;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0 1rem;
  height: 40px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7c3aed;
  transition: background 0.2s;
  margin-left: 0.5rem;
  white-space: nowrap;
}
.bottom-nav-cta:hover { background: #6d28d9; color: #fff; }

/* ===== SR-ONLY ===== */
.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;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .content-body article {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .content-body article.is-visible {
    opacity: 1;
    transform: none;
  }

  .aside-link,
  .footer-cols .footer-col {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .aside-link.is-visible,
  .footer-cols .footer-col.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
  }
  .content-section {
    flex-direction: column;
  }
  .content-aside {
    flex: none;
    width: 100%;
    position: static;
  }
  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

@media (max-width: 600px) {
  .hero-inner { padding: 4rem 1.25rem 2.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; justify-content: center; display: flex; align-items: center; }

  .footer-cols {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 1rem;
  }

  .content-body article { padding: 1.25rem 1rem; }

  .bottom-nav-link { font-size: 0.62rem; }
}

@media (max-width: 375px) {
  .hero-h1 { font-size: 1.9rem; }
  .bottom-nav-bar { padding: 0 0.4rem; }
  .bottom-nav-cta { padding: 0 0.7rem; font-size: 0.8rem; }
}

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