/* 支付方式网格 */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .payment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.payment-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.payment-card:hover::before {
    opacity: 1;
}

/* 图标容器 */
.payment-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: white;
    position: relative;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.payment-card:hover .payment-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.payment-icon-wrap.wechat {
    background: linear-gradient(135deg, #07c160 0%, #05a350 100%);
    box-shadow: 0 10px 20px -5px rgba(7, 193, 96, 0.4);
}

.payment-icon-wrap.alipay {
    background: linear-gradient(135deg, #1677ff 0%, #0056d6 100%);
    box-shadow: 0 10px 20px -5px rgba(22, 119, 255, 0.4);
}

.payment-icon-wrap.qq {
    background: linear-gradient(135deg, #12b7f5 0%, #0095d6 100%);
    box-shadow: 0 10px 20px -5px rgba(18, 183, 245, 0.4);
}

.payment-icon-wrap.paypal {
    background: linear-gradient(135deg, #003087 0%, #001a5c 100%);
    box-shadow: 0 10px 20px -5px rgba(0, 48, 135, 0.4);
}

.payment-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.payment-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

/* 点击提示 */
.payment-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-card:hover .payment-hint {
    transform: translateY(0);
}

/* 赞助名单样式 */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .sponsor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .sponsor-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sponsor-card {
    background: white;
    border-radius: 0.75rem;
    padding: 0.875rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.sponsor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f5f9;
    flex-shrink: 0;
}

.sponsor-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #f1f5f9;
}

.sponsor-avatar-placeholder i {
    font-size: 1.125rem;
    color: white;
}

.sponsor-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sponsor-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sponsor-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.25;
    justify-content: space-between;
}

.sponsor-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.sponsor-amount {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.sponsor-loader {
    width: 32px;
    height: 32px;
    border: 2px solid #f1f5f9;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.sponsor-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.sponsor-header i {
    color: #ef4444;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.sponsor-notice {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
}

.sponsor-notice i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

.sponsor-footer {
    margin-top: 1.5rem;
    padding: 0.875rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    font-size: 0.8125rem;
    color: #64748b;
    display: flex;
    align-items: flex-start;
}

.sponsor-footer i {
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* 二维码放大弹窗 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qr-modal-content {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f1f5f9;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qr-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
    transform: rotate(90deg);
}

.qr-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.qr-modal-icon.wechat { background: linear-gradient(135deg, #07c160 0%, #05a350 100%); }
.qr-modal-icon.alipay { background: linear-gradient(135deg, #1677ff 0%, #0056d6 100%); }
.qr-modal-icon.qq { background: linear-gradient(135deg, #12b7f5 0%, #0095d6 100%); }
.qr-modal-icon.paypal { background: linear-gradient(135deg, #003087 0%, #001a5c 100%); }

.qr-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.qr-modal-hint {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.qr-image-wrap {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px dashed #e2e8f0;
}

.qr-modal img {
    width: 100%;
    max-width: 280px;
    border-radius: 0.5rem;
    display: block;
    margin: 0 auto;
}

.qr-placeholder {
    width: 100%;
    aspect-ratio: 1;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    gap: 1rem;
}

.qr-placeholder i {
    font-size: 4rem;
}

.qr-placeholder-text {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* 赞助页面响应式优化 */
@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .payment-card {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }
    
    .payment-icon-wrap {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .sponsor-grid {
        grid-template-columns: 1fr;
    }
}