:root {
  --rose: #e83a7a;
  --rose-deep: #c41e5c;
  --rose-soft: #fff0f5;
  --ink: #1a1216;
  --muted: #5c4a52;
  --line: #f0d6e0;
  --paper: #fffafb;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(232, 58, 122, 0.08);
  --radius: 16px;
  --max: 1120px;
  --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(1200px 600px at 10% -10%, #ffe4ef 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ffe8f2 0%, transparent 50%),
    linear-gradient(180deg, #fff7fa 0%, var(--paper) 40%, #fff 100%);
  line-height: 1.8;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rose);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 251, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--rose);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.9rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  background: linear-gradient(120deg, var(--rose-deep), #ff6b9d 55%, #ff8fb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.35;
  margin: 0 0 1rem;
  font-weight: 400;
  color: var(--ink);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 58, 122, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: var(--card);
  color: var(--rose-deep);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: float-in 0.9s ease both;
}

.hero-glow {
  position: absolute;
  inset: 12% 8% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(232, 58, 122, 0.22), transparent 70%);
  z-index: -1;
  filter: blur(10px);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 240, 245, 0.55), transparent);
  border-block: 1px solid rgba(240, 214, 224, 0.55);
}

.section-head {
  margin-bottom: 1.5rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin: 0 0 0.6rem;
  font-weight: 400;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose {
  color: var(--ink);
}

.prose p {
  margin: 0 0 1.05rem;
  text-align: justify;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 2rem 0 0.85rem;
}

.prose h2 {
  font-size: 1.65rem;
}

.prose h3 {
  font-size: 1.25rem;
  color: var(--rose-deep);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* Feature / media layouts */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
  margin: 1.75rem 0;
}

.media-block.reverse .media-copy {
  order: 2;
}

.media-block.reverse .media-img {
  order: 1;
}

.media-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.media-copy h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.7rem;
  font-weight: 400;
}

.media-copy p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.shot-grid figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.shot-grid figure:hover {
  transform: translateY(-4px);
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-grid figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  background: var(--rose-soft);
  color: var(--rose-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
}

.note-box {
  background: linear-gradient(135deg, #fff5f8, #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.note-box h3 {
  margin-top: 0;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.related-links a {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
}

.related-links a:hover {
  border-color: #f3a8c2;
  color: var(--rose);
  box-shadow: var(--shadow);
}

.related-links span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

/* Inner pages */
.page-hero {
  padding: 2.5rem 0 1.25rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.6rem;
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.content-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, var(--rose), #ff8fb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0.5rem 0;
}

.error-page p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #1a1216;
  color: #f7e9ee;
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.site-footer h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.site-footer p,
.site-footer a {
  color: #d8c2cb;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #a8909a;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

/* Animations */
@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: float-in 0.7s ease both;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .media-block,
  .media-block.reverse,
  .footer-grid,
  .related-links {
    grid-template-columns: 1fr;
  }

  .media-block.reverse .media-copy,
  .media-block.reverse .media-img {
    order: initial;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 2;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% - 0.15rem);
    left: 0;
    right: 0;
    z-index: 120;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.55rem 0.85rem 0.75rem;
    background: rgba(255, 250, 251, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hero {
    padding-top: 2rem;
  }

  .prose p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid img {
    aspect-ratio: 3 / 4;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
