/* 搜索框通用样式 */
        .search-container {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: relative;}

        .search-form {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 0;}

        .search-label {
        font-size: 12px;
        white-space: nowrap;
        color: #333;
        font-weight: normal;
        margin: 0;}

        .search-input-container {
        position: relative;
        display: inline-block;}

        .search-input {
        height: 32px;
        padding: 0 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        min-width: 200px;
        transition: all 0.3s ease;
        box-sizing: border-box;
        font-family: inherit;}

        .search-input:focus {
        outline: none;
        border-color: #1890ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);}

        .search-button {
        height: 32px;
        padding: 0 16px;
        background-color: #1890ff;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        white-space: nowrap;
        font-family: inherit;
        line-height: 1;}

        .search-button:hover {
        background-color: #40a9ff;}

        .search-button:active {
        background-color: #096dd9;}

        .search-button-image {
        height: 32px;
        border: none;
        cursor: pointer;
        vertical-align: middle;
        background: none;
        padding: 0;}

        .search-button-image img {
        height: 100%;
        vertical-align: middle;}

        /* 隐藏字段 */
        .search-hidden-fields {
        display: none;}

        /* 自动完成容器 */
        .search-autocomplete-wrapper {
        position: relative;
        display: inline-block;
        vertical-align: middle;}

        .search-autocomplete-span {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        pointer-events: none;}

        .search-autocomplete-iframe {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        display: none;
        border: none;
        background: transparent;}

        /* 响应式设计 */
        @media (max-width: 768px) {
        .search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;}

        .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;}

        .search-input {
        width: 100%;}

        .search-button {
        width: 100%;}
        }

        /* 紧凑版本 */
        .search-form.compact {
        gap: 6px;}

        .search-form.compact .search-input {
        height: 28px;
        padding: 0 10px;
        min-width: 160px;}

        .search-form.compact .search-button {
        height: 28px;
        padding: 0 12px;
        font-size: 13px;}

        /* 大尺寸版本 */
        .search-form.large {
        gap: 12px;}

        .search-form.large .search-input {
        height: 40px;
        padding: 0 16px;
        font-size: 16px;
        min-width: 240px;}

        .search-form.large .search-button {
        height: 40px;
        padding: 0 20px;
        font-size: 16px;}
/* ========== MENU.CSS - 导航专用样式（无移动端折叠） ========== */

/* 1. 导航容器重置 */
.menu-content,
.menu-content .menu-list,
.menu-content .menu-item,
.menu-content .submenu.level2,
.menu-content .submenu.level3 {
overflow: visible !important;
box-sizing: border-box;
position: relative;
z-index: auto;}

/* 2. 导航菜单外层容器 - 移除背景色，由.navbar-wrapper提供 */
.menu-content {
width: 100%;
position: relative;
z-index: 1000;
min-height: 60px;}

/* 3. 导航包装器 - 可选 */
.menu-wrapper {
position: relative;
height: 60px;
width: 100%;
overflow: visible !important;}

/* 4. 导航列表 - 核心样式 */
.menu-content .menu-list {
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
display: flex !important;
justify-content: flex-start; /* 保持左对齐，如果需要居中可改为center */
align-items: center;
background: transparent !important;
white-space: nowrap;
height: 60px !important;
width: 100%;
position: relative;
z-index: 100;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;}

/* 隐藏滚动条 */
.menu-content .menu-list::-webkit-scrollbar {
display: none !important;}

/* 5. 一级菜单项 */
.menu-content .menu-item {
position: relative !important;
background: transparent !important;
flex-shrink: 0;
height: 100% !important;
display: flex !important;
align-items: center;
margin: 0 !important;
padding: 0 !important;}

/* 6. 一级菜单链接 */
.menu-content .menu-link {
display: flex !important;
align-items: center !important;
height: 100% !important;
padding: 0 22px !important;
color: white !important;
text-decoration: none !important;
font-size: 15px !important;
font-weight: 500 !important;
white-space: nowrap !important;
transition: background-color 0.3s !important;
position: relative !important;
border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
line-height: 1 !important;}

.menu-content .menu-link:hover {
background-color: rgba(255, 255, 255, 0.12) !important;}

.menu-content .menu-item.active .menu-link {
background-color: rgba(255, 255, 255, 0.15) !important;
font-weight: 600 !important;}

.menu-content .menu-item.active .menu-link::after {
content: "" !important;
position: absolute !important;
bottom: 0 !important;
left: 0 !important;
right: 0 !important;
height: 3px !important;
background-color: #d4a55e !important;
box-shadow: 0 -2px 5px rgba(212, 165, 94, 0.3) !important;}

/* 7. 下拉箭头 */
.menu-content .menu-item:has(.submenu.level2) > .menu-link::after,
.menu-content .menu-item.has-dropdown > .menu-link::after {
content: "›" !important;
position: absolute !important;
right: 10px !important;
top: 50% !important;
transform: translateY(-50%) rotate(90deg) !important;
font-size: 16px !important;
color: rgba(255, 255, 255, 0.7) !important;}

/* 8. 二级菜单 */
.menu-content .submenu.level2 {
position: absolute !important;
top: 100% !important;
left: 0 !important;
background-color: white !important;
min-width: 210px !important;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
border-radius: 0 0 8px 8px !important;
opacity: 0 !important;
visibility: hidden !important;
transform: translateY(10px) !important;
transition: all 0.3s ease !important;
z-index: 9999 !important;
border-top: 3px solid #d4a55e !important;
padding: 10px 0 !important;
margin: 0 !important;
pointer-events: none;}

.menu-content .menu-item:hover .submenu.level2 {
opacity: 1 !important;
visibility: visible !important;
transform: translateY(0) !important;
pointer-events: auto;}

/* 9. 二级菜单项 */
.menu-content .submenu-item {
position: relative !important;}

.menu-content .submenu-link {
display: block !important;
padding: 12px 22px !important;
color: #2c3e50 !important;
text-decoration: none !important;
font-size: 14px !important;
transition: all 0.2s !important;
border-bottom: 1px solid #e1e8f2 !important;
background: white !important;
white-space: nowrap !important;}

.menu-content .submenu-link:hover {
background-color: #eef5ff !important;
color: #1a4d9c !important;
padding-left: 25px !important;}

/* 10. 三级菜单箭头 */
.menu-content .submenu-item.has-children .submenu-link::after {
content: "›" !important;
position: absolute !important;
right: 15px !important;
top: 50% !important;
transform: translateY(-50%) !important;
color: #666 !important;
font-size: 14px !important;}

/* 11. 三级菜单 */
.menu-content .submenu.level3 {
position: absolute !important;
left: 100% !important;
top: 0 !important;
background-color: white !important;
min-width: 200px !important;
box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.12) !important;
border-radius: 0 8px 8px 8px !important;
opacity: 0 !important;
visibility: hidden !important;
transform: translateX(-10px) !important;
transition: all 0.3s ease !important;
z-index: 10000 !important;
border-left: 3px solid #d4a55e !important;
padding: 10px 0 !important;
pointer-events: none;}

