/* OneNav 赞赏功能样式 */

.card {
    background-color: #ffffff00 !important;
}

/* 赞赏容器 */
.donate-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff00;
}

/* 布局容器 */
.donate-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}

/* 左侧容器：包含头像和二维码 */
.donate-left-container {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 2;
}

/* 左侧头像区域 */
.donate-avatar {
    width: 100%;
}

.donate-avatar img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* 赞赏头部 */
.donate-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.donate-header h1 {
    color: var(--main-color);
    font-size: 28px;
    margin-bottom: 10px;
    font-family: "黑体", "SimHei", Arial, sans-serif;
}

.donate-header p {
    color: var(--muted-color);
    font-size: 16px;
    margin: 0;
}

/* 右侧表单区域 */
.donate-content {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff00;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

/* 金额选择区域 */
.amount-section {
    margin-bottom: 30px;
}

.amount-section h3 {
    color: var(--main-color);
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--muted-bg-color);
}

/* 金额按钮 */
.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid var(--muted-color3);
    border-radius: 6px;
    background-color: #ffffff00;
    color: var(--main-color);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.amount-btn:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.amount-btn.active {
    border-color: #007bff;
    background-color: #007bff;
    color: #fff;
}

/* 自定义金额 */
.custom-amount {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.custom-amount label {
    font-size: 16px;
    color: var(--main-color);
}

.custom-amount input {
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--muted-color3);
    border-radius: 6px;
    width: 150px;
    transition: border-color 0.3s ease;
    background-color: #ffffff00;
    color: var(--main-color);
}

.custom-amount input:focus {
    outline: none;
    border-color: #007bff;
}

.custom-amount .currency {
    font-size: 16px;
    color: var(--muted-color);
}

/* 金额说明 */
.amount-note {
    font-size: 14px;
    color: var(--muted-color);
    margin-top: 8px;
    margin-bottom: 0;
}

/* 支付方式区域 */
.pay-method-section {
    margin-bottom: 30px;
}

.pay-method-section h3 {
    color: var(--main-color);
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--muted-bg-color);
}

/* 支付方式选择 */
.pay-methods {
    display: flex;
    gap: 30px;
}

.pay-method {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 16px;
    color: var(--main-color);
}

.pay-method input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

/* 支付按钮 */
.pay-action {
    text-align: center;
    margin-bottom: 30px;
}

.pay-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 200px;
}

.pay-btn:hover {
    background-color: #0056b3;
}

.pay-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* 支付结果消息 */
.payment-result {
    margin-bottom: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.payment-result.success {
    background-color: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.5);
}

.payment-result.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 二维码容器 */
.qrcode-container {
    text-align: center;
    padding: 30px 20px;
    background-color: #ffffff00;
    border-radius: 8px;
    border: 1px solid var(--muted-color3);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    box-sizing: border-box;
}

.qrcode-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 20px;
}

.qrcode-image {
    margin-bottom: 20px;
}

.qrcode-image img {
    max-width: 250px;
    height: auto;
    border: 1px solid #eee;
    padding: 10px;
    background-color: var(--bg-color);
    border-radius: 6px;
}

.qrcode-tips {
    color: var(--muted-color);
    font-size: 14px;
    margin-top: 10px;
}

/* 二维码倒计时 */
.qrcode-countdown {
    margin-top: 15px;
    font-size: 14px;
    color: var(--theme-color);
    font-weight: bold;
    padding: 10px;
    background-color: rgba(var(--theme-color-rgb), 0.1);
    border-radius: 4px;
}

/* 赞助者列表区域 */
.donate-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    clear: both;
}

.donors-list-section {
    max-width: 800px;
    margin: 0 auto;
}

.donors-list-section h2 {
    text-align: center;
    color: var(--main-color);
    font-size: 24px;
    margin-bottom: 30px;
}

.donors-list-container {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* 赞助者列表表格样式 */
.donors-list {
    margin-bottom: 20px;
    overflow-x: auto;
}

.donors-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.donors-list th,
.donors-list td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid var(--muted-color3);
}

.donors-list th {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--main-color);
    font-weight: bold;
}

.donors-list tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* 序号样式 */
.donors-list .serial-number {
    font-weight: bold;
    color: var(--theme-color);
    width: 60px;
}

/* 用户名样式 */
.donors-list .donor-name {
    text-align: left;
    color: var(--main-color);
}

/* 金额样式 */
.donors-list .donor-amount {
    color: #e74c3c;
    font-weight: bold;
}

/* 订单号样式 */
.donors-list .donor-order {
    font-family: monospace;
    color: var(--muted-color);
}

