/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f9f9f9;
    color: #333;
    padding-top: 1.3rem; /* 为固定导航栏预留空间 */
}

/* --- Banner 区域 --- */
.banner {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #e0f0ff 0%, #ffffff 50%); /* 模拟左侧淡蓝背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 模拟背景里的蓝色波浪装饰 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x350/87CEFA/FFFFFF?text=Blue+Wave+Background') no-repeat center;
    background-size: cover;
    opacity: 0.5;
    z-index: 1;
}

.banner-content {
    width: 1200px;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 2;
    padding: 0 20px;
}

.banner .text-area h1 {
    font-size: 48px;
    color: #0056b3;
    line-height: 1.2;
    letter-spacing: 2px;
}

.banner .text-area .subtitle {
    display: block;
    font-size: 24px;
    color: #88aadd;
    margin-top: 10px;
    letter-spacing: 1px;
}

.banner-image img {
    height: 350px;
    object-fit: cover;
    margin-left: 0px;
    margin-right: 0px;
    mask-image: linear-gradient(to right, transparent, black 10%); /* 简单的淡入效果 */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%);
    width: 100%; /* 让图片占满可用空间，减小与右边的间隔 */
    box-shadow: 10px 0 20px rgba(0,0,0,0.15); /* 右边阴影效果 */
    transform: translateX(-5px); /* 稍微向左移动，增强阴影显示 */
}

/* --- 导航栏 --- */
.sub-nav {
    background-color: #f2f2f2;
    border-bottom: 1px solid #e0e0e0;
}

.sub-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
}

.sub-nav li {
    font-size: 16px;
    color: #666;
}

.sub-nav a {
    text-decoration: none;
    color: #333;
    padding: 0 20px;
    font-weight: 500;
    position: relative;
}

.sub-nav li.separator {
    color: #ccc;
}

.sub-nav a.active, .sub-nav a:hover {
    color: #333;
    font-weight: bold;
}

.sub-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -18px; /* 根据padding调整 */
    left: 20px;
    right: 20px;
    height: 3px;
    background-color: #333;
}

/* --- 主要内容区域 (地图+卡片) --- */
.contact-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x600/e0e0e0/999999?text=Map+Background') center/cover;
    z-index: 1;
}

