/* 顶部信息条 */
.top-info-bar {
    width: 100%;
    background: #233266;
    color: #fff;
    padding: 14px 0;
    font-size: 15px;
    position: relative;
    z-index: 10000;
}
/* 顶部信息条固定状态 */
.top-info-bar.fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}
.top-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-info-left, .top-info-right {
    display: flex;
    align-items: center;
    gap: 40px;
}
.top-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-info-item i {
    font-size: 18px;
}
.top-info-item a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.top-info-item a:hover {
    opacity: 0.8;
}

/* 主头部容器 */
.main-header-wrap {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 9999;
    transition: all 0.3s ease;
}
/* 主头部固定状态（在顶部信息条下面） */
.main-header-wrap.fixed {
    position: fixed !important;
    top: 48px !important; /* 等于顶部信息条的高度 */
    left: 0 !important;
    right: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* 占位元素，防止页面跳动 */
.header-placeholder {
    display: none;
    height: 0;
    transition: height 0.3s ease;
}
.header-placeholder.active {
    display: block;
}

.main-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo样式 */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}
.logo-text {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-item {
    position: relative;
}
.nav-item > a {
    display: block;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.2s ease;
}
.nav-item > a:hover,
.nav-item > a.active {
    color: #2563eb;
}
.nav-item > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
}

/* 下拉菜单 */
.nav-item.has-submenu > a::after {
    content: ' ▾';
    font-size: 14px;
    margin-left: 4px;
}
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    min-width: 160px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10000;
}
.nav-item.has-submenu:hover .submenu {
    display: block;
}
.submenu-item a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease;
}
.submenu-item a:hover {
    background: #f5f5f5;
    color: #2563eb;
}

/* 右侧联系按钮 */
.header-contact-btn {
    background: #233266;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .top-info-bar {
        display: none;
    }
    .main-header-wrap.fixed {
        top: 0 !important; /* 移动端隐藏顶部信息条，主头部直接在顶部 */
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        border-bottom: 1px solid #e5e5e5;
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .header-contact-btn {
        display: none;
    }
}






/* ==================== 省市切换器样式 ==================== */
.city-switcher {
    position: relative;
    z-index: 10001;
}

/* 城市显示按钮 */
.city-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.city-btn:hover {
    background: rgba(255,255,255,0.1);
}
.city-btn .city-name {
    font-weight: bold;
    font-size: 16px;
}
.city-btn .arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}
.city-btn.open .arrow {
    transform: rotate(180deg);
}

/* 城市下拉列表 */
.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    margin-top: 8px;
}
.city-dropdown.show {
    display: block;
}

/* 切换省份按钮 */
.switch-province-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    color: #c00;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.switch-province-btn:hover {
    background: #f5f5f5;
}

/* 城市列表 */
.city-list {
    max-height: 400px;
    overflow-y: auto;
}
.city-item {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease;
}
.city-item:hover {
    background: #f5f5f5;
    color: #2563eb;
}
.city-item.active {
    color: #c00;
    font-weight: bold;
}

/* 省份选择弹窗遮罩 */
.province-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}
.province-modal-mask.show {
    display: flex;
}

/* 省份选择弹窗 */
.province-modal {
    width: 100%;
    max-width: 1000px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* 弹窗头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}
.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
}
.modal-title .current-city {
    background: #c00;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: normal;
}
.modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}
.modal-close:hover {
    color: #333;
}

/* 省份列表 */
.province-list {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}
.province-item {
    display: block;
    text-align: center;
    padding: 10px;
    color: #2563eb;
    text-decoration: none;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.province-item:hover {
    background: #f0f7ff;
    color: #1d4ed8;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .province-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 20px;
    }
    .province-modal {
        margin: 0 20px;
    }
}