/* 选择批次页面 */

/* 顶部考生信息区 */
.header-left-area {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.bc-link {
    color: #409eff;
    cursor: pointer;
}

.bc-text {
    color: #f56c6c;
    cursor: pointer;
}

.header-right-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-tags {
    display: flex;
    gap: 8px;
}

.header-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    background-color: #f4f4f5;
    color: #909399;
    border: 1px solid #e9e9eb;
}

.header-tag.primary {
    background-color: #ecf5ff;
    color: #409eff;
    border-color: #d9ecff;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #409eff 0%, #5e72e4 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.student-name {
    font-size: 14px;
    color: #303133;
    font-weight: 600;
}

.btn-view-plan {
    height: 30px;
    padding: 0 14px;
    background-color: #f56c6c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-view-plan:hover {
    background-color: #f89898;
}

/* 步骤进度条 */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: #fff;
    border-bottom: 1px solid #ebeef5;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #909399;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #ebeef5;
    color: #909399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.step-label {
    font-size: 14px;
}

.step-item.active .step-num {
    background-color: #409eff;
    color: #fff;
}

.step-item.active .step-label {
    color: #409eff;
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 1px;
    background-color: #ebeef5;
}

/* 主体内容 */
.content-body {
    padding: 24px;
}

/* 顶部 tab 胶囊 */
.tab-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.tab-pill {
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    color: #606266;
    background-color: #fafbfc;
    border: 1px solid #ebeef5;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-pill.active {
    background-color: #409eff;
    color: #fff;
    border-color: #409eff;
}

/* 批次卡片网格 */
.batch-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.batch-card {
    position: relative;
    padding: 14px 16px;
    background-color: #fafbfc;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.batch-card:hover {
    border-color: #409eff;
    background-color: #ecf5ff;
}

.batch-card.selected {
    border-color: #409eff;
    background-color: #ecf5ff;
    color: #409eff;
    font-weight: 500;
}

.batch-name {
    font-size: 13px;
}

/* 选中标记（右下角勾号）
   ⚠️ 默认必须 display:none —— 每张卡片都带了 .check-mark，
      靠 .selected 控制显示，才能支持多选时每张都有勾号。 */
.check-mark {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    background-color: #409eff;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border-top-left-radius: 4px;
}

.batch-card.selected .check-mark {
    display: flex;
}

/* 设置栏 */
.settings-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px dashed #ebeef5;
    flex-wrap: wrap;
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-group label {
    font-size: 13px;
    color: #606266;
    white-space: nowrap;
}

.setting-select {
    height: 32px;
    padding: 0 28px 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background-color: #fff;
    color: #606266;
    font-size: 13px;
    min-width: 130px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23909399' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.setting-select:focus {
    border-color: #409eff;
}

.setting-input {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background-color: #fff;
    color: #606266;
    font-size: 13px;
    width: 100px;
    outline: none;
}

.setting-input:focus {
    border-color: #409eff;
}

.setting-hint {
    font-size: 12px;
    color: #f56c6c;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.hint-icon {
    color: #e6a23c;
}

/* 开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dcdfe6;
    border-radius: 20px;
    transition: 0.3s;
}

.slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background-color: #409eff;
}

.switch input:checked + .slider::before {
    transform: translateX(18px);
}

/* 文本框 */
.textarea-wrapper {
    padding: 16px 0;
}

.school-input {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background-color: #fff;
    color: #606266;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.6;
}

.school-input:focus {
    border-color: #409eff;
}

/* 提交按钮 */
.submit-area {
    padding: 20px 0;
}

.btn-submit {
    height: 38px;
    padding: 0 32px;
    background-color: #f56c6c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #f89898;
}

/* 响应式 */
@media (max-width: 1200px) {
    .batch-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .batch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
