@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

/* ===== CSS 变量 ===== */
:root {
  --ice: #c8e0f4;
  --pink: #f5e0e8;
  --dark: #171f26;
  --dark2: #1e2a35;
  --dark3: #243040;
  --ice-dim: #a8c6e0;
  --pink-dim: #dfc4cf;
  --text-main: #d8eaf8;
  --text-mute: #8fa8bc;
  --radius-card: 18px;
  --radius-btn: 12px;
  --shadow-out: -5px -5px 15px rgba(255,255,255,0.06), 5px 5px 15px rgba(0,0,0,0.5);
  --shadow-in: inset -3px -3px 8px rgba(255,255,255,0.05), inset 3px 3px 8px rgba(0,0,0,0.5);
  --shadow-pink: -4px -4px 12px rgba(245,224,232,0.08), 4px 4px 12px rgba(0,0,0,0.45);
  --shadow-ice: -4px -4px 12px rgba(200,224,244,0.1), 4px 4px 12px rgba(0,0,0,0.45);
  --nav-h: 64px;
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 17px;
  line-height: 1.6;
  background: var(--dark);
  color: var(--text-main);
  font-family: var(--font);
}
body, .neu-body {
  min-height: 100vh;
  background: var(--dark);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, menu { list-style: none; }

/* ===== scroll-margin for anchored sections ===== */
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ===== SITE WRAP ===== */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* ===== NAVIGATION ===== */
.nav-details {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark2);
  box-shadow: 0 2px 16px rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(200,224,244,0.07);
}
.nav-details[open] > summary .nav-toggle-icon span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-details[open] > summary .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-details[open] > summary .nav-toggle-icon span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

.nav-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 28px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nav-summary::-webkit-details-marker { display: none; }

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ice);
  letter-spacing: 0.02em;
}
.logo-img { border-radius: 8px; }
.brand-name { white-space: nowrap; }

.nav-toggle-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-btn);
  background: transparent;
  flex-shrink: 0;
}
.nav-toggle-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ice);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 28px 0 0;
  position: absolute;
  right: 0;
  top: var(--nav-h);
  background: var(--dark2);
}
@media (min-width: 769px) {
  .nav-menu {
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
  }
  .nav-toggle-icon { display: none; }
}

.nav-link {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-mute);
  border-radius: var(--radius-btn);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus {
  color: var(--ice);
  background: rgba(200,224,244,0.08);
}

.nav-cta-wrap { margin-left: 8px; }
.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  background: linear-gradient(145deg, var(--ice), var(--ice-dim));
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-ice);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: -6px -6px 18px rgba(200,224,244,0.12), 6px 6px 18px rgba(0,0,0,0.5); }
.nav-cta:active { transform: scale(0.97); box-shadow: var(--shadow-in); }

/* ===== MAIN ===== */
.main-content { flex: 1; }

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "figure aside";
  align-items: center;
  gap: 48px;
  padding: 80px 48px 60px;
  background: linear-gradient(145deg, var(--dark) 60%, var(--dark3));
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 40%, rgba(200,224,244,0.06) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 70%, rgba(245,224,232,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-figure {
  grid-area: figure;
  position: relative;
  border-radius: var(--radius-card);
  overflow: visible;
}
.hero-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 20px;
  box-shadow: -8px -8px 24px rgba(200,224,244,0.08), 8px 8px 28px rgba(0,0,0,0.7);
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  top: 24px;
  left: 20px;
  background: linear-gradient(135deg, var(--pink), var(--pink-dim));
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 40px;
  box-shadow: var(--shadow-pink);
  letter-spacing: 0.04em;
  animation: float 3.2s ease-in-out infinite;
}
.badge-2 {
  top: auto;
  bottom: 28px;
  left: auto;
  right: 20px;
  background: linear-gradient(135deg, var(--ice), var(--ice-dim));
  animation-delay: 1.6s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ice);
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-mute);
  max-width: 480px;
  line-height: 1.7;
}

