/* Layout Fixes for the Homepage */

/* Ensure service cards have consistent height */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.service-card h4 {
    margin: 0 0 15px;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-card .btn {
    margin-top: auto;
}

/* Fix grid layout for service categories */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Section headings */
.service-categories h3 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.service-categories h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Feature and benefit sections */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

/* Responsive layout adjustments */
@media screen and (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .service-card {
        min-height: 300px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media screen and (max-width: 576px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        min-height: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .service-categories h3 {
        font-size: 22px;
    }
}

/* 金融平台页面排版修复 */

/* 金融平台页面整体布局调整 */
.service-details {
    margin-bottom: 60px;
}

/* 改进FAQ部分的排版 */
.service-faq {
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 20px 0;
}

.service-faq h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.faq-question {
    padding: 20px 25px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding-right: 20px;
    line-height: 1.5;
}

.faq-toggle {
    font-size: 15px;
    color: var(--primary-color);
    min-width: 20px;
    text-align: center;
}

.faq-answer {
    padding: 25px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.faq-answer p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

/* CTA区域改进 */
.cta-section {
    background-color: #f9f9f9;
    padding: 50px 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.cta-section p {
    margin-bottom: 30px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
}

/* 金融平台特有颜色 */
.binance-hero .service-hero-content h1,
.htx-hero .service-hero-content h1,
.bybit-hero .service-hero-content h1,
.gate-hero .service-hero-content h1,
.coinbase-hero .service-hero-content h1 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 服务卡片间距优化 */
.filtering-grid {
    gap: 30px;
    margin-top: 40px;
}

.filtering-card {
    padding: 30px;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.filtering-card:hover {
    transform: translateY(-5px);
}

.filtering-icon {
    margin-bottom: 25px;
}

.filtering-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.filtering-card p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .service-faq h2 {
        font-size: 1.8rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .filtering-grid {
        gap: 20px;
    }
    
    .filtering-card {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .service-faq h2 {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-answer {
        padding: 20px;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
} 