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

body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    font-size: 14px;
}

/* 登录页 */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.login-box {
    background: #fff;
    width: 380px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 30px;
    color: #4e73df;
}

.form-item {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
}

/* 布局 */
.layout {
    display: flex;
    min-height: 100vh;
}

/* 左侧菜单 */
.sidebar {
    width: 240px;
    background: #2f4050;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    font-size: 16px;
    font-weight: bold;
    background: #1f2d3d;
    text-align: center;
    letter-spacing: 1px;
}

.sidebar-menu {
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}

.menu-item:hover {
    background: #384f63;
    color: #fff;
}

.menu-item.active {
    background: #4e73df;
    color: #fff;
}

/* 右侧主体 */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-header {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
}

.user {
    color: #666;
    font-size: 13px;
}

.main-body {
    padding: 20px;
    overflow-y: auto;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 24px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 信息列表 */
.info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    padding: 14px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-success { color: #28a745; }
.text-danger { color: #dc3545; }

/* 表单 */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #4e73df;
    color: #fff;
}

.btn-primary:hover {
    background: #3f5cb7;
}

.w-100 { width: 100%; }

/* 提示 */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* 历史记录 */
.history-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.history-head {
    background: #f8f9fa;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-del {
    color: #fff;
    background: #ff4757;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
}

.table-box {
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #eee;
    text-align: left;
}

table th {
    background: #fafafa;
}