/* 资讯分类聚合页 /news/category/{slug}.html */

.news-category-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.news-category-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.news-category-breadcrumb a {
    color: #4c5fd5;
    text-decoration: none;
}

.news-category-breadcrumb a:hover {
    text-decoration: underline;
}

.news-category-breadcrumb .bc-sep {
    margin: 0 8px;
    color: #bbb;
}

.news-category-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .news-category-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 28px;
    }
}

.news-category-main {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

@media (min-width: 768px) {
    .news-category-main {
        padding: 32px 36px 36px;
        border-radius: 20px;
    }
}

.news-category-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.news-category-h1 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
    color: #1a1a2e;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .news-category-h1 {
        font-size: 32px;
    }
}

.news-category-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.news-category-empty {
    margin: 24px 0;
    padding: 28px 16px;
    text-align: center;
    color: #888;
    font-size: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.news-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-category-item {
    border-bottom: 1px solid #f0f0f0;
}

.news-category-item:last-child {
    border-bottom: none;
}

.news-category-item-link {
    display: block;
    padding: 16px 4px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background 0.2s;
}

.news-category-item-link--media {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 6px;
}

.news-category-item-thumb-wrap {
    flex-shrink: 0;
    width: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef0f5;
}

.news-category-item-thumb {
    display: block;
    width: 100%;
    height: 88px;
    object-fit: cover;
}

.news-category-item-body {
    flex: 1;
    min-width: 0;
}

.news-category-item-excerpt {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #555;
}

.news-category-item-link:hover {
    background: #f8f9ff;
}

.news-category-item-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.45;
    margin-bottom: 6px;
}

.news-category-item-link:hover .news-category-item-title {
    color: #4c5fd5;
}

.news-category-item-meta {
    display: block;
    font-size: 13px;
    color: #888;
}

@media (max-width: 600px) {
    .news-category-item-link--media {
        flex-direction: column;
    }

    .news-category-item-thumb-wrap {
        width: 100%;
        max-width: 100%;
    }

    .news-category-item-thumb {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.news-category-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.news-category-pager .pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: opacity 0.2s, transform 0.2s;
}

.news-category-pager .pager-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.news-category-pager .pager-info {
    font-size: 14px;
    color: #666;
}

.news-category-load-more-wrap {
    margin-top: 8px;
    padding: 12px 0 8px;
    text-align: center;
}

.news-category-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: opacity 0.2s, transform 0.2s;
}

.news-category-load-more-btn:hover:not(:disabled) {
    opacity: 0.94;
    transform: translateY(-1px);
}

.news-category-load-more-btn:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.news-category-aside .sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .news-category-aside .sidebar-card {
        border-radius: 20px;
        padding: 24px;
    }
}

.news-category-aside .sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.news-category-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-category-aside-list li {
    margin: 0 0 4px;
}

.news-category-aside-list a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.news-category-aside-list a:hover {
    background: #f5f7fa;
    color: #4c5fd5;
}

.news-category-aside-list a.is-active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    color: #5b4dad;
    font-weight: 600;
}

.news-category-tip {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.news-category-tip a {
    color: #4c5fd5;
    text-decoration: none;
}

.news-category-tip a:hover {
    text-decoration: underline;
}
