/* ============ 众筹功能样式 (红色主题 #ca2e35) ============ */

/* 产品图片上的众筹标识 */
.product-crowdfunding-badge {
    background: linear-gradient(135deg, #ca2e35 0%, #e63946 100%);
    box-shadow: 0 2px 8px rgba(202, 46, 53, 0.4);
}

/* 众筹区域容器 */
.crowdfunding-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    border: 2px solid #ca2e35;
}

/* 众筹标题栏 */
.crowdfunding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.crowdfunding-badge {
    background: linear-gradient(135deg, #ca2e35 0%, #e63946 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.crowdfunding-status {
    color: #ca2e35;
    font-weight: 600;
    font-size: 13px;
}

/* 众筹进度条 */
.crowdfunding-progress {
    margin: 15px 0;
}

.crowdfunding-progress .progress-bar {
    height: 25px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.crowdfunding-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ca2e35 0%, #e63946 100%);
    border-radius: 12px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progress-stripe 1s linear infinite;
}

@keyframes progress-stripe {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* 众筹统计数据 */
.crowdfunding-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #ca2e35;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 众筹描述 */
.crowdfunding-description {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    border-left: 4px solid #ca2e35;
}

/* 众筹倒计时 */
.crowdfunding-timer {
    background: linear-gradient(135deg, #ca2e35 0%, #e63946 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 15px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(202, 46, 53, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.crowdfunding-timer .timer-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crowdfunding-timer i {
    font-size: 20px;
}

.countdown {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-number, .countdown-days, .countdown-hours, .countdown-minutes, .countdown-seconds {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    border-radius: 6px;
    min-width: 40px;
    text-align: center;
    display: inline-block;
}

.countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 1px;
}

.countdown-ended {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b6b;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .crowdfunding-timer {
        flex-direction: column;
        align-items: flex-start;
    }

    .crowdfunding-timer > span:first-child {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .countdown {
        margin-left: 0;
        margin-top: 10px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .countdown-number {
        font-size: 18px;
        padding: 6px 8px;
        min-width: 35px;
    }

    .countdown-label {
        font-size: 8px;
    }
}
