/* PC 附件简历 AI 解析弹窗 */
.ai-parse-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 24, 32, .5);
}

.ai-parse-mask[hidden],
.ai-parse-pane[hidden] {
    display: none !important;
}

.ai-parse-dialog {
    width: 480px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
    box-sizing: border-box;
    overflow-y: auto;
    font-family: inherit;
}

.ai-parse-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 36px 30px;
    box-sizing: border-box;
}

.ai-parse-pane.ai-parse-intro {
    position: relative;
    padding: 0;
}

/* 引导弹窗头图 */
.ai-parse-hero {
    position: relative;
    width: 100%;
    padding: 34px 32px 28px;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(135deg, #E9FBF5 0%, #CFF3E6 52%, #F5FFFB 100%);
    overflow: hidden;
}

.ai-parse-glow {
    position: absolute;
    top: -130px;
    right: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23, 195, 123, .38), rgba(23, 195, 123, 0) 70%);
}

.ai-parse-logo {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    animation: ai-parse-float 3s ease-in-out infinite;
}

.ai-parse-logo.is-pulse {
    width: 64px;
    height: 64px;
    animation: ai-parse-blink 1.2s ease-in-out infinite;
}

.ai-parse-badge {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 12px;
    padding: 3px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .78);
    color: #0DA06E;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
}

.ai-parse-title {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 600;
    color: #202933;
    text-align: center;
    line-height: 1.4;
}

.ai-parse-hero .ai-parse-title {
    font-size: 22px;
    letter-spacing: .5px;
}

.ai-parse-sub,
.ai-parse-hero-sub {
    margin-top: 10px;
    font-size: 14px;
    color: #7E8790;
    text-align: center;
    line-height: 1.5;
}

.ai-parse-hero-sub {
    font-size: 13px;
    color: #5D6B75;
}

.ai-parse-intro-body {
    padding: 24px 32px 28px;
}

.ai-parse-feature-title {
    margin-bottom: 12px;
    font-size: 13px;
    color: #8A949C;
}

.ai-parse-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.ai-parse-features li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #F5FAF8;
    border-radius: 14px;
    font-size: 13px;
    color: #3A4650;
}

.ai-parse-feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #17C37B;
    flex-shrink: 0;
}

.ai-parse-hint {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: #9AA4AC;
}

/* 上传中 */
.ai-parse-upload-file {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-top: 22px;
    padding: 8px 16px;
    background: #F5FAF8;
    border-radius: 8px;
    color: #3A4650;
    font-size: 13px;
}

.ai-parse-upload-file-name {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-parse-progress {
    width: 100%;
    height: 6px;
    margin-top: 18px;
    border-radius: 3px;
    background: #EDF3F1;
    overflow: hidden;
}

.ai-parse-progress-bar {
    display: block;
    width: 4%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #1ED08A, #12AE74);
    transition: width .25s ease;
}

.ai-parse-progress-bar.is-indeterminate {
    width: 30%;
    animation: ai-parse-progress-move 1.1s ease-in-out infinite;
}

@keyframes ai-parse-progress-move {
    0% {
        margin-left: -30%;
    }
    100% {
        margin-left: 100%;
    }
}

/* 引导页文件行 */
.ai-parse-file-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #F7FBFA;
    border: 1px solid #E6F2EE;
    border-radius: 10px;
}

.ai-parse-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 12px;
    border-radius: 9px;
    background: #EAF9F4;
    color: #17C37B;
    flex-shrink: 0;
}

.ai-parse-file-icon svg {
    width: 20px;
    height: 20px;
}

.ai-parse-file-info {
    flex: 1;
    min-width: 0;
}

.ai-parse-file-name {
    font-size: 14px;
    color: #202933;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-parse-file-status {
    display: inline-block;
    margin-top: 4px;
    padding: 0 8px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    background: #E6F9F1;
    color: #0DA06E;
    font-size: 11px;
}

.ai-parse-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    font-size: 22px;
    line-height: 1;
    color: #8A949C;
    cursor: pointer;
}

.ai-parse-close:hover {
    color: #17C37B;
}

/* 解析中步骤 */
.ai-parse-steps {
    width: 100%;
    margin: 26px 0 4px;
    padding: 0;
    list-style: none;
}

.ai-parse-steps li {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #9AA4AC;
}

.ai-parse-steps li.is-current {
    background: #F0FBF7;
    color: #0DA06E;
    font-weight: 600;
}

.ai-parse-steps li.is-finished {
    color: #3A4650;
}

