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

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

:root {
  --c-red: #ff0000;
  --c-pink: #ff1493;
  --c-dark: #261717;
  --c-dark2: #3a1f1f;
  --c-dark3: #1a0f0f;
  --c-light: #fff8f8;
  --c-text: #f5e8e8;
  --c-text-dim: #c9a8a8;
  --c-accent: #ff6b6b;
  --c-glow-red: rgba(255,0,0,0.35);
  --c-glow-pink: rgba(255,20,147,0.35);
  --nav-w: 220px;
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', 'Fredoka', system-ui, sans-serif;
  --radius: 10px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  background: var(--c-dark3);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Aurora 背景 ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.a1 {
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, #ff0000 0%, #ff1493 50%, transparent 80%);
  top: -20vw; left: -15vw;
  animation: aurora-drift1 10s ease-in-out infinite alternate;
}

.a2 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, #ff1493 0%, #ff6b00 40%, transparent 75%);
  bottom: -15vw; right: -10vw;
  animation: aurora-drift2 12s ease-in-out infinite alternate;
}

.a3 {
  width: 50vw; height: 50vw;
  background: conic-gradient(from 180deg, #ff0000 0%, #ff1493 30%, #ff6b6b 60%, transparent 80%);
  top: 30%; left: 30%;
  animation: aurora-drift3 9s ease-in-out infinite alternate;
  opacity: 0.3;
}

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

@keyframes aurora-drift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 10vh) scale(1.15); }
}
@keyframes aurora-drift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, -8vh) scale(1.12); }
}
@keyframes aurora-drift3 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(-5vw, 6vh) rotate(30deg) scale(1.2); }
}

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

/* ===== 布局骨架：左侧竖排导航 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: var(--nav-w);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(38,23,23,0.95) 0%, rgba(26,15,15,0.98) 100%);
  border-right: 1px solid rgba(255,20,147,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  overflow-x: hidden;
}

.header-announce {
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--c-red), var(--c-pink));
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.02em;
}

.header-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,20,147,0.15);
}

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

.logo-img { border-radius: 8px; }

.logo-text-mark {
  font-size: 28px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #ffd0d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 导航：header > nav > p > a */
.site-nav {
  flex: 1;
  padding: 20px 16px;
}

.site-nav > p {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-nav > p > a {
  display: block;
  padding: 11px 16px;
  border-radius: var(--radius);
  color: var(--c-text-dim);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  min-height: 42px;
  line-height: 1.4;
}

.site-nav > p > a:hover,
.site-nav > p > a:focus-visible {
  background: linear-gradient(90deg, rgba(255,0,0,0.18), rgba(255,20,147,0.12));
  color: #fff;
  transform: translateX(4px);
  outline: none;
}

.site-nav > p > a:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 2px;
}

/* ===== 主体内容偏移 ===== */
.site-main {
  margin-left: var(--nav-w);
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ===== div / article 三层结构 ===== */
.page-article {
  display: block;
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 0;
  padding: 60px 40px 60px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-pink);
  background: rgba(255,20,147,0.12);
  border: 1px solid rgba(255,20,147,0.35);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 24px;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #ffb0b0 40%, #ff1493 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 8s ease-in-out infinite alternate;
  background-size: 200% 200%;
}

@keyframes shimmer-text {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

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

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--c-text-dim);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 装饰圆环 */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ring-pulse 10s ease-in-out infinite;
}

.r1 {
  width: 500px; height: 500px;
  border-color: rgba(255,0,0,0.15);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0s;
}
.r2 {
  width: 700px; height: 700px;
  border-color: rgba(255,20,147,0.1);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -3s;
}
.r3 {
  width: 900px; height: 900px;
  border-color: rgba(255,0,0,0.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -6s;
}

.deco-orb {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,20,147,0.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px);
  animation: orb-breathe 8s ease-in-out infinite alternate;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes orb-breathe {
  0% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .deco-ring, .deco-orb { animation: none; }
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  min-height: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--c-red) 0%, var(--c-pink) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px var(--c-glow-red);
  cursor: pointer;
}

.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--c-glow-pink);
  outline: none;
}

.btn-primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  min-height: 48px;
  border-radius: 24px;
  border: 1.5px solid rgba(255,20,147,0.5);
  color: var(--c-pink);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  background: transparent;
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(255,20,147,0.12);
  color: #fff;
  transform: translateY(-2px);
  outline: none;
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 3px;
}

.btn-lg {
  padding: 16px 48px;
  font-size: 18px;
  min-height: 56px;
}

/* ===== 内容区 + aside ===== */
.content-section {
  padding: 60px 40px 80px;
}

.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.content-main {
  min-width: 0;
}

