/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #ff2d55;
  --primary-dark: #d91e45;
  --secondary: #1a1a2e;
  --accent: #ff6b35;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-light: #f8f9fc;
  --text: #e8e8f0;
  --text-muted: #a0a0b8;
  --text-dark: #2d2d3a;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --max-w: 1200px;
  --header-h: 64px;
}

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);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
ul { list-style: none; }

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

/* ===== APP Ad Banner ===== */
#applist {
  text-align: center;
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

#applist .applist-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 12px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: transparent;
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 0 20px;
}

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

#ads img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
}

#ads a {
  display: inline-block;
  text-decoration: none;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(255, 45, 85, 0.25);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,15,26,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 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1030 50%, #0f0f1a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,45,85,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,45,85,0.15);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(255,45,85,0.3);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #ffb3c6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

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

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,45,85,0.4);
}

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

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-img img { width: 100%; }

/* ===== Section ===== */
section { padding: 72px 0; }

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}

.section-desc {
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 48px;
  font-size: 1rem;
}

.section-alt { background: rgba(255,255,255,0.02); }

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

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

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

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

/* ===== Showcase ===== */
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.showcase-item:last-child { margin-bottom: 0; }

.showcase-item.reverse { direction: rtl; }
.showcase-item.reverse > * { direction: ltr; }

.showcase-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.showcase-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}

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

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  background: rgba(255,45,85,0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255,45,85,0.2);
}

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

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--border);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.category-card:hover img { transform: scale(1.05); }

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.category-overlay h3 { font-size: 1rem; font-weight: 700; color: #fff; }
.category-overlay p { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step-card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-q {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q::after {
  content: "+";
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-top: 12px;
  display: none;
  line-height: 1.8;
}

.faq-item.open .faq-a { display: block; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, #1a1030, #2d0a1a);
  border: 1px solid rgba(255,45,85,0.2);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  margin: 0 20px;
}

.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
.site-footer {
  background: #0a0a14;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 72px;
}

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

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--primary); }

.footer-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-keywords a {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.footer-keywords a:hover { border-color: var(--primary); color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Sub Pages ===== */
.page-hero {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, #0f0f1a, #1a1030);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.page-hero p { color: var(--text-muted); }

.page-content {
  padding: 56px 0;
  max-width: 800px;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 14px;
}

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

.page-content p,
.page-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.page-content ul { padding-left: 20px; list-style: disc; }
.page-content ol { padding-left: 20px; list-style: decimal; }
.page-content ol li { margin-bottom: 8px; }

/* ===== Prose / SEO Content Blocks ===== */
.prose-block {
  max-width: 900px;
  margin-bottom: 40px;
}

.prose-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.85;
}

.prose-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 28px 0 12px;
}

.prose-block h3:first-child { margin-top: 0; }

.prose-block ul,
.prose-block ol {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 22px;
  margin-bottom: 16px;
  line-height: 1.85;
}

.prose-block ul { list-style: disc; }
.prose-block ol { list-style: decimal; }
.prose-block li { margin-bottom: 6px; }
.prose-block strong { color: #fff; font-weight: 600; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.channel-item {
  text-align: center;
  padding: 24px 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.channel-item:hover { border-color: rgba(255,45,85,0.3); }

.channel-item .ch-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.channel-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

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

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 32px;
}

.filter-tag {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-tag.active {
  background: rgba(255,45,85,0.15);
  border-color: rgba(255,45,85,0.4);
  color: var(--primary);
  font-weight: 600;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.benefit-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.benefit-item .bi-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,45,85,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefit-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.pricing-card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(255,45,85,0.4);
  background: linear-gradient(135deg, rgba(255,45,85,0.08), var(--bg-card));
}

.pricing-card .plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pricing-card .plan-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.pricing-card .plan-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
}

.pricing-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.text-columns h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.text-columns p,
.text-columns li {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.text-columns ul {
  padding-left: 18px;
  list-style: disc;
}

@media (max-width: 900px) {
  .channel-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-list,
  .pricing-grid,
  .text-columns { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 404 ===== */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page h1 { font-size: 1.6rem; font-weight: 700; color: #fff; margin: 16px 0; }
.error-page p { color: var(--text-muted); margin-bottom: 32px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid,
  .showcase-item,
  .showcase-item.reverse { grid-template-columns: 1fr; direction: ltr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid,
  .categories-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(15,15,26,0.98);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .menu-toggle { display: block; }
  .site-header { position: relative; }
  .cta-banner { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 40px; }
  section { padding: 48px 0; }
}
