:root {
  --bg: #f6f3ef;
  --bg-soft: #fffaf6;
  --ink: #1c1a17;
  --muted: #5c574f;
  --line: #e4ddd3;
  --brand: #c62828;
  --brand-deep: #8e1b1b;
  --accent: #0f766e;
  --accent-soft: #d7f0ec;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(28, 26, 23, 0.1);
  --radius: 18px;
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti 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 500px at 10% -10%, rgba(198, 40, 40, 0.08), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(15, 118, 110, 0.1), transparent 50%),
    linear-gradient(180deg, #faf7f2 0%, var(--bg) 40%, #f3eee7 100%);
  line-height: 1.75;
  min-height: 100vh;
}

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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 246, 0.88);
  border-bottom: 1px solid rgba(228, 221, 211, 0.9);
}

.nav-wrap {
  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(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  font-family: var(--display);
  font-size: 1.25rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

.hero {
  padding: 2.6rem 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(--display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.2;
  margin: 0 0 0.9rem;
  letter-spacing: 0.02em;
}

.hero-copy .lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--brand-deep);
  background: #fff;
}

.phone-stack {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: min(236px, 42vw);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid #1a1a1a;
  box-shadow: var(--shadow);
  background: #111;
  position: absolute;
}

.phone img {
  width: 100%;
  aspect-ratio: 9 / 19.2;
  object-fit: cover;
  object-position: top center;
}

.phone-back {
  transform: rotate(-8deg) translate(-18%, 4%);
  z-index: 1;
  opacity: 0.96;
}

.phone-front {
  transform: rotate(6deg) translate(16%, -2%);
  z-index: 2;
}

.section {
  padding: 2.8rem 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  margin: 0 0 0.55rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 48rem;
}

.prose {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 8px 28px rgba(28, 26, 23, 0.04);
}

.prose p {
  margin: 0 0 1rem;
  color: #2b2824;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h3 {
  font-family: var(--display);
  font-size: 1.28rem;
  margin: 1.5rem 0 0.7rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: #2b2824;
}

.prose li {
  margin-bottom: 0.4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(28, 26, 23, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card .shot {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  width: 100%;
  background: #111;
}

.feature-card .body {
  padding: 1rem 1.05rem 1.15rem;
}

.feature-card-wide {
  grid-column: span 2;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.split.reverse .shot-panel {
  order: 2;
}

.split .shot-panel {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
  max-width: 320px;
  margin-inline: auto;
}

.split .shot-panel img {
  width: 100%;
  aspect-ratio: 9 / 17;
  object-fit: cover;
  object-position: top center;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.stat {
  background: linear-gradient(180deg, #fff, #fff8f2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand);
  font-family: var(--display);
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.gallery figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.gallery figcaption {
  padding: 0.7rem 0.8rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-hero {
  padding: 2.2rem 0 0.5rem;
}

.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;
}

.legal {
  padding-bottom: 3rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #1c1a17;
  color: #d8d2c8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  padding: 2.2rem 0 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  color: #fff;
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li {
  color: #c8c0b4;
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: #f0e8dc;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.4rem;
  font-size: 0.86rem;
  color: #a99f92;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  margin: 0 0 0.5rem;
  color: var(--brand);
}

.error-page p {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .split.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .shot-panel {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-stack {
    min-height: 380px;
    margin-top: 0.5rem;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: relative;
    flex-wrap: nowrap;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem 0.7rem;
    background: rgba(255, 250, 246, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(28, 26, 23, 0.12);
    z-index: 60;
  }

  .nav a {
    padding: 0.55rem 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav.open {
    display: flex;
  }

  .feature-grid,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .phone {
    width: min(180px, 44vw);
  }

  .phone-stack {
    min-height: 320px;
  }

  .prose {
    padding: 1.1rem;
  }
}

@media (max-width: 480px) {
  .feature-grid,
  .gallery,
  .stats {
    grid-template-columns: 1fr;
  }

  .feature-card-wide {
    grid-column: auto;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
