/* ==========================================================================
   云枢社区管理后台 · Nebula Console
   视觉升级层：在不改变业务结构的前提下统一品牌、层级与动效
   ========================================================================== */

:root {
    --admin-primary: #5b6cff;
    --admin-primary-deep: #4352df;
    --admin-violet: #8b5cf6;
    --admin-cyan: #2dd4bf;
    --admin-pink: #fb7185;
    --admin-amber: #fbbf24;
    --admin-bg: #f3f5fb;
    --admin-surface: rgba(255, 255, 255, 0.88);
    --admin-ink: #1a2138;
    --admin-muted: #75809b;
    --admin-line: rgba(80, 96, 140, 0.12);
    --admin-sidebar-bg: #111526;
    --admin-sidebar-width: 248px;
    --admin-sidebar-collapsed: 76px;
    --admin-topbar-height: 72px;
    --admin-radius-lg: 22px;
    --admin-radius-md: 14px;
    --admin-shadow-sm: 0 8px 28px rgba(34, 46, 88, 0.07);
    --admin-shadow-md: 0 18px 48px rgba(34, 46, 88, 0.11);
    --admin-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --el-color-primary: #5b6cff;
    --el-color-primary-light-3: #8490ff;
    --el-color-primary-light-5: #abb3ff;
    --el-color-primary-light-7: #d2d6ff;
    --el-color-primary-light-8: #e2e5ff;
    --el-color-primary-light-9: #f0f2ff;
    --el-color-primary-dark-2: #4352df;
    --el-border-radius-base: 10px;
    --el-border-radius-small: 8px;
    --el-box-shadow-light: var(--admin-shadow-sm);
}

html {
    background: #f3f5fb;
}

body {
    color: var(--admin-ink);
    background:
        radial-gradient(circle at 88% 4%, rgba(91, 108, 255, 0.09), transparent 25rem),
        radial-gradient(circle at 22% 95%, rgba(45, 212, 191, 0.06), transparent 28rem),
        var(--admin-bg);
}

::selection {
    color: #fff;
    background: rgba(91, 108, 255, 0.78);
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 20px;
    background: rgba(117, 128, 155, 0.34);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 108, 255, 0.55);
    background-clip: padding-box;
}

/* --------------------------------------------------------------------------
   主框架
   -------------------------------------------------------------------------- */
.admin-layout {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 95% 3%, rgba(139, 92, 246, 0.08), transparent 25rem),
        radial-gradient(circle at 50% 100%, rgba(45, 212, 191, 0.05), transparent 30rem),
        var(--admin-bg);
}

.ambient-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.62;
    filter: blur(2px);
    will-change: transform;
}

.ambient-orb::after {
    position: absolute;
    inset: 26%;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.42);
    filter: blur(26px);
    content: "";
}

.ambient-orb.orb-one {
    top: -180px;
    right: -120px;
    width: 470px;
    height: 470px;
    background: radial-gradient(circle at 35% 35%, rgba(139, 92, 246, 0.3), rgba(91, 108, 255, 0.08) 55%, transparent 72%);
    animation: ambientDriftOne 18s ease-in-out infinite alternate;
}

.ambient-orb.orb-two {
    right: 22%;
    bottom: -260px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 60% 35%, rgba(45, 212, 191, 0.18), rgba(45, 212, 191, 0.03) 57%, transparent 72%);
    animation: ambientDriftTwo 22s ease-in-out infinite alternate;
}

.ambient-orb.orb-three {
    top: 38%;
    left: 30%;
    width: 260px;
    height: 260px;
    opacity: 0.4;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.12), transparent 68%);
    animation: ambientDriftThree 16s ease-in-out infinite alternate;
}

.admin-sidebar {
    position: relative;
    z-index: 20;
    width: var(--admin-sidebar-width);
    background:
        linear-gradient(172deg, rgba(21, 27, 51, 0.96), rgba(14, 18, 34, 0.99) 72%),
        var(--admin-sidebar-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 18px 0 45px rgba(17, 21, 38, 0.08);
    transition:
        width 0.36s var(--admin-ease),
        box-shadow 0.36s ease,
        transform 0.36s var(--admin-ease);
}

.admin-sidebar::before {
    position: absolute;
    top: -170px;
    left: -120px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 108, 255, 0.3), rgba(139, 92, 246, 0.08) 50%, transparent 70%);
    pointer-events: none;
    content: "";
    animation: sidebarGlow 10s ease-in-out infinite alternate;
}

.admin-sidebar::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(126, 142, 255, 0.45) 22%, rgba(45, 212, 191, 0.22) 74%, transparent);
    pointer-events: none;
    content: "";
}

.admin-sidebar.collapsed {
    width: var(--admin-sidebar-collapsed);
    box-shadow: 12px 0 34px rgba(17, 21, 38, 0.06);
}

.sidebar-header {
    position: relative;
    height: 84px;
    gap: 12px;
    padding: 0 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-logo {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.32), transparent 43%),
        linear-gradient(135deg, #6d7cff 0%, #8b5cf6 54%, #4f46e5 100%);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow:
        0 9px 24px rgba(91, 108, 255, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.36);
    transform: translateZ(0);
    animation: logoFloat 5.5s ease-in-out infinite;
}

.sidebar-logo::before,
.sidebar-logo::after {
    position: absolute;
    border-radius: 18px;
    pointer-events: none;
    content: "";
}

.sidebar-logo::before {
    inset: -7px;
    border: 1px solid rgba(139, 151, 255, 0.25);
    animation: logoRing 3.2s ease-out infinite;
}

.sidebar-logo::after {
    top: -3px;
    right: -3px;
    width: 9px;
    height: 9px;
    border: 2px solid #151a2e;
    border-radius: 50%;
    background: #4adecc;
    box-shadow: 0 0 14px rgba(74, 222, 204, 0.85);
}

.sidebar-logo:hover {
    transform: translateY(-2px) rotate(-3deg);
}

.sidebar-title {
    min-width: 0;
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity 0.2s ease,
        transform 0.3s var(--admin-ease);
}

.sidebar-title b {
    overflow: hidden;
    color: #f5f7ff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
}

.sidebar-title small {
    margin-top: 4px;
    color: #77829e;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sidebar-menu {
    position: relative;
    z-index: 1;
    padding: 14px 11px 10px;
}

.admin-sidebar .el-menu {
    --el-menu-hover-bg-color: rgba(255, 255, 255, 0.055);
    --el-menu-text-color: #a9b2c9;
    --el-menu-hover-text-color: #ffffff;
    --el-menu-active-color: #ffffff;
}

