:root {
  --brand-yellow: #ffb347;
  --brand-orange: #ff6b35;
  --brand-magenta: #e7339a;
  --brand-purple: #7b2cbf;
  --ink: #1a1220;
  --ink-soft: #4a3f52;
  --muted: #6e6478;
  --line: #e8e0ef;
  --paper: #fffaf7;
  --paper-2: #fff4ec;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(123, 44, 191, 0.08);
  --max: 1120px;
  --grad: linear-gradient(120deg, var(--brand-yellow), var(--brand-orange), var(--brand-magenta), var(--brand-purple));
  --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(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 179, 71, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(231, 51, 154, 0.14), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 45%, #f7f0fa 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-magenta);
  text-decoration: none;
}

a:hover {
  color: var(--brand-purple);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 247, 0.88);
  border-bottom: 1px solid rgba(232, 224, 239, 0.9);
}

.nav-bar {
  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);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-magenta);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--grad);
  color: var(--white) !important;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(231, 51, 154, 0.25);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.28);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: floaty 6s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  inset: 12% 8%;
  background: var(--grad);
  filter: blur(48px);
  opacity: 0.35;
  z-index: -1;
  border-radius: 50%;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid rgba(232, 224, 239, 0.7);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.section-desc {
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
  max-width: 46rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  line-height: 1.35;
  margin-top: 2rem;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose p {
  color: var(--ink-soft);
  margin: 0.85rem 0;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.4rem 0;
}

/* Feature / gallery grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #f3eef7;
}

.feature-item .body {
  padding: 1rem 1.05rem 1.2rem;
}

.feature-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-grid figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-grid figcaption {
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.links-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.links-box a {
  padding: 0.55rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.links-box a:hover {
  border-color: var(--brand-magenta);
  color: var(--brand-magenta);
}

/* Legal / inner pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 0.6rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--muted);
}

.content-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.8rem 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  margin: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Footer */
.site-footer {
  background: #1a1220;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer h4 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.4rem 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #ffb347;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 250, 247, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.2rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .hero-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .content-panel {
    padding: 1.2rem;
  }
}

@media (max-width: 560px) {
  .shot-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
