/* 绩效宝页头关键CSS - 内联优化版本 */
/* 此CSS包含页头渲染所需的最小样式集合，用于预加载和内联优化 */

/* 页头基础样式 */
.jx-header, .jx-mobile-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    min-height: 70px;
}

.jx-nav-container, .jx-mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

/* Logo样式 */
.jx-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}

.jx-logo-icon {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 20px;
}

/* 导航链接基础样式 */
.jx-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.jx-nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.jx-nav-link:hover, .jx-nav-link.active {
    color: #2563eb;
    background: #eff6ff;
}

/* 下拉菜单基础样式 */
.jx-dropdown {
    position: relative;
}

.jx-dropdown-toggle {
    background: none;
    border: none;
    color: #374151;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.jx-dropdown-toggle:hover {
    color: #2563eb;
    background: #eff6ff;
}

.jx-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.jx-dropdown.active .jx-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 右侧功能区样式 */
.jx-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.jx-hotline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-weight: 500;
}

.jx-login-btn {
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jx-login-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* 移动端页头基础样式 */
.jx-mobile-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.jx-mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 60px;
}

.jx-mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

.jx-mobile-menu-btn {
    background: none;
    border: none;
    color: #374151;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.jx-mobile-menu-btn:hover {
    background: #f3f4f6;
}

/* 响应式基础 */
@media (max-width: 768px) {
    .jx-header {
        display: none !important;
    }
    
    .jx-mobile-header {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .jx-header {
        display: flex !important;
    }
    
    .jx-mobile-header {
        display: none !important;
    }
}

/* 容器隐藏/显示控制 */
#pc-header-container, #mobile-header-container,
#pc-footer-container, #mobile-footer-container,
#pc-communication-container, #mobile-communication-container {
    display: none;
}

/* 预加载优化样式 */
.header-preload {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}