/* 重口社官方网站 zkapp.beauty */
:root {
  --bg: #0c0c0e;
  --bg-soft: #141418;
  --bg-card: #1a1a20;
  --text: #e8e6e3;
  --text-muted: #9a9690;
  --accent: #c41e3a;
  --accent-soft: #8b1528;
  --line: #2a2a32;
  --ok: #3ecf8e;
  --radius: 10px;
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #e8455a;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--bg-card);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--accent-soft) !important;
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196, 30, 58, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(62, 207, 142, 0.06), transparent 50%),
    linear-gradient(180deg, #0c0c0e 0%, #121218 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  padding: 48px 0 64px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  animation: rise 0.7s ease both;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(196, 30, 58, 0.35);
}

.hero-brand span {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 16px;
  animation: rise 0.7s 0.1s ease both;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34em;
  margin-bottom: 28px;
  animation: rise 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.7s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
}

.btn-primary:hover {
  background: #d42842;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.hero-visual {
  position: relative;
  animation: float-in 0.9s 0.2s ease both;
}

.hero-visual img {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.age-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  animation: rise 0.7s 0.4s ease both;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 36px;
  max-width: 40em;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.section-head p {
  color: var(--text-muted);
}

.section-body {
  color: var(--text-muted);
}

.section-body p {
  margin-bottom: 1.1em;
}

.section-body h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin: 1.6em 0 0.6em;
}

.section-body ul,
.section-body ol {
  margin: 0.8em 0 1.2em 1.4em;
}

.section-body li {
  margin-bottom: 0.45em;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature:hover {
  border-color: rgba(196, 30, 58, 0.45);
  transform: translateY(-2px);
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.feature p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.feature .num {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

/* Shot grids */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shot-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot figcaption {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.shot figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
  font-weight: 600;
}

/* Two col */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

.split.flip .split-media {
  order: 2;
}

/* FAQ */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 64px 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(196, 30, 58, 0.2), transparent 70%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
}

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Page hero (inner) */
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 80% at 10% 0%, rgba(196, 30, 58, 0.12), transparent 55%),
    var(--bg);
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.prose {
  padding: 48px 0 72px;
  max-width: 760px;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 1.8em 0 0.6em;
  font-family: var(--display);
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.4em 0 0.5em;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 0.9em;
}

.prose ul,
.prose ol {
  margin: 0.6em 0 1.2em 1.4em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Footer */
.site-footer {
  background: #08080a;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid h4 {
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-cloud a {
  font-size: 0.8rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
}

.tag-cloud a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* TOC */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc ol {
  margin-left: 1.2em;
  color: var(--text-muted);
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(12, 12, 14, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 14px;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero-grid,
  .split,
  .split.flip .split-media {
    grid-template-columns: 1fr;
  }

  .split.flip .split-media {
    order: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 36px 0 48px;
    gap: 32px;
  }

  .hero-visual img {
    max-width: 260px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid,
  .shot-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 52px 0;
  }
}

@media (max-width: 520px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .shot-grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand span {
    font-size: 1.6rem;
  }
}