.admin-sidebar .el-menu-item,
.admin-sidebar .el-sub-menu__title {
    position: relative;
    height: 46px;
    margin: 3px 0;
    padding: 0 14px !important;
    overflow: hidden;
    border-radius: 12px;
    line-height: 46px;
    color: #a9b2c9;
    font-size: 13.5px;
    transition:
        color 0.22s ease,
        background 0.22s ease,
        transform 0.22s var(--admin-ease);
}

.admin-sidebar .el-menu-item::before,
.admin-sidebar .el-sub-menu__title::before {
    position: absolute;
    top: 50%;
    left: 4px;
    width: 3px;
    height: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #a8b3ff, #49ddce);
    box-shadow: 0 0 12px rgba(105, 208, 255, 0.55);
    content: "";
    transform: translateY(-50%);
    transition: height 0.25s var(--admin-ease);
}

.admin-sidebar .el-menu-item:hover,
.admin-sidebar .el-sub-menu__title:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    transform: translateX(2px);
}

.admin-sidebar .el-menu-item .el-icon,
.admin-sidebar .el-sub-menu__title .el-icon {
    width: 22px;
    margin-right: 10px;
    color: #8f9ab6;
    font-size: 18px;
    transition:
        color 0.22s ease,
        transform 0.3s var(--admin-ease);
}

.admin-sidebar .el-menu-item:hover .el-icon,
.admin-sidebar .el-sub-menu__title:hover .el-icon {
    color: #b8c1ff;
    transform: scale(1.08);
}

.admin-sidebar .el-sub-menu.is-opened > .el-sub-menu__title {
    color: #eef1ff;
}

.admin-sidebar .el-sub-menu.is-opened > .el-sub-menu__title .el-icon {
    color: #9eabff;
}

.admin-sidebar .el-menu-item.is-active {
    color: #fff !important;
    background:
        linear-gradient(100deg, rgba(91, 108, 255, 0.92), rgba(126, 87, 255, 0.74));
    box-shadow:
        0 8px 22px rgba(66, 75, 191, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.admin-sidebar .el-menu-item.is-active::before {
    height: 22px;
}

.admin-sidebar .el-menu-item.is-active .el-icon {
    color: #fff;
}

.admin-sidebar .el-sub-menu .el-menu {
    margin: 2px 0 7px;
    padding-left: 8px;
    background: transparent;
}

.admin-sidebar .el-sub-menu .el-menu::before {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 22px;
    width: 1px;
    background: linear-gradient(180deg, rgba(139, 151, 255, 0.2), rgba(139, 151, 255, 0.02));
    content: "";
}

.admin-sidebar .el-sub-menu .el-menu .el-menu-item {
    height: 40px;
    margin: 1px 0;
    padding-left: 42px !important;
    border-radius: 10px;
    line-height: 40px;
    color: #8993ac;
    font-size: 12.5px;
}

.admin-sidebar .el-sub-menu .el-menu .el-menu-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
}

.admin-sidebar .el-sub-menu .el-menu .el-menu-item.is-active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(91, 108, 255, 0.82), rgba(91, 108, 255, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.sidebar-footer {
    margin: 8px 13px 16px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
    transition:
        opacity 0.2s ease,
        transform 0.3s var(--admin-ease);
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d9dff5;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pulse {
    position: relative;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #4adecc;
    box-shadow: 0 0 12px rgba(74, 222, 204, 0.8);
}

.status-pulse::after {
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(74, 222, 204, 0.55);
    border-radius: inherit;
    content: "";
    animation: statusRipple 2.2s ease-out infinite;
}

.sidebar-footer small {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: #66708a;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.admin-sidebar.collapsed .sidebar-footer {
    padding: 15px 10px;
    opacity: 0;
    transform: scale(0.85);
}

.admin-sidebar.collapsed .sidebar-title {
    opacity: 0;
    transform: translateX(-8px);
}

.admin-sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
}

.admin-sidebar.collapsed .sidebar-menu {
    padding-right: 8px;
    padding-left: 8px;
}

.admin-sidebar.collapsed .el-menu-item,
.admin-sidebar.collapsed .el-sub-menu__title {
    justify-content: center;
    padding: 0 !important;
}

.admin-sidebar.collapsed .el-menu-item .el-icon,
.admin-sidebar.collapsed .el-sub-menu__title .el-icon {
    margin: 0;
}

.admin-main {
    position: relative;
    z-index: 2;
}

.admin-topbar {
    position: relative;
    height: var(--admin-topbar-height);
    gap: 16px;
    padding: 0 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 34px rgba(40, 52, 92, 0.055);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.admin-topbar::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 108, 255, 0.38), rgba(45, 212, 191, 0.25), transparent);
    background-size: 220% 100%;
    content: "";
    animation: topbarFlow 7s linear infinite;
}

.topbar-left {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.sidebar-toggle.el-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    color: #5f6b88;
    background: rgba(255, 255, 255, 0.68);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.25s var(--admin-ease),
        box-shadow 0.25s ease;
}

.sidebar-toggle.el-button:hover {
    color: var(--admin-primary);
    background: #fff;
    box-shadow: 0 7px 18px rgba(69, 82, 142, 0.12);
    transform: translateY(-1px);
}

.page-context {
    min-width: 0;
}

.page-context .page-title {
    display: block;
    overflow: hidden;
    color: #202743;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-context small {
    display: block;
    margin-top: 3px;
    color: #9aa3b8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.topbar-spacer {
    flex: 1;
}

.topbar-live {
    display: inline-flex;
    height: 32px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(45, 165, 145, 0.12);
    border-radius: 999px;
    color: #268c7b;
    background: rgba(224, 251, 246, 0.72);
    font-size: 11px;
    font-weight: 650;
}

.topbar-live .status-pulse {
    width: 6px;
    height: 6px;
}

.site-chip {
    height: 34px;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid rgba(91, 108, 255, 0.1);
    border-radius: 999px;
    color: #4f5ed2;
    background: linear-gradient(135deg, rgba(238, 241, 255, 0.92), rgba(247, 248, 255, 0.84));
    font-size: 11.5px;
    font-weight: 650;
}

.site-chip .el-icon {
    font-size: 14px;
}

.ui-switch-button.el-button {
    height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(80, 96, 140, 0.12);
    border-radius: 10px;
    color: #68738b;
    background: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 650;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.22s var(--admin-ease);
}

.ui-switch-button.el-button:hover {
    border-color: rgba(91, 108, 255, 0.24);
    color: var(--admin-primary);
    background: #fff;
    transform: translateY(-1px);
}

.bigscreen-button.el-button {
    height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(45, 165, 150, 0.12);
    border-radius: 10px;
    color: #258f80;
    background: linear-gradient(135deg, rgba(229, 250, 246, 0.9), rgba(239, 247, 255, 0.78));
    font-size: 11px;
    font-weight: 650;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.22s ease,
        transform 0.22s var(--admin-ease);
}

