* {
    box-sizing: border-box;
}

:root {
    --shell-bg: #f3f6fb;
    --sidebar-bg: #0f172a;
    --sidebar-soft: #172033;
    --sidebar-line: rgba(148, 163, 184, 0.16);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-soft: #e8f1ff;
    --accent: #10b981;
    --line: #e2e8f0;
}

body {
    margin: 0;
    color: var(--text-main);
    background: var(--shell-bg);
    font-family: Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
    font-size: 13px;
    overflow: hidden;
}

[v-cloak] {
    display: none;
}

.app-shell {
    width: 100vw;
    height: 100vh;
}

.layout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--shell-bg);
}

.topbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
    z-index: 3;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-logo {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.18));
}

.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.topbar-status {
    height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    font-size: 12px;
    font-weight: 600;
}

.topbar-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.avatar {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #111827;
    font-weight: 800;
}

.main {
    display: flex;
    height: calc(100vh - 64px);
    min-height: 0;
}

.sidebar {
    width: 236px;
    flex: 0 0 236px;
    padding: 18px 14px;
    background: var(--sidebar-bg);
    overflow-y: auto;
    box-shadow: inset -1px 0 0 var(--sidebar-line);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
}

.menu-group {
    margin-bottom: 8px;
}

.menu-group-title,
.menu-item {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.menu-group-title {
    font-weight: 700;
}

.menu-group-title:hover,
.menu-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.menu-group-title.active {
    color: #fff;
}

.menu-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 11px;
}

.menu-item {
    position: relative;
    margin: 4px 0;
    padding-left: 38px;
    color: #94a3b8;
    font-size: 12px;
}

.menu-item:before {
    content: "";
    position: absolute;
    left: 22px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #475569;
}

.menu-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.88), rgba(16, 185, 129, 0.52));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.menu-item.active:before {
    background: #fff;
}

.menu-icon {
    width: 16px;
    text-align: center;
    color: #93c5fd;
    font-size: 13px;
}

.content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--shell-bg);
}

.breadcrumb {
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-muted);
    flex: 0 0 50px;
    font-weight: 600;
}

.workspace {
    flex: 1;
    min-height: 0;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 340px), var(--shell-bg);
}

.page-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    border: 0;
}

@media (max-width: 900px) {
    .topbar {
        height: 58px;
        padding: 0 16px;
    }

    .brand {
        font-size: 16px;
    }

    .topbar-status {
        display: none;
    }

    .main {
        height: calc(100vh - 58px);
    }

    .sidebar {
        display: none;
    }

    .breadcrumb {
        height: 44px;
        padding: 0 14px;
    }
}
