/* 姣斾环鍔╂墜 路 娴呰壊涓婚
 * 瑙嗚鍩虹嚎锛氭祬鐏板簳 + 绾櫧鍗＄墖 + 鏌斿拰闃村奖 + 钃濊壊涓昏壊 + 鐝婄憵绾环鏍? * 璁捐瑕佺偣锛氱暀鐧藉厖瓒炽€佸眰绾ч潬闃村奖鑰岄潪杈规銆佸敮涓€寮鸿皟鑹叉槸钃濓紝浠锋牸鐢ㄦ殩鑹茬獊鍑? */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --card-2: #fafbfc;
  --sunken: #f1f3f6;
  --line: #eceef2;
  --line-2: #e2e6ec;

  --text: #1a1d24;
  --text-2: #5b6270;
  --text-3: #9aa1ad;

  --brand: #3b82f6;
  --brand-600: #2563eb;
  --brand-soft: #eaf2ff;

  --price: #f04438;
  --good: #12a76b;
  --good-soft: #e7f7ef;
  --warn: #dd8a0b;
  --warn-soft: #fdf3e0;
  --bad: #e5484d;
  --bad-soft: #fdeced;

  --shadow-sm: 0 1px 2px rgba(20, 26, 40, 0.05);
  --shadow: 0 2px 10px rgba(20, 26, 40, 0.06);
  --shadow-lg: 0 8px 26px rgba(20, 26, 40, 0.10);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; flex-direction: column; }

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
}

/* ---------- 椤舵爮 ---------- */
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: calc(var(--safe-t) + 14px) 18px 12px;
  background: var(--bg);
}
.topbar h1 { font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -0.2px; }
.topbar .spacer { flex: 1; }
.topbar .ver {
  font-size: 11px; color: var(--text-3);
  background: var(--card); border-radius: 999px; padding: 3px 9px;
  box-shadow: var(--shadow-sm);
}
.topbar .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #7aa8ff);
}

/* ---------- 婊氬姩鍖?---------- */
.scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 16px calc(24px + var(--safe-b));
  -webkit-overflow-scrolling: touch;
}

/* ---------- 鎼滅储琛?---------- */
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--card);
  border-radius: 999px;
  padding: 7px 7px 7px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.search-icon { display: flex; align-items: center; color: var(--text-3); flex: none; }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 15px; font-family: inherit;
  padding: 6px 0; line-height: 1.4;
}
.search input::placeholder { color: var(--text-3); }

/* 鏌ヨ鎸夐挳锛氳璁＄閲岀殑钃濊壊鍦嗗舰鎸夐挳 */
.go-btn {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.go-btn:active { transform: scale(0.93); box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3); }

.search .clear {
  flex: none; border: 0; background: var(--sunken); color: var(--text-3);
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 12px; font-family: inherit; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}

.submit-hint {
  font-size: 11.5px; color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--r-sm);
  padding: 7px 12px; margin: -6px 0 12px;
  text-align: center;
}

/* ---------- 閫氱敤 ---------- */
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

