/* 页面基础样式：保留居中布局 */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url(https://api.paugram.com/bing/) center/cover fixed;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: var(--bg); */
    z-index: -1;
}

/* 核心居中容器：保留垂直排列+全屏居中 */
.center-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
    padding: 20px;
}

/* 搜索卡片样式：保留原有结构 */
.search-card {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--trbg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========== 核心：仅CSS美化原生select ========== */
/* 1. 基础样式：统一外观 */
#searchEngine {
    background-color: var(--trbg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;

    /* 基础尺寸和背景 */
    width: 100px;
    height: 40px;
    padding: 0 12px;
    border: none;
    border-radius: 4px;
    background-color: var(--bg);
    color: var(--text);
    font-size: 16px;
    /* 隐藏原生下拉箭头（关键） */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* 光标样式 */
    cursor: pointer;
    /* 相对定位，用于自定义箭头 */
    position: relative;
}

/* 2. 自定义下拉箭头（用伪元素实现） */
#searchEngine::after {
    content: "▼";
    font-size: 10px;
    color: var(--text);
    /* 定位到select右侧 */
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    /* 防止箭头被点击 */
    pointer-events: none;
}

/* 3. hover和focus状态：提升交互 */
#searchEngine:hover {
    background-color: var(--bg);
}

#searchEngine:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(68, 68, 68, 0.5);
}

/* 4. 下拉选项样式（部分浏览器兼容） */
#searchEngine option {
    background-color: var(--bg);
    color: var(--text);
    padding: 8px 12px;
}

/* 搜索输入框样式：保留 */
#searchQuery {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: var(--bg);
    color: var(--text);
    font-size: 16px;
    min-width: 220px;
    height: 40px;
}

/* 搜索按钮样式：保留
button {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;

    color: white;
    cursor: pointer;
    transition: background 0.2s;

}
button:hover {
    background-color: #555;
} */

.other-card {
    width: 380px;
    padding: 15px 20px;
    background-color: var(--bg);
    border-radius: 8px;
    color: var(--text);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 从右到左的滚动*/
@keyframes m {
    0% {
        transform: translateX(100%)
    }

    100% {
        transform: translateX(-100%)
    }
}