.neu-btn, .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  background: linear-gradient(145deg, var(--pink), var(--pink-dim));
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-pink);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.03em;
}
.neu-btn:hover, .hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: -6px -6px 20px rgba(245,224,232,0.1), 6px 6px 20px rgba(0,0,0,0.55);
}
.neu-btn:active, .hero-btn:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-in);
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mute);
  background: var(--dark3);
  border-radius: 40px;
  box-shadow: var(--shadow-out);
  letter-spacing: 0.03em;
}

/* ===== CONTENT SECTIONS (page.content 输出区) ===== */
.content-sections { width: 100%; }

.content-sections section {
  padding: 72px 48px;
  border-bottom: 1px solid rgba(200,224,244,0.06);
  position: relative;
}
.content-sections section:nth-child(odd) {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%);
}
.content-sections section:nth-child(even) {
  background: linear-gradient(160deg, var(--dark2) 0%, var(--dark3) 100%);
}

.content-sections h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--ice);
  margin-bottom: 20px;
  line-height: 1.25;
}
.content-sections h2 span,
.content-sections h3 span {
  display: inline;
  background: linear-gradient(90deg, var(--ice), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.content-sections h3 {
  font-size: 1.2rem;
  color: var(--pink);
  margin: 28px 0 12px;
}
.content-sections p {
  color: var(--text-main);
  margin-bottom: 16px;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.75;
}
.content-sections ul, .content-sections ol {
  padding-left: 1.4em;
  margin-bottom: 16px;
  color: var(--text-main);
}
.content-sections li { margin-bottom: 8px; line-height: 1.65; }
.content-sections a {
  color: var(--ice);
  border-bottom: 1px solid rgba(200,224,244,0.3);
  transition: border-color 0.2s;
}
.content-sections a:hover { border-color: var(--ice); }
.content-sections figure {
  margin: 28px 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-out);
}
.content-sections aside {
  background: var(--dark3);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  box-shadow: var(--shadow-out);
  border-left: 3px solid var(--pink);
  margin: 24px 0;
  color: var(--text-mute);
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark2);
  border-top: 1px solid rgba(200,224,244,0.07);
  padding: 56px 48px 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 32px;
}
.footer-col dt {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ice);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.footer-col dd {
  font-size: 0.9rem;
  color: var(--text-mute);
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-link {
  color: var(--text-mute);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
}
.footer-link:hover { color: var(--pink); }
.footer-copy {
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(143,168,188,0.55);
}
.footer-brand {
  font-size: 1.1rem;
  color: var(--pink) !important;
}

/* ===== NEU CARD (通用) ===== */
.neu-card {
  background: linear-gradient(145deg, var(--dark2), var(--dark3));
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-out);
  padding: 28px;
  border: 1px solid rgba(200,224,244,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.neu-card:hover {
  transform: translateY(-3px);
  box-shadow: -8px -8px 22px rgba(200,224,244,0.09), 8px 8px 22px rgba(0,0,0,0.55);
}

/* ===== 动效 ===== */
.hero-figure { transition: transform 0.1s linear; }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge { animation: float 3.2s ease-in-out infinite; }
  .badge-2 { animation-delay: 1.6s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .badge-2 { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr;
    grid-template-areas: "aside" "figure";
    padding: 60px 28px 48px;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 40px);
  }
  .hero-h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
  .content-sections section { padding: 52px 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle-icon { display: flex; }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 12px;
    width: 100%;
    border-top: 1px solid rgba(200,224,244,0.07);
    background: var(--dark2);
    position: static;
  }
  .nav-details:not([open]) .nav-menu { display: none; }
  .nav-link { width: 100%; height: 48px; padding: 0 20px; border-radius: 0; }
  .nav-cta-wrap { width: 100%; padding: 8px 16px; margin-left: 0; }
  .nav-cta { width: 100%; height: 48px; }
  .hero-section { gap: 32px; }
  .content-sections section { padding: 40px 18px; }
  .site-footer { padding: 40px 18px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-col:first-child { grid-column: auto; }
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  .hero-section { padding: 52px 16px 36px; }
  .hero-h1 { font-size: 1.65rem; }
  .content-sections section { padding: 36px 14px; }
}
