@charset "utf-8";

/* ===== 头部导航栏样式 ===== */
.header {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 90px;
}

.head {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Logo区域 */
.logoImg {
    width: 300px;
    height: 50px;
    float: left;
    margin-top: 20px;
}

.logoImg a {
    display: block;
    width: 100%;
    height: 100%;
}

.logoImg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 导航菜单 */
.head-nav {
    float: right;
    height: 90px;
}

.head-nav-ul {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.head-nav-ul li {
    float: left;
    height: 100%;
    margin: 0 5px;
}

.head-nav-ul li a {
    display: block;
    padding: 0 20px;
    height: 90px;
    line-height: 90px;
    text-align: center;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.head-nav-ul li a:hover {
    color: #009B96;
}

/* 激活状态 */
.head-nav-ul li.active a {
    color: #009B96;
    font-weight: 600;
    position: relative;
}

.head-nav-ul li.active a:after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #009B96;
}

/* ===== Banner区域 - 修复：移除position:fixed影响 ===== */
.banner {
    width: 100%;
    height: 400px;
    margin-top: 90px; /* 为固定头部留出空间 */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.ban {
    width: 100%;
    height: 100%;
}

.ban ul {
    width: 100%;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.ban li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.ban li:first-child {
    opacity: 1;
}

.ban li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播指示点 */
.hd {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hd ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.hd ul li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hd ul li.active {
    background: #009B96;
    width: 30px;
    border-radius: 5px;
}

/* 轮播箭头 - 默认隐藏 */
.ban-fx {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s;
    display: none;
}

.ban-fx:hover {
    background: #009B96;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .head {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .header {
        height: auto;
    }
    
    .head {
        height: auto;
        padding: 15px 20px;
        overflow: visible;
    }
    
    .logoImg {
        float: none;
        margin: 0 auto 10px;
        width: 250px;
    }
    
    .head-nav {
        float: none;
        width: 100%;
        text-align: center;
        height: auto;
    }
    
    .head-nav-ul {
        display: inline-block;
        height: auto;
    }
    
    .head-nav-ul li {
        height: 50px;
    }
    
    .head-nav-ul li a {
        height: 50px;
        line-height: 50px;
        padding: 0 15px;
    }
    
    .head-nav-ul li.active a:after {
        bottom: 10px;
    }
    
    .banner {
        margin-top: 120px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    .head-nav-ul li a {
        padding: 0 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 250px;
    }
}