* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* 背景图片 – 使用 bj.png */
    background-image: url('/bj.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* 登录界面 */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    padding: 2rem 2rem 2.5rem;
    width: 360px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.login-card h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #1e2b3c, #2c3e66);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-card input {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
}

.login-card input:focus {
    outline: none;
    border-color: #2c3e66;
    box-shadow: 0 0 0 3px rgba(44, 62, 102, 0.2);
}

.login-card button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2c3e66, #1f2c46);
    color: white;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    margin-top: 16px;
    font-weight: 600;
    font-size: 1rem;
}

.login-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.error {
    color: #e74c3c;
    margin-top: 12px;
    text-align: center;
    font-size: 0.85rem;
}

/* 后台主布局 */
#app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏 – 毛玻璃 */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 28px 24px;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e66, #1f2c46);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu {
    list-style: none;
    flex: 1;
    padding: 20px 12px;
}

.menu li {
    padding: 12px 20px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #1e2a3a;
}

/* 菜单 hover 加深 */
.menu li:hover {
    background: rgba(44, 62, 102, 0.2);
    backdrop-filter: blur(4px);
}

/* 菜单 active（点击后）加深效果更明显 */
.menu li.active {
    background: rgba(44, 62, 102, 0.35);
    backdrop-filter: blur(4px);
    color: #0f1a2a;
    font-weight: 600;
    border-left: 4px solid #2c3e66;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* 右侧主内容区 – 毛玻璃 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(248, 250, 252, 0.5);
    backdrop-filter: blur(10px);
}

.top-bar {
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

#logout-btn {
    background: rgba(44, 62, 102, 0.8);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
}

#logout-btn:hover {
    background: #2c3e66;
}

.content-pane {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

/* 卡片 – 毛玻璃 */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card h3 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #1f2c46;
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    overflow: hidden;
}

th, td {
    padding: 12px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

th {
    background: rgba(44, 62, 102, 0.1);
    font-weight: 600;
}

/* 按钮 */
button {
    padding: 8px 16px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    background: #2c3e66;
    color: white;
    font-weight: 500;
    transition: 0.2s;
}

button:hover {
    background: #1f2c46;
    transform: translateY(-1px);
}

button.danger {
    background: #c0392b;
}

button.danger:hover {
    background: #a82313;
}

/* 开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #2c3e66;
}
input:checked + .slider:before {
    transform: translateX(20px);
}

hr {
    margin: 30px 0;
    border: 1px dashed rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
}