:root {
  --primary: #9b7ede;
  --secondary: #e8b4b8;
  --accent: #d4a5c9;
  --bg-light: #f8f5fa;
  --bg-deep: #311f43;
  --text-main: #2f213f;
  --text-muted: #695b78;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-line: rgba(255, 255, 255, 0.42);
  --shadow-soft: 0 24px 60px rgba(91, 61, 128, 0.18);
  --shadow-card: 0 18px 44px rgba(89, 61, 116, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --space-1: 0.75rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --container: min(1120px, calc(100vw - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(212, 165, 201, 0.4), transparent 30%),
    linear-gradient(180deg, #fefbfd 0%, var(--bg-light) 45%, #f4edf6 100%);
}

a,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
}

code {
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.page-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.section .eyebrow,
.site-footer .eyebrow {
  color: var(--primary);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: max(2rem, env(safe-area-inset-top)) 0 3rem;
  background:
    linear-gradient(135deg, rgba(155, 126, 222, 0.96) 0%, rgba(232, 180, 184, 0.88) 54%, rgba(255, 245, 248, 0.78) 100%);
  isolation: isolate;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: "Baskerville", "Times New Roman", "Songti SC", serif;
  font-size: clamp(2.7rem, 8vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff8fe;
}

.hero__subtitle {
  width: min(48rem, 100%);
  margin: var(--space-3) auto 0;
  font-size: clamp(1rem, 3vw, 1.24rem);
  line-height: 1.8;
  color: rgba(255, 247, 251, 0.92);
}

.hero__actions {
  margin-top: var(--space-4);
}

.cta-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.cta-button {
  color: var(--bg-deep);
  background: linear-gradient(135deg, #ffffff 0%, #ffeef1 100%);
  box-shadow: 0 16px 40px rgba(73, 44, 108, 0.2);
}

.cta-button:hover,
.cta-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-2px);
}

.cta-button:hover,
.cta-button:focus-visible {
  box-shadow: 0 22px 50px rgba(73, 44, 108, 0.24);
}

.cta-button--ghost {
  color: #fff8fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.secondary-button {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(155, 126, 222, 0.18);
  box-shadow: 0 10px 24px rgba(89, 61, 116, 0.08);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  width: min(40rem, 100%);
  padding: 0;
  margin: var(--space-5) auto 0;
  list-style: none;
}

.hero__meta li {
  padding: 1rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
}

.hero__meta strong {
  display: block;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: #fff;
}

.hero__meta span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: rgba(255, 247, 251, 0.86);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.7;
}

.hero__glow--left {
  top: -5rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 255, 255, 0.34);
}

.hero__glow--right {
  right: -4rem;
  bottom: 4rem;
  width: 14rem;
  height: 14rem;
  background: rgba(255, 223, 228, 0.42);
}

.section {
  padding: var(--space-6) 0;
}

.panel-surface {
  padding: 1.5rem;
  border: 1px solid rgba(155, 126, 222, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, rgba(155, 126, 222, 0.08), rgba(232, 180, 184, 0.08));
  box-shadow: var(--shadow-card);
}

.site-footer {
  padding: 0 0 max(2rem, env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(57, 38, 76, 0.94), rgba(39, 26, 50, 0.98));
  box-shadow: 0 28px 60px rgba(28, 18, 38, 0.24);
}

.footer-block {
  padding: 0.75rem;
}

.footer-block h2 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  color: #fff6fa;
}

.footer-block p {
  margin: 0;
  line-height: 1.75;
  color: rgba(255, 240, 246, 0.74);
}

@media (max-width: 374px) {
  .hero__meta {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  :root {
    --container: min(1120px, calc(100vw - 3rem));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
