:root {
  --brand-orange: #ff8a1f;
  --brand-pink: #e83a7a;
  --brand-magenta: #c2185b;
  --brand-deep: #1a1218;
  --brand-dark: #241820;
  --brand-card: #2e222a;
  --brand-muted: #b8a8b0;
  --brand-light: #f7f0f3;
  --brand-line: rgba(255, 255, 255, 0.08);
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--brand-light);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 138, 31, 0.22), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(232, 58, 122, 0.18), transparent 50%),
    linear-gradient(180deg, #1c1218 0%, #140e12 45%, #1a1218 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ffb06a;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(20, 14, 18, 0.86);
  border-bottom: 1px solid var(--brand-line);
}

.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: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--brand-line);
  background: var(--brand-card);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: #ffc08a;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff 0%, #ffd0a8 45%, #ff8fb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: #e8d6de;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
  box-shadow: 0 10px 24px rgba(232, 58, 122, 0.28);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--brand-line);
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--brand-line);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.section {
  padding: 2.6rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--brand-muted);
  max-width: 46rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card {
  background: rgba(46, 34, 42, 0.72);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 31, 0.35);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  background: #1a1218;
}

.card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
  background: rgba(46, 34, 42, 0.55);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 1rem;
}

.feature-item img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
}

.prose {
  background: rgba(46, 34, 42, 0.45);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.prose h2,
.prose h3 {
  margin: 1.4rem 0 0.7rem;
  line-height: 1.35;
}

.prose h2:first-child,
.prose > h2:first-of-type {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1rem;
  color: #eadde3;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.2rem;
  color: #eadde3;
}

.prose li {
  margin-bottom: 0.45rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--brand-line);
  background: var(--brand-card);
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.gallery figcaption {
  padding: 0.55rem 0.7rem 0.75rem;
  font-size: 0.85rem;
  color: var(--brand-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  background: rgba(46, 34, 42, 0.6);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.step-num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.faq details {
  background: rgba(46, 34, 42, 0.55);
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin-top: 0.65rem;
  color: var(--brand-muted);
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.internal-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--brand-line);
  color: #ffd2ae;
  font-size: 0.9rem;
}

.page-hero {
  padding: 2.2rem 0 1rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--brand-muted);
  max-width: 44rem;
}

.breadcrumb {
  color: var(--brand-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: #ffc08a;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 0.6rem;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--brand-muted);
  margin-bottom: 1.3rem;
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--brand-line);
  background: rgba(10, 8, 10, 0.7);
  padding: 2rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.site-footer h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.copyright {
  border-top: 1px solid var(--brand-line);
  padding-top: 1rem;
  color: #8f7d86;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item {
    grid-template-columns: 96px 1fr;
  }

  .feature-item img {
    width: 96px;
    height: 128px;
  }
}

@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: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    background: rgba(30, 20, 26, 0.98);
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .nav.open {
    display: flex;
    position: absolute;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .card-grid,
  .gallery,
  .steps {
    grid-template-columns: 1fr;
  }

  .prose {
    padding: 1.15rem 1rem;
  }
}
