/* 新闻列表页面样式 */

/* 新闻列表区域 */
.news-list-section {
    padding: 39px 0 136px;
    background-color: RGBA(248, 249, 251, 1);
}


/* 标签导航 */
.news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 36px;
    margin-bottom: 63px;
    padding: 50px 100px;
    box-shadow: 0px 6px 21px 0px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    background-color: #fff;
}

.news-tabs-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.news-detail-content .tags-list .tag-item,
.news-tab {
    display: inline-block;
    padding: 0 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    min-width: 120px;
    line-height: 38px;
    transition: all 0.3s ease;
    text-align: center;
}

.news-detail-content .tags-list .tag-item:hover,
.news-tab:hover,
.news-tab.active {
    background-color: rgba(48, 136, 100, 1);
    color: #fff;
    border-color: rgba(48, 136, 100, 1);
}

/* 新闻内容布局 */
.news-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* 左侧新闻列表 */
.news-list {
    width: 71.25%;
}

.news-list-container {
    background: #FFFFFF;
    box-shadow: 0px 6px 21px 0px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    padding: 41px 56px;
}

.news-item {
    display: flex;
    padding: 32px 0;
    gap: 39px;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.news-item:first-child {
    padding-top: 0;
}

.news-item:last-child {
    padding-bottom: 0;
}

.news-item:not(:last-child) {
    border-bottom: 1px solid rgba(240, 240, 240, 1);
}

.news-item:hover {}

.news-image {
    width: 270px;
    height: 168px;
}

.news-image img {
    height: 100%;
    object-fit: cover;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    flex: 1;
    padding-top: 17px;
}

.news-title {
    font-weight: bold;
    font-size: 24px;
    color: #000000;
    line-height: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.news-item:hover .news-title {
    color: rgba(48, 136, 100, 1);
}

.news-description {
    font-weight: 400;
    font-size: 16px;
    color: #888888;
    line-height: 24px;
    margin-top: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-date {
    font-size: 13px;
    color: #888888;
    line-height: 1;
    margin-top: 30px;
}

.news-list .pagination {
    margin-top: 43px;
}

/* 右侧边栏 */
.news-sidebar {
    width: 26.9%;
    flex-shrink: 0;
    background: #FFFFFF;
    box-shadow: 0px 6px 21px 0px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    padding: 27px 28px;
}

.news-sidebar .sidebar-section {
    background-color: #fff;
    margin-bottom: 30px;

}

/* 搜索区域 */
.news-sidebar .search-section {
    margin-bottom: 25px;
}

.news-sidebar .news-sidebar-title {
    font-weight: bold;
    font-size: 24px;
    color: #000000;
    line-height: 1;
    border-left: 7px solid rgba(48, 136, 100, 1);
    padding-left: 15px;
}

.news-sidebar .search-form {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    border-radius: 10px;
    border: 1px solid #E7E7E7;
    padding: 7px 7px 9px 17px;
    height: 60px;
}

.news-sidebar .search-form input {
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 0;
    font-size: 18px;
    border: none;
    outline: none;
    color: #333;
}

.news-sidebar .search-form input::placeholder {
    color: rgba(153, 153, 153, 1);
}

.news-sidebar .search-button {
    width: 108px;
    line-height: 42px;
    background: #328763;
    border-radius: 10px;
    font-weight: 400;
    font-size: 18px;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.news-sidebar .search-button:hover {
    background-color: #219a52;
}

/* 热门新闻 */
.news-sidebar .hot-news-section {
    background-color: #fff;
    margin-bottom: 30px;
}

.news-sidebar .hot-news-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.news-sidebar .hot-news-list .hot-news-item {
    display: flex;
}

.news-sidebar .hot-news-list .hot-news-item:not(:last-child) {
    margin-bottom: 32px;
}

.news-sidebar .hot-news-list .hot-news-number {
    font-weight: bold;
    font-size: 24px;
    color: #48B687;
    line-height: 1;
}

.news-sidebar .hot-news-list .hot-news-title {
    font-weight: 400;
    font-size: 16px;
    color: #333333;
    line-height: 24px;
    padding-left: 20px;
    flex: 1;
    align-self: center;
}

/* 热门标签 */
.news-sidebar .hot-tags-section {}

.news-sidebar .hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;

}

.news-sidebar .hot-tag {
    min-width: 102px;
    line-height: 38px;
    background: #F2F2F2;
    padding: 0 20px;
    font-weight: 400;
    font-size: 14px;
    color: #777777;
    transition: all 0.3s ease;
    text-align: center;
}

.news-sidebar .hot-tag:hover {
    background-color: rgba(48, 136, 100, 1);
    color: #fff;
}

/* 新闻详情页面样式 */

/* 新闻详情区域 */
.news-detail-section {
    padding: 0 0 60px;
    background-color: #f9f9f9;
}

.news-detail-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* 左侧文章内容 */
.news-detail-content .content-l {
    width: 71.25%;
}

.article-content {
    padding: 30px 56px;
    background-color: #fff;
    box-shadow: 0px 6px 21px 0px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
}

.article-title {
    font-weight: bold;
    font-size: 24px;
    color: #000000;
    line-height: 32px;
    margin-bottom: 8px;
}

.article-meta {
    display: flex;
    gap: 20px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(240, 240, 240, 1);
    margin-bottom: 30px;
    font-weight: 400;
    font-size: 16px;
    color: #999999;
    line-height: 28px;
    align-items: center;
}

.article-author {
    color: rgba(50, 135, 99, 1);
}

.article-meta .social {
    margin-left: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-meta .social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid RGBA(244, 244, 244, 1);
    transition: all 0.3s ease;
    color: #219a52;
}

.article-meta .social a:hover {
    background-color: #219a52;
    border-color: #219a52;
    color: #fff;
}

.article-meta .social a .iconfont {
    font-size: 20px;
}

.article-body {
    font-weight: 400;
    font-size: 16px;
    color: #888888;
    line-height: 30px;
}

.article-body .quick-links li>a {
    font-weight: bold;
    font-size: 18px;
    color: #000000;
    line-height: 40px;
    text-decoration-line: underline;
    transition: all 0.3s ease;
}

.article-body .quick-links li>a:hover {
    color: rgba(48, 136, 100, 1);
}

.article-body .content-sections h2 {
    font-weight: bold;
    font-size: 18px;
    color: #000000;
    line-height: 1;
    padding-left: 13px;
    border-left: 4px solid rgba(48, 136, 100, 1);
    margin-bottom: .7em;
}

.article-body .content-sections .faq-list .faq-item:last-child {
    border-bottom: none;
}

/* 热门文章区域 */
.popular-articles-section {
    margin-bottom: 30px;
}

.popular-articles-list {
    margin-top: 25px;
}

.popular-article-item {
    display: flex;
    gap: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-article-item:not(:last-child) {
    margin-bottom: 30px;
}

.popular-article-image {
    width: 147px;
    height: 110px;
}

.popular-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-article-info {
    flex: 1;
    padding-top: 5px;
}

.popular-article-title {
    font-weight: 400;
    font-size: 16px;
    color: #333333;
    line-height: 24px;
    margin-bottom: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.popular-article-item:hover .popular-article-title {
    color: rgba(48, 136, 100, 1);
}

.popular-article-date {
    font-weight: 400;
    font-size: 13px;
    color: #888888;
    line-height: 1;
    margin-top: 28px;
}

.news-detail-content .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 33px;
    padding: 0 18px;
}

.news-detail-content .tags-list .tag-item {
    color: #219a52;
}

.news-detail-content .tags-list .tag-item span {
    color: rgba(102, 102, 102, 1);
    transition: all 0.3s ease;
}

.news-detail-content .tags-list .tag-item:hover span {
    color: #fff;
}

.content-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px 50px 45px;
    margin-bottom: 41px;
    box-shadow: 0px 6px 21px 0px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
}
.comment-list-card{
    margin-bottom: 0;
}
/* --- 表单区域样式 --- */

/* 标题头部 */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.green-bar {
    width: 4px;
    height: 18px;
    background-color: #409e6f;
    /* 标题左侧绿条 */
    margin-right: 10px;
    border-radius: 2px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

/* 大文本框 */
.textarea-wrapper {
    margin-bottom: 20px;
}

.comment-textarea {
    width: 100%;
    border: 1px solid rgba(231, 231, 231, 1);
    height: 218px;
border-radius: 10px;
border: 1px solid #E7E7E7;
    padding: 15px;
font-family: Microsoft YaHei;
font-weight: 400;
font-size: 16px;
color: #333;
line-height: 40px;
    resize: none;
    /* 禁止拖动大小 */
    outline: none;
    color: #606266;
}
.text-input::placeholder,
.comment-textarea::placeholder{
    color: #666666;
}
.comment-textarea:focus {
    border-color: #409e6f;
}

/* 输入框行布局 */
.input-row {
    display: flex;
    gap: 50px;
    /* 输入框之间的间距 */
    margin-bottom: 20px;
    width: 1158px;
    max-width: 100%;
}

.input-group {
    flex: 1;
    /* 让三个输入框平分宽度 */
    display: flex;
}

.text-input {
    width: 100%;
    height: 52px;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 16px;
    outline: none;
    color: #333;
    flex: 1;
}

.text-input:focus {
    border-color: #409e6f;
}

/* 验证码特殊处理 */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-image {
   margin-left: 18px;
   width: 120px;
    /* 防止图片被压缩 */
}
.captcha-image img{
    display: block;
    cursor: pointer;
}
/* 提交按钮 */
.submit-btn {
    background-color: #409e6f;
    color: white;
    border: none;
    padding: 0 48px;
    line-height: 52px;
    background: #308864;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #35855b;
}

/* --- 评论列表样式 --- */

.comment-item {
    padding-bottom: 38px;
}
.comment-item:not(:last-child){
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 25px;
}
.user-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #000;
}

.comment-content {
font-weight: 400;
font-size: 14px;
color: #888888;
line-height: 24px;
    margin-bottom: 25px;
    text-align: justify;
}

.publish-time {
font-weight: 400;
font-size: 14px;
color: #999999;
line-height: 1;
}
.news-details-box{
    padding-bottom: 66px;
    background: RGBA(248, 249, 251, 1);
}
@media (max-width:1440px) {
    .popular-article-item{
        gap: 20px;
    }
    .popular-article-title{
        margin-bottom: 20px;
    }
    .news-tabs{
        gap: 25px;
    }
}
@media (max-width:1199px) {
    .news-tabs{
        padding: 50px;
    }
    .news-list{
        width: 100%;
    }
    .captcha-image{
        margin-left: 8px;
    }
    .input-row{
        gap: 30px;
    }
    .news-detail-content .content-l{
        width: 100%;
    }
     .news-list-section{
        padding-bottom: 80px;
    }
    .news-detail-content,
    .news-content{
        flex-direction: column;
    }
    .news-sidebar{
        width: 100%;
        margin-top: 50px;
    }
}
@media (max-width:1024px) {
    .news-sidebar{
        margin-top: 45px;
    }
    .news-item{
        margin-bottom: 0;
    }
    .news-tabs{
        padding: 40px;
        margin-bottom: 40px;
    }
    .news-list-container{
        padding: 40px;
    }
    .submit-btn{
        line-height: 48px;
    }
    .input-row{
        flex-wrap: wrap;
    }
    .input-group{
        flex: none;
        width: 100%;
    }
    .news-detail-content .tags-list{
        margin-top: 20px;
    }
    .news-detail-section{
        padding-bottom: 60px;
    }
     .news-list-section{
        padding-bottom: 70px;
    }
}
@media (max-width: 768px) {
    .news-sidebar{
        margin-top: 35px;
    }
    .news-tabs{
        padding: 30px;
        margin-bottom: 35px;
    }
    .news-list-container{
        padding: 30px;
    }
    .news-list .pagination{
        margin-top: 35px;
    }
    .content-card{
        padding: 30px;
    }
    .article-content{
        padding: 30px;
    }
    .article-title{
        font-size: 22px;
    }
    .article-meta{
        flex-wrap: wrap;
    }
    .article-meta .social{
        margin-left: 0;
        width: 100%;
    }
    .comment-textarea{
        height: 160px;
    }
    .news-detail-section{
        padding-bottom: 50px;
    }
     .news-list-section{
        padding-bottom: 60px;
    }
    .news-tabs{
        gap: 20px;
    }
    .news-detail-content .tags-list .tag-item, .news-tab{
        min-width: 100px;
        line-height: 34px;
    }
    .news-item{
        gap: 20px;
    }
    .news-description{
        -webkit-line-clamp: 2;
    }
    .news-title{
        font-size: 22px;
    }
    .news-date{
        margin-top: 20px;
    }
    .news-info{
        padding-top: 0;
    }
    .news-image{
        width: 210px;
        height: 130px;
    }
    .news-sidebar .news-sidebar-title{
        font-size: 22px;
    }
}
@media (max-width:500px) {
    .news-sidebar .news-sidebar-title{
        font-size: 20px;
    }
    .news-sidebar{
        margin-top: 30px;
    }
    .news-image{
        width: 100%;
        height: auto;
    }
    .news-item{
        flex-direction: column;
    }
    .news-title{
        font-size: 20px;
    }
    .news-tabs{
        padding: 25px;
        margin-bottom: 30px;
        gap: 14px;
    }
    .news-list-container{
        padding: 25px;
    }
    .news-list-section{
        padding-bottom: 50px;
    }
    .news-list .pagination{
        margin-top: 30px;
    }
    .news-detail-content .tags-list .tag-item, .news-tab{
        min-width: 100px;
        line-height: 32px;
    }
    .content-card{
        padding: 25px;
    }
    .article-meta{
        margin-bottom: 20px;
    }
    .article-content{
        padding: 25px;
    }
    .article-title{
        font-size: 20px;
    }
    .news-detail-section{
        padding-bottom: 40px;
    }
}