/* 使用基础样式文件中定义的变量 */
/* 页头特定变量 */
:root {
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--dark);
    background-color: #f9fafb;
}

/* 页头容器 */
.jx-header {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100; /* 提高z-index确保页头始终在最顶层 */
    transition: var(--transition);
}

/* 导航容器 */
.jx-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    gap: 40px;
}

/* Logo 样式 */
.jx-logo {
    text-decoration: none;
    font-weight: 800;
    font-size: 30px;
    color: var(--primary);
    transition: color var(--transition);
    flex-shrink: 0;
    min-width: 140px;
    text-align: left;
    margin-right: 8px;
}

.jx-logo:hover {
    color: var(--primary-dark);
}

.jx-logo span {
    color: var(--secondary);
}

/* 主导航 */
.jx-nav-desktop {
    flex: 1;
    min-width: 0;
    margin: 0 40px;
    display: flex;
    justify-content: center;
}

.jx-nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
}

.jx-nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.jx-nav-link:hover {
    color: var(--primary);
}

.jx-nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.jx-nav-link:hover:after {
    width: 100%;
}

.jx-nav-link.active,
.jx-dropdown-toggle.active {
    color: var(--primary);
    font-weight: 600;
}

.jx-nav-link.active:after {
    width: 100%;
}

.jx-nav-link i {
    font-size: 14px;
    color: var(--gray);
    transition: var(--transition);
}

.jx-nav-link:hover i {
    color: var(--primary);
}

/* 右侧功能区 */
.jx-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    min-width: 220px;
    justify-content: flex-end;
    margin-left: 8px;
}

.jx-hotline,
.jx-login-btn {
    white-space: nowrap;
}

.jx-hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.jx-hotline i {
    color: var(--primary);
}

.jx-hotline:hover {
    background: rgba(37, 99, 235, 0.05);
}

.jx-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
    letter-spacing: 0.5px;
}

.jx-login-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.4);
}

/* 移除PC端页头元素的焦点描边框 */
.jx-header *:focus {
    outline: none !important;
    box-shadow: none !important;
}

.jx-nav-link:focus,
.jx-nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.jx-dropdown-toggle:focus,
.jx-dropdown-toggle:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.jx-hotline:focus,
.jx-hotline:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.jx-login-btn:focus,
.jx-login-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* 下拉菜单 */
.jx-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.jx-dropdown-toggle {
    background: none;
    border: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    transition: var(--transition);
}

.jx-dropdown-toggle:hover {
    color: var(--primary);
}

.jx-dropdown-toggle i {
    font-size: 14px;
    color: var(--gray);
    transition: var(--transition);
}

.jx-dropdown-toggle:hover i {
    color: var(--primary);
}

.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;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1101; /* 提高z-index确保下拉菜单在hero-content之上 */
    overflow: hidden;
}

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

.jx-dropdown-content {
    display: flex;
    padding: 24px;
    gap: 30px;
}

.jx-product-section {
    flex: 1;
}

.jx-product-section h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}

.jx-product-list {
    list-style: none;
}

.jx-product-list li {
    margin-bottom: 12px;
}

.jx-product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 14px;
}

.jx-product-link i {
    width: 20px;
    text-align: center;
    color: var(--secondary);
    font-size: 16px;
    transition: var(--transition);
}

.jx-product-link:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

.jx-product-link:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 1366px) {
    .jx-nav-container {
        max-width: 1200px;
        padding: 0 28px;
        gap: 32px;
    }
    
    .jx-nav-desktop {
        margin: 0 32px;
    }
    
    .jx-nav-links {
        gap: 28px;
    }
    
    .jx-nav-right {
        min-width: 200px;
        gap: 18px;
    }
}

@media (max-width: 1024px) {
    .jx-nav-container {
        max-width: 960px;
        padding: 0 24px;
        gap: 24px;
    }
    
    .jx-nav-desktop {
        margin: 0 24px;
    }
    
    .jx-nav-links {
        gap: 20px;
    }
    
    .jx-nav-right {
        min-width: 180px;
        gap: 15px;
    }
    
    .jx-dropdown-menu {
        width: 500px;
    }
}

@media (max-width: 768px) {
    .jx-nav-container {
        padding: 0 16px;
        gap: 16px;
    }
    
    .jx-logo {
        min-width: 120px;
        font-size: 26px;
    }
    
    .jx-nav-links {
        gap: 16px;
    }
    
    .jx-nav-right {
        min-width: 160px;
        gap: 12px;
    }
    
    .jx-nav-links {
        display: none;
    }
    
    .jx-mobile-toggle {
        display: flex;
    }
}

/* 示例内容样式 */
.demo-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.demo-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
    border-left: 4px solid var(--secondary);
    padding-left: 12px;
}

.demo-section p {
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.7;
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.demo-feature {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #dbeafe;
    transition: var(--transition);
}

.demo-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.demo-feature i {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 12px;
}

.demo-feature span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.demo-feature p {
    font-size: 14px;
    color: var(--gray);
    margin-top: 8px;
}