header {
    background-color: #ffffff;
    display: flex;
    position: fixed;
    justify-content: center; /* 居中对齐 */
    align-items: center; /* 垂直居中 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    width: 100%;               /* ✅ 保证横向铺满 */
    z-index: 1000; /* 确保在最上层 */
    height: 90px; /* 建议加个固定高度 */
}
header .logo-container {
    height: 100%; /* 限制 logo 高度 */
}
header img {
    height: 100%; /* 限制 logo 高度 */
}

#searchArea {
    flex-direction: column; /* 竖直排列 */
    overflow: hidden;
}

#searchHeader {
    position: sticky;
    top: 0;
    background: white;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #ccc;
    z-index: 10;
}

#searchResultsWrapper {
    height: calc(100vh - 110px); /* header高度 + padding预留 */
    overflow-y: auto;
    padding: 1rem;
}

#loginPanel {
    transition: transform 0.3s ease;
    transform: translateX(100%);
}
#loginPanel.show {
    display: block;
    transform: translateX(0);
}


/*-----main menu*/
main {
    /*padding: 10px; !* 为主要内容添加内边距 *!*/
    /*background-color: #d3f9d8; !* 淡绿色 *!*/
    font-family: Arial, sans-serif;
    padding-top: 100px; /* 留出 header 的高度空间，防止内容被遮挡 */
}

a {
    color: #556335;
}

.swiper-slide p {
    margin-bottom: 2rem;
}

.container-head {
    color: #556335;
}

/*footer*/
footer {
    text-align: center;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    /*position: fixed;*/
    bottom: 0;
    width: 100%;
}