/* 手机号码查询工具专用样式 */

/* ==================== 选项卡样式 ==================== */
.tab-container {
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.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;
}

/* ==================== 历史记录样式 ==================== */
.history-item {
    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-phone {
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.history-info {
    color: #666;
    margin: 5px 0;
}

.history-time {
    color: #999;
    font-size: 12px;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* ==================== 号段信息网格样式 ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.info-item {
    background-color: #f9f9f9;
    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: 10px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item h4 i {
    color: #4285f4;
}

.info-item p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 14px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .tab-buttons {
        overflow-x: auto;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 10px 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .history-phone {
        font-size: 14px;
    }
}
