/* ===== 赞助页面 — 世界级个人网站视觉重构 ===== */

/* ---------- 英雄区 ---------- */
.sponsor-hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    overflow: hidden;
    background: #000;
}

/* 背景光晕 */
.sponsor-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: sponsorGlowPulse 6s ease-in-out infinite;
}

.sponsor-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: sponsorGlowPulse 8s ease-in-out infinite reverse;
}

@keyframes sponsorGlowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

/* 浮动粒子 */
.sponsor-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.sponsor-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: sponsorParticleFloat linear infinite;
}

.sponsor-particle:nth-child(1)  { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.sponsor-particle:nth-child(2)  { left: 20%; animation-duration: 14s; animation-delay: 2s; }
.sponsor-particle:nth-child(3)  { left: 35%; animation-duration: 10s; animation-delay: 4s; }
.sponsor-particle:nth-child(4)  { left: 50%; animation-duration: 16s; animation-delay: 1s; }
.sponsor-particle:nth-child(5)  { left: 65%; animation-duration: 11s; animation-delay: 3s; }
.sponsor-particle:nth-child(6)  { left: 75%; animation-duration: 13s; animation-delay: 5s; }
.sponsor-particle:nth-child(7)  { left: 85%; animation-duration: 15s; animation-delay: 0.5s; }
.sponsor-particle:nth-child(8)  { left: 45%; animation-duration: 18s; animation-delay: 6s; }
.sponsor-particle:nth-child(9)  { left: 90%; animation-duration: 9s;  animation-delay: 2.5s; }
.sponsor-particle:nth-child(10) { left: 5%;  animation-duration: 17s; animation-delay: 7s; }

@keyframes sponsorParticleFloat {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---------- 页面标题区 ---------- */
.sponsor-headline {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}

.sponsor-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0;
    animation: sponsorFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.sponsor-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sponsorFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards,
               sponsorGradientShift 6s ease-in-out infinite 1s;
    opacity: 0;
}

@keyframes sponsorGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sponsor-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto;
    opacity: 0;
    animation: sponsorFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

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

/* ---------- 双栏布局 ---------- */
.sponsor-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

/* ---------- 玻璃态特性卡片 ---------- */
.sponsor-perks {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sponsor-perk {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 28px 28px 72px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateX(-30px);
}

.sponsor-perk.revealed {
    opacity: 1;
    transform: translateX(0);
}

.sponsor-perk:hover {
    background: rgba(147, 51, 234, 0.08);
    border-color: rgba(147, 51, 234, 0.3);
    transform: translateX(6px);
    box-shadow: 0 8px 32px rgba(147, 51, 234, 0.15);
}

.sponsor-perk-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sponsor-perk:hover .sponsor-perk-icon {
    transform: translateY(-50%) scale(1.15) rotate(-5deg);
}

.sponsor-perk h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
}

.sponsor-perk p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ---------- 二维码卡片 (渐变边框动画) ---------- */
.sponsor-qr-card {
    position: relative;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #6366f1, var(--primary-color));
    background-size: 300% 300%;
    animation: sponsorBorderRotate 4s linear infinite;
    opacity: 0;
    transform: translateY(40px);
}

.sponsor-qr-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sponsorBorderRotate {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sponsor-qr-inner {
    background: #0a0a0a;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sponsor-qr-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(147, 51, 234, 0.06) 0%, transparent 100%);
    pointer-events: none;
}

.sponsor-qr-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.sponsor-qr-img {
    width: 280px;
    height: 280px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    position: relative;
}

.sponsor-qr-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(147, 51, 234, 0.3);
}

.sponsor-qr-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 20px;
    line-height: 1.7;
    position: relative;
}

/* ---------- 底部CTA区 ---------- */
.sponsor-cta {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 100px;
    padding: 60px 0;
    opacity: 0;
    transform: translateY(30px);
}

.sponsor-cta.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.sponsor-cta-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto 40px;
}

.sponsor-cta-text {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.sponsor-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sponsor-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.sponsor-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 24px rgba(147, 51, 234, 0.4);
}

.sponsor-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(147, 51, 234, 0.6);
}

.sponsor-btn-ghost {
    background: transparent;
    color: var(--text-color);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.sponsor-btn-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(147, 51, 234, 0.08);
    transform: translateY(-3px);
}

/* ---------- 统计数字动画 ---------- */
.sponsor-stats {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.sponsor-stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.sponsor-stat.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sponsor-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.sponsor-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
    letter-spacing: 1px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .sponsor-hero {
        padding: 120px 0 60px;
    }

    .sponsor-headline {
        margin-bottom: 50px;
    }

    .sponsor-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 480px;
    }

    .sponsor-qr-inner {
        padding: 30px;
    }

    .sponsor-qr-img {
        width: 180px;
        height: 180px;
    }

    .sponsor-stats {
        gap: 30px;
        margin-top: 50px;
    }

    .sponsor-cta {
        margin-top: 60px;
        padding: 40px 0;
    }

    .sponsor-perk {
        transform: translateX(0) translateY(20px);
    }

    .sponsor-perk.revealed {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 480px) {
    .sponsor-hero {
        padding: 100px 0 40px;
    }

    .sponsor-perk {
        padding: 20px 20px 20px 62px;
    }

    .sponsor-perk-icon {
        left: 16px;
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .sponsor-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .sponsor-btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
}
