/**
 * 首页专用样式 - homepage.css
 * 包含：4步流程指示器、热门卡券展示区、特色功能区
 */

/* ============ 通用区块标题 ============ */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
}

.section-title .title-line {
    display: inline-block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a9eff, transparent);
    margin: 0 20px;
}

.section-title .title-text {
    letter-spacing: 1px;
}

/* ============ 4步流程指示器 ============ */
.process-section {
    padding: 60px 0 50px;
    background: #fff;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.08);
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a9eff 0%, #7ec8ff 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(74, 158, 255, 0.35);
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(74, 158, 255, 0.45);
}

.step-info {
    text-align: center;
}

.step-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 12px;
    color: #718096;
}

.process-arrow {
    color: #a0aec0;
    font-size: 28px;
    margin: 0 8px;
    align-self: center;
    margin-top: -20px;
}

/* ============ 热门卡券展示区 ============ */
.hot-cards-section {
    padding: 60px 0 70px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hot-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hot-card-item {
    transition: transform 0.3s ease;
}

.hot-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #edf2f7;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hot-card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a9eff, #7ec8ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.hot-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(74, 158, 255, 0.15);
    border-color: transparent;
}

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

.hot-card-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.hot-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.hot-card-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4a9eff 0%, #7ec8ff 100%);
}

.hot-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    margin-bottom: 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-card-discount {
    font-size: 14px;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 6px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-radius: 12px;
    display: inline-block;
}

.hot-card-discount-unknown {
    color: #718096;
    background: #edf2f7;
}

.hot-card-speed {
    font-size: 12px;
    color: #48bb78;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hot-card-speed i {
    color: #f6ad55;
}

.hot-card-btn {
    padding: 7px 22px;
    background: linear-gradient(135deg, #4a9eff 0%, #7ec8ff 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(74, 158, 255, 0.3);
}

.hot-card-link:hover .hot-card-btn {
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.5);
    transform: scale(1.05);
}

.hot-cards-more {
    text-align: center;
    margin-top: 10px;
}

.hot-cards-more a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 32px;
    color: #4a9eff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #4a9eff;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hot-cards-more a:hover {
    background: #4a9eff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 158, 255, 0.3);
}

/* ============ 特色功能区 ============ */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
}

/* ============ 响应式适配 ============ */
@media (max-width: 992px) {
    .hot-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 16px;
    }
    .process-steps {
        padding: 24px 14px;
    }
    .step-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    .step-name { font-size: 14px; }
    .step-desc { font-size: 11px; }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    .section-title .title-line {
        width: 40px;
        margin: 0 12px;
    }

    /* 移动端流程步骤改为纵向 */
    .process-steps {
        flex-direction: column;
        gap: 18px;
        padding: 24px 16px;
    }
    .process-step {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
    }
    .step-icon {
        margin-bottom: 0;
        width: 48px;
        height: 48px;
        font-size: 20px;
        flex-shrink: 0;
    }
    .step-info {
        text-align: left;
    }
    .process-arrow {
        transform: rotate(90deg);
        margin: 0;
        font-size: 22px;
    }

    .hot-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hot-card-link {
        padding: 18px 10px;
    }
    .hot-card-logo {
        width: 56px;
        height: 56px;
    }
    .hot-card-logo-fallback {
        font-size: 22px;
    }
    .hot-card-name { font-size: 13px; }
    .hot-card-discount { font-size: 12px; }
    .hot-card-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
    .hot-cards-more a {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hot-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .feature-card {
        padding: 24px 16px;
    }
    .feature-icon { font-size: 2.5rem; }
    .feature-title { font-size: 1.25rem; }
}
