:root {
  --bg: #0b0b0d;
  --bg-2: #141418;
  --bg-3: #1c1c22;
  --surface: #1a1a20;
  --text: #f2f2f4;
  --text-muted: #a0a0ab;
  --accent: #e6333f;
  --accent-hover: #ff4d57;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --max: 1180px;
  --font-display: "ZCOOL XiaoWei", "PingFang SC", "Microsoft YaHei", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  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: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo:hover {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.25) 0%, rgba(11, 11, 13, 0.75) 55%, var(--bg) 100%),
    linear-gradient(120deg, rgba(230, 51, 63, 0.18), transparent 45%),
    url("/home-featured.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1.1;
  margin-bottom: 0.85rem;
  color: #fff;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background:
    radial-gradient(ellipse at top, rgba(230, 51, 63, 0.08), transparent 55%),
    var(--bg-2);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 720px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.section-head p {
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  min-height: 180px;
}

.cat-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.cat-card:hover img {
  transform: scale(1.04);
}

.cat-card figcaption {
  padding: 0.85rem 1rem 1rem;
}

.cat-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.cat-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.feature-row:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-row:nth-child(even) .feature-media {
  order: -1;
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
}

.feature-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
}

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

.feature-copy p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.feature-copy ul {
  margin: 0.75rem 0 1rem;
}

.feature-copy li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Vlog gallery */
.vlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.vlog-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
}

.vlog-item img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: center top;
}

.vlog-item span {
  display: block;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* SEO article */
.seo-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.seo-article h2,
.seo-article h3 {
  font-family: var(--font-display);
  margin: 1.6rem 0 0.7rem;
  line-height: 1.3;
}

.seo-article h2:first-child {
  margin-top: 0;
}

.seo-article h2 {
  font-size: 1.55rem;
}

.seo-article h3 {
  font-size: 1.2rem;
}

.seo-article p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: justify;
}

.seo-article strong {
  color: var(--text);
  font-weight: 600;
}

.seo-article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1.2rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--bg-2);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.toc a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

/* Benefit list */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.benefit {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.benefit h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.benefit p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 3.2rem 0 1.5rem;
  background:
    linear-gradient(135deg, rgba(230, 51, 63, 0.12), transparent 50%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.55rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 42em;
}

.legal-content {
  padding: 2.5rem 0 4rem;
}

.legal-content .seo-article h2 {
  font-size: 1.3rem;
}

.legal-content .seo-article p,
.legal-content .seo-article li {
  color: var(--text-muted);
}

.legal-content .seo-article ol,
.legal-content .seo-article ul {
  margin: 0 0 1rem 1.2rem;
}

.legal-content .seo-article li {
  margin-bottom: 0.45rem;
  list-style: disc;
}

.legal-content .seo-article ol li {
  list-style: decimal;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.error-page h2 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080a;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid h4 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-grid ul li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  margin: 0 0.35rem;
}

.guide-shots {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.guide-shots img {
  border-radius: 12px;
  border: 1px solid var(--line);
  max-height: 280px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.shot {
  border-radius: 8px;
  margin-bottom: 0.8rem;
  max-height: 160px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: rise 0.8s ease both;
  }

  .cat-card,
  .benefit,
  .vlog-item {
    animation: fade-up 0.7s ease both;
  }

  .cat-card:nth-child(2),
  .benefit:nth-child(2),
  .vlog-item:nth-child(2) { animation-delay: 0.05s; }
  .cat-card:nth-child(3),
  .benefit:nth-child(3),
  .vlog-item:nth-child(3) { animation-delay: 0.1s; }
  .cat-card:nth-child(4),
  .benefit:nth-child(4),
  .vlog-item:nth-child(4) { animation-delay: 0.15s; }
  .cat-card:nth-child(5),
  .vlog-item:nth-child(5) { animation-delay: 0.2s; }
  .cat-card:nth-child(6),
  .vlog-item:nth-child(6) { animation-delay: 0.25s; }
  .cat-card:nth-child(7),
  .vlog-item:nth-child(7) { animation-delay: 0.3s; }
  .cat-card:nth-child(8),
  .vlog-item:nth-child(8) { animation-delay: 0.35s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 980px) {
  .cat-grid,
  .vlog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-row,
  .feature-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .feature-media {
    order: 0;
  }

  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .guide-shots {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(14, 14, 18, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: 72vh;
    background-position: top center;
  }

  .hero-content {
    padding: 3.2rem 0 2.4rem;
  }

  .toc {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .feature-media img {
    max-height: 420px;
  }
}

@media (max-width: 480px) {
  .cat-grid,
  .vlog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .cat-card img {
    height: 140px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}
