/* 首页样式 */
.home-page {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 头部导航样式已移除，统一在 common.css 控制 */

/* 第一行：轮播图 */
.hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 50px;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

/* Swiper轮播图样式 */
.hero-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 500px;
}

/* Swiper分页器样式 */
.hero-swiper .swiper-pagination,
.hero-swiper.swiper-container-horizontal > .swiper-pagination-bullets {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto !important;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.hero-swiper .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: white;
    border-color: white;
    transform: scale(1.3);
    opacity: 1;
}





.hero-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #5ACFC9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #4AB8B2;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Banner链接样式 */
.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.hero-slide-link:hover {
    text-decoration: none;
    color: inherit;
}

.hero-slide-link .hero-image {
    transition: transform 0.3s ease;
}

.hero-slide-link:hover .hero-image {
    transform: scale(1.05);
}

/* 第二行：功能区域 */
.features-section {
    padding: 20px 0 40px 0;
    background-color: white;
}

.feature-card {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.feature-icon {
    font-size: 3rem;
    color: #5ACFC9;
    margin-bottom: 15px;
}

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

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

/* 第三行：搜索框 */
.search-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #5ACFC9 0%, #FA9F42 100%);
    color: white;
}

.search-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.search-box {
    position: relative;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    outline: none;
}

.search-btn {
    background-color: #FA9F42;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #E88A2E;
    color: white;
}

/* 第四行：广告位 */
.ad-section {
    padding: 60px 0 0 0;
    background-color: white;
}

.ad-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 250px;
    position: relative;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.ad-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ad-card:hover .ad-title-overlay {
    opacity: 1;
}

.ad-title-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.ad-card:hover .ad-title-bottom {
    transform: translateY(-5px);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.ad-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 广告链接样式 */
.ad-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.ad-link:hover {
    text-decoration: none;
    color: inherit;
}

.ad-link .ad-image {
    transition: transform 0.3s ease;
}

.ad-link:hover .ad-image {
    transform: scale(1.05);
}

.ad-content-link {
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
}

.ad-content-link .ad-image {
    transition: transform 0.3s ease;
}

.ad-content-link:hover .ad-image {
    transform: scale(1.05);
}

/* 第五行：精选店家 */
.dealers-section {
    padding: 60px 0 0 0;
    background-color: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.view-more-link {
    color: #5ACFC9;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-more-link:hover {
    color: #4AB8B2;
    text-decoration: none;
    transform: translateX(3px);
}

/* 跑马灯容器样式 */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    gap: 20px;
    width: fit-content;
}

/* 跑马灯动画 - 只在有 marquee-active 类时生效 */
.marquee-content.marquee-active {
    animation: marquee 30s linear infinite;
}

/* 跑马灯动画 */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 店家跑马灯 */
.dealers-marquee.marquee-active {
    animation: marquee 40s linear infinite;
}

/* 车辆跑马灯 */
.cars-marquee.marquee-active {
    animation: marquee 35s linear infinite;
}

/* 悬停时暂停动画 - 只对有动画的元素生效 */
.marquee-container:hover .marquee-content.marquee-active {
    animation-play-state: paused;
}

.dealer-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 0 300px;
}

.dealer-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.dealer-card {
    flex: 0 0 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dealer-card-link:hover .dealer-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.dealer-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.dealer-name {
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 0;
}

/* 第六行：精选好车 */
.cars-section {
    padding: 60px 0 0 0;
    background-color: white;
}


/* 车辆卡片链接样式 */
.car-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 0 300px;
}

.car-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.car-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.car-card-link:hover .car-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.car-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-model {
    padding: 15px 15px 5px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.car-price {
    padding: 0 15px 15px;
    font-size: 1.1rem;
    color: #FA9F42;
    font-weight: bold;
    margin: 0;
}




/* 响应式设计 */
@media (max-width: 768px) {
    .features-section {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .search-section {
        margin-left: 12px;
        margin-right: 12px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .ad-section {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .hero-section {
        height: calc(100vw / 2.4);
    }
    
    .hero-swiper .swiper-slide {
        height: calc(100vw / 2.4);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* 移动端指示器样式 */
    .hero-swiper .swiper-pagination,
    .hero-swiper.swiper-container-horizontal > .swiper-pagination-bullets {
        bottom: 20px !important;
    }
    
    .hero-swiper .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .view-more-link {
        font-size: 1rem;
    }
    
    .marquee-container {
        padding: 15px 0;
    }
    
    .dealer-card {
        flex: 0 0 250px;
    }
    
    .car-card-link {
        flex: 0 0 250px;
    }
    
    /* 移动端跑马灯速度调整 */
    .dealers-marquee.marquee-active {
        animation: marquee 30s linear infinite;
    }
    
    .cars-marquee.marquee-active {
        animation: marquee 25s linear infinite;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: calc(100vw / 2.4);
    }
    
    .hero-swiper .swiper-slide {
        height: calc(100vw / 2.4);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* 小屏幕指示器样式 */
    .hero-swiper .swiper-pagination,
    .hero-swiper.swiper-container-horizontal > .swiper-pagination-bullets {
        bottom: 15px !important;
    }
    
    .hero-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    .search-title {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .view-more-link {
        font-size: 0.9rem;
    }
    
    .marquee-container {
        padding: 10px 0;
    }
    
    .dealer-card {
        flex: 0 0 220px;
    }
    
    .car-card-link {
        flex: 0 0 220px;
    }
    
    /* 小屏幕跑马灯速度调整 */
    .dealers-marquee.marquee-active {
        animation: marquee 25s linear infinite;
    }
    
    .cars-marquee.marquee-active {
        animation: marquee 20s linear infinite;
    }
}
