* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 8px 12px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px 0;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.search-container {
    display: flex;
    margin-bottom: 16px;
}

#searchInput {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

#searchButton {
    padding: 10px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#searchButton:hover {
    background-color: #2980b9;
}

.export-container {
    margin-top: 30px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.export-container h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.export-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#exportFormat {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-right: 10px;
    background-color: white;
    cursor: pointer;
    min-width: 120px;
}

#exportButton, #exportAllButton {
    padding: 12px 20px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-left: 10px;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .export-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    #exportFormat, #exportButton, #exportAllButton {
        margin: 5px 0;
        width: 100%;
    }
}

#exportButton {
    background-color: #27ae60;
}

#exportButton:hover {
    background-color: #219d55;
}

#exportButton:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#exportAllButton {
    background-color: #e67e22;
}

#exportAllButton:hover {
    background-color: #d35400;
}

.results-container {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 300px;
}

.command-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.command-item:last-child {
    border-bottom: none;
}

.command-name {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: bold;
}

.command-description {
    margin-bottom: 10px;
}

.command-usage {
    background-color: #f8f9fa;
    padding: 10px;
    border-left: 4px solid #3498db;
    font-family: monospace;
    overflow-x: auto;
    margin: 10px 0;
}

.command-examples {
    margin-top: 10px;
}

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

.no-results {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 14px;
}

@media (max-width: 600px) {
    .search-container {
        flex-direction: column;
    }
    
    #searchInput {
        border-radius: 4px 4px 0 0;
    }
    
    #searchButton {
        border-radius: 0 0 4px 4px;
    }
}