/* ===== 新闻列表页专用样式 ===== */

/* 静态 Banner */
.page-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 250px;
    background-image: url('/assets/home/images/news-banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 142, 79, 0.8) 0%, rgba(0, 142, 79, 0.4) 100%);
}

.page-banner .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-banner h1 span {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #008e4f;
}

.breadcrumb i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.breadcrumb .current {
    color: #008e4f;
    font-weight: 500;
}

/* ===== 主体内容区域 - 左右布局 ===== */
.news-page {
    max-width: 1400px;
    margin: 3rem auto 5rem;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
}

/* ===== 左侧分类导航 ===== */
.news-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: flex-start;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* 新闻分类 */
.news-menu {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.news-menu__title {
    background: #008e4f;
    color: white;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-menu__title i {
    font-size: 1.2rem;
}

.news-menu__list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.news-menu__item {
    margin: 0;
    padding: 0;
}

.news-menu__item a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    gap: 0.5rem;
    justify-content: space-between;
}

.news-menu__item a i {
    color: #94a3b8;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.news-menu__item a:hover {
    background-color: #f8fafc;
    color: #008e4f;
    border-left-color: #008e4f;
}

.news-menu__item a:hover i {
    color: #008e4f;
    transform: translateX(3px);
}

.news-menu__item.active a {
    background-color: rgba(0, 142, 79, 0.05);
    color: #008e4f;
    border-left-color: #008e4f;
    font-weight: 500;
}

.news-menu__item.active a i {
    color: #008e4f;
}

.news-menu__count {
    background: #e2e8f0;
    color: #64748b;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-menu__item.active .news-menu__count {
    background: #008e4f;
    color: white;
}

/* 联系方式卡片 (与其他页面保持一致) */
.contact-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.contact-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #008e4f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card__title i {
    color: #008e4f;
    font-size: 1.2rem;
}

.contact-card__item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.contact-card__item i {
    color: #008e4f;
    font-size: 1rem;
    width: 20px;
    margin-top: 3px;
}

.contact-card__item-content {
    flex: 1;
}

.contact-card__item-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-card__item-value {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-card__item-value a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card__item-value a:hover {
    color: #008e4f;
}

.contact-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #008e4f;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    margin-top: 1rem;
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact-card__btn:hover {
    background: #006f3d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.2);
}

/* ===== 右侧新闻列表 ===== */
.news-main {
    flex: 1;
}

/* 列表头部 */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
}

.news-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.news-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
}

.news-sort select {
    padding: 0.5rem 1rem;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #334155;
    outline: none;
    cursor: pointer;
    background: transparent;
}

.news-sort i {
    color: #94a3b8;
    margin-right: 0.3rem;
}

/* 新闻列表 - 一行一条（区别于技术服务的水平列表） */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* 新闻卡片 - 水平布局，但样式区别于技术服务页 */
.news-card {
    display: flex;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #008e4f;
}

/* 左侧日期标签 - 区别于技术服务页的特色 */
.news-card__date-tag {
    width: 100px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-right: 1px solid #e2e8f0;
    text-align: center;
}

.news-card__day {
    font-size: 2rem;
    font-weight: 700;
    color: #008e4f;
    line-height: 1.2;
}

.news-card__month {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
}

.news-card__year {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* 新闻内容区域 */
.news-card__content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

/* 新闻图片 */
.news-card__image {
    width: 180px;
    height: 120px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    overflow: hidden;
}

.news-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.news-card:hover .news-card__image img {
    transform: scale(1.05);
}

/* 新闻信息 */
.news-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-card__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card__title a:hover {
    color: #008e4f;
    text-decoration: none;
}

.news-card__desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-card__meta {
    display: flex;
    gap: 1.5rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.news-card__meta i {
    color: #008e4f;
    margin-right: 0.3rem;
}

.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #008e4f;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
    background: rgba(0, 142, 79, 0.1);
    border-radius: 30px;
    transition: all 0.2s;
}

.news-card__link i {
    transition: transform 0.2s;
}

.news-card__link:hover {
    background: #008e4f;
    color: white;
}

.news-card__link:hover i {
    transform: translateX(3px);
}

/* 分类标签 - 区别于技术服务页的特色 */
.news-card__category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #008e4f;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    z-index: 2;
}

/* ===== 统一分页样式 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
}

.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-item:hover:not(.disabled):not(.active) {
    border-color: #008e4f;
    color: #008e4f;
    background: #f8fafc;
}

.page-item.active {
    background: #008e4f;
    border-color: #008e4f;
    color: white;
}

.page-item.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.page-dots {
    color: #94a3b8;
    padding: 0 5px;
    font-size: 0.9rem;
}

.page-item i {
    font-size: 0.8rem;
}

/* 无数据样式 */
.no-data {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 1.1rem;
    width: 100%;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1024px) {
    .news-page {
        flex-direction: column;
    }

    .news-sidebar {
        position: static;
        width: 100%;
        flex-direction: row;
        gap: 1.5rem;
    }

    .news-menu,
    .contact-card {
        width: 50%;
    }

    .news-card__content {
        flex-direction: column;
    }

    .news-card__image {
        width: 100%;
        height: 160px;
    }
}

@media screen and (max-width: 768px) {
    .page-banner {
        height: 180px;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .news-sidebar {
        flex-direction: column;
    }

    .news-menu,
    .contact-card {
        width: 100%;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-sort {
        width: 100%;
    }

    .news-sort select {
        width: 100%;
    }

    .news-card {
        flex-direction: column;
    }

    .news-card__date-tag {
        width: 100%;
        flex-direction: row;
        gap: 1rem;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem;
    }

    .news-card__day {
        font-size: 1.5rem;
    }

    .news-card__content {
        padding: 1rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-item {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .breadcrumb-wrapper {
        padding: 0 1rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .news-page {
        padding: 0 1rem;
    }

    .news-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .news-card__meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* 上下篇导航样式（用于详情页） */
.solution-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.nav-prev,
.nav-next {
    color: #008e4f;
    text-decoration: none;
    transition: all 0.3s;
    max-width: 45%;
}

.nav-prev:hover,
.nav-next:hover {
    color: #008e4f;
    text-decoration: underline;
}

.nav-prev i,
.nav-next i {
    margin: 0 5px;
}

/* 分享按钮样式（用于详情页） */
.share-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.share-label {
    margin-right: 15px;
    color: #666;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    color: #666;
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
}

.share-btn:hover {
    background: #008e4f;
    color: #fff;
    transform: translateY(-2px);
}

/* 解决方案相关样式（用于详情页） */
.solution-image {
    margin: 30px 0;
    text-align: center;
}

.solution-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.solution-excerpt {
    margin: 20px 0 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #008e4f;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    border-radius: 0 8px 8px 0;
}