:root {
  --brand-start: #ff9a1f;
  --brand-end: #c026d3;
  --brand-mid: #f43f85;
  --ink: #1a1224;
  --ink-soft: #4a3f5c;
  --muted: #6b6178;
  --link: #1a73e8;
  --link-hover: #1558b0;
  --line: #ebe4f2;
  --surface: #fffafc;
  --white: #ffffff;
  --shadow: 0 16px 48px rgba(192, 38, 211, 0.12);
  --radius: 18px;
  --max: 1120px;
  --nav-h: 72px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 154, 31, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(192, 38, 211, 0.14), transparent 55%),
    linear-gradient(180deg, #fff8fb 0%, #fff 38%, #faf7ff 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand-gradient {
  background: linear-gradient(120deg, var(--brand-start), var(--brand-mid), var(--brand-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary,
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-start), var(--brand-mid) 45%, var(--brand-end));
  box-shadow: 0 10px 28px rgba(244, 63, 133, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(192, 38, 211, 0.38);
}

.btn-ghost,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(192, 38, 211, 0.18);
  color: var(--ink);
}

.btn-ghost:hover {
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 252, 0.82);
  border-bottom: 1px solid rgba(235, 228, 242, 0.8);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: inherit;
}

.logo:hover {
  color: inherit;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.25;
  margin: 0.4rem 0 1rem;
  letter-spacing: 0.02em;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span {
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 12% 8% 8%;
  background: linear-gradient(135deg, rgba(255, 154, 31, 0.35), rgba(192, 38, 211, 0.28));
  filter: blur(40px);
  border-radius: 40% 60% 55% 45%;
  z-index: 0;
  animation: floatBlob 8s ease-in-out infinite;
}

.phone-stack {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(280px, 78%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: #111;
  animation: riseIn 0.9s ease both;
}

.phone-frame.secondary {
  position: absolute;
  width: min(210px, 58%);
  right: 0;
  bottom: 8%;
  transform: rotate(8deg);
  opacity: 0.96;
  animation: riseIn 1.1s ease 0.15s both;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.04);
  }
}

/* Sections */
.section {
  padding: 3.6rem 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--brand-end);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.section-head p {
  color: var(--ink-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.feature-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.feature-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Category chips */
.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.chip {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Two column content */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.split-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  margin-inline: auto;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 0.8rem;
}

.split-copy p {
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.split-copy ul {
  margin: 0.8rem 0 1.2rem;
}

.split-copy li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.split-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

/* Article / SEO longform */
.article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.article h2,
.article h3 {
  font-family: var(--font-display);
  margin: 1.5rem 0 0.8rem;
  line-height: 1.35;
}

.article h2 {
  font-size: 1.55rem;
}

.article h3 {
  font-size: 1.2rem;
}

.article p {
  color: var(--ink-soft);
  margin-bottom: 0.95rem;
}

.article a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article a:hover {
  color: var(--link-hover);
}

.toc {
  background: linear-gradient(135deg, rgba(255, 154, 31, 0.08), rgba(192, 38, 211, 0.08));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.5rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc a {
  display: inline-block;
  margin: 0.2rem 0.7rem 0.2rem 0;
  color: var(--ink-soft);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand-end);
}

/* Page hero for inner pages */
.page-hero {
  padding: 2.8rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.7rem;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 680px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--brand-end);
}

.legal {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.3rem, 3vw, 2.2rem);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.6rem 0 0.7rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.2rem;
  list-style: disc;
  margin-bottom: 1rem;
}

/* CTA band */
.cta-band {
  margin: 1rem 0 3rem;
  border-radius: 28px;
  padding: 2.2rem clamp(1.2rem, 3vw, 2.4rem);
  background:
    linear-gradient(120deg, rgba(255, 154, 31, 0.95), rgba(244, 63, 133, 0.95) 48%, rgba(192, 38, 211, 0.95)),
    #c026d3;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 0.4rem;
}

.cta-band p {
  opacity: 0.92;
  max-width: 36rem;
}

.cta-band .btn-ghost,
.cta-band .btn-ghost:hover {
  background: #fff;
  border: none;
  color: #a21caf;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 2.4rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--brand-end);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--brand-start), var(--brand-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.error-page p {
  color: var(--ink-soft);
  max-width: 420px;
  margin: 0 auto 1.4rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.15rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.faq-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .split.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .phone-frame.secondary {
    right: 4%;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 250, 252, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a::after {
    display: none;
  }

  .feature-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero-visual {
    min-height: 300px;
  }

  .phone-frame {
    width: min(240px, 70%);
  }

  .phone-frame.secondary {
    width: min(170px, 48%);
  }

  .cta-band {
    text-align: left;
  }
}
