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

/* ===== 变量 ===== */
:root {
  --c-primary: #ff0080;
  --c-secondary: #ff00ff;
  --c-dark: #26171f;
  --c-dark2: #1a0e16;
  --c-dark3: #321c28;
  --c-light: #fce4f0;
  --c-muted: #c9a0b8;
  --c-card-bg: rgba(50,28,40,0.82);
  --c-border: rgba(255,0,128,0.25);
  --font-hand: 'Caveat', cursive;
  --font-body: 'Quicksand', system-ui, sans-serif;
  --nav-h: 110px;
  --radius-card: 4px;
  --radius-pill: 50px;
  --shadow-card: 0 6px 32px rgba(255,0,128,0.18), 0 2px 8px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 24px rgba(255,0,255,0.35);
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body { background: var(--c-dark); color: var(--c-light); font-family: var(--font-body); line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-secondary); }
ul { list-style: none; }

/* ===== 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;
  animation: auroraFloat 14s ease-in-out infinite alternate;
}
.a1 {
  width: 80vw; height: 60vh;
  top: -15vh; left: -20vw;
  background: radial-gradient(ellipse, #ff0080 0%, #ff00ff 50%, transparent 75%);
  animation-duration: 16s;
}
.a2 {
  width: 70vw; height: 55vh;
  top: 20vh; right: -15vw;
  background: radial-gradient(ellipse, #ff00ff 0%, #c000ff 45%, transparent 75%);
  animation-duration: 20s;
  animation-delay: -5s;
}
.a3 {
  width: 60vw; height: 50vh;
  bottom: -10vh; left: 15vw;
  background: radial-gradient(ellipse, #ff0080 0%, #7000ff 55%, transparent 75%);
  animation-duration: 18s;
  animation-delay: -9s;
}
.mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}

@keyframes auroraFloat {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate(4vw, -3vh) scale(1.08) rotate(6deg); }
  66%  { transform: translate(-3vw, 5vh) scale(0.95) rotate(-4deg); }
  100% { transform: translate(2vw, 2vh) scale(1.04) rotate(3deg); }
}

/* ===== 页面包装 ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
}

/* ===== 侧边 aside（导航契约要求；移动端用 header nav） ===== */
.site-aside {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 200;
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.site-aside nav { width: 100%; }
.site-aside ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px;
  background: rgba(38,23,31,0.72);
  border-right: 2px solid var(--c-border);
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.site-aside ul li a {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  transition: background var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.site-aside ul li a::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-aside ul li a:hover {
  background: rgba(255,0,128,0.25);
  box-shadow: var(--shadow-glow);
}
.site-aside ul li a:hover::after {
  background: var(--c-secondary);
  box-shadow: 0 0 8px var(--c-secondary);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(38,23,31,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  padding: 0 24px;
}
.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 8px;
  min-height: 56px;
}
.brand-link { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; }
.brand-text {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 18px rgba(255,0,128,0.4);
  transition: box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.header-cta-btn:hover {
  box-shadow: 0 6px 28px rgba(255,0,255,0.55);
  transform: translateY(-2px);
  color: #fff;
}
.header-nav-row {
  padding-bottom: 10px;
}
.desktop-nav ul.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255,0,128,0.08);
  border: 1px solid var(--c-border);
  color: var(--c-light);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.nav-pill:hover, .nav-pill:focus-visible {
  background: linear-gradient(135deg, rgba(255,0,128,0.3), rgba(255,0,255,0.3));
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255,0,128,0.3);
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(38,23,31,0.85) 0%,
    rgba(255,0,128,0.15) 55%,
    rgba(255,0,255,0.08) 100%);
}
.hero-slash {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--c-dark);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 40px 56px 72px 56px;
  text-align: left;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--c-primary);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  opacity: 0.9;
}
.hero-content h1 {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 20px rgba(255,0,128,0.5);
  margin-bottom: 14px;
}
.hero-lead {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 520px;
  margin-bottom: 24px;
  line-height: 1.65;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.hero-btn:hover {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,0,128,0.45);
}

