/* ========================================
   头部导航专用样式
   ======================================== */

/* 顶部服务条 */
.top-service-bar {
    background: #f5f5f5;
    color: #000000;
    padding: 8px 0;
    font-size: 14px;
}

.top-service-container {
    width: 72%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-items {
    flex: 1;
}

.service-label {
    color: #111110;
    font-weight: 500;
}

.service-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.service-links a {
    color: #111110;
    text-decoration: none;
    transition: color 0.3s;
}

.service-links a:hover {
    color: #111110;
}

.service-links .more-link {
    color: #111110;
}

.service-links span {
    color: #666;
}

/* 主头部 */
.header {
    background: #fff;
    color: #333;
    position: relative;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 头部主内容区 */
.header-main {
    background: #fff;
    color: #333;
    padding: 25px 0;  /* 头部主内容区空白高度 */
    border-bottom: 1px solid #eee;
}

.header-container {
    width: 72%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 公司信息 */
.company-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    max-height: 80px;
}

.company-logo {
    display: block;
    height: auto;
    width: auto;
    max-height: 80px;
    max-width: 500px;
}

.company-name {
    display: none;
}

.company-english {
    display: none;
}

/* 经验展示 */
.experience-section {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.experience-badge {
    display: flex;
    align-items: baseline;
    justify-content: center;
    background: linear-gradient(135deg, #f5a623 0%, #ff8c00 100%);
    padding: 8px 20px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.experience-number {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

.experience-unit {
    font-size: 18px;
    color: #fff;
    margin-left: 4px;
}

.experience-desc {
    font-size: 13px;
    color: #666;
}

/* 联系方式 */
.contact-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    background: transparent;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.phone-mobile {
    font-size: 14px;
    color: #666;
}

.contact-link {
    background: linear-gradient(135deg, #f5a623 0%, #ff8c00 100%);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}

.contact-link:hover {
    background: #ff8c00;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 0%, #ff6600 0%);
    padding: 0;
}

.nav-container {
    width: 72%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

/* 导航菜单列表 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.nav-menu li {
    position: relative;
}

/* 菜单项分割线 */
.nav-menu li:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* 导航菜单文字 */
.nav-menu li a {
    display: block;
    padding: 16px 40px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    background: transparent;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: transparent;
    color: #e6cf05;
    
}

.nav-menu li:first-child a {
    border-radius: 4px 0 0 4px;
}

.nav-menu li:last-child a {
    border-radius: 0 4px 4px 0;
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    left: 0;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .top-service-container,
    .header-container,
    .nav-container {
        width: 100%;
        padding: 0 8px;
    }

    .header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .company-info,
    .experience-section,
    .contact-section {
        width: 100%;
        justify-content: center;
    }

    .contact-section {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        align-items: center;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
        z-index: 1002;
        padding-top: 50px;
        padding-bottom: 20px;
        overflow-y: auto;
        max-height: 100vh;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        text-align: center;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .service-links {
        display: none;
    }

    .top-service-container {
        justify-content: center;
    }
}

/* ========================================
   移动端专属顶部
   ======================================== */
.mobile-top-header {
    display: none;
    background: white;
    color: #333;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    max-width: 100%;
}

.mobile-top-left {
    display: flex;
    align-items: center;
}

.mobile-logo {
    display: block;
    height: auto;
    width: auto;
    max-height: 45px;
    max-width: 240px;
}

.mobile-company-name {
    display: none;
}

.mobile-top-slogan {
    display: none;
}

.mobile-top-right {
    flex-shrink: 0;
}

/* 汉堡菜单按钮 */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #2c5f7c;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover span {
    background: #3d7a9e;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 4px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -4px);
}

/* ========================================
   响应式 - 移动端隐藏电脑端内容，显示移动端顶部
   ======================================== */
@media (max-width: 768px) {
    /* 隐藏电脑端顶部 */
    .top-service-bar {
        display: none !important;
    }

    .header-main {
        display: none !important;
    }

    /* 显示移动端顶部 */
    .mobile-top-header {
        display: block;
    }
}

@media (max-width: 576px) {
    .company-name {
        font-size: 20px;
    }

    .experience-number {
        font-size: 28px;
    }

    .phone-number {
        font-size: 16px;
    }
}