/* 支付时间样式 */
.donors-list .donor-time {
    color: var(--muted-color);
}

/* 无记录提示 */
.donors-list .no-records {
    text-align: center;
    padding: 40px;
    color: var(--muted-color);
    font-size: 16px;
}

/* 分页控件样式 */
.donors-list-container .donors-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.donors-list-container .donors-pagination .page-btn {
    padding: 8px 20px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 50px;
}

.donors-list-container .donors-pagination .page-btn:hover:not(:disabled) {
    background-color: #0056b3;
}

.donors-list-container .donors-pagination .page-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.donors-pagination .page-info {
    font-size: 14px;
    color: var(--muted-color);
}

/* 夜间模式下的禁用按钮样式 */
.io-black-mode .page-btn:disabled {
    background-color: #202327;
}

/* 关闭按钮样式 */
.qrcode-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--muted-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.qrcode-close-btn:hover {
    color: var(--main-color);
    background-color: rgba(var(--muted-color-rgb), 0.1);
}

    /* 赞助说明样式 */
.donors-list-container .donors-info {
    text-align: left;
}

.donors-list-container .donors-info .info-text {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .donate-container {
        margin: 20px;
        padding: 15px;
    }
    
    .donate-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .donate-left-container {
        order: 1;
    }
    
    .donate-content {
        order: 2;
        min-width: 100%;
    }
    
    /* 移动端隐藏人物图片 */
    .donate-avatar {
        display: none;
    }
    
    /* 赞助者列表区域 */
    .donate-footer {
        margin-top: 60px;
        padding-top: 30px;
        border-top: 1px solid #eee;
        position: relative;
        z-index: 1;
    }

/* 分页控件样式 */
    .donors-list-container .donors-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .donors-list-container .donors-pagination .page-btn {
        padding: 10px 24px;
        font-size: 10px;
        font-weight: bold;
        border: none;
        border-radius: 6px;
        background-color: #007bff;
        color: #fff;
        cursor: pointer;
        transition: background-color 0.3s ease;
        min-width: 80px;
    }
    
    .donors-list-container .donors-pagination .page-btn:hover:not(:disabled) {
        background-color: #0056b3;
    }
    
    .donors-list-container .donors-pagination .page-btn:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
    }
    
    .donors-pagination .page-info {
        font-size: 12px;
        color: var(--muted-color);
        white-space: nowrap;
    }
    
    /* 移动端表格优化 */
    .donors-list table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    /* 移动端表单区域背景色 */
    .donate-content {
        background-color: #ffffff !important;
    }
    
    /* 夜间模式下表单区域背景色 */
    .io-black-mode .donate-content {
        background-color: #202327 !important;
    }
    
    .donate-header h1 {
        font-size: 22px;
    }
    
    .amount-buttons {
        justify-content: center;
    }
    
    .amount-btn {
        font-size: 14px;
        padding: 10px 15px;
        min-width: 70px;
    }
    
    .custom-amount {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .custom-amount input {
        width: 100%;
        max-width: 200px;
    }
    
    .pay-methods {
        flex-direction: column;
        gap: 15px;
    }
    
    .pay-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .qrcode-image img {
        max-width: 200px;
    }
    
    /* 移动端二维码容器背景为白色并水平居中 */
    .qrcode-container {
        background-color: #ffffff !important;
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 300px !important;
        z-index: 1000 !important;
    }
    
    /* 夜间模式下二维码容器背景色 */
    .io-black-mode .qrcode-container {
        background-color: #202327 !important;
    }
}

@media (max-width: 480px) {
    .donate-container {
        margin: 10px;
        padding: 10px;
    }
    
    .amount-buttons {
        gap: 8px;
    }
    
    .amount-btn {
        font-size: 13px;
        padding: 8px 12px;
        min-width: 60px;
    }
    
    .qrcode-image img {
        max-width: 180px;
    }
    
    /* 移动端赞助者列表容器背景色 */
    .donors-list-container {
        background-color: #ffffff !important;
    }
    
    /* 夜间模式下移动端赞助者列表容器背景色 */
    .io-black-mode .donors-list-container {
        background-color: #202327 !important;
    }
    
    .modal-content {
        width: 90%;
        margin: 0 5%;
    }
    

}

/* 支付完成弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.modal-icon.success {
    background-color: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.modal-content h3 {
    font-size: 22px;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 15px;
    position: relative;
}

.modal-content h3:before,
.modal-content h3:after,
.donors-list-section h2:before,
.donors-list-section h2:after {
    content: none !important;
    display: none !important;
}

.modal-content p {
    font-size: 16px;
    color: var(--muted-color);
    margin-bottom: 25px;
}

.modal-close {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: #0056b3;
}