:root {
  --brand: #e83a7a;
  --brand-dark: #c41f5e;
  --brand-soft: #fff0f5;
  --ink: #1a1216;
  --muted: #5c4a52;
  --line: #f0d6e0;
  --bg: #fff8fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(232, 58, 122, 0.08);
  --max: 1080px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #ffe0ec 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #ffd6e8 0%, transparent 45%),
    linear-gradient(180deg, #fffafc 0%, var(--bg) 40%, #fff5f9 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 250, 252, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 2px;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 48px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ink);
}

.hero-copy .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #ff6b9d 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 58, 122, 0.28);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 24px rgba(232, 58, 122, 0.35);
}

.btn-ghost {
  background: var(--card);
  color: var(--brand-dark);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -12px -12px auto;
  width: 42%;
  height: 42%;
  background: radial-gradient(circle, rgba(232, 58, 122, 0.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 42px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 10px;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 48em;
}

.prose p {
  margin: 0 0 1em;
  color: var(--ink);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.6em 0 0.6em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.4em;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* Media layouts */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.media-row.reverse .media-text {
  order: 2;
}

.media-row.reverse .media-fig {
  order: 1;
}

.media-fig {
  margin: 0;
}

.media-fig img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}

.media-fig figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--brand-soft);
}

.feature-item .body {
  padding: 14px 16px 18px;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.shot-grid figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-grid figcaption {
  padding: 8px 10px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.tip-box {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 18px;
}

.tip-box h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.tip-box p,
.tip-box li {
  color: var(--muted);
}

.tip-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.link-chips a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 0.9rem;
  text-decoration: none;
}

.link-chips a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* Inner pages */
.page-hero {
  padding: 36px 0 10px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 0 0 10px;
}

.page-hero .meta {
  color: var(--muted);
  margin: 0;
}

.content-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  margin: 18px 0 48px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6rem);
  color: var(--brand);
  line-height: 1;
  margin: 0 0 8px;
}

.error-page h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.error-page p {
  color: var(--muted);
  max-width: 28em;
  margin: 0 auto 22px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #1a1216;
  color: #f5e8ee;
  padding: 36px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 12px;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: #d4b8c4;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #ff8fb8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #a88a96;
  text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .media-row,
  .media-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .media-row.reverse .media-text,
  .media-row.reverse .media-fig {
    order: initial;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: rgba(255, 250, 252, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(26, 18, 22, 0.12);
    z-index: 60;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav a:hover,
  .nav a.active {
    background: var(--brand-soft);
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding-top: 28px;
  }

  .content-panel {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}