/* ===== 主内容 ===== */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.content-article { width: 100%; }
.page-body { width: 100%; }

/* ===== 正文内容样式（page.content 注入的 HTML） ===== */
.page-body h2 {
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  margin: 60px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-border);
  position: relative;
  scroll-margin-top: var(--nav-h);
}
.page-body h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--c-primary);
}
.page-body .subtitle,
.page-body .subhead,
.page-body .desc,
.page-body .lead {
  font-size: 1rem;
  color: var(--c-muted);
  margin-bottom: 20px;
  line-height: 1.65;
  font-style: italic;
}
.page-body h3 {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-primary);
  margin: 32px 0 8px;
}
.page-body p {
  font-size: 1rem;
  color: var(--c-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.page-body ul, .page-body ol {
  margin: 12px 0 20px 20px;
  list-style: disc;
}
.page-body ol { list-style: decimal; }
.page-body li {
  color: var(--c-light);
  line-height: 1.75;
  margin-bottom: 6px;
  font-size: 1rem;
}
.page-body a {
  color: var(--c-primary);
  border-bottom: 1px dashed rgba(255,0,128,0.4);
  transition: color var(--transition), border-color var(--transition);
}
.page-body a:hover { color: var(--c-secondary); border-color: var(--c-secondary); }
.page-body strong { color: #fff; font-weight: 600; }
.page-body em { color: var(--c-muted); }
.page-body blockquote {
  border-left: 3px solid var(--c-primary);
  margin: 24px 0;
  padding: 12px 20px;
  background: rgba(255,0,128,0.07);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-style: italic;
  color: var(--c-muted);
}
.page-body img {
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: var(--shadow-card);
}
.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.93rem;
}
.page-body th {
  background: rgba(255,0,128,0.15);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  text-align: left;
}
.page-body td {
  padding: 9px 14px;
  border: 1px solid rgba(255,0,128,0.12);
  color: var(--c-light);
}
.page-body tr:nth-child(even) td { background: rgba(255,255,255,0.03); }

/* div 区块分隔 */
.page-body div {
  scroll-margin-top: var(--nav-h);
  padding: 20px 0 8px;
  border-top: 1px solid rgba(255,0,128,0.1);
  margin-top: 8px;
}
.page-body div:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  padding: 32px 40px 24px;
  text-align: center;
}
.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), var(--c-primary));
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
  margin-bottom: 20px;
  border-radius: 2px;
}
.footer-brand {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--c-muted);
  margin-bottom: 6px;
}
.footer-contact {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(201,160,184,0.6);
  line-height: 1.5;
}

/* ===== 动效 ===== */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* 滚动入场动效 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== 全局卡片样式（供 page.content 内卡片使用） ===== */
.card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  backdrop-filter: blur(8px);
}
.card:hover {
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-3px);
  border-color: rgba(255,0,128,0.5);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

/* ===== 全局 iridescent 点缀 ===== */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(255,255,255,0.07) 50%,
    transparent 65%);
  background-size: 200% 100%;
  animation: shimmerMove 3s linear infinite;
  pointer-events: none;
}
@keyframes shimmerMove {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  :root { --nav-h: 100px; }
  .site-aside { display: none; }
  .header-brand-row { padding: 10px 0 6px; }
  .brand-text { font-size: 1.35rem; }
  .header-cta-btn { padding: 9px 16px; font-size: 0.82rem; }
  .header-nav-row { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .desktop-nav ul.pill-group { flex-wrap: nowrap; gap: 5px; }
  .nav-pill { padding: 8px 12px; font-size: 0.82rem; }
  .hero-section { min-height: 42vh; }
  .hero-content { padding: 30px 24px 60px; }
  .hero-content h1 { font-size: 1.7rem; }
  .main-content { padding: 36px 18px 60px; }
  .page-body h2 { font-size: 1.35rem; margin-top: 44px; }
  .site-footer { padding: 24px 20px 18px; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-content { padding: 22px 16px 50px; }
  .hero-content h1 { font-size: 1.45rem; }
  .hero-lead { font-size: 0.9rem; }
  .main-content { padding: 24px 14px 48px; }
}

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