/**
 * 按钮组件层（component-buttons.css）
 * - 维护通用主/次按钮、六亲百分比按钮、以及跨模块按钮覆写。
 * - 只处理按钮与按钮容器相关规则，不承载大块布局样式。
 * - 建议在 layout-shell.css 之后加载，供业务模块复用。
 */
.action-section {
    text-align: center;
    padding: 40px 20px;
}

.primary-btn {
    background: linear-gradient(135deg, #2f6b52 0%, #1a5f4a 100%);
    color: white;
    border: none;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(47, 107, 82, 0.4);
    transition: all 0.3s;
    font-weight: 600;
    width: 100%;
    height: 40px;
    max-width: 300px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 82, 0.5);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.secondary-btn {
    background: white;
    color: #2f6b52;
    border: 2px solid #2f6b52;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    max-width: 300px;
    margin: 20px auto;
    display: block;
}

.secondary-btn:hover {
    background: #2f6b52;
    color: white;
}

.manual-section > .primary-btn {
    display: block;
    margin: 20px auto 0;
}

.result-actions .secondary-btn {
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
}

/* 六亲强弱归一百分比：在能量条下方 */
.yongshen-qin-strength-pct {
    appearance: none;
    border: 1px solid #cfd4dc;
    background: #f3f4f6;
    cursor: pointer;
    padding: 2px 8px;
    margin-top: 4px;
    min-height: 1.2em;
    font-size: 11px;
    line-height: 1.2;
    color: #374151;
    text-align: center;
    width: auto;
    min-width: 52px;
    border-radius: 6px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.yongshen-qin-strength-pct:focus-visible {
    outline: 2px solid #2f6b52;
    outline-offset: 2px;
}

.yongshen-qin-strength-pct:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.liuyao-jiegua-dual-actions > .primary-btn,
.liuyao-jiegua-dual-actions > .coin-start-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding-left: clamp(6px, 2vw, 14px);
    padding-right: clamp(6px, 2vw, 14px);
    font-size: clamp(13px, 3.6vw, 18px);
    box-sizing: border-box;
    white-space: nowrap;
}

.liuyao-ai-jiegua-module .btn-refresh-consult {
    padding: 8px 12px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.liuyao-ai-jiegua-module .btn-refresh-consult:hover {
    background-color: #45a049;
}

.liuyao-gua-rec-remark-actions .liuyao-gua-rec-remark-save.primary-btn {
    width: auto;
    min-width: 100px;
    max-width: none;
    height: auto;
    padding: 10px 22px;
    font-size: 15px;
    border-radius: 999px;
}

.liuyao-gua-rec-remark-actions .liuyao-gua-rec-delete-confirm.primary-btn {
    width: auto;
    min-width: 100px;
    max-width: none;
    height: auto;
    padding: 10px 22px;
    font-size: 15px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c62828 0%, #8e1a1a 100%);
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.35);
}

.liuyao-gua-rec-remark-actions .liuyao-gua-rec-delete-confirm.primary-btn:hover {
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.45);
}

.liuyao-gua-rec-remark-actions .liuyao-gua-rec-delete-confirm.primary-btn:active {
    transform: translateY(0);
}

.liuyao-gua-rec-remark-actions .liuyao-gua-rec-delete-confirm.primary-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}
