/* 首页样式 */

/* 横幅区域 */
.banner-section {
    margin: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
    box-shadow: var(--shadow-md);
}

.banner-slide {
    padding: 24px 20px;
    min-height: 140px;
    display: flex;
    align-items: center;
}

.banner-content {
    width: 100%;
}

.banner-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.title-main {
    display: inline-block;
}

.title-accent {
    display: inline-block;
    color: #FFE66D;
}

.banner-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    width: fit-content;
}

.reward-icon {
    font-size: 20px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.reward-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* 功能网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 20px 16px;
    background: white;
    margin: 0 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.feature-icon .icon {
    font-size: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 1;
}

/* 图标渐变背景类 */
.icon-gradient-orange {
    background: linear-gradient(135deg, #FF9500, #FF6B00);
}

.icon-gradient-red {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
}

.icon-gradient-green {
    background: linear-gradient(135deg, #26DE81, #20BF6B);
}

.icon-gradient-blue {
    background: linear-gradient(135deg, #4B7BFF, #3867D6);
}

.icon-gradient-sky {
    background: linear-gradient(135deg, #45AAF2, #2E86DE);
}

.icon-gradient-pink {
    background: linear-gradient(135deg, #FF6B9D, #EE5A6F);
}

.icon-gradient-purple {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

.icon-gradient-indigo {
    background: linear-gradient(135deg, #42A5F5, #E3F2FD);
}

.icon-gradient-yellow {
    background: linear-gradient(135deg, #FFA502, #FF7F00);
}

.icon-gradient-teal {
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
}

.feature-item:active .feature-icon {
    transform: scale(0.95);
}

.feature-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 活动卡片 */
.activity-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.activity-card {
    padding: 20px;
    border-radius: 16px;
    color: white;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blue-card {
    background: linear-gradient(135deg, #64B5F6 0%, #FFFFFF 100%);
}

.orange-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-icon {
    font-size: 28px;
    display: inline-block;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.activity-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.activity-card p {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 热门项目 */
.hot-projects {
    padding: 0 16px 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.fire-icon {
    display: inline-block;
    font-size: 20px;
    margin-left: 6px;
    animation: fireFlicker 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 71, 87, 0.3));
}

@keyframes fireFlicker {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
    }
    75% {
        transform: scale(1.05) rotate(-3deg);
    }
}

/* 项目网格容器 - 两列布局 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.project-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    margin-bottom: 8px;
}

.project-info {
    width: 100%;
}

.project-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.project-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    justify-content: center;
    margin-bottom: 8px;
}

.price-value {
    font-size: 22px;
    font-weight: 700;
    color: #FF4757;
}

.price-unit {
    font-size: 12px;
    color: #FF4757;
}

.project-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 11px;
}

.stat-item {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    color: var(--text-light);
}

.stat-value {
    color: var(--text-secondary);
}

.project-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
}

.rating-label {
    color: var(--text-light);
}

.rating-stars {
    font-size: 14px;
}

.project-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.hot-badge {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

/* 响应式调整 */
@media (max-width: 375px) {
    .feature-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
    
    .feature-icon {
        width: 44px;
        height: 44px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .projects-grid {
        gap: 10px;
    }
    
    .project-card {
        padding: 10px;
    }
    
    .project-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .project-name {
        font-size: 13px;
    }
    
    .price-value {
        font-size: 20px;
    }
}

