/* 新闻中心页面样式 */

/* 新闻中心标题区域 */
.news-hero {
    height: 150px !important;
    min-height: 150px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 0 10px;
    text-align: center;
}

.news-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out;
}

.news-hero p {
    font-size: 1.2rem;
    color: #7f8c8d;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* 新闻分类标签（内联在新闻列表区域） */
.news-tabs-inline {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    margin-top: 0;
    padding-top: 10px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    padding: 8px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
    min-width: 100px;
}

.tab-btn:hover {
    color: #1e88e5;
    border-color: #1e88e5;
    background-color: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.2);
}

.tab-btn.active {
    color: white;
    background-color: #1e88e5;
    border-color: #1e88e5;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* 新闻列表区域 */
.news-list-section {
    padding: 20px 0 60px;
    min-height: 500px;
}

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

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

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

/* 新闻卡片样式 */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-card:hover::after {
    content: '点击查看公众号文章';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(30, 136, 229, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 10;
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #1e88e5;
    color: white;
    font-size: 0.85rem;
    border-radius: 15px;
    margin-bottom: 10px;
    width: fit-content;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-keywords {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 0.85rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-source {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-source i {
    color: #1e88e5;
}

.news-card-detail-link {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card:hover .news-card-detail-link {
    opacity: 1;
}

.news-card-detail-link:hover {
    background: #1e88e5;
    color: white;
}

/* 视频卡片特殊样式 */
.video-card {
    position: relative;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(30, 136, 229, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-card:hover .video-play-icon {
    background-color: rgba(30, 136, 229, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* 加载更多按钮 */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background-color: #1e88e5;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
}

.load-more-btn:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.load-more-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

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

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
}

/* 新闻详情模态框 */
.news-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.news-modal.active {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #333;
    background-color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-category {
    display: inline-block;
    padding: 6px 15px;
    background-color: #1e88e5;
    color: white;
    font-size: 0.9rem;
    border-radius: 15px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.modal-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.modal-content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.modal-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.modal-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.modal-source {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.modal-source a {
    color: #1e88e5;
    text-decoration: none;
}

.modal-source a:hover {
    text-decoration: underline;
}

/* 视频播放器样式 */
.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .news-hero h1 {
        font-size: 2rem;
    }

    .news-hero p {
        font-size: 1rem;
    }
}

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

    .tab-buttons {
        gap: 10px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .news-hero {
        height: 120px !important;
        min-height: 120px !important;
        padding: 25px 0 15px;
    }

    .news-hero h1 {
        font-size: 2rem;
    }

    .news-hero p {
        font-size: 1.1rem;
    }

    .news-hero h1 {
        font-size: 2rem;
    }

    .news-hero p {
        font-size: 1.1rem;
    }

    .news-detail-article {
        padding: 20px;
    }

    .news-detail-title {
        font-size: 1.5rem;
    }

    .news-detail-content {
        font-size: 1rem;
    }
}

