

/* 导航栏基础样式 */
#pc-header {
    z-index: 10;
    width: 100%;
    height: 68px;
    position: fixed;
    top: 0;
    left: 0;
    background: transparent;
    transition: all 0.3s ease;
    /* 防止横向滚动 */
    max-width: 100vw;
    overflow-x: hidden;
}

#pc-header.flex {
    background: #fff;
    color: #333;
}

#pc-header.flex .navbar {
    background: #fff !important;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03) !important;
}

#pc-header .navbar {
    height: 100%;
    /* 防止横向滚动 */
    max-width: 100vw;
    overflow-x: hidden;
}

#pc-header .container-layout {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
    /* 防止横向滚动 */
    overflow-x: hidden;
    box-sizing: border-box;
}

#pc-header .line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    /* 防止横向滚动 */
    max-width: 100%;
    overflow-x: hidden;
}

/* Logo样式 */
#pc-header .logo {
    float: left;
    display: flex;
    align-items: center;
}

#pc-header .logo a {
    display: flex;
    align-items: center;
    height: 68px;
    text-decoration: none;
    font-family: Douyin Sans;
font-size: 26.64px;
font-weight: bold;
line-height: normal;
color: #000C17;
}

#pc-header .logo img {
    width:34px;
    object-fit: contain;
}


/* 导航菜单样式 */
#pc-header .nav {
    float: right;
    display: flex;
    align-items: center;
}

#pc-header .nav-menu {
    float: left;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#pc-header .nav-menu > li {
    position: relative;
    float: left;
}

#pc-header .nav-menu > li > a {
    display: flex;
    padding: 0 30px;
    line-height: 68px;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    color: #1A2233;
    text-decoration: none;
    transition: color 0.2s ease; /* 从0.3s减少到0.2s，只过渡颜色 */
    position: relative;
    gap: 5px;
}

#pc-header .nav-menu > li > a > i {
    position: absolute;
    top: 34px;
    right: 5px;
    background: url(/template/pc/skin/images/ico_jt4.png) no-repeat 50%;
    display: block;
    width: 12px;
    height: 4px;
}

/* 导航链接悬停效果 */
#pc-header .nav-menu > li.on > a,
#pc-header .nav-menu > li:hover > a,
#pc-header .nav-menu > li.active > a {
   
   
    color: #006FFB;
    text-align: center;
}

#pc-header .nav-menu > li > a:before {
    transition: width 0.2s ease; /* 从0.3s减少到0.2s */
    content: "";
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    height: 2px;
    width: 0;
    transform: translate(-50%);
    border-radius: 2px;
    background: #006FFB;
}

#pc-header .nav-menu > li.active > a:before,
#pc-header .nav-menu > li.on > a:before,
#pc-header .nav-menu > li:hover > a:before {
    width: 32px;
}

/* 下拉菜单样式 */
#pc-header .nav-menu .drop-menu {
    position: absolute !important;
    background: #fff !important;
    width: 164px !important;
    border-radius: 9px !important;
    z-index: 2 !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) scaleY(0.8) translateY(-20px) !important;
    transform-origin: top center !important;
    opacity: 0 !important;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* 从0.4s减少到0.25s */
    pointer-events: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    min-width: 164px !important;
    padding: 8px 0 !important;
    display: block !important;
}

#pc-header .nav-menu > li:hover .drop-menu {
    transform: translateX(-50%) scaleY(1) translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#pc-header .drop-menu li {
    text-align: center;
    padding: 0;
}

#pc-header .drop-menu li a {
    padding: 12px 20px !important;
    font-size: 14px !important;
    color: #333 !important;
    display: block !important;
    text-align: center !important;
    transition: color 0.2s ease !important; /* 从0.3s减少到0.2s，只过渡颜色 */
    text-decoration: none !important;
    position: relative !important;
    width: 100% !important;
    background: none !important;
}

#pc-header .drop-menu li a:hover {
    color: #2538FF !important;
    background: none !important;
}

#pc-header .drop-menu li a:after {
    transition: width 0.2s ease; /* 从0.3s减少到0.2s */
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    height: 2px;
    width: 0;
    transform: translate(-50%);
    border-radius: 2px;
    background-color: #2538FF;
}

