/* PandaTrade 展示站 —— 手机端优先，大字体，简洁 */
:root {
  --brand: #0b57d0;
  --brand-dark: #0842a0;
  --brand-soft: #eaf1ff;
  --accent: #16a34a;
  --wa: #25d366;
  --wa-soft: #e8faf0;
  --ink: #0f172a;
  --muted: #5b6472;
  --line: #e6eaf2;
  --bg: #f6f8fb;
  --card: #ffffff;
  --warn: #f59e0b;
  --danger: #e11d48;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 980px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 14px; font-size: 18px; font-weight: 700;
  border: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(11, 87, 208, .28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-green { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(22, 163, 74, .28); }
.btn-ghost { background: #fff; color: var(--brand); border: 2px solid var(--line); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 30px; font-size: 20px; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.logo .dot { color: var(--accent); }
.topbar .btn { padding: 10px 18px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 56px 0 40px; }
.hero-badge { display: inline-block; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 8.4vw, 46px); line-height: 1.22; font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { font-size: clamp(18px, 4.8vw, 22px); color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-kws { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.kw { background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 15px; padding: 6px 14px; border-radius: 999px; }

/* ---------- 数据条 ---------- */
.statbar { background: var(--brand); color: #fff; border-radius: 20px; padding: 26px 20px; margin: 10px 0 8px; }
.statbar-inner { display: flex; justify-content: space-around; text-align: center; gap: 8px; }
.stat .num { font-size: clamp(28px, 7vw, 40px); font-weight: 900; line-height: 1.1; }
.stat .lbl { font-size: 14px; opacity: .85; margin-top: 4px; }

/* ---------- 章节 ---------- */
.section { padding: 48px 0 8px; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(24px, 6.4vw, 32px); font-weight: 900; letter-spacing: -.5px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 8px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 800; color: var(--brand); letter-spacing: 1px; margin-bottom: 8px; }

/* ---------- 卖点卡片 ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards.cols-2 { grid-template-columns: 1fr 1fr; } .cards.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; background: var(--brand-soft); }
.card h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card.green .icon { background: var(--wa-soft); }

/* ---------- 差异化 ---------- */
.diff { background: var(--ink); color: #fff; border-radius: 24px; padding: 34px 24px; }
.diff h2 { font-size: clamp(24px, 6.4vw, 30px); font-weight: 900; margin-bottom: 6px; }
.diff .lead { color: #cbd5e1; margin-bottom: 24px; }
.diff-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); }
.diff-item:first-of-type { border-top: none; }
.diff-item .no { font-size: 22px; font-weight: 900; color: var(--wa); min-width: 40px; }
.diff-item h4 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.diff-item p { color: #cbd5e1; font-size: 16px; }

/* ---------- 步骤 ---------- */
.steps { display: grid; gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- CTA / footer ---------- */
.cta { text-align: center; padding: 48px 0; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- 表单（demo） ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel-title { font-size: 19px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.panel-title .badge { font-size: 12px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 6px; padding: 2px 8px; }
.panel-hint { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.field label small { color: var(--muted); font-weight: 500; }
.input, .textarea, .select {
  width: 100%; padding: 14px 16px; font-size: 17px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink); font-family: inherit;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.textarea { min-height: 88px; resize: vertical; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: all .12s ease; user-select: none;
}
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.chip .tick { opacity: 0; }
.chip.on .tick { opacity: 1; }

.voice-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px; border-radius: 14px; border: 2px dashed var(--brand); background: var(--brand-soft); color: var(--brand); font-size: 18px; font-weight: 800; cursor: pointer; }
.voice-btn.rec { background: #fee2e2; border-color: var(--danger); color: var(--danger); }

/* ---------- 进度 ---------- */
.progress-bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; transition: width .4s ease; }
.stage-list { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 6px; }
.stage-pill { font-size: 13px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.stage-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.stage-pill.done { color: var(--accent); border-color: var(--accent); }
.counter { text-align: center; margin: 14px 0; }
.counter .big { font-size: clamp(40px, 11vw, 60px); font-weight: 900; color: var(--brand); line-height: 1; }
.counter .cap { color: var(--muted); font-size: 15px; margin-top: 4px; }

.log { background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 16px; max-height: 300px; overflow-y: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; line-height: 1.9; }
.log .line { display: flex; gap: 8px; }
.log .line .t { color: #64748b; flex-shrink: 0; }
.log .line.info { color: #93c5fd; }
.log .line.action { color: #e2e8f0; }
.log .line.success { color: #4ade80; }

/* ---------- 画像卡片 ---------- */
.persona-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .persona-grid { grid-template-columns: 1fr 1fr; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); cursor: pointer; transition: transform .1s, border-color .1s; }
.pcard:active { transform: scale(.99); }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pcard .name { font-size: 18px; font-weight: 800; line-height: 1.3; }
.pcard .role { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 2px 8px; margin-top: 6px; }
.pcard .loc { color: var(--muted); font-size: 14px; margin-top: 6px; }
.wa-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; background: var(--wa-soft); border-radius: 10px; }
.wa-row .wa-icon { color: var(--wa); font-size: 18px; }
.wa-row .wa-num { font-weight: 800; font-size: 16px; letter-spacing: .3px; }
.wa-row .wa-tag { margin-left: auto; font-size: 11px; color: var(--muted); }
.wa-row .wa-tag.ok { color: var(--accent); font-weight: 800; }
.wa-row .wa-tag.bad { color: #dc2626; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 12.5px; font-weight: 600; color: var(--muted); background: #f1f4f9; border-radius: 6px; padding: 3px 8px; }
.tag.hot { color: var(--accent); background: var(--wa-soft); }

/* ---------- 抽屉 ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; background: #fff; border-radius: 22px 22px 0 0; z-index: 91; transform: translateY(100%); transition: transform .25s ease; overflow-y: auto; padding: 20px 22px 32px; }
.drawer.open { transform: translateY(0); }
.drawer-handle { width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 18px; }
.drawer h3 { font-size: 22px; font-weight: 900; line-height: 1.3; }
.drawer .role { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 3px 10px; margin-top: 8px; }
.dl { margin-top: 18px; border-top: 1px solid var(--line); }
.dl-row { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dl-row dt { width: 92px; flex-shrink: 0; color: var(--muted); font-size: 15px; }
.dl-row dd { flex: 1; font-weight: 600; font-size: 16px; word-break: break-word; }
.dl-row dd a { color: var(--brand); }
.drawer .btn { margin-top: 18px; }

/* ---------- 口令弹窗 ---------- */
.pwd-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 96; display: none; align-items: center; justify-content: center; padding: 24px; }
.pwd-mask.open { display: flex; }
.pwd-box { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 340px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.pwd-title { font-size: 18px; font-weight: 800; }
.pwd-sub { font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.pwd-actions { display: flex; gap: 10px; margin-top: 16px; }
.pwd-actions .btn { flex: 1; padding: 13px; font-size: 16px; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