.contact-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    padding: 60px;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    box-sizing: border-box;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加联系项的动画效果 */
.contact-item {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 为不同的联系项添加延迟动画 */
.top-row .contact-item:first-child {
    animation-delay: 0.2s;
}

.top-row .contact-item:last-child {
    animation-delay: 0.4s;
}

.bottom-row .contact-item:first-child {
    animation-delay: 0.6s;
}

.bottom-row .contact-item:last-child {
    animation-delay: 0.8s;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.bottom-row {
    margin-top: 50px;
}

.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    padding: 0 15px;
}

.icon {
    font-size: 32px;
    color: #0056b3;
    margin-right: 20px;
    background: #f0f7ff;.qr-box
    padding: 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 电话特殊样式 */
.phone-box .phone-number {
    font-size: 40px;
    font-weight: bold;
    color: #0056b3;
    line-height: 1.2;
}



.phone-box p {
    color: #666;
    font-size: 16px;
    margin-top: 8px;
}

/* 二维码特殊样式 */


.qr-box .qr-img {
    width: 100px;
    height: 100px;
    margin-right: 15px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
}

.qr-box .qr-text {
    text-align: left; /* 文字左对齐 */
}

.qr-box .qr-text p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

.qr-box .qr-text p:first-child {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.qr-box .qr-text p:last-child {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 地址样式 */
.address-box .icon {
    font-size: 36px; /* 地址图标大一点 */
    color: #0056b3;
}
.address-box {
    margin-right: auto;
    min-width: 500px;
}

.address-box .info {
    color: #333;
    font-size: 18px;
    line-height: 1.6;
}

/* 邮箱样式 */
.email-box {
    justify-content: flex-end; /* 靠右 */
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-left: auto;
    min-width: 250px;
}

.email-box .icon {
    margin-right: 20px !important; /* 增加一点图标和邮箱地址之间的间距 */
}

.email-box .info {
    text-align: left;
}

.email-box .label {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.email-box .email-link {
    color: #0056b3;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
    font-weight: 500;
    word-break: break-all;
}
.email-box .email-link:hover {
    color: #003d82;
    text-decoration: underline;
}

/* --- 底部 Footer --- */
/* 移除自定义footer样式，使用common.css中的样式以保持一致性 */
/* 只保留必要的移动端适配样式 */
@media (max-width: 768px) {
    footer {
        padding: 30px 0;
    }
    
    footer .w1500 {
        padding: 0 15px;
    }
    
    .footerSub {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .lxfs {
        margin-bottom: 30px;
    }
    
    .jxdw {
        max-width: none;
        width: 100%;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 30px;
    }
    
    .jxdw ul {
        justify-content: center;
    }
    
    /* 二维码区域 */
    .footerSub .qr-codes {
        gap: 30px;
    }
    
    .footerSub .qr-box {
        min-width: 120px;
    }
    
    .footerSub .qr-box img {
        width: 100px;
        height: 100px;
    }
    
    .footerSub .qr-box span {
        font-size: 14px;
    }
    
    /* 版权信息 */
    footer .bq {
        flex-direction: column;
        padding: 20px 15px;
        text-align: center;
    }
    
    footer .bq p {
        margin-bottom: 10px;
    }
    
    footer .bq p span {
        display: none;
    }
}

@media (max-width: 560px) {
    .footerSub .qr-codes {
        flex-direction: column;
        gap: 20px;
    }
    
    .footerSub .qr-box {
        min-width: auto;
        width: 100%;
    }
}

/* 1. 修改顶部行的排列方式：改为居中并设定固定间距 */
.top-row {
    justify-content: center !important; /* 强制居中，不再两端对齐 */
    gap: 80px; /* 这里设置你想要的两个板块之间的距离，可随意调整数值 */
}

/* 2. 修正电话号码盒子：去掉向右的推力，并减小宽度 */
.phone-box {
    margin-right: 0 !important; /* 去掉 auto，不再把右边挤开 */
    min-width: auto !important; /* 让宽度随内容自适应，不再强制占500px */
    flex: 0 1 auto; /* 允许根据内容调整大小 */
}

/* 3. 修正二维码盒子：去掉向左的推力 */
.qr-box,
.email-box {
    /* 设置一个固定宽度，确保上下两个容器一般宽。
       320px 是一个估值，你可以根据实际需要调整这个数字 */
    width: 320px !important;
    min-width: 320px !important;
    flex: 0 0 auto !important; /* 防止容器伸缩 */

    /* 关键：将原来的靠右对齐改为靠左对齐 */
    justify-content: flex-start !important;

    /* 确保它们仍然是被挤到最右边的 */
    margin-left: auto !important;
    margin-right: 0 !important;
}
/* --- 修复右侧垂直对齐 & 二维码左右布局 --- */

/* 1. 统一设置右侧两个板块的宽度和对齐方式 */
.qr-box,
.email-box {
    /* 关键点：设置一个固定的宽度。
       350px 足以容纳二维码+文字，也能容纳邮箱。
       这样上下两个隐形盒子的左边缘就会对齐。 */
    width: 350px !important;
    min-width: 350px !important;
    
    /* 确保盒子本身还是被挤到最右边 */
    margin-left: auto !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important; /* 禁止盒子伸缩 */

    /* 关键点：内部内容改为“靠左对齐”，而不是默认的居中或靠右 */
    justify-content: flex-start !important;
    
    /* 确保垂直方向居中 */
    align-items: center !important;
}

/* 2. 强制二维码区域为“左右布局” (图片在左，文字在右) */
.qr-box {
    display: flex !important;
    flex-direction: row !important; /* row = 左右排列 */
}

/* 3. 调整间距，让视觉效果更整齐 */
/* 二维码图片与右边文字的距离 */
.qr-box .qr-img {
    margin-right: 20px !important; 
    /* 保持图片尺寸 */
    width: 100px;
    height: 100px;
    margin-bottom: 0 !important; /* 防止有底部间距导致错位 */
}

/* 邮箱图标与右边文字的距离 */
.email-box .icon {
    margin-right: 20px !important;
    /* 确保图标大小合适 */
    font-size: 40px; 
    width: auto; /* 让图标宽度自适应 */
    text-align: center;
}

/* 4. 确保文字左对齐 */
.qr-box .qr-text,
.email-box .info {
    text-align: left !important;
}

/* --- 手机端适配 --- */
@media (max-width: 768px) {
    /* 重置body margin，确保没有空白 */
    body {
        margin: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* 优化banner区域 */
    .banner {
        height: 200px;
    }
    
    .banner-content {
        width: 100%;
        padding: 0 10px;
    }
    
    .banner-image img {
        height: 200px;
        transform: none;
    }
    
    /* 优化导航栏 */
    .sub-nav ul {
        padding: 10px 0;
    }
    
    .sub-nav a {
        padding: 0 10px;
        font-size: 14px;
    }
    
    /* 优化联系卡片 */
    .contact-section {
        height: auto;
        padding: 40px 20px;
    }
    
    .contact-card {
        width: 100%;
        padding: 30px 20px;
    }
    
    /* 调整卡片行布局为垂直 */
    .card-row {
        flex-direction: column;
        gap: 30px;
    }
    
    /* 调整顶部行布局 */
    .top-row {
        gap: 30px !important;
        flex-direction: column;
        align-items: center;
    }
    
    /* 调整联系项样式 */
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }
    
    /* 调整电话号码样式 */
    .phone-box .phone-number {
        font-size: 28px;
    }
    
    /* 调整图标大小 */
    .icon {
        font-size: 24px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* 调整地址样式 */
    .address-box {
        margin-right: 0 !important;
        min-width: auto !important;
    }
    
    .address-box .icon {
        font-size: 28px;
    }
    
    .address-box .info {
        font-size: 16px;
    }
    
    /* 调整邮箱样式 */
    .email-box {
        margin-left: 0 !important;
        min-width: auto !important;
        width: auto !important;
        justify-content: center !important;
        margin-top: 20px;
    }
    
    .email-box .icon {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
    
    .email-box .email-link {
        font-size: 16px;
    }
    
    /* 调整二维码样式 */
    .qr-box {
        width: auto !important;
        min-width: auto !important;
        margin-left: 0 !important;
        justify-content: center !important;
        flex-direction: column !important;
    }
    
    .qr-box .qr-img {
        width: 80px;
        height: 80px;
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
    
    /* 调整底部行布局 */
    .bottom-row {
        margin-top: 30px;
        gap: 20px;
    }
    
    /* 调整底部行联系项样式 */
    .bottom-row .contact-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
        min-width: auto !important;
        width: auto !important;
    }
    
    /* 调整分隔线样式 */
    .divider {
        margin: 20px 0;
    }
}

/* 平板端适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 优化联系卡片 */
    .contact-card {
        width: 90%;
        padding: 40px 30px;
    }
    
    /* 调整电话号码大小 */
    .phone-box .phone-number {
        font-size: 32px;
    }
    
    /* 调整二维码和邮箱宽度 */
    .qr-box,
    .email-box {
        width: 300px !important;
        min-width: 300px !important;
    }
}