﻿@charset "utf-8";
/* ============================================
   2026 现代化轮播样式 - 江门市鸿振网络科技
   ============================================ */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* 轮播容器 */
.swiper-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 580px;
    overflow: hidden;
}

.pagination {
    position: absolute;
    left: 0;
    text-align: center;
    bottom: 140px;
    width: 100%;
    z-index: 10;
}

/* 分页器样式 */
.swiper-pagination-switch {
    display: inline-block;
    width: 12px;
    height: 12px;
    font-size: 0;
    line-height: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    margin: 0 6px;
}

.swiper-pagination-switch:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    vertical-align: middle;
    transition: all 0.3s ease;
}

.swiper-active-switch:before {
    width: 36px;
    background: linear-gradient(90deg, #FF6B35, #FF8F6B);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.5);
}

/* 轮播幻灯片 */
.swiper-slide {
    position: relative;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.swiper-slide-active {
    opacity: 1;
}

.swiper-slide .img {
    position: absolute;
    max-width: 100%;
}

/* 内容容器 */
.inner {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

/* 幻灯片背景 */
.slide1 {
    background: url(../images/slideshow/bg-pc1.jpg) no-repeat center center;
    background-size: cover;
}

.slide2 {
    background: url(../images/slideshow/bg-pc2.jpg) no-repeat center center;
    background-size: cover;
}

.slide3 {
    background: url(../images/slideshow/bg-pc3.jpg) no-repeat center center;
    background-size: cover;
}

.slide4 {
    background: url(../images/slideshow/bg-pc4.jpg) no-repeat center center;
    background-size: cover;
}

.slide5 {
    background: url(../images/slideshow/bg-pc5.jpg) no-repeat center center;
    background-size: cover;
}

/* 文字区域 */
.banner-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.banner-text h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #1E293B;
    line-height: 1.5;
    font-weight: 500;
}

.banner-text em {
    font-style: normal;
    color: #FF6B35;
}

.banner-text h2 {
    margin-bottom: 15px;
    font-size: 42px;
    color: #1E293B;
    line-height: 1.3;
    font-weight: 700;
}

.banner-text p {
    margin-bottom: 25px;
    font-size: 16px;
    color: #64748B;
    line-height: 1.6;
}

.banner-text .btn-primary {
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    margin-top: 10px;
    height: 48px;
    line-height: 48px;
    padding: 0 35px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F6B 100%);
    display: inline-block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.banner-text .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

/* 幻灯片图片位置 */
.slide2 .img1 {
    position: absolute;
    right: 5%;
    bottom: 20%;
    max-width: 45%;
    z-index: 9;
}

.slide4 .img1 {
    position: absolute;
    right: 5%;
    bottom: 15%;
    max-width: 40%;
    z-index: 9;
}

.slide4 .img2 {
    position: absolute;
    right: 15%;
    bottom: 5%;
    max-width: 25%;
    z-index: 8;
}

.slide5 .img1 {
    position: absolute;
    right: 5%;
    bottom: 15%;
    max-width: 40%;
    z-index: 9;
}

.slide5 .img2 {
    position: absolute;
    right: 15%;
    bottom: 5%;
    max-width: 25%;
    z-index: 8;
}

/* 波浪遮罩 - 渐变效果 */
.cover {
    position: absolute;
    z-index: 9;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,1));
}

/* 底下四个导航 */
.home-events {
    position: absolute;
    z-index: 10;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-events-box {
    width: 100%;
    max-width: 1210px;
    margin: 0 auto;
}

.home-events-box-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 40px 0 rgba(0, 0, 0, 0.10);
}

.home-events-box-item {
    position: relative;
    height: 120px;
    background: rgba(255, 255, 255, 1);
    transition: all 0.3s ease;
}

.home-events-box-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.home-events-box-item a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 20px 15px 20px 100px;
    text-decoration: none;
    position: relative;
}

.home-events-box-item i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
}

.home-events-box-item i img {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
}

.home-events-box-item i img:last-child {
    opacity: 0;
}

.home-events-box-item:hover i img:last-child {
    opacity: 1;
}

.home-events-box-item:hover h2 {
    color: #FF6B35;
}

.home-events-box-item h2,
.home-events-box-item p {
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-events-box-item h2 {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.3;
    transition: color 0.3s;
}

.home-events-box-item p {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .swiper-container {
        height: 520px;
    }
    
    .home-events-box-item h2 {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .swiper-container {
        height: 450px;
    }
    
    .pagination {
        bottom: 120px;
    }
    
    .banner-text {
        padding: 30px;
        max-width: 90%;
    }
    
    .banner-text h2 {
        font-size: 32px;
    }
    
    .banner-text h3 {
        font-size: 18px;
    }
    
    .home-events-box-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-events-box-item {
        height: 100px;
    }
    
    .home-events-box-item a {
        padding: 15px 10px 15px 70px;
    }
    
    .home-events-box-item i {
        left: 10px;
        width: 45px;
        height: 45px;
    }
    
    .home-events-box-item h2 {
        font-size: 14px;
    }
    
    .home-events-box-item p {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .swiper-container {
        height: 400px;
    }
    
    .pagination {
        bottom: 100px;
    }
    
    .banner-text {
        padding: 25px;
        max-width: 95%;
    }
    
    .banner-text h2 {
        font-size: 26px;
    }
    
    .banner-text h3 {
        font-size: 16px;
    }
    
    .banner-text p {
        font-size: 14px;
    }
    
    .banner-text .btn-primary {
        height: 42px;
        line-height: 42px;
        padding: 0 28px;
        font-size: 14px;
    }
    
    .slide2 .img1,
    .slide4 .img1,
    .slide5 .img1 {
        display: none;
    }
    
    .home-events-box-wrapper {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .swiper-container {
        height: 350px;
    }
    
    .banner-text {
        padding: 20px;
    }
    
    .banner-text h2 {
        font-size: 22px;
    }
    
    .banner-text h3 {
        font-size: 14px;
    }
    
    .home-events-box-wrapper {
        grid-template-columns: 1fr;
    }
    
    .home-events-box-item {
        height: auto;
    }
    
    .home-events-box-item a {
        padding: 20px 15px 20px 80px;
    }
}
