:root {
  --primary: #ff6b9d;
  --primary-dark: #e84d82;
  --accent: #ffb347;
  --bg-dark: #0f0f14;
  --bg-card: #1a1a24;
  --bg-elevated: #22222e;
  --text: #f0f0f5;
  --text-muted: #a0a0b8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --max-width: 1140px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-link:hover {
  color: var(--text);
}

.logo-link img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.12) 0%, rgba(15, 15, 20, 0) 60%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 107, 157, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 48px 0;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Sections */
section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-card);
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 157, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 157, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Video showcase */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.video-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-card-body {
  padding: 20px;
}

.video-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.video-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* App showcase */
.app-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.app-item {
  text-align: center;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.app-item img {
  border-radius: 8px;
  margin: 0 auto 16px;
  max-height: 320px;
  object-fit: contain;
}

.app-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.app-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Download section */
.download-section {
  text-align: center;
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-dark));
}

.download-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.download-steps {
  text-align: left;
  margin: 24px 0;
  padding-left: 0;
  list-style: none;
}

.download-steps li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: var(--text-muted);
}

.download-steps li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Content pages */
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.content-body {
  padding: 48px 0 72px;
  max-width: 800px;
}

.content-body h2 {
  font-size: 1.3rem;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body p,
.content-body li {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.content-body ul,
.content-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-body ul li,
.content-body ol li {
  margin-bottom: 8px;
}

.content-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.update-date {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 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 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: 0.6;
}

.error-page h1 {
  font-size: 1.6rem;
  margin: 16px 0 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 420px;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-keywords {
  font-size: 0.8rem;
  color: rgba(160, 160, 184, 0.6);
  margin-top: 16px;
}

/* Internal links block */
.internal-links {
  padding: 32px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.internal-links h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.link-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-tag {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.link-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero visual */
.hero-visual {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.hero-caption {
  padding: 14px 20px;
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Intro block */
.intro-block {
  max-width: 900px;
  margin: 0 auto;
}

.intro-block p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.intro-block .highlight-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.intro-block .highlight-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
}

.intro-block .highlight-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Alternating showcase */
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.showcase-row.reverse .showcase-media {
  order: 2;
}

.showcase-row.reverse .showcase-content {
  order: 1;
}

.showcase-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.showcase-media img {
  width: 100%;
  display: block;
}

.showcase-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 107, 157, 0.15);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.showcase-content h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  line-height: 1.4;
}

.showcase-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.showcase-features {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.showcase-features li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 0 6px 18px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.showcase-features li:last-child {
  border-bottom: none;
}

.showcase-features li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Full-width image banner */
.full-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.full-banner img {
  width: 100%;
  display: block;
}

.full-banner-caption {
  padding: 20px 28px;
  background: var(--bg-elevated);
}

.full-banner-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.full-banner-caption p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Image gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.gallery-item figcaption {
  padding: 14px 16px;
}

.gallery-item figcaption h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.gallery-item figcaption p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Guide timeline */
.guide-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: guide;
}

.guide-step {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  counter-increment: guide;
}

.guide-step-img img {
  width: 100%;
  aspect-ratio: 9/14;
  object-fit: cover;
  object-position: top;
}

.guide-step-body {
  padding: 18px;
}

.guide-step-body h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.guide-step-body h4::before {
  content: counter(guide) ". ";
  color: var(--primary);
}

.guide-step-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.why-card-img {
  flex-shrink: 0;
  width: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.why-card-img img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  object-position: top;
}

.why-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.text-columns {
  columns: 2;
  column-gap: 40px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.text-columns p {
  margin-bottom: 14px;
  break-inside: avoid;
}

/* Responsive */
@media (max-width: 900px) {

  .feature-grid,
  .app-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-row {
    grid-template-columns: 1fr;
  }

  .showcase-row.reverse .showcase-media {
    order: 0;
  }

  .showcase-row.reverse .showcase-content {
    order: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .intro-block .highlight-list {
    grid-template-columns: 1fr;
  }

  .text-columns {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .header-inner {
    justify-content: flex-start;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open {
    display: flex;
  }

  .feature-grid,
  .video-grid,
  .app-showcase,
  .stats-bar,
  .gallery-grid,
  .guide-timeline {
    grid-template-columns: 1fr;
  }

  .why-card {
    flex-direction: column;
  }

  .why-card-img {
    width: 100%;
  }

  .why-card-img img {
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 40px;
  }
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 10px 0;
}

#ads>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#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: linear-gradient(135deg, #fff, #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;
  font-size: 12px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#applist {
  text-align: center;
}

#applist .applist-title {
  font-weight: bold;
}