/* ============================================================
   51漫画 · 下载站样式
   粉色/玫红 韩漫风格 · 响应式
   ============================================================ */

:root {
  --pink: #ff4d7e;
  --pink-2: #ff6b9d;
  --rose: #ff3d6e;
  --magenta: #d9268f;
  --purple: #b44bd6;
  --grad: linear-gradient(135deg, #ff8fb3 0%, #ff4d7e 42%, #d9268f 78%, #b44bd6 100%);
  --grad-soft: linear-gradient(135deg, #ffd6e2 0%, #ffe3ec 100%);
  --dark: #1c0f2b;
  --dark-2: #2a1745;
  --dark-3: #35205a;
  --ink: #2b1633;
  --muted: #8a7a99;
  --bg: #fff7fa;
  --card: #ffffff;
  --line: #f3e0ea;
  --shadow: 0 18px 48px rgba(217, 38, 143, 0.16);
  --shadow-soft: 0 10px 30px rgba(217, 38, 143, 0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 88px 0; }
.section--tint { background: #fff; }
.section--dark { background: radial-gradient(1200px 600px at 80% -10%, #3a1d5e 0%, transparent 55%), var(--dark); color: #f6eefc; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--rose); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }

.h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; font-weight: 800; letter-spacing: .5px; }
.h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 16px; max-width: 620px; margin: 14px auto 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(217, 38, 143, .08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand img, .brand svg { width: 36px; height: 36px; border-radius: 9px; }
.brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #5c4a68; font-size: 15px; font-weight: 500; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .25s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .nav-cta {
  margin-left: 6px; padding: 9px 20px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 700; box-shadow: var(--shadow-soft);
}
.nav .nav-cta::after { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(255, 143, 179, .35), transparent 55%),
    radial-gradient(760px 520px at 96% 8%, rgba(180, 75, 214, .30), transparent 55%),
    linear-gradient(180deg, #fff3f7 0%, #fff7fa 60%, #fff 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .5; pointer-events: none;
}
.hero::before { width: 340px; height: 340px; background: var(--grad-soft); top: -140px; right: 6%; }
.hero::after { width: 260px; height: 260px; background: radial-gradient(circle, rgba(255, 77, 126, .20), transparent 70%); bottom: -120px; left: -60px; }

.hero .container {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center; padding: 72px 0 88px;
}
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--rose); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-soft); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.12; font-weight: 900; letter-spacing: .5px; margin: 22px 0 18px; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.desc { color: #6d5a7c; font-size: 16.5px; max-width: 540px; }

.hero-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 22px; max-width: 560px; }
.meta-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
.meta-item .ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--grad-soft); display: grid; place-items: center; font-size: 17px; }
.meta-item b { display: block; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.meta-item span { font-size: 12px; color: var(--muted); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 26px; }
.badge { padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: #5c4a68; box-shadow: var(--shadow-soft); }
.badge b { color: var(--rose); font-weight: 800; margin-right: 4px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 30px; border-radius: 999px; font-size: 16px; font-weight: 700; cursor: pointer; border: 0; transition: transform .18s ease, box-shadow .18s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 34px rgba(255, 61, 110, .38); }
.btn-primary:hover { box-shadow: 0 18px 42px rgba(255, 61, 110, .48); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--rose); border: 1.5px solid #ffd0de; box-shadow: var(--shadow-soft); }
.btn-ghost:hover { border-color: var(--pink); transform: translateY(-2px); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

.hero-trust { margin-top: 22px; font-size: 13px; color: var(--muted); }
.hero-trust b { color: #5c4a68; }

/* Hero visual (device mockups) */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .ring {
  position: absolute; inset: 8% 4%; border-radius: 36px;
  background: var(--grad); opacity: .14; filter: blur(26px); transform: rotate(-6deg);
}
.shot { position: relative; width: min(320px, 86%); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); border: 8px solid #fff; background: #fff; }
.shot.one { transform: translateX(-9%) rotate(-5deg); z-index: 3; }
.shot.two { position: absolute; width: min(300px, 80%); top: 9%; left: 47%; transform: rotate(6deg); z-index: 2; opacity: .96; }
.shot img, .shot svg { width: 100%; height: auto; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .f-ico { width: 54px; height: 54px; border-radius: 15px; background: var(--grad-soft); display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.feature h3 { font-size: 18.5px; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- Showcase (screenshots) ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 46px; }
.showcase-item { text-align: center; }
.showcase-item .frame { border-radius: 22px; overflow: hidden; border: 7px solid #fff; box-shadow: var(--shadow-soft); background: #fff; }
.showcase-item img, .showcase-item svg { width: 100%; height: auto; }
.showcase-item p { margin-top: 14px; font-weight: 600; color: #5c4a68; font-size: 15px; }

/* ---------- Reviews ---------- */
.section--dark .lead, .section--dark .eyebrow { color: #d9b8ef; }
.section--dark .h2 { color: #fff; }
.rating-wrap { text-align: center; margin: 28px 0 38px; }
.rating { display: inline-flex; align-items: baseline; gap: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 12px 24px; border-radius: 999px; }
.rating .num { font-size: 34px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating .stars { color: #ffd166; font-size: 17px; letter-spacing: 2px; }
.rating .src { font-size: 13px; color: #b9a3c9; }

.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 26px; }
.review .r-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; flex: 0 0 auto; }
.review .who b { display: block; color: #fff; font-size: 15px; }
.review .who .stars { color: #ffd166; font-size: 13px; letter-spacing: 1px; }
.review p { color: #cfbce0; font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 42px auto 0; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-soft); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 22px; background: none; border: 0; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--ink); text-align: left; font-family: var(--font); }
.faq-q .plus { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-soft); color: var(--rose); display: grid; place-items: center; font-size: 18px; font-weight: 800; transition: transform .25s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- Download ---------- */
.download-panel {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 30px; padding: 60px 30px; color: #fff;
  background:
    radial-gradient(700px 360px at 50% -20%, rgba(255,255,255,.18), transparent 60%),
    var(--grad);
  box-shadow: 0 30px 70px rgba(217, 38, 143, .30);
}
.download-panel .app-ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); display: grid; place-items: center; }
.download-panel h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.download-panel .sub { margin-top: 10px; font-size: 15.5px; color: #ffe9f1; }
.dl-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin: 28px 0; }
.dl-meta div { text-align: center; }
.dl-meta b { display: block; font-size: 18px; }
.dl-meta span { font-size: 12.5px; color: #ffd7e4; }
.dl-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.dl-btns .btn { min-width: 190px; }
.btn-android { background: #fff; color: #d9268f; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.btn-ios { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.dl-note { margin-top: 20px; font-size: 12.5px; color: #ffdbe7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #b9a3c9; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img, .footer-brand svg { width: 34px; height: 34px; border-radius: 9px; }
.footer-brand b { color: #fff; font-size: 18px; }
.site-footer p { font-size: 13.5px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: #b9a3c9; font-size: 13.5px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; text-align: center; color: #8f7aa6; }
.footer-bottom a { color: #b9a3c9; }

/* ---------- Page (subpages) ---------- */
.page-hero { padding: 56px 0 26px; background: linear-gradient(180deg, #fff3f7, #fff); }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.page-hero .crumb { margin-bottom: 12px; font-size: 13.5px; color: var(--muted); }
.page-hero .crumb a { color: var(--rose); }
.prose { max-width: 820px; margin: 0 auto; padding: 26px 0 70px; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 34px 0 14px; }
.prose h3 { font-size: 18.5px; font-weight: 700; margin: 26px 0 10px; }
.prose p { color: #5c4a68; margin-bottom: 16px; font-size: 15.5px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose ul li, .prose ol li { margin-bottom: 8px; font-size: 15px; color: #5c4a68; list-style: disc; }
.prose ol li { list-style: decimal; }
.prose .tip { background: var(--grad-soft); border-left: 4px solid var(--rose); border-radius: 10px; padding: 16px 18px; margin: 18px 0; font-size: 14.5px; color: #7a4a63; }
.prose .warn { background: #fff4ec; border-left: 4px solid #ff9a3d; border-radius: 10px; padding: 16px 18px; margin: 18px 0; font-size: 14.5px; color: #8a5a35; }
.prose code { background: #f6e9f2; color: #c2185b; padding: 2px 7px; border-radius: 6px; font-size: 13.5px; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.prose th { background: #fff0f6; color: #7a2b4d; font-weight: 700; }
.prose td { color: #5c4a68; }

.related { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.related a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: #5c4a68; background: #fff; }
.related a:hover { border-color: var(--pink); color: var(--rose); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 60px; }
  .hero-visual { order: 2; min-height: 320px; }
  .features-grid, .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 62px 0; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 6%; transform: translateY(-130%); transition: transform .3s ease; box-shadow: 0 24px 40px rgba(44, 22, 60, .12); }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 14px 4px; border-bottom: 1px solid #f7ecf2; }
  .nav a:last-child { border-bottom: 0; }
  .nav .nav-cta { margin: 12px 0 6px; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
  .features-grid, .showcase-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 32px; }
  .dl-btns .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