.hero {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.hero h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: -0.2px; }
.hero p { margin: 9px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

.sechead {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 20px 4px 11px;
  font-size: 13.5px; font-weight: 700;
}
.sechead small { font-weight: 400; font-size: 11.5px; color: var(--text-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  border: 0; background: var(--card); color: var(--text-2);
  border-radius: 999px; padding: 8px 14px; font-size: 12.5px;
  font-family: inherit; box-shadow: var(--shadow-sm);
  transition: all 0.12s ease;
}
.chip:active { transform: scale(0.97); }
.chip.on {
  background: var(--brand); color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

/* ---------- AI 鍥炵瓟鍗＄墖 ---------- */
.answer {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 16px 16px 16px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
/* 璁捐绋匡細宸︿晶钃濊壊寮鸿皟鏉?*/
.answer::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand), #8ab4ff);
}
.answer.none::before { background: linear-gradient(180deg, var(--warn), #f0b95e); }

.answer-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.answer-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #6f9dff);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: ui-monospace, monospace;
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}
.answer-title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.1px; }
.answer-body { font-size: 13.5px; line-height: 1.85; color: var(--text-2); }
.answer-body strong, .answer-body b { color: var(--text); font-weight: 700; }
.answer-detail { margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.linkbtn {
  border: 0; background: transparent; padding: 0;
  color: var(--brand); font-size: 12.5px; font-weight: 600;
  font-family: inherit;
}

/* ---------- 鍟嗗搧姣斾环鍗＄墖 ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 15px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease;
}
.card.open { box-shadow: var(--shadow-lg); }

.thumb {
  width: 62px; height: 62px; border-radius: var(--r); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px;
}

.pname { font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: -0.1px; }
.pmeta { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }

/* ============================================================
   鎼滅储缁撴灉鍟嗗搧鍗★紙鐐硅繘璇︽儏鍓嶇殑鍒楄〃鎬侊級
   ------------------------------------------------------------
   鍙繚鐣欙細鍥剧墖 / 鍚嶇О / 浠锋牸鍖洪棿 / 鏍囩 / 涓€鍙?AI 璐拱寤鸿銆?   鍚勫钩鍙版姤浠枫€佽蛋鍔挎潯銆佹瘮浠锋潯绛夐兘鏀惰繘璇︽儏椤碉紝閬垮厤鍒楄〃淇℃伅杩囪浇銆?   ============================================================ */
.pcard { cursor: default; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pcard-name { margin-top: 0; }

/* 浠锋牸鍖洪棿 */
.pcard-price {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 3px; margin-top: 8px;
}
.pcard-price .pcard-cur { font-size: 13px; font-weight: 700; color: var(--price); margin-right: 1px; }
.pcard-price .pcard-num { font-size: 20px; font-weight: 700; color: var(--price); letter-spacing: -0.3px; }
.pcard-price .pcard-range { font-size: 13px; font-weight: 600; color: var(--text-3); }
.pcard-price .pcard-save {
  font-size: 11.5px; font-weight: 600; color: var(--good);
  background: var(--good-soft); border-radius: 999px; padding: 2px 8px;
  margin-left: 4px;
}

/* 涓€鍙?AI 璐拱寤鸿 */
.pcard-advice {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 10px; padding: 9px 11px;
  background: var(--brand-soft); border-radius: var(--r-md);
}
.pcard-advice-badge {
  flex: none; font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  color: #fff; background: var(--brand); border-radius: 6px;
  padding: 2px 5px; margin-top: 1px;
}
.pcard-advice-text { font-size: 12.5px; line-height: 1.6; color: var(--text-2); }

/* 鍗＄墖涓婄殑璇︽儏鎸夐挳 */
.pcard-acts { display: flex; margin-top: 12px; }
.pcard-detail-btn { width: 100%; text-align: center; }

/* ============================================================
   璇︽儏椤碉細澶撮儴 / AI 寤鸿 / 鍚勫钩鍙板姣旇〃 / 璧板娍鎶樼嚎
   ============================================================ */
.dhead { padding: 16px; }
.dhead-name { font-size: 16px; font-weight: 700; line-height: 1.45; margin-top: 2px; }
.dhead .pcard-price { margin-top: 10px; }
.dhead .btnrow { margin-top: 13px; }
.dhead .btnrow .btn { width: 100%; text-align: center; }

.detail-advice {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--card); border-radius: var(--r-lg);
  padding: 13px 14px; margin-bottom: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand);
}
.detail-advice.good { border-left-color: var(--good); }
.detail-advice.warn { border-left-color: var(--warn); }
.detail-advice.bad { border-left-color: var(--bad); }
.detail-advice-text { font-size: 13px; line-height: 1.75; color: var(--text-2); }

/* 琛ㄦ牸瀹瑰櫒锛氱獎灞忓彲妯悜婊氬姩 */
.ctable-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.ctable {
  width: 100%; min-width: 600px;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ctable th {
  text-align: left; font-weight: 700; color: var(--text-3);
  font-size: 11px; white-space: nowrap;
  padding: 11px 10px; border-bottom: 1px solid var(--line-2);
  background: var(--card-2);
}
.ctable td {
  padding: 11px 10px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ctable tbody tr:last-child td { border-bottom: 0; }
.ctable tr.is-best { background: var(--brand-soft); }
.ctable .num { text-align: right; }

.ctable-plat { display: flex; align-items: center; gap: 6px; }
.ctable-plat-name { font-weight: 700; font-size: 12px; white-space: nowrap; }

.ctable-price { font-size: 14px; font-weight: 800; color: var(--price); white-space: nowrap; }
.ctable-price.best { color: var(--good); }
.ctable-strike { font-size: 10.5px; color: var(--text-3); text-decoration: line-through; margin-top: 1px; }
.ctable-coupon { color: var(--good); font-weight: 700; white-space: nowrap; }
.ctable-free { color: var(--good); font-weight: 600; white-space: nowrap; }
.ctable-none { color: var(--text-3); }

.ctable-score { font-weight: 800; font-size: 15px; line-height: 1.1; }
.ctable-score .ctable-score-u { font-size: 10px; font-weight: 600; margin-left: 1px; }
.ctable-score.best { color: var(--good); }
.ctable-score.good { color: var(--brand-600); }
.ctable-score.fair { color: var(--warn); }
.ctable-score.poor { color: var(--text-3); }
.ctable-level {
  font-size: 10px; font-weight: 700; margin-top: 3px;
  color: var(--text-3); white-space: nowrap;
}
.ctable-level.best { color: var(--good); }
.ctable-level.good { color: var(--brand-600); }

/* 璧板娍鎶樼嚎 */
.spark { display: block; margin-left: auto; }
.spark-line { stroke: var(--text-3); }
.spark-line.down { stroke: var(--good); }
.spark-line.up { stroke: var(--bad); }
.spark-dot { fill: var(--text-3); }
.spark-dot.down { fill: var(--good); }
.spark-dot.up { fill: var(--bad); }
.spark-na { font-size: 11px; fill: var(--text-3); }

.ctable-go { padding: 6px 11px; font-size: 11.5px; white-space: nowrap; }

/* 閫愬钩鍙版帹鑽愮悊鐢?*/
.ctable-why {
  background: var(--card); border-radius: var(--r-lg);
  padding: 12px 14px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.ctable-why-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; line-height: 1.7;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.ctable-why-line:last-child { border-bottom: 0; }
.ctable-why-plat { flex: none; font-weight: 800; color: var(--brand-600); white-space: nowrap; }
.ctable-why-text { flex: 1 1 auto; min-width: 0; color: var(--text-2); }

/* 璇︽儏椤甸《閮ㄨ繑鍥炴潯 */
/* ============================================================
   各平台价格走势叠放图
   ============================================================ */
.trend-card {
  background: var(--card); border-radius: var(--r-lg);
  padding: 14px 14px 12px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.trend-head2 {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.trend-title2 { font-size: 13.5px; font-weight: 700; }
.trend-sub2 { font-size: 11px; color: var(--text-3); }
.trend-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.trend-svg { display: block; min-width: 520px; }
.trend-series { opacity: 0.9; }
.trend-end { stroke: var(--card); stroke-width: 1.2; }
.trend-tick { font-size: 10px; fill: var(--text-3); }

/* 图例：颜色 + 平台 + 当前价 + 涨跌幅 */
.trend-legend2 {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.tl-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; }
.tl-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.tl-name { font-weight: 700; color: var(--text-2); }
.tl-price { color: var(--text-3); font-variant-numeric: tabular-nums; }
.tl-chg { font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-chg.down { color: var(--good); }
.tl-chg.up { color: var(--bad); }

/* ============================================================
   详情页 AI 购买建议（结论 + 推理依据 + 平台选择 + 注意事项）
   ============================================================ */
.adv-card {
  background: var(--card); border-radius: var(--r-lg);
  padding: 15px; margin-bottom: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand);
}
.adv-card.good { border-left-color: var(--good); }
.adv-card.warn { border-left-color: var(--warn); }
.adv-card.bad { border-left-color: var(--bad); }

.adv-head { display: flex; align-items: flex-start; gap: 9px; }
.adv-concl { flex: 1 1 auto; min-width: 0; }
.adv-concl-text { font-size: 13.5px; line-height: 1.75; font-weight: 600; color: var(--text); }

/* 逐条依据 */
.adv-reasons {
  margin-top: 13px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.adv-reasons-title {
  font-size: 11.5px; font-weight: 800; color: var(--text-3);
  letter-spacing: 0.4px; margin-bottom: 8px;
}
.adv-reason {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.adv-reason:last-child { border-bottom: 0; }
.adv-k {
  flex: none; width: 88px;
  font-size: 11.5px; color: var(--text-3); font-weight: 600;
}
.adv-v {
  flex: none; font-size: 12.5px; font-weight: 800;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.adv-reason.good .adv-v { color: var(--good); }
.adv-reason.warn .adv-v { color: var(--warn); }
.adv-reason.bad .adv-v { color: var(--bad); }
.adv-note {
  flex: 1 1 100%; font-size: 11px; color: var(--text-3);
  line-height: 1.6; padding-left: 96px;
}

/* 该在哪家买 */
.adv-pick {
  margin-top: 13px; padding: 12px 13px;
  background: var(--card-2); border-radius: var(--r-md);
}
.adv-pick-title { font-size: 13px; font-weight: 800; color: var(--brand-600); }
.adv-pick-sub { font-size: 11.5px; color: var(--text-2); margin-top: 3px; line-height: 1.6; }
.adv-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.adv-tag {
  font-size: 10.5px; padding: 3px 8px; border-radius: 6px;
  line-height: 1.5; font-weight: 600;
}
.adv-tag.good { background: var(--good-soft); color: var(--good); }
.adv-tag.bad { background: var(--bad-soft); color: var(--bad); }
.adv-alt {
  font-size: 11px; color: var(--text-3); margin-top: 8px;
  padding-top: 8px; border-top: 1px dashed var(--line);
}

.detail-back {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 12px;
}
.detail-back-title { font-size: 13px; font-weight: 600; color: var(--text-3); }

/* 寰界珷锛氭祬鑹插簳 + 娣辫壊瀛?*/
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  border-radius: 7px; padding: 3px 8px;
  white-space: nowrap;
}
.badge.plat { color: #fff; font-weight: 600; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.ok { background: var(--good-soft); color: var(--good); }
.badge.mid { background: var(--sunken); color: var(--text-2); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.brand { background: var(--brand-soft); color: var(--brand-600); }

/* 浠锋牸 */
.price {
  font-size: 23px; font-weight: 800; letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--price);
}
.price .cur { font-size: 13px; font-weight: 700; margin-right: 1px; }
.price.low { color: var(--good); }
.price.high { color: var(--price); }
.price.neutral { color: var(--price); }
.price.sm { font-size: 18px; }
.price.xs { font-size: 15px; }

.strike { font-size: 11.5px; color: var(--text-3); text-decoration: line-through; margin-left: 6px; }

/* 姣斾环鏉?*/
.pbar { position: relative; height: 6px; border-radius: 4px; background: var(--sunken); margin: 13px 0 6px; }
.pbar .fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px;
  background: linear-gradient(90deg, #34c98a, #7fe0b8);
}
.pbar .mark { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--text-3); border-radius: 2px; }
.pbar-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 13px; }
.stat { background: var(--card-2); border-radius: var(--r-sm); padding: 9px 10px; }
.stat .k { font-size: 10.5px; color: var(--text-3); }
.stat .v { font-size: 13px; font-weight: 700; margin-top: 3px; }

/* ---------- 鎶ヤ环鍒楄〃 ---------- */
.offers { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.offer {
  border-radius: var(--r); background: var(--card-2);
  padding: 12px; margin-bottom: 10px;
}
.offer.best { background: var(--brand-soft); }
.otitle { font-size: 11.5px; line-height: 1.55; color: var(--text-2); margin: 7px 0 8px; }
.breakdown { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--text-3); }
.breakdown b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag { font-size: 10.5px; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-600); }
.tag.grey { background: var(--sunken); color: var(--text-3); }

/* ---------- 鎸夐挳 ---------- */
.btn {
  border: 0; background: var(--sunken); color: var(--text);
  border-radius: var(--r); padding: 10px 15px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  flex: none; transition: all 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: #fff; box-shadow: 0 3px 10px rgba(59, 130, 246, 0.28);
}
.btn.ghost { background: var(--card); color: var(--text-2); box-shadow: var(--shadow-sm); }
.btn.wide { width: 100%; text-align: center; }
.btnrow { display: flex; gap: 9px; margin-top: 13px; flex-wrap: wrap; }

/* ---------- 鍘嗗彶浠锋牸 ---------- */
.chart { display: block; width: 100%; margin-top: 6px; }
.legend { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); margin-top: 8px; }

.verdict {
  background: var(--card); border-radius: var(--r-lg);
  padding: 15px 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.verdict h3 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.5; }
.verdict p { margin: 7px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.7; }

/* ---------- 绌烘€?---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); font-size: 13px; line-height: 1.8; }
.empty .big { font-size: 36px; margin-bottom: 14px; opacity: 0.9; }

/* ---------- 搴曟爮 ---------- */
.tabbar {
  flex: none;
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + var(--safe-b));
}
.tab {
  border: 0; background: transparent; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; font-family: inherit; font-weight: 600;
  border-radius: var(--r); padding: 7px 4px;
  transition: all 0.12s ease;
}
.tab .g { font-size: 17px; line-height: 1; }
.tab.on { color: var(--brand); }

/* ---------- 娴眰鎻愮ず ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(90px + var(--safe-b));
  background: rgba(26, 29, 36, 0.92); color: #fff;
  font-size: 12.5px; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(20, 26, 40, 0.25);
  z-index: 50; max-width: 86%; text-align: center;
}

/* ---------- 鍏朵粬 ---------- */
.pill { font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; display: inline-block; }
.pill.down { background: var(--good-soft); color: var(--good); }
.pill.up { background: var(--bad-soft); color: var(--bad); }
.pill.same { background: var(--sunken); color: var(--text-2); }

.src {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r);
  background: var(--card); margin-bottom: 9px;
  font-size: 12.5px; box-shadow: var(--shadow-sm);
}
.src .k {
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: var(--sunken); color: var(--text-2);
  font-family: ui-monospace, monospace; flex: none;
}
.note { font-size: 11.5px; color: var(--text-3); line-height: 1.75; margin-top: 9px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ============================================================
   鍔ㄦ晥
   鍘熷垯锛氱煭锛?80鈥?20ms锛夈€佹湁鏂瑰悜銆佹湇鍔′簬淇℃伅灞傜骇锛屼笉鍠у澶轰富銆?   甯?.anim 鐨勫厓绱犲彧鍦ㄣ€岀涓€娆℃彃鍏?DOM銆嶆椂鎾斁锛堢敱 JS 鐢?WeakSet 淇濊瘉锛夛紝
   鍥犳姣忔閲嶆覆鏌撲笉浼氬弽澶嶆姈鍔ㄣ€?   ============================================================ */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pricePulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes toastUp {
  from { opacity: 0; transform: translate(-50%, 12px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* 鍗＄墖 / 鏉垮潡锛氶敊宄颁笂娴?*/
.anim-rise {
  animation: riseIn 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
/* 鍥炵瓟鍗＄墖锛氭暣浣撲粠涓婃柟娣″叆 */
.anim-answer {
  animation: slideDown 0.36s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
/* 鍥炵瓟姝ｆ枃閫愯娴幇锛岃惀閫?鐢熸垚涓?鐨勮鎰?*/
.anim-line {
  animation: riseIn 0.36s ease-out both;
  animation-delay: calc(var(--i, 0) * 90ms + 90ms);
}
/* 澶撮儴锛堝ご鍍?+ 鏍囬锛夊厛寮瑰叆 */
.anim-pop { animation: popIn 0.28s cubic-bezier(0.34, 1.4, 0.64, 1) both; }

/* 鎶ヤ环琛屽睍寮€ */
.anim-offer {
  animation: riseIn 0.3s ease-out both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

/* 浠锋牸鏁板瓧锛氳交寰剦鍐诧紝鎻愮ず"缁撴灉宸叉洿鏂? */
.anim-price { animation: pricePulse 0.5s cubic-bezier(0.34, 1.3, 0.64, 1) both; }

/* 姣斾环鏉★細浠庡乏鐢熼暱 */
.anim-bar { transform-origin: left center; animation: barGrow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; animation-delay: 120ms; }

/* 寰界珷渚濇鍑虹幇 */
.anim-badge { animation: popIn 0.26s ease-out both; animation-delay: calc(var(--i, 0) * 40ms + 100ms); }

/* 鏍囩椤靛唴瀹瑰垏鎹?*/
.anim-tab { animation: fadeIn 0.22s ease-out both; }

/* 鎶ヤ环琛屽唴閮ㄧ殑宸︿晶缁嗙嚎锛堝睍寮€鏃剁殑寮曞锛?*/
.anim-slide { animation: slideInRight 0.28s ease-out both; animation-delay: calc(var(--i, 0) * 45ms); }

/* 鎻愮ず娴眰 */
.anim-toast { animation: toastUp 0.24s cubic-bezier(0.34, 1.3, 0.64, 1) both; }

/* AI 鍥炵瓟鍗＄墖鍦?鍒氭彁浜ゆ煡璇?鏃剁煭鏆傞棯鍏夛紝鏆楃ず姝ｅ湪璁＄畻 */
.answer.thinking {
  background-image: linear-gradient(100deg, #fff 30%, #f4f8ff 50%, #fff 70%);
  background-size: 200% 100%;
  animation: slideDown 0.36s cubic-bezier(0.22, 0.61, 0.36, 1) both,
             shimmer 1.1s linear 1;
}

/* 鎸夊帇鍙嶉锛氱粺涓€鐨勬墜鎰?*/
.card, .chip, .btn, .tab, .offer { transition: transform 0.14s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.14s ease; }
.card:active { transform: scale(0.985); }
.btn:active, .chip:active { transform: scale(0.96); }
.tab:active { transform: scale(0.94); }

/* 鏌ヨ鎸夐挳锛氭寜鍘嬫椂绠ご鍙崇Щ锛屽儚"鍙戝嚭" */
.go-btn svg { transition: transform 0.16s cubic-bezier(0.34, 1.3, 0.64, 1); }
.go-btn:active svg { transform: translateX(3px); }

/* 灞曞紑绠ご鏃嬭浆锛堢敤浜?鏌ョ湅璇︽儏"锛?*/
.linkbtn .caret {
  display: inline-block; margin-left: 4px;
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.linkbtn.open .caret { transform: rotate(180deg); }

/* ---------- 鍥捐〃鍔ㄧ敾锛圫VG 鍥惧舰鍏冪礌涓嶆敮鎸?CSS transform 绫诲姩鐢伙紝鏀圭敤鎻忚竟鍋忕Щ锛?---------- */
@keyframes chartDraw {
  /* 璧峰鍊煎彇鑷厓绱犱笂鐨?stroke-dashoffset 灞炴€э紙SVG 琛ㄧ幇灞炴€т細浣滀负鍔ㄧ敾鍒濆鍊硷級 */
  to { stroke-dashoffset: 0; }
}
@keyframes chartFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dotPop {
  0% { opacity: 0; transform: scale(0.2); }
  70% { opacity: 1; transform: scale(1.35); }
  100% { opacity: 1; transform: scale(1); }
}

.chart-line {
  animation: chartDraw 1.15s cubic-bezier(0.33, 0.7, 0.4, 1) forwards;
}
.chart-area {
  opacity: 0;
  animation: chartFade 0.7s ease-out 0.45s forwards;
}
.chart-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.chart-dot-low { animation: dotPop 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) 0.75s forwards; }
.chart-dot-cur { animation: dotPop 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) 0.95s forwards; }

/* ---------- 浠锋牸璧板娍鍒嗘瀽鏉?---------- */
.trend {
  margin-top: 11px; padding: 11px 12px;
  background: var(--card-2); border-radius: var(--r);
}
.trend-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trend-arrow {
  font-size: 15px; font-weight: 800; line-height: 1;
  font-family: ui-monospace, monospace;
}
.trend-arrow.down { color: var(--good); }
.trend-arrow.up { color: var(--price); }
.trend-arrow.flat { color: var(--text-3); }
.trend-title { font-size: 12.5px; font-weight: 700; }

.trend-bar {
  position: relative; height: 6px; border-radius: 4px;
  margin: 11px 0 6px;
  background: linear-gradient(90deg, #d6f2e4, #fde8e6);
}
.trend-marker {
  position: absolute; top: -3px; width: 3px; height: 12px;
  background: var(--text); border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.trend-labels {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--text-3);
}
.trend-meta { display: flex; gap: 12px; margin-top: 7px; font-size: 11px; color: var(--text-3); }

/* ============================================================
   澶氳疆瀵硅瘽椤鹃棶
   ============================================================ */

/* 妲戒綅杩涘害锛氭樉绀?宸蹭簡瑙?鐨勯渶姹?*/
.slots {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin: -6px 0 14px;
}
.slots-label { font-size: 11px; color: var(--text-3); flex: none; }
.slot-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--card); border-radius: 999px;
  padding: 4px 10px 4px 8px;
  box-shadow: var(--shadow-sm);
}
.slot-k { font-size: 10px; color: var(--text-3); }
.slot-v { font-size: 11.5px; font-weight: 700; color: var(--text); }

/* 杩介棶鍗＄墖 */
.ask {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 15px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.ask::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #8ab4ff, var(--brand));
}
.ask-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.ask-title { font-size: 14.5px; font-weight: 700; line-height: 1.5; }

.ask-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-opt {
  border: 1px solid var(--brand-soft); background: var(--brand-soft);
  color: var(--brand-600); border-radius: 999px;
  padding: 9px 15px; font-size: 13px; font-weight: 600;
  font-family: inherit;
  transition: transform 0.14s cubic-bezier(0.34, 1.3, 0.64, 1), background 0.14s ease;
}
.ask-opt:active { transform: scale(0.95); background: #dbe9ff; }

.ask-foot { margin-top: 13px; padding-top: 11px; border-top: 1px dashed var(--line-2); }

/* ============================================================
   銆屼负浠€涔堟帹鑽愬畠銆嶅彲瑙ｉ噴鎺ㄧ悊鍗＄墖
   ============================================================ */
.explain {
  margin-top: 12px;
  background: var(--card-2);
  border-radius: var(--r);
  padding: 12px 13px;
}
.explain-head {
  display: flex; align-items: center; gap: 9px;
  cursor: pointer;
}
.explain-icon {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-600);
  font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.explain-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.explain-title > span:first-child { font-size: 12.5px; font-weight: 700; }
.explain-sub { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.explain-head .caret {
  flex: none; font-size: 11px; color: var(--text-3);
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.explain-chain {
  margin-top: 9px; font-size: 11.5px; line-height: 1.75;
  color: var(--text-2);
}

.explain-details { margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line-2); }

.reason-table { display: flex; flex-direction: column; gap: 7px; }
.reason-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
}
.reason-label {
  flex: none; width: 68px; font-weight: 700; color: var(--text-2);
}
.reason-row.neg .reason-label { color: var(--bad); }
.reason-detail {
  flex: 1 1 auto; min-width: 0; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reason-bar {
  flex: none; width: 42px; height: 5px; border-radius: 3px;
  background: var(--sunken); overflow: hidden;
}
.reason-fill {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #7fd7ac, var(--good));
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reason-fill.neg { background: linear-gradient(90deg, #ffb3b5, var(--bad)); }
.reason-score {
  flex: none; width: 34px; text-align: right;
  font-family: ui-monospace, monospace; font-weight: 700;
  color: var(--good);
}
.reason-row.neg .reason-score { color: var(--bad); }
.reason-row:not(.pos):not(.neg) .reason-score { color: var(--text-3); }

.reason-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 11px; padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--text-2);
}
.reason-total-v {
  font-size: 15px; color: var(--brand-600);
  font-family: ui-monospace, monospace;
}

.explain-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.fact {
  display: inline-flex; align-items: baseline; gap: 5px;
  background: var(--card); border-radius: 7px; padding: 4px 9px;
  box-shadow: var(--shadow-sm);
}
.fact-k { font-size: 10px; color: var(--text-3); }
.fact-v { font-size: 11px; font-weight: 600; color: var(--text); }

/* ============================================================
   鐩戞帶椤?   ============================================================ */

/* 鑿滃崟鍗＄墖 */
.mi-card {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 4px;
}
.mi {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}
.mi:last-child { border-bottom: 0; }
.mi.tappable { transition: background 0.14s ease; }
.mi.tappable:active { background: var(--card-2); }
.mi-icon { flex: none; font-size: 16px; width: 22px; text-align: center; }
.mi-body { flex: 1 1 auto; min-width: 0; }
.mi-title { font-size: 14px; font-weight: 600; }
.mi-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.mi-value { flex: none; font-size: 12.5px; color: var(--text-3); }
.mi-arrow { flex: none; font-size: 17px; color: var(--text-3); line-height: 1; }

.mi-remove {
  flex: none; border: 0; background: transparent;
  color: var(--bad); font-size: 12px; font-weight: 600;
  font-family: inherit; padding: 5px 7px; border-radius: 8px;
}
.mi-remove:active { background: var(--bad-soft); }

/* 寮€鍏?*/
.switch {
  flex: none; width: 44px; height: 26px; border-radius: 999px;
  background: var(--line-2); position: relative;
  transition: background 0.2s ease;
}
.switch.on { background: var(--brand); }
.switch .knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.switch.on .knob { transform: translateX(18px); }

/* 寮瑰眰閬僵锛堢被鍚嶆槸鍘嗗彶閬楃暀锛氭櫤鑳戒綋鎵ц鎶ュ憡涔熷鐢ㄨ繖濂楅伄缃╀笌鎸夐挳鎺掞級 */
.login-layer {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20, 26, 40, 0.35);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 0.18s ease-out both;
}
.login-acts { display: flex; gap: 9px; justify-content: flex-end; margin-top: 16px; }

/* 鐩戞帶寮€鍏筹紙鎶ヤ环琛岀殑鎿嶄綔鎺掞紝涓庛€屽彇娑堢敤鍒?/ 鍘讳笅鍗?/ 浠锋牸璧板娍銆嶅苟鍒楋級
   娉ㄦ剰閫夋嫨鍣ㄥ啓鎴?.btn.watch-toggle锛氳鍘嬭繃 .btn.ghost 鐨勯€氱敤鏍峰紡锛?   鍙啓 .watch-toggle 浼氬洜涓轰紭鍏堢骇涓嶅鑰屾樉绀烘垚鏅€氭寜閽€?   鏂囧瓧棰滆壊鍙?var(--text-2)锛屼笌鍚屾帓鐨勩€屼环鏍艰蛋鍔裤€?.btn.ghost) 淇濇寔涓€鑷达紱
   涔嬪墠鐢?--text-3 浼氭槑鏄惧亸娴咃紝涓€鎺掓寜閽噷鍙湁瀹冩槸鐏版墤鎵戠殑銆?*/
.btn.watch-toggle {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--text-2);
  font-weight: 700;
  transition: all 0.16s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.btn.watch-toggle:active { transform: scale(0.96); }
.btn.watch-toggle.on {
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand-600);
}

/* ============================================================
   宸查€夋爣绛炬爮锛堢揣璐存悳绱㈡涓嬫柟锛?   ============================================================ */
.tagslot { display: none; }        /* 鍗犱綅鑺傜偣锛屾覆鏌撳畬鎴愬悗浼氳鏇挎崲鎺?*/

.selbar {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 2px;
  padding: 9px 11px;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.selbar-label {
  flex: none; font-size: 11px; font-weight: 700; color: var(--text-3);
}
.selbar-chips {
  display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0;
}
.sel-chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid transparent; background: var(--brand-soft);
  color: var(--brand-600); border-radius: 999px;
  padding: 4px 8px; font-size: 11px; font-family: inherit;
  font-weight: 600; line-height: 1.4;
  transition: all 0.16s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.sel-chip:active { transform: scale(0.94); }
.sel-k { color: var(--brand-600); opacity: 0.72; font-weight: 500; }
.sel-v { color: var(--brand-600); }
.sel-x {
  font-size: 9px; opacity: 0.55; margin-left: 1px;
  transition: opacity 0.14s ease;
}
.sel-chip:hover .sel-x { opacity: 1; }
.selbar-reset {
  flex: none; border: 0; background: transparent;
  color: var(--text-3); font-size: 11.5px; font-family: inherit;
  padding: 3px 4px; text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   鏍囩绛涢€夛紙鍒嗛潰锛?   ============================================================ */
.badge.soft { background: var(--sunken); color: var(--text-2); font-weight: 500; }

.facets {
  background: var(--card); border-radius: var(--r-lg);
  padding: 12px 13px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.facet-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; font-weight: 700; color: var(--text-2);
  margin-bottom: 9px;
}
.facet-head .linkbtn { font-size: 11.5px; }
.facet-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.facet-row:last-child { margin-bottom: 0; }
.facet-label {
  flex: none; width: 30px; padding-top: 4px;
  font-size: 11px; color: var(--text-3); font-weight: 600;
}
.facet-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.facet-chip {
  border: 1px solid var(--line-2); background: var(--card);
  color: var(--text-2); border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-family: inherit;
  line-height: 1.4; font-weight: 500;
  transition: all 0.16s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.facet-chip:active { transform: scale(0.95); }
.facet-chip.on {
  background: var(--brand); border-color: var(--brand);
  color: #fff; font-weight: 700;
}

/* ============================================================
   浠锋牸鐩戣闈㈡澘
   ============================================================ */
.mon-stats {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.mon-stat {
  flex: 1; min-width: 0; text-align: center;
  background: var(--card); border-radius: var(--r-md);
  padding: 10px 4px; box-shadow: var(--shadow);
}
.mon-stat-v {
  font-size: 17px; font-weight: 800; color: var(--brand-600);
  line-height: 1.2; font-variant-numeric: tabular-nums;
}
.mon-stat-k { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }

.mon-bar {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border-radius: var(--r-md);
  padding: 10px 12px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.mon-next {
  flex: 1; min-width: 0; font-size: 11.5px; color: var(--text-3); line-height: 1.5;
}
.mon-bar .btn { flex: none; padding: 7px 12px; font-size: 12px; }

.mon-alert-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700; color: var(--text-2);
  margin: 12px 0 8px;
}
.mon-clear {
  border: 0; background: transparent; color: var(--text-3);
  font-size: 11.5px; font-family: inherit; padding: 3px 6px;
}
.mon-alert {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--card); border-radius: var(--r-md);
  padding: 11px 12px; margin-bottom: 8px;
  box-shadow: var(--shadow); border-left: 3px solid var(--line-2);
  transition: transform 0.16s ease;
}
.mon-alert:active { transform: scale(0.99); }
.mon-alert.newLow { border-left-color: var(--good); }
.mon-alert.hit { border-left-color: var(--brand); }
.mon-alert.change { border-left-color: var(--warn); }
.mon-alert-dot {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; margin-top: 1px;
  background: var(--sunken); color: var(--text-2);
}
.mon-alert.newLow .mon-alert-dot { background: var(--good-soft); color: var(--good); }
.mon-alert.hit .mon-alert-dot { background: var(--brand-soft); color: var(--brand-600); }
.mon-alert-title { font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.mon-alert-text { font-size: 11.5px; color: var(--text-2); line-height: 1.6; margin-top: 3px; }

.mon-task {
  background: var(--card); border-radius: var(--r-lg);
  padding: 13px 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.mon-task-top {
  display: flex; align-items: baseline; gap: 9px; margin-bottom: 9px;
}
.mon-task-title {
  flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; line-height: 1.45;
}
.mon-task-price {
  flex: none; font-size: 14px; font-weight: 800; color: var(--price);
  font-variant-numeric: tabular-nums;
}
.mon-conds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.mon-cond {
  border: 1px solid var(--line-2); background: var(--card);
  color: var(--text-2); border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-family: inherit;
  transition: all 0.16s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.mon-cond:active { transform: scale(0.95); }
.mon-cond.on {
  background: var(--brand); border-color: var(--brand);
  color: #fff; font-weight: 700;
}
.mon-task-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 11px; color: var(--text-3); line-height: 1.6;
}
.mon-task-verdict {
  font-size: 11.5px; color: var(--text-2); line-height: 1.65;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
}

/* ============================================================
   鏅鸿兘鐩戞帶浠诲姟锛堣鍒?鈫?鎵ц 鈫?鎶ュ憡锛?   ============================================================ */
.task {
  background: var(--card); border-radius: var(--r-lg);
  padding: 15px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.task.open { box-shadow: var(--shadow-lg); }

.task-head { display: flex; align-items: flex-start; gap: 10px; }
.task-bot {
  flex: none; width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), #6f9dff);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
  box-shadow: 0 3px 9px rgba(59, 130, 246, 0.28);
}
.task-title { font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.task-cond { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

.task-meta {
  display: flex; flex-wrap: wrap; gap: 11px;
  margin-top: 11px; padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  font-size: 11px; color: var(--text-3);
}

.task-verdict {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px;
  background: var(--card-2); border-radius: var(--r-sm);
  border-left: 3px solid var(--line-2);
}
.task-verdict.buy { border-left-color: var(--good); }
.task-verdict.wait { border-left-color: var(--warn); }
.task-reason { flex: 1 1 200px; font-size: 11.5px; color: var(--text-2); line-height: 1.65; }

/* 鎵ц杞ㄨ抗 */
.task-plan {
  margin-top: 12px; padding-top: 11px;
  border-top: 1px dashed var(--line-2);
}
.task-plan-title {
  font-size: 11.5px; font-weight: 700; color: var(--text-2);
  margin-bottom: 9px;
}
.task-step { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; }
.task-step-mark {
  flex: none; width: 19px; height: 19px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; line-height: 1;
}
.task-step-mark.pending { background: var(--sunken); color: var(--text-3); }
.task-step-mark.done { background: var(--good-soft); color: var(--good); }
.task-step-mark.hit { background: var(--brand-soft); color: var(--brand-600); }
.task-step-mark.skip { background: var(--warn-soft); color: var(--warn); }
.task-step-title { font-size: 12px; font-weight: 600; }
.task-step-detail { font-size: 11px; color: var(--text-3); line-height: 1.65; margin-top: 2px; }

/* 瑙﹀彂鍒ゅ畾鎽樿锛堟姌鍙犵姸鎬佸彲瑙侊級 */
.task-trigger {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 8px; padding: 9px 10px;
  background: var(--sunken); border-radius: var(--r-sm);
  font-size: 11.5px; line-height: 1.6; color: var(--text-2);
}
.task-trigger.hit { background: var(--brand-soft); color: var(--brand-600); font-weight: 600; }
.task-trigger-mark {
  flex: none; width: 17px; height: 17px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  background: var(--card); color: var(--text-3);
}
.task-trigger.hit .task-trigger-mark { background: var(--brand); color: #fff; }
.task-trigger-text { flex: 1 1 auto; min-width: 0; }

/* 鎶ュ憡寮瑰眰 */
.report-panel {
  width: 100%; max-width: 360px; max-height: 82%;
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-lg);
  padding: 20px 18px; box-shadow: var(--shadow-lg);
  animation: popIn 0.24s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}
.report-title { font-size: 17px; font-weight: 700; }
.report-sub { font-size: 11.5px; color: var(--text-3); margin-top: 5px; line-height: 1.6; }
.report-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  margin-top: 15px; padding-top: 13px;
  border-top: 1px solid var(--line);
}
.report-step { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; }
.report-conclusion {
  margin-top: 15px; padding: 13px;
  border-radius: var(--r);
  background: var(--card-2);
  border-left: 4px solid var(--line-2);
}
.report-conclusion.buy { border-left-color: var(--good); }
.report-conclusion.wait { border-left-color: var(--warn); }
.report-concl-title { font-size: 15px; font-weight: 800; }
.report-concl-reason { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-top: 6px; }

/* ---------- 浠锋牸鍙俊搴﹁瘉鎹摼 ---------- */
.cred {
  margin-top: 11px; padding: 11px 12px;
  background: var(--card-2); border-radius: var(--r);
}
.cred-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cred-label { font-size: 12.5px; font-weight: 700; }
.cred-score {
  font-size: 17px; font-weight: 800; letter-spacing: -0.4px;
  font-family: ui-monospace, monospace;
}
.cred-score.cred-high { color: var(--good); }
.cred-score.cred-medium { color: var(--text); }
.cred-score.cred-low { color: var(--warn); }
.cred-score.cred-doubt { color: var(--bad); }

.cred-evidence { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.cred-row { display: flex; align-items: flex-start; gap: 8px; }
.cred-mark {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  background: var(--good-soft); color: var(--good);
}
.cred-row.bad .cred-mark { background: var(--bad-soft); color: var(--bad); }
.cred-key { font-size: 11px; font-weight: 700; color: var(--text-2); }
.cred-val { font-size: 11px; color: var(--text-3); line-height: 1.6; margin-top: 1px; }
.cred-bar {
  flex: none; width: 38px; height: 5px; border-radius: 3px;
  background: var(--sunken); overflow: hidden; margin-top: 5px;
}
.cred-fill {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #7fd7ac, var(--good));
}
.cred-fill.bad { background: linear-gradient(90deg, #ffb3b5, var(--bad)); }

/* 灏婇噸绯荤粺鐨?鍑忓皯鍔ㄦ€佹晥鏋?璁剧疆 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.ai-reasons { margin-top: 10px; background: var(--card-2); border-radius: var(--r-sm); padding: 10px 12px; }
.ai-reason {
  display: flex; align-items: baseline; gap: 9px;
  font-size: 11.5px; line-height: 1.85; color: var(--text-3);
}
.ai-reason .k { flex: none; color: var(--text-2); font-weight: 600; }
.ai-reason .v { flex: 1 1 auto; min-width: 0; }
.ai-reason .w { flex: none; font-family: ui-monospace, monospace; font-weight: 700; }

.ai-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; font-size: 11.5px; color: var(--text-3); }
.ai-stats span { background: var(--card-2); padding: 3px 9px; border-radius: 6px; }

.ai-verdict {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px 12px;
  background: var(--card-2); border-radius: var(--r-sm);
  border-left: 3px solid var(--line-2);
}
.ai-verdict.buy, .ai-verdict.consider { border-left-color: var(--good); }
.ai-verdict.wait { border-left-color: var(--warn); }
.ai-verdict.avoid { border-left-color: var(--bad); }

.ai-best {
  display: flex; align-items: center; gap: 11px;
  margin-top: 11px; padding: 12px;
  background: var(--card-2); border-radius: var(--r);
}
.ai-rank {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 21px; padding: 0 7px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800; border-radius: 7px;
  font-family: ui-monospace, monospace;
}
.ai-card {
  background: var(--card); border-radius: var(--r-lg);
  padding: 15px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.ai-card.rec { border-left: 3px solid var(--brand); }

/* ============================================================
   棣栧睆鍔犺浇閬僵锛堜粎缃戠珯鐗堟湁锛汚PK 鏈湴璇诲彇鍑犱箮鐬棿瀹屾垚锛屼笉闇€瑕侊級
   鏁版嵁鏂囦欢杩?1 MB锛屾墜鏈轰笂瑕佷笅杞戒竴涓ょ 鈥斺€?涓嶇粰鎻愮ず灏辨槸鐧藉睆銆?   鍔犺浇瀹屾垚鍚庣敱 app.js 鐨?hideBootMask() 鍔?.hide 绉婚櫎銆?   ============================================================ */
.boot-mask {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.boot-mask.hide { opacity: 0; visibility: hidden; }
.boot-inner { text-align: center; padding: 0 32px; max-width: 340px; }
.boot-logo {
  width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 17px;
  background: linear-gradient(140deg, #4D96FF, #1E5CD6);
  color: #fff; font-size: 32px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(30, 92, 214, 0.28);
  animation: boot-pop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes boot-pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.boot-text {
  font-size: 14px; color: var(--text-2); font-weight: 600;
  margin-bottom: 14px;
}
.boot-text.boot-error { color: var(--bad); }
.boot-bar {
  height: 3px; border-radius: 999px; overflow: hidden;
  background: var(--sunken); margin-bottom: 16px;
}
.boot-bar span {
  display: block; height: 100%; width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4D96FF, #1E5CD6);
  animation: boot-slide 1.15s ease-in-out infinite;
}
@keyframes boot-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.boot-hint { font-size: 11px; color: var(--text-3); line-height: 1.7; }

/* ============================================================
   瀹夎寮曞鏉★紙浠呯綉绔欑増锛岀敱 site.js 鍔ㄦ€佹彃鍏ワ級
   鎻愮ず鐢ㄦ埛"娣诲姞鍒颁富灞忓箷"鈥斺€斿姞瀹屽氨鑳芥柇缃戜娇鐢紝鍜?App 涓€鏍枫€?   ============================================================ */
.install-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 99;
  display: flex; align-items: center; gap: 10px;
  max-width: 696px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 11px 13px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}
.install-text {
  flex: 1; min-width: 0;
  font-size: 12.5px; line-height: 1.5; color: var(--text-2);
}
.install-btn {
  flex: none; border: 0; background: var(--brand); color: #fff;
  border-radius: 9px; padding: 8px 13px;
  font-size: 12.5px; font-weight: 700; font-family: inherit;
}
.install-close {
  flex: none; border: 0; background: transparent; color: var(--text-3);
  font-size: 13px; padding: 4px 6px;
}

/* 灏婇噸绯荤粺鐨?鍑忓皯鍔ㄦ晥"璁剧疆 */
@media (prefers-reduced-motion: reduce) {
  .boot-logo { animation: none; }
  .boot-bar span { animation: none; width: 100%; opacity: 0.5; }
}

/* ============================================================
   鏁版嵁鏉ユ簮鎻愮ず涓庤鏄?   鏁版嵁鏄悎鎴愮殑杩欎欢浜嬪繀椤昏鐢ㄦ埛鍦ㄧ湅鏁板瓧涔嬪墠灏辩煡閬擄紝
   鎵€浠ユ彁绀烘潯鏀惧湪鎼滅储缁撴灉涔嬩笂銆佽蛋鍔垮浘涔嬩笅鍚勪竴澶勩€?   ============================================================ */
.databanner {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 8px 0 2px; padding: 10px 12px;
  background: var(--warn-soft);
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.16s ease;
}
.databanner:active { transform: scale(0.995); }
.databanner-icon {
  flex: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--warn); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 17px; text-align: center;
  margin-top: 1px;
}
.databanner-t { font-size: 12px; font-weight: 700; color: var(--warn); line-height: 1.5; }
.databanner-s { font-size: 11px; color: var(--text-2); line-height: 1.6; margin-top: 2px; }

.chart-src {
  font-size: 10.5px; color: var(--warn); line-height: 1.6;
  margin-top: 7px; padding-top: 7px;
  border-top: 1px dashed var(--line-2);
}

/* ---- 璇存槑寮瑰眰 ---- */
.sheet-layer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, 0.42);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 720px) { .sheet-layer { align-items: center; } }
.sheet {
  width: 100%; max-width: 640px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.2);
}
@media (min-width: 720px) { .sheet { border-radius: var(--r-xl); } }
.sheet-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px 11px;
  border-bottom: 1px solid var(--line);
}
.sheet-title { font-size: 15px; font-weight: 800; }
.sheet-close {
  border: 0; background: transparent; color: var(--text-3);
  font-size: 15px; padding: 4px 7px; font-family: inherit;
}
.sheet-body { flex: 1; min-height: 0; overflow: auto; padding: 13px 16px 16px; }
.sheet-lead {
  font-size: 12.5px; font-weight: 700; color: var(--warn);
  background: var(--warn-soft); border-radius: var(--r-sm);
  padding: 9px 11px; line-height: 1.6;
}
.sheet-stats {
  font-size: 11px; color: var(--text-3); line-height: 1.8;
  margin-top: 9px;
}
.sheet-h {
  font-size: 12.5px; font-weight: 800; color: var(--text);
  margin: 16px 0 8px;
}
.sheet-sub { font-size: 12px; font-weight: 700; color: var(--text-2); margin: 11px 0 5px; }
.sheet-table { display: flex; flex-direction: column; gap: 7px; }
.sheet-row {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--sunken); border-radius: var(--r-sm);
  padding: 9px 11px;
}
.sheet-mark {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  font-size: 10.5px; font-weight: 800; line-height: 20px; text-align: center;
  margin-top: 1px;
}
.sheet-mark.ok { background: var(--good-soft); color: var(--good); }
.sheet-mark.no { background: var(--warn-soft); color: var(--warn); }
.sheet-k { font-size: 12px; font-weight: 700; line-height: 1.5; }
.sheet-v { font-size: 11px; color: var(--text-2); line-height: 1.65; margin-top: 2px; }
.sheet-legend { font-size: 10.5px; color: var(--text-3); margin-top: 8px; }
.sheet-list { display: flex; flex-direction: column; gap: 5px; }
.sheet-li {
  font-size: 11.5px; color: var(--text-2); line-height: 1.7;
  padding-left: 12px; position: relative;
}
.sheet-li::before {
  content: '路'; position: absolute; left: 2px; color: var(--text-3); font-weight: 800;
}
.sheet-note {
  font-size: 11.5px; color: var(--text-2); line-height: 1.75;
  background: var(--sunken); border-radius: var(--r-sm);
  padding: 10px 12px; margin-top: 8px;
}
.sheet-foot {
  flex: none; padding: 11px 16px 15px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   瀹藉睆閫傞厤锛堢綉绔欑壒鏈夛細璇勫寰堝彲鑳界敤鐢佃剳鎵撳紑锛?   App 鏄獎灞忚璁★紝鐩存帴鏀惧ぇ浼氭媺寰楀緢瀹姐€佷竴琛屽瓧杩囬暱銆佸簳閮ㄦ爣绛炬爮绂诲唴瀹瑰緢杩溿€?   杩欓噷鍦ㄥ灞忎笂鏀舵垚灞呬腑鐨勪竴鍒楋紝骞舵妸搴曢儴鏍囩鏍忓浐瀹氬湪杩欎竴鍒楃殑瀹藉害鍐呫€?   ============================================================ */
@media (min-width: 720px) {
  body { background: var(--sunken); }
  .app {
    max-width: 720px; margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    box-shadow: 0 0 0 1px var(--line), 0 12px 40px rgba(15, 23, 42, 0.07);
  }
  .topbar, .tabbar { max-width: 720px; margin-left: auto; margin-right: auto; }
  /* 瀹藉睆涓嬫悳绱㈡涓庡崱鐗囩暀鐧界◢澶т竴浜涳紝瑙傛劅鏇磋垝灞?*/
  .search { padding-left: 20px; padding-right: 20px; }
  .card, .answer, .facets { margin-left: 18px; margin-right: 18px; }
}

/* 瓒呭灞忥細涓ゅ垪灞曠ず锛岄伩鍏嶄腑闂翠竴鏉＄獎甯︿袱杈瑰叏鏄┖鐧?*/
@media (min-width: 1180px) {
  .app { max-width: 1080px; }
  .topbar, .tabbar { max-width: 1080px; }
}
