/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #ffd700;
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Banner样式 */
.banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* 首页Banner样式 */
.index-banner {
    background: url('../css/images/banner.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    position: relative;
    z-index: 900;
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* 主要内容区域 */
.main-content {
    padding: 50px 0;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #2a5298;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: #ff6b6b;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 特色服务 */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    color: #2a5298;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* 资讯列表 */
.news-list {
    display: grid;
    gap: 20px;
}

.news-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    align-items: center;
}

.news-date {
    background: #2a5298;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.news-date .day {
    font-size: 24px;
    font-weight: bold;
}

.news-date .month {
    font-size: 14px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-content p {
    color: #666;
    font-size: 14px;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 14px;
}

/* 文章内容页样式 */
.article-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.article-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 32px;
    color: #2a5298;
    margin-bottom: 15px;
}

.article-meta {
    color: #666;
    font-size: 14px;
}

.article-meta span {
    margin-right: 20px;
}

.article-body h2 {
    color: #2a5298;
    margin: 30px 0 15px 0;
    font-size: 24px;
}

.article-body p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin: 15px 0;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tags span {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 5px;
    font-size: 12px;
}

.share a {
    color: #2a5298;
    text-decoration: none;
    margin-right: 10px;
}

.navigation {
    margin: 40px 0;
}

.prev-next {
    display: flex;
    justify-content: space-between;
}

.prev-next a {
    color: #2a5298;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
}

.prev-next a:hover {
    background: #2a5298;
    color: white;
}

.related-articles {
    margin-top: 40px;
}

.related-articles h3 {
    font-size: 24px;
    color: #2a5298;
    margin-bottom: 20px;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2a5298;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 100px;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 40px;
    background: #2a5298;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-weight: bold;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: #2a5298;
    margin-bottom: 10px;
}

/* 团队介绍样式 */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.member-title {
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav {
        display: none;
        gap: 0;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .index-banner {
        margin-top: 0;
        background-size: cover;
        min-height: 200px;
        height: auto;
    }
    
    .banner h1 {
        font-size: 24px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .prev-next {
        flex-direction: column;
        gap: 10px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-year {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
}
/* PC端隐藏移动端咨询按钮 */
.mobile-consult-btn {
    display: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(52, 152, 219, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    }
}

/* 在移动端显示咨询按钮 */
@media (max-width: 768px) {
    .mobile-consult-btn {
        display: flex;
        position: fixed;
        bottom: 30px;
        left: 20px;
        right: 20px;
        height: 50px;
        background: linear-gradient(135deg, #3498db, #2980b9);
        border-radius: 25px;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        font-weight: bold;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
        z-index: 9999;
        transition: all 0.3s ease;
        text-align: center;
        line-height: 1;
        padding: 0 20px;
        flex-direction: column;
        animation: pulse 2s infinite;
    }

    .mobile-consult-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
    }
    
    .mobile-consult-btn:active {
        transform: translateY(0);
    }
}

/* 友情链接区域样式 */
.links-section {
    background: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.links-content {
    margin-bottom: 30px;
}

.links-content:last-child {
    margin-bottom: 0;
}

.links-title {
    font-size: 18px;
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6b6b;
    display: inline-block;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.links-list a {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    color: #2a5298;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.links-list a:hover {
    background: #2a5298;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(42, 82, 152, 0.3);
    border-color: #2a5298;
}

/* 移动端友情链接样式 */
@media (max-width: 768px) {
    .links-section {
        padding: 30px 0;
    }
    
    .links-list {
        gap: 10px;
        justify-content: center;
    }
    
    .links-list a {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 15px;
    }
    
    .links-title {
        font-size: 16px;
        text-align: center;
        display: block;
        margin-bottom: 20px;
    }
}