/* news.css - 新闻详情页样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #004a99;
    --accent-color: #00a8e8;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f8fa;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* 顶部导航 */
.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-home {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.back-home:hover {
    opacity: 0.8;
}

/* 新闻列表头部 */
.news-list-header {
    background: var(--primary-color);
    color: white;
    padding: 60px 2rem 40px;
    text-align: center;
}

.news-list-header-content {
    max-width: 900px;
    margin: 0 auto;
}

.news-list-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.news-list-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 新闻列表主区域 */
.news-main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 2rem;
}

/* 新闻卡片容器 */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* 新闻卡片 */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: fit-content;
}

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

.news-card-content {
    padding: 25px;
}

.news-card-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.news-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 10px 0 15px;
    line-height: 1.4;
}

.news-card-summary {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--bg-light);
    padding-top: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.load-more-btn {
    display: block;
    width: 200px;
    margin: 40px auto 0;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.load-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.loading-indicator {
    text-align: center;
    padding: 30px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.no-more {
    text-align: center;
    padding: 30px;
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* 文章头部 (保留原有样式) */
.article-header {
    background: white;
    padding: 60px 2rem 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-header-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: center;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: var(--text-light);
    font-size: 0.95rem;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    font-size: 1.1rem;
}

/* 文章主体 (保留原有样式) */
.article-body {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 2rem;
}

.article-cover {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.article-content {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 40px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 30px 0 15px 0;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-dark);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 30px;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 10px;
}

.article-content blockquote {
    background: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
}

/* 图片画廊 (保留原有样式) */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* 相关新闻 (保留原有样式) */
.related-news {
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 0 2rem;
}

.related-news h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-item-content {
    padding: 20px;
}

.related-item-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.related-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}

/* 页脚 (保留原有样式) */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 40px 2rem 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 回到顶部 (保留原有样式) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 999;
    font-size: 1.5rem;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-list-header {
        padding: 40px 1rem 30px;
    }
    
    .news-list-header h1 {
        font-size: 2rem;
    }
    
    .news-main {
        padding: 0 1rem;
        margin: 20px auto;
    }
    
    .news-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .news-card-title {
        font-size: 1.2rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }

    .article-cover {
        height: 300px;
    }

    .article-content {
        padding: 30px 20px;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .related-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-bar-content {
        padding: 0 1rem;
    }
    
    .news-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-card-content {
        padding: 20px;
    }

    .article-header {
        padding: 40px 1rem 30px;
    }

    .article-body,
    .related-news {
        padding: 0 1rem;
    }

    .article-content {
        padding: 25px 15px;
    }

    .article-cover {
        height: 250px;
        border-radius: 10px;
    }
}

/* 打印样式 */
@media print {
    .top-bar,
    .related-news,
    .footer,
    .back-to-top {
        display: none;
    }

    .article-content {
        box-shadow: none;
    }
}