/* 公益页面样式 */
.charity-main {
    min-height: 100vh;
    padding: 20px 20px 40px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f23 100%);
    color: #fff;
}

.charity-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    justify-content: center;
}

.charity-left {
    flex: 0 0 455px;
    z-index: 1;
}

.charity-right {
    flex: 0 0 495px;
    z-index: 2;
    margin-left: 1px;
}

.charity-header {
    text-align: left;
    margin-bottom: 40px;
}

.charity-header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.charity-header p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

.charity-progress {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.charity-progress h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.charity-icon {
    width: 24px;
    height: 24px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    border-radius: 10px;
    transition: width 1s ease;
    width: 0%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-current, .progress-target {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progress-current {
    align-items: flex-start;
    color: #ffc107;
}

.progress-target {
    align-items: flex-end;
}

.progress-amount {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.progress-amount span {
    font-size: 1.8rem;
}

.progress-amount .unit {
    font-size: 1rem;
    font-weight: 500;
}

.progress-current small, .progress-target small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.completion-message {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
}

.donation-section {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    margin-top: 40px;
    color: #333;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}


.donation-form h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.amount-btn {
    padding: 20px;
    border: 2px solid #e0e0e0;
    background: #f9f9f9;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.amount-btn:hover {
    border-color: #ffc107;
    background: #fff8e1;
}

.amount-btn.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #333;
    transform: scale(1.05);
}

.custom-amount {
    grid-column: span 2;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    text-align: center;
}

.custom-amount:focus {
    outline: none;
    border-color: #ffc107;
}

.donation-options {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.donate-btn {
    width: 100%;
    padding: 18px;
    background: #ffc107;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-btn:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

.recent-donors {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    margin-top: 0;
}

.recent-donors h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.donors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.donor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.donor-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.donor-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.donor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffc107;
}

.donor-details {
    text-align: left;
}

.donor-name {
    font-weight: 600;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.9);
}

.donor-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.donor-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffc107;
}

.charity-image {
    margin-top: 30px;
}

.charity-pic {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1200px) {
    .charity-container {
        max-width: 1100px;
        gap: 20px;
    }
    
    .charity-left {
        flex: 0 0 425px;
    }
    
    .charity-right {
        flex: 0 0 455px;
        margin-left: 1px;
    }
}

@media (max-width: 1024px) {
    .charity-container {
        max-width: 1000px;
        gap: 20px;
    }
    
    .charity-left {
        flex: 0 0 395px;
    }
    
    .charity-right {
        flex: 0 0 415px;
        margin-left: 1px;
    }
}

@media (max-width: 768px) {
    .charity-container {
        flex-direction: column;
        gap: 40px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .charity-left,
    .charity-right {
        flex: none;
        max-width: none;
        margin-left: 0;
    }
    
    .charity-header h1 {
        font-size: 2.5rem;
        white-space: normal;
    }
    
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .custom-amount {
        grid-column: span 2;
    }
}
