/* 地图控制按钮样式 */
.map-controls {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #ffffff;
    color: #98002e;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.map-controls:hover {
    background-color: #f5f5f5;
    border-color: #cccccc;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.map-controls:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.map-controls i {
    font-size: 20px;
    line-height: 1;
}

/* 地图侧边栏样式 */
.map-sidebar-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    height: calc(100% - 40px);
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
}
.sidebar-header {
    padding: 15px 20px;
    background-color: #D9D9D9;
    border-bottom: 1px solid #ddd;
    text-align: center;
}
.sidebar-header h3 {
    margin: 0;
    color: #98002e;
    font-size: 18px;
    font-weight: 600;
}
.sidebar-content {
    flex: 1;
    overflow: hidden;
    padding: 10px;
    position: relative;
    height: calc(100% - 60px);
}

/* 侧边栏公司列表样式 */
.company-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 280px;
    overflow: hidden;
    word-wrap: break-word;
}
.company-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-1px);
}
.company-item.active {
    background-color: #f0f0f0;
    border-color: #98002e;
}
.company-item .title {
    font-size: 16px;
    font-weight: 600;
    color: #98002e;
    margin: 0 0 8px 0;
}
.company-item .content {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 8px 0;
}
.company-item .link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-top: 5px;
}
.company-item .link:hover {
    text-decoration: underline;
}

/* 侧边栏滚动动画 */
.company-items-container {
    position: absolute;
    width: 100%;
    animation: scroll-up linear infinite;
    top: 0;
}
@keyframes scroll-up {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}
.sidebar-content:hover .company-items-container {
    animation-play-state: paused;
}

/* 搜索按钮交互样式 */
#searchButton:hover {
    background-color: #f5f5f5;
    border-color: #cccccc;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
#searchButton:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 搜索输入框样式优化 */
#searchInput {
    border-right: none;
    border-radius: 10px 0 0 10px;
}
#searchInput:focus {
    border-color: #98002e;
    box-shadow: 0 0 5px rgba(152, 0, 46, 0.3);
}