/* General body styling with background image */
body {
    font-family: 'KaiTi', serif;
    background-image: url('your-background-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Container styling */
.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

/* Header styling with glass effect */
header {
    background: rgba(255, 255, 255, 0.8);
    color: black;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

header h1 {
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 10px 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    transition: background 0.3s, transform 0.2s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    transform: scale(1.05);
}

/* Main and section styling */
main, section {
    text-align: center;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main h2, section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

/* Upload container styling */
.upload-container {
    margin: 20px 0;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
}

.custom-file-upload:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

input[type="file"] {
    display: none;
}

/* Button styling */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
    margin: 10px;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Names and numbers containers */
.names-container, .student-numbers {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: left;
}

.name-item, .student-number {
    padding: 8px;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.name-item:hover, .student-number:hover {
    background-color: #e0f7fa;
}

/* Highlight class for animation */
.highlight {
    background-color: #ff6347;
    color: white;
}

/* Popup styling enhanced */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 40px;
    display: none;
    width: 80%;
    max-width: 600px;
    text-align: center;
    font-size: 1.5em;
}

.popup button {
    background: #4CAF50;
    border: none;
    padding: 20px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s, transform 0.2s;
}

.popup button:hover {
    background: #45a049;
    transform: scale(1.05);
}

/* Footer styling with glass effect */
footer {
    background: rgba(255, 255, 255, 0.8);
    color: black;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
    width: 100%;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .names-container, .student-numbers {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* 新增的未使用类 */
.unused-class {
    background-color: red;
    color: white;
    display: none;
}

/* 增加额外的媒体查询 */
@media (max-width: 800px) {
    header h1 {
        font-size: 1.8em;
    }
}
