:root {
    --blue: #2a67fe;
    --blue-hover: #1f53e6;
    --muted: #7a889f;
    --line: #d7d7d7;
    --bg: #f4f6fb;
    --table-border: #e7ebf5;
    --table-header: #f5f7ff;
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: #333;
}

.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 220px auto;
    grid-template-rows: 60px auto;
    grid-template-areas:
        "topbar topbar"
        "sidebar content";
}

.topbar {
    grid-area: topbar;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.brand {
    font-size: 24px;
    font-weight: 600;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.sidebar {
    grid-area: sidebar;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 20px;
}

.nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    padding: 14px 32px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--blue);
}

.nav-item.active {
    color: var(--blue);
    font-weight: 600;
}

.content {
    grid-area: content;
    padding: 20px 24px 40px;
    overflow-y: auto;
}

.page-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: #0d1a39;
}

.underline {
    height: 1px;
    background: var(--line);
    margin: 8px 0 20px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--table-border);
}

.filter span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.filter select {
    width: 160px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--line);
    padding: 0 10px;
    font-size: 14px;
}

.search-group {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-group input {
    width: 200px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--line);
    padding: 0 12px;
    font-size: 14px;
}

.btn {
    min-width: 80px;
    height: 34px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--blue-hover);
}

.btn-outline {
    background: #fff;
    color: var(--muted);
    border: 1px solid var(--line);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.table-card {
    margin-top: 20px;
    padding: 20px 20px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--table-border);
}

.table-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--muted);
}

.table-toolbar select {
    margin-left: 8px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--line);
    padding: 0 10px;
    font-size: 14px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: var(--table-header);
}

th,
td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--table-border);
    text-align: left;
    color: #333;
}

.col-checkbox {
    width: 56px;
}

tbody tr:hover {
    background: #f9fbff;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.tag-success {
    background: rgba(59, 196, 150, 0.12);
    color: #1fa87f;
}

.pagination {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

.pager {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon,
.page-number {
    min-width: 40px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
}

.btn-icon:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.page-number.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.pager input {
    width: 52px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--line);
    padding: 0 8px;
    font-size: 13px;
}

