:root {
  --brand: #c41e3a;
  --brand-dark: #9a1830;
  --brand-soft: #fff0f3;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e8e0e2;
  --bg: #faf7f8;
  --card-bg: #ffffff;
  --max: 1120px;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(196, 30, 58, 0.08);
  --font-display: "ZCOOL XiaoWei", "STKaiti", "KaiTi", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #ffe4ea 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #ffeef2 0%, transparent 45%),
    linear-gradient(180deg, #fff8f9 0%, var(--bg) 40%, #f5f0f1 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.logo:hover {
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  padding: 48px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  color: var(--brand);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 16px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(196, 30, 58, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 10px;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-tag {
  display: inline-block;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.6s ease both;
}

.cat-item:nth-child(2) { animation-delay: 0.05s; }
.cat-item:nth-child(3) { animation-delay: 0.1s; }
.cat-item:nth-child(4) { animation-delay: 0.15s; }
.cat-item:nth-child(5) { animation-delay: 0.2s; }
.cat-item:nth-child(6) { animation-delay: 0.25s; }
.cat-item:nth-child(7) { animation-delay: 0.3s; }
.cat-item:nth-child(8) { animation-delay: 0.35s; }

.cat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.cat-item .body {
  padding: 14px 14px 16px;
}

.cat-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.cat-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-row.reverse .feature-text {
  order: 1;
}

.feature-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 12px;
}

.feature-text p {
  color: var(--muted);
  margin: 0 0 12px;
}

.feature-text ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.feature-text li {
  margin-bottom: 6px;
}

/* Shot gallery */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shot-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.shot-grid figure:hover img {
  transform: scale(1.04);
}

.shot-grid figcaption {
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Article / long content */
.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 1.8em 0 0.6em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-soft);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.4em 0 0.5em;
  color: var(--brand-dark);
}

.prose p {
  margin: 0 0 1em;
  color: #333;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
  color: #333;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-shot {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.inline-shot figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.inline-shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.inline-shot figcaption {
  padding: 8px 10px;
  font-size: 0.85rem;
  color: var(--muted);
  background: #fff;
}

.toc {
  background: var(--brand-soft);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 28px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  color: var(--ink);
}

.toc a:hover {
  color: var(--brand);
}

/* Page hero small */
.page-hero {
  padding: 36px 0 20px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 10px;
  color: var(--brand);
}

.page-hero p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* 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(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin: 0 0 12px;
}

.error-page h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.error-page p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Footer */
.site-footer {
  background: #1f1518;
  color: #d9cfd2;
  padding: 40px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.site-footer p,
.site-footer li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #b8adb1;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: #e8dde0;
}

.site-footer a:hover {
  color: #ff8fa3;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  font-size: 0.85rem;
  color: #8a7f83;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Related links */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.related a {
  display: block;
  background: var(--brand-soft);
  color: var(--ink);
  padding: 16px 18px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}

.related a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.related span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-text {
    order: unset;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .related {
    grid-template-columns: 1fr;
  }

  .prose {
    padding: 24px 18px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    gap: 4px;
  }

  .nav.open {
    display: flex;
    animation: fadeIn 0.2s ease;
  }

  .nav a {
    padding: 12px 14px;
  }

  .header-inner {
    position: relative;
  }

  .hero-visual img {
    aspect-ratio: 3 / 4;
    max-height: 420px;
  }

  .feature-media img {
    max-height: 480px;
  }
}

@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cat-item .body {
    padding: 10px;
  }

  .cat-item h3 {
    font-size: 0.95rem;
  }

  .cat-item p {
    font-size: 0.8rem;
  }

  .inline-shot {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 0 20px;
  }

  .section {
    padding: 36px 0;
  }
}


/* Ads sticky bar (loaded with ads.js; base spacing) */
body.has-ads .ads-sticky,
.ads-sticky {
  /* styles primarily injected by ads.js; keep header above ads */
}
.site-header {
  z-index: 100;
}