/* 全局样式 */
* {
    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: #333;
    background-color: #f5f5f5;
}

/* 主要内容区域 */
.main-content {
    width: 80%;
    margin: 0 auto;
    min-height: 100vh;
}

/* 页面布局 */
.page-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

/* 左侧导航 */
.sidebar {
    width: 20%;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 0 0 4px 4px;
    height: 0px;
}

.nav-section {
    margin-bottom: 0;
    background-color: #fff;
}

.nav-title {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    font-weight: 400;
    min-height: 38px;
}

.nav-title:not(.has-submenu) {
    cursor: default;
}

.nav-title:not(.has-submenu) .arrow {
    display: none;
}

.nav-title.has-submenu:hover {
    color: #CF0808;
    font-weight: 600;
    background-color: rgb(232, 242, 255);
}

/* 箭头样式 */
.arrow {
    width: 16px;
    height: 16px;
    position: relative;
    transition: transform 0.3s ease;
}

.arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -75%) rotate(45deg);
}

.arrow.expanded {
    transform: rotate(180deg);
}

.nav-content {
    background-color: #f8f9fa;
    height: auto;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.nav-content.collapsed {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0 15px 0 40px;
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-size: 15px;
    min-height: 38px;
    font-weight: 400;
}

.nav-item:hover {
    color: #CF0808;
    font-weight: 700;
    background-color: rgb(232, 242, 255);
}

/* 右侧内容区域 */
.content {
    flex: 1;
    background-color: #fff;
    padding: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    padding: 10px 20px;
    /* background-color: #fff; */
    border-radius: 4px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #CF0808;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #999;
}

/* 主标题 */
.main-title {
    font-size: 24px;
    color: #c00;
    margin-bottom: 30px;
}

/* 公告列表 */
.announcement-list {
    margin-bottom: 30px;
}

.announcement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
}

.announcement-item:last-child {
    border-bottom: none;
}

.title-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 20px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #c00;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.announcement-item .title {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-item .title:hover {
    color: #c00;
}

.announcement-item .date {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

/* 分页 */
.pagebar {
    font-size: 12px;
    font-family: SimSun;
    line-height: 12px;
    color: #222;
    margin-top: 30px;
    text-align: center;
}

/* 去掉a链接的下划线 */
.pagebar a {
    text-decoration: none;
}

/* 消掉最左侧页码区margin-left的5个像素 */
.pagebar .p_pages {
    margin-left: -5px;
}

/* 按钮和页码的外观 */
.pagebar .p_fun_d,
.pagebar .p_no_d,
.pagebar .p_fun a,
.pagebar .p_no a {
    border: 1px solid #ccc;
    padding: 5px 8px;
    margin: 0px 0px 0px 5px;
    height: 24px;
    line-height: 12px;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
}

/* 文字对齐样式 */
.pagebar .p_t {
    line-height: 12px;
    margin: 0px;
    padding: 0px;
    display: inline-block;
    vertical-align: middle;
}

/* 无链接的字体颜色 */
.pagebar .p_fun_d,
.pagebar .p_no_d {
    color: #ccc;
}

/* 链接字体颜色 */
.pagebar .p_fun a,
.pagebar .p_no a {
    color: #222;
}

/* 鼠标移上时有链接按钮的外观 */
.pagebar .p_no a:hover,
.pagebar .p_fun a:hover,
.pagebar .p_goto a:hover {
    background-color: #f5f5f5;
}

/* 页码省略号...的外观 */
.pagebar .p_dot {
    margin-left: 4px;
    margin-right: -4px;
    color: #222;
}

/* 当前页码的外观 */
.pagebar .p_no_d {
    border: 1px solid #CF0808;
    color: #fff;
    background-color: #CF0808;
}

/* 跳转到页码输入框的外观 */
.pagebar .p_goto input {
    font-family: SimSun;
    font-size: 12px;
    border: 1px solid #aaa;
    height: 22px;
    line-height: 20px;
    box-sizing: border-box;
    vertical-align: middle;
    outline-width: thin;
    outline-color: #CF0808;
    margin: 0px 2px;
    padding: 0px 1px;
    width: 22px;
    text-align: center;
}

/* 跳转到页码输入框 鼠标移上及输入时的外框颜色 */
.pagebar .p_goto input:hover,
.pagebar .p_goto input:focus {
    border: 1px solid #CF0808;
}

/* 跳转按钮的外观 */
.pagebar .p_goto a {
    border: 1px solid #ccc;
    padding: 5px 6px;
    color: #222;
    margin: 0px;
    height: 24px;
    line-height: 12px;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
}

/* 控制是否显示 "首页" "尾页" */
.pagebar .p_first,
.pagebar .p_first_d,
.pagebar .p_last,
.pagebar .p_last_d {
    display: none;
} 