.bigscreen-button.el-button:hover {
    border-color: rgba(45, 165, 150, 0.25);
    color: #178777;
    box-shadow: 0 8px 18px rgba(39, 151, 135, 0.1);
    transform: translateY(-1px);
}

.bigscreen-button .el-icon {
    margin-right: 4px;
}

.ui-switch-arrow {
    margin-left: 3px;
    color: #a0a8bb;
    font-size: 9px;
}

.ui-switch-dropdown .el-dropdown-menu__item {
    min-width: 190px;
    font-size: 12px;
}

.ui-switch-dropdown .ui-switch-note {
    max-width: 220px;
    color: #9aa3b6;
    font-size: 9px;
    line-height: 1.5;
    white-space: normal;
}

.topbar-profile {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding-left: 5px;
}

.topbar-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #5b6cff, #8b5cf6);
    font-size: 14px;
    font-weight: 750;
    box-shadow:
        0 0 0 1px rgba(91, 108, 255, 0.16),
        0 6px 16px rgba(91, 108, 255, 0.2);
}

.topbar-avatar::after {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 7px;
    height: 7px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #28c9ab;
    content: "";
}

.profile-copy {
    min-width: 0;
}

.profile-copy b {
    display: block;
    max-width: 130px;
    overflow: hidden;
    color: #353e59;
    font-size: 12.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy small {
    display: block;
    margin-top: 2px;
    color: #a0a8bb;
    font-size: 10px;
}

.logout-button.el-button {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #9aa2b5;
    transition: all 0.22s ease;
}

.logout-button.el-button:hover {
    border-color: rgba(244, 63, 94, 0.1);
    color: #e74b64;
    background: rgba(255, 241, 243, 0.84);
    transform: translateY(-1px);
}

.logout-button .el-icon {
    font-size: 17px;
}

.logout-button span span:not(.el-icon) {
    display: none;
}

.admin-content {
    position: relative;
    padding: 28px 30px 42px;
    scroll-behavior: smooth;
}

.admin-content::before {
    position: fixed;
    z-index: -1;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 108, 255, 0.055), transparent 70%);
    pointer-events: none;
    content: "";
    transform: translate(-40%, -25%);
}

/* Vue 路由转场 */
.page-shift-enter-active,
.page-shift-leave-active {
    transition:
        opacity 0.22s ease,
        transform 0.38s var(--admin-ease),
        filter 0.28s ease;
}

.page-shift-enter-from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(10px) scale(0.995);
}

.page-shift-leave-to {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(-5px) scale(0.998);
}

/* --------------------------------------------------------------------------
   通用卡片 / 表格 / 表单
   -------------------------------------------------------------------------- */
.table-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.86) !important;
    border-radius: var(--admin-radius-lg) !important;
    background: var(--admin-surface) !important;
    box-shadow: var(--admin-shadow-sm) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        transform 0.3s var(--admin-ease),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.table-card:hover {
    border-color: rgba(91, 108, 255, 0.1) !important;
    box-shadow: var(--admin-shadow-md) !important;
}

.table-card .el-card__header {
    padding: 17px 20px;
    border-bottom: 1px solid var(--admin-line);
    background: rgba(255, 255, 255, 0.45);
}

.table-card .el-card__header b {
    color: #29314a;
    font-size: 14px;
    font-weight: 700;
}

.table-card .el-card__body {
    padding: 20px;
}

.toolbar {
    gap: 10px;
    margin-bottom: 18px;
}

.toolbar .el-input__wrapper,
.toolbar .el-select__wrapper {
    min-height: 38px;
}

.pager {
    margin-top: 18px;
    padding-top: 4px;
}

