```css
* {
    box-sizing: border-box;
}

[v-cloak] {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 登录框样式 */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #1890ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 93%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

.btn {
    width: 100%;
    padding: 12px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #40a9ff;
}

/* 控制台主框架 */
.layout-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #f0f2f5;
}

/* 侧边导航栏 */
.sidebar {
    width: 220px;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 100;
    flex-shrink: 0;
}

.sidebar-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 18px;
    font-weight: bold;
    color: #1890ff;
    border-bottom: 1px solid #f0f0f0;
}

.menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #333;
    transition: all 0.3s;
    font-size: 14px;
}

.menu-item:hover {
    color: #1890ff;
    background: #f0f7ff;
}

.menu-item.active {
    color: #1890ff;
    background: #e6f7ff;
    border-right: 3px solid #1890ff;
    font-weight: bold;
}

.menu-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 多级菜单样式 */
.menu-item.level-2 {
    padding-left: 40px;
    background: #fafafa;
    font-size: 13px;
    border-right: none;
}

.menu-item.level-3 {
    padding-left: 55px;
    background: #f5f5f5;
    font-size: 13px;
    border-right: none;
}

.menu-item.level-2.active, .menu-item.level-3.active {
    border-right: 3px solid #1890ff;
}

.sub-menu-list {
    overflow: hidden;
}

/* 右侧内容区 */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
/* min-width:0 防止flex子项被撑破 */

/* 顶部通栏 */
.header {
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    z-index: 90;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .header-tabs::-webkit-scrollbar {
        display: none;
    }

.tab-item {
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.tab-item.active {
    background: #ffe4e6;
    color: #f5222d;
}

.tab-close {
    font-size: 14px;
    margin-top: 1px;
}

.tab-close:hover {
    color: #f5222d;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 内容展示区 */
.content-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 统计卡片与栅格 */
.grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.stat-card-title {
    font-size: 14px;
    color: #999;
}

.stat-card-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card-icon {
    font-size: 24px;
}

/* 图表占位区 */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.chart-placeholder {
    flex: 1;
    background: #fafafa;
    border: 1px dashed #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bfbfbf;
    border-radius: 4px;
}

/* 欢迎横幅 */
.welcome-banner {
    background: #e6f7ff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-text h2 {
    margin: 0 0 10px 0;
    color: #1890ff;
    font-size: 20px;
}

.banner-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.banner-image {
    width: 120px;
    opacity: 0.8;
}

/* 移动端汉堡按钮和遮罩 */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.sidebar-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 95;
}

/* 移动端响应式 (重点处理单列和侧边栏隐藏) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .sidebar-mask.open {
        display: block;
    }

    .header-tabs {
        display: none;
    }
    /* 手机端隐藏多页签，保持清爽 */

    /* 行转为单列 */
    .grid-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .charts-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .content-body {
        padding: 15px;
    }
}

```
