/**
 * 手机号码脱敏工具样式
 */

/* 标签页 */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: #f5f7fa;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: #4a90d9;
    color: white;
    border-color: #4a90d9;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 设置行 */
.settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.setting-group label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.setting-group select,
.setting-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 结果容器 */
.result-container {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-header h4 {
    margin: 0;
    color: #333;
}

.result-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

/* 复制按钮 */
.copy-btn {
    padding: 6px 15px;
    background: #4a90d9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.copy-btn:hover {
    background: #357abd;
}

/* 统计盒子 */
.stats-box {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.stat-item {
    background: white;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    text-align: center;
    min-width: 100px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #4a90d9;
}

.stat-value.success {
    color: #28a745;
}

.stat-value.fail {
    color: #dc3545;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 模式卡片 */
.mode-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.mode-card {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.mode-card:hover {
    border-color: #4a90d9;
}

.mode-card.active {
    border-color: #4a90d9;
    background: #e8f4fc;
}

.mode-card .mode-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.mode-card .mode-example {
    font-size: 12px;
    color: #666;
    font-family: monospace;
}

/* AI面板 */
.ai-panel {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.ai-panel h4 {
    margin: 0 0 10px 0;
}

.ai-input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.ai-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.ai-btn:hover {
    background: #f0f0f0;
}

.ai-result {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: none;
}

/* 预览盒子 */
.preview-box {
    margin: 15px 0;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffc107;
}

.preview-box h5 {
    margin: 0 0 10px 0;
    color: #856404;
}

.preview-content {
    font-family: monospace;
    font-size: 16px;
    color: #333;
}

/* 错误消息 */
.error-msg {
    color: #dc3545;
    padding: 10px;
    background: #f8d7da;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
}

/* 批量提示 */
.batch-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Toast提示 */
.toast-msg {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 9999;
}