.el-button {
    font-weight: 600;
    letter-spacing: 0.01em;
    transition:
        transform 0.22s var(--admin-ease),
        box-shadow 0.22s ease,
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.el-button:not(.is-disabled):active {
    transform: scale(0.97);
}

.el-button--primary:not(.is-link):not(.is-text) {
    border-color: transparent;
    background: linear-gradient(135deg, #6675ff, #7653e8);
    box-shadow: 0 7px 18px rgba(91, 108, 255, 0.22);
}

.el-button--primary:not(.is-link):not(.is-text):hover {
    border-color: transparent;
    background: linear-gradient(135deg, #7280ff, #825ff2);
    box-shadow: 0 10px 24px rgba(91, 108, 255, 0.3);
    transform: translateY(-1px);
}

.el-input__wrapper,
.el-select__wrapper,
.el-textarea__inner,
.el-date-editor.el-input__wrapper {
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(117, 128, 155, 0.16) inset;
    transition:
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.el-input__wrapper:hover,
.el-select__wrapper:hover,
.el-textarea__inner:hover {
    box-shadow: 0 0 0 1px rgba(91, 108, 255, 0.3) inset;
}

.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused,
.el-textarea__inner:focus {
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(91, 108, 255, 0.72) inset,
        0 0 0 4px rgba(91, 108, 255, 0.075) !important;
}

.el-table {
    --el-table-header-bg-color: #f7f8fd;
    --el-table-row-hover-bg-color: #f8f9ff;
    --el-table-border-color: rgba(80, 96, 140, 0.075);
    border-radius: 12px;
    color: #4a546e;
}

.el-table::before {
    display: none;
}

.el-table th.el-table__cell {
    height: 45px;
    color: #78839b;
    background: #f7f8fd !important;
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: 0.03em;
}

.el-table td.el-table__cell {
    padding: 11px 0;
    border-bottom-color: rgba(80, 96, 140, 0.07);
}

.el-table tr {
    transition: background 0.2s ease;
}

.el-table__row:hover > td.el-table__cell {
    background: linear-gradient(90deg, rgba(247, 248, 255, 0.88), rgba(250, 250, 255, 0.72)) !important;
}

.el-tag {
    border-radius: 999px;
    font-weight: 600;
}

.el-dialog {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 80px rgba(27, 34, 66, 0.2);
    backdrop-filter: blur(24px);
}

.el-overlay-dialog {
    background: rgba(22, 27, 47, 0.35);
    backdrop-filter: blur(5px);
}

.el-dialog__header {
    padding: 21px 24px 16px;
    border-bottom: 1px solid var(--admin-line);
}

.el-dialog__title {
    color: #273049;
    font-size: 16px;
    font-weight: 700;
}

.el-dialog__body {
    padding: 22px 24px 8px;
}

.el-form-item__label {
    color: #555f77;
    font-weight: 600;
}

.el-message-box {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(25, 32, 60, 0.2);
}

.el-loading-mask {
    background: rgba(247, 248, 253, 0.74);
    backdrop-filter: blur(4px);
}

.el-loading-spinner .circular {
    animation-duration: 1.4s;
}

.el-loading-spinner .path {
    stroke: var(--admin-primary);
}

.el-pagination {
    --el-pagination-button-bg-color: transparent;
    --el-pagination-hover-color: var(--admin-primary);
}

.el-pagination button,
.el-pager li {
    border-radius: 8px !important;
}

.el-pager li.is-active {
    background: linear-gradient(135deg, #6473ff, #7754e8);
    box-shadow: 0 7px 16px rgba(91, 108, 255, 0.24);
}

.el-tabs__nav-wrap::after {
    background-color: rgba(80, 96, 140, 0.08);
}

.el-tabs__item {
    color: #7e889f;
    font-weight: 600;
}

.el-tabs__item.is-active {
    color: var(--admin-primary);
}

.el-tabs__active-bar {
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--admin-primary), var(--admin-violet));
}

.form-tip {
    color: #9099ae;
}

/* API 文档导航 */
.api-toc .el-menu {
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--admin-shadow-sm);
    backdrop-filter: blur(16px);
}

.api-toc .el-menu-item.is-active {
    background: linear-gradient(135deg, #6473ff, #7754e8);
    box-shadow: 0 8px 18px rgba(91, 108, 255, 0.2);
}

/* --------------------------------------------------------------------------
   登录页
   -------------------------------------------------------------------------- */
.login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 44px;
    background:
        radial-gradient(circle at 16% 18%, rgba(112, 126, 255, 0.22), transparent 28rem),
        radial-gradient(circle at 86% 82%, rgba(45, 212, 191, 0.13), transparent 24rem),
        linear-gradient(145deg, #0d1120 0%, #151a31 48%, #101426 100%);
    isolation: isolate;
}

.login-page::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 50% 48%, #000, transparent 76%);
    -webkit-mask-image: radial-gradient(circle at 50% 48%, #000, transparent 76%);
    content: "";
}

.login-page::after {
    position: absolute;
    top: -40%;
    left: 36%;
    z-index: -1;
    width: 52vw;
    height: 52vw;
    border-radius: 50%;
    background: conic-gradient(from 90deg, rgba(91, 108, 255, 0.08), rgba(139, 92, 246, 0.24), rgba(45, 212, 191, 0.1), rgba(91, 108, 255, 0.08));
    filter: blur(90px);
    content: "";
    animation: loginAurora 18s linear infinite;
}

.login-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(1px);
}

.login-orb.one {
    top: 8%;
    left: 7%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle at 40% 40%, rgba(106, 124, 255, 0.44), rgba(63, 72, 173, 0.07) 58%, transparent 72%);
    animation: loginOrbFloat 12s ease-in-out infinite alternate;
}

.login-orb.two {
    right: 2%;
    bottom: 5%;
    width: 330px;
    height: 330px;
    background: radial-gradient(circle at 40% 40%, rgba(45, 212, 191, 0.2), rgba(45, 212, 191, 0.025) 58%, transparent 72%);
    animation: loginOrbFloat 15s ease-in-out infinite alternate-reverse;
}

.login-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
        radial-gradient(circle at 27% 73%, rgba(172, 184, 255, 0.75) 0 1px, transparent 1.5px),
        radial-gradient(circle at 76% 31%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
        radial-gradient(circle at 88% 69%, rgba(122, 239, 221, 0.65) 0 1px, transparent 1.5px),
        radial-gradient(circle at 58% 88%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px);
    animation: particleTwinkle 5s ease-in-out infinite alternate;
}

.login-shell {
    position: relative;
    display: grid;
    width: min(1050px, 100%);
    min-height: min(650px, calc(100vh - 88px));
    margin: 0 auto;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;
    background: rgba(14, 18, 34, 0.68);
    box-shadow:
        0 40px 110px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    animation: loginShellIn 0.9s var(--admin-ease) both;
}

.login-visual {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    padding: 48px 50px 40px;
    background:
        radial-gradient(circle at 76% 36%, rgba(91, 108, 255, 0.27), transparent 18rem),
        radial-gradient(circle at 20% 88%, rgba(45, 212, 191, 0.1), transparent 16rem),
        linear-gradient(150deg, rgba(31, 38, 75, 0.96), rgba(16, 20, 39, 0.96));
}

.login-visual::before {
    position: absolute;
    top: -130px;
    right: -110px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(135, 148, 255, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 64px rgba(135, 148, 255, 0.025),
        0 0 0 128px rgba(135, 148, 255, 0.018);
    content: "";
}

.login-visual::after {
    position: absolute;
    right: 18%;
    bottom: -190px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 67%);
    content: "";
    animation: visualPulse 8s ease-in-out infinite;
}

.login-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand-mark {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #6c7cff, #8d5cf6);
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(91, 108, 255, 0.34);
}

.login-brand-mark::after {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 9px;
    height: 9px;
    border: 2px solid #1c2344;
    border-radius: 50%;
    background: #4de1cd;
    content: "";
    box-shadow: 0 0 12px rgba(77, 225, 205, 0.8);
}

.login-brand-copy b {
    display: block;
    color: #f7f8ff;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.login-brand-copy small {
    display: block;
    margin-top: 3px;
    color: #747f9e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.login-hero-copy {
    position: relative;
    z-index: 2;
    margin-top: 58px;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #aeb8e5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.login-eyebrow::before {
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, #56dfd0, #8a96ff);
    content: "";
}

.login-hero-copy h2 {
    max-width: 420px;
    color: #f8f9ff;
    font-size: clamp(30px, 3.2vw, 43px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.login-hero-copy h2 span {
    color: transparent;
    background: linear-gradient(92deg, #99a5ff, #c5b6ff 46%, #70e5d6);
    background-clip: text;
    -webkit-background-clip: text;
}

.login-hero-copy p {
    max-width: 390px;
    margin-top: 18px;
    color: #8f99b8;
    font-size: 13px;
    line-height: 1.85;
}

.visual-orbit {
    position: relative;
    z-index: 2;
    display: grid;
    width: 300px;
    height: 210px;
    margin: 24px 0 8px 28px;
    place-items: center;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(154, 166, 255, 0.14);
    border-radius: 50%;
}

.orbit-ring.ring-one {
    width: 206px;
    height: 206px;
    border-style: dashed;
    animation: orbitSpin 26s linear infinite;
}

.orbit-ring.ring-two {
    width: 140px;
    height: 140px;
    border-color: rgba(87, 221, 205, 0.14);
    animation: orbitSpin 18s linear infinite reverse;
}

.orbit-ring.ring-three {
    width: 276px;
    height: 96px;
    border-color: rgba(136, 150, 255, 0.13);
    transform: rotate(-18deg);
    animation: orbitTilt 9s ease-in-out infinite alternate;
}

.orbit-core {
    position: relative;
    z-index: 2;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    color: #dce1ff;
    background:
        linear-gradient(145deg, rgba(113, 128, 255, 0.36), rgba(139, 92, 246, 0.22));
    font-size: 28px;
    font-weight: 800;
    box-shadow:
        0 0 0 10px rgba(91, 108, 255, 0.04),
        0 20px 55px rgba(67, 79, 193, 0.25);
    backdrop-filter: blur(12px);
    animation: coreFloat 5s ease-in-out infinite;
}

.orbit-node {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #aab5dc;
    background: rgba(25, 31, 59, 0.74);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.13);
    font-size: 9.5px;
    font-weight: 600;
    backdrop-filter: blur(12px);
    animation: nodeFloat 4.5s ease-in-out infinite;
}

.orbit-node::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5ce4d1;
    box-shadow: 0 0 8px rgba(92, 228, 209, 0.72);
    content: "";
}

.orbit-node.node-one {
    top: 27px;
    right: -8px;
}

.orbit-node.node-two {
    bottom: 20px;
    left: -18px;
    animation-delay: -1.6s;
}

.orbit-node.node-three {
    top: 91px;
    right: -42px;
    animation-delay: -3s;
}

.login-visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    margin-top: auto;
    align-items: center;
    gap: 18px;
    color: #6f7997;
    font-size: 10px;
}

.login-visual-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-visual-footer span::before {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(128, 143, 178, 0.6);
    content: "";
}

.login-form-panel {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 58px 64px;
    background:
        radial-gradient(circle at 100% 0%, rgba(91, 108, 255, 0.055), transparent 15rem),
        rgba(252, 253, 255, 0.98);
}

.login-form-panel::before {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--admin-primary);
    box-shadow:
        0 0 0 5px rgba(91, 108, 255, 0.08),
        0 0 20px rgba(91, 108, 255, 0.35);
    content: "";
}

