:root {
  --brand: #e31c79;
  --brand-2: #ff7a1a;
  --ink: #1a1520;
  --muted: #5c5366;
  --line: #eadfe8;
  --bg: #fff8fb;
  --surface: #ffffff;
  --soft: #fff0f6;
  --ok: #0f8a5f;
  --radius: 14px;
  --shadow: 0 12px 36px rgba(40, 12, 28, 0.08);
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(255, 122, 26, 0.16), transparent 60%),
    radial-gradient(800px 380px at 92% 0%, rgba(227, 28, 121, 0.12), transparent 55%),
    linear-gradient(180deg, #fffafc 0%, var(--bg) 45%, #fff 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 250, 252, 0.9);
  border-bottom: 1px solid rgba(234, 223, 232, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  text-decoration: none;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.25;
  margin: 0.35rem 0 1rem;
  background: linear-gradient(115deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-kicker {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  box-shadow: 0 10px 24px rgba(227, 28, 121, 0.25);
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
  background: #1a1520;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.section {
  padding: 2.6rem 0;
}

.section-head {
  margin-bottom: 1.3rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 0.45rem;
}

.section-head p {
  color: var(--muted);
  max-width: 52rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.rich-text p,
.article p {
  margin-bottom: 1rem;
  color: #2b2432;
}

.rich-text h2,
.article h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 1.6rem 0 0.7rem;
}

.rich-text h3,
.article h3 {
  font-size: 1.15rem;
  margin: 1.3rem 0 0.55rem;
}

.rich-text ul,
.article ul {
  margin: 0 0 1rem 1.2rem;
  color: #2b2432;
}

.rich-text li,
.article li {
  margin-bottom: 0.4rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f3e8ef;
}

.feature-body {
  padding: 0.9rem 1rem 1.1rem;
}

.feature-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.feature-body p {
  color: var(--muted);
  font-size: 0.92rem;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.vlog-grid .feature img {
  aspect-ratio: 9 / 16;
}

.cta-band {
  margin: 1rem 0 2rem;
  border-radius: 20px;
  padding: 1.6rem;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(255, 122, 26, 0.95), rgba(227, 28, 121, 0.95)),
    url("/p.jpg") center/cover;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.cta-band p {
  max-width: 40rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.95);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.4rem;
}

.toc a {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
}

.toc a:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.faq details {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.2rem 0 0.8rem;
}

.breadcrumb a {
  color: var(--muted);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 2rem 0 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.copyright {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #8a7f92;
  font-size: 0.85rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  background: linear-gradient(115deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.reveal {
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual,
  .hero-visual img {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .menu-btn {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .grid-4,
  .vlog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 1.6rem;
  }
}

@media (max-width: 420px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.site-header { z-index: 50; }
body.has-ads { --ads-offset: 68px; }