/**
 * 微信相关样式 - 期货一键查网站
 */

/* 微信咨询卡片样式 */
.wechat-card-custom {
    background: linear-gradient(135deg, #1a73e8, #0056b3);
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.wechat-card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.wechat-card-custom .card-body {
    padding: 16px 20px;
}

.highlight-text {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: 500;
}

/* 微信信息模板样式 */
.wechat-info {
    line-height: 1.5;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.wechat-info {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5px;
}

/* 微信信息容器样式 */
.wechat-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #0275d8;
    transition: all 0.3s ease;
}

.wechat-info-container:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.wechat-info-left {
    display: flex;
    align-items: center;
}

.wechat-info-right {
    display: flex;
    align-items: center;
}

.wechat-info-line:first-child {
    font-weight: 600;
    color: #0275d8;
    font-size: 14px;
}

.wechat-info-line {
    color: #444;
    font-weight: 500;
    font-size: 14px;
}

.wechat-info-id {
    font-size: 15px;
    color: #444;
    font-weight: 700;
    margin-left: 8px;
}

/* 蓝色卡片中的微信信息样式覆盖 */
.custom-wechat-info .wechat-info-line,
.custom-wechat-info .wechat-info-id,
.custom-wechat-info .wechat-info-line:first-child {
    color: white;
}

.custom-wechat-info .wechat-info-line:first-child {
    font-size: 16px;
}

.custom-wechat-info .wechat-info-id {
    font-size: 16px;
    font-weight: 700;
}

.custom-wechat-info .wechat-info-line:nth-child(2) {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 3px;
    display: inline-block;
}

/* 合并样式 - 一行显示微信信息 */
.wechat-info-combined {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 15px;
    color: #444;
    font-weight: 500;
}

.wechat-info-line {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.wechat-info-line:last-child {
    margin-bottom: 0;
}

.wechat-info-combined .separator {
    margin: 0 10px;
    color: #aaa;
}

.wechat-info-combined .wechat-part {
    white-space: nowrap;
    color: #555;
}

.wechat-info-combined .wechat-id-part {
    font-weight: 700;
    font-size: 16px;
    color: #0275d8;
    white-space: nowrap;
    background-color: rgba(2, 117, 216, 0.08);
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    max-width: 100%;
    overflow: visible;
    text-overflow: ellipsis;
}

.wechat-info-combined .wechat-id-part:hover {
    background-color: rgba(2, 117, 216, 0.15);
}

/* 微信二维码样式 */
.wechat-qr-container {
    position: relative;
    cursor: pointer;
    margin-left: 20px;
    display: flex;
    align-items: center;
    background-color: rgba(2, 117, 216, 0.03);
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: auto;
}

.wechat-qr-container:hover {
    background-color: rgba(2, 117, 216, 0.08);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* 侧边栏二维码样式 */
.wechat-qr-container.sidebar-qr {
    margin-left: 0;
    padding: 0;
    background-color: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wechat-qr-container.sidebar-qr .qr-text {
    margin-top: 10px;
    margin-left: 0;
    text-align: center;
}

.wechat-qr-container.sidebar-qr .nav-qr-code {
    width: 150px;
    height: 150px;
}

/* 二维码图片样式 */
.nav-qr-code {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    background-color: white;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wechat-qr-container:hover .nav-qr-code {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    border-color: #0066cc;
}

/* 侧边栏二维码样式 */
.sidebar-qr-code {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    background-color: white;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-qr-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-qr-container:hover .sidebar-qr-code {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: #0066cc;
}

.qr-code-display {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.qr-text {
    font-size: 13px;
    color: #444;
    margin-left: 12px;
    white-space: nowrap;
    line-height: 1.4;
}

.qr-text div:first-child {
    font-weight: 600;
    color: #0275d8;
    font-size: 14px;
}

.qr-text div:nth-child(2) {
    color: #444;
    font-weight: 500;
}

.wechat-id {
    font-size: 11px;
    color: #444;
    margin-top: 3px;
}

.qr-code-tooltip {
    position: absolute;
    top: 260px;
    right: -70px;
    width: 200px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
}

.wechat-qr-container:hover .qr-code-tooltip {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* 高端设计版 - 悬浮微信客服容器 */
.floating-wechat-container {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    max-width: 175px;
}

.floating-wechat-container:hover {
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 客服标签样式 */
.service-label {
    background: linear-gradient(135deg, #07C160, #09ad53);
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 5px rgba(7, 193, 96, 0.2);
    white-space: nowrap;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-label i {
    margin-right: 5px;
    font-size: 16px;
}

/* 卡片内容样式 */
.floating-wechat-card {
    background-color: white;
    padding: 0;
    position: relative;
}

.card-header-line {
    height: 3px;
    background: linear-gradient(90deg, #07C160, #2db7f5);
    margin-bottom: 12px;
}

.qr-content {
    padding: 0 15px 15px;
}

/* 二维码包装 */
.qr-wrapper {
    position: relative;
    margin: 0 auto 12px;
    width: 130px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.qr-wrapper:hover .scan-overlay {
    opacity: 1;
}

/* 扫码提示 */
.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 193, 96, 0.85);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scan-overlay i {
    font-size: 24px;
    margin-bottom: 8px;
}

.scan-overlay span {
    font-size: 14px;
    font-weight: 600;
}

/* 二维码样式 */
.floating-qr-code {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 微信信息区域 */
.wechat-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* 微信ID徽章 */
.wechat-id-badge {
    background-color: #f8f8f8;
    color: #333;
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    width: 100%;
}

.wechat-id-badge i {
    color: #07C160;
    margin-right: 5px;
    font-size: 14px;
}

#wechat-id {
    font-weight: 600;
    color: #444;
}

/* 促销徽章 */
.wechat-promo-badge {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: white;
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(255, 126, 95, 0.2);
    width: 100%;
}

.wechat-promo-badge i {
    margin-right: 5px;
    font-size: 12px;
}

/* 链接样式 */
.wechat-link {
    text-decoration: none;
    display: block;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .floating-wechat-container {
        right: 10px;
    }
    
    .floating-qr-code {
        width: 100px;
        height: 100px;
    }
    
    .floating-wechat-text {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .floating-wechat-container {
        display: none; /* 在小屏幕上隐藏 */
    }
}

/* 脉冲动画效果 */
.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 104px !important;
    height: 104px !important;
    border-radius: 50%;
    border: 2px solid rgba(0, 102, 204, 0.2);
    animation: pulse-circle 2s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulse-circle {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.7;
    }
}

/* 客服机器人脉冲动画 */
@keyframes pulse-animation {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(7, 193, 96, 0.4);
    }
    70% {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 0 0 15px rgba(7, 193, 96, 0);
    }
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(7, 193, 96, 0);
    }
}

.pulse-animation {
    animation: pulse-animation 1s infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .wechat-card-custom .card-body {
        padding: 12px 15px;
    }
    
    .custom-wechat-info .wechat-info-line:first-child {
        font-size: 14px;
    }
    
    .wechat-info-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wechat-info-right {
        margin-top: 10px;
        align-self: flex-end;
    }
    
    .wechat-info-combined {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .wechat-info-combined .separator {
        margin: 0 5px;
    }
    
    .wechat-info-combined .wechat-id-part {
        font-size: 14px;
        padding: 4px 8px;
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* 页脚加载时间样式 */
.footer-load-time {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-top: 10px;
    padding: 5px 0;
}

.load-time-item {
    display: inline-block;
    margin: 0 5px;
}

.load-time-separator {
    color: #aaa;
    margin: 0 3px;
}

.load-time-value {
    font-weight: 500;
    color: #555;
}

.load-time-total {
    font-weight: 600;
    color: #0275d8;
}

/* 客服机器人头部样式 */
.floating-wechat-header {
    background-color: #07C160;
    color: white;
    padding: 8px 15px;
    border-radius: 8px 0 0 0;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: -1px;
}

.floating-wechat-header i {
    margin-right: 8px;
    font-size: 16px;
}

.floating-wechat-qr {
    border-radius: 0 0 0 12px; /* 修改为只有左下角圆角 */
}

/* 添加微信按钮样式 */
.add-wechat-btn {
    background-color: #07C160;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.add-wechat-btn:hover {
    background-color: #05a050;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(7, 193, 96, 0.3);
}

.add-wechat-btn i {
    margin-right: 5px;
    font-size: 16px;
}

.wechat-link {
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wechat-link:hover {
    transform: scale(1.03);
}

/* 微信号显示和复制按钮样式 */
.wechat-id-display {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.wechat-id-display {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-align: center;
    background-color: #f8f8f8;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
}

#wechat-id {
    font-weight: 700;
    color: #07C160;
}

.wechat-promo-text {
    margin-top: 5px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ff5722;
    text-align: center;
    padding: 3px 8px;
    background-color: rgba(255, 87, 34, 0.1);
    border-radius: 4px;
    display: block;
    width: 100%;
}

.wechat-promo-text {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ff5722;
    text-align: center;
    padding: 3px 10px;
    background-color: #fff2ee;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(255, 87, 34, 0.1);
    border: 1px solid #ffe0d6;
}

.copy-wechat-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.copy-wechat-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.copy-wechat-btn i {
    margin-right: 5px;
    font-size: 16px;
}

/* 微信按钮容器 */
.wechat-buttons-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 8px;
}

/* 打开电脑微信按钮 */
.open-wechat-pc-btn {
    background-color: #3b5998;
    color: white;
    border: none;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.open-wechat-pc-btn:hover {
    background-color: #2d4373;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 89, 152, 0.3);
} 