.menu-content .submenu-item.has-children:hover .submenu.level3 {
opacity: 1 !important;
visibility: visible !important;
transform: translateX(0) !important;
pointer-events: auto;}

/* 12. 三级菜单链接 */
.menu-content .level3-link {
display: block !important;
padding: 10px 20px !important;
color: #2c3e50 !important;
text-decoration: none !important;
font-size: 13px !important;
transition: all 0.2s !important;
white-space: nowrap !important;}

.menu-content .level3-link:hover {
background-color: #eef5ff !important;
color: #1a4d9c !important;
padding-left: 25px !important;}

/* 13. 平板设备横向滚动支持 */
@media screen and (max-width: 1024px) {
.menu-wrapper {
overflow-x: auto !important;
overflow-y: visible !important;
-webkit-overflow-scrolling: touch !important;}

.menu-content .menu-list {
min-width: max-content !important;}

.menu-content .menu-list::-webkit-scrollbar {
display: none !important;}
}

/* 14. 如果需要菜单项居中显示，添加此样式 */
.menu-content.center-nav .menu-list {
justify-content: center !important;}
/* 新闻分类样式 - 适配JSP模板 */
.category-group {
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;}

.category-group:last-child {
    border-bottom: none;}

.category-group.active-group {
    background-color: #f8fafd;
    border-left: 3px solid var(--edu-blue, #1a4d9c);}

/* 主菜单项 */
.category-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    background-color: #fff;}

.category-item:hover {
    background-color: #f5f7fa;
    color: var(--edu-blue, #1a4d9c);
    padding-left: 25px;}

.category-item.active {
    background-color: var(--light-bg, #eef5ff);
    color: var(--edu-blue, #1a4d9c);
    font-weight: 600;}

.category-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--accent-gold, #d4a55e);}

/* 箭头图标 */
.category-item i {
    font-size: 12px;
    margin-right: 10px;
    transition: transform 0.3s ease;
    color: #999;}

.category-item:hover i,
.category-item.active i {
    color: var(--edu-blue, #1a4d9c);}

.category-item.has-submenu i {
    transform: rotate(90deg);}

.category-item.has-submenu:hover i,
.category-group.active-group .category-item.has-submenu i {
    transform: rotate(180deg);}

/* 菜单标题 */
.category-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;}

/* 数量徽章 */
.category-item .badge {
    display: inline-block;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background-color: #e6efff;
    color: var(--tech-blue, #2c7dc0);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 20px;
    margin-left: 8px;}

.category-item.active .badge {
    background-color: var(--edu-blue, #1a4d9c);
    color: white;}

.category-item:hover .badge {
    background-color: var(--tech-blue, #2c7dc0);
    color: white;}

/* 二级子菜单 */
.sub-category-list {
    display: none;
    background-color: #f9fbfe;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    animation: fadeIn 0.3s ease;}

.category-group.active-group .sub-category-list,
.category-item.has-submenu:hover + .sub-category-list,
.category-group:hover .sub-category-list {
    display: block;}

/* 二级子菜单项 */
.sub-category-item {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 45px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;}

.sub-category-item:hover {
    background-color: #f0f5ff;
    color: var(--edu-blue, #1a4d9c);
    padding-left: 50px;}

.sub-category-item.active {
    background-color: #e6f0ff;
    color: var(--edu-blue, #1a4d9c);
    font-weight: 500;}

.sub-category-item.active::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold, #d4a55e);
    border-radius: 50%;}

/* 二级菜单图标 */
.sub-category-item i {
    font-size: 8px;
    margin-right: 10px;
    color: #ccc;
    transition: color 0.3s ease;}

.sub-category-item:hover i,
.sub-category-item.active i {
    color: var(--edu-blue, #1a4d9c);}

/* 二级菜单标题 */
.sub-category-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);}
    to {
        opacity: 1;
        transform: translateY(0);}
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-item {
        padding: 12px 15px;
        font-size: 14px;}
    
    .category-item:hover {
        padding-left: 20px;}
    
    .sub-category-item {
        padding: 8px 15px 8px 40px;}
    
    .sub-category-item:hover {
        padding-left: 45px;}
    
    .category-item .badge {
        min-width: 20px;
        height: 18px;
        font-size: 11px;
        line-height: 18px;}
}

/* 分类面板整体样式 */
.category-panel {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e1e8f2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);}

.category-header {
    background: linear-gradient(90deg, var(--edu-blue, #1a4d9c), var(--tech-blue, #2c7dc0));
    color: white;
    padding: 18px 20px;
    border-radius: 8px 8px 0 0;}

.category-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;}

.category-header .category-icon {
    margin-right: 10px;
    font-size: 20px;}

.category-list-container {
    max-height: 500px;
    overflow-y: auto;}

/* 滚动条美化 */
.category-list-container::-webkit-scrollbar {
    width: 6px;}

.category-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;}

.category-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;}

.category-list-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;}

/* 当没有二级菜单时的样式优化 */
.category-item:not(.has-submenu) i {
    opacity: 0.5;
    font-size: 10px;}

/* 鼠标悬停指示器 */
.category-item.has-submenu::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #999;
    transition: transform 0.3s ease;}

.category-item.has-submenu:hover::after {
    border-top-color: var(--edu-blue, #1a4d9c);}

.category-group.active-group .category-item.has-submenu::after {
    transform: translateY(-50%) rotate(180deg);}

/* 活跃状态的视觉效果增强 */
.category-group.active-group {
    box-shadow: 0 2px 8px rgba(26, 77, 156, 0.1);}

.category-item.active:hover {
    background-color: #e6f0ff;}
/* 新闻列表项专用样式 */
:root {
    --edu-blue: #1a4d9c;
    --tech-blue: #2c7dc0;
    --herbal-green: #2e8b57;
    --accent-gold: #d4a55e;
    --light-bg: #eef5ff;
    --border-color: #e1e8f2;
    --text-dark: #2c3e50;
    --text-light: #666;}

/* 文章列表项容器 */
.article-list-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;}

.article-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: var(--tech-blue);}

/* 图片区域 - 固定宽度，防止被挤压 */
.article-image-wrapper {
    flex: 0 0 200px; /* 固定宽度200px，不会伸缩 */
    width: 200px; /* 明确指定宽度 */
    max-width: 200px; /* 最大宽度 */
    min-width: 200px; /* 最小宽度 */
    position: relative;
    overflow: hidden;
    height: 150px; /* 固定高度 */
    background-color: #f5f5f5;}

/* 确保图片完全填充容器，不会变形 */
.article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例，裁剪填充 */
    display: block;
    transition: transform 0.5s;}

.article-list-item:hover .article-image-wrapper img {
    transform: scale(1.05);}

/* 图片加载失败时的占位符 */
.article-image-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f0f0f0 25%, #f8f8f8 25%, #f8f8f8 50%, #f0f0f0 50%, #f0f0f0 75%, #f8f8f8 75%, #f8f8f8);
    background-size: 20px 20px;
    z-index: 1;}

.article-image-wrapper img {
    position: relative;
    z-index: 2;}

.article-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    border-radius: 4px;
    z-index: 3;}

.article-tag-badge.important {
    background-color: #ff6b6b;}

/* 内容区域 - 使用flex布局防止被撑开 */
.article-content-wrapper {
    flex: 1;
    min-width: 0; /* 关键：防止内容区域被撑开 */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 标题和元信息分别占据两端 */
    box-sizing: border-box;}

/* 标题区域 - 确保不会撑开容器 */
.article-title-main {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;}

.article-title-main a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;}

.article-title-main a:hover {
    color: var(--edu-blue);}

/* 摘要区域 - 限制高度和行数 */
.article-excerpt-text {
    flex: 0 0 auto; /* 不伸缩，固定高度 */
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 15px;
    max-height: 42px; /* 限制为2行高度 (14px * 1.6 * 2) */
    overflow: hidden;
    position: relative;}

/* 多行文本截断 */
.article-excerpt-text.truncate-multiline {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 显示2行 */
    -webkit-box-orient: vertical;
    white-space: normal;}

.article-excerpt-text.truncate-singleline {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;}

/* 元信息区域 - 固定在底部 */
.article-meta-info {
    display: flex;
    flex-wrap: nowrap; /* 禁止换行 */
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    width: 100%;
    margin-top: auto;}

.meta-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0; /* 防止被压缩 */
    white-space: nowrap; /* 防止文字换行 */
    max-width: 50%; /* 限制最大宽度 */
    overflow: hidden;
    text-overflow: ellipsis;}

.meta-icon {
    font-size: 14px;
    flex-shrink: 0;}

.read-more-link {
    color: var(--tech-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;}

.read-more-link:hover {
    color: var(--edu-blue);}

.arrow-icon {
    font-size: 12px;}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-list-item {
        flex-direction: column;}
    
    /* 移动端图片宽度100% */
    .article-image-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        flex: 0 0 auto; /* 移除固定flex值 */
        height: 180px;}
    
    .article-content-wrapper {
        min-height: auto;
        padding: 15px;}
    
    .article-title-main {
        font-size: 16px;}
    
    .article-excerpt-text {
        font-size: 13px;
        max-height: 38px;}
    
    .article-excerpt-text.truncate-multiline {
        -webkit-line-clamp: 2;}
}

@media (max-width: 576px) {
    .article-image-wrapper {
        height: 160px;}
    
    .article-content-wrapper {
        padding: 12px;}
    
    .article-meta-info {
        flex-wrap: wrap; /* 小屏幕允许换行 */
        gap: 10px;}
    
    .meta-info-item {
        max-width: 100%;}
    
    .article-excerpt-text {
        -webkit-line-clamp: 2;
        max-height: 36px;}
}

/* 小屏幕设备优化 */
@media (max-width: 480px) {
    .article-excerpt-text {
        -webkit-line-clamp: 2;
        max-height: 34px;}
    
    .article-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;}
    
    .meta-info-item {
        width: 100%;
        justify-content: space-between;}
    
    .meta-info-item:last-child {
        align-self: flex-end;}
}

/* 特殊适配：当内容特别少时 */
.article-content-wrapper:only-child {
    justify-content: flex-start;}

/* 无图片的新闻项 */
.article-list-item.no-image .article-content-wrapper {
    width: 100%;
    min-width: 100%;}

/* 打印样式 */
@media print {
    .article-list-item {
        break-inside: avoid; /* 防止打印时被分割 */
        box-shadow: none;
        border: 1px solid #ddd;}
    
    .article-image-wrapper {
        flex: 0 0 150px;
        width: 150px;
        max-width: 150px;
        height: 120px;}
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .article-list-item {
        background-color: #2c2c2c;
        border-color: #444;}
    
    .article-title-main a {
        color: #f0f0f0;}
    
    .article-excerpt-text {
        color: #aaa;}
    
    .article-meta-info {
        color: #888;}
    
    .article-image-wrapper::before {
        background: linear-gradient(45deg, #333 25%, #444 25%, #444 50%, #333 50%, #333 75%, #444 75%, #444);}
}
