/* ============================================================
   顶部头部样式（top_header.cshtml 专用）
   说明：结构/布局类统一加 toph_ 前缀，避免与全站样式冲突。
   收藏下拉内容项（.collect-item / .item-num / .item-btn /
   .num-active / .num-highlight / .num-split / .collect-cnt /
   .cnt-* / .collect-empty / .collect-num 等）由
   jscollection.js / jshistory.js 动态注入且跨组件共用，
   不加前缀，样式仍保留在 common.css。
   ============================================================ */

/* ---------- 顶部欢迎条 ---------- */
.toph_header{
    width:100%;
    background:#ffffff;
}
.toph_clearfix {
    width:100%;
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    height:34px;
}
.toph_clearfix .toph_site{
    width:1200px;
    height:34px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:#666;
    font-size:12px;
}
.toph_site_left {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}
.toph_site_left a{
    display:inline-block;
}
.toph_site_left a:hover{
    color:#FD5922;
}
.toph_site_left .toph_text1{
    margin-right:30px;
    color:#FD5922;
}
.toph_site_right {
    display: flex;
    align-items: center;
    margin: 0;
}
.toph_site_right .toph_item {
    height: 34px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 8px;
}
.toph_site_right .toph_item:hover{
    color:#FD5922;
}

/* ---------- 搜索区 ---------- */
.toph_search_fixed {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 20px 0;
}
.toph_web_logo{
    width:223px;
    height:51px;
    display:block;
    flex-shrink:0;
}
.toph_web_logo img{
    width:100%;
    height:100%;
    display:block;
}
.toph_search_fixed .toph_search_box{
	display:flex;
	align-items:stretch;
	width:561px;
	height:51px;
	background:#ffffff;
/*	border:1px solid #FD5922;*/
/*	border-radius:12px;*/
	overflow:visible;
/*	margin-left:10px;*/
	box-sizing:border-box;
	position:relative;
}
/* 城市选择格 */
.toph_search_fixed .toph_search_box .toph_position_a_box {
    width: 100px;
    flex-shrink: 0;
    padding: 0 11px;
    border: none;
/*    border-right: 1px solid #eee;*/
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.toph_search_fixed .toph_search_box .toph_position_a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}
.toph_search_fixed .toph_search_box .toph_position_a_box:hover {
    border: none;
/*    border-right: 1px solid #eee;*/
}
/* 透明 hover 桥：填补 a_box 底部与下拉面板之间的 10px 缝隙，避免鼠标穿过时面板提前关闭 */
.toph_search_fixed .toph_search_box .toph_position_a_box::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}
.toph_search_fixed .toph_search_box .toph_position_a_box:hover .toph_position_more {
    transform: rotate(180deg);
}
.toph_search_fixed .toph_search_box .toph_position_a_box.show .toph_position_more {
    transform: rotate(180deg);
}
.toph_search_fixed .toph_search_box .toph_position_a_box:hover .toph_position_block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.toph_search_fixed .toph_search_box .toph_position_a_box.show .toph_position_block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.toph_search_fixed .toph_search_box .toph_position_a .toph_position_icon{
    width:13px;
    height:16px;
}
.toph_search_fixed .toph_search_box .toph_position_a .toph_position_title {
    color: #333;
    font-size: 14px;
/*    margin: 5px;*/
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 56px;
    background: none;
    padding-left: 0;
}
.toph_search_fixed .toph_search_box .toph_position_a .toph_position_more{
    width:10px;
    height:6px;
    margin-left:4px;
}
/* 定位图标呼吸灯：周期性缩放 + 明暗，提示可切换城市 */
    .toph_search_fixed .toph_search_box .toph_position_a .toph_position_dingwei {
        animation: toph-dingwei-breathe 1.8s ease-in-out infinite;
        margin-right: 4px;
    }
@keyframes toph-dingwei-breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.18);
        opacity: 0.8;
    }
}
/* 城市下拉面板 */
    .toph_search_fixed .toph_search_box .toph_position_block {
        display: none;
        position: absolute;
        top: 61px;
        left: 10px;
        z-index: 2;
        background: #FFFFFF;
        box-shadow: 0px 7px 7px 2px rgba(87,87,87,0.26);
        border-radius: 8px;
        border: 2px solid #F5F5F5;
        color: #333;
        cursor: auto;
        width: 508px;
        padding: 20px 20px;
    }
