/* BossV Team - G1 新闻列表样式 - Light Theme (2026-02-07) */
.news-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑 */
.ts-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    font-size: 14px;
    color: var(--muted);
}
.ts-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}
.ts-breadcrumb a:hover {
    color: var(--accent);
}
.ts-breadcrumb .separator {
    color: var(--muted);
    opacity: 0.6;
}

/* 分类导航 */
.news-category-nav {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(15, 91, 110, 0.06);
}
.news-category-nav h2 {
    font-size: 16px;
    color: var(--accent);
    margin: 0 0 15px;
    letter-spacing: 1px;
}
.news-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.category-item a {
    display: block;
    padding: 8px 18px;
    background: var(--surface-alt);
    color: var(--ink);
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    font-size: 14px;
}
.category-item a:hover,
.category-item.active a {
    background: rgba(22, 181, 169, 0.12);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(22, 181, 169, 0.15);
}

/* 页面标题 */
.news-page-header {
    margin-bottom: 30px;
}
.news-page-header h1 {
    font-size: 26px;
    color: var(--ink);
    margin: 0 0 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
    font-family: var(--font-display);
}
.news-page-header h1 span {
    color: var(--accent);
}
.news-page-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--muted);
}
.news-page-stats .stat-value {
    color: var(--accent);
    font-weight: 600;
}

/* 主体两栏布局 */
.news-main-layout {
    display: flex;
    gap: 30px;
}
.news-main-content {
    flex: 1;
    min-width: 0;
}
.news-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 新闻列表 */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(15, 91, 110, 0.05);
}
.news-item:hover {
    background: var(--surface);
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(15, 91, 110, 0.12);
}
.news-thumb {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-item:hover .news-thumb img {
    transform: scale(1.05);
}
.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.news-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}
.news-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s;
}
.news-title a:hover {
    color: var(--accent);
}
.news-summary {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
    align-items: center;
}
.news-meta i {
    margin-right: 4px;
}
.news-category-tag,
.news-category {
    background: rgba(22, 181, 169, 0.12);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* 分页 */
.news-pagination,
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 35px;
    flex-wrap: wrap;
}
.news-pagination a,
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    font-size: 14px;
}
.news-pagination a:hover,
.news-pagination a.active,
.pagination a:hover,
.pagination a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(22, 181, 169, 0.25);
}

/* 侧边栏 */
.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(15, 91, 110, 0.06);
}
.sidebar-card-title {
    font-size: 16px;
    color: var(--accent);
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    letter-spacing: 1px;
    font-weight: 600;
}
.sidebar-card .news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 侧边栏通用 news-item */
.sidebar-card .news-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    background: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    align-items: flex-start;
    box-shadow: none;
}
.sidebar-card .news-item:last-child {
    border-bottom: none;
}
.sidebar-card .news-item:hover {
    transform: none;
    box-shadow: none;
    background: none;
}
.sidebar-card .news-item a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s;
}
.sidebar-card .news-item a:hover {
    color: var(--accent);
}

/* 结构1: 相关新闻 — .news-thumb + .news-info */
.sidebar-card .news-thumb {
    width: 80px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-card .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sidebar-card .news-info {
    flex: 1;
    min-width: 0;
}
.sidebar-card .news-title {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}
.sidebar-card .news-title a {
    color: var(--ink);
    text-decoration: none;
}
.sidebar-card .news-title a:hover {
    color: var(--accent);
}
.sidebar-card .news-summary {
    display: none;
}
.sidebar-card .news-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
}

/* 结构2: 热门新闻 — .news-rank + .news-text */
.sidebar-card .news-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--surface-alt);
    color: var(--muted);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.sidebar-card .news-item:nth-child(1) .news-rank,
.sidebar-card .news-item:nth-child(2) .news-rank,
.sidebar-card .news-item:nth-child(3) .news-rank {
    background: var(--accent);
    color: #fff;
}
.sidebar-card .news-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 结构3: 最新资讯 — .news-image + .news-content */
.sidebar-card .news-image {
    width: 80px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.sidebar-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sidebar-card .news-image .news-category {
    display: none;
}
.sidebar-card .news-content {
    flex: 1;
    min-width: 0;
}
.sidebar-card .news-content h3 {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}
.sidebar-card .news-content h3 a {
    color: var(--ink);
    text-decoration: none;
}
.sidebar-card .news-content h3 a:hover {
    color: var(--accent);
}
.sidebar-card .news-content .news-excerpt {
    display: none;
}
.sidebar-card .news-content .news-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}
.sidebar-card .news-content .news-meta span {
    display: inline;
    gap: 0;
}

/* 无内容 */
.no-news {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

/* 响应式 */
@media (max-width: 992px) {
    .news-main-layout {
        flex-direction: column;
    }
    .news-sidebar {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    .news-thumb {
        width: 100%;
        height: 180px;
    }
    .news-title {
        font-size: 16px;
    }
    .news-page-header h1 {
        font-size: 22px;
    }
}
