body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f8f8f8;
    font-size: 14px;
}

header {
    background-color: #2196F3;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.2em;
    height: 8%;
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.search-bar {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 400px;
    /* 添加居中样式 */
    align-items: center; /* 水平居中 */
}

#search-input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    outline: none;
    margin-bottom: 8px;
}

#search-button {
    padding: 8px 16px; /* 减小按钮的 padding，使其更小 */
    font-size: 0.9em; /* 减小字体大小 */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: auto; /* 移除固定宽度，让按钮根据内容自适应 */
}

#search-button:hover {
    background-color: #388E3C;
}

footer {
    background-color: #f0f0f0;
    padding: 8px;
    text-align: center;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.engine-selector button {
    padding: 6px 12px;
    margin: 4px;
    font-size: 0.9em;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.engine-selector button:hover {
    background-color: #ccc;
}

.engine-selector button.active {
    background-color: #4CAF50;
    color: white;
}
