/* style.css - 全局样式，自适应多终端，常规后台蓝色主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

body {
     background: #f0f4f8 url('img/bg.jpg') no-repeat center center / cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 卡片容器 */
.container {
    max-width: 1200px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px -12px rgba(0, 20, 40, 0.25);
    padding: 30px;
    transition: all 0.2s;
}

/* 后台蓝色主题 */
.btn-primary {
    background: #1a73e8;
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}
.btn-primary:hover {
    background: #1557b0;
}
.btn-danger {
    background: #d32f2f;
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-danger:hover {
    background: #b71c1c;
}
.btn-success {
    background: #0d9488;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-success:hover {
    background: #0f766e;
}
.btn-secondary {
    background: #e2e8f0;
    border: none;
    color: #1e293b;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-secondary:hover {
    background: #cbd5e1;
}

/* 表单元素 */
input, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d9e6;
    border-radius: 40px;
    font-size: 1rem;
    transition: 0.2s;
    background: #f8fafc;
}
input:focus, select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
    background: white;
}

/* 表格自适应 */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
th {
    background: #eef3f8;
    color: #1e293b;
    font-weight: 600;
    padding: 14px 12px;
    text-align: left;
}
td {
    padding: 14px 12px;
    border-bottom: 1px solid #e9edf2;
}
tr:hover td {
    background: #f8fafc;
}

/* 登陆框特殊样式 */
.login-box {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}
.login-box h2 {
    color: #0b2b4a;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
}

/* 用户管理卡片 */
.user-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}
.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.flex-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.flex-form input, .flex-form select {
    width: auto;
    flex: 1 0 160px;
    min-width: 140px;
}

/* 消息提示 */
.msg {
    padding: 12px 18px;
    border-radius: 40px;
    margin: 12px 0;
    background: #dbeafe;
    color: #1a56db;
}
.msg-error {
    background: #fee2e2;
    color: #b91c1c;
}
.msg-success {
    background: #d1fae5;
    color: #065f46;
}

/* 响应式微调 */
@media (max-width: 640px) {
    .container { padding: 16px; }
    .flex-form input, .flex-form select { flex: 1 0 100%; }
    .flex-row { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-danger, .btn-success, .btn-secondary { width: 100%; justify-content: center; }
    .login-box { padding: 10px; }
}
/*uesr-class 样式*/
/* style.css - 补充用户分类管理相关样式 */
/* 此部分追加到原有style.css中，或新建user_class.css单独引用 */

/* 分类管理专用卡片 */
.class-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #1a73e8;
}

.class-card h4 {
    color: #0b2b4a;
    margin-bottom: 16px;
    font-weight: 600;
}

/* 分类列表中的标签 */
.class-tag {
    display: inline-block;
    background: #eef3f8;
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #1e293b;
}

/* 操作按钮组 */
.action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-group .btn-sm {
    padding: 4px 14px;
    font-size: 0.85rem;
    border-radius: 40px;
    cursor: pointer;
    border: none;
}

/* 空状态提示 */
.empty-tip {
    text-align: center;
    color: #94a3b8;
    padding: 30px 0;
    font-size: 0.95rem;
}

/* 响应式优化 */
@media (max-width: 640px) {
    .class-card .flex-form {
        flex-direction: column;
        align-items: stretch;
    }
    .class-card .flex-form input,
    .class-card .flex-form button {
        width: 100%;
    }
    .action-group {
        flex-direction: column;
    }
    .action-group .btn-sm {
        width: 100%;
    }
}