/* ===== 企业联系侧边导航样式 - 开始 ===== */
.contact-side-nav {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.contact-nav-item {
    position: relative;
    width: 100%;
    height: 80px;
    background-color: #fff;
    border-left: 4px solid #1a6dcc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2px;
}

.contact-nav-item:hover {
    background-color: #1a6dcc;
    width: 90px;
}

.contact-nav-item:hover .contact-nav-icon,
.contact-nav-item:hover .contact-nav-text {
    color: white;
}

.contact-nav-icon {
    font-size: 24px;
    color: #1a6dcc;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.contact-nav-text {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-nav-panel {
    position: absolute;
    right: 84px;
    top: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s ease;
    z-index: 10000;
}

.contact-nav-item.active .contact-nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.contact-nav-item.active {
    background-color: #1a6dcc;
    width: 90px;
}

.contact-nav-item.active .contact-nav-icon,
.contact-nav-item.active .contact-nav-text {
    color: white;
}

.contact-panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.contact-panel-icon {
    font-size: 22px;
    color: #1a6dcc;
    margin-right: 10px;
}

.contact-panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a6dcc;
    margin: 0;
}

.contact-panel-content {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.contact-panel-content p {
    margin-bottom: 10px;
}

.contact-qrcode-container {
    text-align: center;
    margin: 20px 0;
}

.contact-qrcode {
    width: 180px;
    height: 180px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #888;
    overflow: hidden;
}

.contact-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a6dcc;
}

.contact-phone-number i {
    margin-right: 10px;
    font-size: 20px;
}

.contact-action-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #1a6dcc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    text-decoration: none;
    margin-top: 15px;
}

.contact-action-btn:hover {
    background-color: #0d4d9c;
}

.contact-close-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.contact-close-panel:hover {
    color: #333;
}

/* 移动端底部导航 */
.contact-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    display: none;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9998;
}

.contact-mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 0;
}

.contact-mobile-item i {
    font-size: 20px;
    color: #1a6dcc;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.contact-mobile-item span {
    font-size: 12px;
    color: #666;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-mobile-item.active {
    background-color: #f0f7ff;
}

.contact-mobile-item.active i {
    color: #0d4d9c;
}

.contact-mobile-item.active span {
    color: #0d4d9c;
    font-weight: 600;
}

/* 移动端遮罩 */
.contact-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9997;
}

/* 移动端面板 */
.contact-mobile-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 15px 15px 0 0;
    padding: 25px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    max-height: 80vh;
    overflow-y: auto;
}

.contact-mobile-panel.active {
    transform: translateY(0);
}

.contact-mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.contact-mobile-panel-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #1a6dcc;
}

.contact-mobile-panel-title i {
    margin-right: 10px;
    font-size: 20px;
}

.contact-mobile-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.contact-mobile-panel-content {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.contact-mobile-qrcode {
    width: 160px;
    height: 160px;
    margin: 20px auto;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-side-nav {
        display: none;
    }
    
    .contact-mobile-nav {
        display: flex;
    }
    
    .contact-nav-panel {
        width: calc(100vw - 40px);
        max-width: 400px;
        right: 20px;
        left: auto;
        top: 50%;
        transform: translate(0, -50%) scale(0.9);
        opacity: 0;
        visibility: hidden;
    }
    
    .contact-nav-item.active .contact-nav-panel {
        transform: translate(0, -50%) scale(1);
    }
}

@media (min-width: 769px) {
    .contact-mobile-nav,
    .contact-mobile-overlay,
    .contact-mobile-panel {
        display: none;
    }
}

/* 平板适配 */
@media (max-width: 1024px) and (min-width: 769px) {
    .contact-side-nav {
        width: 70px;
    }
    
    .contact-nav-item {
        height: 70px;
    }
    
    .contact-nav-icon {
        font-size: 22px;
    }
    
    .contact-nav-text {
        font-size: 11px;
    }
    
    .contact-nav-panel {
        width: 280px;
        right: 74px;
    }
    
    .contact-nav-item:hover,
    .contact-nav-item.active {
        width: 80px;
    }
}

/* 手机横屏 */
@media (max-height: 500px) and (max-width: 900px) {
    .contact-mobile-panel {
        max-height: 90vh;
    }
    
    .contact-mobile-qrcode {
        width: 120px;
        height: 120px;
    }
}

/* 超小屏幕手机 */
@media (max-width: 360px) {
    .contact-mobile-item i {
        font-size: 18px;
    }
    
    .contact-mobile-item span {
        font-size: 11px;
    }
    
    .contact-mobile-panel {
        padding: 20px 15px;
    }
    
    .contact-mobile-qrcode {
        width: 140px;
        height: 140px;
    }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    .contact-nav-item {
        background-color: #2d3748;
        border-left-color: #4299e1;
    }
    
    .contact-nav-text {
        color: #e2e8f0;
    }
    
    .contact-nav-icon {
        color: #4299e1;
    }
    
    .contact-nav-panel {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .contact-panel-title {
        color: #4299e1;
    }
    
    .contact-panel-icon {
        color: #4299e1;
    }
    
    .contact-panel-content {
        color: #cbd5e0;
    }
    
    .contact-mobile-nav {
        background-color: #2d3748;
    }
    
    .contact-mobile-item i {
        color: #4299e1;
    }
    
    .contact-mobile-item span {
        color: #cbd5e0;
    }
    
    .contact-qrcode {
        background-color: #4a5568;
    }
    
    .contact-phone-number {
        background-color: #4a5568;
        color: #4299e1;
    }
    
    .contact-action-btn {
        background-color: #4299e1;
    }
    
    .contact-action-btn:hover {
        background-color: #3182ce;
    }
}
/* ===== 企业联系侧边导航样式 - 结束 ===== */