/* 全局布局 */
.header {
   height: 60px;
   background-color: #2f4050;
   color: #fff;
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0 20px;
   position: fixed;
   top: 0;
   left: 220px;
   right: 0;
   z-index: 99;
   transition: left 0.3s;
 }
 .header.collapsed {
   left: 60px;
 }
 .logo {
   width: 220px;
   height: 60px;
   background-color: #1ab394;
   color: #fff;
   text-align: center;
   line-height: 60px;
   font-size: 18px;
   font-weight: bold;
   position: fixed;
   top: 0;
   left: 0;
   z-index: 100;
   transition: width 0.3s;
   cursor: pointer;
 }
 .logo.collapsed {
   width: 60px;
   font-size: 0;
 }
 .collapse-btn {
   position: absolute;
   right: 10px;
   top: 50%;
   transform: translateY(-50%);
   font-size: 20px;
   cursor: pointer;
 }
 .breadcrumb {
   font-size: 14px;
 }
 /* 左侧菜单 */
 .sidebar {
   width: 220px;
   background-color: #2f4050;
   position: fixed;
   top: 60px;
   bottom: 0;
   left: 0;
   overflow-y: auto;
   transition: width 0.3s;
 }
 .sidebar.collapsed {
   width: 60px;
 }
 .menu {
   list-style: none;
 }
 .menu-item {
   border-left: 4px solid transparent;
   position: relative;
 }
 .menu-item.active {
   border-left: 4px solid #1ab394;
   background-color: #293846;
 }
 .menu-link {
   display: flex;
   align-items: center;
   padding: 14px 20px;
   color: #a7b1c2;
   text-decoration: none;
   font-size: 14px;
   transition: all 0.3s;
   white-space: nowrap;
 }
 .sidebar.collapsed .menu-link span {
   display: none;
 }
 .sidebar.collapsed .sub-menu {
   display: none !important;
 }
 .menu-link:hover {
   color: #fff;
   background-color: #293846;
 }
 .menu-item.active .menu-link {
   color: #fff;
 }
 /* 子菜单折叠 */
 .sub-menu {
   list-style: none;
   background-color: #1f2d3d;
   display: none;
 }
 .sub-menu.show {
   display: block;
 }
 .sub-item .sub-link {
   padding: 12px 20px 12px 30px;
   display: block;
   color: #a7b1c2;
   text-decoration: none;
   font-size: 13px;
 }
 .sub-item.active .sub-link {
   color: #1ab394;
 }
 .sub-link:hover {
   color: #fff;
 }
 .arrow {
   margin-left: auto;
   transition: transform 0.3s;
 }
 .arrow.open {
   transform: rotate(90deg);
 }
 /* 主内容区 */
 .main {
   margin-left: 220px;
   margin-top: 60px;
   padding: 20px;
   height: calc(100vh - 60px);
   overflow-y: auto;
   transition: margin-left 0.3s;
 }
 .main.collapsed {
   margin-left: 60px;
 }
 /* 卡片统计 */
 .card-box {
   display: flex;
   gap: 20px;
   margin-bottom: 20px;
   flex-wrap: wrap;
 }
 .card {
   flex: 1;
   min-width: 240px;
   background: #fff;
   padding: 20px;
   border-radius: 4px;
   box-shadow: 0 1px 3px rgba(0,0,0,0.1);
 }
 .card-title {
   font-size: 14px;
   color: #666;
   margin-bottom: 10px;
 }
 .card-num {
   font-size: 26px;
   font-weight: bold;
   color: #1ab394;
 }
 /* 图表容器 */
 .chart-box {
   display: flex;
   gap: 20px;
   margin-bottom: 20px;
   flex-wrap: wrap;
 }
 .chart-item {
   flex: 1;
   min-width: 400px;
   height: 320px;
   background: #fff;
   padding: 20px;
   border-radius: 4px;
   box-shadow: 0 1px 3px rgba(0,0,0,0.1);
 }
 /* 模块样式 */
 .module {
   display: none;
 }
 .module.active {
   display: block;
 }
 .module-title {
   font-size: 18px;
   margin-bottom: 15px;
   color: #333;
   padding-bottom: 10px;
   border-bottom: 2px solid #1ab394;
 }
 /* 搜索栏 */
 .search-bar {
   background: #fff;
   padding: 15px;
   border-radius: 4px;
   margin-bottom: 15px;
   display: flex;
   gap: 15px;
   align-items: center;
   flex-wrap: wrap;
 }
 .search-item {
   display: flex;
   align-items: center;
   gap: 8px;
 }
 .search-item label {
   font-size: 14px;
   color: #333;
 }
 input {
   padding: 6px 10px;
   border: 1px solid #ddd;
   border-radius: 4px;
   outline: none;
 }
 .btn {
   padding: 6px 15px;
   border: none;
   border-radius: 4px;
   cursor: pointer;
   font-size: 14px;
 }
 .btn-primary {
   background-color: #1ab394;
   color: #fff;
 }
 /* 表格样式 */
 .table-box {
   background: #fff;
   padding: 15px;
   border-radius: 4px;
 }
 table {
   width: 100%;
   border-collapse: collapse;
   text-align: center;
   font-size: 14px;
 }
 th {
   background-color: #1ab394;
   color: #fff;
   padding: 12px;
 }
 td {
   padding: 10px;
   border-bottom: 1px solid #eee;
 }
 tr:nth-child(even) {
   background-color: #f9f9f9;
 }
 tr:hover {
   background-color: #f1f1f1;
 }
 .operate a {
   margin: 0 5px;
   color: #1ab394;
   cursor: pointer;
 }
 /* 弹窗 */
 .modal {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0,0,0,0.5);
   display: none;
   justify-content: center;
   align-items: center;
   z-index: 999;
 }
 .modal-content {
   width: 650px;
   background: #fff;
   border-radius: 4px;
   padding: 20px;
   position: relative;
 }
 .close {
   position: absolute;
   top: 15px;
   right: 20px;
   font-size: 22px;
   cursor: pointer;
 }
 .form-group {
   margin-bottom: 15px;
 }
 .form-group label {
   display: block;
   margin-bottom: 5px;
   font-size: 14px;
 }
 .form-group input, textarea {
   width: 100%;
   padding: 8px;
   border: 1px solid #ddd;
   border-radius: 4px;
 }
 textarea {
   height: 80px;
   resize: vertical;
 }
 /* 加载动画 */
 .loading {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(255,255,255,0.9);
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 9999;
   display: none;
 }
 .loader {
   width: 45px;
   height: 45px;
   border: 5px solid #f3f3f3;
   border-top: 5px solid #1ab394;
   border-radius: 50%;
   animation: spin 1s linear infinite;
 }
 @keyframes spin {
   0% { transform: rotate(0deg); }
   100% { transform: rotate(360deg); }
 }