.login-form-heading .login-eyebrow {
    color: #7a84a4;
    letter-spacing: 0.17em;
}

.login-form-heading h3 {
    color: #202742;
    font-size: 29px;
    font-weight: 760;
    letter-spacing: -0.035em;
    text-align: left;
}

.login-form-heading .sub {
    margin: 10px 0 34px;
    color: #8c95aa;
    font-size: 12.5px;
    line-height: 1.7;
    text-align: left;
}

.login-field {
    margin-bottom: 19px;
}

.login-field-label {
    display: flex;
    margin-bottom: 9px;
    align-items: center;
    justify-content: space-between;
    color: #4f5972;
    font-size: 11px;
    font-weight: 650;
}

.login-field-label small {
    color: #a6aec0;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.login-form-panel .el-input__wrapper {
    height: 49px;
    padding: 1px 14px;
    border-radius: 12px;
    background: #f8f9fc;
    box-shadow: 0 0 0 1px rgba(83, 98, 137, 0.12) inset;
}

.login-form-panel .el-input__wrapper.is-focus {
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(91, 108, 255, 0.72) inset,
        0 0 0 5px rgba(91, 108, 255, 0.07) !important;
}

.login-form-panel .el-input__inner {
    color: #273049;
    font-size: 13px;
}

.login-form-panel .el-input__prefix .el-icon {
    color: #99a3ba;
    font-size: 16px;
}

.login-submit.el-button {
    position: relative;
    height: 50px !important;
    margin-top: 7px !important;
    overflow: hidden;
    border: none;
    border-radius: 13px;
    background: linear-gradient(112deg, #596aff, #7653e8 58%, #8260f2);
    box-shadow: 0 13px 30px rgba(91, 108, 255, 0.28);
    font-size: 13.5px;
    letter-spacing: 0.16em;
}

.login-submit.el-button::after {
    position: absolute;
    top: -70%;
    bottom: -70%;
    left: -30%;
    width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    content: "";
    transform: skewX(-18deg);
    animation: buttonShine 4.2s ease-in-out infinite;
}

.login-submit.el-button:hover {
    box-shadow: 0 16px 38px rgba(91, 108, 255, 0.38);
    transform: translateY(-2px);
}

.login-form-note {
    display: flex;
    margin-top: 23px;
    align-items: center;
    gap: 8px;
    color: #9aa3b7;
    font-size: 10px;
    line-height: 1.5;
}

.login-form-note .el-icon {
    color: #5cac9f;
    font-size: 14px;
}

.login-installer-link {
    display: flex;
    margin-top: 17px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #a2aabc;
    font-size: 10px;
}

.login-installer-link a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #6572d7;
    font-weight: 650;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.login-installer-link a:hover {
    color: #4d5cd1;
    transform: translateX(2px);
}

.login-installer-link .el-icon {
    font-size: 11px;
}

.login-mobile-brand {
    display: none;
}

.login-copyright {
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    color: rgba(174, 184, 215, 0.45);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    text-align: center;
}

/* --------------------------------------------------------------------------
   仪表盘
   -------------------------------------------------------------------------- */
.dashboard-view {
    max-width: 1680px;
    margin: 0 auto;
}

.welcome-panel {
    position: relative;
    display: grid;
    min-height: 246px;
    margin-bottom: 20px;
    padding: 35px 38px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
    align-items: center;
    gap: 36px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 35%, rgba(116, 129, 255, 0.32), transparent 17rem),
        radial-gradient(circle at 8% 115%, rgba(45, 212, 191, 0.13), transparent 18rem),
        linear-gradient(125deg, #171d38 0%, #20264b 54%, #282353 100%);
    box-shadow:
        0 24px 60px rgba(31, 38, 76, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    animation: heroReveal 0.75s var(--admin-ease) both;
}

.welcome-panel::before {
    position: absolute;
    top: -62%;
    right: -14%;
    width: 580px;
    height: 580px;
    border: 1px solid rgba(154, 166, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 72px rgba(145, 157, 255, 0.025),
        0 0 0 144px rgba(145, 157, 255, 0.018);
    content: "";
    animation: heroRingFloat 10s ease-in-out infinite alternate;
}

.welcome-panel::after {
    position: absolute;
    right: 22%;
    bottom: -100px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.24), transparent 68%);
    content: "";
    animation: heroGlow 7s ease-in-out infinite alternate;
}

.welcome-copy {
    position: relative;
    z-index: 2;
}

.welcome-kicker {
    display: flex;
    margin-bottom: 17px;
    align-items: center;
    gap: 9px;
    color: #9eabdf;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.welcome-kicker::before {
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, #56dfd0, #8996ff);
    content: "";
}

.welcome-title {
    margin: 0;
    color: #f8f9ff;
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.welcome-title span {
    color: transparent;
    background: linear-gradient(92deg, #aab3ff, #d4c7ff 50%, #7de9da);
    background-clip: text;
    -webkit-background-clip: text;
}

.welcome-subtitle {
    max-width: 560px;
    margin-top: 13px;
    color: #929dbf;
    font-size: 12.5px;
    line-height: 1.75;
}

.welcome-actions {
    display: flex;
    margin-top: 24px;
    align-items: center;
    gap: 10px;
}

.welcome-actions .el-button {
    height: 38px;
    padding: 0 17px;
    border-radius: 11px;
    font-size: 11.5px;
}

.welcome-actions .primary-action {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.welcome-actions .primary-action:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.welcome-actions .ghost-action {
    border-color: transparent;
    color: #aeb9e0;
    background: transparent;
}

.welcome-actions .ghost-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.welcome-visual {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-data-card {
    position: relative;
    padding: 20px 22px 17px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035));
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    transform: rotate(1.2deg);
    animation: heroCardFloat 6s ease-in-out infinite;
}

.hero-data-card::after {
    position: absolute;
    top: -55px;
    right: -45px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(115, 226, 214, 0.15), transparent 70%);
    content: "";
}

.hero-data-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8f9cc4;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.08em;
}

.hero-data-head span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #75dccf;
}

