/* =========================================
   1. 全局设置 & 变量 (严格复用 Intro 页配置)
   ========================================= */
:root {
    /* 核心色调 - 科技蓝系 */
    --primary-color: #004080;   
    --nav-bg-start: #003B70;    
    --nav-bg-end: #005090;      
    --accent-color: #0056b3;    
    --hover-color: #ff6600;      
    --highlight-color: #ffaa00; 
    --bg-color: #f4f6f9;
    --white: #ffffff;
    --border-color: #e9ecef;
    --text-main: #333;
    --text-light: #666;
    
    /* 布局参数 */
    --sidebar-width: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14px;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

.container {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px;
}

/* =========================================
   2. 头部区域 (Header - 严格保持不变)
   ========================================= */
.header {
    background-color: #fff; padding: 20px 0; border-bottom: 1px solid var(--border-color);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.logo { display: flex; flex-direction: column; }
.logo .university-name { font-size: 18px; color: var(--text-light); letter-spacing: 1px; }
.logo .dept-name { font-size: 32px; font-weight: bold; color: var(--primary-color); line-height: 1.2; }

.search-box {
    display: flex; border: 2px solid var(--primary-color); border-radius: 4px; overflow: hidden; height: 38px;
}
.search-box input { border: none; padding: 0 15px; width: 240px; outline: none; }
.search-box button {
    background-color: var(--primary-color); color: #fff; border: none; padding: 0 20px; cursor: pointer; font-weight: bold;
}

/* =========================================
   3. 导航栏 (NAV - 严格保持不变)
   ========================================= */
.nav-wrapper {
    background: linear-gradient(to right, var(--nav-bg-start), var(--nav-bg-end));
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); width: 100%; position: relative; z-index: 100;
}
.nav-list { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.nav-item { flex: 1; text-align: center; height: 100%; position: relative; min-width: 80px; }
.nav-item a {
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.9); width: 100%; height: 100%; font-size: 16px;
    font-weight: 500; letter-spacing: 1px; position: relative; transition: all 0.3s ease;
}
.nav-item a:hover, .nav-item a.active { background-color: rgba(255, 255, 255, 0.1); color: #fff; font-weight: bold; }
.nav-item a::after {
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background-color: var(--highlight-color); transform: scaleX(0); transition: transform 0.3s ease; transform-origin: center;
}
.nav-item a:hover::after, .nav-item a.active::after { transform: scaleX(1); }

/* =========================================
   4. 列表页布局 (List Layout)
   ========================================= */
.main-wrapper { padding: 30px 0 50px; }

/* 面包屑 */
.breadcrumb {
    padding: 0 0 20px; border-bottom: 1px solid #e0e0e0; margin-bottom: 30px; color: #666; font-size: 13px;
}
.breadcrumb span { margin: 0 5px; color: #ccc; }
.breadcrumb .current { color: var(--primary-color); font-weight: bold; }

/* 分栏布局 */
.content-layout {
    display: flex; gap: 30px; align-items: flex-start;
}

/* --- 左侧边栏 (Sidebar) --- */
.sidebar {
    width: var(--sidebar-width); flex-shrink: 0; display: flex; flex-direction: column; gap: 20px;
}

.sidebar-card {
    background: var(--white); border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden;
    border-top: 3px solid var(--primary-color);
}

.sidebar-header {
    padding: 15px 20px; background: #f8f9fa; border-bottom: 1px solid #eee;
    font-size: 18px; font-weight: bold; color: var(--primary-color); border-left: 4px solid var(--primary-color);
}

.menu-list a {
    display: block; padding: 14px 20px; border-bottom: 1px solid #f0f0f0; color: #555; transition: all 0.2s; font-size: 14px;
}
.menu-list a:last-child { border-bottom: none; }
.menu-list a:hover { color: var(--primary-color); background: #f0f7ff; padding-left: 28px; }
.menu-list a.active { color: var(--primary-color); font-weight: bold; background: #e6f0fa; border-left: 3px solid var(--primary-color); }

.contact-info { padding: 20px; color: #666; font-size: 13px; line-height: 1.8; }
.contact-info p { margin-bottom: 8px; display: flex; align-items: center; }
.contact-icon { margin-right: 8px; color: var(--primary-color); font-size: 14px; width: 16px; text-align: center; }

/* --- 右侧内容区 (Content) --- */
.content-area {
    flex: 1; background: var(--white); padding: 40px; border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); min-width: 0;
}

/* 列表头部与搜索 */
.list-header {
    border-bottom: 2px solid var(--primary-color); padding-bottom: 15px; margin-bottom: 20px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.list-title {
    font-size: 22px; color: var(--primary-color); font-weight: bold;
    display: flex; align-items: center;
}
.list-title::before {
    content: ""; display: inline-block; width: 6px; height: 22px; 
    background: var(--highlight-color); margin-right: 12px; border-radius: 2px;
}

.list-search {
    display: flex; border: 1px solid #ddd; border-radius: 3px; overflow: hidden;
}
.list-search input {
    border: none; padding: 5px 10px; outline: none; font-size: 12px; width: 150px;
}
.list-search button {
    background: #f0f0f0; border: none; padding: 0 10px; cursor: pointer; color: #666; border-left: 1px solid #ddd;
}
.list-search button:hover { background: #e0e0e0; }

/* 文章列表项 */
.news-list { min-height: 400px; }
.news-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 0; border-bottom: 1px dashed #eee; transition: background 0.2s;
}
.news-item:hover { background-color: #fcfcfc; }

.news-link {
    flex: 1; font-size: 15px; color: #333; margin-right: 20px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.news-link::before {
    content: "▪"; color: #ccc; margin-right: 10px; font-size: 12px;
}
.news-link:hover { color: var(--hover-color); text-decoration: underline; }
.news-link:hover::before { color: var(--hover-color); }

/* 标签样式 */
.badge {
    display: inline-block; font-size: 12px; padding: 1px 4px; border-radius: 2px; margin-right: 5px;
    color: #fff; font-weight: normal; vertical-align: middle;
}
.badge-top { background-color: #ff4757; }
.badge-new { background-color: #2ed573; }

.news-date {
    font-size: 13px; color: #999; font-family: Arial, sans-serif; flex-shrink: 0;
}

/* 分页器 */
.pagination {
    margin-top: 40px; text-align: center; display: flex; justify-content: center; gap: 5px;
}
.page-btn {
    display: inline-block; padding: 6px 14px; border: 1px solid #ddd; background: #fff; color: #666; border-radius: 3px;
    transition: all 0.2s;
}
.page-btn:hover, .page-btn.active {
    background: var(--primary-color); color: #fff; border-color: var(--primary-color);
}
.page-btn.disabled { color: #ccc; cursor: not-allowed; background: #f9f9f9; }

/* =========================================
   5. 底部 (Footer - 保持不变)
   ========================================= */
.footer {
    background-color: #2d3436; color: #b2bec3; padding: 40px 0;
    text-align: center; border-top: 4px solid var(--accent-color); margin-top: auto;
}
.footer-content p { margin-bottom: 8px; font-size: 13px; }

/* =========================================
   6. 响应式适配
   ========================================= */

/* 平板端 (小于 992px) */
@media (max-width: 992px) {
    .content-layout { flex-direction: column; }
    .sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .sidebar-card { flex: 1; min-width: 280px; }
}

/* 手机端 (小于 768px) */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; text-align: center; gap: 15px; }
    .search-box { width: 100%; margin-top: 10px; } .search-box input { flex: 1; }
    
    .nav-list { display: block; white-space: nowrap; overflow-x: auto; padding: 5px 0; }
    .nav-item { display: inline-block; width: auto; padding: 0 10px; }
    .nav-item a::after { display: none; }
    
    .sidebar { flex-direction: column; }
    
    .content-area { padding: 20px; }
    .list-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .list-search { width: 100%; } .list-search input { flex: 1; }
    
    .news-item { flex-direction: column; align-items: flex-start; gap: 5px; }
    .news-link { width: 100%; white-space: normal; line-height: 1.5; margin-right: 0; } 
    .news-date { font-size: 12px; color: #bbb; align-self: flex-end; }
}