:root {
  --brand: #2f6bff;
  --brand-dark: #1d4ed8;
  --brand-soft: #eef4ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6ebf3;
  --bg: #f7f9fc;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.site-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav .navbar-brand { font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.site-nav .navbar-brand span { color: var(--brand); }
.site-nav .nav-link { color: #334155; font-weight: 500; padding: 0.5rem 0.85rem !important; border-radius: 8px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand-dark); background: var(--brand-soft); }

.btn { border-radius: 10px; font-weight: 600; }
.btn-brand {
  background: linear-gradient(135deg, #3b82f6 0%, #2f6bff 60%, #1d4ed8 100%);
  color: #fff; border: none;
  box-shadow: 0 6px 18px rgba(47, 107, 255, .28);
}
.btn-brand:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c7d5ee; color: var(--brand-dark); }

.hero { padding: 72px 0 56px; background:
  radial-gradient(900px 380px at 12% -10%, #e7efff 0%, transparent 60%),
  radial-gradient(700px 320px at 100% 0%, #eef7ff 0%, transparent 55%);
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.05rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.22; }
.hero .lead { color: #475569; font-size: 1.1rem; max-width: 580px; }
.badge-soft {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--brand-soft); color: var(--brand-dark);
  border: 1px solid #dbe7ff; border-radius: 999px;
  padding: .32rem .8rem; font-size: .82rem; font-weight: 600;
}
.hero-stats { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-stats .num { font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.hero-stats .label { font-size: .82rem; color: var(--muted); }

.card-soft {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 12px 32px -18px rgba(15, 23, 42, .14);
}
.card-soft .card-body { padding: 1.5rem; }
.card-hover { transition: .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -20px rgba(15, 23, 42, .28); }

.mock-report {
  border-radius: 18px; overflow: hidden; border: 1px solid #dbe4f3;
  background: #fff; transform: rotate(.6deg);
  box-shadow: 0 30px 80px -32px rgba(23, 55, 118, .45);
}
.mock-report .bar { height: 34px; background: linear-gradient(90deg, #2f6bff, #60a5fa); }
.mock-report .body { padding: 1.15rem 1.25rem; }
.mock-topic { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; font-size: .85rem; }
.mock-topic .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.mock-topic .track { flex: 1; height: 7px; border-radius: 9px; background: #eef2f8; overflow: hidden; }
.mock-topic .fill { height: 100%; border-radius: 9px; background: linear-gradient(90deg, #93c5fd, #2f6bff); }
.mock-pain { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: .55rem .7rem; font-size: .8rem; color: #9a3412; margin-top: .6rem; }

.section { padding: 64px 0; }
.section-title { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); max-width: 660px; }

.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 1.25rem; margin-bottom: .9rem;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; flex: 0 0 auto;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.55rem; margin-bottom: .5rem; color: #334155; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; }

.cta-band {
  background: linear-gradient(120deg, #1e3a8a 0%, #2f6bff 55%, #60a5fa 100%);
  color: #fff; border-radius: 22px; padding: 46px 34px;
}
.cta-band h2 { font-weight: 800; letter-spacing: -0.02em; }
.cta-band .btn-light { font-weight: 700; }

footer.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 28px; color: var(--muted); }
footer.site-footer a { color: #475569; }
footer.site-footer a:hover { color: var(--brand-dark); }

/* ---------- 分析工作台 ---------- */
.wizard-head { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.wizard-step { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.wizard-step .idx { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e8eefb; color: #64748b; font-size: .85rem; }
.wizard-step.active { color: var(--ink); }
.wizard-step.active .idx { background: var(--brand); color: #fff; }
.wizard-step.done .idx { background: #dcfce7; color: #15803d; }

.scene-card {
  border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 1.25rem;
  cursor: pointer; transition: .16s ease; height: 100%;
}
.scene-card:hover { border-color: #bcd2ff; }
.scene-card.selected { border-color: var(--brand); background: #f6f9ff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .08); }
.scene-card .title { font-weight: 700; font-size: 1.05rem; }
.scene-card .desc { color: var(--muted); font-size: .86rem; margin-top: .25rem; }

.dropzone {
  border: 2px dashed #cbd7ea; border-radius: 16px; background: #fff;
  padding: 3.2rem 1.5rem; text-align: center; cursor: pointer; transition: .16s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: #f7faff; }
.dropzone .icon { font-size: 2.4rem; color: var(--brand); }
.dropzone .hint { color: var(--muted); font-size: .86rem; }

.preview-table { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.preview-table table { margin: 0; font-size: .84rem; }
.preview-table thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; white-space: nowrap; }
.preview-table td { max-width: 280px; vertical-align: top; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.stat-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.stat-box .value { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.stat-box .label { font-size: .8rem; color: var(--muted); }
.stat-box.accent { background: var(--brand-soft); border-color: #d6e4ff; }

/* 数据准备建议里的样例文件入口：加粗、深色，便于第一眼看到 */
.sample-file-link {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .85rem; padding: .65rem .8rem;
  border: 1px solid #d6e4ff; border-radius: 12px;
  background: var(--brand-soft);
  color: #0f172a; font-size: .9rem; font-weight: 700;
  text-decoration: none; line-height: 1.35;
}
.sample-file-link:hover { background: #e6efff; color: var(--brand-dark); }
.sample-file-link .bi { color: var(--brand); font-size: 1.05rem; }
.sample-file-link .sub { display: block; color: #475569; font-weight: 500; font-size: .78rem; margin-top: .1rem; }

/* 恢复上次上传数据的提示条 */
.restore-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border: 1px solid #bfe0cf; background: #f1fbf5; border-radius: 14px;
  padding: .85rem 1rem; margin-bottom: 1.5rem;
}
.restore-bar .restore-title { font-weight: 700; color: #14532d; font-size: .92rem; }
.restore-bar .restore-meta { color: #4b6455; font-size: .8rem; }

/* 解锁页支付宝支付面板 */
.pay-box {
  border: 1px solid #d6e4ff; background: #f7faff; border-radius: 14px;
  padding: 1rem 1.1rem;
}
.pay-box .bi-alipay { color: #1677ff; }

.form-note { font-size: .82rem; color: var(--muted); }
.loading-mask {
  position: fixed; inset: 0; background: rgba(255, 255, 255, .72); backdrop-filter: blur(3px);
  display: none; place-items: center; z-index: 1080;
}
.loading-mask.show { display: grid; }
.loading-card { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 1.5rem 2rem; text-align: center; box-shadow: 0 20px 60px -20px rgba(15, 23, 42, .3); }

/* ---------- 任务进度 ---------- */
.task-wrap { max-width: 760px; margin: 0 auto; }
.progress { height: 12px; border-radius: 99px; background: #e8eef8; }
.progress-bar { background: linear-gradient(90deg, #60a5fa, #2f6bff); border-radius: 99px; transition: width .5s ease; }
.task-stage { font-weight: 600; color: #334155; }
.pulse-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

/* ---------- 报告 ---------- */
.report-head { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 22px; }
.report-title { font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; }
.chip { display: inline-flex; align-items: center; gap: .3rem; background: #f1f5fb; color: #475569; border-radius: 999px; padding: .22rem .7rem; font-size: .78rem; font-weight: 500; }
.chip.ok { background: #e9f9ef; color: #15803d; }
.chip.warn { background: #fff4e5; color: #b45309; }
.chip.danger { background: #fdecec; color: #b91c1c; }
.chip.info { background: var(--brand-soft); color: var(--brand-dark); }

.metric-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; height: 100%; }
.metric-card .value { font-size: 1.7rem; font-weight: 800; line-height: 1.15; }
.metric-card .label { font-size: .8rem; color: var(--muted); }

.report-section { padding: 34px 0; scroll-margin-top: 116px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.section-head h2 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.section-head .sub { color: var(--muted); font-size: .86rem; }

.topic-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem; }
.topic-card .topic-title { font-weight: 700; font-size: 1.05rem; }
.kw { display: inline-block; background: #f2f6fd; color: #334155; border-radius: 7px; padding: .1rem .5rem; margin: 0 .3rem .3rem 0; font-size: .78rem; }
.sentiment-正面 { color: #15803d; background: #e9f9ef; }
.sentiment-中性 { color: #475569; background: #f1f5f9; }
.sentiment-负面 { color: #b91c1c; background: #fdecec; }

.evidence-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.evidence-list li { border-left: 3px solid #dbe7ff; padding: .4rem .75rem; margin-bottom: .5rem; background: #fafcff; font-size: .87rem; color: #334155; border-radius: 0 8px 8px 0; }
.evidence-list .meta { font-size: .74rem; color: var(--muted); margin-top: .15rem; }

.rank-row { display: flex; gap: .8rem; align-items: flex-start; }
.rank-no { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; font-weight: 800; background: var(--brand-soft); color: var(--brand-dark); }
.freq-bar { height: 6px; background: #eef2f8; border-radius: 99px; overflow: hidden; margin-top: .5rem; }
.freq-bar .fill { height: 100%; background: linear-gradient(90deg, #93c5fd, #2f6bff); }

.opp-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 1.25rem; height: 100%; }
.opp-card .type-badge { font-size: .74rem; font-weight: 700; padding: .15rem .55rem; border-radius: 6px; }
.type-产品 { background: #eef2ff; color: #3730a3; }
.type-内容 { background: #ecfeff; color: #0e7490; }
.type-服务 { background: #fef3c7; color: #92400e; }

.locked-wrap { position: relative; border-radius: 14px; overflow: hidden; }
.locked-blur { filter: blur(6px); pointer-events: none; user-select: none; opacity: .6; }
.locked-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.94));
  padding: 1.5rem;
}
.locked-overlay .box { max-width: 460px; }

.ai-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: .65rem .9rem; font-size: .84rem; }

.comment-table { font-size: .85rem; }
.comment-table td { vertical-align: top; }

.report-nav { position: sticky; top: 57px; z-index: 900; background: rgba(247,249,252,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.report-nav a { display: inline-block; padding: .55rem .7rem; color: #475569; font-size: .85rem; font-weight: 600; }
.report-nav a:hover { color: var(--brand); }

@media (max-width: 767px) {
  .hero { padding: 44px 0 32px; }
  .section { padding: 44px 0; }
  .mock-report { transform: none; margin-top: 1.5rem; }
}

@media print {
  .site-nav, .site-footer, .report-nav, .no-print, .btn { display: none !important; }
  body { background: #fff; }
  .card-soft, .topic-card, .opp-card, .metric-card { box-shadow: none; border-color: #ddd; }
  .report-section { padding: 18px 0; }
}
