/* ============================================================
   蛙漫漫画App · 官方落地页样式 (copypro 版式)
   Theme: 青蛙绿 / 清新阅读风
   ============================================================ */
:root {
  --green-700: #1f8a48;
  --green-600: #2fa85c;
  --green-500: #4cc77a;
  --green-100: #d8f0e0;
  --green-50:  #eaf7ef;
  --ink:       #14241b;
  --muted:     #5c6b60;
  --bg:        #f7fbf8;
  --card:      #ffffff;
  --line:      #e3efe7;
  --warm:      #ff7a3d;
  --warm-soft: #fff1e8;
  --shadow:    0 10px 30px rgba(31, 138, 72, .10);
  --radius:    18px;
  --maxw:      1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* 导航 */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(247,251,248,.85); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: .25s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20,36,27,.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 1px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--green-600); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; border: none; transition: .18s; }
.btn-primary { background: linear-gradient(135deg, var(--green-500), var(--green-700)); color: #fff; box-shadow: 0 8px 20px rgba(47,168,92,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47,168,92,.45); }
.btn-ghost { background: #fff; color: var(--green-700); border: 1.5px solid var(--green-100); }
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-600); }
.nav .btn { padding: 9px 20px; }
.burger { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 480px at 85% -10%, rgba(76,199,122,.22), transparent 60%), radial-gradient(700px 420px at -10% 20%, rgba(255,122,61,.12), transparent 55%), linear-gradient(180deg, #f0f9f3 0%, var(--bg) 70%); padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--green-100); color: var(--green-700); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }
.hero h1 { font-size: 50px; line-height: 1.15; font-weight: 900; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--green-600); }
.hero p.lead { margin: 22px 0 26px; font-size: 17px; color: var(--muted); max-width: 540px; }
.hot-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hot-tags a { font-size: 13px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 6px 13px; border-radius: 8px; transition: .2s; }
.hot-tags a:hover { color: var(--green-700); border-color: var(--green-500); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); margin: 0 0 30px; }
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 300px; border-radius: 42px; padding: 12px; background: linear-gradient(160deg, #1c3a28, #0f2418); box-shadow: 0 30px 60px rgba(20,60,35,.30), inset 0 0 0 2px rgba(255,255,255,.08); position: relative; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #0b1a10; border-radius: 14px; z-index: 2; }
.phone img { width: 100%; border-radius: 32px; object-fit: cover; aspect-ratio: 9/17; }

/* 数据条 */
.stats { background: var(--green-700); color: #fff; margin-top: -40px; position: relative; z-index: 3; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; }
.stat { text-align: center; }
.stat .num { font-size: 34px; font-weight: 900; }
.stat .num small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.stat .lbl { font-size: 14px; opacity: .85; margin-top: 2px; }

/* section */
section.block { padding: 80px 0; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.sec-head .kicker { color: var(--green-600); font-weight: 700; letter-spacing: 3px; font-size: 13px; }
.sec-head h2 { font-size: 34px; font-weight: 900; margin: 8px 0 12px; }
.sec-head p { color: var(--muted); font-size: 15px; }

/* 功能 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); margin-bottom: 18px; }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* 搜索实验室 */
.lab { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.lab-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.lab-row .lab-label { font-size: 13px; color: var(--muted); width: 48px; flex: none; }
.chip { font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: .15s; }
.chip.active { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.chip:hover:not(.active) { border-color: var(--green-500); color: var(--green-700); }
.lab-results { margin-top: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; }
.lab-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 4px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.lab-item .t { font-weight: 600; }
.lab-item .d { font-size: 12px; color: var(--muted); }

/* 榜单 tabs */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tab { padding: 9px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 14px; transition: .2s; }
.tab.active { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.rank-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rank-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.rank-col h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.rank-col h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rank-item:last-child { border-bottom: none; }
.rank-item .no { width: 24px; height: 24px; border-radius: 7px; background: var(--green-50); color: var(--green-700); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.rank-item:nth-child(-n+4) .no { background: var(--green-600); color: #fff; }
.rank-item .t { flex: 1; font-size: 14px; font-weight: 600; }
.rank-item .d { font-size: 12px; color: var(--muted); }

/* 更新日历 */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.cal-day { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; text-align: center; transition: .2s; }
.cal-day.today { border-color: var(--green-500); box-shadow: 0 6px 18px rgba(47,168,92,.18); }
.cal-day .dow { font-size: 12px; color: var(--muted); }
.cal-day .date { font-size: 20px; font-weight: 900; margin: 2px 0 8px; }
.cal-day .work { font-size: 13px; font-weight: 700; color: var(--green-700); }
.cal-day .time { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 预览 */
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 960px; margin: 0 auto; }
.shot { text-align: center; }
.shot .frame { border-radius: 28px; padding: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s; }
.shot .frame:hover { transform: translateY(-6px); }
.shot img { border-radius: 22px; aspect-ratio: 9/16; object-fit: cover; width: 100%; }
.shot .cap { margin-top: 14px; font-weight: 700; font-size: 15px; }
.shot .cap small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

/* 下载 CTA */
.download { background: linear-gradient(135deg, var(--green-700), var(--green-500)); border-radius: 26px; color: #fff; text-align: center; padding: 60px 30px; box-shadow: 0 24px 50px rgba(31,138,72,.30); }
.download h2 { font-size: 32px; font-weight: 900; }
.download p { opacity: .92; margin: 12px 0 28px; }
.download .btn-white { background: #fff; color: var(--green-700); padding: 15px 40px; font-size: 17px; }
.download .dl-meta { margin-top: 18px; font-size: 13px; opacity: .85; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 18px 22px; font-size: 16px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--green-600); transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 18px; color: var(--muted); font-size: 14px; }

footer { background: #0f2418; color: #b8cdbd; padding: 40px 0; font-size: 13px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: #d8f0e0; } footer a:hover { text-decoration: underline; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
#toTop { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--green-600); color: #fff; border: none; cursor: pointer; font-size: 18px; box-shadow: 0 8px 20px rgba(47,168,92,.4); opacity: 0; pointer-events: none; transition: .3s; z-index: 99; }
#toTop.show { opacity: 1; pointer-events: auto; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 200; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .rank-wrap { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .cal { grid-template-columns: repeat(2, 1fr); }
  .lab-results { grid-template-columns: 1fr; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 0; gap: 16px; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .burger { display: block; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; max-width: 300px; }
  .hero h1 { font-size: 32px; }
  .sec-head h2 { font-size: 26px; }
  .phone { width: 260px; }
}
