/**
 * EOMP 物业云平台 - 后台样式
 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    color: #303133;
    background: #f0f2f5;
}

/* 侧边栏 */
.sidebar {
    background: #304156;
    transition: width 0.3s;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2b3649;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.logo img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.el-menu-vertical {
    border-right: none;
}

.el-menu-vertical:not(.el-menu--collapse) {
    width: 220px;
}

/* 顶部导航 */
.header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
}

.toggle-btn {
    font-size: 20px;
    cursor: pointer;
    margin-right: 15px;
    color: #606266;
}

.toggle-btn:hover {
    color: #409EFF;
}

.header-right {
    display: flex;
    align-items: center;
}

.message-badge {
    margin-right: 20px;
    cursor: pointer;
}

.user-info {
    cursor: pointer;
    color: #606266;
}

.user-info:hover {
    color: #409EFF;
}

/* 主内容区 */
.main-content {
    padding: 20px;
    overflow-y: auto;
}

.page-container {
    min-height: calc(100vh - 100px);
}

/* 卡片样式 */
.el-card {
    margin-bottom: 20px;
    border-radius: 4px;
}

.el-card__header {
    padding: 15px 20px;
    border-bottom: 1px solid #ebeef5;
}

/* 表格样式 */
.el-table {
    font-size: 13px;
}

.el-table th {
    background: #f5f7fa;
    color: #606266;
    font-weight: 600;
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 20px;
    padding: 10px 0;
}

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

.search-form .el-form-item {
    margin-bottom: 10px;
}

/* 按钮样式 */
.el-button {
    border-radius: 4px;
}

/* 标签样式 */
.el-tag {
    border-radius: 4px;
}

/* 对话框样式 */
.el-dialog {
    border-radius: 8px;
}

.el-dialog__header {
    border-bottom: 1px solid #ebeef5;
    padding: 15px 20px;
}

.el-dialog__footer {
    border-top: 1px solid #ebeef5;
    padding: 15px 20px;
}

/* 统计卡片 */
.stat-card {
    display: flex;
    align-items: center;
    padding: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-icon i {
    font-size: 28px;
    color: #fff;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #303133;
}

.stat-label {
    font-size: 14px;
    color: #909399;
    margin-top: 5px;
}

/* 快捷入口 */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.quick-item {
    width: 100px;
    text-align: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.quick-item:hover {
    background: #f5f7fa;
}

.quick-item i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.quick-item span {
    font-size: 14px;
    color: #606266;
}

/* 待办事项 */
.todo-list {
    padding: 10px 0;
}

.todo-item {
    padding: 12px 0;
    border-bottom: 1px solid #ebeef5;
}

.todo-item:last-child {
    border-bottom: none;
}

/* 页面标题 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

/* 搜索卡片 */
.search-card {
    margin-bottom: 20px;
}

/* 表格卡片 */
.table-card {
    margin-bottom: 20px;
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .el-aside {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
    }
    
    .main-content {
        padding: 10px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 树形菜单样式 */
.el-tree {
    background: transparent;
}

.el-tree-node__content {
    height: 36px;
}

/* 步骤条样式 */
.el-steps {
    margin: 20px 0;
}

/* 时间线样式 */
.el-timeline {
    padding-left: 10px;
}

/* 上传组件样式 */
.el-upload-dragger {
    width: 100%;
    height: 180px;
}

/* 图片预览样式 */
.el-image-viewer__wrapper {
    z-index: 3000 !important;
}

/* 加载样式 */
.el-loading-mask {
    background: rgba(255, 255, 255, 0.8);
}

/* 消息提示样式 */
.el-message {
    top: 20px;
}

/* 通知样式 */
.el-notification {
    z-index: 3000 !important;
}

/* 弹窗遮罩 */
.el-dialog__wrapper {
    z-index: 2000;
}

.v-modal {
    z-index: 1999;
}
