/* ========================================
   推荐工具卡片样式 - 现代化设计
   ======================================== */

.recommend-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 20px;
}

.recommend-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 20px;
}

.recommend-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.recommend-title .icon {
    display: inline-block;
    margin-right: 12px;
}

/* 卡片网格布局 */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 卡片样式 */
.recommend-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.recommend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.recommend-card:hover::before {
    transform: scaleX(1);
}

.recommend-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
}

/* 卡片图标 */
.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 不同类别的图标颜色 */
.card-icon.ai-tools {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.card-icon.life-tools {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-icon.text-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card-icon.entertainment {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.card-icon.luck-search {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.card-icon.home {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* 卡片标题 */
.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.4;
}

/* 卡片描述 */
.card-description {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* 卡片底部 */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #ecf0f1;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    transition: all 0.3s ease;
}

.recommend-card:hover .card-arrow {
    background: #667eea;
    color: white;
    transform: translateX(4px);
}

/* 分类标题 */
.category-title {
    font-size: 24px;
    font-weight: 700;
    margin: 50px 0 30px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title::before {
    content: '';
    width: 6px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .recommend-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recommend-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .recommend-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .recommend-section {
        padding: 15px;
        margin: 30px auto;
    }
    
    .card-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recommend-card {
    animation: fadeInUp 0.6s ease-out;
}

.recommend-card:nth-child(1) { animation-delay: 0.1s; }
.recommend-card:nth-child(2) { animation-delay: 0.2s; }
.recommend-card:nth-child(3) { animation-delay: 0.3s; }
.recommend-card:nth-child(4) { animation-delay: 0.4s; }
.recommend-card:nth-child(5) { animation-delay: 0.5s; }
.recommend-card:nth-child(6) { animation-delay: 0.6s; }

