/* ========== 合并的CSS文件 ========== */
/* 关键修复：防止页面跳动 */
body {
    padding-top: 116px !important;
    min-height: 100vh;
    transition: padding-top 0.3s ease;
}

/* 移动端调整 */
@media (max-width: 768px) {
    body {
        padding-top: 66px !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 0 !important;
    }
}

/* ========== 基础通用样式 ========== */
.clearfix::after { content: ''; display: table; clear: both; }
.pr { position: relative; }
.fl { float: left; }
.fr { float: right; }

/* ========== 头部固定区域 ========== */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* 重要：让header-fixed高度自适应 */
    height: auto;
    transition: height 0.3s ease;
}

/* ========== 顶部栏隐藏效果 ========== */
.top-bar {
    transition: all 0.3s ease;
    transform-origin: top;
    will-change: transform, opacity, height;
}

.main-header {
    transition: transform 0.3s ease;
}

/* 当顶部栏隐藏时的状态 */
.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    height: 0 !important;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* ========== 顶部栏样式 ========== */
.top {
    background: #f5f5f5;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px #ececec solid;
    width: 100%;
}

.maut1200 {
    width: 1200px;
    margin: 0 auto;
}

.top-cs {
    position: relative;
    padding-left: 24px;
    line-height: 40px;
}

.pl10 { padding-left: 10px; }

.toprt-pd {
    padding-right: 200px;
    z-index: 2;
    white-space: nowrap;
    position: relative;
}

.telrt {
    position: absolute;
    right: 10px;
    top: 2px;
    padding-left: 24px;
    font-size: 20px;
    font-weight: bold;
    color: #666;
}

.a_a {
    color: #aaa;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s;
    pointer-events: auto !important;
}

.a_a:hover {
    color: #1890ff;
}

.atop_a {
    color: #aaa !important;
    padding: 0px 15px;
}

.atop_a:hover {
    color: #1890ff !important;
}

/* ========== 图标样式 ========== */
.top-cs i,
.telrt i {
    display: inline-block !important;
    vertical-align: middle;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.top-cs i {
    font-size: 22px;
    color: #aaa;
    margin-right: 5px;
}

.telrt i {
    font-size: 20px;
    color: #666;
    margin-right: 5px;
}

/* icomoon 图标基础样式 */
.icon-m14, .icon-m12 {
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
}

/* ========== 主导航栏样式 ========== */
.header {
    background: white;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.logolf {
    float: left !important;
    margin-right: 40px !important;
}

.logolf img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* 主导航菜单容器 */
.headnav-container {
    float: right !important;
    width: auto !important;
    margin-right: 0 !important;
    position: relative !important;
}

.headnav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.nav-item {
    position: relative;
    margin: 0;
}

.nav-item a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-item a:hover,
.nav-item.hdn-hov a {
    color: #1890ff;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #1890ff;
    transition: width 0.3s;
}

.nav-item a:hover::after,
.nav-item.hdn-hov a::after {
    width: 70%;
}

/* 下拉箭头样式 */
.nav-item.has-dropdown .dropdown-icon {
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 6px solid #999 !important;
    margin-left: 5px !important;
    vertical-align: middle !important;
    transition: transform 0.3s !important;
}

.nav-item.has-dropdown:hover .dropdown-icon {
    border-top-color: #1890ff !important;
    transform: rotate(180deg) !important;
}

/* ========== 下拉菜单固定容器 ========== */
.dropdown-fixed-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 1001;
    pointer-events: none;
}

/* 下拉菜单基础样式 */
.dropdown-fixed-menu {
    position: absolute;
    top: 5px;
    left: 0;
    width: 800px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #f0f0f0;
    pointer-events: none;
}

/* 激活状态 */
.dropdown-fixed-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* 下拉内容布局 */
.dropdown-fixed-content {
    display: flex;
    height: 380px;
    padding: 0;
    margin: 0;
}

/* 左侧栏 */
.dropdown-fixed-left {
    flex: 0 0 28%;
    background: #f8f9fa;
    padding: 25px 20px;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
}

.submenu-header {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #1890ff;
}

.level2-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.level2-item {
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.level2-item:last-child {
    margin-bottom: 0;
}

.level2-item.active {
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.level2-link {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px;
    transition: all 0.3s;
    position: relative;
}

.level2-item.active .level2-link {
    color: #1890ff;
    background: white;
}

.level2-item.active .level2-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1890ff;
}

/* 右侧栏 */
.dropdown-fixed-right {
    flex: 0 0 72%;
    padding: 25px 20px;
    background: white;
    overflow-y: auto;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border: none;
    padding-bottom: 0;
}

.current-category {
    font-size: 16px;
    font-weight: 600;
    color: #1890ff;
    text-decoration: none;
    border: none;
}

.view-all {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.view-all:hover {
    color: #1890ff;
}

/* 文章标题区域 */
.article-titles {
    line-height: 1.8;
    font-size: 14px;
    min-height: 200px;
}

.article-titles a {
    color: #666;
    text-decoration: none;
    margin: 0 3px;
    padding: 2px 0;
    display: inline-block;
    white-space: nowrap;
}

.article-titles a:hover {
    color: #1890ff;
    text-decoration: underline;
}

.title-separator {
    color: #ddd;
    margin: 0 10px;
    font-size: 12px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .maut1200 {
        width: 100%;
        padding: 0 15px;
    }
    
    .dropdown-fixed-menu {
        width: 700px;
    }
    
    .dropdown-fixed-content {
        height: 360px;
    }
    
    .dropdown-fixed-left {
        flex: 0 0 30%;
        padding: 25px 15px;
    }
    
    .dropdown-fixed-right {
        flex: 0 0 70%;
        padding: 25px 15px;
    }
}

@media (max-width: 992px) {
    .dropdown-fixed-container,
    .dropdown-fixed-menu {
        display: none;
    }
    
    .header-fixed {
        position: relative;
        box-shadow: none;
    }
    
    body {
        padding-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .top {
        display: none;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .logolf {
        width: 80px;
        margin-right: 15px;
    }
    
    .logolf img {
        max-height: 35px;
    }
    
    .nav-item a {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    body {
        padding-top: 66px !important;
    }
}

@media (max-width: 480px) {
    .header-fixed {
        position: relative;
    }
    
    body {
        padding-top: 0 !important;
    }
}