/* public/assets/css/tools/life/blood-type.css */
.blood-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .blood-workspace {
        grid-template-columns: 1fr;
    }
}

.blood-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.blood-parent-card {
    background: var(--bg-body);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.blood-parent-card:last-child { margin-bottom: 0; }

.parent-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 16px;
    font-weight: 700;
}

.blood-group {
    margin-bottom: 16px;
}
.blood-group:last-child { margin-bottom: 0; }

.blood-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.blood-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blood-opt {
    flex: 1;
    min-width: 45px;
    text-align: center;
    padding: 10px 0;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.blood-opt.rh-opt { min-width: 100px; font-size: 0.9rem; }

.blood-opt:hover {
    border-color: rgba(var(--primary-rgb, 0, 102, 204), 0.4);
    background: rgba(var(--primary-rgb, 0, 102, 204), 0.02);
}

/* 选中高亮状态 (主色调) */
.blood-opt.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 0, 102, 204), 0.3);
    transform: translateY(-2px);
}

/* 结果区样式 */
.blood-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.result-box {
    flex: 1;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.res-header h3 {
    margin: 0 0 16px 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.result-possible { background: rgba(16, 185, 129, 0.05); border: 1px solid rgba(16, 185, 129, 0.2); }
.result-possible .res-header h3 { color: #059669; }

.result-impossible { background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.2); }
.result-impossible .res-header h3 { color: #dc2626; }

.res-body {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 结果小卡片 (血滴拟物感) */
.res-drop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #ffffff;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.res-drop small { font-size: 0.8rem; font-weight: 600; opacity: 0.8; margin-left: 4px; }
.result-possible .res-drop { color: #059669; border-color: rgba(16, 185, 129, 0.3); }
.result-impossible .res-drop { color: #dc2626; opacity: 0.7; }

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

[data-theme="dark"] .result-possible { background: rgba(16, 185, 129, 0.1); }
[data-theme="dark"] .result-impossible { background: rgba(239, 68, 68, 0.1); }
[data-theme="dark"] .res-drop { background: #1e293b; border-color: #334155; }