/* v2.88 评分卡片：右下角滑出，无遮罩，两套（解析 / 打印）共用同一套样式 */
.rt-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 9990;
  width: 300px; box-sizing: border-box;
  padding: 16px 16px 14px; border-radius: 16px;
  background: #fff;
  border: 1px solid #eef1f7;
  box-shadow: 0 18px 40px -18px rgba(20, 30, 60, .30), 0 2px 8px rgba(20, 30, 60, .06);
  font-family: inherit;
  animation: rt-slide .3s cubic-bezier(.18, .9, .28, 1.1) both;
}
.rt-toast.is-out { animation: rt-slide-out .3s ease forwards; }
@keyframes rt-slide {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes rt-slide-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(10px) scale(.98); }
}

.rt-x {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px;
  border: 0; border-radius: 50%; background: transparent; color: #b6bcca;
  font: 17px/26px -apple-system, 'PingFang SC', system-ui, sans-serif;
  cursor: pointer; transition: background .14s, color .14s;
}
.rt-x:hover { background: #f3f5fa; color: #7b8299; }

.rt-main { min-width: 0; }
.rt-q {
  margin: 0 0 12px; padding-right: 22px;
  font: 600 14px/1.5 -apple-system, 'PingFang SC', system-ui, sans-serif;
  color: #232838; letter-spacing: .2px;
}
.rt-votes { display: flex; gap: 10px; }
.rt-vote {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 10px; border: 1px solid #e7ebf3; border-radius: 12px;
  background: #f7f9fc; color: #475069;
  font: 500 13px/1 -apple-system, 'PingFang SC', system-ui, sans-serif;
  cursor: pointer;
  transition: transform .12s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.rt-vote .rt-ico { font-size: 16px; line-height: 1; font-weight: 400; }
.rt-vote:hover { background: #fff; border-color: #d7e2f6; box-shadow: 0 4px 12px -6px rgba(59, 130, 246, .35); }
.rt-vote:active { transform: scale(.96); }
.rt-vote[data-v="up"]:hover { border-color: #bcd9ff; background: #f3f8ff; color: #1d4ed8; }
.rt-vote[data-v="down"]:hover { border-color: #f3d2d2; background: #fff6f6; color: #c23c3c; }

.rt-input {
  width: 100%; box-sizing: border-box; min-height: 58px; padding: 9px 11px;
  border: 1px solid #e4e9f2; border-radius: 10px; resize: vertical;
  background: #fbfcfe; color: #333c4f;
  font: 13px/1.6 -apple-system, 'PingFang SC', system-ui, sans-serif;
  outline: none; transition: border-color .14s, box-shadow .14s;
}
.rt-input::placeholder { color: #a9b1c2; }
.rt-input:focus { border-color: #b9caf0; background: #fff; box-shadow: 0 0 0 3px rgba(59, 130, 246, .10); }
.rt-actions { display: flex; margin-top: 9px; }
.rt-send {
  flex: 1; height: 38px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #62a0ff 0%, #3b82f6 60%, #2563eb 100%);
  color: #fff; font: 600 13.5px/1 -apple-system, 'PingFang SC', system-ui, sans-serif;
  cursor: pointer; box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .55);
  transition: transform .12s ease, filter .16s ease;
}
.rt-send:hover { filter: brightness(1.05); }
.rt-send:active { transform: scale(.97); }

.rt-thanks {
  margin: 2px 0 4px; text-align: center;
  font: 600 14px/1.6 -apple-system, 'PingFang SC', system-ui, sans-serif;
  color: #1f8b52;
  animation: rt-fade-in .22s ease both;
}
.rt-thanks.is-down { color: #475069; }
@keyframes rt-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 768px) {
  .rt-toast {
    left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom));
    width: auto; padding: 14px 14px 12px; border-radius: 15px;
  }
  .rt-q { font-size: 13.5px; margin-bottom: 10px; }
  .rt-vote { height: 42px; }
  .rt-input { min-height: 54px; }
}
