/* ===== 新闻页专用样式 ===== */

/* 面包屑 */
.breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #4a90d9;
}

.breadcrumb span {
    margin: 0 8px;
}

/* 主内容区 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 500px;
}

/* 页面标题 */
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

/* 新闻标签 */
.news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 15px;
}

.news-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    background: #f5f7fa;
}

.news-tab:hover {
    background: #e8f4fc;
    color: #4a90d9;
}

.news-tab.active {
    background: linear-gradient(135deg, #4a90d9 0%, #67b8de 100%);
    color: #fff;
}

/* 新闻布局 */
.news-layout {
    display: flex;
    gap: 30px;
}

.news-main {
    flex: 1;
}

/* 焦点新闻 */
.focus-item {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    text-decoration: none;
    color: inherit;
}

.focus-item .focus-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.5s;
}

.focus-item:hover .focus-img {
    transform: scale(1.05);
}

.focus-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 25px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.focus-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.focus-desc {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.focus-meta {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

/* 新闻列表标题 */
.news-list-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
}

/* 新闻项 */
.news-item-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-item-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 12px;
}

/* 新闻详情返回 */
.news-detail-back {
    margin-top: 30px;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f4f8;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #4a90d9;
    color: #fff;
}

/* 底部 */
.footer {
    background: linear-gradient(135deg, #e8f4fc 0%, #d4e9f7 100%);
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #4a90d9;
}

.footer-copyright {
    color: #999;
    font-size: 13px;
}

/* 覆盖公共LOGO尺寸 */
.logo img {
    height: 45px;
}
.nav-brand img {
    height: 50px;
}

/* 轮播图 - 全宽大幅风格 */
.banner {
    position: relative;
    width: 100%;
    height: 420px;
    background: #1a1a1a;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
}

.banner-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.banner-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
    font-size: 20px;
}

.banner-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.banner-arrow.prev { left: 15px; }
.banner-arrow.next { right: 15px; }

/* 焦点新闻 */
.focus-news {
    margin-bottom: 30px;
}

.focus-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.focus-news-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
}

.focus-news-item:first-child {
    grid-column: span 2;
    height: 350px;
}

.focus-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.focus-news-item:hover .focus-img {
    transform: scale(1.05);
}

.focus-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.focus-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.focus-news-item:first-child .focus-title {
    font-size: 26px;
}

.focus-meta {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* 标签导航 */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 15px;
}

.category-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    background: #f5f7fa;
}

.category-tab:hover {
    background: #e8f4fc;
    color: #4a90d9;
}

.category-tab.active {
    background: linear-gradient(135deg, #4a90d9 0%, #67b8de 100%);
    color: #fff;
}

/* 新闻列表 */
.news-list {
    display: grid;
    gap: 20px;
}

.news-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-item-img {
    width: 280px;
    height: 200px;
    flex-shrink: 0;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: #4a90d9;
}

.news-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
    margin-bottom: 12px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻详情 */
.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: 30px;
}

.news-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    gap: 25px;
    color: #999;
    font-size: 14px;
}

.news-detail-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a {
    background: #fff;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pagination a:hover {
    background: #4a90d9;
    color: #fff;
}

.pagination span {
    background: linear-gradient(135deg, #4a90d9 0%, #67b8de 100%);
    color: #fff;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state svg {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 响应式 */
@media (max-width: 768px) {
    .banner {
        height: 220px;
        border-radius: 0;
        margin-bottom: 20px;
    }

    .banner-slide img {
        object-position: center center;
    }

    .banner-title {
        font-size: 18px;
    }

    .banner-content {
        padding: 20px 15px 25px;
    }

    .banner-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .banner-arrow.prev { left: 10px; }
    .banner-arrow.next { right: 10px; }

    .focus-news-grid {
        grid-template-columns: 1fr;
    }

    .focus-news-item,
    .focus-news-item:first-child {
        height: 200px;
    }

    .focus-title,
    .focus-news-item:first-child .focus-title {
        font-size: 18px;
    }

    .category-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .category-tab {
        white-space: nowrap;
        padding: 6px 14px;
        font-size: 13px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item-img {
        width: 100%;
        height: 180px;
    }

    .news-item-content {
        padding: 15px;
    }

    .news-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-detail-title {
        font-size: 24px;
    }

    .news-detail-content {
        padding: 20px 15px;
        font-size: 15px;
    }

    .page-content {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 160px;
    }

    .banner-title {
        font-size: 16px;
    }

    .banner-content {
        padding: 15px 12px 20px;
    }

    .banner-dots {
        bottom: 8px;
        right: 10px;
    }

    .banner-dot {
        width: 8px;
        height: 8px;
    }

    .banner-arrow {
        display: none;
    }

    .focus-news-item,
    .focus-news-item:first-child {
        height: 160px;
    }

    .focus-overlay {
        padding: 40px 12px 12px;
    }

    .focus-title,
    .focus-news-item:first-child .focus-title {
        font-size: 16px;
    }
}
