/* ============ 子女血型遗传查询 ============ */
/* 卡片头部右侧：计数与重置按钮垂直居中 */
.card-header-right {
    align-items: center;
}

.header-count {
    font-size: 12px;
    color: #6b7280;
    line-height: 1;
}

/* 血型选择（按钮复用 common.css .btn/.btn-outline/.btn-sm） */
.blood-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blood-types .btn.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

/* 结果区 */
.result-box {
    padding: 18px 20px;
    background: #f8f7ff;
    border: 1px solid #e9e3ff;
    border-radius: 8px;
}

.result-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.result-text {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blood-type-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
}

.tag-a { background: #fee2e2; color: #dc2626; }
.tag-b { background: #dcfce7; color: #16a34a; }
.tag-ab { background: #ede9fe; color: #7c3aed; }
.tag-o { background: #e5e7eb; color: #4b5563; }

.result-empty {
    color: #9ca3af;
    font-size: 14px;
}

/* 对照表 */
.table-section {
    margin-top: 20px;
}

.table-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.table-wrapper {
    overflow-x: auto;
}

.blood-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.blood-table th,
.blood-table td {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.blood-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.blood-table td {
    color: #6b7280;
}

.blood-table tbody tr:hover {
    background: #f9fafb;
}

/* ============ 深色模式 ============ */
body.dark .header-count {
    color: #9aa0a6;
}

body.dark .result-box {
    background: rgba(139, 92, 246, 0.1);
    border-color: #3a2f5c;
}

body.dark .result-label {
    color: #9aa0a6;
}

body.dark .tag-a { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
body.dark .tag-b { background: rgba(34, 197, 94, 0.15); color: #86efac; }
body.dark .tag-ab { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; }
body.dark .tag-o { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }

body.dark .result-empty {
    color: #6b7280;
}

body.dark .table-title {
    color: #e0e0e0;
}

body.dark .blood-table th {
    background: #212529;
    color: #cfcfcf;
}

body.dark .blood-table td {
    color: #9aa0a6;
    border-color: #495057;
}

body.dark .blood-table tbody tr:hover {
    background: #212529;
}
