* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-size: 36px;
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 600;
}

.site-subtitle {
    font-size: 16px;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* 主内容区 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* 卡片通用样式 */
.sponsor-card,
.benefits-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-title {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 10px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.card-desc {
    color: #718096;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 表单样式 */
.sponsor-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.amount-tips {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tip-item {
    padding: 6px 15px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
    transition: all 0.2s;
}

.tip-item:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.payment-types {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-type-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-type-item input[type="radio"] {
    margin-right: 8px;
}

.payment-type-item:has(input:checked) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 消息提示 */
.message-box {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.message-box.success {
    display: block;
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.message-box.error {
    display: block;
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* 福利卡片 */
.benefits-card {
    margin-top: 0;
}

.benefits-title {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 15px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 10px 0;
    color: #4a5568;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.benefits-list li:last-child {
    border-bottom: none;
}

/* 赞助列表区域 */
.sponsors-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.sponsors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.sponsors-header h2 {
    font-size: 22px;
    color: #2d3748;
}

.stats-info {
    background: #667eea;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.sponsors-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.sponsors-list::-webkit-scrollbar {
    width: 6px;
}

.sponsors-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sponsors-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.sponsor-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.sponsor-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

/* 前三名hover效果 */
.sponsor-rank-1:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6), 
                0 0 50px rgba(255, 215, 0, 0.3),
                inset 0 0 30px rgba(255, 255, 255, 0.4);
}

.sponsor-rank-2:hover {
    transform: translateX(5px) scale(1.01);
    box-shadow: 0 6px 28px rgba(192, 192, 192, 0.5),
                0 0 40px rgba(192, 192, 192, 0.3),
                inset 0 0 25px rgba(255, 255, 255, 0.4);
}

.sponsor-rank-3:hover {
    transform: translateX(5px) scale(1.01);
    box-shadow: 0 6px 28px rgba(205, 127, 50, 0.5),
                0 0 40px rgba(205, 127, 50, 0.3),
                inset 0 0 25px rgba(255, 255, 255, 0.4);
}

/* 前三名炫酷特效 */
.sponsor-rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-left: 4px solid #ff6b00;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4), 
                0 0 30px rgba(255, 215, 0, 0.2),
                inset 0 0 20px rgba(255, 255, 255, 0.3);
    animation: goldGlow 2s ease-in-out infinite;
    position: relative;
}

.sponsor-rank-1::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

.sponsor-rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    border-left: 4px solid #808080;
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.4),
                0 0 25px rgba(192, 192, 192, 0.2),
                inset 0 0 15px rgba(255, 255, 255, 0.3);
    animation: silverGlow 2s ease-in-out infinite;
}

.sponsor-rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a85c 100%);
    border-left: 4px solid #8b4513;
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.4),
                0 0 25px rgba(205, 127, 50, 0.2),
                inset 0 0 15px rgba(255, 255, 255, 0.3);
    animation: bronzeGlow 2s ease-in-out infinite;
}

/* 排名图标 - 固定在金额前面 */
.rank-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    animation: iconFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
    align-self: flex-end;
    margin-bottom: -8px;
}

.rank-icon:hover {
    transform: scale(1.1);
}

.rank-icon-1 {
    animation: iconFloat 2s ease-in-out infinite, iconGlow1 2s ease-in-out infinite;
}

.rank-icon-2 {
    animation: iconFloat 2.2s ease-in-out infinite, iconGlow2 2s ease-in-out infinite;
}

.rank-icon-3 {
    animation: iconFloat 2.4s ease-in-out infinite, iconGlow3 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

@keyframes iconGlow1 {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    }
}

@keyframes iconGlow2 {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 6px rgba(192, 192, 192, 0.4));
    }
    50% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 12px rgba(192, 192, 192, 0.6));
    }
}

@keyframes iconGlow3 {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 6px rgba(205, 127, 50, 0.4));
    }
    50% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 12px rgba(205, 127, 50, 0.6));
    }
}

/* 光晕动画 */
@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4), 
                    0 0 30px rgba(255, 215, 0, 0.2),
                    inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 215, 0, 0.6), 
                    0 0 40px rgba(255, 215, 0, 0.4),
                    inset 0 0 25px rgba(255, 255, 255, 0.4);
    }
}

