/* 全局样式重置 */
* {
    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;
}

/* PC端banner文字美化 */
.banner-content {
    position: absolute;
    top: 50%;
    left: 15%; /* 调整到更靠右的位置，增加留白 */
    transform: translateY(-50%);
    color: #122a88;
    background-color: #ddeaf7; /* 半透明白色背景 */
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.banner-content h2 {
    font-size: 52px; /* 增大标题字体 */
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #122a88;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.banner-content p {
    font-size: 22px;
    margin-bottom: 20px; /* 减少段落间距 */
    line-height: 1.6;
    color: #333;
    text-shadow: none;
    font-weight: 500;
}

/* 为最后一段添加特殊样式 */
.banner-content p:last-child {
    color: #122a88;
    font-weight: 700;
    margin-bottom: 0;
}



.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;
        position: relative;
    }
    
    .banner-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: #ffffff; /* 改为白色文字以提高对比度 */
        background-color: #122a88; /* 添加半透明背景 */
        padding: 20px 15px;
        border-radius: 12px;
        width: 90%;
        max-width: 320px;
        text-shadow: none; /* 移除文字阴影，使用背景提高可读性 */
    }
    
    .banner-content h2 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 12px;
        line-height: 1.3;
        color: #ffffff;
    }
    
    .banner-content p {
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.4;
        color: #f0f0f0;
    }
    
    .banner-content p:last-child {
        margin-bottom: 0;
        font-weight: 500;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        margin-top: 15px;
        background-color: #ffffff;
        color: #122a88;
        border: none;
        border-radius: 25px;
        font-weight: 600;
    }
    
    /* 添加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%;
    }
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 内容1板块样式 */
#content1 {
    position: relative;
    overflow: hidden;
}

.content1-bg {
    position: relative;
    width: 100%;
    height: 100vh; /* 占满整个视口高度 */
    overflow: hidden; /* 防止溢出 */
}

.content1-bg img {
    width: 100%;
    height: 100%; /* 占满容器高度 */
    object-fit: cover; /* 保持图片比例并覆盖整个容器 */
    display: block;
}

.content1-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    padding: 0 20px;
}

.content1-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 修改卡片基本样式 */
.content1-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: calc(25% - 22.5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

.content1-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content1-card:active {
    transform: scale(1.02);
}

/* 修改卡片文字部分样式 */
.card-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: #122a88;
    margin-bottom: 15px;
}

/* 添加黄色按钮样式 - 修改为默认无背景 */
.card-button {
    background-color: transparent; /* 默认透明背景 */
    color: #000; /* 默认蓝色文字 */
    font-size: 16px;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    width: fit-content;
}

/* 鼠标浮动时显示黄色背景 */
.content1-card:hover .card-button {
    background-color: #FFD700; /* 黄色背景 */
    color: #333; /* 深色文字 */
    transform: scale(1.05);
}

/* 添加底部小字描述样式 - 默认隐藏 */
.card-desc {
    font-size: 12px;
    color: #000;
    line-height: 1.4;
    display: none; /* 默认隐藏 */
    opacity: 0;
    transition: all 0.3s ease;
}

/* 鼠标浮动时显示底部文字 */
.content1-card:hover .card-desc {
    display: block;
    opacity: 1;
}

/* 响应式设计调整 */
/* 整合并优化响应式设计规则 */
@media (max-width: 992px) {
    /* 调整卡片容器 */
    .content1-cards {
        flex-wrap: wrap;
        gap: 15px; /* 减小间距 */
        padding: 20px; /* 增加内边距 */
    }
    
    /* 调整卡片大小，使其自适应 */
    .content1-card {
        width: calc(50% - 10px); /* 每行显示两个卡片 */
        padding: 20px 15px; /* 调整内边距 */
        box-sizing: border-box; /* 确保宽度计算包含内边距 */
    }
    
    /* 调整卡片内元素大小 */
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .card-button {
        font-size: 14px;
        padding: 6px 16px;
    }
    
    .card-desc {
        font-size: 11px;
    }
}


.card-subtitle {
    font-size: 16px;
    color: #333;
}

/* 内容2样式 */
#content2 {
    width: 100%;
    position: relative;
}

.content2-bg {
    position: relative;
    width: 100%;
    height: 100vh; /* 铺满全屏高度 */
    overflow: hidden;
}

.content2-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并覆盖整个容器 */
    display: block;
}

.content2-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #122a88;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content2-text {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .content2-text {
        font-size: 28px;
    }
}

/* 内容3样式 */
#content3 {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.content3-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: stretch; /* 确保左右两侧等高 */
}

.content3-left {
    flex: 0 0 300px;
    text-align: center;
    background-color: #f0f0f0; /* 改为白色背景 */
    border-radius: 8px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* 添加轻微阴影 */
}

.content3-left img {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 30px; /* 居中并增加底部间距 */
}

.content3-btn {
    background-color: white; /* 改为白色背景 */
    color: #122a88; /* 改为蓝色文字 */
    border: 1px solid #122a88; /* 添加蓝色边框 */
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    width: 90%; /* 固定宽度 */
}

.content3-btn:hover {
    background-color: #122a88; /* 悬停时背景变蓝色 */
    color: white; /* 悬停时文字变白色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 82, 186, 0.2);
}

.content3-right {
    flex: 1;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 20px;
}

.content3-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    background-color: #e9ecef;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab-btn.active {
    background-color: #122a88;
    color: white;
}

.tab-btn:hover:not(.active) {
    background-color: #dee2e6;
}

.content3-gallery {
    position: relative;
}

.gallery-group {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-group.active {
    display: grid;
}

.gallery-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item p {
    margin: 10px 15px 5px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.gallery-item p:last-child {
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content3-container {
        flex-direction: column;
        align-items: center;
    }
    
    .content3-left {
        flex: none;
        margin-bottom: 30px;
    }
    
    .gallery-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    #content3 {
        padding: 30px 0;
    }
    
    .content3-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .gallery-item p {
        font-size: 13px;
    }
}

.content3-text {
    margin: 20px 0;
}

.content3-text h2 {
    color: #122a88;
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: bold;
}

.content3-text p {
    color: #666;
    font-size: 14px;
    margin: 0;
}


@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%;
    }
}

@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%;
    }
}
