body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}
header {
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .logo {
    font-weight: bold;
}
header nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
}
header nav a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
input, button {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}
button {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
button:hover {
    background-color: #0056b3;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    word-wrap: break-word;
}
th {
    background-color: #007BFF;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
}
tr:nth-child(even) {background-color: #f9f9f9;}
.status-正常 {color: green; font-weight: bold;}
.status-迟到 {color: orange; font-weight: bold;}
.status-缺卡 {color: red; font-weight: bold;}
.search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
}
.search-bar input, .search-bar button {
    margin-right: 10px;
}
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav a {
        margin: 5px 0 0 0;
    }
    .container {
        margin: 10px;
        padding: 15px;
    }
    table th, table td {
        padding: 6px;
        font-size: 12px;
    }
}