/**
 * 首页专用样式 - 期货一键查网站
 */

/* 英雄区域样式 */
.hero-section {
    margin-top: -20px;
    margin-bottom: 50px;
    padding: 25px 0;
    overflow: hidden;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0));
}

.hero-swiper {
    height: 550px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 0;
}

.slide-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: -0.5px;
    text-align: center;
    position: relative;
}

.slide-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.slide-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.4;
    text-align: center;
}

.slide-btn {
    font-size: 16px;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
}

.slide-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide-btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-dark);
    transition: all 0.3s;
    z-index: -1;
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
    color: white;
}

.slide-btn:hover:before {
    width: 100%;
}

.hero-image {
    position: relative;
    padding: 5px;
    transition: all 0.5s ease;
    text-align: center;
}

.hero-image img {
    max-width: 95%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    filter: contrast(1.05);
}

.hero-image:hover img {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 特点介绍样式 */
.features-section {
    padding: 70px 0;
    background-color: #fff;
    margin-bottom: 40px;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0));
}

.feature-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 40px 25px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    text-align: center;
    margin-top: 20px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
    height: 75px;
    width: 75px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 102, 204, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(0, 102, 204, 0.2);
}

.feature-card h3 {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* 数据覆盖区域样式 */
.coverage-section {
    padding: 70px 0;
    background-color: var(--light-gray);
    margin-bottom: 40px;
    position: relative;
}

.coverage-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0));
}

.coverage-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.coverage-section p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.coverage-image img {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    filter: contrast(1.05);
}

.coverage-image:hover img {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 联系我们区域样式 */
.contact-section {
    padding: 70px 0;
    background-color: #fff;
    margin-bottom: 30px;
}

.contact-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-section p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section .btn {
    font-size: 16px;
    padding: 10px 28px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-section .btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.contact-section .btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-dark);
    transition: all 0.3s;
    z-index: -1;
}

.contact-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
    color: white;
}

.contact-section .btn:hover:before {
    width: 100%;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 轮播导航样式 */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: 0.6;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--primary-color);
    width: 25px;
    border-radius: 4px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero-swiper {
        height: 500px;
    }
    
    .slide-title {
        font-size: 34px;
    }
    
    .slide-text {
        font-size: 17px;
    }
    
    .coverage-section h2,
    .contact-section h2 {
        font-size: 28px;
    }
    
    .features-section,
    .coverage-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .hero-swiper {
        height: auto;
        min-height: 550px;
    }
    
    .swiper-slide {
        flex-direction: column;
        padding: 20px 15px;
    }
    
    .slide-title {
        font-size: 26px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .slide-text {
        font-size: 16px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-image img {
        width: 90%;
        height: auto;
        border-radius: 8px;
    }
    
    .feature-card {
        padding: 30px 20px;
        margin-bottom: 15px;
    }
    
    .coverage-section h2,
    .contact-section h2 {
        font-size: 24px;
    }
    
    .coverage-section p,
    .contact-section p {
        font-size: 15px;
    }
    
    .features-section,
    .coverage-section,
    .contact-section {
        padding: 50px 0;
    }
}

/* 标题样式 */
.section-title {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 45px;
    padding-bottom: 12px;
    color: var(--text-color);
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title.text-start:after {
    left: 0;
    transform: none;
}