:root {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-soft: #fff1f2;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --bg: #fafaf9;
  --card: #ffffff;
  --max: 1100px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(28, 25, 23, 0.08);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", 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(1200px 500px at 10% -10%, #ffe4e6 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #fecdd3 0%, transparent 45%),
    linear-gradient(180deg, #fff 0%, var(--bg) 40%, #fff 100%);
  line-height: 1.8;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  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);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-brand span {
  color: var(--brand);
}

.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise 0.8s ease both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 46em;
}

.section-alt {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Cards / grids */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cat-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadein 0.7s ease both;
}

.cat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cat-item .body {
  padding: 14px 16px 18px;
}

.cat-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cat-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.feature img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.feature h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.shot-row figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.shot-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.shot-row figure:hover img {
  transform: scale(1.04);
}

.shot-row figcaption {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Article / SEO content */
.prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 1.6em 0 0.6em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.2em 0 0.5em;
}

.prose p {
  margin-bottom: 1em;
  color: #292524;
}

.prose ul,
.prose ol {
  margin: 0 0 1em 1.2em;
  color: #292524;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose .toc {
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 1.4em;
}

.prose .toc h2 {
  margin: 0 0 8px;
  border: none;
  padding: 0;
  font-size: 1.2rem;
}

.prose .toc ol {
  margin-bottom: 0;
}

.inline-shot {
  float: right;
  width: min(280px, 42%);
  margin: 0 0 16px 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.inline-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.inline-shot figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 10px;
  background: #fff;
}

.clearfix {
  clear: both;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.related a {
  display: block;
  padding: 14px 16px;
  background: var(--brand-soft);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.related a:hover {
  background: #fecdd3;
}

/* Page hero for inner pages */
.page-hero {
  padding: 40px 0 20px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-wrap h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 12px;
}

.error-wrap p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 6px;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .cat-grid,
  .shot-row,
  .related,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .feature img {
    width: 100%;
    height: 160px;
  }

  .inline-shot {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 16px;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hero-grid,
  .cat-grid,
  .shot-row,
  .related,
  .footer-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .section {
    padding: 36px 0;
  }
}
