/* 站内「备选对比车」样式 · 2026-11-13 卡 t_e662ef4a
   ------------------------------------------------------------------
   纪律：只作用于 .addcmp / .cmpcart / .cmpbar / .cmptoast / .cmp-side 这几组新类，
        不改写 site.css 里任何既有规则（既有 .cmp 表格规则一个字没动）。
        只走站内相对路径，不引 CDN、不引第三方字体。 */

/* ---- 入口按钮：「+ 对比」（L2 表格行尾）/「+ 加入对比」（L1 详情页） ---- */
.addcmp {
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.addcmp:hover { background: #f0fdfa; border-color: #5eead4; }
.addcmp:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
.addcmp.on { background: #0f766e; border-color: #0f766e; color: #fff; }
.addcmp-bot { font-size: 14px; padding: 8px 14px; }

.cmpadd { margin: 10px 0 4px; }
.cmpadd-top { margin: 6px 0 12px; }
.cmpside-k { white-space: nowrap; }
.cmpaddcell { text-align: center; white-space: nowrap; }
.cmphint { display: inline-block; margin-left: 10px; font-size: 12.5px; color: #64748b; }

/* ---- 对比页的「我的对比」面板 ---- */
.cmpcart {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px 8px;
  margin: 16px 0 22px;
  background: #fbfdff;
}
.cmpcart h2 { margin: 0 0 6px; font-size: 18px; }
.cmpcart-n { font-size: 14px; color: #0f766e; font-weight: 600; }
.cmpwrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.cmp-side { font-size: 14px; }
.cmp-side th, .cmp-side td { vertical-align: top; }
.cmp-side tbody th {
  width: 96px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}
.cmp-side thead th { background: #f1f5f9; }
.cmpside-h { min-width: 150px; }
.cmpside-i {
  display: inline-block;
  width: 20px; height: 20px; line-height: 20px;
  margin-right: 6px;
  border-radius: 50%;
  background: #0f766e; color: #fff;
  font-size: 12px; text-align: center;
}
.cmprm {
  font: inherit; font-size: 12px;
  margin-left: 6px; padding: 2px 8px;
  border: 1px solid #e2e8f0; border-radius: 999px;
  background: #fff; color: #64748b; cursor: pointer;
}
.cmprm:hover { border-color: #fca5a5; color: #b91c1c; }

.cmpact { margin: 12px 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.cmpbtn {
  font: inherit; font-size: 14px;
  padding: 9px 16px;
  border: 1px solid #0f766e; border-radius: 8px;
  background: #0f766e; color: #fff; cursor: pointer;
}
.cmpbtn:hover { background: #115e59; }
.cmpbtn.cmpclear { background: #fff; color: #64748b; border-color: #cbd5e1; }
.cmpbtn.cmpclear:hover { color: #b91c1c; border-color: #fca5a5; }
#cmpfallback-text {
  width: 100%; box-sizing: border-box;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.6;
  padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff; color: #334155;
}
#cmpcart-msg { min-height: 1.2em; }

/* ---- 右下角浮条：≥1 条才出现；给 body 留出底部空间，绝不压住正文最后一行 ----
   注意：site.css 的 body.pg / body.homev2 会写 padding（同权重且后加载），
   所以这里用「同 class 写两遍」把权重抬到 0,2,1，确保留白真的生效。 */
body.cmpbar-on.cmpbar-on { padding-bottom: 72px; }
.cmpbar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 118, 110, .32);
}
.cmpbar:hover { background: #115e59; }
.cmptoast {
  position: fixed;
  right: 16px;
  bottom: 74px;
  z-index: 61;
  max-width: 78vw;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.cmptoast.on { opacity: 1; transform: translateY(0); }

@media (max-width: 520px) {
  .cmpcart { padding: 12px 10px 6px; }
  .cmp-side { min-width: 430px; }        /* 窄屏在 .cmpwrap 里横滑，不撑破页面 */
  .cmp-side tbody th { width: 76px; font-size: 13px; }
  .cmpaddcell { font-size: 12px; }
  .addcmp { padding: 8px 12px; }         /* 手机上好点 */
  .cmpbar { padding: 11px 15px; font-size: 14px; right: 12px; bottom: 12px; }
  .cmptoast { right: 12px; bottom: 68px; }
  body.cmpbar-on.cmpbar-on { padding-bottom: 80px; }
}

/* ===== 2026-11-13 卡 t_dc2e8976 · 速览卡右上角那一处对比入口 =====
   老爹标准 2：`+对比` 从标题下方的孤零零灰框，移进速览卡右上角。
   按钮本体仍由 build.py 的 cmp_add_btn() 生成，data-cmp-* 三个属性一字未动，
   这里只负责它在卡片里的样子（.sumtools 的定位在 site.css，那里有 .sumcard）。 */
.sumcard .sumtools .addcmp{padding:5px 11px;font-size:13px;white-space:nowrap}
@media (max-width:720px){
  .sumcard .sumtools{position:static;margin:0 0 10px;text-align:right}
}
