body {
    margin: 0;
    font-family: "微软雅黑", sans-serif;
}
/*搜索边框*/
#search_input {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin-bottom: 60px;
    flex-direction: column;
    position: absolute;
    z-index: 100;
}
/* 为搜索框设置相对定位 */
.search-container {
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    width: 50%;
    height: 50px;
    border-radius: 25px; /* 圆角 */
    background-color: white;
    overflow: hidden;
    z-index: 100;

    border: 1px solid rgba(255, 255, 255, 0.5); /* 半透明边框 */
    background-color: rgba(255, 255, 255, 0.7); /* 半透明背景 */
    backdrop-filter: blur(5px); /* 背景模糊效果 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 阴影效果 */

    transition: width 0.3s ease; /* 添加宽度动画 */
}
.search-box.expanded {
    width: 80%; /* 点击后目标宽度 */
}
.search-box label  {
    width: 100%;
}
.search-box label input {
    flex: 1;
    border: none;
    outline: none;
    width: 90%;
    color: #354356;
    padding: 0 15px;
    font-size: 1.7rem;
    background: none;
}

.search-box button {
    background: none;
    border: none;
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-box button img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #FFFFFF; /* 按钮悬停效果 */
}
/*搜索列表*/
#search-list {
    display: none;
    list-style: none;
    margin-top: 10px;
    width: 80%;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    z-index: 100;
}

#search-list li {
    padding: 10px 20px;
    cursor: pointer;
    text-align: left;
}

#search-list li:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.search-icon {
    margin-right: 10px;
    font-size: 18px;  /* 可以根据需要调整大小 */
}

.search-text {
    font-size: 1rem;
    display: inline-block;
    vertical-align: middle;
}

#search-list a {
    text-decoration: none; /* 去除链接的下划线 */
    color: inherit; /* 让链接的颜色继承父元素的颜色 */
}

#search-list .highlight {
    color: blue;
    font-weight: bold;
}
/* 整体内容区 */
.main {
    position: relative;
    text-align: center;
    padding: 40px 0px;
    margin: 0 auto;
}

/* 大背景图样式 */
.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/bgd.png') no-repeat center center;
    background-size: cover;
    opacity: 0.9; /* 半透明效果 */
    z-index: 1;
}

/* 按钮容器样式 */
#page_list{
    margin-top: 80px;
}
.content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    z-index: 2; /* 确保按钮在背景图上方 */
}


#page_list .button{
    cursor: pointer;
}
/* 按钮样式 */
.button {
    flex: 1 1 calc(33.33% - 20px); /* 每个按钮占1/3宽度，并减去间隙 */
    max-width: calc(33.33% - 20px); /* 确保按钮不超过1/3宽度 */
    height: 20vh; /* 固定高度 */
    background-color: #2196F3; /* 默认背景色 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    font-weight: 500;
    opacity: 0.8;
    border-radius: 6px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 调整 flex 容器的布局 */
.content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* 每行按钮均匀分布 */
    gap: 20px;
    padding: 20px 8%;
    z-index: 2; /* 确保按钮在背景图上方 */
}

/* 针对移动端 */
@media screen and (max-width: 768px) {
    .button {
        flex: 1 1 calc(50% - 10px); /* 移动端每行两个按钮 */
        max-width: calc(50% - 10px);
        height: 100px; /* 按钮高度调整 */
        font-size: 1.4rem; /* 字体大小调整 */
    }
    .content {
        padding: 20px;
    }
    #search_input {
        margin-bottom: 20px;
    }

}

@media screen and (max-width: 480px) {
    .button {
        flex: 1 1 100%; /* 手机端每行一个按钮 */
        max-width: 100%;
        height: 80px; /* 再次调整按钮高度 */
    }
}
/* 文本样式 */
.button span {
    z-index: 2;
}

/* 背景色块样式 */
.button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2); /* 半透明背景色块 */
    z-index: 1;
}
@media screen and (max-width: 768px) {
    /* 手机端样式：让按钮变成单列 */
    .content {
        flex-direction: column;
        gap: 10px;
    }
    #page_list .button {
        width: 90%; /* 按钮宽度调整为 90% */
        margin: 0 auto; /* 居中显示 */
        aspect-ratio: unset; /* 取消原比例，适配内容高度 */
        padding: 15px 0; /* 调整内边距 */
        font-size: 1.4rem; /* 调整字体大小 */
    }
}
