/**
 * 微信浏览器检测组件样式 - 优化版本
 * 参考微信原生界面设计
 */

/* 覆盖层基础样式 */
.wechat-detector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f7f7;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 全屏关闭按钮 */
.wechat-detector-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wechat-detector-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.wechat-detector-close-btn:active {
    transform: scale(0.95);
}

/* 模态框样式 */
.wechat-detector-modal {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 简化的顶部区域 */
.wechat-detector-navbar {
    position: relative;
    height: 20px;
    background: #f7f7f7;
    z-index: 2;
}

.wechat-detector-title {
    display: none;
}

.wechat-detector-subtitle {
    display: none;
}

/* 内容区域 */
.wechat-detector-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 主要内容区域 */
.wechat-detector-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 20px;
    text-align: center;
}

/* 通知风格样式 */
.wechat-detector-notice-style {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.wechat-detector-notice-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.wechat-detector-notice-icon::before {
    content: '!';
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.wechat-detector-notice-title {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px 0;
}

.wechat-detector-notice-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

/* 优化的引导区域 - 更美观的设计 */
.wechat-detector-guide-section {
    background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
    color: white;
    padding: 40px 20px 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.wechat-detector-guide-section::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -20px;
    right: -20px;
    height: 60px;
    background: #f7f7f7;
    border-radius: 30px 30px 0 0;
}

.wechat-detector-guide-section::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
}

.wechat-detector-guide-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wechat-detector-guide-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.wechat-detector-guide-text {
    text-align: center;
}

.wechat-detector-guide-text h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wechat-detector-guide-text p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.5;
    max-width: 280px;
}

/* URL输入区域 */
.wechat-detector-url-section {
    margin: 20px 0;
    text-align: center;
}

.wechat-detector-url-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

#wechat-detector-url-input {
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#wechat-detector-url-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.2);
}

/* 复制按钮 */
.wechat-detector-copy-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    min-width: 160px;
}

.wechat-detector-copy-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.wechat-detector-copy-btn:active {
    transform: translateY(0);
}

/* guide样式的复制按钮 */
.wechat-detector-guide-section + .wechat-detector-main-content .wechat-detector-copy-btn {
    background: #1976d2;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.wechat-detector-guide-section + .wechat-detector-main-content .wechat-detector-copy-btn:hover {
    background: #1565c0;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

/* 底部提示 */
.wechat-detector-bottom-tip {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

/* Toast提示 */
.wechat-detector-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10002;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .wechat-detector-navbar {
        height: 20px;
    }
    
    .wechat-detector-guide-section {
        padding: 30px 15px 50px;
    }
    
    .wechat-detector-guide-content {
        gap: 15px;
    }
    
    .wechat-detector-guide-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .wechat-detector-guide-text h3 {
        font-size: 18px;
    }
    
    .wechat-detector-guide-text p {
        font-size: 14px;
    }
    
    .wechat-detector-main-content {
        padding: 30px 15px 15px;
    }
    
    .wechat-detector-notice-icon {
        width: 70px;
        height: 70px;
    }
    
    .wechat-detector-notice-icon::before {
        font-size: 30px;
    }
    
    .wechat-detector-notice-title {
        font-size: 18px;
    }
    
    .wechat-detector-notice-desc {
        font-size: 15px;
    }
    
    #wechat-detector-url-input {
        font-size: 14px;
        padding: 12px;
    }
    
    .wechat-detector-copy-btn {
        height: 45px;
        font-size: 15px;
    }
    
    .wechat-detector-close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .wechat-detector-overlay {
        background-color: #1a1a1a;
    }
    
    .wechat-detector-navbar {
        background: #1a1a1a;
    }
    
    .wechat-detector-notice-title {
        color: #fff;
    }
    
    .wechat-detector-notice-desc {
        color: #ccc;
    }
    
    .wechat-detector-url-label {
        color: #ccc;
    }
    
    #wechat-detector-url-input {
        background: #333;
        color: #fff;
        border-color: #555;
    }
    
    .wechat-detector-bottom-tip {
        color: #888;
    }
    
    .wechat-detector-guide-section::before {
        background: #1a1a1a;
    }
}