:root {
  --pink: #ff4d94;
  --pink-dark: #e63d7e;
  --pink-soft: #fff0f6;
  --pink-mid: #ffb3d1;
  --text: #1a1a1a;
  --text-sec: #555;
  --text-muted: #888;
  --bg: #faf8f9;
  --white: #fff;
  --border: #f0e4ea;
  --shadow: 0 8px 28px rgba(255, 77, 148, 0.1);
  --radius: 12px;
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--pink-dark);
}

ul, ol {
  padding-left: 1.25rem;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  background: linear-gradient(120deg, var(--pink), #ff7eb3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  background: var(--pink-soft);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-sec);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a.active {
  color: var(--pink);
  background: var(--pink-soft);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 179, 209, 0.45), transparent),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(255, 77, 148, 0.18), transparent),
    linear-gradient(180deg, #fff 0%, var(--pink-soft) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--pink);
  border: 1px solid var(--pink-mid);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-sec);
  margin-bottom: 1.75rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), #ff7eb3);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 77, 148, 0.35);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 77, 148, 0.45);
}

.btn-ghost {
  background: var(--white);
  color: var(--pink);
  border-color: var(--pink-mid);
}

.btn-ghost:hover {
  background: var(--pink-soft);
  color: var(--pink-dark);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 12% -8% -8% 20%;
  background: linear-gradient(135deg, var(--pink-mid), transparent);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.55;
}

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-sec);
  max-width: 48em;
}

.section-label {
  display: inline-block;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-sec);
  font-size: 0.95rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 1.4rem;
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.showcase-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.showcase-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.showcase-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--pink-soft);
}

.showcase-item figcaption {
  padding: 0.75rem 0.85rem 1rem;
}

.showcase-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.showcase-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Content article */
.article {
  max-width: 760px;
}

.article h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.85rem;
  padding-top: 0.5rem;
}

.article h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.65rem;
  color: #333;
}

.article p {
  margin-bottom: 1rem;
  color: var(--text-sec);
}

.article ul,
.article ol {
  margin-bottom: 1.15rem;
  color: var(--text-sec);
}

.article li {
  margin-bottom: 0.4rem;
}

.article strong {
  color: var(--text);
}

.toc {
  background: var(--pink-soft);
  border: 1px solid var(--pink-mid);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  padding: 0;
}

.toc ol {
  margin: 0;
  color: var(--text);
}

.toc a {
  font-weight: 500;
}

/* Split media */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--white);
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-sec);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.faq-item p {
  color: var(--text-sec);
  font-size: 0.95rem;
}

/* Legal pages */
.page-hero {
  background: linear-gradient(180deg, #fff, var(--pink-soft));
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-sec);
}

.legal-body {
  max-width: 800px;
  padding: 2.5rem 0 3.5rem;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
}

.legal-body p,
.legal-body li {
  color: var(--text-sec);
  margin-bottom: 0.85rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 179, 209, 0.4), transparent 55%),
    var(--bg);
}

.error-box {
  max-width: 520px;
}

.error-code {
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), #ff9ec4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.error-box h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-box p {
  color: var(--text-sec);
  margin-bottom: 1.5rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #ff4d94, #ff7eb3 50%, #ff9ec4);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin-bottom: 0.65rem;
}

.cta-band p {
  opacity: 0.95;
  margin-bottom: 1.35rem;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.cta-band .btn-ghost:hover {
  background: var(--white);
  color: var(--pink);
}

/* Footer */
.site-footer {
  background: #1f1520;
  color: #cfc4d0;
  padding: 2.75rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-grid h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  color: #cfc4d0;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--pink-mid);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9a8ea0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-sec);
}

/* Related links */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.related a {
  display: block;
  background: var(--pink-soft);
  border: 1px solid var(--pink-mid);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--text);
  font-weight: 600;
}

.related a:hover {
  background: var(--white);
  color: var(--pink);
}

.related span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Utility */
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 2.25rem;
  }

  .hero-visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.15rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 1rem;
    border-radius: 8px;
  }

  .header-inner {
    position: relative;
  }

  .feature-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card:hover,
  .showcase-item:hover,
  .btn-primary:hover {
    transform: none;
  }
}
