body {
    margin: 0;
    padding: 0;
    height: 100vh;
    /* background: url(https://api.xiaofa520.cn/PCimg-API/); */
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    font-family: "Microsoft Yahei", sans-serif;
    overflow: hidden;
}

:root {
    --primary: #3b82f6;
    /* 主题色 */
    --background: rgb(255, 255, 255);
    --text-color: #1e293b;
    --blur-strength: 2px;
    --primary: #3b82f6;
    /* 背景透明度 */
    --text-color: #1e293b;
    /* 文字颜色 */
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

.progress-bar {
    width: 300px;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, rgb(255, 218, 243), rgb(203, 114, 255));
    transition: width 0.3s ease;
}

/* 内容样式 */
.zt {
    width: 100%;
    height: 100%;
    /* backdrop-filter: blur(4px); */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 80px 65px 3fr 60px;
    grid-column-gap: 0px;
    grid-row-gap: 15px;
}

.kslj {
    grid-area: 3 / 1 / 3 / 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

/* 关闭时的动画效果 */
.kslj.closed {
    opacity: 0;
    transform: translateY(-20px);
    height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

footer {
    grid-area: 4 / 1 / 4 / 2;
    margin: 0 auto;
}

.xlcd {
    display: flex;
    grid-area: 1 / 1 / 1 / 1;
    flex-direction: column;
    align-content: flex-end;
    flex-wrap: wrap;
}

a {
    text-decoration: none;
}

.config-manager {
    padding: 20px;
    display: flex;
    gap: 15px;
}

#configuration {
    border: none;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
#statusBar {
    position: fixed;
    top: 20px;
    left: -300px;
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    transition: right 0.5s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

#hitokoto {
    /* padding: 2rem; */
    /* max-width: 80%; */
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #000000;
    border-radius: 8px;
    transition: 0.3s;
    /* background: rgba(255, 255, 255, 0.2); */
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
}

/* === 搜索容器 === */
.search-container {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    justify-items: center;
    width: 100%;
    grid-area: 2 / 1 / 3 / 2;
}

/* === 搜索框布局 === */
.search-box {
    width: 600px;
    display: flex;
    gap: 10px;
    /* 元素间距 */
    position: relative;
    background: rgb(255, 255, 255);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(var(--blur-strength));
}

/* === 搜索输入框 === */
.search-input {
    flex: 1;
    /* 自适应宽度 */
    padding: 15px 25px;
    border: none;
    border-radius: 30px 30px;
    font-size: 16px;
    outline: none;
}

/* === 搜索引擎选择框 === */
.engine-select {
    padding: 0 15px;
    border-radius: 30px;
    cursor: pointer;
    appearance: none;
    outline: none;
    border: none;
    background: rgba(255, 255, 255, 0);
}

/* 搜索引擎按钮 */
.search-button {
    width: 70px;
    border-radius: 30px 30px;
    background: rgba(255, 255, 255, 0);
    border: none;
}

/* === 搜索建议容器 === */
.suggestions {
    position: absolute;
    top: 100%;
    /* 位于输入框下方 */
    width: 100%;
    background: var(--background);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    /* 最大高度 */
    overflow-y: auto;
    /* 滚动条 */
    display: none;
    /* 默认隐藏 */
    z-index: 1000;
    /* 确保在最上层 */
}

/* === 单个建议项 === */
.suggestion-item {
    padding: 12px 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    /* 修正后的属性 */
    background-color: transparent;
    /* 明确的初始状态 */
}

/* === 悬停状态 === */
.suggestion-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    /* 使用具体属性 */
}
#ai {
    width: 100%;
    height: 100%;
}

.ico-1{
    width: 10px;
    height: 10px;
}