/* 主样式文件 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f0f2f5;
}

#app {
    width: 100%;
    min-height: 100vh;
}

/* 布局容器 */
.app-container {
    display: flex;
    height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 200px;
    background-color: #304156;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #1f2d3d;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部导航栏 */
.navbar {
    height: 60px;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.navbar-left {
    font-size: 20px;
    font-weight: 500;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 页面内容 */
.page-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* 登录页 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    width: 400px;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.login-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    color: #303133;
}

/* 卡片 */
.page-card {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

/* 搜索栏 */
.search-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 表格操作栏 */
.table-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        width: 64px;
    }
    
    .sidebar-header {
        font-size: 16px;
    }
}
