/* ===== 开店选址分析 · 响应式样式（移动优先 + 桌面增强） ===== */
:root {
  --primary: #3557e8;
  --primary-dark: #2743c4;
  --primary-soft: #eef2ff;
  --ink: #0f172a;
  --text: #1f2937;
  --muted: #64748b;
  --border: #e5e9f2;
  --bg: #f5f7fb;
  --card: #ffffff;
  --green: #07c160;
  --green-dark: #06ad56;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 28px -12px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 48px -20px rgba(15, 23, 42, .25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  background-image: radial-gradient(1100px 380px at 50% -130px, #e8edff 0%, rgba(232, 237, 255, 0) 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
h1, h2 { line-height: 1.3; color: var(--ink); }
h1 { font-size: 22px; margin: 0 0 8px; letter-spacing: -0.3px; }
h2 { font-size: 17px; margin: 0 0 12px; }
em { color: #dc2626; font-style: normal; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* ===== 顶栏 ===== */
.topbar { background: linear-gradient(118deg, #1c2a72 0%, #2c47c9 48%, #3d63f0 100%);
          color: #fff; position: sticky; top: 0; z-index: 20;
          box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 6px 18px -10px rgba(23, 40, 120, .55); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .3px; }
.topbar-sub { font-size: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
              padding: 4px 12px; border-radius: 999px; }
@media (max-width: 520px) { .topbar-sub { display: none; } }

/* ===== 提示条 ===== */
.banner { padding: 8px 16px; font-size: 13px; text-align: center; }
.banner-demo { background: #fef3c7; color: #92400e; }
.banner-mock { background: #dbeafe; color: #1e40af; }

/* ===== 卡片 ===== */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
        padding: 20px; margin: 14px 0; box-shadow: var(--shadow-sm); }

/* ===== 首页 ===== */
.hero { padding: 34px 4px 10px; text-align: center; }
.hero h1 { font-size: 26px; }
.hl { background: linear-gradient(120deg, #3557e8, #7c3aed);
      -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); margin: 10px auto 0; max-width: 540px; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.hero-badges span { background: #fff; border: 1px solid var(--border); border-radius: 999px;
                    padding: 6px 14px; font-size: 13px; color: var(--muted); box-shadow: var(--shadow-sm); }
.home-grid { display: grid; gap: 14px; margin-top: 4px; }
.home-grid > .card, .home-grid > form.card { margin: 0; }
.home-side { display: grid; gap: 14px; align-content: start; }
.home-side .card { margin: 0; }
.sec-title { font-size: 15px; margin: 14px 0 8px; }
.crumb { margin: 12px 0 0; font-size: 14px; }

/* ===== 表单 ===== */
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=password], select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 16px; background: #fbfcfe; color: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus { outline: none; border-color: var(--primary); background: #fff;
                            box-shadow: 0 0 0 4px rgba(53, 87, 232, .12); }
.form-row { display: grid; gap: 0 14px; }
.btn { display: inline-block; border: none; border-radius: 12px; padding: 13px 20px;
       font-size: 16px; font-weight: 700; cursor: pointer; text-align: center;
       transition: transform .15s, box-shadow .15s, filter .15s; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: linear-gradient(135deg, #3f63f0, #2743c4); color: #fff;
               box-shadow: 0 10px 22px -10px rgba(53, 87, 232, .65); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(53, 87, 232, .7); }
.btn-primary:active { transform: none; filter: brightness(.96); }
.btn-pay { background: linear-gradient(135deg, #09d26a, #06ad56); color: #fff; font-size: 17px;
           box-shadow: 0 10px 22px -10px rgba(7, 193, 96, .6); }
.btn-pay:hover { transform: translateY(-1px); }
.btn-pay:active { transform: none; filter: brightness(.96); }
.btn-mini { padding: 6px 14px; font-size: 13px; background: #eef1f6; color: #374151; border-radius: 8px; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.alert { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 12px;
         padding: 10px 14px; margin: 12px 0; font-size: 14px; }

/* ===== 地图 ===== */
.pick-map, .pv-map { width: 100%; height: 240px; border-radius: 12px;
                     border: 1px solid var(--border); margin-bottom: 6px; overflow: hidden; }
.map-tip { font-size: 12.5px; color: var(--muted); }

/* ===== 统计块 ===== */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 4px; }
.stat-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { background: linear-gradient(180deg, #f8faff, #f2f5fd); border: 1px solid #e8edfb;
        border-radius: 12px; padding: 12px 8px; text-align: center; }
.stat-num { font-size: 23px; font-weight: 800; color: var(--primary);
            overflow-wrap: anywhere; letter-spacing: -0.5px; }
.stat-name { font-size: 12px; color: var(--muted); }

/* ===== 摘要页 ===== */
.pv-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.pv-icon { font-size: 34px; }
.pv-title { font-size: 19px; margin: 0; }
.pv-addr { margin: 2px 0 0; color: #4b5563; font-size: 14px; }
.locked-list { margin: 0 0 14px; padding-left: 20px; color: #374151; }
.locked-list li { margin: 6px 0; }

/* ===== 支付页 ===== */
.pay-card { text-align: center; }
.pay-title { font-size: 18px; }
.pay-amount { font-size: 40px; font-weight: 800; color: #07c160; margin: 6px 0; }
.pay-desc { margin: 0 0 2px; }
.qr-box { margin: 16px auto 8px; width: 220px; max-width: 70vw; padding: 10px;
          background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.qr-img { width: 100%; display: block; }
.pay-hint-strong { font-weight: 700; color: #b45309; }
.poll-status { margin-top: 16px; font-size: 13px; color: #6b7280; }

/* ===== 套餐选择（日卡 / 周卡 / 月卡） ===== */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 10px; margin: 6px 0 16px; }
.plan { position: relative; cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body { position: relative; border: 1.5px solid var(--border); border-radius: 14px;
             padding: 15px 8px 10px; text-align: center; background: #fbfcfe; transition: .15s; }
.plan input:checked + .plan-body { border-color: var(--primary); background: var(--primary-soft);
                                   box-shadow: 0 0 0 4px rgba(53, 87, 232, .10); }
.plan-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
            background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff;
            font-size: 11px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.plan-price { font-size: 20px; font-weight: 800; color: var(--primary); margin: 2px 0; letter-spacing: -0.5px; }
.plan-note { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* ===== 会员卡状态条 ===== */
.banner-card { background: #ecfdf5; color: #047857; }

/* ===== 顶栏用户区 ===== */
.topbar-right { display: flex; gap: 8px; align-items: center; }
.topbar-chip { color: #fff; font-size: 13px; background: rgba(255, 255, 255, .14);
               border: 1px solid rgba(255, 255, 255, .22); padding: 5px 12px; border-radius: 999px; }
.topbar-chip-primary { background: #fff; color: var(--primary); font-weight: 700; }

/* ===== 解锁区「更多方式」 ===== */
.more-plans { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 12px; }
.more-plans summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }

/* ===== 我的 ===== */
.me-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 0; }
.me-head h1 { margin: 0; }
.me-wallet-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.me-balance-num { font-size: 36px; font-weight: 800; color: var(--primary); letter-spacing: -1px; line-height: 1.1; }
.me-balance-label { font-size: 12px; color: var(--muted); }
.me-meta { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.history-item { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0;
                border-bottom: 1px dashed var(--border); align-items: center; }
.history-item:last-child { border-bottom: none; }
.history-addr { font-size: 14px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.history-sub { font-size: 12.5px; color: var(--muted); }
.history-side { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.history-fee { font-size: 13.5px; font-weight: 700; color: var(--primary); }
.fee-plus { color: var(--green); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; }
.pager-info { font-size: 13px; color: var(--muted); }

/* ===== 充值 ===== */
.plans-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .plans-3 { grid-template-columns: 1fr; } }
.plan-btn { width: 100%; border: none; background: none; padding: 0; cursor: pointer; font: inherit; }

/* ===== 限时钻明细 ===== */
.pack-list { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 10px; }
.pack-item { display: flex; justify-content: space-between; align-items: center;
             font-size: 13px; padding: 6px 0; color: var(--ink); }

/* ===== 地址联想下拉 ===== */
.addr-box { position: relative; }
.addr-tips { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
             background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
             box-shadow: 0 14px 36px rgba(15, 23, 42, .16); overflow: hidden;
             max-height: 330px; overflow-y: auto; }
.addr-tip { padding: 11px 15px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.addr-tip:last-child { border-bottom: none; }
.addr-tip:hover { background: #eff6ff; }
.addr-tip-name { font-size: 14px; font-weight: 600; color: #0f172a; }
.addr-tip-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* ===== 分析进度条 ===== */
.analyzing-card { padding: 44px 24px 36px; }
.prog-badge { font-size: 46px; margin-bottom: 6px; animation: slt-pulse 1.6s ease infinite; }
@keyframes slt-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.prog-num { font-size: 46px; font-weight: 800; color: #1d4ed8; margin: 12px 0 6px;
            font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.prog-bar { height: 13px; background: #e2e8f0; border-radius: 999px; overflow: hidden;
            margin: 6px 0 14px; }
.prog-fill { height: 100%; width: 0; border-radius: 999px; transition: width .6s ease;
             background: linear-gradient(90deg, #3b82f6, #1d4ed8 55%, #7c3aed); }
.prog-stage { font-weight: 600; color: #334155; min-height: 22px; margin-bottom: 6px; }
.prog-steps { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.prog-steps span { font-size: 12px; color: #64748b; background: #f1f5f9;
                   padding: 4px 12px; border-radius: 999px; }

/* ===== 报告页：冲击力头卡 ===== */
.rp-hero { border-radius: 20px; padding: 24px 22px; color: #fff; position: relative;
           overflow: hidden; box-shadow: 0 18px 40px rgba(29, 78, 216, .28);
           background: linear-gradient(135deg, #1e3a8a, #1d4ed8 55%, #6d28d9); }
.rp-hero.excellent { background: linear-gradient(135deg, #065f46, #059669 55%, #0d9488);
                     box-shadow: 0 18px 40px rgba(5, 150, 105, .3); }
.rp-hero.good { background: linear-gradient(135deg, #1e3a8a, #2563eb 55%, #0ea5e9); }
.rp-hero.fair { background: linear-gradient(135deg, #92400e, #d97706 55%, #f59e0b);
                box-shadow: 0 18px 40px rgba(217, 119, 6, .3); }
.rp-hero.weak { background: linear-gradient(135deg, #7f1d1d, #dc2626 55%, #f97316);
                box-shadow: 0 18px 40px rgba(220, 38, 38, .3); }
.rp-hero-top { display: flex; justify-content: space-between; align-items: center;
               font-size: 12.5px; opacity: .88; }
.rp-shop { font-weight: 700; font-size: 15px; }
.rp-addr { margin: 10px 0 16px; font-size: 14px; opacity: .95; word-break: break-all; }
.rp-score { display: flex; align-items: center; gap: 18px; }
.rp-score-num { font-size: 54px; font-weight: 900; line-height: 1;
                letter-spacing: -2px; text-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.rp-score-num span { font-size: 18px; font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.rp-score-side { flex: 1; min-width: 0; }
.rp-score-level { font-size: 16px; font-weight: 700; margin-bottom: 9px; }
.rp-score-bar { height: 10px; background: rgba(255, 255, 255, .3); border-radius: 999px;
                overflow: hidden; }
.rp-score-bar div { height: 100%; background: #fff; border-radius: 999px;
                    transition: width .9s ease; }

/* ===== 报告页：有利/不利因素对比 ===== */
.factor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .factor-grid { grid-template-columns: 1fr; } }
.factor-col { border-radius: 14px; padding: 14px 16px; border: 2px solid; }
.factor-pro { background: #f0fdf4; border-color: #bbf7d0; }
.factor-con { background: #fef2f2; border-color: #fecaca; }
.factor-head { font-weight: 800; margin-bottom: 8px; font-size: 15px; }
.factor-pro .factor-head { color: #15803d; }
.factor-con .factor-head { color: #b91c1c; }
.factor-col ul { list-style: none; margin: 0; padding: 0; }
.factor-col li { padding: 9px 0; border-top: 1px dashed rgba(15, 23, 42, .1);
                 font-size: 13.5px; line-height: 1.6; }
.factor-col li:first-child { border-top: none; }
.factor-col li b { display: block; margin-bottom: 2px; font-size: 14px; }
.factor-pro li b { color: #166534; }
.factor-con li b { color: #991b1b; }
.factor-col li span { color: #334155; }

/* ===== 报告页：名单下钻 ===== */
.ind-more { border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8;
            font-size: 12px; padding: 3px 11px; border-radius: 999px; cursor: pointer;
            margin-left: 8px; white-space: nowrap; font-family: inherit; }
.ind-more:hover { background: #dbeafe; }
.ind-more:disabled { opacity: .6; cursor: default; }
.poi-list { margin-top: 9px; border: 1px solid #e2e8f0; border-radius: 12px;
            max-height: 320px; overflow-y: auto; background: #f8fafc; }
.poi-item { display: flex; justify-content: space-between; gap: 12px;
            padding: 8px 13px; border-bottom: 1px solid #eef2f7; font-size: 13px; }
.poi-item:last-child { border-bottom: none; }
.poi-name { color: #0f172a; }
.poi-dist { color: #1d4ed8; font-weight: 600; white-space: nowrap; }
.poi-idx { width: 20px; height: 20px; border-radius: 50%; background: #e0e7ff;
           color: #1d4ed8; font-size: 11px; font-weight: 700; flex-shrink: 0;
           display: flex; align-items: center; justify-content: center; }

/* 有利/不利因素条目下钻 */
.factor-head-row { display: flex; align-items: center; justify-content: space-between;
                   gap: 8px; }
.factor-col li .factor-head-row b { display: inline-block; margin-bottom: 0; }
.factor-head-row .ind-more { margin-left: 0; flex-shrink: 0; }
.factor-col .poi-list { margin-top: 7px; }
.poi-more { display: block; width: 100%; padding: 9px; font-size: 13px; color: #1d4ed8;
            background: #fff; border: none; border-top: 1px solid #eef2f7;
            cursor: pointer; font-family: inherit; }
.poi-more:hover { background: #eff6ff; }
.poi-more:disabled { color: #94a3b8; cursor: default; }

/* ===== 报告页：客群释义词典 ===== */
.crowd-dict { margin-top: 14px; border: 1px solid #e2e8f0; border-radius: 12px;
              background: #f8fafc; }
.crowd-dict summary { padding: 11px 14px; cursor: pointer; font-size: 13.5px;
                      color: #1d4ed8; font-weight: 600; list-style: none; }
.crowd-dict summary::-webkit-details-marker { display: none; }
.crowd-dict summary::after { content: '▾'; float: right; color: #94a3b8;
                             transition: transform .2s; }
.crowd-dict[open] summary::after { transform: rotate(180deg); }
.dict-list { padding: 0 14px 10px; }
.dict-item { display: flex; gap: 9px; padding: 9px 0; border-top: 1px dashed #e8eef5;
             font-size: 13px; line-height: 1.65; }
.dict-item:first-child { border-top: none; }
.dict-icon { font-size: 17px; flex-shrink: 0; }
.dict-body { color: #475569; }
.dict-body b { color: #1e293b; }

/* ===== 报告页：租金参考 ===== */
.rent-stats { padding: 14px 16px; border-radius: 14px; margin-bottom: 10px;
              background: linear-gradient(135deg, #fffbeb, #fef3c7);
              border: 1px solid #fde68a; }
.rent-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rent-tag { font-size: 11px; font-weight: 700; color: #b45309; background: #fff;
            border: 1px solid #fde68a; padding: 2px 9px; border-radius: 999px;
            flex-shrink: 0; }
.rent-tag-real { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.rent-big { font-size: 28px; font-weight: 900; color: #b45309; line-height: 1.1;
            letter-spacing: -0.5px; }
.rent-big span { font-size: 14px; font-weight: 600; }
.rent-sub { font-size: 12.5px; color: #92400e; margin-top: 8px; line-height: 1.6; }
.rent-table { margin: 10px 0 2px; border: 1px solid #fde68a; border-radius: 12px;
              overflow: hidden; background: #fffbeb; }
.rent-trow { display: flex; justify-content: space-between; align-items: center;
             padding: 7px 13px; font-size: 13px; border-bottom: 1px solid #fef3c7; }
.rent-trow:last-child { border-bottom: none; }
.rent-trow span { color: #92400e; flex-shrink: 0; }
.rent-trow b { color: #78350f; }
.rent-calc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
             margin: 10px 0 2px; font-size: 13px; color: #92400e; }
.rent-calc input { width: 84px; padding: 6px 10px; border: 1px solid #fcd34d;
                   border-radius: 8px; font-size: 14px; font-family: inherit; }
#rent-total { font-weight: 700; color: #b45309; }
.pay-tips { margin-top: 12px; padding: 11px 14px; border-radius: 12px;
            background: #f8fafc; border: 1px solid #eef2f7; }
.pay-tips-title { font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.pay-tips ul { margin: 0; padding-left: 18px; }
.pay-tips li { font-size: 12.5px; color: #475569; line-height: 1.7; }

/* ===== 报告页：收藏与分享 ===== */
.report-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.report-actions form { margin: 0; }
.fav-btn { border: 1px solid #e2e8f0; background: #fff; color: #475569; font-size: 13px;
           padding: 7px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.fav-btn:hover { border-color: #fbbf24; }
.fav-btn.fav-on { background: #fffbeb; border-color: #fcd34d; color: #b45309; font-weight: 700; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
             border-radius: 12px; border: 1px solid #e2e8f0; background: #fff;
             color: #334155; font-size: 13.5px; font-weight: 600; cursor: pointer;
             text-decoration: none; font-family: inherit; }
.share-btn:hover { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.fav-del { border: none; background: none; cursor: pointer; font-size: 16px;
           padding: 4px 6px; }
.history-side form { display: inline; margin: 0; }

/* ===== 保本测算器 ===== */
.calc-hero { border-radius: 16px; padding: 18px 20px; color: #fff; margin: 8px 0 12px;
             text-align: center; }
.calc-good { background: linear-gradient(135deg, #047857, #10b981); }
.calc-mid { background: linear-gradient(135deg, #1d4ed8, #6d28d9); }
.calc-weak { background: linear-gradient(135deg, #b45309, #ea580c); }
.calc-hero-label { font-size: 13px; opacity: .9; }
.calc-hero-num { font-size: 44px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.2; }
.calc-hero-sub { font-size: 13.5px; opacity: .95; }
.scenario-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.scenario-item { padding: 11px 14px; border-radius: 12px; background: #f8fafc;
                 border: 1px solid #eef2f7; }
.scenario-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
                 font-size: 13.5px; color: #334155; }
.scenario-body { font-size: 13px; color: #475569; margin-top: 4px; }
.scenario-profit { color: #15803d; }
.calc-verdict { padding: 11px 14px; border-radius: 12px; font-size: 13.5px;
                font-weight: 600; line-height: 1.6; margin: 10px 0; }
.calc-v-good { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.calc-v-mid { background: #eff6ff; border: 1px solid #dbeafe; color: #1e40af; }
.calc-v-weak { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }

/* ===== 门店实地考察清单 ===== */
.check-list { display: flex; flex-direction: column; gap: 2px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 4px;
              border-bottom: 1px dashed #eef2f7; font-size: 13.5px; line-height: 1.6;
              color: #334155; cursor: pointer; }
.check-item:last-child { border-bottom: none; }
.check-item input { margin-top: 3px; width: 17px; height: 17px;
                    accent-color: #1d4ed8; flex-shrink: 0; }
.check-item input:checked + span { color: #94a3b8; text-decoration: line-through; }

/* ===== 邀请有奖 ===== */
.invite-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px;
              flex-wrap: wrap; }
.invite-code { font-size: 24px; font-weight: 800; letter-spacing: 3px; color: #1d4ed8;
               font-family: ui-monospace, Consolas, monospace; background: #eff6ff;
               border: 1px dashed #bfdbfe; border-radius: 12px; padding: 8px 16px; }

/* ===== 多地址对比 ===== */
.report-pick { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.pick-item { display: flex; gap: 10px; align-items: center; padding: 11px 13px;
             border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7;
             cursor: pointer; }
.pick-item input { width: 18px; height: 18px; accent-color: #1d4ed8; flex-shrink: 0; }
.pick-info { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px;
             min-width: 0; }
.pick-info b { color: #0f172a; }
.cmp-scroll { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.cmp-table th, .cmp-table td { border: 1px solid #eef2f7; padding: 9px 11px;
                               text-align: left; vertical-align: top; }
.cmp-table thead th { background: #f8fafc; }
.cmp-best { background: #fffbeb; }
.cmp-best-tag { font-size: 11px; color: #b45309; }
.cmp-table td:first-child { color: #64748b; white-space: nowrap; background: #fafcff; }
.cmp-score { font-size: 16px; }
.cmp-excellent { color: #059669; }
.cmp-good { color: #1d4ed8; }
.cmp-fair { color: #d97706; }
.cmp-weak { color: #dc2626; }
.cmp-tag { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; }
.cmp-high { background: #fef2f2; color: #b91c1c; }
.cmp-mid { background: #fffbeb; color: #b45309; }
.cmp-low { background: #f0fdf4; color: #15803d; }
.rent-real { display: flex; gap: 10px; align-items: flex-start; padding: 10px 13px;
             border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7;
             font-size: 13px; line-height: 1.65; color: #475569; margin-bottom: 8px; }
.rent-real b { color: #1d4ed8; }
.rent-form-wrap { margin-top: 10px; }
.rent-form-wrap summary { font-size: 13.5px; color: #1d4ed8; cursor: pointer;
                          font-weight: 600; list-style: none; }
.rent-form-wrap summary::-webkit-details-marker { display: none; }
.rent-form-wrap summary::before { content: '▸ '; }
.rent-form-wrap[open] summary::before { content: '▾ '; }
.rent-form { margin-top: 12px; }

/* ===== 报告页：门面挑选攻略 ===== */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-col { border-radius: 14px; padding: 12px 15px; border: 2px solid; }
.guide-good { background: #f0fdf4; border-color: #bbf7d0; }
.guide-bad { background: #fff7ed; border-color: #fed7aa; }
.guide-title { font-weight: 800; font-size: 14.5px; margin-bottom: 7px; }
.guide-good .guide-title { color: #15803d; }
.guide-bad .guide-title { color: #c2410c; }
.guide-col ul { list-style: none; margin: 0; padding: 0; }
.guide-col li { padding: 7px 0; border-top: 1px dashed rgba(15, 23, 42, .08);
                font-size: 13px; line-height: 1.6; color: #475569; }
.guide-col li:first-child { border-top: none; }
.guide-col li b { color: #1e293b; }
.guide-special { margin-top: 12px; padding: 11px 14px; border-radius: 12px;
                 background: #eff6ff; border: 1px solid #dbeafe;
                 font-size: 13px; line-height: 1.65; color: #334155; }
.concl-hero { display: flex; align-items: center; gap: 16px; padding: 16px 18px;
              border-radius: 16px; background: linear-gradient(135deg, #f0f7ff, #f5f3ff);
              border: 1px solid #dbeafe; margin-bottom: 14px; }
.concl-num { font-size: 44px; font-weight: 900; color: #1d4ed8; line-height: 1;
             letter-spacing: -1.5px; flex-shrink: 0; }
.concl-num span { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.concl-verdict { min-width: 0; }
.concl-verdict-big { font-size: 16.5px; font-weight: 800; color: #1e293b; margin-bottom: 3px; }
.concl-verdict-sub { font-size: 13px; color: #64748b; }
.concl-stars { color: #f59e0b; font-size: 15px; letter-spacing: 3px; margin-top: 4px; }
.advice-list { display: flex; flex-direction: column; gap: 9px; }
.advice-title { font-size: 13.5px; font-weight: 700; color: #334155; margin-bottom: 2px; }
.advice-item { display: flex; gap: 11px; padding: 11px 13px; border-radius: 12px;
               background: #f8fafc; border: 1px solid #eef2f7; }
.advice-icon { font-size: 19px; flex-shrink: 0; line-height: 1.4; }
.advice-body { font-size: 13.5px; line-height: 1.6; color: #475569; }
.advice-body b { display: block; color: #1e293b; margin-bottom: 1px; font-size: 14px; }
.concl-more { margin-top: 12px; }
.concl-more summary { font-size: 12.5px; color: #94a3b8; cursor: pointer; list-style: none; }
.concl-more summary::-webkit-details-marker { display: none; }
.concl-more summary::before { content: '▸ '; }
.concl-more[open] summary::before { content: '▾ '; }
.concl-more .concl-text { font-size: 13px; color: #64748b; margin-top: 8px; line-height: 1.7; }

/* ===== 报告页：客群图标 ===== */
.crowd-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 480px) { .crowd-hero { grid-template-columns: 1fr; } }
.crowd-big { display: flex; align-items: center; gap: 13px; padding: 14px 16px;
             border-radius: 14px; background: linear-gradient(135deg, #eff6ff, #f5f3ff);
             border: 1px solid #dbeafe; }
.crowd-top { background: linear-gradient(135deg, #1d4ed8, #6d28d9);
             border-color: transparent; box-shadow: 0 10px 24px rgba(29, 78, 216, .25); }
.crowd-icon { font-size: 36px; line-height: 1; }
.crowd-name { font-weight: 700; font-size: 15px; color: #1e293b; }
.crowd-pct { font-size: 20px; font-weight: 800; color: #1d4ed8; margin-top: 2px; }
.crowd-top .crowd-name { color: #fff; }
.crowd-top .crowd-pct { color: #e0e7ff; }
.group-icon { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; }

/* ===== 报告页：主要消费群体（环形图） ===== */
.crowd-lead { font-size: 15.5px; color: #334155; margin: 2px 0 4px; line-height: 1.6; }
.crowd-lead b { color: #1d4ed8; font-size: 17px; }
.crowd-sub { font-size: 13px; color: #64748b; margin: 0 0 18px; line-height: 1.6; }
.donut-flex { display: flex; gap: 26px; align-items: center; }
@media (max-width: 560px) { .donut-flex { flex-direction: column; gap: 18px; } }
.donut { width: 182px; height: 182px; border-radius: 50%; position: relative;
         flex-shrink: 0; animation: donut-pop .7s cubic-bezier(.2, .8, .3, 1.1);
         box-shadow: 0 14px 34px rgba(29, 78, 216, .2); }
@keyframes donut-pop { from { transform: scale(.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.donut-hole { position: absolute; inset: 30px; background: #fff; border-radius: 50%;
              display: flex; flex-direction: column; align-items: center; justify-content: center;
              box-shadow: inset 0 2px 10px rgba(15, 23, 42, .07); }
.donut-icon { font-size: 33px; line-height: 1; }
.donut-name { font-size: 12.5px; font-weight: 700; color: #334155; margin-top: 4px; }
.donut-pct { font-size: 21px; font-weight: 800; color: #1d4ed8; line-height: 1.2; }
.legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; width: 100%; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-icon { font-size: 15px; flex-shrink: 0; }
.legend-name { color: #334155; width: 80px; flex-shrink: 0; white-space: nowrap; }
.legend-bar { flex: 1; height: 7px; background: #f1f5f9; border-radius: 999px;
              overflow: hidden; min-width: 36px; }
.legend-bar span { display: block; height: 100%; border-radius: 999px; }
.legend-pct { font-weight: 700; color: #0f172a; width: 40px; text-align: right; flex-shrink: 0; }

/* ===== 报告页：竞争强化卡片 ===== */
.comp-hero { display: flex; align-items: center; gap: 16px; border-radius: 16px;
             padding: 16px 18px; color: #fff; margin-bottom: 12px; }
.comp-high { background: linear-gradient(135deg, #b91c1c, #ea580c);
             box-shadow: 0 12px 28px rgba(220, 38, 38, .28); }
.comp-mid { background: linear-gradient(135deg, #b45309, #f59e0b);
            box-shadow: 0 12px 28px rgba(217, 119, 6, .26); }
.comp-low { background: linear-gradient(135deg, #047857, #10b981);
            box-shadow: 0 12px 28px rgba(5, 150, 105, .26); }
.comp-num { font-size: 46px; font-weight: 900; line-height: 1;
            letter-spacing: -1.5px; text-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.comp-num span { font-size: 16px; font-weight: 600; margin-left: 3px; letter-spacing: 0; }
.comp-level { font-size: 17px; font-weight: 800; }
.comp-sub { font-size: 12px; opacity: .88; margin-top: 3px; }
.comp-list { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.comp-list-title { font-size: 12.5px; color: #64748b; background: #f8fafc;
                   padding: 7px 13px; border-bottom: 1px solid #eef2f7; }
.comp-item { display: flex; align-items: center; gap: 10px; padding: 9px 13px;
             border-bottom: 1px solid #f1f5f9; font-size: 13.5px; }
.comp-item:last-child { border-bottom: none; }
.comp-rank { width: 21px; height: 21px; border-radius: 50%; background: #fee2e2;
             color: #b91c1c; font-size: 11.5px; font-weight: 700; flex-shrink: 0;
             display: flex; align-items: center; justify-content: center; }
.comp-name { flex: 1; min-width: 0; color: #0f172a;
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-dist { color: #b91c1c; font-weight: 700; white-space: nowrap; font-size: 12.5px;
             background: #fef2f2; padding: 3px 10px; border-radius: 999px; }

/* ===== 认证页 ===== */
.auth-card { max-width: 420px; margin: 24px auto; }

/* ===== 信息提示条 ===== */
.alert-info { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

/* ===== 新用户徽章 ===== */
.badge-hot { background: linear-gradient(120deg, #fff7ed, #ffedd5) !important;
             border-color: #fdba74 !important; color: #c2410c !important; font-weight: 700; }

/* ===== 报告页 ===== */
.report-title { font-size: 22px; margin: 4px 0; }
.score-card { text-align: center; background: linear-gradient(180deg, #ffffff 30%, #f6f8ff 100%); }
.score-num { font-size: 58px; font-weight: 800; line-height: 1.1; letter-spacing: -2px; }
.score-unit { font-size: 18px; font-weight: 600; margin-left: 2px; }
.score-level { font-weight: 600; margin-bottom: 10px; }
.score-bar { height: 10px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.score-bar-in { height: 100%; border-radius: 6px; }
.score-excellent .score-num, .score-excellent .score-level { color: #16a34a; }
.score-excellent .score-bar-in { background: #16a34a; }
.score-good .score-num, .score-good .score-level { color: #2563eb; }
.score-good .score-bar-in { background: #2563eb; }
.score-fair .score-num, .score-fair .score-level { color: #d97706; }
.score-fair .score-bar-in { background: #f59e0b; }
.score-weak .score-num, .score-weak .score-level { color: #dc2626; }
.score-weak .score-bar-in { background: #dc2626; }

.hl-list { text-align: left; margin: 14px 0 0; padding-left: 20px; }
.hl-list li { margin: 4px 0; }

.groups { margin-top: 4px; }
.group-row { display: grid; grid-template-columns: 76px 1fr 44px; align-items: center;
             gap: 8px; margin: 8px 0; }
.group-name { font-size: 13.5px; }
.group-bar { height: 12px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.group-bar-in { height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb);
                border-radius: 6px; }
.group-pct { font-size: 13px; color: #374151; text-align: right; }

.ind-list { margin-top: 4px; }
.ind-row { padding: 8px 0; border-bottom: 1px dashed #eef2f7; }
.ind-row:last-child { border-bottom: none; }
.ind-main { display: flex; justify-content: space-between; font-size: 14px; }
.ind-name { color: #374151; }
.ind-count { font-weight: 700; color: #1d4ed8; }
.ind-bar { height: 6px; background: #eef2f7; border-radius: 4px; overflow: hidden; margin-top: 5px; }
.ind-bar-in { height: 100%; background: linear-gradient(90deg, #7ea2ff, #3557e8); border-radius: 4px; }
.ind-samples { font-size: 12.5px; color: #6b7280; margin-top: 4px; }

.concl-text { font-size: 15px; }
.big-emoji { font-size: 44px; }

/* ===== 页脚 ===== */
.foot { margin: 34px 0 0; padding: 18px 0 30px; border-top: 1px solid var(--border);
        color: #94a3b8; font-size: 12px; text-align: center; }
.foot p { margin: 4px 0; }

/* ===== 管理后台 ===== */
.admin-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 0; }
.admin-head h1 { margin: 0; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid #eef2f7;
                                   text-align: left; white-space: nowrap; }
.admin-table th { background: #f8fafc; font-weight: 600; }
.td-addr { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tag { padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.tag-ok { background: #dcfce7; color: #15803d; }
.tag-warn { background: #fef9c3; color: #a16207; }
.tag-gray { background: #f3f4f6; color: #6b7280; }
.login-card { max-width: 380px; margin: 40px auto; }
.step-list { margin: 0; padding-left: 4px; list-style: none; }
.step-list li { margin: 8px 0; color: #374151; }

/* ===== 桌面端增强（≥ 920px 自动切换为宽屏布局） ===== */
@media (min-width: 920px) {
  .wrap { max-width: 1040px; }
  .hero { padding: 52px 4px 14px; }
  .hero h1 { font-size: 40px; letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
  .hero-badges { margin-top: 20px; }
  .home-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .pick-map { height: 320px; }
  .card { padding: 24px; }
  .report-title { font-size: 26px; }
  .pv-title { font-size: 22px; }
  .ind-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
  .score-num { font-size: 68px; }
  .pay-card { max-width: 480px; margin: 28px auto; }
  .qr-box { width: 260px; }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .stat-num { font-size: 26px; }
  .admin-table { font-size: 13.5px; }
  .steps-note { margin-top: 6px; }
}

/* ===== 客流时段推断 ===== */
.tl-table { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tl-row { display: grid; grid-template-columns: 92px 1fr 1fr; gap: 8px; align-items: center; }
.tl-head { font-size: 13px; color: #64748b; text-align: center; }
.tl-head .tl-name { text-align: left; }
.tl-name { font-size: 14px; color: #334155; }
.tl-cell { text-align: center; font-size: 13px; padding: 8px 0; border-radius: 8px; font-weight: 600; }
.heat-4 { background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; }
.heat-3 { background: #fde68a; color: #92400e; }
.heat-2 { background: #e0f2fe; color: #075985; }
.heat-1 { background: #f1f5f9; color: #94a3b8; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tl-peak { font-size: 13px; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; border-radius: 999px; padding: 4px 12px; }
.tl-notes { margin: 12px 0 0; padding-left: 18px; color: #475569; font-size: 14px; line-height: 1.8; }
.tl-notes li { margin-bottom: 2px; }

/* ===== 开业办证清单 ===== */
.permit-route { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.permit-step { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #334155; line-height: 1.6; }
.permit-idx { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #eef2ff; color: #4f46e5; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.permit-cycle { margin: 10px 0 0; font-size: 13px; color: #0f766e; background: #f0fdfa; border-radius: 8px; padding: 8px 12px; display: inline-block; }
.permit-specials { margin-top: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; color: #92400e; }
.permit-specials b { display: block; margin-bottom: 4px; }
.permit-specials ul { margin: 0; padding-left: 18px; line-height: 1.8; }

/* ===== 拆迁与规划核查指引 ===== */
.check-guide { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.guide-item { font-size: 14px; color: #334155; line-height: 1.7; background: #f8fafc; border-radius: 10px; padding: 10px 14px; }
.guide-item b { color: #0f172a; }
