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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #26171f;
  color: #f0e8f4;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  background: #26171f;
  overflow-x: hidden;
}

/* ===== 极光背景 mesh ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255,0,128,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(255,0,255,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(255,0,128,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 90% 70% at 80% 60%, rgba(255,0,255,0.08) 0%, transparent 65%);
  animation: aurora-drift 12s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, 3%) scale(1.03); }
  100% { transform: translate(-2%, -2%) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== 滚动偏移（固定导航补偿）===== */
article[id] { scroll-margin-top: 90px; }

/* ===== 链接 ===== */
a { color: #ff80bf; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff00ff; }

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

/* ===== 站点头部 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(38,23,31,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,0,128,0.18);
}

.header-brand {
  padding: 10px 32px 6px;
  border-bottom: 1px solid rgba(255,0,255,0.08);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.brand-link:hover { color: #ff00ff; }

.logo-img { width: 32px; height: 32px; object-fit: contain; }

.brand-name {
  background: linear-gradient(90deg, #ff0080, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 32px;
  gap: 16px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  align-items: center;
}

.nav-links a {
  color: rgba(240,232,244,0.8);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  background: rgba(255,0,128,0.12);
  color: #ff00ff;
}

.nav-cta {
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff0080, #ff00ff);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 16px rgba(255,0,128,0.35);
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ===== 主体偏移（避免固定 header）===== */
main {
  position: relative;
  z-index: 1;
  padding-top: 90px;
}

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

/* ===== Hero ===== */
.hero-section { width: 100%; }

.hero-article {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(135deg, #26171f 0%, #3a1030 50%, #1a0d28 100%);
}

/* 斜切色带 */
.hero-slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg,
    transparent 0%,
    transparent 38%,
    rgba(255,0,128,0.12) 38%,
    rgba(255,0,255,0.10) 52%,
    transparent 52%
  );
  pointer-events: none;
  z-index: 1;
}

/* 棱镜装饰 */
.hero-prism {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    conic-gradient(from 220deg at 70% 40%, rgba(255,0,128,0.10) 0deg, rgba(255,0,255,0.08) 60deg, transparent 120deg),
    radial-gradient(ellipse 40% 60% at 75% 30%, rgba(255,0,255,0.15) 0%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(1px);
  animation: prism-shimmer 8s ease-in-out infinite alternate;
}

@keyframes prism-shimmer {
  0%   { filter: blur(1px) hue-rotate(0deg); opacity: 1; }
  100% { filter: blur(2px) hue-rotate(30deg); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-prism { animation: none; }
}

/* 媒体区 */
.hero-media {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-wrap {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(255,0,128,0.25);
}

.hero-img-wrap-a {
  width: 58%;
  top: 10%;
  left: 8%;
  z-index: 3;
  transform: rotate(-3deg);
  border: 1px solid rgba(255,0,128,0.3);
}

.hero-img-wrap-b {
  width: 48%;
  bottom: 8%;
  right: 4%;
  z-index: 4;
  transform: rotate(2.5deg);
  border: 1px solid rgba(255,0,255,0.3);
}

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

/* 文案区 */
.hero-text {
  position: relative;
  z-index: 5;
  text-align: right;
  padding: 48px 40px 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff0080;
  border: 1px solid rgba(255,0,128,0.35);
  border-radius: 40px;
  padding: 4px 14px;
  display: inline-block;
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  background: linear-gradient(135deg, #fff 0%, #ff80bf 50%, #ff00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 480px;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(240,232,244,0.7);
  max-width: 360px;
  line-height: 1.65;
}

.hero-btn {
  background: linear-gradient(135deg, #ff0080, #ff00ff);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 24px rgba(255,0,128,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(255,0,255,0.55);
  color: #fff;
}

/* ===== 内容布局 ===== */
.content-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}

/* ===== 侧边栏 ===== */
.site-aside {
  position: sticky;
  top: 100px;
  z-index: 10;
}

.aside-inner {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,0,128,0.14);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.aside-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff0080, #ff00ff);
  border-radius: 12px 12px 0 0;
}

.aside-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff0080;
  margin-bottom: 8px;
}

.aside-link {
  font-size: 0.84rem;
  color: rgba(240,232,244,0.65);
  padding: 7px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
}

.aside-link:hover {
  background: rgba(255,0,128,0.10);
  color: #ff80bf;
}

/* ===== 正文容器 ===== */
.content-main {
  min-width: 0;
}

.page-content-section {
  /* 正文 article */
}

.page-content-article {
  /* 直接接收 page.content */
}

/* ===== page.content 内部样式 ===== */
.page-content-article h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800;
  margin: 56px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,0,128,0.2);
  background: linear-gradient(90deg, #fff 0%, #ff80bf 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25;
}

.page-content-article h2:first-child { margin-top: 0; }

.page-content-article h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  margin: 36px 0 12px;
  color: #ff80bf;
  line-height: 1.3;
}

