/* News Page Specific Styles - Premium Minimalist Industrial Edition */

/* 1. News Banner */
.news-banner {
    height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
}

.news-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.news-banner .container {
    position: relative;
    z-index: 5;
}

.news-banner__content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.news-banner__breadcrumb {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-banner__breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

.news-banner__breadcrumb a:hover {
    color: #EF7721;
}

.bc-divider {
    color: rgba(255, 255, 255, 0.3);
}

.news-banner__breadcrumb .active {
    color: #EF7721;
    font-weight: 500;
}


/* 2. Page Container */
.news-page {
    padding: 80px 0;
    background: #fcfcfc;
}

.news-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}


/* 3. Main Content - News List */
.news-main {
    flex-grow: 1;
    min-width: 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 45px;
}

/* 极致考究的新闻卡片排版 */
.news-item {
    display: flex;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: stretch;
}

.news-item__img {
    display: block;
    width: 320px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #f9fafb;
}

.news-item__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-item__content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.news-item__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-category {
    font-size: 12px;
    color: #EF7721;
    background: #fdf2e9;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.news-date {
    font-size: 13.5px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-item__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item__title a {
    color: #111827;
    transition: color 0.2s ease;
}

.news-item__desc {
    font-size: 14.5px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.news-item__footer {
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.news-item__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #EF7721;
    position: relative;
}

.news-item__more span {
    position: relative;
}

/* 简约底线悬停动效 */
.news-item__more span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #EF7721;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.arrow-svg {
    transition: transform 0.25s ease;
}

/* 卡片悬停微移效果 */
.news-item:hover {
    transform: translateY(-4px);
    border-color: #EF7721;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.news-item:hover .news-item__img img {
    transform: scale(1.03);
}

.news-item:hover .news-item__title a {
    color: #EF7721;
}

.news-item:hover .news-item__more span::after {
    transform: scaleX(1);
}

.news-item:hover .arrow-svg {
    transform: translateX(3px);
}


/* 4. High-End Industrial Sidebar */
.news-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
}

.news-sidebar__box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px 24px;
    margin-bottom: 24px;
}

.news-sidebar__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 3px solid #EF7721;
    line-height: 1;
}

/* 新闻分类列表 */
.news-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-category-list li {
    margin-bottom: 6px;
}

.news-category-list li:last-child {
    margin-bottom: 0;
}

.news-category-list a {
    display: block;
    padding: 11px 16px;
    color: #4b5563;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.news-category-list a:hover {
    color: #EF7721;
    background: #f9fafb;
    padding-left: 20px;
}

.news-category-list li.active a {
    background: #fdf2e9;
    color: #EF7721;
    font-weight: 600;
    padding-left: 20px;
}

/* 热门新闻列表 (Mini list without tech badges) */
.news-hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-hot-list li {
    padding-bottom: 16px;
    border-bottom: 1px dashed #e5e7eb;
}

.news-hot-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.news-hot-list a {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hot-img {
    width: 72px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #edf2f7;
    flex-shrink: 0;
}

.hot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hot-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hot-text h4 {
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.hot-text span {
    font-size: 11px;
    color: #9ca3af;
}

.news-hot-list a:hover .hot-img img {
    transform: scale(1.04);
}

.news-hot-list a:hover .hot-text h4 {
    color: #EF7721;
}


/* 5. Minimalist Pagination */
.news-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    border-top: 1px solid #e5e7eb;
    padding-top: 35px;
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 36px;
    padding: 0 12px;
    border-radius: 6px;
    color: #4b5563;
    font-size: 14.5px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.news-pagination a {
    border: none;
}

.news-pagination span {
    border: 1px solid #d1d5db;
}

.news-pagination a:hover {
    border-color: #EF7721;
    color: #EF7721;
    background: #fdf2e9;
}

.news-pagination a.active,
.news-pagination span.active {
    background: #EF7721;
    border-color: #EF7721;
    color: #fff;
}

.news-pagination span.page-dots {
    border: none;
    background: transparent;
    padding: 0;
    min-width: auto;
    color: #9ca3af;
}


/* 6. Multi-Device Adaptivity */
@media (max-width: 1200px) {
    .news-layout {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .news-banner {
        height: 300px;
    }
    .news-banner__content h1 {
        font-size: 34px;
    }
    .news-layout {
        flex-direction: column;
        gap: 35px;
    }
    .news-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .news-banner {
        height: 240px;
    }
    .news-banner__content h1 {
        font-size: 28px;
    }
    .news-item {
        flex-direction: column;
    }
    .news-item__img {
        width: 100%;
        height: 200px;
    }
    .news-item__content {
        padding: 24px;
    }
    .news-sidebar__box {
        padding: 24px 20px;
    }
}
