/* 主页面样式 */
#main-page {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部导航 */
.top-nav {
    height: 60px;
    background: white;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-left h2 {
    margin: 0;
    font-size: 18px;
    color: #303133;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-logout {
    padding: 8px 16px;
    background: #f56c6c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-logout:hover {
    background: #f78989;
}

/* 主容器 */
.main-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 200px;
    background: white;
    border-right: 1px solid #ebeef5;
    overflow-y: auto;
}

.menu-list {
    padding: 10px 0;
}

.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: #606266;
}

.menu-item:hover {
    background: #f5f7fa;
    color: #409eff;
}

.menu-item.active {
    background: #ecf5ff;
    color: #409eff;
    border-right: 3px solid #409eff;
}

/* 内容区 */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    margin: 0;
    font-size: 20px;
    color: #303133;
}

/* 首页样式 */
.welcome-info {
    background: white;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.welcome-info p {
    margin: 8px 0;
    color: #606266;
}

.module-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.module-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.module-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.module-name {
    font-size: 16px;
    color: #303133;
    font-weight: 500;
}

/* 详情展开区域 */
.order-details {
    background: #f5f7fa;
    padding: 16px;
    margin-top: 8px;
    border-radius: 4px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.detail-table th,
.detail-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
}

.detail-table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #606266;
}

