/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1606px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
#header {
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo img {
    max-height: 60px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 40px;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #009688;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* 轮播图 */
#banner {
    margin-top: 0;
    position: relative;
    height: calc(100vh - 100px);
    overflow: hidden;
    padding-top: 100px;
}

.banner-slider {
    width: 100%;
    height: 100%;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.banner-item.active {
    opacity: 1;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #009688;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #00796b;
}

/* 轮播指示器 */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-indicators span.active {
    background-color: #fff;
}

/* 页脚样式 */
#footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 30px;
}

#footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    width: 25%;
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #009688;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #444;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #009688;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
    font-size: 14px;
}

/* 移动端导航菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    z-index: 1001;
    transition: right 0.3s;
    padding: 50px 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu li {
    margin-bottom: 20px;
}

.mobile-menu a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #009688;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    #banner {
        height: 500px;
    }
    
    .banner-content h2 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .footer-column {
        width: 45%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    #banner {
        height: 400px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    #footer {
        padding: 40px 0 20px;
    }
    
    .footer-column h3 {
        font-size: 16px;
    }
    
    .footer-column a {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    #banner {
        height: 300px;
    }
    
    .banner-content {
        left: 5%;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* 添加logo图片宽度控制 */
    .logo img {
        width: 180px;
        max-height: none;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 25px;
        padding: 0;
    }
    
    .footer-top {
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
    
    .mobile-menu {
        width: 90%;
    }
}

/* 内容1板块标签切换样式 */
#content1 {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9;
}

#content1 .container {
    margin: 0 auto;
    padding: 0 20px;
}

.content1-header h2 {
    font-size: 3rem;
    color: #122a88;
    margin-bottom: 30px;
    letter-spacing: 1px;
    font-weight: 700;
}

.content1-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    width: 82vw;
    margin-left: auto;
    margin-right: auto;
}

.content1-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
}

.content1-tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    font-weight: 400;
    transition: color 0.3s;
}

.tab-icon {
    width: 48px;
    height: 48px;
    margin-right: 10px;
}

.content1-tab:hover {
    color: #122a88;
}

.content1-tab.active {
    color: #122a88;
    font-weight: 700;
}

.content1-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #122a88;
}

.tab-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.content1-content {
    margin-top: 50px;
}

.content1-image {
    width: 82vw;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.content1-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content1-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content1-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content1-header h2 {
        font-size: 28px;
    }
    .content1-tabs {
        gap: 20px;
    }
    .content1-tab {
        font-size: 16px;
    }
    .tab-icon {
        width: 36px;
        height: 36px;
    }
}

/* 替换现有的两个重复的@media (max-width: 576px)规则，使用一个完整的规则 */
@media (max-width: 576px) {
    /* 改进标签容器样式 */
    .content1-tabs {
        display: flex;
        justify-content: space-around;
        padding: 10px 5px;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        margin-bottom: 20px;
        width: 100%;
        overflow: visible;
    }
    
    /* 移除所有滚动条和箭头样式 */
    .content1-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .content1-tabs::after,
    .content1-tabs::before {
        display: none !important;
    }
    
    /* 简化标签样式，减小尺寸 */
    .content1-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px 10px;
        margin: 0 2px;
        border-radius: 8px;
        background-color: #f5f5f5;
        transition: all 0.3s ease;
        min-width: 60px; /* 大幅减小最小宽度 */
        flex: 1;
        max-width: 25%;
    }
    
    /* 优化激活状态样式 */
    .content1-tab.active {
        background-color: #122a88;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,122,255,0.3);
    }
    
    /* 移除激活状态的下划线 */
    .content1-tab.active::after {
        display: none;
    }
    
    /* 减小图标尺寸 */
    .tab-icon {
        width: 24px; /* 减小图标尺寸 */
        height: 24px;
        margin-right: 0;
        margin-bottom: 4px;
    }
    
    /* 减小字体大小 */
    .content1-tab {
        font-size: 11px; /* 减小字体大小 */
        font-weight: 500;
    }
    
    /* 美化图片容器 */
    .content1-image {
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    /* 优化内容显示区域 */
    .content1-content {
        margin-top: 20px;
    }
    
    /* 移动端页脚样式 */
    .footer-column {
        width: 100%;
        margin-bottom: 25px;
        padding: 0;
    }
    
    /* 隐藏前两个footer-column */
    .footer-column:nth-child(1),
    .footer-column:nth-child(2) {
        display: none;
    }
    
    .footer-top {
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
    
    .mobile-menu {
        width: 90%;
    }
}
@media (max-width: 576px) {
    .footer-column {
        width: 100%;
        margin-bottom: 25px;
        padding: 0;
    }
    
    /* 隐藏前两个footer-column */
    .footer-column:nth-child(1),
    .footer-column:nth-child(2) {
        display: none;
    }
    
    .footer-top {
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
    
    .mobile-menu {
        width: 90%;
    }
}

/* 在576px媒体查询中添加移动版图片切换和溢出隐藏 */
@media (max-width: 576px) {
    
    
    /* 添加logo图片宽度控制 */
    .logo img {
        width: 180px;
        max-height: none;
    }
    
    /* 移动端切换为移动版图片 */
    #tab-1 .content1-image img {
        content: url('../images/p1m.jpg');
    }
    
    #tab-2 .content1-image img {
        content: url('../images/p2m.jpg');
    }
    
    #tab-3 .content1-image img {
        content: url('../images/p3m.jpg');
    }
    
    #tab-4 .content1-image img {
        content: url('../images/p4m.jpg');
    }
    
    /* 图片放大并隐藏溢出部分 */
    .content1-image {
        height: 280px; /* 固定高度 */
        overflow: hidden; /* 隐藏溢出部分 */
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }
    
    /* 图片放大20% */
    .content1-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.2); /* 放大20% */
        transition: transform 0.3s ease;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 25px;
        padding: 0;
    }
    
}