/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: #ffd700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.login-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: white;
    color: #2a5298;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 5%;
    background-color: #f0f4f8;
    margin-top: 70px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb-item a {
    color: #1e3c72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2a5298;
}

.breadcrumb-item.active {
    color: #666;
}

/* 新闻文章样式 */
.news-article {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.news-header {
    margin-bottom: 2rem;
}

.news-title {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.news-category {
    background-color: #1e3c72;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-date, .news-author {
    color: #666;
    font-size: 0.9rem;
}

.news-image {
    margin: 2rem 0;
}

.news-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-caption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content h2 {
    font-size: 1.8rem;
    color: #1e3c72;
    margin: 2rem 0 1rem;
}

.news-content h3 {
    font-size: 1.5rem;
    color: #1e3c72;
    margin: 1.5rem 0 1rem;
}

.news-content ul, .news-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

.news-content blockquote {
    border-left: 4px solid #1e3c72;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.news-content th, .news-content td {
    border: 1px solid #e0e0e0;
    padding: 0.8rem;
    text-align: left;
}

.news-content th {
    background-color: #f0f4f8;
    font-weight: 600;
}

.news-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.news-tags {
    margin-bottom: 2rem;
}

.news-tags h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #e8f0fe;
    color: #1e3c72;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background-color: #d0e2f7;
}

.news-share {
    margin-bottom: 2rem;
}

.news-share h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
}

.share-weibo {
    background-color: #e6162d;
}

.share-weixin {
    background-color: #09bb07;
}

.share-qq {
    background-color: #1296db;
}

.related-news {
    margin-top: 3rem;
}

.related-news h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e3c72;
}

.related-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-news-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.related-news-item:hover {
    transform: translateY(-5px);
}

.related-news-image {
    height: 150px;
    overflow: hidden;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-news-item:hover .related-news-image img {
    transform: scale(1.05);
}

.related-news-content {
    padding: 1rem;
}

.related-news-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #1e3c72;
}

.related-news-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 5% 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #ffd700;
    color: #1e3c72;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .news-title {
        font-size: 2rem;
    }

    .news-content {
        font-size: 1rem;
    }

    .related-news-list {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}