
/* --- Page Banner --- */
.page-banner {
    padding: 0 15px; /* 匹配 .container 的 padding */
    margin: 0 auto; /* 居中 */
}

.page-banner img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
}

/* --- Page Header & Breadcrumb --- */
.page-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 30px 15px 15px; /* Added left/right padding */
    border-bottom: 2px solid #243553;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: normal;
    color: #333;
    margin-bottom: 5px;
}

.page-title h2 {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #243553;
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
    font-weight: bold;
}

/* --- Page Content Layout --- */
.page-content-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

/* --- Sidebar --- */
.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-nav ul {
    list-style: none;
    /* border-top: 2px solid #3c8dbc; */
}

.sidebar-nav li {
    border-bottom: 1px solid #eee;
}

.sidebar-nav a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #3c8dbc;
    color: #fff;
}

/* Submenu Animation */
.submenu {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.submenu.expanded {
    opacity: 1;
    /* max-height set by JS */
}

/* --- Content Area --- */
.content-area {
    flex: 1;
    min-width: 0; /* Prevent flex overflow */
}

/* --- News List --- */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 10px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    transition: all 0.3s ease;
}

.news-list li:hover {
    background-color: #f8f9fa;
    padding-left: 15px;
}

.news-title {
    color: #333;
    text-decoration: none;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 20px;
    position: relative;
    padding-left: 15px;
}

.news-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #ccc;
    border-radius: 50%;
    transition: all 0.3s;
}

.news-list li:hover .news-title::before {
    background-color: #3c8dbc;
    width: 6px;
    height: 6px;
}

.news-title:hover {
    color: #3c8dbc;
}

.news-date {
    color: #999;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
    padding-top: 20px;
}

.page-info {
    margin-right: 20px;
    color: #999;
    font-size: 13px;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 5px;
    text-decoration: none;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s;
}

.page-link.active {
    background-color: #3c8dbc;
    color: #fff;
    border-color: #3c8dbc;
}

.page-link:hover:not(.active) {
    background-color: #f1f1f1;
    color: #333;
    border-color: #ccc;
}

/* --- Article Detail Styles (Kept for compatibility) --- */
.article-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    border-top: 1px dashed #ccc;
    padding-top: 20px;
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.section-heading {
    display: inline-block;
    background-color: #3c8dbc;
    color: #fff;
    padding: 5px 15px;
    font-size: 16px;
    margin: 20px 0 15px;
    font-weight: normal;
}

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

.content-list li {
    margin-bottom: 10px;
    color: #555;
}

/* --- Responsive for List Page --- */
@media (max-width: 768px) {
    .page-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .page-content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .news-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .news-date {
        font-size: 12px;
    }
}