.toph_search_fixed .toph_search_box .toph_position_hot_title {
    display: block;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    color: #333333;
    margin-bottom: 10px;
}
.toph_search_fixed .toph_search_box .toph_position_a_block {
    font-size: 14px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 1px solid #F2F2F2;
}
.toph_search_fixed .toph_search_box .toph_position_a_block .toph_position_city {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 4px;
}
.toph_search_fixed .toph_search_box .toph_position_a_block .toph_position_city_title {
    font-weight: bold;
    font-size: 14px;
    color: #101010;
    margin-top: 5px;
    width: 70px;
}
.toph_search_fixed .toph_search_box .toph_position_a_block .toph_position_city a {
    width: 100%;
    line-height: 30px;
    display: block;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}
.toph_search_fixed .toph_search_box .toph_position_a_block .toph_position_city a:hover {
    color: #FD5922;
}
.toph_search_fixed .toph_search_box .toph_position_city_loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-size: 13px;
    line-height: 40px;
}
.toph_search_fixed .toph_search_box .toph_position_a_block .toph_position_city_history {
    grid-template-columns: repeat(7, 1fr);
}
    .toph_search_fixed .toph_search_box .toph_position_city_more {
        margin-top: 20px;
        text-align: center;
        color: #737373;
        cursor: pointer;
    }
.toph_search_fixed .toph_search_box .toph_position_city_more:hover {
    color: #FD5922;
}
/* 搜索输入框 + 按钮 */
    .toph_search_fixed .toph_search_box .toph_search_frame {
        display: flex;
        align-items: stretch;
        position: relative;
        margin: 0;
        flex: 1;
        min-width: 0;
        border: 1px solid #FD5922;
        border-radius: 12px;
    }
