
/* 整个头部容器 */
header {
    display: flex;
    justify-content: space-between; /* 左右分布 */
    align-items: center;
    height: 80px;  /* 根据需要调整高度 */
    background-color: #4caf50;
    padding: 0 20px;
    box-sizing: border-box;
    color: #fff;
}
/* 左侧标题样式，添加 left margin 调整标题位置 */
.header-left {
    margin-left: 10%; /* 根据需要调整具体值 */
}
/* 左侧标题样式 */
.header-left h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* 右侧整体组容器，包含欢迎信息和顶部导航 */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 20px;  /* 两个部分之间的间距 */
}

/* 欢迎信息区域 */
.header-right {
    text-align: right;
}

.header-right h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.header-right p {
    margin: 0;
    font-size: 14px;
}

/* 顶部导航样式 */
.top-nav {
    display: flex;
    align-items: center;
}

.top-nav .search-box {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    font-size: 14px;
}

.top-nav a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px;
    }
    .header-right-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 10px;
    }
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .top-nav a {
        margin-left: 0;
        margin-top: 5px;
    }
}
/*全局的搜索、筛选样式*/
#searchBar button {
  background:#007bff;
  color:#fff;
  border:none;
  border-radius:4px;
  cursor:pointer;
}
#searchBar button:disabled { opacity:.6; cursor:not-allowed; }
#searchBar select, #searchBar input { min-width:120px; }