/**
 * 世应态势模块（shiying-strength.css）
 * - 包含世应态势仪表盘、标签、评分条、事项说明与移动端响应式。
 * - 与六亲强弱视觉体系保持一致，但作用域仅限 shiying 组件。
 * - 建议在 qin-strength.css 之后、style.css 之前加载。
 */
.liuyao-shiying-strength {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}
.liuyao-shiying-strength-note {
    flex: 1 1 100%;
    width: 100%;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
    text-align: right;
    margin-top: 2px;
}
.liuyao-shiying-strength-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.liuyao-shiying-strength-row + .liuyao-shiying-strength-row { border-top: 1px solid rgba(47, 107, 82, 0.16); margin-top: 12px; padding-top: 12px; }
.liuyao-shiying-strength-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "label label"
        "bar tags";
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
}
.liuyao-shiying-strength-label { grid-area: label; display: flex; align-items: flex-start; justify-content: flex-start; min-width: 0; }
.liuyao-shiying-strength-label-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    max-width: 100%;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #4338ca;
    background: linear-gradient(165deg, #fafbff 0%, #e8ecff 38%, #d4dcfa 100%);
    border: 1px solid #a5b4fc;
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 1px 2px rgba(255, 255, 255, 0.55) inset,
        0 3px 8px rgba(99, 102, 241, 0.18),
        0 1px 3px rgba(15, 23, 42, 0.08);
    line-height: 1.45;
    user-select: none;
    pointer-events: none;
}
.liuyao-shiying-strength-label-pill--with-hint { align-items: baseline; }
.liuyao-shiying-strength-pill-hint { font-weight: 500; color: #3730a3; }
.liuyao-shiying-strength-bar { height: 12px; border-radius: 999px; background: #e8f3ee; border: 1px solid rgba(47, 107, 82, 0.18); overflow: hidden; }
.liuyao-shiying-strength-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2f6b52 0%, #3ea97f 100%); width: 0%; transition: width 0.2s ease; }
.liuyao-shiying-strength-bar-col { grid-area: bar; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.liuyao-shiying-strength-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-self: center; min-width: 10em; }
.liuyao-shiying-strength-tag { font-size: 12px; line-height: 1; padding: 5px 8px; border-radius: 999px; background: rgba(15, 23, 42, 0.04); border: 1px solid rgba(15, 23, 42, 0.08); color: #475569; white-space: nowrap; }
.liuyao-shiying-strength-tag--bad { background: var(--liuyao-jixiong-xiong-bg); border-color: var(--liuyao-jixiong-xiong-border); color: var(--liuyao-jixiong-xiong); }
.liuyao-shiying-strength-tag--good { background: var(--liuyao-jixiong-ji-bg); border-color: var(--liuyao-jixiong-ji-border); color: var(--liuyao-jixiong-ji); }
.liuyao-shiying-strength-tag-note { flex: 1 1 100%; width: 100%; font-size: 12px; line-height: 1.45; color: #64748b; text-align: right; margin-top: 2px; }
.liuyao-shiying-strength-row--with-matter {
    grid-template-areas:
        "label label"
        "bar tags"
        "matter matter";
}
.liuyao-shiying-strength-row--with-matter .liuyao-shiying-strength-matter { align-self: stretch; }
.liuyao-shiying-strength-matter {
    margin: 0;
    padding: 8px 10px 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    text-align: left;
    background: #f1f5f9;
    border-radius: 10px;
    border-left: 3px solid #2563eb;
    grid-area: matter;
}

@media (max-width: 520px) {
    .liuyao-shiying-strength-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "label"
            "bar"
            "tags";
        align-items: stretch;
    }
    .liuyao-shiying-strength-row--with-matter {
        grid-template-areas:
            "label"
            "bar"
            "tags"
            "matter";
    }
    .liuyao-shiying-strength-tags {
        justify-content: flex-start;
        min-width: 0;
        align-self: stretch;
    }
}
