/* ============================================================
   用户评分模块 · 详情页 (jmr-*)
   独立配色, 不依赖 .jm-home / .jd-* 变量, 两套详情页模板通用
   ============================================================ */
.jmr-box {
    margin: 22px 0 26px;
    padding: 20px 22px 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}
.jmr-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.jmr-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
}
.jmr-head h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    margin-right: 9px;
    vertical-align: -2px;
    background: #2563eb;
    border-radius: 2px;
}
.jmr-sub { font-size: 13px; color: #6b7280; }

.jmr-body {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px 30px;
    align-items: center;
}

/* 平均分 */
.jmr-score { text-align: center; padding-right: 24px; border-right: 1px solid #eef0f3; }
.jmr-avg { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.jmr-avg b { font-size: 40px; line-height: 1.1; font-weight: 700; color: #2563eb; letter-spacing: -1px; }
.jmr-avg span { font-size: 14px; color: #9ca3af; }
.jmr-stars { display: flex; justify-content: center; gap: 3px; margin: 7px 0 8px; }
.jmr-star, .jmr-pick-star {
    display: block;
    width: 16px;
    height: 16px;
    background: #d1d5db;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.jmr-star.on, .jmr-pick-star.on, .jmr-pick-star.hover { background: #f59e0b; }
.jmr-count { font-size: 13px; color: #6b7280; }
.jmr-count b { color: #1f2937; font-weight: 600; }

/* 星级分布 */
.jmr-dist { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.jmr-dist-row { display: flex; align-items: center; gap: 10px; }
.jmr-dist-label { width: 34px; flex: none; font-size: 12px; color: #6b7280; }
.jmr-dist-track {
    flex: 1 1 auto;
    min-width: 0;
    height: 7px;
    background: #f1f3f6;
    border-radius: 99px;
    overflow: hidden;
}
.jmr-dist-fill { display: block; height: 100%; background: #f59e0b; border-radius: 99px; transition: width .25s ease; }
.jmr-dist-num { width: 28px; flex: none; text-align: right; font-size: 12px; color: #9ca3af; }

/* 打分交互 */
.jmr-vote {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}
.jmr-vote-label { font-size: 13px; color: #4b5563; font-weight: 600; }
.jmr-pick { display: flex; gap: 7px; }
.jmr-pick-star {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    outline: 0;
    cursor: pointer;
    background: #d1d5db;
    transition: transform .12s ease, background .12s ease;
}
.jmr-pick-star:hover { transform: scale(1.12); }
.jmr-pick-star:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.jmr-msg { font-size: 12px; color: #6b7280; }
.jmr-msg.err { color: #dc2626; }

@media (max-width: 860px) {
    .jmr-body { grid-template-columns: 1fr; gap: 16px; }
    .jmr-score { padding-right: 0; padding-bottom: 14px; border-right: 0; border-bottom: 1px solid #eef0f3; }
    .jmr-vote { grid-column: auto; }
}
@media (max-width: 560px) {
    .jmr-box { padding: 16px 15px 18px; }
    .jmr-head h3 { font-size: 16px; }
    .jmr-sub { width: 100%; }
    .jmr-avg b { font-size: 34px; }
    .jmr-pick-star { width: 24px; height: 24px; }
}
