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

/* ===== 基础重置 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Manrope', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  background-color: #261717;
  color: #f0e8e8;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(255,0,0,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(139,0,255,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== 滚动余量（吸顶导航补偿） ===== */
div[id] {
  scroll-margin-top: 90px;
}

/* ===== 通用容器 ===== */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(38, 23, 23, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0 24px;
}

.brand-row {
  display: flex;
  align-items: center;
  padding: 14px 0 8px;
  border-bottom: 1px solid rgba(255,0,0,0.12);
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ff0000 0%, #8b00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-logo {
  height: 36px;
  width: auto;
}

/* 导航侧栏（aside > nav > ul > li > a 结构） */
.nav-aside {
  padding: 10px 0;
}

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

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 40px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #f0e8e8;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.18s ease;
  white-space: nowrap;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: rgba(255, 0, 0, 0.22);
  border-color: rgba(255, 0, 0, 0.55);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 60px;
  overflow: hidden;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #fff 0%, #ff8080 50%, #c080ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(240, 232, 232, 0.78);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  min-height: 52px;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0000 0%, #8b00ff 100%);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 32px rgba(255,0,0,0.35), 0 0 60px rgba(139,0,255,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 48px rgba(255,0,0,0.5), 0 0 80px rgba(139,0,255,0.35);
  opacity: 0.92;
  outline: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
  opacity: 0.45;
}

.hero-glow-red {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,0,0,0.65) 0%, transparent 70%);
  top: -80px;
  right: 5%;
}

.hero-glow-purple {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(139,0,255,0.6) 0%, transparent 70%);
  bottom: -60px;
  right: 30%;
}

/* ===== 主内容区 ===== */
main {
  position: relative;
  z-index: 1;
  padding: 0 0 60px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-section {
  padding: 20px 0;
}

.content-article {
  font-size: 1rem;
  line-height: 1.8;
  color: #f0e8e8;
}

/* ===== 正文内容样式 ===== */
.content-article h2,
.content-article h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: #fff;
  margin: 2.4rem 0 0.5rem;
  letter-spacing: 0.01em;
}

.content-article h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  padding-bottom: 8px;
}

.content-article h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.content-article hr {
  border: none;
  border-top: 1px solid rgba(255,0,0,0.28);
  margin: 6px 0 20px;
}

.content-article p {
  margin-bottom: 1.2rem;
}

.content-article ul,
.content-article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.content-article li {
  margin-bottom: 0.5rem;
}

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

.content-article a:hover {
  color: #c080ff;
}

.content-article strong {
  color: #fff;
  font-weight: 600;
}

/* div 块分隔（正文 div 即来自 page.content） */
.content-article div {
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.content-article div:last-child {
  border-bottom: none;
}

/* 玻璃卡片（正文内 .card 类） */
.content-article .card,
.glass-card {
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.content-article .card:hover,
.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 0, 0, 0.35);
}

/* ===== 页脚 CTA 块 ===== */
.footer-cta-block {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 56px 24px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255,0,0,0.2);
  border-bottom: 1px solid rgba(139,0,255,0.2);
}

.footer-cta-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 40px;
  min-height: 52px;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b00ff 0%, #ff0000 100%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 36px rgba(139,0,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-cta-btn:hover,
.footer-cta-btn:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 0 56px rgba(139,0,255,0.6), 0 0 30px rgba(255,0,0,0.3);
  outline: none;
}

/* ===== 页脚主体 ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(20, 10, 10, 0.82);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

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

.footer-brand-link {
  display: inline-flex;
  align-items: center;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(240,232,232,0.6);
  line-height: 1.7;
  max-width: 320px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(240,232,232,0.7);
  text-decoration: none;
  padding: 4px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.18s;
}

.footer-nav a:hover {
  color: #ff8080;
}

/* ===== 页脚底栏 ===== */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-copy,
.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(240,232,232,0.45);
}

/* ===== Scroll Reveal 动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .hero-cta,
  .footer-cta-btn,
  .nav-pill,
  .content-article .card,
  .glass-card {
    transition: none;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-pills-list {
    gap: 6px;
  }
  .nav-pill {
    font-size: 0.82rem;
    padding: 8px 12px;
  }
  .hero-section {
    padding: 48px 20px 40px;
    min-height: 70vh;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 20px;
  }
  .hero-glow-red,
  .hero-glow-purple {
    width: 220px;
    height: 220px;
    opacity: 0.3;
  }
  div[id] {
    scroll-margin-top: 80px;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 2rem;
  }
  .nav-pills-list {
    gap: 5px;
  }
  .nav-pill {
    font-size: 0.78rem;
    padding: 7px 10px;
  }
  .footer-cta-block {
    padding: 40px 16px;
  }
}

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