.hero-data-head i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #58dfcf;
    box-shadow: 0 0 8px rgba(88, 223, 207, 0.8);
}

.hero-data-number {
    margin-top: 10px;
    color: #fff;
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.hero-data-number small {
    margin-left: 5px;
    color: #8e9ac0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.hero-mini-chart {
    display: flex;
    height: 60px;
    margin-top: 13px;
    align-items: flex-end;
    gap: 7px;
}

.hero-mini-bar {
    position: relative;
    flex: 1;
    min-width: 5px;
    max-width: 32px;
    border-radius: 5px 5px 3px 3px;
    background: linear-gradient(180deg, rgba(138, 151, 255, 0.95), rgba(111, 92, 232, 0.36));
    box-shadow: 0 0 15px rgba(110, 125, 255, 0.12);
    transform-origin: bottom;
    animation: miniBarGrow 0.9s var(--admin-ease) both;
}

.hero-mini-bar:nth-child(2n) {
    background: linear-gradient(180deg, rgba(91, 222, 208, 0.82), rgba(62, 171, 176, 0.25));
}

.hero-data-foot {
    display: flex;
    margin-top: 8px;
    justify-content: space-between;
    color: #697598;
    font-size: 8.5px;
}

.metric-grid {
    display: grid;
    margin-bottom: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.metric-card {
    --metric-start: #6374ff;
    --metric-end: #8b5cf6;
    --metric-soft: rgba(99, 116, 255, 0.1);
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 126px;
    padding: 20px;
    overflow: hidden;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 32px rgba(37, 48, 86, 0.065);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(14px);
    animation: metricReveal 0.65s var(--admin-ease) forwards;
    transition:
        transform 0.32s var(--admin-ease),
        box-shadow 0.32s ease,
        border-color 0.32s ease;
}

.metric-card::before {
    position: absolute;
    top: -36px;
    right: -24px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--metric-soft), transparent 68%);
    content: "";
    transition: transform 0.4s var(--admin-ease);
}

.metric-card::after {
    position: absolute;
    right: 20px;
    bottom: 0;
    left: 20px;
    height: 2px;
    border-radius: 99px 99px 0 0;
    background: linear-gradient(90deg, transparent, var(--metric-start), var(--metric-end), transparent);
    opacity: 0;
    content: "";
    transform: scaleX(0.5);
    transition:
        opacity 0.3s ease,
        transform 0.4s var(--admin-ease);
}

.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 42px rgba(37, 48, 86, 0.12);
    transform: translateY(-5px);
}

.metric-card:hover::before {
    transform: scale(1.22);
}

.metric-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.metric-card.tone-green {
    --metric-start: #22c7a4;
    --metric-end: #5bdbb7;
    --metric-soft: rgba(34, 199, 164, 0.1);
}

.metric-card.tone-amber {
    --metric-start: #f5a623;
    --metric-end: #ffcb65;
    --metric-soft: rgba(245, 166, 35, 0.11);
}

.metric-card.tone-rose {
    --metric-start: #f45c79;
    --metric-end: #fb9aac;
    --metric-soft: rgba(244, 92, 121, 0.1);
}

.metric-card.tone-violet {
    --metric-start: #8059ee;
    --metric-end: #ae8aff;
    --metric-soft: rgba(128, 89, 238, 0.1);
}

.metric-card.tone-cyan {
    --metric-start: #1db8cc;
    --metric-end: #62d8e7;
    --metric-soft: rgba(29, 184, 204, 0.1);
}

.metric-card.tone-pink {
    --metric-start: #e94d91;
    --metric-end: #f88ab7;
    --metric-soft: rgba(233, 77, 145, 0.1);
}

.metric-card.tone-slate {
    --metric-start: #7b87a8;
    --metric-end: #a8b2c9;
    --metric-soft: rgba(123, 135, 168, 0.1);
}

.metric-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--metric-start), var(--metric-end));
    box-shadow: 0 10px 22px var(--metric-soft);
    transition:
        transform 0.35s var(--admin-ease),
        box-shadow 0.35s ease;
}

.metric-card:hover .metric-icon {
    box-shadow: 0 13px 28px var(--metric-soft);
    transform: rotate(-5deg) scale(1.06);
}

.metric-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding-top: 1px;
}

.metric-value {
    overflow: hidden;
    color: #222a44;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-label {
    margin-top: 7px;
    color: #778198;
    font-size: 11.5px;
    font-weight: 600;
}

.metric-meta {
    display: flex;
    margin-top: 8px;
    align-items: center;
    gap: 5px;
    color: #a2aabc;
    font-size: 9.5px;
}

.metric-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--metric-start);
}

.dashboard-grid {
    display: grid;
    margin-bottom: 20px;
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.92fr);
    gap: 20px;
}

.dashboard-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 34px rgba(37, 48, 86, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: cardReveal 0.7s 0.2s var(--admin-ease) both;
}

.dashboard-card .panel-head {
    display: flex;
    min-height: 71px;
    padding: 17px 21px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--admin-line);
}

.panel-title {
    min-width: 0;
}

.panel-title h4 {
    color: #293149;
    font-size: 14px;
    font-weight: 720;
}

