:root {
  --bg: #12141a;
  --bg-elevated: #1a1e28;
  --bg-soft: #222833;
  --text: #f2efe8;
  --text-muted: #a8a295;
  --brand: #e85d4c;
  --brand-hot: #ff6b4a;
  --accent: #f0a35e;
  --line: rgba(242, 239, 232, 0.12);
  --max: 1120px;
  --radius: 14px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti 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(1200px 600px at 10% -10%, rgba(232, 93, 76, 0.22), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(240, 163, 94, 0.14), transparent 50%),
    linear-gradient(180deg, #0f1116 0%, var(--bg) 40%, #10131a 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--brand-hot);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(18, 20, 26, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(520px, 88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 14, 18, 0.92) 0%, rgba(12, 14, 18, 0.55) 48%, rgba(12, 14, 18, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 14, 18, 0.2) 0%, rgba(12, 14, 18, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 640px;
  animation: rise 0.9s ease both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-hot), var(--brand));
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(240, 163, 94, 0.45);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  line-height: 1.3;
  margin: 2rem 0 0.8rem;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.2rem;
  color: #f7d8b0;
}

.prose p,
.prose li {
  color: #ddd7cb;
}

.prose p {
  margin: 0 0 1rem;
  text-align: justify;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.lead {
  font-size: 1.08rem;
  color: #e7e0d4;
}

/* Feature / screenshot grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 93, 76, 0.35);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #000;
}

.feature-item .cap {
  padding: 0.9rem 1rem 1.1rem;
}

.feature-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.shot-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.shot-row.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.shot-row.reverse .shot-text {
  order: 1;
}

.shot-row.reverse .shot-media {
  order: 2;
}

.shot-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.shot-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.shot-text h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.shot-text p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li a,
.pill-list li span {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.03);
}

.pill-list li a:hover {
  color: var(--text);
  border-color: rgba(240, 163, 94, 0.4);
}

.vlog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.vlog-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.vlog-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.vlog-grid figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  gap: 2rem;
}

.toc a {
  color: #e8d7b8;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
}

.page-hero {
  padding: 2.8rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-card {
  background: rgba(26, 30, 40, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin: 0 0 0.5rem;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 1.4rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #0c0e13;
  padding: 2.4rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.site-footer p,
.site-footer a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: #7d776c;
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-item,
.shot-media,
.vlog-grid figure {
  animation: rise 0.7s ease both;
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vlog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-row,
  .shot-row.reverse {
    grid-template-columns: 1fr;
  }

  .shot-row.reverse .shot-text,
  .shot-row.reverse .shot-media {
    order: initial;
  }

  .shot-media img {
    max-height: 480px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0.75rem;
    background: rgba(18, 20, 26, 0.96);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .nav.open a {
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .nav.open a:last-child {
    border-bottom: none;
  }

  .nav-wrap {
    flex-wrap: nowrap;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding: 5.5rem 0 2.4rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-item img,
  .shot-media img {
    aspect-ratio: 9 / 14;
    max-height: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.6rem 0;
  }
}
