﻿/* 原有样式完整保留 (未改动任何布局/颜色/尺寸) */
.header-white {
    background: url('../image/logo_bj.jpg') no-repeat center;
    color: #1e2f3e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* 蓝色导航条区 */
.header-blue-nav {
    background: linear-gradient(95deg, #f07e04 0%, #e09502 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* 统一内容容器：max-width:84%; margin:0 auto; width:100% */
.container {
    max-width: 84%;
    margin: 0 auto;
    width: 100%;
}

/* 白色区域内部布局 */
.white-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px 0;
    gap: 24px;
}

/* 左侧品牌+H1描述组 */
.brand-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    row-gap: 14px;
}

/* H1 背景图 logo 样式 */
.logo-h1 {
    margin: 0;
    padding: 0;
    font-size: 0;
    width: 230px;
    height: 64px;
    background: url('../image/logo.png') no-repeat center;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    text-indent: -9999px;
    white-space: nowrap;
    overflow: hidden;
}

/* 右侧描述区: 上下排列，分别18px/16px */
.desc-wrapper {
    border-left: solid 1px #bababa;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.desc-line1 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    padding: 5px 10;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.desc-line2 {
    font-size: 16px;
    color: #2c5275;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 6px;
}

.desc-line2 span {
    padding: 3px 0;
    font-size: 15px;
    color: #666;
}

/* 全新热线卡片: 左侧电话图标，右侧内容区上下排列 */
.hotline-card-new {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 48px;
    padding: 8px 24px 8px 20px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
    min-width: 250px;
}

.hotline-card-new:hover {
    background: #fafffa;
    border-color: #f07e04;
    transform: translateY(-1px);
}

.hotline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-icon-big {
    font-size: 1.5rem;
    color: #0a5c8e;
}

.hotline-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.hotline-sub-text {
    color: #666;
}

.hotline-number-large {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0a4b73;
    text-decoration: none;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* 蓝色导航区域 (原有导航列表样式) */
.blue-nav-area {
    padding: 6px 0;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 80px;
    list-style: none;
    padding: 10px 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-block;
    padding: 8px 24px;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    background: transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
    backdrop-filter: blur(2px);
}

/* 响应式处理 (原样保留, 追加移动端菜单改造但不影响原有视觉效果) */
@media (max-width: 1100px) {
    .container {
        max-width: 92%;
    }
    .logo-h1 {
        width: 200px;
        height: 56px;
    }
    .desc-line1 {
        font-size: 17px;
    }
    .desc-line2 span {
        font-size: 14px;
    }
}

@media (max-width: 860px) {
    .container {
        max-width: 95%;
    }
    .white-top {
        flex-direction: column;
        align-items: stretch;
    }
    .brand-group {
        justify-content: space-between;
    }
    .desc-wrapper {
        align-items: flex-start;
    }
    .desc-line2 {
        justify-content: flex-start;
    }
    /* 注意：原有的 .nav-list 居中对齐样式保留，但在移动端我们会通过新组件隐藏它，额外功能见下方 */
    .nav-list {
        justify-content: center;
    }
    .nav-link {
        padding: 6px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 650px) {
    .brand-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .logo-h1 {
        width: 180px;
        height: 50px;
    }
    .desc-line1 {
        font-size: 15px;
    }
    .desc-line2 span {
        font-size: 13px;
        padding: 2px 12px;
    }
    .nav-link {
        padding: 5px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .logo-h1 {
        width: 160px;
        height: 44px;
    }
    .desc-line1 {
        font-size: 14px;
        padding: 2px 12px;
    }
    .desc-line2 span {
        font-size: 12px;
        padding: 2px 10px;
    }
    .nav-link {
        padding: 5px 10px;
        font-size: 0.72rem;
    }
}

@media (min-width: 1600px) {
    .logo-h1 {
        width: 210px;
        height: 76px;
    }
    .desc-line1 {
        font-size: 20px;
    }
    .desc-line2 span {
        font-size: 17px;
    }
    .nav-link {
        padding: 10px 32px;
        font-size: 1.05rem;
    }
    .hotline-card-new {
        padding: 10px 20px;
    }
    .hotline-number-large {
        font-size: 1.5rem;
    }
    .hotline-sub-text {
        font-size: 0.85rem;
    }
    .phone-icon-big {
        font-size: 1.2rem;
    }
}

a {
    text-decoration: none;
}

/* ---------- 新增移动端专用样式 (完全保留原有布局，仅手机屏幕下隐藏导航 + 显示汉堡菜单) ---------- */

/* 汉堡菜单按钮容器 (默认在PC端完全隐藏，手机端显示) */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 40px;
    transition: all 0.2s ease;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #2c5275;
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.2s;
}

/* 手机端专属侧滑导航栏 (全屏底部弹出/右侧抽屉效果，点击任意链接即可关闭) */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease;
}

.mobile-nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 20px 40px 20px;
}

.mobile-nav-overlay.active .mobile-nav-container {
    transform: translateX(0);
}

/* 手机导航头部加品牌缩略/关闭按钮 */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e4e8;
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.mobile-nav-header span {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c7a2d, #1c5e1d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.close-mobile-nav {
    background: #f0f2f5;
    border: none;
    font-size: 26px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: 0.2s;
}

.close-mobile-nav:hover {
    background: #e2e6ea;
}

/* 手机导航菜单列表 */
.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-list li {
    width: 100%;
}

.mobile-nav-list .mobile-nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e2f3e;
    background: #ffffff;
    border-radius: 60px;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.3px;
    border: 1px solid #e9ecef;
}

.mobile-nav-list .mobile-nav-link:hover,
.mobile-nav-list .mobile-nav-link:active {
    background: #eef5ea;
    color: #2a7a2c;
    border-color: #bcddaf;
    transform: translateX(5px);
}

/* 热线在手机菜单内的简洁显示 */
.mobile-hotline-simple {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-hotline-simple .mini-phone-icon {
    font-size: 1.5rem;
}

.mobile-hotline-simple a {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a4b73;
    text-decoration: none;
}
@media (max-width: 860px) {
    .header-blue-nav .blue-nav-area .nav-list {
        display: none !important;
    }
    .header-blue-nav {
        position: relative;
    }
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.9);
    }
    .mobile-menu-btn span {
        background-color: #2a6b2f;
        width: 26px;
        height: 3px;
        margin: 4px 0;
    }
    .white-top {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .brand-group {
        flex: 1;
    }
    .mobile-menu-btn {
        margin-left: auto;
        order: 2;
    }
    .hotline-card-new {
        order: 3;
    }
}
@media (max-width: 650px) {
    .hotline-card-new {
        display: none;  
    }
}

@media (max-width: 480px) {
    .hotline-card-new {
        display: none;
    }
}
@media (min-width: 861px) {
    .mobile-menu-btn,
    .mobile-nav-overlay,
    .mobile-nav-container {
        display: none;
    }
    .mobile-nav-overlay {
        display: none;
    }
}

body.menu-open {
    overflow: hidden;
}