/* ============================================================
   internal-bs.css - 内页通用 Bootstrap 定制样式
   ============================================================ */

/* Banner 横幅 */
.banner-half {
    overflow: hidden;
}
/* 图片高度减半：原图 600×150（4:1）铺满宽度时高度为 宽/4，改为 宽/8 即为原来的一半 */
.banner-half .slide {
    aspect-ratio: var(--banner-ratio, 8 / 1);
    overflow: hidden;
}
.banner-half .slide a {
    display: block;
    height: 100%;
    line-height: 0;
}
.banner-half .slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 面包屑 */
.breadcrumb-nav {
    color: #888;
    font-size: 13px;
    background: #f8f9fa;
}
.breadcrumb-nav a {
    color: #888;
    text-decoration: none;
}
.breadcrumb-nav a:hover {
    color: #078a60;
}

/* 侧边栏 */
.side-title {
    font-size: 16px;
    color: #fff;
    background: #078a60;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
}
.side-nav .list-group-item a {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px dotted #e8ecef;
    transition: color 0.2s;
}
.side-nav .list-group-item a:hover {
    color: #078a60;
    text-decoration: none;
}
.side-nav .list-group-item:last-child a {
    border-bottom: none;
}
.side-contact dd {
    font-size: 13px;
    color: #555;
}

/* 内容通用 */
.content-card {
    border-radius: 10px;
}
.content-card h2 {
    color: #111;
}

/* 详情正文（编辑器输出的内容区）：图片限制在容器内，防溢出且不变形 */
#shzm_top {
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
#shzm_top img {
    max-width: 100% !important; /* 正文图片常带内联 width，需要强制收敛 */
    height: auto !important;    /* 覆盖内联固定高度，避免图片被压扁变形 */
}
#shzm_top table,
#shzm_top iframe,
#shzm_top video {
    max-width: 100%;
}

/* 列表页通用 */
.list-item {
    transition: transform 0.2s, box-shadow 0.2s;
    border-color: #e7ebef !important;
}
.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7,138,96,0.1) !important;
}
.list-item .thumb img {
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}
.list-item h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-item h3:hover {
    color: #078a60 !important;
}
.list-item .text-muted {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.pagination > span {
    display: inline-flex;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #d9e1e7;
    background: #fff;
    color: #2f3b46;
    font-size: 14px;
    margin: 2px;
}
.pagination > span > a,
.pagination > span > span {
    display: inline-block;
    border: 0 !important;
    background: transparent !important;
    min-width: 0;
    height: auto;
    line-height: 1;
    padding: 0;
    margin: 0;
    color: inherit;
    text-decoration: none;
}
.pagination > span:hover {
    border-color: #078a60;
}
.pagination > span:hover > a {
    color: #078a60;
}
.pagination > .page-status { padding: 0 14px; }
.pagination > .page-numbar > a { min-width: 28px; text-align: center; padding: 0 8px; }
.pagination > .page-numbar > .page-num-current { color: #078a60; font-weight: 700; }

/* 手机端 */
@media (max-width: 767.98px) {
    .main-content { padding: 16px 0 !important; }
    .content-card { padding: 16px !important; }
    .list-item h3 { font-size: 14px; }
}

/* iPad Air 列宽保护 */
@media (min-width: 768px) and (max-width: 991.98px) {
    aside.col-lg-3 { flex: 0 0 25% !important; max-width: 25% !important; }
    .col-lg-9 { flex: 0 0 75% !important; max-width: 75% !important; }
    .col-lg-4 { flex: 0 0 33.333333% !important; max-width: 33.333333% !important; }
}
