:root {
  --brand: #e85a2a;
  --brand-deep: #c43d18;
  --brand-soft: #ff8a5c;
  --ink: #1a1512;
  --muted: #5c534c;
  --line: #e8ddd4;
  --bg: #fff8f3;
  --bg-alt: #fff1e8;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(196, 61, 24, 0.08);
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 138, 92, 0.22), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(232, 90, 42, 0.12), transparent 50%),
    linear-gradient(180deg, #fffaf6 0%, var(--bg) 40%, #fff 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 246, 0.9);
  border-bottom: 1px solid rgba(232, 90, 42, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand-deep);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-deep);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  line-height: 0;
}

.menu-toggle svg {
  width: 34px;
  height: 34px;
  display: block;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero-copy .lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand) 45%, var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 90, 42, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--brand-deep);
  border: 1px solid rgba(232, 90, 42, 0.25);
}

.btn-ghost:hover {
  color: var(--brand-deep);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 520px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 42%;
  height: 42%;
  background: radial-gradient(circle, rgba(255, 138, 92, 0.35), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 241, 232, 0.65), transparent);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: 0 0 0.6rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature,
.shot,
.article-card {
  background: var(--card);
  border: 1px solid rgba(232, 90, 42, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26, 21, 18, 0.04);
}

.feature {
  padding: 1.35rem;
}

.feature img,
.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #1a1512;
}

.shot.landscape img,
.feature.landscape img {
  aspect-ratio: 16 / 10;
  object-position: center top;
}

.shot figcaption,
.feature h3 {
  margin: 0;
  padding: 0.9rem 1rem 0.35rem;
  font-size: 1.02rem;
}

.shot p,
.feature p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature h3 {
  padding: 0.2rem 0 0.4rem;
}

.feature .thumb {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.feature .thumb img {
  aspect-ratio: 16 / 10;
}

/* SEO article */
.seo-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}

.seo-article h2,
.seo-article h3 {
  font-family: var(--display);
  scroll-margin-top: 5rem;
}

.seo-article h2 {
  font-size: 1.7rem;
  margin-top: 0;
}

.seo-article h3 {
  font-size: 1.25rem;
  margin-top: 1.8rem;
}

.seo-article p {
  color: #2d2621;
  margin: 0.9rem 0;
}

.seo-article ul,
.seo-article ol {
  color: #2d2621;
  padding-left: 1.25rem;
}

.seo-article li {
  margin: 0.4rem 0;
}

.toc {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1.25rem 0 1.75rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc a {
  display: inline-block;
  margin-right: 0.85rem;
  margin-bottom: 0.35rem;
}

/* Page hero for inner pages */
.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 0.6rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 3rem;
}

.prose h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-top: 1.8rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #2d2621;
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-wrap h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-wrap p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #1a1512;
  color: #f4ebe4;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer a {
  color: #ffc9ad;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.4rem 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #b8a99d;
  font-size: 0.9rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .footer-grid,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
  }

  .nav a:hover {
    background: var(--bg-alt);
    text-decoration: none;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid,
  .footer-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    max-height: 420px;
  }
}
