/* ============ 模板七 内页公共样式 ============ */

/* 整页撑满视口，内容少时页脚贴底 */
.inner7-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 内页 Banner */
.inner7-banner {
    position: relative;
    width: 100%;
    height: 182px;
    overflow: hidden;
    flex-shrink: 0;
}

.inner7-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inner7-banner-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.inner7-banner-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    white-space: nowrap;
    z-index: 2;
}

/* 上浮内容区：左右分栏独立白底，中间留缝；占满剩余高度 */
.inner7-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f1f3f8;
    padding: 0 0 35px;
}

.inner7-layout {
    width: 1200px;
    max-width: 96%;
    margin: -40px auto 0;
    position: relative;
    z-index: 3;
    display: flex;
    gap: 24px;
    align-items: stretch;
    flex: 1;
    box-sizing: border-box;
}

.inner7-side {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.inner7-side-title {
    background: #1F3A91;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 16px 10px;
    margin: 0;
}

.inner7-side-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}

.inner7-side-menu li a {
    display: block;
    padding: 14px 18px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f2f3f5;
    position: relative;
    transition: color 0.2s, background 0.2s;
    text-align: center;
}

.inner7-side-menu li:last-child a {
    border-bottom: none;
}

.inner7-side-menu li a:hover {
    color: #1F3A91;
    background: #f5f7fc;
}

.inner7-side-menu li.active a {
    color: #1F3A91;
    font-weight: 700;
    background: #f5f7fc;
}

.inner7-side-menu li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #1F3A91;
}

.inner7-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 28px 30px 36px;
    box-sizing: border-box;
}

/* 覆盖链接下划线 / 焦点框 */
.inner7-wrap a,
.inner7-wrap a:hover,
.inner7-wrap a:focus {
    text-decoration: none;
    outline: none;
}

/* ============ 列表页 ============ */
.cate7-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cate7-item {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fb;
    padding: 30px 18px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.cate7-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.2s;
}

.cate7-item:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.cate7-item:hover::before {
    background: #1F3A91;
    border-radius: 8px 0 0 8px;
}

.cate7-item:hover .cate7-item-title {
    color: #1F3A91;
    font-weight: 600;
}

.cate7-item-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-right: 12px;
    background-image: url('https://sszxapp-1317415100.cos.ap-guangzhou.myqcloud.com/%E6%96%87%E7%AB%A0%E5%9B%BE%E7%89%87/59974e64-03b7-489f-b317-cb115306810f.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3px;
    position: relative;
}

.cate7-item-title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cate7-item-date {
    flex-shrink: 0;
    margin-left: 20px;
    padding-left: 24px;
    font-size: 13px;
    color: #999;
    line-height: 20px;
    background-image: url('https://sszxapp-1317415100.cos.ap-guangzhou.myqcloud.com/%E6%96%87%E7%AB%A0%E5%9B%BE%E7%89%87/3b28db71-9427-4b61-87b1-85ea58a921af.png');
    background-size: 16px 16px;
    background-position: left center;
    background-repeat: no-repeat;
}

.cate7-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
    min-height: 240px;
    font-size: 14px;
}

/* 分页：共N条 上一页 1 2 3 … 50 下一页 */
.cate7-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    font-size: 14px;
    color: #666;
}

.cate7-pager-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    box-sizing: border-box;
    color: #666;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1;
}

a.cate7-pager-item:hover {
    color: #1F3A91;
    border-color: #1F3A91;
}

.cate7-pager-num.active {
    background: #1F3A91;
    border-color: #1F3A91;
    color: #fff;
    font-weight: 600;
}

.cate7-pager-disabled {
    color: #ccc;
    border-color: #eee;
    background: #fafafa;
    pointer-events: none;
}

.cate7-pager-ellipsis {
    min-width: 36px;
    letter-spacing: 1px;
}

/* ============ 文章详情页 article7（全宽） ============ */
.article7-card {
    width: 1200px;
    max-width: 96%;
    margin: -40px auto 0;
    position: relative;
    z-index: 3;
    flex: 1;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 48px 70px 60px;
    box-sizing: border-box;
}

.article7-title {
    margin: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
}

.article7-meta {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.article7-divider {
    margin: 5px 0 20px;
    border: none;
    border-top: 1px solid #f8e2e4;
}

.article7-content {
    font-size: 16px;
    color: #555555;
    line-height: 2;
    word-break: break-word;
}

.article7-content img {
    max-width: 100%;
    height: auto;
}

.article7-content p {
    margin: 0 0 1em;
}

.article7-video {
    margin-bottom: 20px;
}

.article7-video video {
    width: 100%;
    max-height: 480px;
    background: #000;
}

.article7-attachment {
    margin-top: 16px;
}

.article7-attachment a {
    color: #1F3A91;
}

/* 响应式 */
@media (max-width: 1023px) {
    .inner7-banner {
        height: 160px;
    }

    .inner7-banner-title {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .article7-card {
        margin-top: -40px;
        padding: 28px 16px 36px;
    }

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

    .inner7-layout {
        margin-top: -40px;
        flex-direction: column;
        gap: 16px;
    }

    .inner7-side {
        width: 100%;
    }

    .inner7-main {
        padding: 16px;
    }

    .inner7-side-menu {
        display: flex;
        overflow-x: auto;
    }

    .inner7-side-menu li {
        flex-shrink: 0;
    }

    .inner7-side-menu li a {
        border-bottom: none;
        border-right: 1px solid #f2f3f5;
        white-space: nowrap;
        text-align: center;
    }

    .inner7-side-menu li.active a::before {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 3px;
    }

    .cate7-item-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .cate7-item-date {
        display: none;
    }
}
