        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background-color: #f0f2f5;
            height: 100vh;
            margin: 0;
            padding: 0;
            overflow: auto;  /* 改为auto，允许页面滚动 */
        }
        
        .app-container {
            display: flex;
            height: 100vh;
            overflow: hidden;  /* 防止出现双滚动条 */
        }
        
        /* 左侧菜单栏 */
        .sidebar {
            width: 250px;
            background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
            color: white;
            display: flex;
            flex-direction: column;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        }
        
        .sidebar-header {
            padding: 20px;
            background: rgba(0,0,0,0.2);
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        
        .sidebar-header h1 {
            font-size: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .sidebar-menu {
            flex: 1;
            padding: 20px 0;
        }
        
        .menu-item {
            padding: 15px 20px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
            border-left: 3px solid transparent;
        }
        
        .menu-item:hover {
            background: rgba(255,255,255,0.1);
        }
        
        .menu-item.active {
            background: rgba(255,255,255,0.15);
            border-left-color: #3498db;
        }
        
        .menu-icon {
            font-size: 18px;
        }
        
        /* 主内容区 */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            min-width: 0;  /* 防止flex子项撑开 */
        }
        
        /* 顶部栏 */
        .top-bar {
            background: white;
            padding: 15px 30px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .page-title {
            font-size: 24px;
            color: #2c3e50;
            font-weight: 500;
        }
        
        /* 筛选区域 */
        .filter-section {
            background: white;
            margin: 20px;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .filter-row {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            align-items: center;
        }
        
        .filter-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
            min-width: 150px;
        }
        
        .filter-item label {
            font-size: 14px;
            color: #666;
            font-weight: 500;
        }
        
        .filter-item select,
        .filter-item input {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            background: white;
        }
        
        .filter-item select:focus,
        .filter-item input:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }
        
        .filter-buttons {
            display: flex;
            gap: 10px;
            margin-left: auto;
        }
        
        /* 内容区 */
        .content-wrapper {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;  /* 只允许垂直滚动 */
            padding: 0 20px 20px;
            -webkit-overflow-scrolling: touch;  /* iOS平滑滚动 */
            min-height: 0;  /* 确保在flex布局中可以出现滚动条 */
        }
        
        /* 操作区 */
        .action-section {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f2f5;
        }
        
        .section-title {
            font-size: 18px;
            color: #2c3e50;
            font-weight: 500;
        }
        
        /* 表格样式 */
        .data-table {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        thead {
            background: #f8f9fa;
        }
        
        th {
            padding: 12px 15px;
            text-align: left;
            font-weight: 600;
            color: #2c3e50;
            font-size: 14px;
            border-bottom: 2px solid #e9ecef;
        }
        
        td {
            padding: 12px 15px;
            border-bottom: 1px solid #f0f2f5;
            font-size: 14px;
            color: #495057;
        }
        
        tr:hover {
            background: #f8f9fa;
        }
        
        /* 按钮样式 */
        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .btn-primary {
            background: #3498db;
            color: white;
        }
        
        .btn-primary:hover {
            background: #2980b9;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
        }
        
        .btn-success {
            background: #27ae60;
            color: white;
        }
        
        .btn-success:hover {
            background: #229954;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
        }
        
        .btn-warning {
            background: #f39c12;
            color: white;
        }
        
        .btn-warning:hover {
            background: #e67e22;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
        }
        
        .btn-danger {
            background: #e74c3c;
            color: white;
        }
        
        .btn-danger:hover {
            background: #c0392b;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
        }
        
        .btn-default {
            background: #95a5a6;
            color: white;
        }
        
        .btn-default:hover {
            background: #7f8c8d;
        }
        
        .btn-sm {
            padding: 5px 10px;
            font-size: 12px;
        }
        
        /* 表单样式 */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .form-group label {
            font-size: 14px;
            color: #495057;
            font-weight: 500;
        }
        
        .form-group input,
        .form-group select {
            padding: 8px 12px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            font-size: 14px;
        }
        
        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }
        
        /* 消息提示 */
        .message {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 12px 20px;
            border-radius: 4px;
            display: none;
            z-index: 1000;
            animation: slideIn 0.3s ease;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        .message.success {
            background: #d4edda;
            color: #155724;
            border-left: 4px solid #27ae60;
        }
        
        .message.error {
            background: #f8d7da;
            color: #721c24;
            border-left: 4px solid #e74c3c;
        }
        
        /* 弹窗样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 999;
            justify-content: center;
            align-items: center;
        }
        
        .modal.show {
            display: flex;
        }
        
        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 8px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            animation: modalShow 0.3s ease;
        }
        
        @keyframes modalShow {
            from {
                transform: scale(0.9);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f2f5;
        }
        
        .modal-title {
            font-size: 20px;
            color: #2c3e50;
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #95a5a6;
        }
        
        .modal-close:hover {
            color: #2c3e50;
        }
        
        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid #f0f2f5;
        }
        
        /* 标签样式 */
        .tag {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 3px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .tag-success {
            background: #d4edda;
            color: #155724;
        }
        
        .tag-warning {
            background: #fff3cd;
            color: #856404;
        }
        
        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #95a5a6;
        }
        
        .empty-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }
        
        .empty-text {
            font-size: 16px;
        }

        th.sortable { cursor: pointer; user-select: none; }
        th.sortable .sort-indicator { font-size: 12px; margin-left: 4px; opacity: .6; }
        th.sortable.active { color: #1677ff; }

        /* 关键：让页面内容区成为可滚动容器 */
        .app-container {
            height: 100vh;
            display: flex;
            overflow: hidden; /* 避免双滚动条 */
        }
        
        .sidebar {
            overflow-y: auto;           /* 侧边栏内容超出也能滚 */
        }
        
        .main-content {
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;     /* 顶部栏 + 页面内容 纵向排列 */
            min-height: 0;              /* 让子元素(.page-content)在flex里可以收缩并出现滚动条的关键 */
            overflow: hidden;
        }
        
        .top-bar {
            flex: 0 0 auto;
            /* 可选：想固定在顶部可以启用下面两行
            position: sticky;
            top: 0;
            */
        }
        
        .page-content {
            flex: 1 1 auto;
            min-height: 0;              /* 关键：允许出现滚动条 */
            overflow-y: auto;           /* 垂直滚动 */
            overflow-x: hidden;         /* 防止水平滚动 */
            -webkit-overflow-scrolling: touch;  /* iOS平滑滚动 */
            overscroll-behavior: contain;
            padding-right: 6px;         /* 预留点空间避免遮住内容（可选） */
            height: calc(100vh - 80px); /* 明确设置高度，减去顶部栏的高度 */
        }
        
        /* 如果你的表格特别宽，想出现横向滚动可给表格外层加： */
        .data-table {
            overflow: auto;             /* 表格区域也支持横纵滚动 */
        }

        /* 添加跨浏览器兼容性样式 */
        html {
            overflow-y: scroll;         /* 始终显示垂直滚动条，防止内容跳动 */
            scroll-behavior: smooth;    /* 平滑滚动 */
        }

        /* 修复某些浏览器的滚动问题 */
        * {
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }

        /* 确保在移动设备上也能正常滚动 */
        @media screen and (max-width: 768px) {
            .app-container {
                height: auto;
                min-height: 100vh;
            }
            
            .page-content {
                height: auto;
                min-height: calc(100vh - 80px);
            }
        }
  
        