/* 固定电话查询工具专用样式 */

/* 选项卡样式 */
.tab-container {
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
}

.tab-btn.active {
    border-bottom-color: #4285f4;
    color: #4285f4;
}

.tab-btn:hover {
    background-color: #f5f5f5;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* 输入表单样式 */
.input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-group .form-input {
    flex: 1;
}

.input-hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

.lookup-section {
    margin-bottom: 24px;
}

.result-section {
    margin-bottom: 24px;
}

/* 快速查询按钮 */
.quick-lookup-section {
    margin-bottom: 24px;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.quick-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 查询结果样式 */
.result-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background: rgba(102, 126, 234, 0.05);
    padding-left: 10px;
    border-radius: 6px;
}

.result-label {
    font-weight: 600;
    color: #4a5568;
    min-width: 100px;
}

.result-value {
    color: #2d3748;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 历史记录样式 */
.history-section {
    margin-bottom: 24px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.history-list {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #4285f4;
    transition: all 0.2s ease;
}

.history-item:hover {
    background-color: #f0f0f0;
    transform: translateX(3px);
}

.history-info {
    flex: 1;
}

.history-phone {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.history-location {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.history-time {
    color: #718096;
    font-size: 0.8rem;
}

.history-lookup-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.history-lookup-btn:hover {
    background: #3367d6;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

/* 区号大全网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border-left: 4px solid #4285f4;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-item h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
}

.info-item p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* 消息提示动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
