/* ========================================
   内容页面专用样式 - page.css
   适用于新闻详情、公告等正文页面
   ======================================== */

/* 页面主体容器 */
.page-main {
    background-color: #f5f5f5;
    padding: 20px 0 40px;
    min-height: 600px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb-nav {
    background-color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    color: #666;
}

/* 旧版面包屑列表样式（保留兼容） */
.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

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

.breadcrumb-item a {
    color: #1a5276;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #ccc;
    margin: 0 10px;
    font-size: 12px;
}

/* ========================================
   CMS风格面包屑导航（CurrChnlCls）
   ======================================== */

/* 面包屑导航容器 */
.breadcrumb-nav {
    line-height: 1.6;
    color: #666;
    font-size: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* 首页图标 */
.breadcrumb-home-icon {
    color: #1a5276;
    font-size: 16px;
    margin-right: 8px;
}

/* 面包屑链接样式 - CurrChnlCls 类 */
.breadcrumb-nav .CurrChnlCls {
    color: #1a5276;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    font-size: 15px;
}

.breadcrumb-nav .CurrChnlCls:hover {
    color: #c0392b;
    text-decoration: underline;
    background-color: #f5f5f5;
}

/* 当前页面（最后一个链接） */
.breadcrumb-nav .CurrChnlCls:last-of-type {
    color: #333;
    font-weight: 500;
    cursor: default;
}

.breadcrumb-nav .CurrChnlCls:last-of-type:hover {
    color: #333;
    text-decoration: none;
    background-color: transparent;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .breadcrumb-nav .CurrChnlCls {
        padding: 2px 6px;
        font-size: 14px;
    }
    
    .breadcrumb-home-icon {
        font-size: 15px;
    }
}

/* ========================================
   文章主体区域
   ======================================== */
.article-content {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 40px 50px;
    margin-bottom: 20px;
}

/* 文章标题区域 */
.article-header {
    text-align: center;
    margin-bottom: 25px;
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0 0 20px 0;
    padding: 0;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 14px;
    color: #888;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #1a5276;
    font-size: 14px;
}

/* 分割线 */
.article-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 25px 0 30px;
}

/* ========================================
   正文内容样式
   ======================================== */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* 段落样式 */
.article-paragraph {
    text-indent: 2em;
    margin-bottom: 20px;
    text-align: justify;
}

/* 二级标题 */
.article-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #1a5276;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #c0392b;
    line-height: 1.4;
}

/* 列表样式 */
.article-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 20px 2em;
}

.list-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.list-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #c0392b;
    border-radius: 50%;
}

.list-item strong {
    color: #1a5276;
}

/* ========================================
   表格样式
   ======================================== */
.article-table-wrapper {
    margin: 25px 0;
    overflow-x: auto;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #fff;
}

.table-caption {
    caption-side: top;
    text-align: center;
    font-weight: 600;
    color: #333;
    padding: 10px 0;
    font-size: 14px;
}

.table-th,
.table-td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #ddd;
}

.table-th {
    background-color: #1a5276;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.table-td {
    color: #333;
}

.article-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.article-table tbody tr:hover {
    background-color: #e8f4f8;
}

/* ========================================
   图片样式
   ======================================== */
.article-figure {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-caption {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* ========================================
   文章落款
   ======================================== */
.article-footer {
    margin-top: 40px;
    text-align: right;
    padding-right: 2em;
}

.footer-text {
    margin: 5px 0;
    font-size: 15px;
    color: #333;
}

/* ========================================
   文章操作按钮
   ======================================== */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid #1a5276;
    background-color: #fff;
    color: #1a5276;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: #1a5276;
    color: #fff;
}

.btn-print {
    margin-right: 10px;
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.font-btn {
    padding: 4px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.font-btn:first-of-type {
    border-radius: 4px 0 0 4px;
}

.font-btn:last-of-type {
    border-radius: 0 4px 4px 0;
}

.font-btn.active {
    background-color: #1a5276;
    color: #fff;
    border-color: #1a5276;
}

.font-btn:hover:not(.active) {
    background-color: #f0f0f0;
}

/* ========================================
   相关文章
   ======================================== */
.related-articles {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 25px 30px;
}

.related-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a5276;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.related-title i {
    margin-right: 8px;
    color: #c0392b;
}

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

.related-item {
    border-bottom: 1px dashed #eee;
}

.related-item:last-child {
    border-bottom: none;
}

.related-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-link:hover {
    color: #1a5276;
}

.related-link:hover .related-text {
    padding-left: 8px;
}

.related-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: padding-left 0.2s ease;
}

.related-date {
    font-size: 13px;
    color: #999;
    margin-left: 15px;
    white-space: nowrap;
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .header-narrow,
    .header-bg,
    .navbar,
    .breadcrumb-nav,
    .footer,
    .floating-sidebar,
    .article-actions,
    .related-articles {
        display: none !important;
    }

    .page-main {
        background: none;
        padding: 0;
    }

    .article-content {
        box-shadow: none;
        padding: 0;
    }

    .article-title {
        font-size: 22px;
    }

    .article-body {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .article-content {
        padding: 25px 20px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-subtitle {
        font-size: 18px;
    }

    .article-list {
        margin-left: 0;
    }

    .article-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .breadcrumb-nav {
        padding: 12px 15px;
    }

    .breadcrumb-list {
        font-size: 13px;
    }

    .related-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .related-date {
        margin-left: 0;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 20px 15px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-body {
        font-size: 15px;
    }

    .table-th,
    .table-td {
        padding: 8px 10px;
        font-size: 13px;
    }
}
