/* 赞助页面样式 */
.donate-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.donate-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.donate-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.donate-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.donate-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.donate-method {
    flex: 1;
    min-width: 250px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donate-method.combined {
    max-width: 800px;
    width: 100%;
}

.donate-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.donate-method h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* 合并后的二维码容器 */
.qr-codes-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.qr-code-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.payment-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.qr-code-container {
    margin: 0 auto;
    padding: 5px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-width: 300px;
}

.qr-code {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 赞助提示 */
.donate-tip {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.donate-tip p {
    margin: 0;
    line-height: 1.5;
}

/* 赞助留言区域 */
.donate-messages {
    margin-top: 50px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.donate-messages h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.messages-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.message-item {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.message-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.message-user {
    color: #007bff;
    font-weight: 600;
    font-size: 16px;
}

.message-time {
    color: #6c757d;
    font-size: 14px;
}

.message-content {
    color: #333;
    line-height: 1.6;
    font-size: 15px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.no-messages {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-size: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* 分页导航 */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pagination .page-link {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination .page-link:hover:not(.disabled) {
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pagination .page-link.disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    opacity: 0.65;
}

.pagination .page-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .messages-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* 留言列表 */
    .messages-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .message-content {
        -webkit-line-clamp: 3;
    }
    
    /* 分页导航 */
    .pagination {
        gap: 10px;
    }
    
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .pagination .page-info {
        font-size: 13px;
    }
    
    /* 赞助方式 */
    .donate-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .donate-method {
        width: 100%;
        max-width: 400px;
    }
    
    /* 赞助头部 */
    .donate-header {
        padding: 15px;
    }
    
    .donate-header h1 {
        font-size: 24px;
    }
    
    .donate-header p {
        font-size: 14px;
    }
    
    /* 赞助留言区域 */
    .donate-messages {
        padding: 15px;
    }
    
    /* 留言头部 */
    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .message-time {
        font-size: 12px;
    }
}