:root {
  --bg: #f7f3ef;
  --bg-alt: #efe8e1;
  --surface: #ffffff;
  --text: #1c1814;
  --muted: #5c534c;
  --accent: #b33a4a;
  --accent-dark: #8c2c39;
  --line: #ddd4cb;
  --max: 1100px;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(28, 24, 20, 0.08);
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", 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;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #f3d9d4 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #e8ddd2 0%, transparent 50%),
    var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#ads img {
  max-width: none;
  width: 65px;
  height: 65px;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 0.85rem;
  font-weight: 400;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 2.25rem 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(239, 232, 225, 0.65), transparent);
}

.section-head {
  margin-bottom: 1.35rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 0.45rem;
  font-weight: 400;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

/* Cards / grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(28, 24, 20, 0.04);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card .body {
  padding: 0.9rem 1rem 1.1rem;
}

.media-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.media-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cat-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cat-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cat-item span {
  display: block;
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  text-align: center;
}

.cat-item:hover span {
  color: var(--accent);
}

/* Article / long SEO text */
.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.35rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.35rem;
}

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.45rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-media {
  order: 1;
}

.feature-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.feature-text p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.vlog-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
}

.vlog-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Page hero for inner pages */
.page-hero {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--muted);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.error-page p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  background: #1c1814;
  color: #d9d0c7;
  padding: 2.25rem 0 1.5rem;
}

.site-footer a {
  color: #f0e6dc;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-grid h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: #fff;
  font-weight: 400;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #bdb3a8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #9a9086;
  text-align: center;
}

.keywords {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.keywords a {
  margin-right: 0.65rem;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: block;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: auto;
    z-index: 120;
    width: min(220px, calc(100vw - 2rem));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 0.65rem 0.85rem;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.55rem;
    padding: 0;
  }

  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-media {
    order: initial;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .vlog-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .vlog-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .prose {
    padding: 1.1rem 0.95rem;
  }
}