.page-content-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(240,232,244,0.88);
  margin-bottom: 16px;
}

.page-content-article ul,
.page-content-article ol {
  padding-left: 1.5em;
  margin-bottom: 18px;
  color: rgba(240,232,244,0.85);
}

.page-content-article li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-content-article strong { color: #ff80bf; font-weight: 700; }

.page-content-article a {
  color: #ff80bf;
  border-bottom: 1px solid rgba(255,0,128,0.3);
  transition: color 0.2s, border-color 0.2s;
}

.page-content-article a:hover {
  color: #ff00ff;
  border-color: rgba(255,0,255,0.5);
}

.page-content-article blockquote {
  border-left: 3px solid #ff0080;
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(255,0,128,0.06);
  border-radius: 0 8px 8px 0;
  color: rgba(240,232,244,0.8);
  font-style: italic;
}

.page-content-article code {
  background: rgba(255,0,255,0.10);
  color: #ff80bf;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.page-content-article pre {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,0,128,0.18);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.page-content-article pre code {
  background: none;
  padding: 0;
}

/* article 区块分隔 */
.page-content-article article {
  margin-bottom: 48px;
  padding: 32px;
  background: rgba(255,255,255,0.025);
  border-radius: 12px;
  border: 1px solid rgba(255,0,128,0.10);
  position: relative;
  overflow: hidden;
}

.page-content-article article::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #ff0080 0%, #ff00ff 100%);
  opacity: 0.5;
}

.page-content-article article:hover::before {
  opacity: 1;
  transition: opacity 0.3s;
}

/* ===== 卡片（纯色块无边框）===== */
.card {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255,0,128,0.18);
}

/* ===== h2/h3 span 装饰（build2 自动补）===== */
.page-content-article h2 > span,
.page-content-article h3 > span {
  display: inline;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  border-top: 1px solid rgba(255,0,128,0.15);
  padding: 0 24px 24px;
  text-align: center;
}

.footer-cta-block {
  width: 100%;
  background: linear-gradient(135deg, #ff0080 0%, #ff00ff 100%);
  padding: 32px 24px;
  border-radius: 16px;
  margin: -1px auto 28px;
  max-width: 1152px;
  box-shadow: 0 0 48px rgba(255,0,128,0.30);
  position: relative;
  overflow: hidden;
}

.footer-cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 20px
  );
}

.footer-cta-text {
  position: relative;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: #fff;
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 0.88rem;
  color: rgba(240,232,244,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.footer-sep { opacity: 0.4; }

.footer-small {
  display: block;
  font-size: 0.78rem;
  color: rgba(240,232,244,0.35);
  line-height: 1.5;
}

/* ===== 动效：Stagger List ===== */
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-content-article article {
  animation: stagger-in 0.5s ease both;
}

.page-content-article article:nth-child(1) { animation-delay: 0.05s; }
.page-content-article article:nth-child(2) { animation-delay: 0.12s; }
.page-content-article article:nth-child(3) { animation-delay: 0.19s; }
.page-content-article article:nth-child(4) { animation-delay: 0.26s; }
.page-content-article article:nth-child(5) { animation-delay: 0.33s; }
.page-content-article article:nth-child(6) { animation-delay: 0.40s; }
.page-content-article article:nth-child(7) { animation-delay: 0.47s; }

@media (prefers-reduced-motion: reduce) {
  .page-content-article article { animation: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-article {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    height: 45vw;
    min-height: 200px;
  }

  .hero-text {
    text-align: left;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .hero-h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .site-aside {
    position: static;
    margin-bottom: 32px;
  }

  .aside-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 14px 16px;
  }

  .aside-title { width: 100%; margin-bottom: 4px; }
}

@media (max-width: 600px) {
  .header-brand { padding: 10px 16px 6px; }

  .site-nav {
    padding: 4px 16px;
    flex-wrap: wrap;
  }

  .nav-links {
    gap: 0;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 10px 8px;
  }

  .nav-cta {
    font-size: 0.82rem;
    padding: 10px 14px;
  }

  .wrap { padding: 0 16px; }

  main { padding-top: 80px; }

  article[id] { scroll-margin-top: 80px; }

  .hero-media { height: 52vw; }

  .hero-img-wrap-a { width: 65%; }
  .hero-img-wrap-b { width: 55%; }

  .page-content-article article {
    padding: 20px 16px;
  }

  .footer-cta-block { border-radius: 10px; }

  .footer-copy { font-size: 0.82rem; }
}

@media (max-width: 375px) {
  .hero-article { border-radius: 0 0 14px 14px; }
  .hero-text { padding: 24px 16px; }
  .nav-links a { font-size: 0.76rem; padding: 10px 6px; }
}

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