:root {
  --bg: #0c0c0e;
  --bg-soft: #16161a;
  --bg-card: #1c1c22;
  --text: #f2f0ec;
  --text-muted: #a8a29a;
  --accent: #e85d4c;
  --accent-2: #f0a05a;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", 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;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 93, 76, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(240, 160, 90, 0.12), transparent),
    linear-gradient(180deg, #0c0c0e 0%, #111114 40%, #0c0c0e 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(12, 12, 14, 0.85);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 400;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34em;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #c43c2e);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 560px;
  margin-inline: auto;
}

.hero-float {
  position: absolute;
  right: -8%;
  bottom: 8%;
  width: 42%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: floatY 5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 32px;
  max-width: 40em;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-head p {
  color: var(--text-muted);
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 93, 76, 0.35);
}

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-item .num {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
}

.showcase.reverse {
  direction: rtl;
}

.showcase.reverse > * {
  direction: ltr;
}

.showcase-media img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 480px;
  margin-inline: auto;
}

.showcase-copy h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 14px;
}

.showcase-copy p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.showcase-copy ul {
  margin: 14px 0 18px;
}

.showcase-copy li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.showcase-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Category mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.mosaic-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mosaic-item:hover img {
  transform: scale(1.04);
}

.mosaic-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.92rem;
  font-weight: 500;
}

/* Content prose for SEO */
.prose {
  max-width: 760px;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 1.6em 0 0.7em;
  line-height: 1.3;
}

.prose h2 {
  font-size: 1.7rem;
}

.prose h3 {
  font-size: 1.3rem;
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 1em;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ol,
.prose ul {
  margin: 0 0 1.2em 1.2em;
  color: var(--text-muted);
}

.prose ol {
  list-style: decimal;
}

.prose ul {
  list-style: disc;
}

.prose li {
  margin-bottom: 0.45em;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.toc h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.toc a:last-child {
  border-bottom: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step strong {
  display: block;
  color: var(--accent-2);
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--accent-2);
  margin-bottom: 10px;
}

.faq details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.legal-body {
  padding: 40px 0 72px;
}

.legal-body .prose {
  max-width: 820px;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #080809;
  padding: 48px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

/* Phone mock pair */
.phone-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.phone-pair img {
  border-radius: 14px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 420px;
  width: 100%;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.shot-row img {
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 360px;
  width: 100%;
  margin-inline: auto;
}

.note {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin: 20px 0;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12, 12, 14, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero-grid,
  .showcase,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .showcase.reverse {
    direction: ltr;
  }

  .toc {
    position: static;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .hero-float {
    display: none;
  }

  .hero-visual img {
    max-height: 420px;
  }

  .shot-row {
    grid-template-columns: 1fr;
  }

  .phone-pair {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .steps,
  .phone-pair {
    grid-template-columns: 1fr;
  }

  .brand-tag {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }
}
