/* ========================================
   新闻列表页
   ======================================== */
.news-page {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 1%;
    padding-bottom: 1%;
}

/* 标题 + 分类标签 header */
.news-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}
.news-page-title-wrap {
    flex: 0 0 auto;
}
.news-page-title {
    font-size: 38px;
    font-weight: bold;
    color: rgba(0, 0, 0, 1);
    line-height: 1;
    text-transform: uppercase;
    margin-top: 20px;
}

/* 分类标签 */
.news-tabs {
    display: flex;
    gap: 0;
    margin-left: auto;
    padding: 10px;
}
.news-tab-item {
    display: block;
    padding: 0 25px;
    font-size: 18px;
    color: #333;
    line-height: 2.5;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 15px;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.news-tab-item:hover,
.news-tab-item.active {
    background: #E6212A;
    color: #fff;
    border-color: #E6212A;
}

/* 新闻列表 */
.news-list {
    padding: 20px 10px 50px 10px;
}
.news-list-item {
    display: flex;
    flex-wrap: wrap;
    padding-top: 0;
    padding-bottom: 50px;
    margin-bottom: 50px;
    border-bottom: 1px solid #ccc;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.news-list-img {
    flex: 0 0 30%;
    overflow: hidden;
    max-height: 240px;
    min-height: 240px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.news-list-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}
.news-list-item:hover .news-list-img img {
    transform: scale(1.05);
}

/* 新闻信息 */
.news-list-info {
    flex: 1;
    padding-left: 40px;
    padding-right: 20px;
}
.news-list-title {
    font-size: 22px;
    font-weight: bold;
    color: rgba(51, 51, 51, 1);
    line-height: 1.5;
    padding-bottom: 13px;
    padding-top: 13px;
    margin-top: 20px;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.news-list-title a {
    color: rgba(51, 51, 51, 1);
}
.news-list-item:hover .news-list-title,
.news-list-item:hover .news-list-title a {
    font-weight: bold;
    color: #E6212A;
    margin-left: 10px;
}
.news-list-summary {
    font-size: 16px;
    color: rgba(102, 102, 102, 1);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}
.news-list-summary a {
    color: rgba(102, 102, 102, 1);
}

/* 查看更多按钮 */
.news-list-more {
    display: block;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
    width: 137px;
    padding: 12px 8px;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid #E6212A;
    border-radius: 2px;
    color: #E6212A;
    font-size: 14px;
    font-weight: normal;
    margin-top: 30px;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.news-list-more span {
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
}
.news-list-more::after {
    content: "";
    position: absolute;
    z-index: 1;
    background: #E6212A;
    left: 0;
    right: 0;
    width: 100%;
    bottom: 0;
    height: 0;
    transition: all 0.3s ease-in-out;
}
.news-list-item:hover .news-list-more::after {
    height: 100%;
}
.news-list-item:hover .news-list-more {
    color: #fff;
}

/* 分页 */
.news-pagination {
    text-align: center;
    padding: 20px 0 40px;
}
.news-pagination a,
.news-pagination span {
    display: inline-block;
    line-height: 30px;
    height: 30px;
    width: 30px;
    margin: 0 3px;
    text-align: center;
    background: #f4f4f4;
    color: #666;
    text-decoration: none;
}
.news-pagination a:hover {
    background: #e6f4ff;
    color: #30a7fd;
}
.news-pagination .active,
.news-pagination .current {
    background: #E6212A;
    color: #fff;
}
.news-pagination .disabled {
    background: #f4f4f4;
    color: #ccc;
    cursor: not-allowed;
}

/* ========================================
   新闻详情页
   ======================================== */
.news-detail-page {
    display: flex;
    gap: 0;
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
    min-height: 300px;
    background-color: rgba(250, 250, 250, 1);
}

/* 左侧内容区 */
.news-detail-content {
    flex: 0 0 70%;
    margin-right: 30px;
    background-color: rgba(255, 255, 255, 1);
    padding: 30px;
}
.news-detail-title {
    font-size: 24px;
    font-weight: bold;
    color: rgba(51, 51, 51, 1);
    line-height: 1.5;
    text-align: center;
}
.news-detail-line {
    border: none;
    border-top: 3px solid rgba(230, 33, 42, 1);
    width: 20%;
    margin: 15px auto 15px 0;
    position: relative;
}
.news-detail-line::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 100%;
    right: 0;
    width: 400%;
    border-top: 2px solid rgba(229, 229, 229, 1);
}
.news-detail-body {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(102, 102, 102, 1);
}
.news-detail-body p {
    margin-bottom: 15px;
    text-indent: 2em;
}
.news-detail-body img {
    max-width: 100%;
    height: auto;
}

/* 右侧边栏 */
.news-detail-sidebar {
    flex: 1;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 1);
    padding: 30px;
}

/* 侧边栏标题 */
.sidebar-label {
    font-size: 28px;
    font-weight: bold;
    color: rgba(230, 33, 42, 1);
    padding-bottom: 20px;
}

/* 侧边栏第一条（带图片） */
.sidebar-top-item {
    margin-bottom: 20px;
}
.sidebar-top-img {
    overflow: hidden;
}
.sidebar-top-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.sidebar-top-meta {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}
.sidebar-dot {
    flex: 0 0 auto;
    margin-right: 5px;
    font-size: 16px;
    color: rgba(230, 33, 42, 1);
    line-height: 1;
    padding-top: 5px;
}
.sidebar-top-title {
    flex: 1;
    font-size: 18px;
    color: rgba(51, 51, 51, 1);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-top-title a {
    color: rgba(51, 51, 51, 1);
}
.sidebar-top-title a:hover {
    color: rgba(230, 33, 42, 1);
}
.sidebar-top-date {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.sidebar-dash {
    flex: 0 0 auto;
    margin-right: 5px;
    font-size: 14px;
    color: rgba(102, 102, 102, 1);
}
.sidebar-date-text {
    font-size: 14px;
    color: rgba(102, 102, 102, 1);
    min-height: 20px;
}

/* 侧边栏分割线 */
.sidebar-divider {
    border: none;
    border-top: 3px solid rgba(230, 33, 42, 1);
    width: 20%;
    margin: 15px 0 15px 0;
    position: relative;
}
.sidebar-divider::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 100%;
    right: 0;
    width: 400%;
    border-top: 2px solid rgba(229, 229, 229, 1);
}

/* 侧边栏更多列表 */
.sidebar-more-list {
    display: flex;
    flex-direction: column;
}
.sidebar-more-item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.sidebar-more-title {
    flex: 1;
    font-size: 16px;
    color: rgba(102, 102, 102, 1);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-more-title a {
    color: rgba(102, 102, 102, 1);
}
.sidebar-more-title a:hover {
    color: rgba(230, 33, 42, 1);
}

/* ========================================
   响应式 - 平板
   ======================================== */
@media screen and (max-width: 1024px) {
    .news-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-tabs {
        margin-left: 0;
        flex-wrap: wrap;
    }
    .news-tab-item {
        margin-bottom: 8px;
    }
    .news-detail-page {
        flex-direction: column;
        width: 95%;
    }
    .news-detail-content {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    .news-detail-sidebar {
        flex: 0 0 100%;
    }
}

/* ========================================
   响应式 - 手机
   ======================================== */
@media screen and (max-width: 768px) {
    .news-page {
        width: 95%;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .news-page-title {
        font-size: 24px;
    }
    .news-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-tabs {
        margin-left: 0;
        flex-wrap: wrap;
    }
    .news-tab-item {
        font-size: 14px;
        padding: 0 15px;
        margin-right: 8px;
        margin-bottom: 8px;
    }
    .news-list-item {
        flex-direction: column;
        padding-bottom: 25px;
        margin-bottom: 25px;
    }
    .news-list-img {
        width: 100%;
        flex: 0 0 auto;
        max-height: 180px;
        min-height: 180px;
    }
    .news-list-info {
        padding-left: 0;
        padding-right: 0;
    }
    .news-list-title {
        font-size: 16px;
        margin-top: 10px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .news-list-summary {
        font-size: 13px;
    }
    .news-list-more {
        margin-top: 15px;
        width: 120px;
        padding: 8px 6px;
        font-size: 12px;
    }
    .news-detail-page {
        flex-direction: column;
        width: 95%;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .news-detail-content {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 20px;
        padding: 15px;
    }
    .news-detail-title {
        font-size: 18px;
    }
    .news-detail-body {
        font-size: 14px;
    }
    .news-detail-sidebar {
        padding: 15px;
    }
    .sidebar-label {
        font-size: 20px;
    }
    .sidebar-top-title {
        font-size: 14px;
    }
    .sidebar-more-title a {
        font-size: 13px;
    }
}
