:root {
  --bg: #0c0b10;
  --bg-elev: #15131c;
  --bg-card: #1c1926;
  --bg-soft: #221f2e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f0f8;
  --muted: #a89bb8;
  --accent: #ff3d7a;
  --accent-2: #ff8a3d;
  --accent-3: #c44dff;
  --grad: linear-gradient(135deg, #ff8a3d 0%, #ff3d7a 48%, #c44dff 100%);
  --grad-soft: linear-gradient(160deg, rgba(255, 61, 122, 0.18), rgba(196, 77, 255, 0.12));
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 61, 122, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(196, 77, 255, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 138, 61, 0.08), transparent 55%),
    var(--bg);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff8fb3;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(12, 11, 16, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(255, 61, 122, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255, 61, 122, 0.15);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 36px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 61, 122, 0.12);
  border: 1px solid rgba(255, 61, 122, 0.28);
  color: #ffb0c8;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 61, 122, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: #fff;
  display: block;
  font-size: 1.15rem;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background: var(--grad-soft);
  filter: blur(24px);
  z-index: 0;
  border-radius: 40%;
}

.hero-shot {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
  max-height: 520px;
  margin-inline: auto;
  background: #000;
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Sections */
section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46em;
}

.section-alt {
  background: rgba(255, 255, 255, 0.015);
  border-block: 1px solid var(--line);
}

/* Cards / grids */
.feature-grid,
.cat-grid,
.guide-grid,
.shot-grid,
.faq-list {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.guide-card,
.faq-item,
.content-card,
.legal-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card h3,
.guide-card h3,
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.feature-card p,
.guide-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad);
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.cat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 61, 122, 0.45);
}

.cat-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top center;
}

.cat-card .cat-body {
  padding: 14px 14px 16px;
}

.cat-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.cat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.shot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.shot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 9 / 16;
}

.shot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.guide-grid {
  grid-template-columns: repeat(2, 1fr);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 8px;
}

.prose {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
}

.prose h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 1.6em 0 0.7em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.18rem;
  margin: 1.4em 0 0.55em;
}

.prose p {
  color: #d7cfe2;
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  color: #d7cfe2;
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin: 0 0 28px;
  padding: 18px;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.toc a {
  color: #ffb0c8;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: center;
  margin: 28px 0;
}

.media-row.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.media-row figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.media-row img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
}

.media-row figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-elev);
}

.faq-list {
  grid-template-columns: 1fr 1fr;
}

.cta-band {
  margin: 20px 0 40px;
  padding: 34px;
  border-radius: 18px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 61, 122, 0.25);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--display);
  margin: 0 0 10px;
}

.cta-band p {
  margin: 0 0 18px;
  color: var(--muted);
}

.page-hero {
  padding: 42px 0 18px;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 12px;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42em;
}

.breadcrumb {
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #0a090e;
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--muted);
}

.footer-grid p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.age-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 61, 0.45);
  color: #ffb784;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.error-page h1 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 22px;
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-visual,
.feature-card,
.cat-card {
  animation: rise 0.55s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

.feature-card:nth-child(2),
.cat-card:nth-child(2) {
  animation-delay: 0.08s;
}

.feature-card:nth-child(3),
.cat-card:nth-child(3) {
  animation-delay: 0.14s;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .media-row,
  .media-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-shot {
    max-height: 440px;
    width: min(100%, 320px);
  }

  .feature-grid,
  .guide-grid,
  .faq-list,
  .toc {
    grid-template-columns: 1fr;
  }

  .cat-grid,
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: #17151f;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding-top: 28px;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Sticky ads bar (below header) */
.ads-sticky {
  position: sticky;
  top: 68px;
  z-index: 45;
  background: rgba(12, 11, 16, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 6px;
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 2px;
  background: transparent;
  margin: 0;
}
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}
#ads figure {
  margin: 0;
}
#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: #fff;
}
#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}
#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(255, 61, 122, 0.28);
}
#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #c9bdd8;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .ads-sticky {
    top: 68px;
  }
}
