
/* ============ 顶部通栏 ============ */
.top-bar {
    background: var(--c-primary-d);
    color: #d6e4f7;
    font-size: 13px;
    border-bottom: 1px solid #1d4ca0
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px
}

.city-switch {
    position: relative;
    cursor: pointer;
    padding: 6px 10px;
    user-select: none
}

.city-label {
    color: #9bc0f0;
    margin-right: 6px
}

.city-current {
    color: #fff;
    font-weight: bold
}

.city-current .caret {
    font-size: 10px;
    margin-left: 4px;
    display: inline-block;
    transition: transform .2s
}

.city-switch:hover .caret {
    transform: rotate(180deg)
}

.city-dropdown {
    position: absolute;
    left: 0;
    top: 34px;
    background: #fff;
    border: 1px solid var(--c-border);
    box-shadow: 0 6px 16px rgba(20, 60, 120, .15);
    width: 560px;
    padding: 14px;
    display: none;
    z-index: 999
}

.city-switch:hover .city-dropdown {
    display: block
}

.city-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 4px
}

.city-tabs a {
    display: inline-block;
    padding: 5px 10px;
    color: #444;
    font-size: 13px;
    border-radius: 4px
}

.city-tabs a:hover,
.city-tabs a.on {
    background: var(--c-bg);
    color: var(--c-primary-d)
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px
}

.welcome {
    color: #9bc0f0
}

.tel400 {
    color: #ffd54a;
    font-weight: bold
}

.tel400:hover {
    color: #ffe271
}

.tel400 .tel-icon {
    margin-right: 4px
}

.tel400 strong {
    font-size: 15px;
    letter-spacing: .5px
}

/* ============ 头部 Logo + 导航 ============ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    position: sticky;
    top: 0;
    z-index: 100
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px
}

.logo img {
    height: 54px;
    width: auto
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2
}

.logo-text .logo-name {
    display: block;
    font-size: 22px;
    color: var(--c-primary-d);
    font-weight: bold;
    line-height: 1.2
}

.logo-text .logo-slogan {
    display: block;
    font-size: 12px;
    color: var(--c-gray);
    letter-spacing: 1px;
    margin-top: 2px
}

.head-search {
    display: flex;
    border: 2px solid var(--c-primary);
    border-radius: 4px;
    overflow: hidden
}

.head-search-input {
    width: 240px;
    height: 38px;
    border: 0;
    padding: 0 12px;
    font-size: 14px;
    outline: none
}

.head-search-btn {
    border: 0;
    background: var(--c-primary);
    color: #fff;
    padding: 0 18px;
    font-size: 14px;
    cursor: pointer
}

.head-search-btn:hover {
    background: var(--c-primary-d)
}

.main-nav {
    background: var(--c-primary);
    box-shadow: 0 2px 6px rgba(10, 61, 145, .2)
}

.nav-inner {
    height: 50px
}

.nav-list {
    display: flex;
    height: 50px
}

.nav-item {
    position: relative;
    flex: 0 0 auto
}

.nav-link {
    display: block;
    height: 50px;
    line-height: 50px;
    padding: 0 22px;
    color: #fff;
    font-size: 16px;
    font-weight: bold
}

.nav-link:hover,
.nav-link.cur {
    background: var(--c-primary-d);
    color: #fff
}

.nav-sub {
    position: absolute;
    left: 0;
    top: 50px;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--c-border);
    box-shadow: 0 6px 14px rgba(20, 60, 120, .15);
    display: none;
    z-index: 99
}

.nav-item:hover .nav-sub {
    display: block
}

.nav-sub a {
    display: block;
    padding: 10px 16px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px dashed var(--c-border)
}

.nav-sub a:hover {
    background: var(--c-bg);
    color: var(--c-primary-d)
}

/* 汉堡按钮（桌面隐藏，移动端显示） */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border: 1px solid var(--c-border);
    border-radius: 8px
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--c-primary);
    border-radius: 2px;
    transition: transform .25s, opacity .25s
}

/* 汉堡按钮打开状态：三条变 X */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg)
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg)
}

.nav-toggle:active {
    background: rgba(10, 61, 145, .08)
}

/* 移动端电话按钮（桌面隐藏，移动端显示） */
.mobile-tel {
    display: none;
    background: #e74c3c;
    color: #fff;
    border-radius: 24px;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(231, 76, 60, .3)
}

.mobile-tel .tel-icon {
    font-size: 15px
}

.mobile-tel .tel-num {
    font-size: 13px;
    letter-spacing: .3px
}

.mobile-tel:active {
    background: #c0392b
}

/* 覆盖 iOS Safari 默认链接蓝色高亮 */
.mobile-tel,
.mobile-tel:visited,
.mobile-tel:focus,
.mobile-tel:hover,
.mobile-tel:active {
    background: #e74c3c !important;
    color: #fff !important;
    -webkit-tap-highlight-color: transparent
}

/* ============ 面包屑 ============ */
.crumb-bar {
    background: var(--c-bg2);
    border-bottom: 1px solid var(--c-border);
    font-size: 13px;
    color: var(--c-gray)
}

.crumb-bar .wrap {
    height: 38px;
    line-height: 38px
}

.crumb-bar a {
    color: var(--c-gray)
}

.crumb-bar a:hover {
    color: var(--c-primary)
}

@media (max-width:768px) {
    /* 移动端隐藏顶部通栏（欢迎语+400电话+城市切换），简化顶部为一行 header */
    .top-bar {
        display: none
    }

    .top-bar-inner {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 6px 0;
        gap: 6px
    }

    .welcome {
        display: none
    }

    /* 移动端 header：搜索框收起来，汉堡显示 */
    .header-inner {
        align-items: center;
        padding: 10px 0;
        gap: 12px
    }

    .site-header .logo-text .logo-name{
        font-size: 17px !important;
        width: 70px !important;
    }

    .site-header .logo-text .logo-slogan {
        display: none
    }

    /* 移动端简化 logo */
    .site-header .logo img {
        height: 32px;
        width: auto;
        object-fit: contain
    }

    /* logo 缩小 */
    .head-search {
        display: none
    }

    .mobile-tel {
        display: inline-flex;
        flex: 1;
        justify-content: center
    }

    /* 电话占中间空间，居中 */
    .nav-toggle {
        display: flex
    }

    /* main-nav 变成抽屉：默认隐藏，绝对定位全屏宽 */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        background: var(--c-primary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform .25s, opacity .25s, visibility .25s
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible
    }

    .nav-inner {
        height: auto;
        padding: 8px 0
    }

    .nav-list {
        flex-direction: column;
        height: auto
    }

    .nav-item {
        flex: none;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        text-align: center;
    }

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

    .nav-link {
        height: 48px;
        line-height: 48px;
        padding: 0 20px;
        font-size: 16px;
        font-weight: normal
    }

    /* 抽屉内子菜单 */
    .nav-sub {
        position: static;
        top: auto;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, .15);
        padding: 4px 0;
        width: 100%;
        min-width: 0
    }

    .nav-item.active .nav-sub {
        display: block
    }

    .nav-sub a {
        padding: 10px 24px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        color: #fff
    }

    /* 有子菜单的栏目显示下拉箭头 */
    .nav-item:has(.nav-sub)>.nav-link::after {
        content: '▾';
        float: right;
        margin-right: 10px;
        font-size: 14px
    }

    .banner-text h1 {
        font-size: 26px
    }

    .banner-sub {
        font-size: 14px
    }

    .service-grid,
    .adv-grid,
    .case-grid {
        grid-template-columns: 1fr
    }
}