/* ============================================================
   文章模块样式 (article.css)
   合并自: article_detail.css + article_list.css
   ============================================================ */

@import url('prev-next-nav.css');

/* 面包屑导航 */
.breadcrumb-nav {
    background: transparent;
    border-bottom: none;
    padding: 15px 0;
}

.breadcrumb {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    line-height: 1;
}

.breadcrumb-item {
    font-size: 14px;
    color: #999;
    line-height: 1;
}

.breadcrumb-item a {
    color: #666;
    line-height: 1;
}

.breadcrumb-item a:hover {
    color: #1890ff;
}

.breadcrumb-item.active {
    color: #333;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    margin: 0 6px;
    color: #ccc;
    line-height: 1;
}

/* 页面头部 */
.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 70px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #555;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-desc {
    font-size: 16px;
    opacity: .85;
}

.channel-content {
    padding: 10px 0 40px;
}

.channel-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}

.sub-channel-nav {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.sub-channel-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
}

.sub-channel-item a {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    transition: all .3s;
}

.sub-channel-item a:hover,
.sub-channel-item.active a {
    background: #1890ff;
    color: #fff;
}

/* 侧边栏组件 */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1890ff;
}

.widget-list {
    list-style: none;
}

.widget-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.widget-item a {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .3s;
}

.widget-item a:hover {
    color: #1890ff;
}

.widget-item.active a {
    color: #1890ff;
    font-weight: 600;
}

/* 热门排行 */
.hot-list .widget-item a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.hot-rank-top {
    background: #ff4d4f;
    color: #fff;
}

.hot-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.hot-views {
    font-size: 12px;
    color: #ccc;
    flex-shrink: 0;
}

/* 分页 */
.pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.page-item a,
.page-item span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: all .3s;
}

