/* ========================================
   news.css — 新闻资讯页面样式
   ======================================== */

:root {
    --primary: #1765d8;
    --primary-dark: #0f3d82;
    --primary-light: #eaf3ff;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-gray: #6b768d;
    --text-label: #4a5568;
    --border-light: rgba(23, 101, 216, 0.10);
    --shadow-card: 0 4px 24px rgba(17, 73, 135, 0.07);
    --tag-company: #1765d8;
    --tag-industry: #0f9d58;
    --tag-product: #e8502e;
    --tag-health: #8e44ad;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   面包屑
   ======================================== */

.breadcrumb-wrap {
    padding-top: 16px;
    padding-bottom: 16px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    color: #c0c8d4;
    margin: 0 2px;
}

.breadcrumb .current {
    color: var(--primary-dark);
    font-weight: 500;
}

/* ========================================
   新闻主体布局
   ======================================== */

.news-wrapper {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.news-main {
    flex: 1;
    min-width: 0;
}

.news-sidebar {
    flex: 0 0 300px;
}



/* ========================================
   新闻卡片列表
   ======================================== */

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

.news-card {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(17, 73, 135, 0.12);
}

/* 左侧图片 */
.news-card-img {
    flex: 0 0 220px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef4ff;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

/* 右侧内容 */
.news-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.news-tag {
    display: inline-block;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(23, 101, 216, 0.08);
    border-radius: 20px;
}

.news-date {
    font-size: 13px;
    color: var(--text-gray);
}

.news-card-title {
    margin-bottom: 10px;
}

.news-card-title a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
    display: -webkit-box;
    
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a:hover {
    color: var(--primary);
}

.news-card-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-more {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-more:hover {
    color: var(--primary-dark);
}

/* ========================================
   分页
   ======================================== */

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
}

.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
    color: var(--text-label);
    background: var(--bg-white);
    border: 1px solid rgba(23, 101, 216, 0.12);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-item:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.page-item.active {
    color: #fff;
    background: linear-gradient(90deg, #2569f4, #1c4fcf);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 105, 244, 0.25);
}

.page-item.disabled {
    color: #c0c8d4;
    pointer-events: none;
    background: #f8f9fb;
    border-color: #e8ecf2;
}

/* ========================================
   侧边栏
   ======================================== */

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 22px 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(23, 101, 216, 0.10);
    position: relative;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* 热门资讯列表 */
.hot-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-news-list li {
    margin-bottom: 2px;
}

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

.hot-news-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hot-news-list a:hover {
    background: #f8faff;
}

.hot-rank {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    background: #f0f2f5;
    border-radius: 6px;
}

.hot-rank.rank-1 {
    color: #fff;
    background: linear-gradient(135deg, #e8502e, #d14020);
}

.hot-rank.rank-2 {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.hot-rank.rank-3 {
    color: #fff;
    background: linear-gradient(135deg, #2569f4, #1c4fcf);
}

.hot-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-label);
    line-height: 1.5;
    display: -webkit-box; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-news-list a:hover .hot-text {
    color: var(--primary);
}

/* 联系我们侧边栏卡片 */
.sidebar-contact {
    background: linear-gradient(160deg, #f8fbff 0%, #eaf3ff 100%);
}

.sidebar-contact .contact-info {
    text-align: center;
}

.sidebar-contact .contact-info p {
    font-size: 14px;
    color: var(--text-label);
    line-height: 2;
    margin-bottom: 2px;
}

.sidebar-contact .contact-info p:first-child {
    font-size: 15px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.sidebar-contact-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 36px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #2569f4, #1c4fcf);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 105, 244, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 105, 244, 0.35);
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 1024px) {
    .news-wrapper {
        flex-direction: column;
    }

    .news-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }

    .news-card {
        flex-direction: column;
    }

    .news-card-img {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .news-tabs {
        gap: 8px;
    }

    .news-tab {
        padding: 6px 16px;
        font-size: 13px;
    }

    .news-card {
        padding: 16px;
    }

    .news-card-img {
        height: 180px;
    }

    .news-card-title a {
        font-size: 16px;
    }

    .news-card-desc {
        font-size: 13px;
    }

    .sidebar-card {
        padding: 18px 16px;
    }

    .sidebar-title {
        font-size: 16px;
    }

    .news-pagination {
        gap: 4px;
    }

    .page-item {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-card-img {
        height: 160px;
    }

    .news-card-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .news-pagination .page-item:nth-child(4),
    .news-pagination .page-item:nth-child(5),
    .news-pagination .page-item:nth-child(6) {
        display: none;
    }
}