.panel-title p {
    margin-top: 4px;
    color: #9aa3b6;
    font-size: 10px;
}

.trend-badge {
    display: inline-flex;
    height: 29px;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid rgba(91, 108, 255, 0.09);
    border-radius: 999px;
    color: #5a68cf;
    background: rgba(240, 242, 255, 0.78);
    font-size: 10px;
    font-weight: 650;
}

.trend-badge .el-icon {
    font-size: 12px;
}

.trend-chart {
    position: relative;
    padding: 18px 21px 14px;
}

.trend-chart svg {
    display: block;
    width: 100%;
    height: 210px;
    overflow: visible;
}

.trend-grid-line {
    stroke: rgba(94, 108, 145, 0.09);
    stroke-width: 1;
    stroke-dasharray: 4 6;
}

.trend-area {
    opacity: 0;
    animation: areaFade 0.9s 0.45s ease forwards;
}

.trend-line {
    fill: none;
    stroke: url(#trendLineGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 7px 8px rgba(91, 108, 255, 0.2));
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: drawLine 1.3s 0.28s var(--admin-ease) forwards;
}

.trend-point-halo {
    fill: rgba(91, 108, 255, 0.13);
    opacity: 0;
    animation: pointIn 0.45s 1.1s ease forwards;
}

.trend-point {
    fill: #fff;
    stroke: #6979ff;
    stroke-width: 2.5;
    opacity: 0;
    animation: pointIn 0.45s 1.15s ease forwards;
}

.trend-point-value {
    fill: #56617d;
    font-size: 9px;
    font-weight: 600;
    text-anchor: middle;
    opacity: 0;
    animation: pointIn 0.45s 1.22s ease forwards;
}

.trend-labels {
    display: flex;
    margin-top: -2px;
    padding: 0 4px;
    justify-content: space-between;
    color: #9da6b9;
    font-size: 9.5px;
}

.trend-labels span {
    min-width: 30px;
    text-align: center;
}

.trend-insight {
    display: flex;
    margin-top: 13px;
    padding: 12px 14px;
    align-items: center;
    gap: 25px;
    border: 1px solid rgba(80, 96, 140, 0.07);
    border-radius: 12px;
    background: linear-gradient(105deg, rgba(247, 248, 255, 0.9), rgba(250, 252, 252, 0.7));
}

.trend-insight > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.trend-insight span {
    color: #969fb3;
    font-size: 9px;
}

.trend-insight b {
    color: #46506b;
    font-size: 13px;
    font-weight: 720;
}

.trend-insight small {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    gap: 6px;
    color: #58a99b;
    font-size: 8.5px;
    white-space: nowrap;
}

.trend-insight small i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4bc8b4;
    box-shadow: 0 0 8px rgba(75, 200, 180, 0.55);
}

.dashboard-empty {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    color: #a4adc0;
    font-size: 11px;
}

.dashboard-empty .el-icon {
    color: #c3cad9;
    font-size: 30px;
}

.activity-list {
    padding: 8px 13px;
}

