/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #0a4b78;
    --secondary-color: #0d61a6;
    --accent-color: #1e88e5;
    --light-color: #f5f7fa;
    --dark-color: #333;
    --gray-color: #666;
    --light-blue: #e3f2fd;
}

body {
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    color: white;
}

/* 导航栏样式 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}


.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links ul li {
    margin-left: 30px;
}

.nav-links ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}
.nav-links ul li a:hover{
	color: var(--primary-color);
}

.nav-links.nav-links ul li a.active {
    color: var(--primary-color);
}

.nav-links ul li a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    bottom: -5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

 /* 新闻详情页样式 */
        .news-detail {
            padding: 100px 0 60px;
        }
        
        .breadcrumb {
            margin-bottom: 30px;
            font-size: 0.9rem;
            color: var(--gray-color);
        }
        
        .breadcrumb a {
            color: var(--primary-color);
            margin-right: 5px;
        }
        
        .breadcrumb a:hover {
            color: var(--accent-color);
        }
        
        .news-detail-content {
            background: white;
            padding: 40px;
            border-radius: 5px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .news-detail-content h1 {
            font-size: 2.2rem;
            color: var(--primary-color);
            margin-bottom: 20px;
            line-height: 1.4;
        }
        
        .news-meta {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
            color: var(--gray-color);
            font-size: 0.9rem;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .news-detail-image {
            margin-bottom: 30px;
        }
        
        .news-detail-image img {
            width: 100%;
            height: auto;
            border-radius: 5px;
            max-height: 500px;
            object-fit: cover;
        }
        
        .news-detail-text {
            line-height: 1.8;
            margin-bottom: 40px;
        }
        
        .news-detail-text p {
            margin-bottom: 20px;
            font-size: 1.05rem;
        }
        
        .news-share {
            margin-bottom: 40px;
            padding: 20px;
            background: var(--light-color);
            border-radius: 5px;
        }
        
        .news-share h3 {
            margin-bottom: 15px;
            font-size: 1.2rem;
        }
        
        .social-share {
            display: flex;
            gap: 15px;
        }
        
        .social-icon {
            display: inline-flex;
            align-items: center;
            padding: 8px 15px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }
        
        .social-icon i {
            margin-right: 5px;
            color: var(--primary-color);
        }
        
        .social-icon:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .news-related {
            padding-top: 30px;
            border-top: 1px solid #eee;
        }
        
        .news-related h3 {
            margin-bottom: 20px;
            font-size: 1.2rem;
        }
        
        .news-related ul {
            list-style: none;
        }
        
        .news-related ul li {
            margin-bottom: 10px;
            padding-left: 20px;
            position: relative;
        }
        
        .news-related ul li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--accent-color);
        }
        
        .news-related ul li a:hover {
            color: var(--accent-color);
            text-decoration: underline;
        }
        
        /* 响应式样式 */
        @media (max-width: 768px) {
            .news-detail {
                padding: 80px 0 40px;
            }
            
            .news-detail-content {
                padding: 20px;
            }
            
            .news-detail-content h1 {
                font-size: 1.8rem;
            }
            
            .social-share {
                flex-wrap: wrap;
            }
        }
		/* 表格容器 - 用于实现底部滚动条 */
		        .table-container {
		            width: 100%;
		            overflow-x: auto; /* 横向滚动 */
		            margin-top: 20px;
		            border: 1px solid #ccc;
		            border-radius: 4px;
		        }
		
		        /* 表格样式 */
		        .simple-table {
		            width: 100%;
		            border-collapse: collapse;
		            min-width: 600px; /* 确保表格有足够宽度触发滚动 */
		        }
		
		        /* 表头样式 */
		        .simple-table th {
		            background-color: #f2f2f2;
		            border: 1px solid #ddd;
		            padding: 12px;
		            text-align: left;
		            font-weight: bold;
		        }
		
		        /* 表格单元格样式 */
		        .simple-table td {
		            border: 1px solid #ddd;
		            padding: 12px;
		        }
		
		        /* 行悬停效果 */
		        .simple-table tr:hover {
		            background-color: #f9f9f9;
		        }
/* 联系我们样式 */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info ul {
    list-style: none;
    margin-top: 20px;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info ul li i {
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

/* 页脚样式 */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 15px;
}

.footer-logo h2::after {
    display: none;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact ul li i {
    margin-right: 15px;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}
 /* 返回顶部按钮样式 */
        #back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: #3498db;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            opacity: 0;
            visibility: hidden;
            z-index: 1000;
            border: none;
        }
        
        #back-to-top.show {
            opacity: 1;
            visibility: visible;
        }
        
        #back-to-top:hover {
            background-color: #2980b9;
            transform: translateY(-5px);
        }
/* 响应式样式 */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        text-align: center;
    }

    .nav-links ul li {
        margin: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }

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

    h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 表单提交成功消息 */
.form-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
