/* 全局样式 */
body, html {
    height: 100%;
    margin: 0;
    font-family: sans-serif;
    background-color: #202020;
    color: #f0f0f0;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: column;
    padding: 15px;
}

/* 搜索框区域 */
.search-box {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    max-width: 800px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

select, input[type="text"], button {
    font-size: 16px;
    padding: 10px;
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
}

select {
    background-color: #555;
    text-align-last: center;
}

input[type="text"] {
    flex: 1;
    border: 1px solid #555;
}

input[type="text"]::placeholder {
    color: #777;
}

button {
    background-color: #555;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #777;
}

/* 标题 */
h1 {
    color: #ddd;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

h3 {
    color: #ccc;
    margin-top: 0;
}

/* 链接样式 */
a {
    color: #a0c4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 结果容器 */
.results-container {
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 5px;
    max-height: 500px;
    overflow-y: auto;
}

.results-container ul {
    list-style: none;
    padding-left: 0;
}

.results-container li {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.results-container li:last-child {
    border-bottom: none;
}

.snippet {
    color: #999;
}

/* 提示文字 */
p {
    color: #bbb;
}

/* ========= 手机端优化 ========= */
@media (max-width: 600px) {
    body, html {
        font-size: 14px;
    }
    .search-box {
        flex-direction: column;
    }
    select, input[type="text"], button {
        width: auto;
        font-size: 15px;
    }
    .results-container {
        max-height: none; /* 移动端取消固定高度 */
    }
    h1 {
        font-size: 1.5rem;
        text-align: center;
    }
}