#pc-header .drop-menu li a:hover:after {
    width: 32px;
}

/* 联系电话样式 */
#pc-header .tel {
    float: left;
    margin: 0 0 0 55px;
    line-height: 68px;
    display: flex;
    width: 270px;
    justify-content: space-between;
    align-items: center;
}

#pc-header .tel a {
    color: #15181C;
    display: flex;
    align-items: center;
    font-size: 12px;
    text-decoration: none;
}

#pc-header .tel-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    animation: phonePulse 2s ease-in-out infinite;
}
#pc-header  .online-consultation {
    width: 72px;
height: 32px;
line-height: 32px;
text-align: center;
border-radius: 8px;
opacity: 1;

font-family: Alibaba PuHuiTi 3.0;
font-size: 12px;
font-weight: 500;

color: #FFFFFF;
background: #006FFB;
cursor: pointer;
}
/* 动画效果 */
@keyframes phonePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 移动端汉堡菜单按钮 */
#pc-header .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

#pc-header .mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

#pc-header .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#pc-header .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#pc-header .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 移动端遮罩层 */
.mobile-nav-mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.25s ease; /* 从0.3s减少到0.25s */
    pointer-events: none;
}

.mobile-nav-mask.active {
    opacity: 1;
    pointer-events: auto;
    display: block !important;
}

/* 移动端导航菜单 */
.mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right 0.25s ease; /* 从0.3s减少到0.25s，只过渡right属性 */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
    display: block !important;
}

.mobile-nav-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px 0 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* 移动端关闭按钮 - 移到顶部 */
.mobile-nav-close {
    position: relative;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
    z-index: 20;
    margin: 15px 15px 0 auto;
}

.mobile-nav-close:hover {
    color: #333;
    background: #e9ecef;
    transform: scale(1.1);
}

.mobile-nav-close:active {
    transform: scale(0.95);
}

/* 移动端咨询区域 - 移到菜单下方 */
.mobile-consult-section {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.mobile-consult-section .consult-title {
    display: none;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.mobile-consult-section .consult-button {
    width: 200px;
    height: 34px;
    line-height: 34px;
    
    background: #006FFB;
   color: #fff;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.mobile-consult-section .consult-button:hover {

    background: #006FFB;
    color: #fff;
}

.mobile-consult-section .consult-button .icon {
    width: 20px;
    height: 20px;
    /* background: url(/template/pc/skin/images/ico_headset.png) no-repeat center; */
    background-size: contain;
}

.mobile-consult-section .tel-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.mobile-consult-section .tel-item {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 8px;
    color: #15181C;
    font-size: 14px;
    margin-left: 16px;
}

.mobile-consult-section .tel-item .icon {
    width: 16px;
    height: 16px;
    background: url(/template/pc/skin/images/nav-tel.png) no-repeat center;
    background-size: contain;
}

.mobile-consult-section .tel-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

/* 移动端底部信息区域 */
.mobile-footer-section {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.mobile-footer-section .company-address {
    text-align: center;
    margin-bottom: 20px;
}

.mobile-footer-section .company-address h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.mobile-footer-section .company-address p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.mobile-footer-section .qr-codes {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.mobile-footer-section .mqr-item {
    text-align: center;
    flex: 1;
}

.mobile-footer-section .mqr-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
}

.mobile-footer-section .mqr-item p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* 移除原有的移动端电话区域样式 */
.mobile-tel-section {
    display: none;
}

/* 移动端菜单样式调整 */
.mobile-nav-menu {
    display: block; /* 显示移动端菜单 */
    padding: 0 0 4px 0;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 0 20px 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease; /* 从0.3s减少到0.2s，只过渡必要属性 */
    position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: #2538FF;
    background-color: #f8f9fa;
}

.mobile-drop-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    display: none;
}

.mobile-drop-menu.active {
    display: block;
}

.mobile-drop-item {
    border-top: 1px solid #e9ecef;
}

.mobile-drop-link {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, background-color 0.2s ease; /* 从0.3s减少到0.2s，只过渡必要属性 */
}

.mobile-drop-link:hover,
.mobile-drop-link:active {
    color: #2538FF;
    background-color: #e9ecef;
}

.mobile-drop-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

.mobile-nav-item.active .mobile-drop-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* 移除不再使用的移动端菜单样式 */

/* 响应式设计 */
@media (max-width: 1024px) {
    #pc-header .nav-menu {
        display: flex !important; /* 恢复桌面端菜单显示 */
    }
    
    #pc-header .mobile-menu-toggle {
        display: none !important; /* 隐藏移动端菜单按钮 */
    }
    
    #pc-header .container-layout {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }
    
    #pc-header .tel,
    #pc-header .searchBar,
    #pc-header .shopBar,
    .log-in {
        display: none !important;
    }
    
    #pc-header .line {
        justify-content: space-between;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    #pc-header .logo {
        flex: 1;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    #pc-header .nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    #pc-header {
        height: 60px !important;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    #pc-header .logo a {
        height: 60px;
    }
    
    #pc-header .logo img {
        height: 50px;
        max-width: 100%;
        object-fit: contain;
    }
    
    body {
        padding-top: 60px !important;
        /* 防止横向滚动 */
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    #pc-header .nav-tag {
        margin-left: 10px;
    }
    
    #pc-header .nav-tag-bg {
        width: 100px;
        height: 24px;
    }
    
    #pc-header .nav-tag-text {
        width: 80px;
        height: 16px;
    }
}

