﻿/* 侧边栏样式 */
.sidebar {
    width: 100%;
}

.sidebar-header {
    background-color: #b35c3a; /* 主色调 */
    color: white;
    padding: 15px 0;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    /* 模拟图片中的Tab效果，可能需要调整宽度或对齐方式 */
    margin-bottom: 2px; /* 与下方横线的一点间距 */
}

/* 侧边栏导航容器，移除背景色 */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.sidebar-nav li {
    /* 移除默认边框，使用自定义下划线 */
    border-bottom: none;
    margin-bottom: 10px; /* 每个选项之间的间距 */
}

.sidebar-nav li a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 20px; /* 字体加大 */
    text-align: center;
    transition: all 0.3s;
    background-color: transparent;
    /* 关键：底部的红棕色横线 */
    border-bottom: 3px solid #b35c3a; 
    font-weight: bold; /* 默认加粗 */
    letter-spacing: 2px;
}

.sidebar-nav li a:hover, 
.sidebar-nav li a.active {
    color: #b35c3a; /* 选中时文字变红 */
    background-color: transparent; /* 背景透明 */
    /* 保持底部横线 */
    border-bottom: 2px solid #b35c3a; 
}

/* 顶部的大横线，连接标题和右侧 */
.content-header-line {
    border-bottom: 2px solid #b35c3a;
    margin-top: -2px; /* 向上偏移以连接侧边栏头部 */
    margin-bottom: 20px;
    position: relative;
    z-index: -1; /* 放在后面 */
}

/* 内容区域头部 */
.content-header {
    border-bottom: 2px solid #b35c3a; /* 主横线 */
    margin-bottom: 30px;
    padding-bottom: 10px;
    text-align: right;
    margin-top: 54px; /* Align with sidebar header bottom roughly if needed, or adjust structure */
}

/* Reset for new structure: Sidebar header is separate, content header aligns with it visually */
.right-content-top {
    border-bottom: 3px solid #b35c3a;
    display: flex;
    justify-content: flex-end; /* Breadcrumb on right */
    align-items: flex-end;
    padding-bottom: 10px;
    margin-bottom: 30px;
    height: 66px; /* Match sidebar header height approx + margin */
}

.breadcrumb-nav {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.breadcrumb-nav a {
    color: #333;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: var(--primary-color, #a04028);
}

/* 列表项样式 */
.list-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #ccc;
}

.list-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    margin-bottom: 10px;
}

.list-title:hover {
    color: var(--primary-color, #a04028);
}

.list-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    text-indent: 2em; /* 首行缩进 */
}

.list-meta {
    font-size: 16px;
    color: #444;
    font-family: Arial, sans-serif;
}

/* 分页样式 */
.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #333;
}

.pagination-wrapper a, 
.pagination-wrapper span.page-num {
    display: inline-block;
    padding: 5px 10px;
    color: #333;
    text-decoration: none;
    margin: 0 2px;
    cursor: pointer;
}

.pagination-wrapper a:hover,
.pagination-wrapper span.page-num:hover {
    color: #b35c3a;
    text-decoration: underline;
}

.pagination-wrapper .current {
    font-weight: bold;
    color: #b35c3a;
    margin: 0 5px;
    padding: 5px 10px; /* match link padding */
}

.pagination-wrapper .dots {
    color: #999;
    margin: 0 5px;
}

.pagination-wrapper .disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none !important;
}

.page-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 5px;
}

.page-btn {
    border: 1px solid #ccc;
    background: #fff;
    padding: 2px 10px;
    cursor: pointer;
    margin-left: 5px;
}

.page-btn:hover {
    background: #f0f0f0;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .sidebar {
        margin-bottom: 30px;
    }
    
    .list-title {
        font-size: 16px;
    }
    
    .list-desc {
        text-indent: 0;
    }
    
    .content-header {
        text-align: left; /* 移动端左对齐可能更好 */
    }
}