/* ===== 烨森Studio · UE++ 统一页面框架 ===== */
:root {
  --site-header-top: 20px;
  --site-header-side: 20px;
  --site-nav-height: 52px;
  --site-main-gap: 28px;
  --site-main-top: calc(var(--site-header-top) + var(--site-nav-height) + var(--site-main-gap));
  --site-footer-height: 76px;
  --page-hero-kicker-size: 0.8rem;
  --page-hero-kicker-spacing: 8px;
  --page-hero-title-size: 2.4rem;
  --page-hero-desc-size: 0.95rem;
  --page-hero-desc-muted-size: 0.9rem;
  --page-hero-display-size: 6rem;
  --page-hero-margin-bottom: 36px;
  --page-hero-kicker-color: #2563eb;
  --page-hero-title-color: #1a1a2e;
  --page-hero-desc-color: rgba(30, 30, 50, 0.55);
  --page-hero-desc-muted-color: rgba(30, 30, 50, 0.5);
}

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

html {
  scroll-behavior: auto;
}

html.is-smooth-scrolling {
  scroll-behavior: auto;
}

html.is-smooth-scrolling body.site-page {
  overscroll-behavior: contain;
}

body.site-page {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--site-footer-height);
}

/* ===== 背景层 ===== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef4 50%, #ecf2f9 100%);
}

.star-field {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 15% 30%, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(1px 1px at 75% 20%, rgba(37, 99, 235, 0.1), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(96, 165, 250, 0.12), transparent),
    radial-gradient(1px 1px at 85% 90%, rgba(59, 130, 246, 0.08), transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(147, 197, 253, 0.1), transparent);
  background-size: 500px 500px;
  opacity: 0.8;
}

.nebula {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(37, 99, 235, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(59, 130, 246, 0.03) 0%, transparent 45%);
  filter: blur(100px);
}

.core-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1400px;
  height: 1400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(140px);
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

/* ===== 顶部导航（固定模板） ===== */
.site-header {
  position: fixed;
  top: var(--site-header-top);
  left: var(--site-header-side);
  right: var(--site-header-side);
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.site-nav {
  pointer-events: auto;
  width: 100%;
  max-width: 950px;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: #1a1a2e;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: rgba(30, 30, 50, 0.65);
  font-size: 0.85rem;
  font-weight: 450;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link.active {
  color: #2563eb;
}

/* 首页全屏滚动仍可使用旧 nav 标签，样式与 .site-nav 一致 */
nav.site-nav {
  pointer-events: auto;
}

body:not(.site-page) .site-header {
  pointer-events: none;
}

body:not(.site-page) .site-nav {
  pointer-events: auto;
}

/* ===== 主内容区（普通滚动页：标题区 + 正文紧接下方） ===== */
.site-main {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: var(--site-main-top) 24px 42px;
}

/* ===== 全站标题区（由 site-layout.js 注入，首页复用同一套层级） ===== */
.page-hero {
  text-align: center;
  margin-bottom: var(--page-hero-margin-bottom);
}

.page-hero__kicker {
  font-size: var(--page-hero-kicker-size);
  color: var(--page-hero-kicker-color);
  margin-bottom: 1rem;
  letter-spacing: var(--page-hero-kicker-spacing);
  text-transform: uppercase;
  font-weight: 500;
}

.page-hero__title {
  font-size: var(--page-hero-title-size);
  font-weight: 550;
  letter-spacing: -0.03em;
  color: var(--page-hero-title-color);
  margin-bottom: 8px;
  line-height: 1.15;
}

.page-hero__display {
  font-size: var(--page-hero-display-size);
  font-weight: 600;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #1a1a2e 0%, #2563eb 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.page-hero__desc {
  max-width: 720px;
  margin: 0 auto;
  color: var(--page-hero-desc-color);
  line-height: 1.6;
  font-size: var(--page-hero-desc-size);
  font-weight: 400;
}

.page-hero__desc--muted {
  font-size: var(--page-hero-desc-muted-size);
  color: var(--page-hero-desc-muted-color);
  margin-top: 0.25rem;
  margin-bottom: 2.5rem;
}

.page-hero--home {
  margin-bottom: 0;
}

.page-hero--home .page-hero__desc:not(.page-hero__desc--muted) {
  max-width: 600px;
  color: rgba(30, 30, 50, 0.7);
  font-size: 1.2rem;
}

.page-meta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -12px 0 28px;
}

.page-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 0.5px solid rgba(37, 99, 235, 0.16);
  border-radius: 40px;
  color: rgba(30, 30, 50, 0.56);
  font-size: 0.78rem;
  font-weight: 450;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 550;
  letter-spacing: -0.03em;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.section-desc {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(30, 30, 50, 0.55);
  line-height: 1.6;
  font-size: 0.95rem;
  font-weight: 400;
}

.section-header {
  margin-bottom: 28px;
  text-align: center;
}

.content-section + .content-section {
  margin-top: 48px;
}

.content-section .section-header {
  margin-bottom: 28px;
}

.content-section .section-title {
  font-size: 1.8rem;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  color: #1a1a2e;
  border: 0.5px solid rgba(37, 99, 235, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: #2563eb;
}

/* ===== 底部 ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 0.5px solid rgba(255, 255, 255, 0.6);
}

.footer-content {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-copyright,
.footer-links a {
  color: rgba(30, 30, 50, 0.5);
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer-links a:hover {
  color: #2563eb;
}

/* ===== 通用卡片 ===== */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 32px;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 550;
  color: #1a1a2e;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.info-card > p {
  color: rgba(30, 30, 50, 0.65);
  line-height: 1.6;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(37, 99, 235, 0.1);
  color: rgba(30, 30, 50, 0.7);
  font-size: 0.9rem;
  font-weight: 400;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list .highlight {
  color: #2563eb;
  font-weight: 550;
  min-width: 75px;
}

@media (max-width: 768px) {
  :root {
    --site-header-side: 16px;
    --site-nav-height: 48px;
    --site-main-gap: 24px;
  }

  .site-nav {
    padding: 0.6rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --page-hero-display-size: 4.5rem;
  }
}

@media (max-width: 600px) {
  :root {
    --site-footer-height: 104px;
    --site-main-gap: 20px;
    --page-hero-display-size: 3.2rem;
  }

  body.site-page {
    padding-bottom: var(--site-footer-height);
  }

  .nav-brand {
    font-size: 1rem;
  }

  .site-main {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 32px;
    padding-top: calc(var(--site-header-top) + var(--site-nav-height) + var(--site-main-gap));
  }

  .page-hero__kicker {
    letter-spacing: 5px;
  }

  .footer-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-links {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-footer {
    padding: 12px 16px;
  }
}
