/* 联系方式抽屉组件样式 */

/* 抽屉遮罩层 */
.contact-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1998;
}

.contact-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 抽屉主体 */
.contact-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1999;
    display: flex;
    flex-direction: column;
}

.contact-drawer.active {
    right: 0;
}

/* 抽屉头部 */
.contact-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.contact-drawer-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.contact-drawer-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.contact-drawer-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* 抽屉内容 */
.contact-drawer-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

/* 二维码区域 */
.qr-code-section {
    margin-top: 32px;
    text-align: center;
}

.qr-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: #f9f9f9;
}

.qr-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.qr-text {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .contact-drawer {
        width: 100%;
        right: -100%;
    }
    
    .contact-drawer-content {
        padding: 20px;
    }
    
    .contact-item {
        padding: 12px 0;
    }
    
    .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