.page-item a:hover {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.page-item.active a {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.page-item.disabled span {
    color: #ccc;
    cursor: not-allowed;
}

.pagination-info {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #999;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state p {
    font-size: 16px;
    margin-top: 10px;
}

/* ---- 文章详情页 ---- */
.article-detail-section {
    padding: 30px 0;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.article-main {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.article-main-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.article-main-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.article-body {
    line-height: 1.8;
    font-size: 15px;
    color: #333;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.article-body p {
    margin-bottom: 15px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 20px 0 10px;
    font-weight: 600;
}

/* 文章分享 */
.article-share {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-size: 14px;
    color: #999;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: opacity .3s;
}

.share-btn:hover {
    opacity: .85;
}

.share-weixin {
    background: #07c160;
}

.share-weibo {
    background: #e6162d;
}

.share-qq {
    background: #12b7f5;
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    background: #fafafa;
    border-radius: 8px;
    padding: 15px 20px;
}

.article-nav .nav-item {
    flex: 1;
}

.article-nav .nav-item:last-child {
    text-align: right;
}

.nav-label {
    font-size: 13px;
    color: #999;
    display: block;
    margin-bottom: 5px;
}

.nav-link {
    color: #1890ff;
    font-size: 14px;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-none {
    color: #ccc;
    font-size: 14px;
}

/* 相关文章 */
.related-list .widget-item a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- 文章列表页 ---- */
.article-list {}

.article-list-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: all .3s;
}

.article-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.article-list-image {
    width: 200px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-list-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.article-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.article-list-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-list-title a {
    color: #333;
}

.article-list-title a:hover {
    color: #1890ff;
}

.article-list-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-list-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #bbb;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-header {
        height: 200px;
        padding-top: 60px;
    }

    .page-title {
        font-size: 24px;
    }

    .article-detail-layout {
        grid-template-columns: 1fr;
    }

    .article-main-title {
        font-size: 22px;
    }

    .article-main-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .article-nav {
        flex-direction: column;
        gap: 10px;
    }

    .article-nav .nav-item:last-child {
        text-align: left;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .channel-layout {
        grid-template-columns: 1fr;
    }

    .article-list-item {
        flex-direction: column;
    }

    .article-list-image {
        width: 100%;
        height: 200px;
    }

    .channel-title {
        font-size: 28px;
    }
}

/* ============================================================
   新闻列表页样式
   ============================================================ */

.news-categories {
    padding: 50px 0 0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-tab {
    padding: 10px 20px;
    margin: 0 5px 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .3s;
    color: #666;
    text-decoration: none;
    display: inline-block;
}

.category-tab:hover {
    color: #c8a97e;
}

.category-tab.active {
    color: #c8a97e;
    border-bottom-color: #c8a97e;
}

.news-content-wrapper {
    display: none;
}

.news-content-wrapper.active {
    display: block;
}

.news-list {
    padding: 0 0 100px;
}

.featured-news {
    display: flex;
    margin-bottom: 50px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.featured-news-image {
    flex: 1;
    overflow: hidden;
    min-height: 400px;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform .5s;
}

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

.featured-news-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.news-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #c8a97e;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    width: fit-content;
}

.featured-news-title {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.featured-news-excerpt {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all .3s;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform .5s;
}

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

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-link {
    font-size: 14px;
    font-weight: 500;
    color: #c8a97e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-link i {
    margin-left: 5px;
    transition: transform .3s;
}

.news-link:hover i {
    transform: translateX(5px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #c8a97e;
    color: #c8a97e;
    text-decoration: none;
    transition: all .3s;
    border-radius: 4px;
}

.pagination a:hover,
.pagination a.active {
    background-color: #555;
    color: #fff;
    border-color: #555;
}

.pagination a.disabled {
    color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .prev,
.pagination .next {
    min-width: 80px;
}

.subscribe-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #fff;
}

.subscribe-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.subscribe-text {
    margin-bottom: 30px;
    color: #ccc;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.subscribe-form input::placeholder {
    color: #999;
}

.subscribe-form button {
    padding: 15px 30px;
    background-color: #c8a97e;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all .3s;
}

.subscribe-form button:hover {
    background-color: #b89a6e;
}

.btn-accent {
    background-color: #c8a97e;
    color: #fff;
    border: none;
}

.featured-news-content .btn-outline {
    display: inline-block;
    width: auto;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    color: #000;
    border: 1px solid #000;
    background: transparent;
}

.featured-news-content .btn-outline:hover {
    color: #c8a97e;
    border-color: #c8a97e;
}

@media (min-width: 769px) {
    .btn-outline {
        display: inline-block;
        padding: 12px 30px;
        color: #000;
        border-color: #000;
        background: transparent;
    }
    
    .btn-outline:hover {
        color: #c8a97e;
        border-color: #c8a97e;
    }
}

@media (max-width: 992px) {
    .featured-news {
        flex-direction: column;
    }
    
    .featured-news-image, .featured-news-content {
        flex: none;
        width: 100%;
    }
    
    .featured-news-image {
        height: 300px;
        min-height: auto;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .category-tab {
        white-space: nowrap;
        flex-shrink: 0;
        margin: 0 8px 0;
    }
    
    .category-tabs.scrollable {
        justify-content: flex-start;
    }
    
    .category-tabs.scrollable .category-tab {
        margin: 0 5px 0;
    }
    
    .featured-news-content {
        padding: 20px;
    }
    
    .featured-news-title {
        font-size: 24px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .news-image {
        height: 150px;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   新闻详情页样式
   ============================================================ */

.news-detail {
    padding: 60px 0;
}

.news-header {
    text-align: center;
    margin-bottom: 10px;
}

.news-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.news-meta {
    font-size: 14px;
    color: #999;
}

.news-date {
    color: #999;
}

.news-cover {
    margin-bottom: 40px;
}

.news-cover img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: fill;
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #1a1a1a;
}

.news-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #1a1a1a;
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.news-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #f9f9f9;
    border-left: 4px solid #c8a97e;
    font-style: italic;
    color: #666;
}

.news-footer {
    padding-top: 30px;
    border-top: 1px solid #eee;
    margin-bottom: 60px;
}

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

.news-share span {
    font-size: 16px;
    color: #333;
}

.news-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    font-size: 18px;
    transition: all .3s;
}

.news-share a:hover {
    background: #c8a97e;
    color: #fff;
}

.news-share .share-weixin:hover {
    background: #07c160;
}

.news-share .share-weibo:hover {
    background: #e6162d;
}

.news-share .share-qq:hover {
    background: #12b7f5;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.prev-news,
.next-news {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: color .3s;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prev-news:hover,
.next-news:hover {
    color: #c8a97e;
}

.prev-news.disabled,
.next-news.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.prev-news i,
.next-news i {
    margin: 0 5px;
}

.related-news {
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.related-item {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all .3s;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-item img {
    width: 100%;
    height: 200px;
    object-fit: fill;
}

.related-item h4 {
    font-size: 16px;
    font-weight: 500;
    padding: 15px 15px 5px;
    line-height: 1.4;
    color: #333;
}

.related-item .news-date {
    padding: 0 15px 15px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .news-detail {
        padding: 40px 0;
    }

    .news-title {
        font-size: 28px;
    }

    .news-content h2 {
        font-size: 24px;
    }

    .news-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .prev-news,
    .next-news {
        max-width: 100%;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .related-item img {
        width: 100%;
        height: 120px;
        object-fit: fill;
    }
    
    .related-item h4 {
        font-size: 14px;
        padding: 10px 10px 5px;
    }
    
    .related-item .news-date {
        padding: 0 10px 10px;
        font-size: 12px;
    }
}
