@charset "utf-8";

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

.tab > .tabdw {
    width: 1200px;
    height: 80px;
    margin: 0 auto;
    overflow: hidden;
}

/* Logo区域 */
.tab > .tabdw > .tabimg {
    width: 200px;
    height: 80px;
    padding: 15px 0;
    float: left;
}

.tab > .tabdw > .tabimg a {
    display: block;
    width: 100%;
    height: 100%;
}

.tab > .tabdw > .tabimg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 导航菜单 */
.tab > .tabdw > .tabxz {
    float: right;
    height: 100%;
}

.tab > .tabdw > .tabxz > div {
    width: 100px;
    height: 80px;
    display: inline-block;
    text-align: center;
    line-height: 80px;
    font-size: 16px;
}

.tabxz a {
    text-decoration: none;
    color: #666;
    display: block;
    width: 100%;
    height: 100%;
    font-weight: 500;
}

.tabxz a:hover {
    color: #009B96;
}

/* 激活状态 */
.tab > .tabdw > .tabxz > div.active a {
    color: #009B96;
    font-weight: 600;
    position: relative;
}

.tab > .tabdw > .tabxz > div.active a:after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #009B96;
}

/* 响应式 */
@media (max-width: 1200px) {
    .tab > .tabdw {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .tab > .tabdw {
        height: auto;
        overflow: visible;
        text-align: center;
    }
    
    .tab > .tabdw > .tabimg {
        float: none;
        margin: 15px auto;
        padding: 0;
    }
    
    .tab > .tabdw > .tabxz {
        float: none;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .tab > .tabdw > .tabxz > div {
        width: auto;
        height: 40px;
        line-height: 40px;
        margin: 0 10px;
    }
    
    .tab > .tabdw > .tabxz > div.active a:after {
        bottom: 5px;
    }
}