/* ========================================
   公益感谢页
   ======================================== */

.thanks-page {
    min-height: 100vh;
    background: linear-gradient(180deg,
        var(--color-tianqing) 0%,
        var(--color-danqing) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Background Decorations */
.thanks-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Floating Hearts Background */
.hearts-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-heart {
    position: absolute;
    font-size: 30px;
    opacity: 0.15;
    animation: bgHeartFloat 8s ease-in-out infinite;
}

.bg-heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.bg-heart:nth-child(2) { left: 30%; animation-delay: 2s; }
.bg-heart:nth-child(3) { left: 50%; animation-delay: 4s; }
.bg-heart:nth-child(4) { left: 70%; animation-delay: 6s; }
.bg-heart:nth-child(5) { left: 90%; animation-delay: 1s; }

@keyframes bgHeartFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

/* Content Container */
.thanks-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 320px;
}

/* Illustration */
.thanks-illustration {
    font-size: 100px;
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
    animation: illustrationBounce 1s var(--ease-spring);
}

@keyframes illustrationBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.thanks-illustration::after {
    content: '❤️';
    position: absolute;
    top: 20px;
    right: 10px;
    font-size: 36px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
}

/* Title */
.thanks-title {
    font-family: var(--font-title);
    font-size: 24px;
    color: var(--color-cloud);
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 10px rgba(42, 74, 98, 0.3);
    animation: fadeUp 0.8s ease-out 0.3s both;
}

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

.thanks-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    animation: fadeUp 0.8s ease-out 0.5s both;
}

/* Impact Card */
.impact-card {
    background: var(--color-cloud);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-float);
    animation: fadeUp 0.8s ease-out 0.7s both;
}

.impact-emoji {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.impact-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dailan);
    margin-bottom: var(--space-xs);
}

.impact-desc {
    font-size: 13px;
    color: var(--color-ink-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.impact-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: linear-gradient(135deg,
        rgba(124, 194, 191, 0.15) 0%,
        rgba(90, 143, 126, 0.15) 100%);
    border-radius: var(--radius-md);
}

.impact-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-chihong);
}

.impact-number::after {
    content: '元';
    font-size: 14px;
    font-weight: 500;
    margin-left: 4px;
}

.impact-label {
    font-size: 13px;
    color: var(--color-dailan);
}

/* Badge Info */
.donated-badge-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-rice);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.8s ease-out 0.9s both;
}

.donated-badge-preview {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg,
        var(--color-chihong) 0%,
        #FF6B9D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
}

.donated-badge-preview::after {
    content: '❤️';
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 18px;
}

.donated-badge-text {
    text-align: left;
    flex: 1;
}

.donated-badge-text h4 {
    font-size: 14px;
    color: var(--color-dailan);
    margin-bottom: 2px;
}

.donated-badge-text p {
    font-size: 11px;
    color: var(--color-ink-light);
}

/* Action Buttons */
.thanks-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    animation: fadeUp 0.8s ease-out 1.1s both;
}

.thanks-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.thanks-btn-primary {
    background: var(--color-cloud);
    color: var(--color-dailan);
    border: none;
    box-shadow: var(--shadow-md);
}

.thanks-btn-primary:active {
    transform: scale(0.97);
}

.thanks-btn-link {
    background: transparent;
    color: var(--color-cloud);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.thanks-btn-link:active {
    background: rgba(255, 255, 255, 0.1);
}

/* Share Section */
.share-section {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeUp 0.8s ease-out 1.3s both;
}

.share-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.share-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.3);
}

/* Certificate Link */
.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--color-cloud);
    text-decoration: none;
    animation: fadeUp 0.8s ease-out 1.5s both;
}

.certificate-link:active {
    background: rgba(255, 255, 255, 0.25);
}

/* Confetti Celebration */
.confetti-celebration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

.confetti-piece.animate {
    animation: confettiDrop 4s ease-out forwards;
}

@keyframes confettiDrop {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.8s ease-out 0.8s both;
}

.stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-cloud);
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

/* Progress Tracker */
.progress-tracker {
    background: var(--color-cloud);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.8s ease-out 1s both;
}

.tracker-title {
    font-size: 13px;
    color: var(--color-ink-light);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.tracker-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.tracker-steps::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--color-fenqing);
}

.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
    z-index: 2;
}

.tracker-step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-cloud);
    border: 3px solid var(--color-fenqing);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.tracker-step.completed .tracker-step-dot {
    background: var(--color-danqing);
    border-color: var(--color-danqing);
    color: var(--color-cloud);
}

.tracker-step.current .tracker-step-dot {
    background: var(--color-xiangye);
    border-color: var(--color-xiangye);
    color: var(--color-dailan);
    animation: stepPulse 2s infinite;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 210, 39, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(201, 210, 39, 0); }
}

.tracker-step-label {
    font-size: 10px;
    color: var(--color-ink-light);
    text-align: center;
}
