:root {
  --brand-orange: #ff7a18;
  --brand-pink: #e0186e;
  --brand-deep: #9b1050;
  --ink: #1a1520;
  --muted: #5c5362;
  --line: #ebe4ef;
  --paper: #fffafc;
  --surface: #ffffff;
  --grad: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  --shadow: 0 12px 40px rgba(224, 24, 110, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", 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(ellipse 80% 50% at 10% -10%, rgba(255, 122, 24, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(224, 24, 110, 0.1), transparent 50%),
    linear-gradient(180deg, #fff7fa 0%, var(--paper) 18%, #f7f2f5 100%);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-pink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-orange);
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 252, 0.88);
  border-bottom: 1px solid rgba(224, 24, 110, 0.08);
}

/* Sticky ads bar sits under header via ads.js (#tx-ads-wrap) */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(224, 24, 110, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(224, 24, 110, 0.36);
  color: #fff !important;
}

.btn-outline {
  background: transparent;
  color: var(--brand-pink) !important;
  border: 1.5px solid rgba(224, 24, 110, 0.35);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(224, 24, 110, 0.06);
  color: var(--brand-deep) !important;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  animation: rise 0.7s ease both;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
  animation: rise 0.7s ease 0.08s both;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 36em;
  animation: rise 0.7s ease 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.7s ease 0.24s both;
}

.hero-visual {
  position: relative;
  animation: float-in 0.9s ease 0.1s both;
}

.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-glow {
  position: absolute;
  inset: 12% -8% -8% 12%;
  background: var(--grad);
  filter: blur(40px);
  opacity: 0.28;
  z-index: -1;
  border-radius: 40%;
}

/* Sections */
.section {
  padding: 52px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(224, 24, 110, 0.06);
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin-bottom: 10px;
  line-height: 1.35;
}

.section-head p {
  color: var(--muted);
}

.prose {
  max-width: 52em;
}

.prose p {
  margin-bottom: 1.1em;
  color: #2c2433;
}

.prose h2,
.prose h3 {
  margin: 1.6em 0 0.7em;
  line-height: 1.35;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.15rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em 1.2em;
  color: #2c2433;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: var(--ink);
}

/* Feature / category grids */
.grid-3,
.grid-4,
.shot-grid,
.cat-grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.shot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-item,
.cat-item,
.shot-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover,
.cat-item:hover,
.shot-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item img,
.cat-item img,
.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #f3eef2;
}

.cat-item img,
.shot-item img {
  aspect-ratio: 3 / 4;
}

.feature-body,
.cat-body,
.shot-body {
  padding: 14px 16px 18px;
}

.feature-body h3,
.cat-body h3,
.shot-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature-body p,
.cat-body p,
.shot-body p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Split content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--brand-deep);
  margin-bottom: 8px;
}

.faq details p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page hero for inner pages */
.page-hero {
  padding: 36px 0 8px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 40em;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: var(--muted);
}

.content-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin: 24px 0 48px;
  box-shadow: 0 4px 20px rgba(26, 21, 32, 0.03);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  margin-bottom: 10px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  background: #1b1218;
  color: rgba(255, 255, 255, 0.78);
  padding: 42px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #ffb36a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag-list a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(224, 24, 110, 0.08);
  color: var(--brand-deep);
  font-size: 0.88rem;
}

.cta-banner {
  background: var(--grad);
  border-radius: 20px;
  padding: 36px 28px;
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(224, 24, 110, 0.25);
}

.cta-banner h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.cta-banner p {
  opacity: 0.92;
  margin-bottom: 18px;
}

.cta-banner .btn {
  background: #fff;
  color: var(--brand-deep) !important;
  box-shadow: none;
}

.related-links {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related-links h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.related-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
}

@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 (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid,
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .grid-4,
  .cat-grid,
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .hero {
    padding-top: 28px;
  }

  .section {
    padding: 40px 0;
  }

  .content-box {
    padding: 20px 16px;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .cat-grid,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
