/* ImmoExpert H5 设计系统 —— 与报告同语言（绿 #15795b、克制中性、tabular 数字） */
:root{
  --ink:#1b211f; --muted:#5f6b66; --faint:#8a938f; --line:#e4e8e6; --line2:#d8dddb;
  --bg:#f4f6f5; --card:#fff; --accent:#15795b; --accent-soft:#e7f1ec; --accent-ring:#cfe6dc;
  --warn:#b0524b; --warn-soft:#fbeeec;
  --r-sm:8px; --r:10px; --r-lg:12px;
  --shadow-card:0 2px 14px rgba(27,33,31,.07); --shadow-pop:0 -4px 16px rgba(27,33,31,.08);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'IBM Plex Sans',-apple-system,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC","Segoe UI",sans-serif;
  font-variant-numeric:tabular-nums; line-height:1.6; -webkit-font-smoothing:antialiased;
}
.wrap{max-width:560px; margin:0 auto; padding:28px 20px 40px;}
a{color:var(--accent); text-decoration:none}

/* 排版 */
.eyebrow{font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); font-weight:600;}
h1{font-size:23px; line-height:1.3; font-weight:700; margin:10px 0 8px;}
.sub{color:var(--muted); font-size:14px; line-height:1.55; margin:0;}
.sec-title{font-size:11.5px; letter-spacing:.05em; font-weight:600; color:var(--muted); margin:0;}
.note{color:var(--faint); font-size:12px;}
.center{text-align:center}

/* 徽章 / chip */
.badge{display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px;
  background:var(--accent-soft); color:var(--accent); font-size:11.5px; font-weight:600;}
.badge svg{width:14px;height:14px}

/* 卡片 */
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:18px; box-shadow:var(--shadow-card);}
.stack{display:flex; flex-direction:column;}
.gap-s{gap:8px} .gap-m{gap:14px} .gap-l{gap:18px}

/* 按钮 */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%;
  background:var(--accent); color:#fff; border:0; border-radius:var(--r); padding:14px 18px;
  font-size:16px; font-weight:700; font-family:inherit; cursor:pointer;
  transition:transform .08s ease, filter .15s ease;}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform:translateY(1px) scale(.985)}
.btn[disabled]{opacity:.7; cursor:default}
.btn-outline{background:var(--accent-soft); color:var(--accent); border:1px solid var(--accent);}
.btn-outline:hover{filter:brightness(.99)}

/* 表单：标签在上 + 聚焦环（无占位符当标签） */
.field{display:flex; flex-direction:column; gap:6px; width:100%}
.field>label{font-size:12.5px; font-weight:500; color:var(--muted)}
.field .hint{font-size:11px; color:var(--faint)}
.field input,.field select{width:100%; padding:12px 13px; font-size:16px; font-family:inherit;
  color:var(--ink); background:#fff; border:1px solid var(--line2); border-radius:var(--r-sm);
  appearance:none; transition:border-color .15s ease, box-shadow .15s ease;}
