:root {
  --brand-purple: #8b2bb8;
  --brand-pink: #e91e63;
  --brand-orange: #ff6b35;
  --brand-grad: linear-gradient(135deg, #8b2bb8 0%, #e91e63 50%, #ff6b35 100%);
  --bg: #f7f5f8;
  --bg-alt: #ffffff;
  --text: #1a1220;
  --text-muted: #5c5266;
  --border: #e8e0ee;
  --shadow: 0 8px 28px rgba(139, 43, 184, 0.08);
  --radius: 14px;
  --max: 1100px;
  --header-h: 68px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-pink);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-purple);
  background: rgba(139, 43, 184, 0.06);
}

.nav .btn-nav {
  margin-left: 8px;
  background: var(--brand-grad);
  color: #fff !important;
  padding: 8px 16px;
}

.nav .btn-nav:hover {
  opacity: 0.92;
  background: var(--brand-grad);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(139, 43, 184, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(233, 30, 99, 0.1), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-brand {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-brand em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.28);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.95;
}

.btn-ghost {
  background: #fff;
  color: var(--brand-purple);
  border: 1px solid var(--border);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.3;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
}

.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.35;
  margin: 1.4em 0 0.55em;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose h4 {
  font-size: 1.08rem;
}

.prose p {
  margin-bottom: 1em;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em 1.25em;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.4em;
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

/* Feature blocks */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block.reverse .feature-media {
  order: 2;
}

.feature-block.reverse .feature-copy {
  order: 1;
}

.feature-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.feature-copy h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.feature-copy p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feature-copy ul {
  margin-left: 1.15em;
  color: var(--text-muted);
}

.feature-copy li {
  margin-bottom: 6px;
}

/* Grid cards for channels - interaction containers */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.channel-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.channel-item:hover {
  border-color: rgba(139, 43, 184, 0.35);
  transform: translateY(-2px);
}

.channel-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.channel-item p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Advantage list */
.advantage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.advantage-item {
  padding: 20px;
  background: #fff;
  border-left: 3px solid transparent;
  border-image: var(--brand-grad) 1;
  box-shadow: var(--shadow);
}

.advantage-item h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.advantage-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Pricing / member */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.price-item img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.price-item figcaption {
  text-align: center;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.faq-item h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  margin: 20px 0 0;
  padding: 36px 28px;
  border-radius: 18px;
  background: var(--brand-grad);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.cta-band p {
  opacity: 0.95;
  margin-bottom: 18px;
}

.cta-band .btn {
  background: #fff;
  color: var(--brand-purple);
}

.cta-band .btn:hover {
  color: var(--brand-pink);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 40px 0 24px;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(139, 43, 184, 0.1), transparent 50%),
    #fff;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-wrap {
  padding: 40px 0 56px;
}

.content-wrap .prose {
  max-width: 48em;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Footer */
.site-footer {
  background: #1a1220;
  color: #d8d0e0;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer p {
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.85;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #c8bfd4;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  font-size: 0.85rem;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

/* TOC for long pages */
.toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.toc ol {
  margin-left: 1.2em;
  color: var(--text-muted);
}

.toc li {
  margin-bottom: 4px;
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--brand-purple);
}

.related-links {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related-links h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.related-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.related-links a:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
  }

  .feature-block.reverse .feature-media,
  .feature-block.reverse .feature-copy {
    order: initial;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .advantage-list {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    box-shadow: var(--shadow);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 12px 14px;
  }

  .nav .btn-nav {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .section {
    padding: 40px 0;
  }

  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .price-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* APP ads */
.ads-wrap {
  padding: 14px 0 6px;
}

#applist {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px 8px;
  box-shadow: var(--shadow);
}

.applist-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  background: transparent;
  margin: 6px 0 2px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #666;
  text-align: center;
  margin-top: 4px;
}
