/* 通用样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
}

/* 过滤器和搜索区域 */
.filter-container {
    width: 80%; /* 设置宽度与表格一致 */
    margin: 0 auto; /* 水平居中 */
    background-color: white; /* 过滤器背景色 */
    padding: 10px 20px; /* 内边距 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    transition: position 0.3s ease, top 0.3s ease; /* 添加过渡效果 */
}

.sticky {
    position: fixed; /* 固定在屏幕顶部 */
    top: 0; /* 距离顶部0px */
    left: 0; /* 距离左侧0px */
    right: 0; /* 距离右侧0px */
    z-index: 1000; /* 确保过滤器在其他元素之上 */
}

h1 {
    margin: 0; /* 消除默认margin */
}

/* 其余表格样式保持不变 */
table {
    width: 80%; /* 表格宽度 */
    border-collapse: collapse;
    margin: 20px auto 20px; /* 在表格上方留出空间，避免被过滤器覆盖 */
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
}

th,
td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    transition: background-color 0.3s;
}

th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

/* 标签样式 */
.filter-container label {
    margin-right: 10px;
    font-size: 16px;
    color: #555;
}

/* 下拉框和输入框样式 */
select,
#searchInput {
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    width: auto;
}

select:focus,
#searchInput:focus {
    border-color: #007bff;
    outline: none;
}

/* 清除按钮样式 */
#clearButton {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #ff4d4d;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#clearButton:hover {
    background-color: #cc0000;
}
