/* ============================================================
  咚漫漫画 - 官网着陆页样式
  DESIGN.md: 紫白撞色 · 二次元漫画编辑部视觉
  ============================================================ */

/* ---------- 变量与基础 ---------- */
:root {
  --purple: #7c3aed;
  --purple-2: #8b5cf6;
  --purple-deep: #5b21b6;
  --purple-light: #f5f3ff;
  --teal: #22d3ee;
  --yellow: #fbbf24;
  --text: #1f2937;
  --text-2: #6b7280;
  --white: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 4px 14px rgba(91, 33, 182, 0.08);
  --shadow-md: 0 12px 34px rgba(91, 33, 182, 0.14);
  --shadow-lg: 0 22px 52px rgba(91, 33, 182, 0.22);
  --grad: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 45%, #6d28d9 100%);
  --ease: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }
section { padding: 84px 0; }

/* ---------- 通用标题 ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-eyebrow {
  display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: 2px;
  color: var(--purple); background: var(--purple-light);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.sec-title { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.25; }
.sec-sub { margin-top: 14px; color: var(--text-2); font-size: 16px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--purple); border: 2px solid var(--purple-2); }
.btn-ghost:hover { background: var(--purple-light); transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--purple); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn .ico { width: 20px; height: 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--purple-deep); }
.brand-logo { width: 38px; height: 38px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--text-2); font-weight: 600; transition: color var(--ease); padding: 6px 2px; position: relative; }
.site-nav a:hover { color: var(--purple); }
.site-nav a.active { color: var(--purple); }
.site-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--grad);
}
.header-cta { margin-left: 8px; padding: 10px 20px; font-size: 15px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; margin-left: auto;
  width: 40px; height: 40px; border-radius: 10px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--purple-deep); margin: 5px auto; border-radius: 2px; transition: all var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--purple-light); padding: 0; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(139, 92, 246, 0.16), transparent 40%),
    radial-gradient(circle at 88% 78%, rgba(34, 211, 238, 0.12), transparent 42%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 72px 0 96px; }
.bubble {
  position: absolute; width: 34px; height: 24px; background: rgba(255,255,255,0.6);
  border-radius: 12px; border: 2px solid var(--purple-2); opacity: .8;
}
.bubble::after { content:''; position: absolute; left: 10px; bottom: -7px; border: 6px solid transparent; border-top-color: var(--purple-2); }
.b-1 { top: 18%; right: 6%; } .b-2 { top: 40%; left: 2%; width: 24px; height: 17px; } .b-3 { bottom: 16%; right: 16%; width: 28px; height: 20px; }

.hero-title { font-size: clamp(34px, 5vw, 54px); font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
.hero-title .grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lead { margin-top: 22px; color: var(--text-2); font-size: 18px; max-width: 520px; }
.hero-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-tags { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.tag { background: #fff; border: 1px solid rgba(139,92,246,.25); color: var(--purple-deep); font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* 双手机预览（纯 CSS，首屏零大图） */
.phones { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; }
.phone {
  position: absolute; width: 218px; height: 452px; border-radius: 34px;
  background: #1f1038; padding: 10px; border: 2px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-lg);
}
.phone .screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: var(--purple-light); position: relative; }
.phone .notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; background: #1f1038; border-radius: 0 0 12px 12px; z-index: 2; }
.phone-1 { transform: rotate(-7deg) translate(-34px, 6px); z-index: 2; }
.phone-2 { transform: rotate(6deg) translate(30px, -6px); z-index: 1; }
.phone-app-header { background: var(--grad); color: #fff; padding: 16px 10px 8px; text-align: center; font-weight: 700; font-size: 13px; }
.phone-app-header small { display:block; font-weight: 400; font-size: 10px; opacity: .9; }
.phone-covers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }
.pcover { border-radius: 10px; height: 86px; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.pcover span { color: #fff; font-size: 11px; font-weight: 700; padding: 6px; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.cv1 { background: linear-gradient(135deg, var(--purple), var(--teal)); }
.cv2 { background: linear-gradient(135deg, var(--yellow), var(--purple)); }
.cv3 { background: linear-gradient(135deg, var(--teal), #0ea5e9); }
.cv4 { background: linear-gradient(135deg, #f472b6, var(--purple-2)); }
.phone-glow { position: absolute; inset: auto; width: 300px; height: 300px; background: radial-gradient(circle, rgba(139,92,246,.35), transparent 70%); filter: blur(20px); border-radius: 50%; z-index: 0; }

/* ---------- 品牌徽标带 ---------- */
.marquee-band { background: var(--grad); color: rgba(255,255,255,.92); padding: 16px 0; overflow: hidden; }
.marquee { display: flex; gap: 40px; white-space: nowrap; font-weight: 700; letter-spacing: 1px; animation: scroll 26s linear infinite; }
.marquee span { font-size: 15px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- 功能卡片 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: #fff; border: 1px solid rgba(139,92,246,.14); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform var(--ease), box-shadow var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-ico { width: 58px; height: 58px; border-radius: 16px; background: var(--purple-light); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--purple); }
.feature-ico svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.feature-card p { color: var(--text-2); font-size: 15px; }

/* ---------- 展示区 ---------- */
.showcase { background: var(--purple-light); overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.showcase-media img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.showcase-points { margin-top: 22px; display: grid; gap: 14px; }
.point { display: flex; gap: 12px; }
.point .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-top: 9px; }
.point b { display: block; color: var(--purple-deep); font-size: 16px; }
.point span { color: var(--text-2); font-size: 14px; }

/* ---------- 数据横幅 ---------- */
.stats { background: var(--grad); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.stat span { opacity: .85; font-size: 14px; }

/* ---------- 步骤 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step-card { position: relative; background: #fff; border: 1px solid rgba(139,92,246,.14); border-radius: var(--radius); padding: 30px 24px 24px; box-shadow: var(--shadow-sm); }
.step-card::before {
  counter-increment: step; content: '0' counter(step);
  position: absolute; top: 20px; right: 22px; font-size: 42px; font-weight: 800; color: var(--purple-light); line-height: 1;
}
.step-card h3 { font-size: 18px; font-weight: 800; margin: 18px 0 8px; }
.step-card p { color: var(--text-2); font-size: 15px; }
.step-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--purple-light); display: flex; align-items: center; justify-content: center; color: var(--purple); }
.step-ico svg { width: 26px; height: 26px; }

/* ---------- 下载 CTA ---------- */
.download-band { text-align: center; background: var(--purple-light); }
.dband-inner { position: relative; padding: 56px 40px; border-radius: 28px; background: var(--grad); color: #fff; overflow: hidden; }
.dband-inner::before { content:''; position:absolute; width: 200px; height: 200px; border-radius:50%; background: rgba(255,255,255,.08); top: -60px; right: -40px; }
.dband-inner h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.dband-inner p { opacity: .92; margin: 14px auto 28px; max-width: 540px; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.app-badges { display: flex; gap: 14px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.app-badge { width: 168px; }
.app-badge img { border-radius: 14px; box-shadow: var(--shadow-md); }

/* ---------- 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid rgba(139,92,246,.14); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--ease), box-shadow var(--ease); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-thumb { height: 170px; display: flex; align-items: center; justify-content: center; color: #fff; }
.news-n1 { background: linear-gradient(135deg, var(--purple), var(--teal)); }
.news-n2 { background: linear-gradient(135deg, var(--yellow), var(--purple)); }
.news-n3 { background: linear-gradient(135deg, var(--teal), #6366f1); }
.news-thumb svg { width: 56px; height: 56px; opacity: .9; }
.news-body { padding: 22px 22px 26px; }
.news-date { font-size: 13px; color: var(--purple); font-weight: 600; }
.news-card h3 { font-size: 18px; font-weight: 800; margin: 8px 0 10px; line-height: 1.45; }
.news-card p { color: var(--text-2); font-size: 14px; }

/* ---------- 关于 / 内容页 ---------- */
.page-hero { background: var(--purple-light); text-align: center; padding: 66px 0 56px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.page-hero .breadcrumb { color: var(--text-2); margin-top: 8px; font-size: 14px; }
.page-hero .breadcrumb a { color: var(--purple); }
.prose { max-width: 820px; margin: 0 auto; color: #374151; font-size: 16px; }
.prose h2 { margin: 42px 0 16px; color: var(--purple-deep); font-size: 26px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 12px 0 20px; padding-left: 4px; }
.prose li { padding: 6px 0 6px 26px; position: relative; }
.prose li::before { content:''; position:absolute; left: 4px; top: 15px; width: 9px; height: 9px; border-radius: 3px; background: var(--grad); }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 40px; }
.about-card { background: #fff; border: 1px solid rgba(139,92,246,.14); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.about-card h3 { color: var(--purple-deep); margin-bottom: 10px; font-size: 19px; }

/* 下载页 */
.download-hero { background: var(--grad); color: #fff; text-align: center; padding: 74px 0; }
.download-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
.download-hero p { opacity: .92; margin: 14px auto 0; max-width: 560px; }
.dl-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 36px 32px; display: flex; gap: 30px; align-items: center; margin-top: -52px; position: relative; z-index: 4;
}
.dl-logo { width: 96px; height: 96px; flex: none; }
.dl-info h3 { font-size: 22px; font-weight: 800; }
.dl-info p { color: var(--text-2); margin-top: 6px; font-size: 14px; }
.dl-meta { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.dl-meta b { color: var(--purple-deep); }
.dl-actions { margin-left: auto; text-align: center; }
.dl-actions .btn { white-space: nowrap; }
.dl-ver { font-size: 13px; color: var(--text-2); margin-top: 10px; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-card { background: #fff; border: 1px solid rgba(139,92,246,.14); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); text-align: center; }
.info-card .feature-ico { margin: 0 auto 16px; }
.info-card h3 { font-size: 17px; margin-bottom: 8px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #170b2e; color: #d8ccf7; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; opacity: .85; max-width: 300px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-links a { display: block; color: #d8ccf7; opacity: .85; padding: 5px 0; font-size: 14px; transition: opacity var(--ease), transform var(--ease); }
.footer-links a:hover { opacity: 1; transform: translateX(3px); color: #fff; }
.footer-dl .btn { margin-bottom: 12px; }
.footer-dl small { display: block; opacity: .7; font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: 13px; opacity: .7; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .55s ease, transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
.stagger > *:nth-child(2) { transition-delay: .1s; }
.stagger > *:nth-child(3) { transition-delay: .2s; }
.stagger > *:nth-child(4) { transition-delay: .3s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 52px 0 70px; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-tags { justify-content: center; }
  .phones { order: -1; height: 440px; }
  .features-grid, .steps-grid, .news-grid, .info-cards { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; box-shadow: var(--shadow-lg); padding: 12px 6%; 
    transform: translateY(-140%); transition: transform var(--ease);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(139,92,246,.1); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .features-grid, .steps-grid, .news-grid, .info-cards { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .dl-card { flex-direction: column; text-align: center; padding: 28px 20px; }
  .dl-actions { margin-left: 0; }
}