/* zcfg.css - 政策法规专属样式（升级版：与新闻资讯风格一致） */

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

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

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

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

.zcfg-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;
}

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

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

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

.zcfg-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%;
}

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

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

.zcfg-content-panel {
    flex: 1;
    min-width: 0;
    background-color: white;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

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

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

/* 新增：政策列表项样式 —— 与新闻资讯完全一致 */
.zcfg-news-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

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

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

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

/* 新增：分页信息样式 */
.zcfg-pagination-info {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
    text-align: center;
    font-size: 14px;
}

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

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

/* 新增：详情页样式 */
.policy-detail-view {
    padding: 20px 0;
}

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

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

.policy-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;
}

.policy-detail-content img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
    display: block;
    margin: 10px 0;
}

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

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

.zcfg-content-section {
    display: none; /* 默认隐藏 */
}

.zcfg-content-section.active {
    display: block; /* 只有 active 才显示 */
}

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

    .zcfg-sidebar {
        width: 100%;
    }

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

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