@import url('./icons.css');

/* 授权码验证模态框样式 */
.auth-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.auth-modal.hidden {
    display: none;
}

.auth-modal__content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    /* overflow-y: auto; */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.auth-modal__header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.auth-modal__close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.auth-modal__close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.auth-modal__body {
    padding: .8rem 1.5rem;
    text-align: center;
}

.auth-icon {
    font-size: 2.4rem;
    margin-bottom: .5rem;
}

.auth-description {
    color: #555;
    margin-bottom: .8rem;
    font-size: 1rem;
}

.platform-section {
    margin-bottom: .8rem;
}

.platform-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 500;
}

.platform-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-btn {
    width: 180px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
}

.platform-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-logo {
    font-size: 1rem;
    color: #333;
}

.input-section {
    margin-bottom: 1.5rem;
}

.auth-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.auth-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.verify-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.3);
}

.verify-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
    display: none;
}

.valid-codes-hint {
    color: #666;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .auth-modal__content {
        width: 95%;
        margin: 1rem;
    }

    .auth-modal__header,
    .auth-modal__body {
        padding: 1.2rem 1rem;
    }

    .platform-buttons {
        /* flex-direction: column; */
        gap: 0.8rem;
    }

    .platform-btn {
        /* width: 100%; */
        justify-content: center;
    }
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}


.yanzheng-box {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    align-items: center;
    justify-content: center;
    background-color: #ebffeb;
}

.yanzheng {
    /* background-color: #ebffeb; */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    padding-top: 0px;
}

.yanzheng-title {
    padding: 20px 0;
    font-size: 20px;
    color: #73ec73;
    font-weight: 600;
}

.yanzhengma {
    display: block;
    height: 40px;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 0px 10px;
    box-shadow: none;
    box-sizing: border-box;
    outline: none;
}

#btn {
    width: 100%;
    padding: 7px 0;
    text-align: center;
    background-color: #9eef9e;
    margin-top: 15px;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    border: 1px solid #73ec73;

}

#btn:active {
    background-color: #73ec73;
}

.yanzheng-tips {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.yanzheng-tips a {
    color: blue;
}

/* 查看是否有为完成的题目 */
.no-check-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.no-check-box {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.no-check-box.close {
    display: none;
}

.no-check-item {
    font-size: 10px;
    border: 1px solid #aaa;
    border-radius: 5px;
    cursor: pointer;
    min-width: 25px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.no-check-item.active {
    display: flex;
    background-color: #3fe33f;
    color: #fff;
    border-color: #3fe33f;
}

.no-check-item.hover {
    border: 2px solid #2b6cf7;
}

.noCheck-open-close {
    margin-left: 30px;
    color: #2575fc;
    font-size: 14px;
    cursor: pointer;
}

.common-tips-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    max-width: 350px;
}

.common-tips-content {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    padding: 8px 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.common-confirm-box {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 999999;
}

.common-confirm-content-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    max-width: 350px;
    width: 85%;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}

.common-confirm-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #000;
}

.common-confirm-content {
    text-align: center;
    padding: 15px 20px;
    font-size: 14px;
    line-height: 22px;
    color: #444;
}

.common-confirm-btns {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
}

.common-confirm-btn {
    padding: 10px;
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.common-confirm-btn.cancel {
    color: #888;
    border: 1px solid #888;
    background-color: #ffffff;
    border-radius: 50px;
}

.common-confirm-btn.sure {
    color: #fff;
    border: 1px solid #f3268e;
    background-color: #f3268e;
    border-radius: 50px;
}

.common-confirm-btn.sure:hover {
    background-color: #cd0066;
}

.common-loading-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.5);
    padding: 3px 10px;
    border-radius: 5px;
}

.common-loading-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.common-loading-text {
    color: #fd3397;
}

/* 本地草稿恢复提示条（通用） */
.draft-resume-banner {
    background: #fdfbf7;
    border: 1px solid #e8dec8;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(196, 124, 72, 0.08);
    animation: fadeInDown 0.4s ease;
}

.draft-resume-banner.hidden {
    display: none !important;
}

.draft-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.draft-banner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.draft-banner-icon {
    font-size: 1.5rem;
}

.draft-banner-info strong {
    display: block;
    color: #c47c48;
    font-size: 0.95rem;
}

.draft-banner-info p {
    margin: 0;
    color: #707872;
    font-size: 0.85rem;
}

.draft-banner-actions {
    display: flex;
    gap: 8px;
    /* 极窄屏上宁可让两个按钮换行，也不要横向溢出卡片 */
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
    border-radius: 20px !important;
    cursor: pointer;
}

.btn-outline {
    background: transparent !important;
    border: 1px solid #d0d7de !important;
    color: #57606a !important;
    cursor: pointer;
}

.btn-outline:hover {
    background: #f0ebe2 !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}