:root {
  --bg: #fff7f9;
  --bg-soft: #ffe8ef;
  --surface: #ffffff;
  --text: #1f1218;
  --muted: #6b5560;
  --accent: #e11d48;
  --accent-dark: #be123c;
  --line: #f3cdd8;
  --shadow: 0 12px 40px rgba(190, 18, 60, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd6e3 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ffe0c8 0%, transparent 50%),
    linear-gradient(180deg, #fff7f9 0%, #fff 40%, #fff5f8 100%);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.35; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: #3a1522; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--text); }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; color: var(--muted); }
li { margin-bottom: 0.4em; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 247, 249, 0.88);
  border-bottom: 1px solid rgba(243, 205, 216, 0.7);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.brand span { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}
.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--accent); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
}

.hero {
  padding: 2.5rem 0 1.5rem;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,232,239,0.85)),
    url("/j.jpg") center/cover;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  min-height: min(72vh, 620px);
  display: grid;
  align-items: end;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31,18,24,0.15) 0%, rgba(31,18,24,0.55) 55%, rgba(31,18,24,0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  max-width: 720px;
}
.hero-content .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
}
.hero-content .brand-mark img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.5);
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 0.55em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.hero-content p {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  max-width: 36em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}
.btn-ghost {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}

.section { padding: 2.5rem 0; }
.section-head {
  margin-bottom: 1.4rem;
}
.section-head p {
  color: var(--muted);
  max-width: 48em;
}
.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: #111;
}
.feature-card .body { padding: 1rem 1.05rem 1.15rem; }
.feature-card h3 { margin-bottom: 0.35em; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.media-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
}
.media-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}
.prose {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
}
.prose p, .prose li { color: #3d2a32; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.tag-list li {
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--accent-dark);
  font-size: 0.88rem;
  border: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}
.gallery figcaption {
  padding: 0.7rem 0.8rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.step .num {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.mini-grid .media-frame { margin-bottom: 0; }

.page-hero {
  padding: 2rem 0 0.5rem;
}
.page-hero h1 { margin-bottom: 0.4em; }
.page-hero p { color: var(--muted); max-width: 46em; }

.legal {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.legal h2 { margin-top: 1.6rem; }
.legal h2:first-child { margin-top: 0; }

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-page .code {
  font-family: var(--display);
  font-size: clamp(3.5rem, 12vw, 6rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #2a1018;
  color: rgba(255,255,255,0.82);
  padding: 2.2rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer a { color: #ffb4c4; }
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.site-footer p, .site-footer li { color: rgba(255,255,255,0.72); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.copyright {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .card-grid, .gallery, .steps, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.4rem 0 0.6rem;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .card-grid, .gallery, .steps, .footer-grid, .mini-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 520px; }
  .feature-card img, .media-frame img, .gallery img {
    aspect-ratio: 3 / 4;
  }
}