@keyframes silverGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(192, 192, 192, 0.4),
                    0 0 25px rgba(192, 192, 192, 0.2),
                    inset 0 0 15px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(192, 192, 192, 0.5),
                    0 0 35px rgba(192, 192, 192, 0.3),
                    inset 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

@keyframes bronzeGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(205, 127, 50, 0.4),
                    0 0 25px rgba(205, 127, 50, 0.2),
                    inset 0 0 15px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(205, 127, 50, 0.5),
                    0 0 35px rgba(205, 127, 50, 0.3),
                    inset 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

/* 闪光动画 */
@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}


.sponsor-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.amount-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.sponsor-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
    flex: 0 0 auto;
}

.sponsor-name.clickable-name {
    cursor: pointer;
    position: relative;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    user-select: none;
}

.sponsor-name.clickable-name:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: scale(1.05);
}

.sponsor-name.clickable-name::after {
    content: '👆';
    margin-left: 5px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.sponsor-name.clickable-name:hover::after {
    opacity: 1;
}

/* 前三名名字特殊样式 */
.sponsor-rank-1 .sponsor-name.clickable-name {
    color: #8b4513;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.sponsor-rank-1 .sponsor-name.clickable-name:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #654321;
}

.sponsor-rank-2 .sponsor-name.clickable-name {
    color: #4a5568;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.sponsor-rank-2 .sponsor-name.clickable-name:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #2d3748;
}

.sponsor-rank-3 .sponsor-name.clickable-name {
    color: #7a4a1a;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.sponsor-rank-3 .sponsor-name.clickable-name:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #5a3413;
}

.sponsor-amount {
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    flex: 0 0 auto;
    margin-left: auto;
}

/* 前三名金额特殊样式 */
.sponsor-rank-1 .sponsor-amount {
    color: #8b4513;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 1px 3px rgba(255, 215, 0, 0.5);
    animation: amountPulse 2s ease-in-out infinite;
}

.sponsor-rank-2 .sponsor-amount {
    color: #4a5568;
    font-weight: 700;
    font-size: 17px;
    text-shadow: 0 1px 2px rgba(192, 192, 192, 0.5);
}

.sponsor-rank-3 .sponsor-amount {
    color: #7a4a1a;
    font-weight: 700;
    font-size: 17px;
    text-shadow: 0 1px 2px rgba(205, 127, 50, 0.5);
}

@keyframes amountPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.sponsor-qq {
    color: #718096;
    font-size: 13px;
    margin-top: 5px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.sponsor-qq .qq-value {
    font-weight: 600;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

/* 前三名联系方式特殊样式 */
.sponsor-rank-1 .sponsor-qq {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: #ff6b00;
}

.sponsor-rank-1 .sponsor-qq .qq-value {
    color: #8b4513;
}

.sponsor-rank-2 .sponsor-qq {
    background: rgba(192, 192, 192, 0.1);
    border-left-color: #808080;
}

.sponsor-rank-2 .sponsor-qq .qq-value {
    color: #4a5568;
}

.sponsor-rank-3 .sponsor-qq {
    background: rgba(205, 127, 50, 0.1);
    border-left-color: #8b4513;
}

.sponsor-rank-3 .sponsor-qq .qq-value {
    color: #7a4a1a;
}

.sponsor-time {
    color: #a0aec0;
    font-size: 12px;
    margin-top: 5px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
}

.refresh-area {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.refresh-btn {
    padding: 10px 25px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: #cbd5e0;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: #718096;
    font-size: 13px;
}

.footer p {
    margin: 5px 0;
}

.copyright {
    margin-top: 10px;
    color: #a0aec0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-title {
        font-size: 28px;
    }
    
    .sponsors-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sponsor-info {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .sponsor-info .sponsor-name {
        flex: 0 0 auto;
    }
    
    .sponsor-info .amount-wrapper {
        flex: 0 0 auto;
        margin-left: auto;
    }
    
    .rank-icon {
        width: 44px;
        height: 44px;
        margin-bottom: -6px;
    }
    
    .sponsor-rank-1 .sponsor-amount,
    .sponsor-rank-2 .sponsor-amount,
    .sponsor-rank-3 .sponsor-amount {
        font-size: 16px;
    }
}