.activity-item {
    position: relative;
    display: flex;
    min-height: 60px;
    padding: 10px 8px;
    align-items: center;
    gap: 11px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.activity-item:hover {
    background: rgba(247, 248, 253, 0.88);
}

.activity-item + .activity-item::before {
    position: absolute;
    top: 0;
    right: 9px;
    left: 51px;
    height: 1px;
    background: rgba(80, 96, 140, 0.065);
    content: "";
}

.activity-avatar {
    position: relative;
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    overflow: hidden;
    place-items: center;
    border-radius: 11px;
    color: #6573d9;
    background: linear-gradient(135deg, #edf0ff, #e7e4ff);
    font-size: 11px;
    font-weight: 700;
}

.activity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-copy {
    min-width: 0;
    flex: 1;
}

.activity-copy b {
    display: block;
    overflow: hidden;
    color: #424c66;
    font-size: 11.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-copy small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #9aa3b5;
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-time {
    flex: 0 0 auto;
    color: #b1b8c6;
    font-size: 9px;
}

.dashboard-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.92fr);
    gap: 20px;
}

.post-list {
    padding: 7px 13px 13px;
}

.post-row {
    display: flex;
    min-height: 55px;
    padding: 9px 8px;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid rgba(80, 96, 140, 0.06);
    border-radius: 10px;
    transition:
        background 0.2s ease,
        transform 0.25s var(--admin-ease);
}

.post-row:last-child {
    border-bottom: none;
}

.post-row:hover {
    background: #f8f9fe;
    transform: translateX(3px);
}

.post-index {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border-radius: 8px;
    color: #8b95ab;
    background: #f2f4fa;
    font-size: 9px;
    font-weight: 700;
}

.post-row:nth-child(-n+3) .post-index {
    color: #5c6ad5;
    background: #edf0ff;
}

.post-main {
    min-width: 0;
    flex: 1;
}

.post-main b {
    display: block;
    overflow: hidden;
    color: #38425c;
    font-size: 11.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-main small {
    display: block;
    margin-top: 4px;
    color: #9da6b9;
    font-size: 9.5px;
}

.post-time {
    flex: 0 0 auto;
    color: #aab2c2;
    font-size: 9px;
}

.quick-list {
    display: grid;
    padding: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-link {
    display: flex;
    min-height: 66px;
    padding: 11px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(80, 96, 140, 0.075);
    border-radius: 13px;
    color: #4d5770;
    background: rgba(250, 251, 254, 0.76);
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s var(--admin-ease),
        box-shadow 0.25s ease;
}

.quick-link:hover {
    border-color: rgba(91, 108, 255, 0.14);
    background: #fff;
    box-shadow: 0 9px 22px rgba(34, 46, 88, 0.075);
    transform: translateY(-2px);
}

.quick-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 10px;
    color: #6371dd;
    background: #edf0ff;
}

.quick-link:nth-child(2) .quick-icon {
    color: #249a89;
    background: #e5f8f4;
}

.quick-link:nth-child(3) .quick-icon {
    color: #d18a19;
    background: #fff6e4;
}

.quick-link:nth-child(4) .quick-icon {
    color: #d65773;
    background: #fff0f3;
}

.quick-link b {
    display: block;
    font-size: 10.5px;
    font-weight: 650;
}

.quick-link small {
    display: block;
    margin-top: 3px;
    color: #9aa3b5;
    font-size: 8.5px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .dashboard-bottom {
        grid-template-columns: minmax(0, 1fr);
    }

    .welcome-panel {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 920px) {
    .login-shell {
        grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    }

    .login-visual {
        padding: 40px 32px;
    }

    .visual-orbit {
        margin-left: 10px;
        transform: scale(0.88);
        transform-origin: left center;
    }

    .login-form-panel {
        padding: 52px 38px;
    }

    .welcome-panel {
        grid-template-columns: 1fr;
    }

    .welcome-visual {
        display: none;
    }

    .topbar-live {
        display: none;
    }

    .ui-switch-label {
        display: none;
    }

    .ui-switch-arrow {
        display: none;
    }

    .ui-switch-button.el-button {
        width: 34px;
        padding: 0;
    }

    .bigscreen-label {
        display: none;
    }

    .bigscreen-button.el-button {
        width: 34px;
        padding: 0;
    }

    .bigscreen-button .el-icon {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 260px;
        border-radius: 0 22px 22px 0;
        box-shadow: 24px 0 60px rgba(10, 14, 28, 0.28);
        transform: translateX(-102%);
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }

    .admin-sidebar.collapsed {
        width: 260px;
    }

    .admin-sidebar.collapsed .sidebar-title {
        display: block;
        opacity: 1;
        transform: none;
    }

    .admin-sidebar.collapsed .sidebar-header {
        justify-content: flex-start;
        padding: 0 19px;
    }

    .admin-sidebar.collapsed .sidebar-footer {
        padding: 13px;
        opacity: 1;
        transform: none;
    }

    .admin-sidebar.collapsed .el-menu-item,
    .admin-sidebar.collapsed .el-sub-menu__title {
        justify-content: flex-start;
        padding: 0 14px !important;
    }

    .admin-sidebar.collapsed .el-menu-item .el-icon,
    .admin-sidebar.collapsed .el-sub-menu__title .el-icon {
        margin-right: 10px;
    }

    .admin-topbar {
        height: 65px;
        padding: 0 14px;
    }

    .topbar-site-wrap,
    .profile-copy {
        display: none;
    }

    .admin-topbar .site-chip {
        display: none;
    }

    .admin-content {
        padding: 16px 14px 30px;
    }

    .page-context small {
        display: none;
    }

    .sidebar-mask.show {
        display: block !important;
        background: rgba(10, 14, 28, 0.5);
        backdrop-filter: blur(3px);
    }

    .login-page {
        padding: 20px;
    }

    .login-shell {
        display: block;
        width: min(470px, 100%);
        min-height: 0;
        margin: auto;
    }

    .login-visual {
        display: none;
    }

    .login-form-panel {
        padding: 42px 34px 38px;
    }

    .login-mobile-brand {
        display: flex;
        margin-bottom: 36px;
        align-items: center;
        gap: 10px;
    }

    .login-mobile-brand .login-brand-mark {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .login-mobile-brand b {
        color: #313a54;
        font-size: 13px;
    }

    .login-mobile-brand small {
        display: block;
        margin-top: 2px;
        color: #9da5b8;
        font-size: 8px;
        letter-spacing: 0.15em;
    }

    .welcome-panel {
        min-height: 0;
        padding: 28px 25px;
        border-radius: 22px;
    }

    .welcome-title {
        font-size: 27px;
    }

    .metric-grid {
        gap: 11px;
    }

    .metric-card {
        min-height: 112px;
        padding: 16px;
        gap: 11px;
    }

    .metric-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 17px;
    }
}

@media (max-width: 520px) {
    .topbar-site-wrap,
    .topbar-profile .topbar-avatar {
        display: none;
    }

    .admin-topbar {
        gap: 9px;
    }

    .page-context .page-title {
        font-size: 14px;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 102px;
    }

    .welcome-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .welcome-actions .el-button {
        margin-left: 0;
    }

    .dashboard-card .panel-head {
        padding: 15px 17px;
    }

    .trend-chart {
        padding: 14px 13px 10px;
    }

    .quick-list {
        grid-template-columns: 1fr;
    }

    .login-page {
        padding: 0;
        background: #f8f9fd;
    }

    .login-shell {
        width: 100%;
        min-height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 32px 25px 42px;
        border-radius: 0;
    }

    .login-form-panel::before {
        top: 20px;
        right: 20px;
    }

    .login-form-heading h3 {
        font-size: 26px;
    }

    .login-copyright {
        color: rgba(97, 108, 137, 0.46);
    }
}

/* --------------------------------------------------------------------------
   动效
   -------------------------------------------------------------------------- */
@keyframes ambientDriftOne {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-65px, 55px, 0) scale(1.12); }
}

@keyframes ambientDriftTwo {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(70px, -42px, 0) scale(1.08); }
}

@keyframes ambientDriftThree {
    from { transform: translate3d(-20px, 0, 0); }
    to { transform: translate3d(42px, -36px, 0); }
}

@keyframes sidebarGlow {
    from { opacity: 0.7; transform: translate3d(0, 0, 0) scale(0.9); }
    to { opacity: 1; transform: translate3d(36px, 55px, 0) scale(1.08); }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes logoRing {
    0% { opacity: 0.5; transform: scale(0.9); }
    75%, 100% { opacity: 0; transform: scale(1.12); }
}

@keyframes statusRipple {
    0% { opacity: 0.7; transform: scale(0.55); }
    75%, 100% { opacity: 0; transform: scale(1.45); }
}

@keyframes topbarFlow {
    from { background-position: 100% 0; }
    to { background-position: -120% 0; }
}

@keyframes loginAurora {
    from { transform: rotate(0deg) scale(0.95); }
    to { transform: rotate(360deg) scale(1.05); }
}

@keyframes loginOrbFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(36px, -42px, 0) scale(1.1); }
}

@keyframes particleTwinkle {
    from { opacity: 0.42; }
    to { opacity: 0.95; }
}

@keyframes loginShellIn {
    from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes visualPulse {
    0%, 100% { opacity: 0.7; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitTilt {
    from { transform: rotate(-22deg) scaleX(0.94); }
    to { transform: rotate(-12deg) scaleX(1.08); }
}

@keyframes coreFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes buttonShine {
    0%, 56% { left: -35%; }
    78%, 100% { left: 118%; }
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroRingFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-24px, 20px, 0) scale(1.06); }
}

@keyframes heroGlow {
    from { opacity: 0.55; transform: translate3d(0, 0, 0) scale(0.9); }
    to { opacity: 1; transform: translate3d(-35px, -20px, 0) scale(1.12); }
}

@keyframes heroCardFloat {
    0%, 100% { transform: rotate(1.2deg) translateY(0); }
    50% { transform: rotate(0.3deg) translateY(-5px); }
}

@keyframes miniBarGrow {
    from { opacity: 0; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes metricReveal {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes areaFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pointIn {
    from { opacity: 0; transform: scale(0.45); transform-origin: center; }
    to { opacity: 1; transform: scale(1); transform-origin: center; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