/* page.content 里的 article 样式 */
.page-content > article,
.page-content article {
  scroll-margin-top: 80px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,20,147,0.12);
}

.page-content > article:last-child,
.page-content article:last-child {
  border-bottom: none;
}

.page-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
  background: linear-gradient(90deg, #fff 0%, #ffb0c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-content h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-accent);
  margin: 24px 0 12px;
}

.page-content p {
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content li {
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.page-content a {
  color: var(--c-pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.page-content a:hover {
  color: var(--c-red);
}

/* ===== Aside 侧边栏 ===== */
.content-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aside-widget {
  background: linear-gradient(145deg, rgba(38,23,23,0.9) 0%, rgba(58,31,31,0.7) 100%);
  border: 1px solid rgba(255,20,147,0.2);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--c-pink);
  padding: 24px 20px;
  backdrop-filter: blur(8px);
}

.aside-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

/* h2 + p.subtitle 契约 */
.aside-widget .subtitle,
p.subtitle {
  font-size: 12px;
  color: var(--c-text-dim);
  margin-bottom: 16px;
  line-height: 1.5;
}

.aside-widget nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--c-text-dim);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  min-height: 36px;
  line-height: 1.5;
}

.aside-link:hover, .aside-link:focus-visible {
  background: rgba(255,20,147,0.15);
  color: #fff;
  outline: none;
}

.aside-tip .tip-list {
  padding-left: 0;
  list-style: none;
}

.aside-tip .tip-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 13px;
  color: var(--c-text-dim);
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,20,147,0.08);
}

.aside-tip .tip-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
}

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

/* ===== 页脚 ===== */
.site-footer {
  margin-left: var(--nav-w);
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26,15,15,0) 0%, rgba(26,15,15,0.98) 100%);
  border-top: 1px solid rgba(255,20,147,0.15);
}

.footer-cta-block {
  padding: 64px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,0,0,0.08) 0%, rgba(255,20,147,0.08) 100%);
  border-bottom: 1px solid rgba(255,20,147,0.1);
}

.footer-cta-text {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}

/* footer 单行横排：logo + nav + copyright */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--c-text-dim);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
}

.footer-logo a:hover {
  color: #fff;
}

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

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  min-height: 40px;
  color: var(--c-text-dim);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.site-footer nav a:hover {
  color: #fff;
  background: rgba(255,20,147,0.1);
}

.footer-copy {
  text-align: right;
}

.footer-copy p {
  font-size: 12px;
  color: var(--c-text-dim);
  line-height: 1.6;
}

/* ===== scroll-margin for sections ===== */
article[id] {
  scroll-margin-top: 80px;
}

/* ===== stagger list animation ===== */
.page-content ul li,
.page-content ol li {
  opacity: 0;
  transform: translateX(-12px);
  animation: stagger-in 0.5s ease forwards;
}

.page-content ul li:nth-child(1) { animation-delay: 0.05s; }
.page-content ul li:nth-child(2) { animation-delay: 0.1s; }
.page-content ul li:nth-child(3) { animation-delay: 0.15s; }
.page-content ul li:nth-child(4) { animation-delay: 0.2s; }
.page-content ul li:nth-child(5) { animation-delay: 0.25s; }
.page-content ul li:nth-child(6) { animation-delay: 0.3s; }
.page-content ul li:nth-child(7) { animation-delay: 0.35s; }
.page-content ul li:nth-child(n+8) { animation-delay: 0.4s; }

@keyframes stagger-in {
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-content ul li,
  .page-content ol li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== 响应式：移动端 ===== */
@media (max-width: 900px) {
  :root { --nav-w: 0px; }

  .site-header {
    position: fixed;
    width: 100%;
    height: auto;
    top: 0; left: 0;
    flex-direction: column;
    border-right: none;
    border-bottom: 1px solid rgba(255,20,147,0.2);
    z-index: 200;
  }

  .header-brand {
    padding: 12px 16px;
    border-bottom: none;
    border-right: none;
  }

  .site-nav {
    padding: 0 12px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav > p {
    flex-direction: row;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .site-nav > p > a {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 44px;
    white-space: nowrap;
  }

  .site-nav > p > a:hover {
    transform: none;
  }

  .site-main {
    margin-left: 0;
    padding-top: 120px;
  }

  .site-footer {
    margin-left: 0;
  }

  .hero-section {
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
  }

  .content-section {
    padding: 40px 20px 60px;
  }

  .content-with-aside {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-aside {
    position: static;
    order: -1;
  }

  .footer-cta-block {
    padding: 40px 20px;
  }

  .footer-bar {
    padding: 16px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-copy {
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-ghost {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .header-announce {
    font-size: 10px;
  }

  .deco-ring { display: none; }
}
