:root {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-soft: #fff1f2;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --bg: #fafaf9;
  --card: #ffffff;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }
ul, ol { padding-left: 1.2rem; }
h1, h2, h3, h4 { line-height: 1.35; color: var(--ink); }

.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body.has-ads #tx-ads-bar { display: block; }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand:hover { text-decoration: none; color: var(--brand); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brand); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle:hover { border-color: var(--brand); color: var(--brand); }
.menu-toggle .menu-icon {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}
.menu-toggle .menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.menu-toggle .menu-icon span:nth-child(1) { top: 0; }
.menu-toggle .menu-icon span:nth-child(2) { top: 6px; }
.menu-toggle .menu-icon span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, #fecdd3 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, #fda4af 0%, transparent 45%),
    linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%);
  padding: 3.5rem 0 2.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.55rem);
  margin-bottom: .9rem;
  letter-spacing: -.02em;
}
.hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  max-width: 36em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 29, 72, .25);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}
.hero-visual {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #fecdd3;
}
.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: #fff; }
.section-head {
  margin-bottom: 1.6rem;
  max-width: 48rem;
}
.section-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: .55rem;
}
.section-head p { color: var(--muted); }

.prose p { margin-bottom: 1rem; color: #292524; }
.prose h2, .prose h3 { margin: 1.6rem 0 .7rem; }
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.2rem; }
.prose ul, .prose ol { margin: 0 0 1rem; color: #292524; }
.prose li { margin-bottom: .35rem; }

/* Grids */
.feature-grid,
.shot-grid,
.cat-grid {
  display: grid;
  gap: 1.1rem;
}
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.shot-grid { grid-template-columns: repeat(4, 1fr); }
.cat-grid { grid-template-columns: repeat(3, 1fr); }

.feature-item,
.shot-item,
.cat-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(28, 25, 23, .04);
}
.feature-item img,
.shot-item img,
.cat-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #f5f5f4;
}
.feature-item .body,
.cat-item .body { padding: 1rem 1.05rem 1.15rem; }
.feature-item h3,
.cat-item h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.feature-item p,
.cat-item p {
  color: var(--muted);
  font-size: .95rem;
}
.shot-item figcaption {
  padding: .7rem .85rem .9rem;
  font-size: .9rem;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.media-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.media-block img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.step .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: .7rem;
}
.step h3 { font-size: 1rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .92rem; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .95rem 1.1rem;
  margin-bottom: .7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--brand); margin-bottom: .55rem; }
.faq p { color: var(--muted); }

.page-hero {
  background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%);
  padding: 2.4rem 0 1.6rem;
  border-bottom: 1px solid #fecdd3;
}
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.page-hero p { color: var(--muted); max-width: 40rem; }
.breadcrumb {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: .8rem;
}
.breadcrumb a { color: var(--muted); }
.content-wrap { padding: 2.2rem 0 3rem; }
.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 4px 16px rgba(28, 25, 23, .04);
}

.related {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.related h3 { margin-bottom: .7rem; font-size: 1.1rem; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.related a {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .9rem;
  text-decoration: none;
}
.related a:hover { background: #fecdd3; }

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-page .code {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: .6rem;
}
.error-page h1 { margin-bottom: .6rem; }
.error-page p { color: var(--muted); margin-bottom: 1.2rem; }

/* Footer */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 2.4rem 0 1.4rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .7rem;
}
.site-footer a { color: #d6d3d1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: .7rem;
  text-decoration: none;
}
.footer-brand img { width: 32px; height: 32px; border-radius: 7px; }
.footer-brand:hover { color: #fecdd3; text-decoration: none; }
.copyright {
  border-top: 1px solid #44403c;
  padding-top: 1rem;
  font-size: .88rem;
  color: #a8a29e;
  text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 64px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: .8rem 1rem 1rem;
    gap: .55rem;
  }
  .nav-links.open { display: flex; }
  .hero-grid,
  .two-col,
  .feature-grid,
  .cat-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.2rem 0 1.8rem; }
  .section { padding: 2.2rem 0; }
}

@media (max-width: 560px) {
  .shot-grid,
  .steps { grid-template-columns: 1fr; }
  .content-card { padding: 1.15rem 1rem; }
}
