/* EZbuy 报告原型样式 —— 移动优先，浅色底 + 黑/橙品牌色 */

:root {
  --bg: #f6f4f1;
  --card: #ffffff;
  --ink: #17181a;
  --dim: #6b6963;
  --line: #e6e2db;
  --accent: #e85d04;
  --accent-2: #c94a00;
  --accent-soft: #fff2e8;
  --dark: #141416;
  --ok: #2f8f5b;
  --warn: #b7791f;
  --bad: #c0392b;
  --r: 14px;
  --shadow: 0 1px 2px rgba(20,20,22,.05), 0 6px 18px rgba(20,20,22,.04);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

b { font-weight: 700; }
.hidden { display: none !important; }

/* ---------- 顶部 ---------- */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.appbar-in {
  max-width: 720px; margin: 0 auto; padding: 11px 16px;
  display: flex; align-items: baseline; gap: 8px;
}
.logo { font-size: 1.22rem; font-weight: 800; letter-spacing: -.4px; color: var(--dark); }
.logo em { font-style: normal; color: var(--accent); }
.logo-sub { font-size: .74rem; color: var(--dim); letter-spacing: 1.4px; }
.chip-demo {
  margin-left: auto; font-size: .66rem; font-weight: 700; letter-spacing: .6px;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid #ffd9bf; border-radius: 999px; padding: 2px 9px;
}

/* ---------- 容器 ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 56px; }

/* ---------- 输入区 ---------- */
.intake { padding: 26px 0 8px; }
.intake h1 {
  font-size: 1.46rem; line-height: 1.32; font-weight: 800;
  margin: 0 0 10px; letter-spacing: -.4px;
}
.intake h1 span { color: var(--accent); }
.lede { margin: 0 0 18px; color: var(--dim); font-size: .92rem; }

.intake-box {
  display: flex; gap: 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: var(--shadow);
}
.intake-box input {
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  font-size: .92rem; color: var(--ink); padding: 9px 10px;
  font-family: inherit;
}
.intake-box input::placeholder { color: #a9a49b; }
.intake-box button {
  border: none; background: var(--accent); color: #fff;
  font-weight: 700; font-size: .9rem; padding: 9px 20px;
  border-radius: 9px; cursor: pointer; font-family: inherit;
}
.intake-box button:active { background: var(--accent-2); }

.samples {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin: 12px 0 18px;
}
.samples-label { font-size: .78rem; color: var(--dim); }
.sample-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: .78rem; padding: 5px 11px; border-radius: 999px;
  cursor: pointer; font-family: inherit;
}
.sample-btn:active { border-color: var(--accent); color: var(--accent); }

.disclaimer-note {
  background: #fbf8f4; border: 1px solid #efe7dc; border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 12px 14px; font-size: .8rem; color: #5f5a52;
}
.disclaimer-note b { color: var(--ink); }
.disclaimer-note p { margin: 4px 0 0; }

/* ---------- 报告容器 ---------- */
.report { padding-top: 4px; }
.rp { display: flex; flex-direction: column; gap: 12px; }

.rp-top { display: flex; align-items: flex-start; gap: 12px; padding-top: 6px; }
.grade {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 14px; flex-shrink: 0;
  color: #fff; line-height: 1.05;
}
.grade b { font-size: 1.7rem; font-weight: 800; }
.grade span { font-size: .62rem; opacity: .9; }
.grade em { font-style: normal; font-size: .56rem; opacity: .85; margin-top: 3px; }
.gA { background: linear-gradient(150deg, #2f8f5b, #226c44); }
.gB { background: linear-gradient(150deg, #c98a1f, #a06c12); }
.gC { background: linear-gradient(150deg, #8b8780, #6b675f); }
.rp-meta { font-size: .74rem; color: var(--dim); padding-top: 4px; }
.rp-meta b { color: var(--ink); font-weight: 600; }
.rp-url { color: #9a948a; word-break: break-all; margin-top: 2px; }

/* 商品卡 */
.prod {
  display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px; box-shadow: var(--shadow);
}
.prod img {
  width: 78px; height: 78px; object-fit: contain; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); flex-shrink: 0;
}
.noimg {
  width: 78px; height: 78px; border-radius: 10px; flex-shrink: 0;
  background: #f2efe9; color: #a9a49b; display: flex; align-items: center;
  justify-content: center; font-size: .72rem;
}
.prod-info { min-width: 0; }
.prod-brand {
  font-size: .68rem; font-weight: 800; color: var(--accent);
  letter-spacing: 1.2px; text-transform: uppercase;
}
.prod-title { font-size: .88rem; font-weight: 600; line-height: 1.45; margin: 2px 0 6px; }
.prod-meta { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--dim); flex-wrap: wrap; }
.rating { color: #e8890c; font-weight: 700; }
.sku { margin-left: auto; color: #a9a49b; font-size: .68rem; }

/* 结论条 */
.verdict { border-radius: var(--r); padding: 13px 15px; color: #fff; }
.verdict .v-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.v-badge { font-size: 1.02rem; font-weight: 800; letter-spacing: .5px; }
.v-conf { margin-left: auto; font-size: .68rem; opacity: .82; }
.verdict p { margin: 0; font-size: .85rem; line-height: 1.55; opacity: .95; }
.v-buy { background: linear-gradient(120deg, #e85d04, #c94a00); }
.v-wait { background: linear-gradient(120deg, #4a5568, #2d3748); }
.v-compare { background: linear-gradient(120deg, #b7791f, #8a5a12); }
.v-avoid { background: linear-gradient(120deg, #c0392b, #96271b); }
.v-unknown { background: linear-gradient(120deg, #7a756d, #5b574f); }

/* ---------- 六问卡片 ---------- */
.qcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px 15px 17px; box-shadow: var(--shadow);
}
.qhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qno {
  font-size: .64rem; font-weight: 800; letter-spacing: .5px;
  color: #fff; background: var(--dark); border-radius: 5px; padding: 2px 6px;
}
.qhead h3 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -.2px; }
.qtag {
  margin-left: auto; font-size: .66rem; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
}
.qconcl { margin: 0 0 12px; font-size: .88rem; }
.qconcl b { color: var(--accent-2); }
/* Q1 结论行里的「比价榜排名第 N 名」（2026-11-09 用户要求加在现价之后） */
.qrank { color: var(--dim); }
.qrank b { color: var(--ink); font-variant-numeric: tabular-nums; }
.qrank.top b { color: var(--ok); }

/* 图表 */
.chart-wrap { margin: 4px 0 10px; }
.chart { width: 100%; height: 92px; display: block; }
.chart-axis { display: flex; justify-content: space-between; font-size: .66rem; color: #a9a49b; margin-top: 3px; }

.pct { margin: 10px 0 12px; }
.pct-head { display: flex; align-items: baseline; gap: 8px; font-size: .8rem; }
.pct-head b { color: var(--accent-2); }
.pct-head span { color: var(--dim); font-size: .74rem; margin-left: auto; }
.pct-track {
  position: relative; height: 6px; border-radius: 99px; margin: 7px 0 2px;
  background: linear-gradient(90deg, #cfe8da 0%, #f5e6c8 45%, #f3c9c1 100%);
}
.pct-track i {
  position: absolute; top: 50%; width: 3px; height: 14px; border-radius: 2px;
  background: var(--dark); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #fff;
}
.pct-scale { display: flex; justify-content: space-between; font-size: .64rem; color: #a9a49b; }

.stat-row { display: flex; gap: 8px; margin: 12px 0 6px; }
.stat-row > div {
  flex: 1; background: #faf8f5; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; text-align: center;
}
.stat-row b { display: block; font-size: .88rem; }
.stat-row span { font-size: .66rem; color: var(--dim); }

/* 表格 */
.ctable { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: .82rem; }
.ctable th {
  text-align: left; font-weight: 600; font-size: .7rem; color: var(--dim);
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.ctable td { padding: 8px 0; border-bottom: 1px solid #f2efe9; }
.ctable td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ctable td.strong { font-weight: 800; }
.ctable td.num i { font-style: normal; font-size: .68rem; color: var(--ok); margin-left: 3px; }
.ctable tr:last-child td { border-bottom: none; }

/* Q1 全网价 */
.q2-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
/* 三因素判定依据（2026-11-08）：值不值 / 下次大促 / 上次大促价 */
.q2-basis {
  display: flex; flex-direction: column; gap: 6px;
  background: #faf8f5; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 10px;
}
.q2b { display: flex; align-items: baseline; gap: 8px; font-size: .78rem; }
.q2b-k { color: var(--dim); flex-shrink: 0; min-width: 4.6em; }
.q2b-v { color: var(--ink); font-weight: 600; }
.q2b-v b { font-weight: 800; }
.q2b-v.muted { color: #a9a49b; font-weight: 500; }
.q2-chip {
  align-self: flex-start; background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid #ffd9bf; font-weight: 700; font-size: .84rem;
  padding: 4px 12px; border-radius: 999px;
  /* 「可以买…可能省 ¥X」文案较长，窄屏下需允许换行，避免撑破卡片 */
  max-width: 100%; white-space: normal; line-height: 1.5; box-sizing: border-box;
  /* 文案加长后尾行只剩两三个字（如「省 ¥68」），用 pretty 让换行更均衡 */
  text-wrap: pretty;
}
.q2-promo { font-size: .78rem; color: var(--dim); }
.q2-promo b { color: var(--ink); }
.q2-trigger {
  margin: 0; font-size: .84rem; background: #faf8f5; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
}
.q2-alert {
  width: 100%; margin-top: 10px; border: none; background: var(--accent); color: #fff;
  font-size: .84rem; font-weight: 700; padding: 11px 0; border-radius: 10px; cursor: pointer;
}
.q2-alert:active { background: var(--accent-2); }
.q4-tip { margin: 8px 0 0; font-size: .66rem; color: #a9a49b; }

/* Q3 店铺类型 */
.dist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.dist-row { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--dim); }
.dist-k { width: 34px; flex-shrink: 0; }
.dist-track { flex: 1; height: 8px; background: #f2efe9; border-radius: 99px; overflow: hidden; }
.dist-track i { display: block; height: 100%; background: linear-gradient(90deg, #f0a35e, #e85d04); border-radius: 99px; }
.dist-v { width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

.block-label { font-size: .72rem; color: var(--dim); margin: 12px 0 6px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-neg {
  font-size: .76rem; background: #fdf2f0; color: #a5342a; border: 1px solid #f6d8d3;
  border-radius: 8px; padding: 4px 9px;
}
.chip-neg i { font-style: normal; font-size: .66rem; opacity: .7; margin-left: 5px; }

.kv-row { display: flex; gap: 8px; margin: 12px 0 6px; }
.kv {
  flex: 1; min-width: 0; background: #faf8f5; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px;
}
.kv span { display: block; font-size: .66rem; color: var(--dim); }
.kv b { font-size: .78rem; line-height: 1.35; }
/* Q3 店铺类型六级阶梯：当前档高亮，其余灰阶 */
.nb { white-space: nowrap; }
.type-ladder { display: flex; flex-wrap: wrap; gap: 5px; }
.type-ladder span {
  font-size: .64rem; color: #9a948a; background: #f7f5f1;
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
}
.type-ladder .cur { font-weight: 800; }
.type-ladder .cur-b-brand { background: #e9f6ee; color: var(--ok); border-color: #cfe9da; }
.type-ladder .cur-b-normal { background: #fdf3e3; color: #9a5b0e; border-color: #f2dfc0; }
.type-ladder .cur-b-other { background: #f6f5f2; color: #7a746a; border-color: #ddd8ce; }
[class^="risk-"] { font-weight: 800; }
.risk-低 { color: var(--ok); }
.risk-中 { color: var(--warn); }
.risk-高 { color: var(--bad); }
/* 品牌力三档（与正品风险反向：风险低 = 品牌力高） */
[class^="bp-"] { font-weight: 800; }
.bp-高 { color: var(--ok); }
.bp-中 { color: var(--warn); }
.bp-低 { color: var(--bad); }
/* 价位段三档（Q2 历史价结论） */
[class^="seg"] { font-weight: 800; }
.seg-low { color: var(--ok); }
.seg-mid { color: var(--warn); }
.seg-high { color: var(--bad); }

/* Q1 全网价（同款比价列表：序号 + 商品图 + 价格升序） */
.same-list { display: flex; flex-direction: column; gap: 8px; }
.same-row {
  display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; background: #fff;
}
.same-row.best { background: #f3faf6; border-color: #bfe3cf; }
.same-main { display: flex; align-items: center; gap: 10px; }
.same-no {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: #f0ede6; color: #8a857a; font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.same-row:first-child .same-no { background: var(--accent); color: #fff; }
.same-img {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 8px; overflow: hidden;
  background: #f4f1ea; border: 1px solid var(--line);
}
.same-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.same-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.same-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.same-head { display: flex; align-items: baseline; gap: 10px; }
.same-plat { display: flex; align-items: center; font-size: .8rem; font-weight: 700; min-width: 62px; }
.same-plat em {
  font-style: normal; font-size: .56rem; color: #fff; background: var(--ok);
  border-radius: 4px; padding: 1px 5px; margin-left: 5px; font-weight: 700;
}
.same-plat em.cur-tag {
  background: #8a8a8a;
}
.same-price { font-size: .92rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.same-score { margin-left: auto; font-size: 1.02rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.same-title { font-size: .72rem; color: var(--dim); line-height: 1.4; word-break: break-all; }
.same-dims { display: flex; gap: 10px; flex-wrap: wrap; }
.same-dim { display: flex; align-items: baseline; gap: 3px; font-size: .66rem; }
.same-dim i { font-style: normal; color: var(--dim); }
.same-dim b { font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.same-svc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .66rem; color: var(--dim); }
/* 2026-11-08 第六轮：店铺名后加了品牌力标签，改为左对齐 + 「查看详情」靠右；
   空间不够时按钮换行到下一行右对齐，保证店铺名不被截成「科大讯…」。 */
.same-svc .svc-text { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.same-svc .btag { flex: 0 0 auto; }
.same-svc .same-detail { margin-left: auto; flex: 0 0 auto; }
.same-detail {
  flex-shrink: 0; font-size: .7rem; font-weight: 600; color: var(--accent-2);
  text-decoration: none; border: 1px solid var(--accent); border-radius: 999px; padding: 2px 11px;
  cursor: pointer; white-space: nowrap;
}
.same-detail:active { background: var(--accent-soft); }
/* Q4 内嵌的条形图间距 */
.qbody .cmp-chart { margin-top: 8px; }

/* Q5 */
.score-row { margin-bottom: 11px; }
.score-row.best { background: var(--accent-soft); border: 1px solid #ffd9bf; border-radius: 10px; padding: 9px 11px; margin-left: -2px; margin-right: -2px; }
.score-top { display: flex; align-items: baseline; font-size: .84rem; }
.score-top b { font-weight: 700; }
.score-top b em {
  font-style: normal; font-size: .62rem; background: var(--accent); color: #fff;
  border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px;
}
.score-top span { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.score-track { height: 6px; background: #f0ece5; border-radius: 99px; margin: 5px 0 4px; overflow: hidden; }
.score-track i { display: block; height: 100%; background: linear-gradient(90deg, #f7b27a, #e85d04); border-radius: 99px; }
.score-row.best .score-track { background: #ffe3cf; }
.score-sub { font-size: .72rem; color: var(--dim); }
.weight-note {
  font-size: .68rem; color: #8d877d; border-top: 1px dashed var(--line);
  padding-top: 8px; margin-top: 4px;
}
.q5-note { font-size: .82rem; margin: 9px 0 0; }
.aff {
  margin-top: 10px; font-size: .7rem; color: #7a6a53;
  background: #fdf7ee; border: 1px solid #f0e2cb; border-radius: 8px; padding: 8px 10px;
}

/* Q6 */
.cons { margin-bottom: 4px; }
.cons-head { display: flex; align-items: baseline; font-size: .82rem; }
.cons-head b { color: var(--accent-2); }
.cons-head span { margin-left: auto; font-size: .7rem; color: var(--dim); }
.cons-track { height: 8px; background: #f0ece5; border-radius: 99px; margin-top: 6px; overflow: hidden; }
.cons-track i { display: block; height: 100%; background: linear-gradient(90deg, #7fbf9d, #2f8f5b); border-radius: 99px; }

.list-agree, .list-dispute, .list-src { list-style: none; margin: 0; padding: 0; }
.list-agree li {
  font-size: .8rem; padding: 5px 0 5px 14px; position: relative;
  border-bottom: 1px solid #f4f1eb;
}
.list-agree li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-size: .74rem;
}
.list-agree i { font-style: normal; font-size: .68rem; color: var(--dim); margin-left: 6px; }

.list-dispute li { font-size: .8rem; padding: 7px 0; border-bottom: 1px solid #f4f1eb; }
.split { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .74rem; }
.split i {
  font-style: normal; background: #f7f4ef; border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 8px; color: #55504a;
}
.split em { font-style: normal; font-size: .66rem; color: #a9a49b; }

.list-src li {
  display: flex; align-items: center; gap: 7px; font-size: .76rem;
  padding: 6px 0; border-bottom: 1px solid #f4f1eb; color: #4a463f;
}
.list-src i { font-style: normal; font-size: .66rem; color: #a9a49b; margin-left: auto; }
.src-type {
  font-size: .62rem; border-radius: 4px; padding: 1px 5px; flex-shrink: 0;
  background: #eef3f0; color: var(--ok); border: 1px solid #d8e7df;
}
.t-媒体评测 { background: #eaf2f8; color: #2c6b9e; border-color: #d3e3f0; }
.t-社区长文 { background: #f3eefb; color: #6b4ea8; border-color: #e2d8f5; }
.t-平台评论 { background: #f0f1f5; color: #4a5568; border-color: #dde0e8; }
.t-站内UGC { background: #fdf6ec; color: var(--warn); border-color: #efe2c9; }

.nodata {
  font-size: .8rem; color: #6d675e; background: #faf8f5;
  border: 1px dashed #d9d3c8; border-radius: 10px; padding: 14px; text-align: center;
  line-height: 1.6;
}

/* C 级说明卡 */
.cq {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px; box-shadow: var(--shadow);
}
.cq h3 { margin: 0 0 8px; font-size: .96rem; }
.cq p { margin: 0; font-size: .84rem; }
.todo { margin: 6px 0 0; padding-left: 18px; font-size: .82rem; color: #4a463f; }
.todo li { padding: 2px 0; }

/* 页脚 */
.rp-foot { margin-top: 4px; }
.disc {
  font-size: .72rem; color: #7d776d; background: #f1eee9;
  border-radius: 10px; padding: 11px 13px; margin: 0 0 12px;
}
.disc b { color: #4a463f; }
.fb {
  display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--dim);
}
.fb-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 8px; padding: 5px 14px; font-size: .78rem; cursor: pointer;
  font-family: inherit;
}
.fb-btn:active { border-color: var(--accent); color: var(--accent); }
.fb-done { font-size: .78rem; color: var(--ok); }
.selfcheck { font-size: .68rem; color: #a9a49b; margin: 12px 0 0; }
.selfcheck.warn { color: var(--bad); font-weight: 700; }

.tiny { font-size: .7rem; color: #a9a49b; margin: 6px 0 0; line-height: 1.55; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 12px);
  background: rgba(20,20,22,.92); color: #fff; font-size: .82rem;
  padding: 9px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s; z-index: 99;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-foot {
  max-width: 720px; margin: 0 auto; padding: 0 16px 30px;
  font-size: .68rem; color: #a9a49b; text-align: center;
}

@media (min-width: 560px) {
  .intake h1 { font-size: 1.72rem; }
  /* 「距双11 还有 N 天 · 折扣幅度以平台活动页为准」始终另起一行，
     不再与建议标签横向并排（文案较长时并排会被挤成两行、右对齐显得零碎）。 */
  .chart { height: 108px; }
}