/* 移动端菜单显示断点 */
@media (max-width: 768px) {
    #pc-header .nav-menu {
        display: none !important; /* 在768px以下隐藏桌面端菜单 */
    }
    
    #pc-header .mobile-menu-toggle {
        display: flex !important; /* 在768px以下显示移动端菜单按钮 */
    }
    
    .mobile-nav-mask.active {
        display: block !important;
    }
    
    .mobile-nav.active {
        display: block !important;
    }
    
    /* 确保移动端不会出现横向滚动 */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    #pc-header {
        max-width: 100vw;
        overflow-x: hidden;
        background-color: #fff;
    }
    
    #pc-header .container-layout {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    #pc-header .container-layout {
        padding: 0 16px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    #pc-header .logo img {
        height: 40px;
        max-width: 100%;
        object-fit: contain;
    }
    
    #pc-header .nav-tag {
        margin-left: 8px;
    }
    
    #pc-header .nav-tag-bg {
        width: 90px;
        height: 22px;
    }
    
    #pc-header .nav-tag-text {
        width: 70px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    #pc-header .container-layout {
        padding: 0 12px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    #pc-header .logo img {
        height: 40px;
        max-width: 100%;
        object-fit: contain;
    }
    
    #pc-header .mobile-menu-toggle {
        width: 24px;
        height: 18px;
    }
    
    #pc-header .mobile-menu-toggle span {
        height: 2px;
    }
    
    #pc-header .nav-tag {
        margin-left: 6px;
    }
    
    #pc-header .nav-tag-bg {
        width: 80px;
        height: 20px;
    }
    
    #pc-header .nav-tag-text {
        width: 60px;
        height: 12px;
    }
    
    .mobile-nav {
        width: 260px;
        max-width: 90vw;
        right: -260px;
    }
    
    .mobile-nav-content {
        padding: 0px 12px 20px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-consult-section {
        padding: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-consult-section .consult-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .mobile-consult-section .consult-button {
        width: 180px;
        max-width: 100%;
        height: 34px;
        line-height: 34px;
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .mobile-consult-section .tel-info {
        gap: 12px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-consult-section .tel-item {
        font-size: 13px;
    }
    
    .mobile-footer-section {
        padding: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-footer-section .company-address h4 {
        font-size: 15px;
    }
    
    .mobile-footer-section .company-address p {
        font-size: 13px;
    }
    
    .mobile-footer-section .mqr-item img {
        width: 70px;
        height: 70px;
        max-width: 100%;
    }
    
    .mobile-footer-section .mqr-item p {
        font-size: 11px;
    }
    
    .mobile-nav-close {
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    #pc-header .container-layout {
        padding: 0 8px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    #pc-header .logo img {
        height: 36px;
        max-width: 100%;
        object-fit: contain;
    }
    
    #pc-header .mobile-menu-toggle {
        width: 22px;
        height: 16px;
    }
    
    #pc-header .mobile-menu-toggle span {
        height: 1.5px;
    }
    
    #pc-header .nav-tag {
        margin-left: 4px;
    }
    
    #pc-header .nav-tag-bg {
        width: 70px;
        height: 18px;
    }
    
    #pc-header .nav-tag-text {
        width: 50px;
        height: 10px;
    }
    
    .mobile-nav {
        width: 240px;
        max-width: 85vw;
        right: -240px;
    }
    
    .mobile-nav-content {
        padding: 0px 8px 20px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-consult-section {
        padding: 12px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-consult-section .consult-title {
        font-size: 15px;
        margin-bottom: 18px;
    }
    
    .mobile-consult-section .consult-button {
        width: 160px;
        max-width: 100%;
        height: 34px;
        line-height: 34px;
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .mobile-consult-section .tel-info {
        gap: 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-consult-section .tel-item {
        font-size: 12px;
    }
    
    .mobile-footer-section {
        padding: 12px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-footer-section .company-address h4 {
        font-size: 14px;
    }
    
    .mobile-footer-section .company-address p {
        font-size: 12px;
    }
    
    .mobile-footer-section .mqr-item img {
        width: 60px;
        height: 60px;
        max-width: 100%;
    }
    
    .mobile-footer-section .mqr-item p {
        font-size: 10px;
    }
    
    .mobile-nav-close {
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    #pc-header .container-layout {
        padding: 0 6px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    #pc-header .logo img {
        height: 30px;
        max-width: 100%;
        object-fit: contain;
    }
    
    #pc-header .mobile-menu-toggle {
        width: 20px;
        height: 14px;
    }
    
    #pc-header .mobile-menu-toggle span {
        height: 1px;
    }
    
    #pc-header .nav-tag {
        margin-left: 3px;
    }
    
    #pc-header .nav-tag-bg {
        width: 60px;
        height: 16px;
    }
    
    #pc-header .nav-tag-text {
        width: 45px;
        height: 9px;
    }
    
    .mobile-nav {
        width: 220px;
        max-width: 80vw;
        right: -220px;
    }
    
    .mobile-nav-content {
        padding: 0px 6px 20px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-consult-section {
        padding: 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-consult-section .consult-title {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .mobile-consult-section .consult-button {
        width: 140px;
        max-width: 100%;
        height: 30px;
        line-height: 30px;
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .mobile-consult-section .tel-info {
        gap: 8px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-consult-section .tel-item {
        font-size: 11px;
    }
    
    .mobile-footer-section {
        padding: 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .mobile-footer-section .company-address h4 {
        font-size: 13px;
    }
    
    .mobile-footer-section .company-address p {
        font-size: 11px;
    }
    
    .mobile-footer-section .mqr-item img {
        width: 50px;
        height: 50px;
        max-width: 100%;
    }
    
    .mobile-footer-section .mqr-item p {
        font-size: 9px;
    }
    
    .mobile-nav-close {
        top: 8px;
        right: 8px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}

/* 页面内容上边距 */
body {
    padding-top: 68px;
    transition: padding-top 0.3s ease;
    /* 防止横向滚动 */
    max-width: 100vw;
    overflow-x: hidden;
}

/* 锚链接偏移修复 - 解决固定导航栏遮挡问题 */
html {
    scroll-behavior: auto; /* 无动画，立即跳转 */
    scroll-padding-top: 68px; /* 桌面端导航栏高度 + 缓冲，确保标题不被遮挡 */
    /* 防止横向滚动 */
    max-width: 100vw;
    overflow-x: hidden;
}
@media screen and (max-width: 740px) {
    html {
        --design-width: 375;
        font-size: calc(100vw / var(--design-width));
    }
}


/* 移动端锚链接偏移调整 */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 72px; /* 移动端导航栏高度60px + 12px缓冲 */
        /* 防止横向滚动 */
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    body {
        padding-top: 60px !important;
        /* 防止横向滚动 */
        max-width: 100vw;
        overflow-x: hidden;
    }
}
