:root {
  --brand: #2563eb;
  --brand-d: #1d4ed8;
  --wa: #25d366;
  --wa-d: #1ebe5a;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* 后台内嵌模式（?embed=1）：隐藏工具页自带顶栏，由后台壳提供导航 */
html.embed .nav { display: none !important; }
html.embed main.wrap { padding-top: 18px !important; }

/* 导航 */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .inner { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.logo span { color: var(--brand); }
.nav .spacer { flex: 1; }
.nav a.link { color: var(--muted); font-size: 14px; }
.nav a.link:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px; font-size: 14px; cursor: pointer; font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); color: #fff; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.wa:hover { background: var(--wa-d); color: #fff; }
.user-pill { font-size: 13px; color: var(--muted); }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; }
.badge { display: inline-block; font-size: 13px; color: var(--brand); background: #eff6ff; border: 1px solid #dbeafe; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.6px; }
.hero p.sub { font-size: 17px; color: var(--muted); max-width: 680px; margin: 0 auto 26px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* 区块标题 */
.section { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.4px; }
.section-head p { color: var(--muted); margin: 0; }

/* 工具网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,23,42,.1); }
.card .ic { font-size: 30px; }
.card .soon-tag { display:inline-block; margin-left:8px; font-size:11px; font-weight:600; color:#92400e; background:#fffbeb; border:1px solid #fde68a; padding:1px 7px; border-radius:999px; vertical-align:middle; }
.card h3 { margin: 10px 0 4px; font-size: 19px; }
.card .tag { color: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.card .desc { color: var(--muted); font-size: 14px; flex: 1; }
.card ul.feat { list-style: none; padding: 0; margin: 14px 0; }
.card ul.feat li { font-size: 13px; color: #334155; padding-left: 20px; position: relative; margin: 6px 0; }
.card ul.feat li:before { content: "✓"; color: var(--wa); position: absolute; left: 0; font-weight: 700; }
.card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-size: 18px; font-weight: 800; }
.price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.card.extra { border-style: dashed; opacity: .96; }
.card.extra .tag { color: var(--muted); }
.card .btn.ghost { background: #fff; border: 1px solid var(--brand); color: var(--brand); }
.card .btn.ghost:hover { background: var(--brand); color: #fff; }
.card .sub-push { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.card .sub-push .sub-txt { font-size: 13px; color: var(--muted); line-height: 1.35; }
.card .sub-push .sub-txt b { color: var(--ink); font-size: 15px; }
.card .sub-push .btn { flex: 0 0 auto; padding: 8px 14px; }

/* 价格 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); }
.plan.feature { border-color: var(--brand); box-shadow: 0 12px 32px rgba(37,99,235,.15); }
.plan h3 { margin: 0 0 6px; }
.plan .big { font-size: 34px; font-weight: 800; margin: 10px 0; }
.plan .big small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 16px 0; text-align: left; }
.plan ul li { font-size: 14px; color: #334155; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.plan ul li:last-child { border: 0; }

/* 引流条 */
.cta-band { background: linear-gradient(135deg, #eff6ff, #ecfdf5); border: 1px solid #dbeafe; border-radius: var(--radius); padding: 34px; text-align: center; margin: 20px 0; }
.cta-band h2 { margin: 0 0 8px; font-size: 24px; }
.cta-band p { color: var(--muted); margin: 0 0 18px; }

/* 页脚 */
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; text-align: center; }
.disclaimer { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 12px; padding: 10px 14px; border-radius: 10px; max-width: 760px; margin: 18px auto 0; }

/* 弹窗 */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-bg.show { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 26px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { margin: 0 0 4px; font-size: 20px; }
.modal .tabs { display: flex; gap: 8px; margin: 14px 0; }
.modal .tabs button { flex: 1; padding: 8px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-size: 13px; cursor: pointer; font-weight: 600; color: var(--muted); }
.modal .tabs button.active { border-color: var(--brand); color: var(--brand); background: #eff6ff; }
.modal label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.modal input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.modal input:focus { outline: 0; border-color: var(--brand); }
.modal .row { display: flex; gap: 8px; }
.modal .row input { flex: 1; }
.modal select { width: 100%; display: block; margin: 4px 0 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff; color: var(--ink); }
.modal .row select { width: auto; flex: 0 0 auto; max-width: 150px; }
.modal .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.modal .msg { color: #dc2626; font-size: 13px; min-height: 16px; margin-top: 10px; }
.modal .x { float: right; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; }
.modal .wa-btn { width: 100%; justify-content: center; margin-top: 8px; }
.modal .sub { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.modal .plan-summary { background: #f7f8fb; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.modal .plan-summary small { font-size: 13px; font-weight: 500; color: var(--muted); }
.modal .pay-row { display: flex; gap: 10px; margin-top: 12px; }
.modal .pay-row .pay-btn { flex: 1; justify-content: center; }
.modal .fine { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; opacity: 0; transition: opacity .3s; z-index: 200; }
.toast.show { opacity: 1; }

/* 体验版横幅 */
.trial-banner { text-align: center; font-size: 14px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.trial-banner a { color: var(--brand); font-weight: 700; cursor: pointer; }
.trial-banner.active { background: #ecfdf5; color: #065f46; border-bottom-color: #a7f3d0; }
.trial-banner.paid { background: #eff6ff; color: #1d4ed8; border-bottom-color: #bfdbfe; }
.trial-banner.expired { background: #fffbeb; color: #92400e; border-bottom-color: #fde68a; }
.trial-banner b { font-size: 16px; }

/* ===== 移动端适配 ===== */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav .inner { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .nav a.link { display: none; }            /* 窄屏隐藏文字导航，保留 WhatsApp 与注册 */
  .nav .btn { padding: 7px 12px; font-size: 13px; }
  .hero { padding: 38px 0 22px; }
  .hero h1 { font-size: 29px; }
  .hero p.sub { font-size: 15px; }
  .hero .note { font-size: 12px; }
  .section { padding: 28px 0; }
  .section-head h2 { font-size: 23px; }
  .section-head p { font-size: 14px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 18px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 22px; }
  .cta-band { padding: 24px 18px; }
  .cta-band h2 { font-size: 20px; }
  .modal { padding: 20px; max-width: 92vw; }
  .modal .row { flex-direction: column; align-items: stretch; }
  .modal .row select { max-width: none; width: 100%; flex: 1 1 auto; }
  .modal input, .modal select { font-size: 16px; }   /* 避免 iOS 聚焦缩放 */
  footer { font-size: 12px; }
  /* 工具页内联样式覆盖 */
  main.wrap { padding: 18px 14px 48px !important; }
  h1 { font-size: 22px !important; }
  .sub { font-size: 14px !important; margin-bottom: 16px !important; }
  .step-h { font-size: 16px !important; margin: 14px 0 10px !important; }
  .card { padding: 16px !important; }
  .card .foot, .card .sub-push { flex-wrap: wrap; gap: 10px; }
  .card .sub-push .btn { width: 100%; justify-content: center; }
  .card .foot .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 25px; }
  .btn { font-size: 13px; }
}
