/* xwzx.css - 新闻资讯专属样式 */

.xwzx-breadcrumb-nav {
    width: 100%;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.xwzx-breadcrumb-nav a {
    color: #1C983E;
    text-decoration: none;
}

.xwzx-breadcrumb-nav a:hover {
    text-decoration: underline;
}

.xwzx-content-area {
    display: flex;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.xwzx-sidebar {
    width: 200px;
    flex-shrink: 0;
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.xwzx-nav-title {
    font-size: 16px;
    font-weight: bold;
    color: #1C983E;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1C983E;
    text-align: center;
}

.xwzx-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: stretch; /* 关键：撑满宽度 */
}

.xwzx-nav-item {
    margin: 0;
}

.xwzx-nav-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none !important;
    color: #333;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
    width: 100%;
}

.xwzx-nav-link.active {
    background-color: #1C983E;
    color: white;
    border-color: #1C983E;
    text-decoration: none !important;
}

.xwzx-nav-link:hover {
    background-color: #e9ecef;
    color: #1C983E;
    text-decoration: none !important;
}

.xwzx-content-panel {
    flex: 1;
    /* flex 子项默认 min-width:auto，会被富文本大图“撑出”父级，导致右侧略溢出 */
    min-width: 0;
    background-color: white;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.xwzx-content-title {
    font-size: 22px;
    font-weight: bold;
    color: #1C983E;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1C983E;
}

.xwzx-content-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.xwzx-news-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.xwzx-news-title-link {
    color: #333;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.xwzx-news-title-link:hover {
    color: #1C983E;
    text-decoration: underline;
}

.xwzx-news-date {
    color: #888;
    margin-left: 20px;
    white-space: nowrap;
}

.xwzx-pagination-info {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
    text-align: center;
    font-size: 14px;
}

.xwzx-content-section {
    display: none;
}

.xwzx-content-section.active {
    display: block;
}

/* 响应式 */
@media (max-width: 768px) {
    .xwzx-content-area {
        flex-direction: column;
    }

    .xwzx-sidebar {
        width: 100%;
    }

    .xwzx-content-panel {
        padding: 20px;
    }

    .xwzx-content-title {
        font-size: 18px;
    }
}

/**动态化数据*/
/* 新闻详情样式 */
.news-detail-view {
    padding: 20px 0;
}

.news-detail-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.news-detail-meta {
    color: #888;
    margin-bottom: 20px;
    font-size: 14px;
}

.news-detail-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 富文本内联 width 需压过；避免 img 默认 inline 与边框造成 1～2px 溢出 */
.news-detail-content img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
    display: block;
    margin: 10px 0;
}

.news-detail-content video {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

.news-detail-content table {
    max-width: 100% !important;
    table-layout: fixed;
}

/* 分页按钮 */
.btn-page {
    margin: 0 5px;
    padding: 5px 10px;
    background: #1C983E;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-page:hover {
    background: #177a30;
}