.toph_search_fixed .toph_search_box .toph_search_frame .toph_search_input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 12px 0 0 12px;
    font-size: 14px;
    padding: 0 12px;
    outline: none;
    color: #333;
}
    .toph_search_fixed .toph_search_box .toph_search_frame .toph_search_btn {
        display: block;
        width: 100px;
        height: 100%;
        border: none;
        background: linear-gradient(90deg, #FD5922 0%, #FD7C29 100%);
        color: #ffffff;
        font-size: 16px;
        text-align: center;
        line-height: 49px;
        cursor: pointer;
        border-radius: 12px;
        transition: opacity .2s;
    }
    .toph_search_fixed .toph_search_box .toph_search_frame .toph_search_btn:hover {
        opacity: .9;
    }
/* ===== 搜索悬浮面板（参考 lanhu_sousuo section_1：模糊+精确搜索） ===== */
        .toph_search_fixed .toph_search_box .toph_search_frame .toph_search_panel {
            display: none;
            position: absolute;
            top: 0;
            left: -1px;
            width: 461px;
            box-sizing: border-box;
            background: #fff;
            border-radius: 12px;
            border: 2px solid #FA5A26;
            box-shadow: 0 7px 7px 1px rgba(87,87,87,.26);
            padding: 12px 20px 20px;
            z-index: 3;
        }
.toph_search_fixed .toph_search_box .toph_search_frame.show .toph_search_panel {
    display: block;
}
/* 关闭按钮（右上角） */
.toph_search_panel_close {
    float: right;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    line-height: 14px;
}
.toph_search_panel_close:hover {
    color: #FD5922;
}
/* 区块标题 */
.toph_search_panel_tit {
    font-size: 14px;
    color: #101010;
    line-height: 14px;
    margin: 14px 0 8px;
    clear: both;
}
/* 模糊搜索行：输入框 + 搜北京 + 搜全国 */
.toph_search_panel_box1 {
    display: flex;
    align-items: center;
}
.toph_search_panel_mh {
    width: 238px;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #DDD;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    outline: none;
    flex-shrink: 0;
}
.toph_search_panel_mh:focus {
    border-color: #FA5A26;
}
/* 子按钮：搜北京(橙底白字) / 搜全国(灰底) / 精确搜索(橙底白字) */
.toph_search_panel_subbtn {
    width: 84px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    background: #FA5A26;
    color: #fff;
    margin-left: 8px;
    flex-shrink: 0;
    transition: opacity .2s;
}
.toph_search_panel_subbtn:hover {
    opacity: .9;
}
.toph_search_panel_subbtn.subbtn_gray {
    background: #F7F7F7;
    color: #101010;
    border: 1px solid #DDD;
    box-sizing: border-box;
    line-height: 40px;
}
/* 选项行：不限位置/搜索末尾/只含数字 */
.toph_search_panel_opts {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.toph_search_opt {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 16px;
    font-size: 12px;
    color: #666;
    user-select: none;
}
.toph_search_opt:last-child {
    margin-right: 0;
}
.toph_search_opt .opt_box {
    width: 16px;
    height: 16px;
    border: 1px solid #DDD;
    background: #fff;
    border-radius: 2px;
    margin-right: 4px;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}
/* 选中态：红框 + 勾 */
.toph_search_opt.checked .opt_box {
    border-color: #EF3030;
}
.toph_search_opt.checked .opt_box::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 6px;
    height: 9px;
    border: solid #EF3030;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.toph_search_opt.checked .opt_txt {
    color: #EF3030;
}
/* 精确搜索行：11个数字位 + 精确搜索按钮 */
.toph_search_panel_box2 {
    display: flex;
    align-items: center;
}
.toph_search_pos_inputs {
    display: flex;
    flex-shrink: 0;
}
.toph_search_pos {
    width: 31px;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #E6E6E6;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    outline: none;
    margin-left: -1px;
}
.toph_search_pos:first-child {
    margin-left: 0;
    background: #FDFDFD;
    border-radius: 4px 0 0 0;
    border-color: #F5F5F5;
    color: #BBB;
}
.toph_search_pos:focus {
    border-color: #FA5A26;
    z-index: 1;
    position: relative;
}
.toph_search_pos:disabled {
    background: #F5F5F5;
    cursor: not-allowed;
}
/* 热门搜索（当前模板已注释，保留样式备用） */
.toph_word_label {
    color: #999999;
    font-size: 12px;
    margin-left: 100px;
    margin-top: 8px;
}
.toph_word_label a {
    color: #999999;
    font-size: 12px;
    margin-left: 12px;
}
.toph_word_label a:hover {
    color: #FD5922;
}

/* ---------- 收藏与客服 ---------- */
.toph_web_collect {
    display: flex;
    align-items: center;
}
.toph_collect_box {
    width: 120px;
    height: 51px;
    box-sizing: border-box;
    border: 1px solid #FD5922;
    border-radius: 10px;
    background: linear-gradient(180deg, #FFF5ED 0%, #FFFFFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}
.toph_collect_box:hover {
    border: 1px solid #FD5922;
    background: linear-gradient(180deg, #FFE9D6 0%, #FFFFFF 100%);
}
.toph_collect_box:hover .toph_top_collect {
    display: block;
}
.toph_collect_box:hover .toph_zd {
    display: block;
}
.toph_collect_box img {
    width: 20px;
    height: 14px;
    margin-right: 5px;
}
.toph_collect_box .toph_text {
    color: #FD5922;
    font-size: 14px;
    margin: 0 5px;
    white-space: nowrap;
}
.toph_collect_box .toph_collect_num {
    color: #ffffff;
    background: #FD5922;
    border-radius: 50%;
    text-align: center;
    width: 14px;
    height: 14px;
    line-height: 14px;
    font-size: 12px;
}
.toph_zd {
    width: 133px;
    height: 10px;
    background: #fff;
    position: absolute;
    bottom: -1px;
    left: 0;
    z-index: 2;
    display: none;
}
.toph_top_collect {
    background: #fff;
    border: 2px solid #F5F5F5;
    border-radius: 8px;
    box-shadow: 0px 7px 7px 2px rgba(87,87,87,0.26);
    display: none;
    min-height: 60px;
    position: absolute;
    right: -1px;
    top: 50px;
    width: 368px;
    z-index: 10;
}

/* ---------- 客服电话 ---------- */
.toph_web_tel {
    display: flex;
    align-items: center;
    margin-left: 30px;
}
.toph_web_tel .toph_tel_icon {
    width: 39px;
    height: 39px;
    margin: 0 16px 0 0;
}
.toph_web_tel .toph_work_time {
    display: block;
    color: #999999;
    font-size: 14px;
    white-space: nowrap;
    margin-bottom: 2px;
}
.toph_web_tel .toph_tel_num {
    display: block;
    color: #333333;
    font-weight: bold;
    font-size: 24px;
    white-space: nowrap;
    letter-spacing: 1px;
}

/* ---------- 主导航（分类大菜单） ---------- */
.toph_web_nav {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.toph_web_nav .toph_left_nav {
    width: 200px;
    height: 48px;
    background: linear-gradient(90deg, #FC5923 0%, #FD9039 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding-left: 19px;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all .3s ease;
    letter-spacing: 1px;
}
.toph_web_nav .toph_left_nav h2 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}
    .toph_web_nav .toph_left_nav:hover {
        height: 68px;
        padding-bottom:20px;
        margin-bottom: -20px;
    }
.toph_web_nav .toph_left_nav:hover .toph_header_nav {
    visibility: visible;
    opacity: 1;
}
/* 首页 / 省份首页：选号导航常驻展示 */
.toph_web_nav .toph_left_nav.toph_nav_pinned .toph_header_nav {
    visibility: visible;
    opacity: 1;
}
.toph_web_nav .toph_left_nav img {
    width: 17px;
    height: 13px;
    margin: 0 9px 0 0;
    filter: brightness(0) invert(1);
}
.toph_web_nav .toph_left_nav .toph_header_nav {
    width: 200px;
    height: 434px;
    background: #ffffff;
    position: absolute;
    left: 0;
    top: 48px;
    box-sizing: border-box;
    padding: 8px 14px;
    visibility: hidden;
    opacity: 0;
    z-index: 10;
    transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.toph_web_nav .toph_left_nav .toph_header_nav .toph_header_nav_box {
    border-bottom: 1px dashed #F0F0F0;
    padding: 16px 0 16px;
    transition: background .2s ease;
    border-radius: 6px;
}
/*.toph_web_nav .toph_left_nav .toph_header_nav .toph_header_nav_box:hover {
    background: linear-gradient(90deg, #FFF5ED, #FFFFFF);
}*/
.toph_web_nav .toph_left_nav .toph_header_nav .toph_header_nav_box:nth-child(4) {
    border: none;
}
.toph_web_nav .toph_left_nav .toph_header_nav .toph_header_nav_box .toph_header_nav_title {
    color: #111111;
    font-size: 15px;
    font-weight: 600;
    padding-right: 14px;
    line-height: 1;
    position: relative;
}
    .toph_web_nav .toph_left_nav .toph_header_nav .toph_header_nav_box .toph_header_nav_title::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 10px;
        background: url(/images/pc/wentigengduo.png) no-repeat center;
        background-size: contain;
    }
.toph_web_nav .toph_left_nav .toph_header_nav .toph_header_nav_box .toph_header_nav_content {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 4px;
}
.toph_web_nav .toph_left_nav .toph_header_nav .toph_header_nav_box .toph_header_nav_content a {
    color: #666666;
    font-size: 14px;
    font-weight: 400;
    border-radius: 4px;
    transition: all .2s ease;
    white-space: nowrap;
    text-align: left;
}
.toph_web_nav .toph_left_nav .toph_header_nav .toph_header_nav_box .toph_header_nav_content a:hover {
    color: #FD5922;
/*    background: #FFF3ED;*/
}

/* ---------- 页面导航 ---------- */
.toph_right_nav {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding-left: 40px;
    height: 48px;
    flex: 1;
}
    .toph_right_nav a {
        height: 48px;
        line-height: 48px;
        padding: 0 22px;
        margin: 0;
        color: #333333;
        font-size: 16px;
        position: relative;
       transition: color .25s ease;
       cursor: pointer;
   }
    .toph_right_nav a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 22px;
        right: 22px;
        height: 3px;
        background: #FD5922;
        transform: scaleX(0);
        transition: transform .4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .toph_right_nav a:hover::after {
        transform: scaleX(1);
    }
   .toph_right_nav a.active::after,
   .toph_right_nav a.toph_current_page::after {
       transform: scaleX(1);
   }
    /* 导航区域 hover 时：取消选中项常驻线，让被悬浮项的线独占 */
    .toph_right_nav.toph_nav_hovering a.active::after,
    .toph_right_nav.toph_nav_hovering a.toph_current_page::after {
        transform: scaleX(0);
    }
        .toph_right_nav a.active {
            color: #FD5922;
            font-weight: bold;
        }
    .toph_current_page {
        color: #FD5922 !important;
        font-weight: bold !important;
    }
.toph_right_nav a:hover {
    color: #FD5922;
}

/* ---------- 头部吸顶（方案2：分两层吸顶） ---------- */
/* 第一层：搜索栏 */
.toph_search_fixed.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px calc(50% - 600px);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 1000;
    box-sizing: border-box;
    animation: tophSlideDown .3s ease-out;
}
/* 第二层：导航栏 */
.toph_web_nav.is-fixed {
    position: fixed;
    left: 0;
    width: 100%;
    padding: 0 calc(50% - 600px);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    z-index: 999;
    box-sizing: border-box;
    animation: tophSlideDown .3s ease-out;
}
/* 吸顶时：收起首页常驻的选号导航，仅 hover 展示 */
.toph_web_nav.is-fixed .toph_left_nav .toph_header_nav {
    visibility: hidden;
    opacity: 0;
}
.toph_web_nav.is-fixed .toph_left_nav:hover .toph_header_nav {
    visibility: visible;
    opacity: 1;
}
/* 吸顶时：左侧选号导航块宽度收缩归零（配合已有 transition 实现平滑收起） */
.toph_web_nav.is-fixed .toph_left_nav {
    width: 0;
    padding-left: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
@keyframes tophSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
