* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: unset;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f2f3f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #1d2129;
}

:root {
    --primary: #165DFF;
    --success: #00B42A;
    --danger: #F53F3F;
    --warning: #FF7D00;
    --gray-100: #F2F3F5;
    --gray-200: #E5E6EB;
    --gray-300: #C9CDD4;
    --gray-400: #86909C;
    --gray-500: #4E5969;
    --gray-600: #272E3B;
    --gray-700: #1D2129;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-dropdown: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 布局类 */
.app-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 256px;
    background: #fff;
    box-shadow: var(--shadow-card);
    z-index: 10;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    padding: 16px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--gray-500);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
}

.nav-link:hover {
    background: var(--gray-100);
}

.nav-link.active {
    background: rgba(22, 93, 255, 0.1);
    color: var(--primary);
}
    .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
    .top-bar { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.05); z-index: 10; }
    .top-bar-container { display: flex; align-items: center; justify-content: space-between; padding: 16px; }
    .top-bar-left { display: flex; align-items: center; }
 .mobile-menu-btn { background: none; border: none; margin-right: 16px; color: var(--gray-500); font-size: 1.25rem; cursor: pointer; display: none; }
       .user-area { display: flex; align-items: center; gap: 16px; }
    .user-dropdown { display: flex; align-items: center; gap: 8px; background: none; border: none; color: var(--gray-500); cursor: pointer; }
    .user-dropdown:hover { color: var(--primary); }
    .user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

    .user-dropdown-wrap { position: relative; display: inline-flex; align-items: center; }
    .user-dropdown-menu {
        position: absolute;
        right: 0;
        top: 100%;
        min-width: 180px;
        background: #fff;
        border: 1px solid var(--gray-200);
        border-radius: 10px;
        box-shadow: var(--shadow-dropdown);
        padding: 8px;
        display: none;
        z-index: 999;
    }
    .user-dropdown-wrap:hover .user-dropdown-menu,
    .user-dropdown-menu.open { display: block; }

    .user-menu-header { padding: 10px 10px 8px; }
    .user-menu-name { font-size: 0.95rem; font-weight: 600; color: var(--gray-700); }
    .user-menu-meta { margin-top: 2px; font-size: 0.8rem; color: var(--gray-400); }
    .user-menu-divider { height: 1px; background: var(--gray-200); margin: 6px 0; }

    .user-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 10px;
        border-radius: 8px;
        color: var(--gray-600);
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
        white-space: nowrap;
    }
    .user-menu-item i { width: 16px; text-align: center; }
    .user-menu-item:hover { background: var(--gray-100); color: var(--primary); }
    .user-menu-item.is-danger:hover { color: var(--danger); }
   
th{
    white-space: nowrap;
}   .filter-bar{
        gap: 10px;
        margin-top:16px; 
      }
    /* 移动端侧边栏 */
    @media (max-width: 768px) {
      .mobile-menu-btn { display: block; }
      .sidebar { position: absolute; height: 100%; transform: translateX(-100%); transition: transform 0.2s; }
      .sidebar.open { transform: translateX(0); }
   
    }
       .order-tabs {
            display: flex;
            margin-bottom: 16px;
            border-bottom: 1px solid #e5e5e5;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        .tab-item {
            flex: 1;
            text-align: center;
            padding: 16px 0;
            font-size: 16px;
            color: #666;
            cursor: pointer;
            position: relative;
            transition: color 0.3s;
        }
        .tab-item.active {
            color: var(--primary);
            font-weight: 500;
        }
        .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary);
        }