.ai-parse-step-icon {
    position: relative;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border: 2px solid #D8E1E7;
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.ai-parse-steps li.is-current .ai-parse-step-icon {
    border-color: #17C37B;
    border-top-color: transparent;
    animation: ai-parse-spin .8s linear infinite;
}

.ai-parse-steps li.is-finished .ai-parse-step-icon {
    border-color: #17C37B;
    background: #17C37B;
}

.ai-parse-steps li.is-finished .ai-parse-step-icon::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    width: 5px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.ai-parse-step-text {
    flex: 1;
}

.ai-parse-step-flag {
    font-size: 12px;
    font-style: normal;
    color: #9AA4AC;
}

.ai-parse-steps li.is-current .ai-parse-step-flag,
.ai-parse-steps li.is-finished .ai-parse-step-flag {
    color: #17C37B;
}

/* 成功 / 失败图标 */
.ai-parse-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
    color: #fff;
}

.ai-parse-icon.is-done {
    background: #17C37B;
    box-shadow: 0 10px 24px rgba(23, 195, 123, .35);
}

.ai-parse-icon.is-error {
    background: #F56C6C;
    box-shadow: 0 10px 24px rgba(245, 108, 108, .3);
}

.ai-parse-btn {
    margin-top: 24px;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: #EAF9F4;
    color: #0DA06E;
    font-size: 15px;
    cursor: pointer;
    outline: none;
    transition: background-color .2s, transform .2s;
}

.ai-parse-btn:hover {
    background: #D9F5EC;
}

.ai-parse-btn.is-primary {
    margin-top: 26px;
    background: linear-gradient(135deg, #1ED08A 0%, #12AE74 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(23, 195, 123, .3);
}

.ai-parse-btn.is-primary:hover {
    background: linear-gradient(135deg, #19BE7E 0%, #0FA16C 100%);
    transform: translateY(-1px);
}

.ai-parse-link {
    margin-top: 16px;
    font-size: 14px;
    color: #7E8790;
    cursor: pointer;
}

.ai-parse-link:hover {
    color: #17C37B;
}

/* 附件区 AI 解析入口按钮 */
.ai-parse-entry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    border: 1px solid #17C37B;
    border-radius: 18px;
    background: #fff;
    color: #0DA06E;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: background-color .2s, box-shadow .2s;
}

.ai-parse-entry:hover {
    background: #EAF9F4;
    box-shadow: 0 6px 14px rgba(23, 195, 123, .18);
}

.ai-parse-entry img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

/* 附件简历区：文件卡片 + 上传卡片 */
.ai-file-card {
    display: flex;
    align-items: center;
    margin-top: 16px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #E8EFF2;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(31, 45, 61, .04);
}

.ai-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 14px;
    border-radius: 10px;
    background: #EAF9F4;
    color: #17C37B;
    flex-shrink: 0;
}

.ai-file-icon svg {
    width: 22px;
    height: 22px;
}

.ai-file-main {
    flex: 1;
    min-width: 0;
}

.ai-file-name {
    display: block;
    font-size: 14px;
    color: #202933;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-file-name:hover {
    color: #17C37B;
}

.ai-file-tip {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #9AA4AC;
}

.ai-file-card .ai-parse-entry {
    margin-left: 16px;
    flex-shrink: 0;
}

.ai-upload-card {
    display: flex;
    align-items: center;
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px dashed #C9D8D4;
    border-radius: 10px;
    background: #FAFDFC;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.ai-upload-card:hover {
    border-color: #17C37B;
    background: #F2FCF8;
}

.ai-upload-plus {
    width: 40px;
    height: 40px;
    margin-right: 14px;
    border-radius: 50%;
    background: #EAF9F4;
    color: #17C37B;
    font-size: 24px;
    font-weight: 300;
    line-height: 38px;
    text-align: center;
    flex-shrink: 0;
}

.ai-upload-text {
    display: flex;
    flex-direction: column;
}

.ai-upload-title {
    font-size: 14px;
    font-weight: 500;
    color: #202933;
}

.ai-upload-tip {
    margin-top: 4px;
    font-size: 12px;
    color: #9AA4AC;
}

/* 左侧导航新功能标识 */
.ai-new-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1ED08A 0%, #12AE74 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    vertical-align: 1px;
    box-shadow: 0 2px 6px rgba(23, 195, 123, .3);
    animation: ai-parse-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes ai-parse-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes ai-parse-blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .35;
        transform: scale(.86);
    }
}

@keyframes ai-parse-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ai-parse-badge-pulse {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(23, 195, 123, .3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(23, 195, 123, .55);
    }
}