:root {
  --bg: #0f0a0c;
  --bg-soft: #1a1115;
  --bg-card: #22161b;
  --text: #f7eef1;
  --text-muted: #c4a8b2;
  --brand: #ff4d7a;
  --brand-deep: #e01e55;
  --brand-soft: rgba(255, 77, 122, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --ok: #3dd68c;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "PingFang SC", "Microsoft YaHei", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 77, 122, 0.22), transparent 60%),
    radial-gradient(700px 380px at 90% 8%, rgba(255, 140, 90, 0.12), transparent 55%),
    linear-gradient(180deg, #140b10 0%, var(--bg) 40%, #120910 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: #ff7a9c;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(15, 10, 12, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand span {
  font-family: var(--display);
  font-size: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--brand-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(255, 77, 122, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.4rem;
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 77, 122, 0.45);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-meta strong {
  color: var(--ok);
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-float {
  position: absolute;
  left: -0.8rem;
  bottom: 1.2rem;
  width: min(42%, 190px);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: floaty 4.5s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.section {
  padding: 2.6rem 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  margin: 0 0 0.55rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 46rem;
}

.prose {
  color: var(--text-muted);
}

.prose h2,
.prose h3 {
  color: var(--text);
  font-family: var(--display);
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.4rem;
  font-size: 1.15rem;
}

.prose p {
  margin: 0.85rem 0;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.4rem 0;
}

.feature-grid,
.cat-grid,
.shot-grid,
.card-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cat-item {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 122, 0.4);
}

.cat-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.cat-item figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  font-size: 0.92rem;
  color: var(--text);
}

.shot-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid article {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot-grid .shot-body {
  padding: 0.9rem 1rem 1.05rem;
}

.shot-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.shot-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.media-block {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.media-block img {
  width: 100%;
}

.media-block .caption {
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  list-style: none;
  position: relative;
  padding: 1rem 1rem 1rem 3.2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq p {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.internal-links a {
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
}

.internal-links a:hover {
  color: var(--text);
  border-color: rgba(255, 77, 122, 0.4);
}

.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 0.6rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.content-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  margin-bottom: 2.5rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 2rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer a {
  display: block;
  margin: 0.35rem 0;
}

.site-footer a:hover {
  color: var(--brand);
}

.copyright {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  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(--display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin: 0 0 0.6rem;
  color: var(--brand);
}

.error-page p {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 1.3rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .cat-grid,
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-float {
    left: 0.6rem;
    bottom: 0.8rem;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(20, 12, 16, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.55rem;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.9rem;
  }

  .feature-grid,
  .cat-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* Sticky ads bar below header */
.ads-bar {
  position: sticky;
  top: 68px;
  z-index: 90;
  backdrop-filter: blur(14px);
  background: rgba(15, 10, 12, 0.9);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0 0.35rem;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  background: transparent;
  margin: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #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(0, 0, 0, 0.35);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.25rem;
}

@media (max-width: 720px) {
  .ads-bar {
    top: 68px;
  }
}
