* {
    margin: 0;
    padding: 0; 
}
/* ========== 蓝色系高级滚动条（推荐） ========== */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #f5f7fa;
}
::-webkit-scrollbar-thumb {
  background: #287ffc;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff0303;
}
::-webkit-scrollbar-button {
  display: none;
}
a{text-decoration:none;}

/* 基础导航样式 - 调整PC端布局顺序 */
.header-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 82px; /* PC端高度 */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 999;
    color: #ffffff; /* PC端默认文字颜色改为白色 */
    font-size: 18px; /* PC端默认文字大小18px */
}

/* 透明背景（顶部，未交互时） */
.header-menu.transparent {
    background-color: transparent !important; /* 强制生效 */
    color: #ffffff !important;
}
.header-menu a{ 
    color: #ffffff !important;
}

/* 白色背景（滚动后/交互时） */
.header-menu.white-bg {
    background-color: #ffffff !important; /* 强制生效 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #0066cc !important;
}
.header-menu:hover a{ 
    color: #000000 !important;
}
.header-menu.white-bg a{ 
    color: #000000 !important;
} 

/* PC端hover效果还原（关键修复） */
@media (min-width: 769px) {
    .header-menu.transparent:hover {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    .header-menu.transparent .menu-item:hover {
        color: #287ffc !important;
    }
    /* 关键：hover时强制更新Logo显示 */
    .header-menu.transparent:hover #logoImg {
        content: url('../../../logo_qycx_color.png') !important;
    }
}

/* logo区块 - PC端 */
.logo-box {
    width: 220px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    width: auto;
    height: 46px; 
    display: block;
    transition: content 0.3s ease; /* 添加过渡效果 */
}

/* 菜单列表区块 - PC端 */
.menu-list {
    flex: 1;
    display: flex;
    position: relative;
    height: 100%; 
    padding-left: 15px;
}

.menu-item {
    padding: 0 15px;
    height: 82px;
    line-height: 82px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease, font-weight 0.3s ease;
    color: inherit;
    font-size: inherit;
}

/* 菜单下划线效果 - PC端 */
.menu-item::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: inherit;
    transition: width 0.3s ease;
}

.menu-item:hover {
    font-weight: bold;
    color: #287ffc!important;
}
.menu-item a:hover {
    font-weight: bold;
    color: #287ffc!important;
}
.menu-item:hover a{
    font-weight: bold;
    color: #287ffc!important;
}



.header-menu.transparent .menu-item:hover {
    color: #287ffc;
}

.menu-item:hover::after {
    width: calc(100% - 30px);
    background-color: currentColor;
}

/* 手机号区块 - PC端 */
.phone-box {
    min-width: 220px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0; 
}

.phone-text {
    font-size: inherit;
    color: inherit;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

/* 🔥 修复：子菜单无缝衔接 + 消除空白间隙 */
.pc-submenu {
    position: fixed;
    top: 82px;
    left: 0;
    width: 100%;
    height: 256px;
    background-color: #ffffff;
    padding: 50px 30px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 998;
    /* 关键修复：向上延伸覆盖间隙，让鼠标不会断开 */
    margin-top: -2px;
    padding-top: 2px;
}

.submenu-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.submenu-item {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.submenu-item:hover {
    color: #287ffc;
    font-weight: bold;
}

/* 移动端适配 - 核心样式 */
.mobile-toggle {
    display: none !important;
    font-size: 24px;
    cursor: pointer;
}
.mobile-submenu {
    display: none;
    width: 100%;
    flex-direction: column;
    background-color: #f9f9f9;
}
.menu-item.has-submenu::before {
    display: none !important;
}

/* 响应式样式 - 768px以下 */
@media (max-width: 768px) {
    .header-menu {
        height: 60px;
        padding: 0 15px;
        justify-content: space-between;
        font-size: 16px;
    }

    .logo-box {
        width: 40%;
        height: 60px;
        justify-content: flex-start;
    }

    .logo-img {
        height: 2rem;
        width: auto;
        max-width: 100%;
    }

    .mobile-toggle {
        display: block !important;
        z-index: 1000;
    }

    .menu-list {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 0;
        transition: left 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        flex: none;
    }

    .menu-list.active {
        left: 0;
    }

    .menu-item {
        width: 100%;
        text-align: left;
        height: 60px;
        line-height: 60px;
        padding: 0 20px;
        border-bottom: 1px solid #f5f5f5;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: auto;
    }

    .menu-item-text {
        height: 60px;
        line-height: 60px;
    }

    .menu-item::after {
        display: none;
    }

    .menu-item.has-submenu::before {
        display: block !important;
        content: "▶";
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 12px;
        transition: transform 0.3s ease;
        z-index: 1;
    }

    .menu-item.has-submenu.active::before {
        transform: rotate(90deg);
    }

    .mobile-submenu {
        display: none;
        width: 100%;
        flex-direction: column;
        background-color: #f9f9f9;
        position: static;
        margin: 0;
        padding: 0;
    }

    .mobile-submenu.active {
        display: flex;
    }

    .mobile-submenu-item {
        width: 100%;
        height: 50px;
        line-height: 50px;
        padding: 0 30px;
        border-bottom: 1px solid #f5f9;
        font-size: 14px;
        color: #666;
    }

    .pc-submenu {
        display: none !important;
    }

    .phone-box {
        display: none;
    }
}