.donations-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    position: relative;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3B82F6; /* 纯蓝色 */
    border-radius: 3px;
}

.donations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.donation-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #eee;
    border-top: 4px solid #3B82F6; /* 纯蓝色顶部装饰条 */
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    position: relative;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.donation-item:hover {
    background-color: #EBF8FF; /* 浅蓝色背景 */
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.1); /* 蓝色阴影 */
    border-top-color: #2563EB; /* 深蓝色顶部条 */
}

.donation-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    margin-right: 20px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.donation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #fff;
}

.donation-item:hover .donation-avatar {
    transform: scale(1.05);
}

.donation-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

.donation-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.donation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.donation-date {
    padding: 4px 8px;
    background-color: #f1f1f1;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    display: inline-flex;
    align-items: center;
}

.donation-times {
    padding: 4px 8px;
    background-color: #f1f1f1;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    display: inline-flex;
    align-items: center;
}

.donation-method {
    padding: 4px 8px;
    background-color: #3182ce;
    border-radius: 12px;
    font-size: 12px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
}

.donation-amount {
    font-weight: bold;
    font-size: 18px;
    margin-left: auto;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: right;
    align-self: center;
}

.item-type-money .donation-amount {
    color: #f59e0b;
}

.item-type-gift .donation-amount {
    color: #10b981;
    font-size: 16px;
    max-width: 100px;
    word-break: break-word;
    text-align: right;
    line-height: 1.3;
}

.donation-item:hover .donation-amount {
    transform: scale(1.05);
}

.item-type-money:hover .donation-amount {
    color: #f97316;
}

.item-type-gift:hover .donation-amount {
    color: #059669;
}

.donation-message {
    margin-top: 8px;
    font-size: 14px;
    color: #4a5568;
    background-color: #ebf5ff;
    padding: 10px 12px 10px 15px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    line-height: 1.5;
}

.donation-message::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #3b82f6;
}

.no-donations {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 16px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s forwards;
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Loading animation */
.donations-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    z-index: 10;
}

.donations-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.spinner-circle {
    position: absolute;
    border: 4px solid transparent;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    border-top-color: #6366f1;
    animation: spin 1.5s linear infinite;
}

.spinner-circle.inner {
    border-top-color: #a855f7;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation-duration: 1s;
    animation-direction: reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #333;
    font-size: 16px;
    margin-top: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Error message */
.donation-error {
    text-align: center;
    padding: 40px 20px;
    color: #ef4444;
    animation: fadeIn 0.5s;
}

.error-icon {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    border: 3px solid #ef4444;
    width: 60px;
    height: 60px;
    line-height: 54px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.error-message {
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .donations-container {
        margin: 20px 15px;
        padding: 20px;
    }
    
    .donation-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .donation-avatar {
        margin-bottom: 15px;
    }
    
    .donation-meta {
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .donation-date, 
    .donation-times, 
    .donation-method {
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .donation-amount {
        margin-top: 15px;
        align-self: flex-end;
        margin-left: 0;
    }
    
    @media (max-width: 480px) {
        .page-title {
            font-size: 24px;
        }
        
        .donation-avatar {
            width: 50px;
            height: 50px;
        }
        
        .donation-name {
            font-size: 16px;
        }
        
        .donation-amount {
            font-size: 18px;
        }
    }
}

