/* ======= 全局样式 ======= */
body {
    margin: 0;
    padding: 0;
    font-family: "Arial", sans-serif;
    background: linear-gradient(135deg, #4e5b7d, #2c3e56); /* 蓝紫渐变背景 */
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* 让所有元素垂直排列 */
}

/* 页面容器：卡片布局 */
.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 50px;
    border-radius: 15px;
    background: rgba(255,255,255,0.1); /* 轻微透明毛玻璃 */
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    text-align: center;
}

/* 标题 */
.title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

/* 输入框样式 */
input[type=text],
input[type=password],
select {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.25);
    color: #fff;
    outline: none;
}

input::placeholder {
    color: #e5e5e5;
}

/* 按钮样式 */
.btn, .btn-small {
    width: 100%;
    padding: 16px;
    background: #6a77a9;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 16px;
}

.btn:hover, .btn-small:hover {
    background: #4e5b7d; /* 深色 */
}

/* 导航栏样式 */
.navbar {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 30px; /* 给 navbar 和卡片之间增加间距 */
}

.navbar a {
    color: #fff;
    font-size: 16px;
    margin-right: 24px;
    text-decoration: none;
    font-weight: 600;
}

.navbar a:hover {
    text-decoration: underline;
}

/* 卡片组件样式 */
.card {
    width: 80%;
    padding: 25px;
    margin: 15px auto;
    border-radius: 18px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.25);
}

/* 表格样式 */
.table-box {
    width: 90%;
    margin: 30px auto;
    padding: 20px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* 分页按钮 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    padding: 12px 22px;
    margin: 0 5px;
    background: #4e5b7d;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.pagination a:hover {
    background: #2c3e56;
}

/* 弹窗背景 */
#popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
}

/* 弹窗盒子 */
.popup-box {
    width: 380px;
    padding: 25px;
    border-radius: 18px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    color: #fff;
}
/* 手机端优化 */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 30px;
    }

    input[type=text], input[type=password], select {
        padding: 12px;
    }

    .btn {
        padding: 14px;
        font-size: 16px;
    }

    #qr-reader {
        height: 200px;
    }

    h2 {
        font-size: 24px;
    }

    .table-container {
        width: 95%;
        padding: 15px;
    }

    .card {
        width: 95%;
        margin: 15px auto;
    } }