/*
 * @Project      : Xyuan筱元主题
 * @Description  : 文章评分组件 · 筱元配色适配层
 * @Date         : 2026-09-24 23:55:00
 * @LastEditTime : 2026-09-24 23:55:00
 *
 * 组件自带的样式是写死的固定蓝色 (#4a90e2 → #5ba3f5)，和筱元的主题色（星宇橙 × 竹子青）
 * 放在一起很跳。这里不改组件逻辑，只覆盖颜色：
 *   - 评分卡渐变 → var(--theme-color) → 竹子青（切换主题色时整块同步换色）
 *   - 空星 → 半透明黑（任何主题色上都看得清），实心星保持白色
 *   - 分布条 / 分布星 → 跟随主题色
 * 选择器都比组件自带规则高一级，确保覆盖生效（组件的 <style> 是运行时注入的，位置在后面）。
 */

body .star-score-widget .star-score-rating,
body .star-score-stats-left .stats-rating {
    background: linear-gradient(135deg, var(--theme-color, #ff8a3d) 0%, #2fb8a6 100%);
    box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .45);
}

body .star-icon-base svg {
    fill: rgba(0, 0, 0, .32);
}

body .star-icon-fill-inner svg {
    fill: #fff;
}

body .distribution-bar {
    background: linear-gradient(90deg, var(--theme-color, #ff8a3d) 0%, #2fb8a6 100%);
}

body .distribution-star-icon svg {
    fill: var(--theme-color, #ff8a3d);
}

body .stats-main-title {
    color: var(--muted-2-color, #6b7280);
}

body .star-score-content-box {
    border-color: rgba(0, 0, 0, .08);
    box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .35);
}

/* 悬停/选中时的提示文字：主题色更有辨识度，同时保留在深色卡上的可读性 */
body .star-score-hover-text {
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

/* ==========================================================================
   文章内容框里的「直接评分」条（.xyuan-rate-inline）
   背景是浅色卡片，所以这里的星星要反过来：空星淡灰、实心星用主题色；
   深色评分卡上的白色星星规则保持在上面那段，互不干扰。
   ========================================================================== */

body .xyuan-rate-inline {
    margin-top: 24px;
    padding: 18px 16px;
    border-radius: var(--main-radius, 12px);
    background: rgba(0, 0, 0, .035);
    border: 1px dashed rgba(0, 0, 0, .09);
    text-align: center;
}

body .xyuan-rate-inline-prompt {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--muted-2-color, #4b5563);
    margin-bottom: 10px;
}

body .xyuan-rate-inline .star-score-stars {
    margin-top: 0;
}

body .xyuan-rate-inline .star-score-stars .radio {
    margin-bottom: 8px;
}

body .xyuan-rate-inline .star-score-stars .radio > label {
    font-size: 30px;
}

body .xyuan-rate-inline .star-icon-base svg {
    fill: rgba(0, 0, 0, .16);
}

body .xyuan-rate-inline .star-icon-fill-inner svg {
    fill: var(--theme-color, #ff8a3d);
}

body .xyuan-rate-inline .star-score-hover-text {
    font-size: 13px;
    min-height: 18px;
    color: var(--muted-2-color, #6b7280);
    text-shadow: none;
}

body .xyuan-rate-inline--locked .xyuan-rate-locked-tip {
    font-size: 13px;
    color: var(--muted-2-color, #6b7280);
}
