/* ===== 弹窗核心样式 - 移动端优化版 ===== */
.tanchuang-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    animation: tanchuang-overlay-fadein 0.3s ease-out;
}

@keyframes tanchuang-overlay-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tanchuang-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 320px; /* 减小最大宽度 */
    background: #fff;
    border-radius: 18px; /* 增加圆角 */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); /* 增强阴影 */
    z-index: 10001;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: tanchuang-fadein 0.4s ease-out;
}

@keyframes tanchuang-fadein {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.tanchuang-content {
    padding: 25px 20px 20px; /* 优化内边距 */
    text-align: center;
    background: linear-gradient(135deg, #f9f9ff 0%, #f0f4ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tanchuang-logo {
    height: 55px; /* 减小LOGO尺寸 */
    margin: 0 auto 20px; /* 优化间距 */
    display: block;
}

.tanchuang-title {
    margin: 0 0 12px; /* 优化间距 */
    color: #1a237e;
    font-size: 19px; /* 减小字体大小 */
    font-weight: 600;
    line-height: 1.3;
}

.tanchuang-desc {
    color: #546e7a;
    font-size: 14px; /* 减小字体大小 */
    line-height: 1.6;
    margin: 0 0 15px; /* 优化间距 */
}

.tanchuang-buttons {
    display: flex;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* 优化边框 */
    background: #fff;
}

.tanchuang-btn {
    flex: 1;
    padding: 18px 10px; /* 优化按钮内边距 */
    font-size: 15px; /* 减小字体大小 */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column; /* 垂直布局 */
    align-items: center;
    justify-content: center;
    gap: 6px; /* 图标和文字间距 */
}

.tanchuang-btn i {
    font-size: 22px; /* 图标大小 */
}

.tanchuang-call-btn {
    color: #1a73e8;
    border-right: 1px solid #f0f0f0;
}

.tanchuang-chat-btn {
    color: #0b8043;
}

.tanchuang-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    color: #757575;
    cursor: pointer;
    width: 34px;
    height: 34px;
    text-align: center;
    line-height: 34px;
    z-index: 10002;
    transition: all 0.2s;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85); /* 半透明白色背景 */
}

/* 交互效果 */
.tanchuang-btn:hover {
    background: #f5f9ff;
}

.tanchuang-call-btn:hover {
    background: #e8f0fe;
}

.tanchuang-chat-btn:hover {
    background: #e6f4ea;
}

.tanchuang-close:hover {
    color: #e53935;
    background: #f5f5f5;
    transform: rotate(90deg);
}

/* ===== 移动端优化 ===== */
@media (max-width: 768px) {
    .tanchuang-modal {
        max-width: 300px; /* 中等屏幕尺寸 */
        border-radius: 16px;
    }
    
    .tanchuang-content {
        padding: 22px 15px 15px; /* 优化内边距 */
    }
    
    .tanchuang-logo {
        height: 50px; /* 减小LOGO尺寸 */
        margin-bottom: 18px; /* 优化间距 */
    }
    
    .tanchuang-title {
        font-size: 18px; /* 减小字体大小 */
    }
    
    .tanchuang-desc {
        font-size: 13px; /* 减小字体大小 */
    }
    
    .tanchuang-btn {
        padding: 16px 8px; /* 优化按钮内边距 */
        font-size: 14px; /* 减小字体大小 */
    }
    
    .tanchuang-btn i {
        font-size: 20px; /* 减小图标尺寸 */
    }
}

@media (max-width: 480px) {
    .tanchuang-modal {
        max-width: 280px; /* 小屏幕尺寸 */
        width: 90%;
    }
    
    .tanchuang-content {
        padding: 20px 12px 12px; /* 优化内边距 */
    }
    
    .tanchuang-logo {
        height: 45px; /* 进一步减小LOGO尺寸 */
    }
    
    .tanchuang-title {
        font-size: 17px; /* 进一步减小字体大小 */
    }
    
    .tanchuang-desc {
        font-size: 12.5px; /* 进一步减小字体大小 */
    }
    
    .tanchuang-btn {
        padding: 14px 6px; /* 优化按钮内边距 */
        font-size: 13px; /* 进一步减小字体大小 */
    }
}

/* 小屏手机优化 (360px以下) */
@media (max-width: 360px) {
    .tanchuang-modal {
        max-width: 260px; /* 超小屏幕尺寸 */
    }
    
    .tanchuang-content {
        padding: 18px 10px 10px; /* 优化内边距 */
    }
    
    .tanchuang-logo {
        height: 40px; /* 最小LOGO尺寸 */
        margin-bottom: 15px; /* 优化间距 */
    }
    
    .tanchuang-title {
        font-size: 16px; /* 最小字体大小 */
    }
}

/* 防止移动端点击高亮 */
.tanchuang-btn {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}