/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", sans-serif; }
body { background-color: #f0f2f5; height: 100vh; overflow: hidden; }

/* 主容器布局 */
.app-container { display: flex; height: 100%; }

/* 侧边栏 */
.sidebar { width: 220px; background-color: #1a2b3c; color: #fff; display: flex; flex-direction: column; }
.logo { padding: 20px; font-size: 20px; font-weight: bold; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.menu { list-style: none; margin-top: 20px; }
.menu li { padding: 15px 20px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; }
.menu li i { margin-right: 10px; width: 20px; text-align: center; }
.menu li:hover, .menu li.active { background-color: #007bff; }

/* 主内容区 */
.main-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }

/* 顶部 Header */
.top-header { background: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.search-box { display: flex; align-items: center; background: #f0f2f5; padding: 5px 10px; border-radius: 20px; width: 300px; }
.search-box input { border: none; background: transparent; padding: 5px; outline: none; width: 100%; }
.search-box button { border: none; background: transparent; cursor: pointer; color: #666; }
.header-right { display: flex; align-items: center; gap: 20px; }
.user-info { display: flex; align-items: center; gap: 5px; cursor: pointer; }

/* 数据卡片区域 */
.cards-section { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px; }
.card-item { background: #fff; padding: 20px; border-radius: 8px; display: flex; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.icon-box { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; margin-right: 15px; }
.icon-box.blue { background: #4facfe; }
.icon-box.orange { background: #ff9a44; }
.icon-box.purple { background: #a18cff; }
.card-text h3 { font-size: 16px; font-weight: normal; color: #333; }
.card-text small { font-size: 12px; color: #999; display: block; margin-bottom: 10px; }
.numbers, .values { display: flex; justify-content: space-between; font-size: 14px; }
.values { font-weight: bold; font-size: 18px; color: #333; margin-top: 5px; }

/* 个人信息卡片特殊样式 */
.personal-info { justify-content: flex-start; }
.avatar { width: 50px; height: 50px; background: #e6f7ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #1890ff; font-size: 24px; margin-right: 15px; }
.welcome-text h4 { margin-bottom: 5px; }
.welcome-text p { font-size: 12px; color: #666; line-height: 1.5; }

/* 中部区域：左右分栏 */
.middle-section { display: flex; padding: 0 20px 20px 20px; gap: 20px; flex: 1; }
.left-column { width: 300px; display: flex; flex-direction: column; gap: 20px; }
.right-column { flex: 1; display: flex; flex-direction: column; gap: 20px; }

/* 通用面板样式 */
.panel { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.panel h4 { margin-bottom: 15px; font-weight: normal; color: #333; border-left: 4px solid #1890ff; padding-left: 10px; }

/* 快捷入口图标 */
.grid-icons { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.icon-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px 0; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.icon-item:hover { opacity: 0.9; transform: translateY(-2px); }
.icon-item i { font-size: 24px; color: #fff; margin-bottom: 8px; }
.icon-item span { font-size: 14px; color: #333; }
.icon-item.green { background: #52c41a; }
.icon-item.blue { background: #1890ff; }
.icon-item.orange { background: #faad14; }
.icon-item.purple { background: #722ed1; }

/* 消息通知列表 */
.msg-list { list-style: none; }
.msg-list li { display: flex; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.msg-list li:last-child { border: none; }
.msg-list i { color: #faad14; margin-right: 10px; margin-top: 5px; }
.msg-list span { display: block; color: #333; margin-bottom: 4px; }
.msg-list small { color: #999; }

/* 图表区域 */
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.chart-header .tabs span, .chart-header .legend span { margin-left: 10px; cursor: pointer; font-size: 14px; color: #666; }
.chart-header .tabs .active { background: #1890ff; color: #fff; padding: 4px 10px; border-radius: 4px; }
.legend .full { font-size: 10px; }
.legend .light { color: #bae7ff; }

.chart-container { width: 100%; height: 250px; position: relative; }

footer { text-align: center; padding: 15px; color: #999; font-size: 12px; border-top: 1px solid #e8e8e8; background: #fff; }