:root {
  --pink: #ff2d78;
  --pink-dark: #e01860;
  --orange: #ff7a18;
  --yellow: #ffc53d;
  --grad: linear-gradient(135deg, #ffc53d 0%, #ff7a18 45%, #ff2d78 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,197,61,.15), rgba(255,45,120,.12));
  --bg: #0f0f14;
  --bg-2: #17171f;
  --bg-3: #1f1f2a;
  --card: #1a1a24;
  --text: #f5f5f7;
  --muted: #a8a8b8;
  --line: rgba(255,255,255,.08);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --max: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { 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: #ff8fb3; text-decoration: none; transition: color .2s; }
a:hover { color: #ffd0df; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin: 1.75rem 0 .9rem; }
h3 { font-size: 1.15rem; margin: 1.35rem 0 .7rem; }
p { margin: 0 0 1rem; color: #d8d8e2; }
.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,20,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(255,45,120,.35);
}
.brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  align-items: center;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  font-size: .95rem;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a.active {
  color: #fff;
  border-bottom-color: var(--pink);
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
}
.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 2.4rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255,197,61,.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(255,45,120,.2), transparent 50%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(255,45,120,.15);
  color: #ffb3cb;
  font-size: .85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,45,120,.3);
}
.hero h1 { margin-bottom: .9rem; }
.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #1a0a10;
  box-shadow: 0 8px 24px rgba(255,45,120,.35);
}
.btn-primary:hover { color: #1a0a10; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-ghost:hover { color: #fff; border-color: var(--pink); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
  color: var(--muted);
  font-size: .9rem;
}
.hero-meta strong { color: #fff; }
.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--card);
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  max-height: 520px;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(15,15,20,.85));
  pointer-events: none;
}

/* Sections */
.section { padding: 2.8rem 0; }
.section.alt { background: var(--bg-2); }
.section-head {
  margin-bottom: 1.5rem;
  max-width: 48rem;
}
.section-head .eyebrow {
  color: var(--orange);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .35rem;
}
.section-head p { margin-bottom: 0; color: var(--muted); }

.feature-grid,
.shot-grid,
.cat-grid,
.card-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); }
.card-grid { grid-template-columns: repeat(2, 1fr); }

.feature-card,
.content-card,
.cat-card,
.shot-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover,
.cat-card:hover,
.shot-card:hover {
  border-color: rgba(255,45,120,.4);
  transform: translateY(-3px);
}
.feature-card { padding: 1.25rem; }
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  display: grid;
  place-items: center;
  margin-bottom: .85rem;
  font-size: 1.25rem;
}
.feature-card h3 { margin-top: 0; }
.feature-card p:last-child { margin-bottom: 0; }

.shot-card img,
.cat-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  background: var(--bg-3);
}
.shot-card figcaption,
.cat-card .cat-body {
  padding: .85rem 1rem 1rem;
}
.shot-card figcaption {
  font-size: .9rem;
  color: var(--muted);
}
.shot-card strong,
.cat-card h3 {
  display: block;
  color: #fff;
  margin-bottom: .25rem;
  font-size: 1rem;
}
.cat-card .cat-body p { font-size: .92rem; margin-bottom: .5rem; }
.cat-card .more {
  font-size: .88rem;
  font-weight: 700;
  color: var(--pink);
}

.content-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.2rem;
}
.content-block:last-child { margin-bottom: 0; }
.content-block h2:first-child,
.content-block h3:first-child { margin-top: 0; }
.prose li { margin: .35rem 0; color: #d8d8e2; }
.prose strong { color: #fff; }
.toc {
  background: var(--grad-soft);
  border: 1px solid rgba(255,122,24,.25);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
}
.toc h2 { margin-top: 0; font-size: 1.15rem; }
.toc ol { margin: .4rem 0 0; columns: 2; gap: 2rem; }
.toc a { color: #ffc4d6; }
.keyword-box {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}
.keyword-box span {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  font-size: .85rem;
  color: #ffd0df;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}
.split img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .95rem 1.1rem;
  margin-bottom: .7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: #ffb3cb; margin-bottom: .55rem; }
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.internal-links a {
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(255,45,120,.12);
  border: 1px solid rgba(255,45,120,.28);
  color: #ffc4d6;
  font-size: .9rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.4rem 0 1.6rem;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(255,45,120,.16), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .6rem; }
.breadcrumb {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .8rem;
}
.breadcrumb a { color: #ff8fb3; }
.article {
  padding: 2rem 0 3rem;
}
.article .content-block h2 { scroll-margin-top: 80px; }

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: .6rem;
}
.error-page h1 { margin-bottom: .8rem; }
.error-page p { max-width: 28rem; margin: 0 auto 1.4rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0b0b10;
  padding: 2.2rem 0 1.4rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-brand {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.footer-brand h3 {
  margin: 0 0 .35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-brand p { font-size: .9rem; margin: 0; color: var(--muted); }
.footer-col h4 {
  margin: 0 0 .7rem;
  font-size: .95rem;
  color: #fff;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  margin: .35rem 0;
}
.footer-col a:hover { color: #ffc4d6; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  justify-content: space-between;
  color: #777788;
  font-size: .85rem;
}
.footer-bottom a { color: #9999aa; }

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid,
  .card-grid { grid-template-columns: 1fr; }
  .feature-grid,
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .hero-visual img { max-height: 440px; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .header-inner {
    flex-wrap: nowrap;
    position: relative;
  }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .35rem .75rem .55rem;
    background: rgba(15,15,20,.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.45);
    z-index: 120;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: .75rem .35rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: none; }
  .feature-grid,
  .cat-grid,
  .shot-grid { grid-template-columns: 1fr; }
  .section { padding: 2rem 0; }
  .content-block { padding: 1.15rem 1.1rem; }
  .hero { padding: 2rem 0 1.5rem; }
}
