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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
}

#app {
    min-height: 100vh;
}

/* 登录/注册页面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 420px;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.sidebar {
    width: 220px;
    background-color: #304156;
    color: white;
    flex-shrink: 0;
}

.sidebar-header {
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    background-color: #2b3a4b;
}

.sidebar-menu {
    border-right: none;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    height: 60px;
    background: white;
    box-shadow: 0 1px 4px rgba(0,21,41,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header h1 {
    font-size: 18px;
    font-weight: 500;
}

.page-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* 卡片样式 */
.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #303133;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card:last-child {
    margin-bottom: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EBEEF5;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
    margin: 0;
}

/* 表单样式 */
.form-item {
    margin-bottom: 20px;
}

.form-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #606266;
}

/* 表格样式 */
.table-container {
    margin-top: 20px;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        width: 64px;
    }

    .sidebar-header {
        font-size: 14px;
    }

    .main-content {
        margin-left: 0;
    }
}