.field input:focus,.field select:focus{outline:0; border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-ring);}
.field input::placeholder{color:#aab2ae; font-weight:400;}
.field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6b66' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; padding-right:36px;}

/* 速览：街区均价 */
.snap .k{color:var(--muted); font-size:13px}
.snap .v{font-size:26px; font-weight:700; color:var(--accent); line-height:1.1; margin:4px 0}

/* 市场脉搏 */
.pulse .range-row{display:flex; align-items:center; gap:8px}
.pulse .range-row .end{font-size:13px; font-weight:700; color:var(--ink)}
.pulse .track{flex:1; height:14px; border-radius:999px; background:var(--accent-soft);
  display:flex; align-items:center; justify-content:center;}
.pulse .q{width:20px; height:20px; border-radius:999px; background:var(--accent);
  color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center;}
.pulse .cap{font-size:12px; color:var(--muted)}
.pulse .cap b{color:var(--accent)}
.pulse .trend-head{display:flex; justify-content:space-between; align-items:center}
.pulse .yoy{font-size:15px; font-weight:700; color:var(--accent)}
.bars{display:flex; align-items:flex-end; gap:18px}
.bars .col{display:flex; flex-direction:column; align-items:center; gap:4px}
.bars .col .pm{font-size:11px; font-weight:600; color:var(--ink)}
.bars .col .bar{width:30px; background:var(--accent); border-radius:4px 4px 0 0}
.bars .col .yr{font-size:10.5px; color:var(--muted)}

/* 付费预告 / 提示块 */
.paynote{display:flex; gap:9px; align-items:flex-start; padding:13px; border-radius:var(--r);
  background:var(--accent-soft);}
.paynote svg{width:15px;height:15px;flex:0 0 auto;margin-top:2px;color:var(--accent)}
.paynote .t1{font-size:12.5px; color:var(--ink); line-height:1.45}
.paynote .t2{font-size:12.5px; color:var(--muted); line-height:1.45}

/* 特性列表 */
.feat{display:flex; gap:10px; align-items:center}
.feat .ic{width:30px;height:30px;border-radius:var(--r-sm);background:var(--accent-soft);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.feat .ic svg{width:16px;height:16px;color:var(--accent)}
.feat .tx{font-size:13px; line-height:1.35; color:#2a322e}

/* 付费墙（报告末尾静态面板；底部 sticky CTA 由 app.py 的 slim 条负责） */
.upsell{background:var(--card); border-top:2px solid var(--accent);
  padding:22px 18px 28px; scroll-margin-top:56px;}
.upsell .inner{max-width:520px; margin:0 auto; text-align:center; display:flex;
  flex-direction:column; align-items:center; gap:9px}
.upsell .price{font-size:17px; font-weight:700; color:var(--accent)}
.upsell .qr{width:120px;height:120px;border-radius:var(--r);object-fit:cover;
  border:1px solid var(--line2); background:#f7faf9}
.upsell .hint{font-size:13px; color:var(--ink)}
.upsell .flow{width:100%; padding:11px; border-radius:var(--r-sm); background:var(--accent-soft); text-align:left}
.upsell .flow .f1{font-size:11.5px; color:var(--ink); line-height:1.5}
.upsell .flow .f2{font-size:11px; color:var(--muted); line-height:1.45; margin-top:3px}
.upsell form{display:flex; gap:6px; width:100%}
.upsell form input{flex:1; padding:11px 12px; font-size:15px; font-family:inherit;
  border:1px solid var(--line2); border-radius:var(--r-sm);}
.upsell form input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}
.upsell form button{padding:11px 18px; border:0; border-radius:var(--r-sm);
  background:var(--accent); color:#fff; font-weight:700; font-family:inherit; cursor:pointer}
.upsell .em-help{font-size:11.5px; color:var(--faint)}
.upsell .warn{display:flex; gap:8px; padding:11px; border-radius:var(--r-sm);
  background:var(--warn-soft); color:var(--warn); font-size:12.5px; line-height:1.4; text-align:left}
.upsell .appeal{font-size:11.5px; font-weight:500}

/* H5 报告页注入条 */
.h5-bar{max-width:860px; margin:0 auto; padding:10px 16px; font-size:13px;}
.h5-edit{display:block}
.h5-inline-cta{display:flex; align-items:center; justify-content:center; gap:6px;
  margin:0 auto; max-width:820px; padding:11px 16px; border-radius:var(--r-sm);
  background:var(--accent-soft); border:1px solid var(--accent); color:var(--accent);
  font-weight:700; font-size:14px; text-decoration:none}
.h5-download{position:sticky;bottom:0;background:var(--accent);text-align:center;padding:15px 18px}
.h5-download a{color:#fff;font-weight:700;font-size:16px}

/* 生成中 */
.gen{min-height:60vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:16px; padding:40px 36px;}
.spinner{width:54px;height:54px;border-radius:50%;border:4px solid var(--accent-soft);
  border-top-color:var(--accent); animation:spin .9s linear infinite}
.gen-title{font-size:18px;font-weight:700}
.gen-sub{font-size:13px;color:var(--muted);line-height:1.5;max-width:300px}

/* hero 图标 */
.hero-ic{width:46px;height:46px;border-radius:14px;background:var(--accent-soft);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.hero-ic svg{width:22px;height:22px;color:var(--accent)}

/* 行式列表（找回报告等）—— 发丝线分隔，胜过一堆阴影卡 */
.list-head{font-size:11.5px;letter-spacing:.05em;font-weight:600;color:var(--muted)}
.rowlist{display:flex;flex-direction:column}
.rowlist .row{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:13px 2px;border-bottom:1px solid var(--line);text-decoration:none;
  transition:background .12s ease}
.rowlist .row:last-child{border-bottom:0}
.rowlist .row:active{background:var(--bg)}
.rowlist .rowmain{min-width:0;flex:1}
.rowlist .date{display:block;font-size:11px;letter-spacing:.04em;color:var(--faint)}
.rowlist .addr{display:block;margin-top:2px;color:var(--ink);font-weight:600;font-size:13px;
  line-height:1.35;text-transform:uppercase}
.rowlist .rowside{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.rowlist .chev{color:var(--faint)}
.pill{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;
  font-size:11.5px;font-weight:600;white-space:nowrap}
.pill-ok{background:var(--accent-soft);color:var(--accent)}
.pill-mut{background:#f0f3f2;color:var(--muted)}

/* 空态 */
.empty{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;
  padding:14px 8px;color:var(--muted);font-size:13px;line-height:1.5}
.empty .ec{width:44px;height:44px;border-radius:50%;background:var(--bg);
  display:flex;align-items:center;justify-content:center}
.empty .ec svg{width:22px;height:22px;color:var(--faint)}

/* ===== 动效 ===== */
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes revealBlur{from{filter:blur(7px);opacity:.45}to{filter:none;opacity:1}}
[data-anim]{animation:fadeUp .4s both}
.reveal{animation:revealBlur .5s both}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important}
  .spinner{border-top-color:var(--accent)}
}
