/* 外层大容器 */
.contact-section {
    display: flex;
    width: 100%;
    margin: 0px auto;
    border: 1px solid #979797;
    background: #fff;
    aspect-ratio: 1620/875;
}

/* 左侧菜单 (黄框区域) */
.sidebar-menu {
    width: 25%;
    background-color: #F7FAFF;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0 2%;
    /* 必须设置高度，否则容器会随内容无限撑高，不会出现滚动条 */
    height: 100%;           /* 固定高度 */
    /* 或者使用 max-height: 100vh; 相对于屏幕高度 */
    
    overflow-y: auto;        /* 垂直方向超出时自动显示滚动条 */
    overflow-x: hidden;      /* 隐藏水平滚动条 */
    
    border: 1px solid #e6ebf1; /* 可选：给菜单加个边框 */
}

.menu-item {
    padding: 35px 0;
    text-align: center;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #e6ebf1;
    transition: all 0.3s;
    overflow: hidden;
}

.menu-item:last-child { border-bottom: none; }

.menu-item.active {
    color: var(--primary-blue);
    font-weight: bold;
    border-left: 4px solid var(--primary-blue);
    color:#002d59;
}

/* 右侧内容区 */
.content-area {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* 信息展示 (红框区域) */
.info-box {
    margin-bottom: 30px;
}

.info-box h2 {
    margin: 0 0 20px 0;
    color: var(--primary-blue);
}

.info-detail {
    color: #333;
    line-height: 2;
}

.info-detail span { margin-right: 10px; }

/* 地图容器 (绿框区域) */
#map {
    flex: 1;
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    z-index: 1;
}

#office-name {
    color: #002D59;
}




/* 整体容器 */
.project-section {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: radial-gradient(circle, #f0f4f8 0%, #d9e2ec 100%);
    border: 2px dashed #3a80de;
}

/* 地图容器 */
#map-highlight {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 绿框：底部项目列表轮播 */
.project-carousel-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    align-items: center;
    z-index: 10;
}

.project-list-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    display: flex;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none; /* 隐藏滚动条 */
}
.project-list-wrapper::-webkit-scrollbar { display: none; }

.project-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, border 0.3s;
    /* border: 2px solid transparent; */
}
.project-card.active {
    border: 2px solid #002D59;
    transform: translateY(-5px);
}

.project-card h5 {
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.5;
}
.project-card .location {
    font-size: 12px;
    color: var(--highlight-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 左右导航按钮 */
.project-nav-btn {
    position: absolute;
    top: 50%; /* 容器高度一半的位置 */
    transform: translateY(-50%); /* 垂直居中 */
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 11;
    border: none;
    color: var(--primary-blue);
    font-size: 20px;
}
.project-nav-btn:hover { background: #f0f0f0; }

/* 左按钮 */
.project-nav-btn.prev {
    left: 20px;
}

/* 右按钮 */
.project-nav-btn.next {
    right: 20px;
}