
/* 弹窗标题 */
.dialog-title-container {
    text-align: center;
}
.dialog-title {
    font-size: 30px;
    font-weight: 600;
    color: #353535;
}
.dialog-subtitle {
    font-size: 14px;
    color: #444444;
    font-weight: 500;
    margin-top: 8px;
}

.custom-dialog .el-dialog {
    width: 1000px !important;
    height: 550px !important;
    max-width: 1000px !important;
    min-width: 450px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
}
.custom-dialog .el-dialog__header {
    padding: 24px 24px 10px !important;
    flex-shrink: 0;
}
.custom-dialog .el-dialog__body {
    padding: 0 !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: hidden;

}


/* 步骤条 */
.step-bar {
    padding:10px 15px;
    flex-shrink: 0;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    top: -20px;
}
.step-bar-track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    position: relative;
}
.step-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 60px;
    flex: 1;
}
.step-bar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f2f2f2;
    color: #bdbdbd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 2;
    transition: all 0.3s;
}
.step-bar-item.active .step-bar-circle {
    background: #ff6262;
    color: #fff;
}
.step-bar-item.completed .step-bar-circle {
    background: #ff6262;
    color: #fff;
}
.step-bar-label {
    font-size: 14px;
    color: #3c3c3c;
    margin-top: 8px;
    min-width: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 0px;
}
.step-bar-item.active .step-bar-label {
    color: #222;
    font-weight: bold;
}
.step-bar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 38px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}


/* 步骤内容区：固定高度，内部滚动 */
.step-content {
    flex: 1;
    height: 250px !important;
    flex-shrink: 0 !important;
    /*overflow-y: auto;*/
    padding: 20px 60px;
}


.year-select-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.year-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    width:35%;
    height: 40px;
    margin-bottom:6px;
    border: 1px solid #c3c3c3;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}
.year-label.selected {
    background: #ffe6e6;
    border-color: #ffaaaa;
    color: #ff6262;
}
.school-autocomplete {
    position: relative !important;
    width: 80% !important;
    margin: 0 auto;
    display: block;
}
.school-autocomplete .el-input__inner {
    height: 45px !important;
    line-height: 48px !important;
    border-radius: 24px !important;
    border: 2px solid #dcdfe6 !important;
    font-size: 16px;
}
.el-autocomplete-suggestion {
    position: absolute !important;
    width: 100% !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    top: 100% !important;   /* 相对于输入框定位 */
    scrollbar-width: none !important;
}
.section-title {
    display: block;
    font-size: 15px;
    color: #606266;
    margin-bottom: 12px;
    padding: 0 62px;
}
.multi-btn-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;  /* 统一的间距 */
    padding: 0 100px;
}
.multi-btn-group .el-button {
    width: 100%;
    margin: 0;
    height: 40px;
    border-radius: 8px !important;
    font-size: 15px;
    border: 1px solid #c3c3c3;
}
.el-button.active-type, .el-button.active-industry {
    background: #ffe6e6 !important;
    color: #ff6262 !important;
    border-color: #ffaaaa !important;
}

/* 按钮区 */
.dialog-footer-btns {
    padding: 24px 120px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
#prevBtn.btngray, #nextBtn.btn {
    width: 35%;
    height: 48px !important;
    font-size: 18px;
    border-radius: 24px !important;
    border: none !important;
}
#prevBtn.btngray {
    background: #d3d4d6 !important;
    color: #fff !important;
}
#prevBtn.btngray.btn-active {
    background: #ff6262 !important;
}
#prevBtn.btngray:disabled {
    background: #d3d4d6 !important;
}
#nextBtn.btn {
    background: #ff6262 !important;
    color: #fff !important;
}

/* 错误提示文本：绝对定位在按钮正下方 */
.validation-error-text-absolute {
    position: absolute;
    bottom: -8px;
    right: 15px;
    width: 48%;
    text-align: center;
    margin-top: 8px;
    color: #f56c6c;
    font-size: 14px;
    pointer-events: none;
}

/* 页面切换动画 */
.slide-next-enter-active, .slide-next-leave-active, .slide-prev-enter-active, .slide-prev-leave-active {
    transition: all 0.6s ease-in-out;
}
.slide-next-enter {transform: translateX(100%); }
.slide-next-leave-to {transform: translateX(-100%); }
.slide-prev-enter {transform: translateX(-100%); }
.slide-prev-leave-to {transform: translateX(100%); }

/*响应式*/
@media (max-width: 768px) {
    .custom-dialog .el-dialog {
        width: 80vw !important;
        height: 450px !important;
        min-height: 450px;
        min-width: 0 !important;
        max-height: 85vh !important;
    }
    /* 全面减少内边距 */
    .custom-dialog .el-dialog__header { padding: 20px 15px 10px !important; margin-bottom: 8px;}
    .step-bar { padding: 10px 15px; }
    .step-content {padding: 20px 15px;}
    .dialog-footer-btns { padding: 20px 15px; }


    .step-bar-track {
        justify-content: center;
    }
    .step-bar-item {
        display: none;
        flex: 0 0 auto;
    }
    .step-bar-item.active {
        display: flex;
    }
    .step-bar-item::after {
        display: none;
    }

    /* 缩小字体 */
    .dialog-title { font-size: 18px; }
    .dialog-subtitle { font-size: 12px; }
    .step-bar-label { font-size: 13px; }

    /* 内容自适应 */
    .year-label { font-size: 16px; height: 35px; width: 50%}
    .school-autocomplete .el-input__inner {
        position: relative !important;
        height: 44px !important;
        line-height: 44px !important;
        font-size: 15px;
    }

    .step-inner {
        position: relative !important;
    }
    .school-autocomplete {
        position: relative !important;
        width: 80% !important;
        margin: 0 auto;
        display: block;
    }

    .el-autocomplete-suggestion {
        position: absolute!important;
        max-height: 120px !important;
        overflow-y: auto !important;
        top: 100% !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .section-title {
        font-size: 14px;
        padding: 0 15px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 12px;
    }
    .multi-btn-group{
        grid-template-columns: repeat(3, minmax(60px, 1fr));
        gap: 8px;
        width: 100%;
        padding: 0 15px;
        align-items: center;
    }
    .multi-btn-group .el-button {
       align-items: center;
        font-size: 14px;
        border: 1px solid #c3c3c3;
        padding: 0;
    }

    /* 底部按钮 */
    .dialog-footer-btns {
        padding: 20px 40px;
        bottom: 0 !important;
        z-index: 999 !important;
    }
    #prevBtn.btngray, #nextBtn.btn {
        height: 38px !important;
        font-size: 14px;
        padding: 0;
        z-index: 1000 !important;
    }

    /* 错误提示 */
    .validation-error-text-absolute {
        right: 15px;
        bottom: -8px;
        font-size: 12px;
        width: 40%;
    }
}