/* 搜索功能样式 */
.search-container {
    margin-top: 0;
    padding-top: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

#instruction-search {
    flex: 1;
    padding: 0 16px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    transition: all 0.3s ease;
    color: #2d3748;
    box-sizing: border-box;
    height: 46px !important; /* 统一高度 */
    line-height: 46px;
}

#instruction-search:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#search-btn, #clear-search {
    padding: 0 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0;
    height: 46px !important; /* 统一高度 */
    line-height: 46px;
    box-sizing: border-box;
}

#search-btn {
    background: #007bff;
    color: white;
}

#search-btn:hover {
    background: #0056b3;
}

#clear-search {
    background: #6c757d;
    color: white;
}

#clear-search:hover {
    background: #545b62;
}

/* ISA 标签样式 */
.isa-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 搜索结果样式 */
.search-results h2 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 20px;
}

.search-results p {
    text-align: center;
    color: #718096;
    margin-bottom: 30px;
}

/* 详细指令信息样式 */
.instruction-encoding {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.instruction-encoding h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.instruction-encoding code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #4a5568;
    background: none;
    padding: 0;
    word-break: break-all;
}

.instruction-operation {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
}

.instruction-operation h4 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1rem;
}

.instruction-operation ol {
    margin-left: 0;
    padding-left: 20px;
}

.instruction-operation li {
    margin-bottom: 6px;
    color: #2d3748;
    line-height: 1.5;
}

.instruction-examples {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.instruction-examples h4 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 1rem;
}

.code-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-examples code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
}

.instruction-exceptions {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.instruction-exceptions h4 {
    color: #c53030;
    margin-bottom: 10px;
    font-size: 1rem;
}

.instruction-exceptions ul {
    margin-left: 20px;
}

.instruction-exceptions li {
    color: #c53030;
    margin-bottom: 5px;
}

.instruction-exceptions p {
    color: #c53030;
    margin: 0;
}

.instruction-use-cases {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.instruction-use-cases h4 {
    color: #22543d;
    margin-bottom: 10px;
    font-size: 1rem;
}

.instruction-use-cases ul {
    margin-left: 20px;
}

.instruction-use-cases li {
    color: #22543d;
    margin-bottom: 5px;
}

/* 响应式设计改进 */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    #instruction-search {
        width: 100%;
    }
    
    #search-btn, #clear-search {
        width: 100%;
        padding: 12px;
    }
    
    .instruction-encoding code {
        font-size: 0.75rem;
    }
    
    .code-examples code {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #a0aec0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
} 