/* 触发按钮 */
.open-modal-btn {
    background: white;
    border: none;
    padding: 14px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 4px;
    color: #416CFF;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.open-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

.open-modal-btn:active {
    transform: translateY(1px);
}

/* 遮罩层 + 弹窗容器 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: opacity 0.25s ease;
}
.doubleModal{
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* 弹窗卡片 */
.modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 111111111;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -210px;
    margin-top: -117px;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* 头部 */
.modal-header {
    padding: 12px 28px 6px 28px;
    /*border-bottom: 1px solid #edf2f7;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    background-clip: text;
    -webkit-background-clip: text;
    color: #181F43;
    letter-spacing: -0.3px;
}

.close-icon {
    font-size: 20px;
    cursor: pointer;
    color: #969799;
    transition: color 0.2s;
    line-height: 1;
}

.close-icon:hover {
    color: #2d3748;
}

/* 主体内容 */
.modal-body {
    padding: 24px 28px 32px;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.input-field {
    width: 100%;
    font-size: 1rem;
    border: 1.5px solid transparent;
    outline: none;
    transition: all 0.2s;
    background: #FFF;
}
/* 验证码行（输入框 + 获取按钮） */
.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1.5px solid #CED3E0;
    border-radius: 4px;
    padding-left: 16px;
}

.captcha-row .input-field {
    flex: 1;
}

.get-code-btn {
    background: #FFF;
    color: #416CFF;
    border: none;
    padding: 0 16px;
    height: 42px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
}
.get-code-btn:disabled {
    background: #FFF;
    cursor: not-allowed;
    opacity: 0.7;
    color: #7A8192;
}

/* 提示信息区域 */
.message-area {
    margin-top: 8px;
    font-size: 0.75rem;
    min-height: 38px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.message-area i {
    font-style: normal;
    font-weight: 500;
}

.success-tip {
    color: #38a169;
}

/* 按钮组：只保留确认按钮 */
.action-buttons {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap:30px
}

.line {
    width: 1px;
    height: 20px;
    border-left: 1px solid #CED3E0;
}
.btn-primary {
    width: 100%;
    background: #416CFF;
    color: white;
    border: none;
    padding: 11px 0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    box-shadow: 0 4px 8px rgba(65, 108, 255, 0.2);
}
.btn-cancel {
    width: 100%;
    background: #F2F3F5;
    color: rgba(24,31,67,0.6);
    border: none;
    padding: 11px 0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary:hover {
    background: #2b4fdb;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .modal-body {
        padding: 20px;
    }

    .captcha-row {
        gap: 8px;
    }

    .get-code-btn {
        height: 48px;
        padding: 0 12px;
        font-size: 0.8rem;
    }
}

