/* 申请按钮和提示 */
.crp-request-wrapper {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #fdffee;
    border: 1px dashed #e8edbd;
    border-radius: 6px;
}
body:where(.dark) .crp-request-wrapper {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #2c2c54;
    border: 1px dashed #3d3d69;
    border-radius: 6px;
}

.crp-request-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #aaaf83;
    border: 1px solid #899262;
    cursor: pointer;
    border-radius: 8px!important;
    transition: background-color 0.2s 
ease-in-out;
}

.crp-request-button:hover {
    background-color: #8c915c;
}

body:where(.dark) .crp-request-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #aca8f9;
    background-color: #3f3f7d;
    border: 1px solid #2f3269;
    cursor: pointer;
    border-radius: 8px!important;
    transition: background-color 0.2s 
ease-in-out;
}

body:where(.dark) .crp-request-button:hover {
    background-color: #2a2a92;
}

.crp-login-prompt {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 4px;
}

/* 弹窗样式 */
#crp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.crp-modal-content {
    position: relative;
    background-color: #fdffee;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100000;
}

body:where(.dark) .crp-modal-content {
    position: relative;
    background-color: #2c2c54;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 100000;
}

.crp-modal-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #676951;
    border-bottom: 1px solid #dce2c7;
    padding-bottom: 10px;
}

body:where(.dark) .crp-modal-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #9397ff;
    border-bottom: 1px solid #3e3b72;
    padding-bottom: 10px;
}

.crp-modal-body {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #585b3f;
}

body:where(.dark) .crp-modal-body {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #99a2eb;
}

.crp-modal-footer {
    text-align: right;
}

.crp-modal-button {
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
}

.crp-agree-button {
    background-color: #6c7339;
    color: #fdffe9;
}

body:where(.dark) .crp-agree-button {
    background-color: #403f9e;
    color: #dcddff;
}
.crp-agree-button:hover {
    background-color: #7e8e0a;
}
body:where(.dark) .crp-agree-button:hover {
    background-color: #0006d3;
}

.crp-decline-button {
    background-color: #6c757d;
    color: #efefef;
}
.crp-decline-button:hover {
    background-color: #5a6268;
}

/* 加载动画和消息 */
.crp-modal-spinner {
border: 4px solid #efffc8;
    border-radius: 50%;
    border-top: 4px solid #b0db34;
    width: 30px;
    height: 30px;
    animation: crp-spin 1s linear infinite;
    margin: 20px auto 0;
}

body:where(.dark) .crp-modal-spinner {
    border: 4px solid #c8d5ff;
    border-radius: 50%;
    border-top: 4px solid #3455db;
    width: 30px;
    height: 30px;
    animation: crp-spin 1s linear infinite;
    margin: 20px auto 0;
}

@keyframes crp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.crp-modal-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 3px;
    text-align: center;
}
.crp-modal-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.crp-modal-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}