/* 关于我们页面专用样式 */

/* Banner 区域 */
.about-banner {
    position: relative;
    height: 850px;
    margin-top: 80px; /* 导航栏高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* 允许底部卡片溢出 */
}

.about-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.about-banner .banner-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.about-banner .banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    margin-top: -80px;
}

.about-banner .banner-title-img img {
    max-width: 1000px;
    height: auto;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 悬浮信息卡片 */
.info-cards-wrapper {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    max-width: 1600px;
    width: 100%;
}

.info-cards {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    justify-content: space-between;
}

.info-card {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid #eee;
}

.info-card:last-child {
    border-right: none;
}

.info-card .card-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    flex-shrink: 0;
    background-color: #0b459c; /* 品牌蓝背景 */
    border-radius: 12px; /* 圆角与卡片容器一致 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.info-card .card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 将图标颜色变为白色 */
}

.info-card .card-text h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-card .card-text p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* 公司介绍 */
.company-intro {
    padding: 160px 0 80px; /* 增加顶部内边距以腾出空间给悬浮卡片 */
    background: #fff;
}

.intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 20px;
    padding: 30px 80px; /* 进一步减小内边距以降低高度 */
    box-shadow: 0 10px 50px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* 背景大字背景装饰 */
.intro-container::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('../images/our-h.png') no-repeat right center;
    background-size: auto 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.intro-left {
    flex: 0 0 450px;
    position: relative;
    z-index: 2;
}

.intro-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.intro-title .line {
    width: 40px;
    height: 4px;
    background-color: #0b459c;
    margin-bottom: 40px;
}

.intro-content p {
    font-size: 14px;
    color: #555;
    line-height: 2.2;
    margin-bottom: 25px;
    text-align: justify;
}

.intro-right {
    flex: 1;
    position: relative;
    z-index: 2;
}

.img-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.map-container {
    position: relative;
    flex: 1;
    max-width: 550px; /* 增加地图最大宽度 */
    margin-right: 40px;
}

.map-label {
    position: absolute;
    top: -40px;
    left: 10%;
    font-size: 12px;
    color: #999;
    letter-spacing: 2px;
}

.map-img {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.map-point {
    position: absolute;
    padding: 2px 6px;
    background: #0b459c;
    color: #fff;
    font-size: 11px;
    border-radius: 2px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(11, 69, 156, 0.4);
    z-index: 3;
}

/* 地图点位置微调 */
.map-point.north { top: 12%; left: 58%; }
.map-point.central { top: 42%; left: 48%; }
.map-point.east { top: 40%; left: 82%; }
.map-point.south { top: 78%; left: 62%; }
.map-point.west { top: 62%; left: 12%; }

.map-inset {
    position: absolute;
    right: -20px;
    bottom: 5%;
    width: 90px;
    height: 120px;
    padding: 4px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    z-index: 4;
}

.map-inset img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.building-img {
    width: 250px; /* 适当减小宽度以配合高度调整 */
    height: 345px; /* 高度从 480px 减小到 400px，使区块整体高度更小 */
    object-fit: cover;
    border-radius: 20px; /* 增加圆角效果 */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 5;
}

/* 特色板块 */
.feature-cards {
    padding: 60px 0 100px;
    background: #fff;
}

.feature-container {
    display: flex;
    gap: 40px;
}

.feature-card {
    flex: 1;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #fff;
}

.card-overlay p {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 300;
}

.card-overlay h3 {
    font-size: 32px;
    font-weight: bold;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .info-cards-wrapper {
        width: 95%;
    }
    .intro-container {
        flex-direction: column;
        padding: 40px 20px;
    }
    .intro-left {
        flex: none;
        width: 100%;
        margin-bottom: 40px;
    }
    .intro-right {
        margin-left: 0;
        width: 100%;
    }
    .img-group {
        justify-content: center;
    }
    .building-img {
        width: 250px;
        height: auto;
        right: 0;
    }
}

@media (max-width: 768px) {
    .about-banner {
        height: auto; /* 改为自动高度 */
        margin-top: 60px;
        display: flex;
        flex-direction: column;
    }
    .about-banner .banner-bg {
        height: 300px; /* 背景仅覆盖顶部 Banner 区域 */
        position: absolute;
    }
    .about-banner .banner-content {
        height: 300px; /* 与背景高度一致 */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0;
        width: 100%;
    }
    .about-banner .banner-title-img img {
        max-width: 80%;
    }
    .info-cards-wrapper {
        position: relative; /* 取消绝对定位 */
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 0;
        margin-top: 0;
        z-index: 10;
        background: #fff;
    }
    .info-cards {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2x2 布局 */
        gap: 20px;
        padding: 30px 15px;
        border-radius: 0; /* 取消圆角 */
        box-shadow: none; /* 取消阴影，使其更平整 */
        border-bottom: 1px solid #eee;
    }
    .info-card {
        border-right: none;
        padding: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .info-card .card-icon {
        width: 45px;
        height: 45px;
        padding: 10px;
        margin-right: 0;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    .info-card .card-text h3 {
        font-size: 15px;
        margin-bottom: 6px;
        color: #333;
    }
    .info-card .card-text p {
        font-size: 12px;
        line-height: 1.4;
        color: #666;
    }
    .company-intro {
        padding-top: 40px; /* 取消为悬浮卡片留出的多余空间 */
        padding-bottom: 40px;
    }
    .intro-container {
        padding: 30px 15px;
    }
    .intro-title h2 {
        font-size: 28px;
    }
    .intro-content p {
        font-size: 14px;
        line-height: 1.8;
    }
    .img-group {
        flex-direction: column;
        gap: 20px;
    }
    .map-container {
        margin-right: 0;
        width: 100%;
    }
    .building-img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 10px;
    }
    .feature-cards {
        padding: 40px 0 60px;
    }
    .feature-container {
        gap: 20px;
        padding: 0 15px;
    }
    .feature-card {
        height: 180px;
    }
    .card-overlay {
        padding: 20px;
    }
    .card-overlay p {
        font-size: 14px;
    }
    .card-overlay h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .about-banner .banner-bg {
        height: 200px;
    }
    .about-banner .banner-content {
        height: 200px;
    }
    .about-banner .banner-title-img img {
        max-width: 90%;
    }
    .info-cards-wrapper {
        bottom: 0;
    }
    .info-cards {
        gap: 15px;
        padding: 20px 10px;
    }
    .info-card .card-icon {
        width: 40px;
        height: 40px;
    }
    .company-intro {
        padding-top: 30px;
    }
}
