/* dangqungongzuo / newsgzdt / shizhengyaowen 三页共用私有样式 */

/* 2026-07-02 容器宽度统一 1150px（200+40+910=1150），三页根 id 限定不污染外部 */
#dangqungongzuo-app .container,
#newsgzdt-app .container,
#shizhengyaowen-app .container {
    padding: 0 25px;  /* 1200-50=1150 */
}

.page-wrapper {
    display: flex;
    gap: 40px;  /* 2026-07-02 43px→40px，200+40+910=1150 精确对齐 */
}

/* 左侧菜单：样式全部走 common.css，此处不覆盖 */

/* 右侧内容区 */
.content-area {
    width: 910px;
    flex-shrink: 0;
}

/* 图文网格 */
.item-grid {
    display: grid;
    grid-template-columns: repeat(3, 288px);
    column-gap: 23px;
    row-gap: 28px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.grid-item .image {
    display: block;
    width: 288px;
    height: 197px;
    border: 1px solid #E7E7E8;
    box-sizing: border-box;
    overflow: hidden;
    background: #F7F8F8;
}

.grid-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.text-area {
    width: 288px;
    padding: var(--space-md);
    background: #F7F8F8;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 13px;
}

a.item-title {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    text-decoration: none;
}

a.item-title:hover {
    color: #008F98;
}

/* 兼容旧结构（div.item-title）的颜色规则保留，便于未拆分的页面继续生效 */
.item-title {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.grid-item:hover .item-title {
    color: #008F98;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-date {
    font-size: 12px;
    color: #898989;
}

.item-link {
    font-size: 12px;
    color: #008F98;
    text-decoration: none;
}

.item-link:hover {
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }

    .side-nav {
        width: 100%;
    }

    .item-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}
