/**
 * Edu Theme - 师资配置通用样式
 *
 * 编程学院（真人教学）/ 学科提升（AI督学）/ 升学规划（团队配置）
 * 三种模式共用此样式表
 *
 * @package Edu_Theme
 * @since 2.7.0
 */

/* ==================== 师资配置容器 ==================== */
.edu-teacher-config {
    max-width: 860px;
    margin: 0 auto;
}

.edu-teacher-config__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
    text-align: center;
}

.edu-teacher-config--coding .edu-teacher-config__title { color: #e65100; }
.edu-teacher-config--k12    .edu-teacher-config__title { color: #4a148c; }
.edu-teacher-config--exam   .edu-teacher-config__title { color: #1a237e; }

/* ==================== 配置表格 ==================== */
.edu-config-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.edu-config-table thead {
    background: #f5f5f5;
}

.edu-config-table th {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

.edu-config-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 0.9rem;
}

.edu-config-table tr:last-child td {
    border-bottom: none;
}

.edu-config-table tr:hover td {
    background: #fafafa;
}

.edu-config-table__name {
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

/* ==================== 等级徽章标签 ==================== */
.edu-rank-badge-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 14px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    white-space: nowrap;
    line-height: 1.4;
}

.edu-rank-badge-tag--mini {
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 10px;
}

/* ==================== 配置单元格 ==================== */
.edu-config-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-config-cell__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.edu-config-cell__desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
}

.edu-config-cell__desc--ai {
    color: #7b1fa2;
    font-weight: 500;
}

.edu-config-cell__desc--highlight {
    color: #1a237e;
    font-weight: 600;
}

/* ==================== 团队徽章组（升学规划用） ==================== */
.edu-config-team-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    padding: 3px 10px 3px 4px;
    border-radius: 16px;
    margin: 2px;
}

.edu-config-team-badge small {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
}

/* ==================== 说明文字 ==================== */
.edu-config-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--edu-gold, #c9a84c);
}

.edu-config-note p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

.edu-teacher-config--k12 .edu-config-note {
    border-left-color: #7b1fa2;
    background: #f3e5f5;
}

.edu-teacher-config--exam .edu-config-note {
    border-left-color: #1a237e;
    background: #e8eaf6;
}

/* ==================== CTA 按钮区 ==================== */
.edu-config-cta {
    text-align: center;
    margin-top: 24px;
}

.edu-config-cta .edu-btn {
    font-size: 1rem;
    padding: 12px 32px;
}

/* ==================== 课程详情页师资配置区块 ==================== */
.edu-course-teachers-section--coding {
    /* 橙色主题 — 已在 hooks.php inline style 中定义 */
}

.edu-course-teachers-section--k12 {
    /* 紫色主题 — 已在 hooks.php inline style 中定义 */
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .edu-config-table {
        font-size: 0.8rem;
    }

    .edu-config-table th,
    .edu-config-table td {
        padding: 10px 8px;
    }

    .edu-config-table__name {
        white-space: normal;
        font-size: 0.85rem;
    }

    .edu-rank-badge-tag {
        padding: 2px 6px;
        font-size: 0.7rem;
    }

    .edu-teacher-config__title {
        font-size: 1.1rem;
    }

    .edu-config-team-badge {
        padding: 2px 8px 2px 3px;
    }
}

@media (max-width: 480px) {
    .edu-config-table thead {
        display: none;
    }

    .edu-config-table tr {
        display: block;
        padding: 12px;
        border-bottom: 1px solid #e0e0e0;
    }

    .edu-config-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: none;
    }

    .edu-config-table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.75rem;
        color: #888;
        min-width: 70px;
    }
}
