[v-cloak] {
    display: none !important
}

* {
    box-sizing: border-box
}

html, body, #app {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937
}

body {
    background: var(--cl-bg-page)
}

.blue {
    color: #087c98
}

/* login */
.login-page {
    min-height: 100%;
    display: flex;
    justify-content: flex-end;
    position: relative;
    background: #fff url("../img/bg.png") center center / 100% 100% no-repeat;
    background-blend-mode: luminosity;
    overflow: hidden
}

.login-page-brand {
    width: 280px;
    height: 132px;
    position: absolute;
    top: 48px;
    left: 48px;
    overflow: hidden
}

.login-page-brand img {
    width: 270px;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .14)
}

.brand-logo-full {
    width: 168px;
    height: 58px;
    border-radius: 0;
    box-shadow: none
}

.login-panel {
    width: min(46vw, 660px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 72px 56px 36px
}

.login-card {
    width: 420px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .12);
    padding: 44px 42px 30px;
    backdrop-filter: blur(18px)
}

.login-card-kicker {
    color: #525252;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 12px
}

.login-card-head {
    margin-bottom: 30px
}

.login-title {
    color: #262626;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 9px
}

.login-tip {
    color: #737373;
    font-size: 14px
}

.login-card .el-input__wrapper {
    min-height: 46px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(163, 163, 163, .42) inset;
    transition: box-shadow .18s ease
}

.login-card .el-input__wrapper:hover {
    box-shadow: 0 0 0 1px rgba(115, 115, 115, .7) inset
}

.login-card .el-input__wrapper.is-focus {
    box-shadow: 0 0 0 1px #525252 inset, 0 0 0 3px rgba(0, 0, 0, .08)
}

.captcha-row {
    display: grid;
    grid-template-columns:1fr 116px;
    gap: 10px;
    width: 100%
}

.captcha-img {
    height: 40px;
    border-radius: 10px;
    border: 1px solid #dcdfe6;
    cursor: pointer;
    width: 116px;
    object-fit: cover
}

.login-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 6px;
    background: #087c98;
    font-weight: 700;
    letter-spacing: .4px;
    box-shadow: 0 10px 20px rgba(8, 124, 152, .2);
    transition: transform .18s ease, background .18s ease
}

.login-btn:hover,
.login-btn:focus {
    background: #066d87
}

.login-btn:hover {
    transform: translateY(-1px)
}

.login-card-foot {
    text-align: center;
    color: #a3a3a3;
    font-size: 12px;
    margin-top: 25px
}

/* 侧边栏收起/展开按钮 */
.collapse-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    color: #737373;
    transition: .15s;
    flex-shrink: 0
}

.collapse-btn:hover {
    background: #f5f5f5;
    color: #404040
}

/* 侧边栏收起状态 */
.app-layout.is-collapse {
    grid-template-columns: 72px 1fr
}

.sidebar.sidebar-collapsed .side-brand {
    justify-content: center;
    padding: 0
}

.sidebar.sidebar-collapsed .side-scroll {
    padding: 12px 0
}

/* 收起时菜单项居中对齐，保证icon整齐 */
.sidebar.sidebar-collapsed .el-menu-item,
.sidebar.sidebar-collapsed .el-sub-menu__title {
    height: 42px !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important
}

/* 收起时隐藏子菜单展开箭头 */
.sidebar.sidebar-collapsed .el-sub-menu__icon-arrow {
    display: none
}

/* 收起时 el-icon 统一大小 */
.sidebar.sidebar-collapsed .el-menu-item .el-icon,
.sidebar.sidebar-collapsed .el-sub-menu__title .el-icon {
    font-size: 20px;
    margin-right: 0 !important
}

/* 收起时 sub-menu 弹出面板样式 */
.sidebar.sidebar-collapsed .el-menu--popup {
    border-radius: 10px !important;
    padding: 4px !important;
    min-width: 140px;
    background: #ffffff !important;
    border: 1px solid #e1e1e1 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .14) !important
}

.sidebar.sidebar-collapsed .el-menu--popup .el-menu-item {
    padding: 0 16px !important;
    justify-content: flex-start !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    color: #595959 !important
}

.sidebar.sidebar-collapsed .el-menu--popup .el-menu-item:hover {
    background: #f5f5f5 !important;
    color: #404040 !important
}

.sidebar.sidebar-collapsed .el-menu--popup .el-menu-item.is-active {
    background: #f2f2f2 !important;
    color: #333333 !important;
    box-shadow: inset 3px 0 0 #a3a3a3 !important
}

/* shell */
.app-layout {
    height: 100%;
    display: grid;
    grid-template-columns:234px 1fr;
    background: var(--cl-bg-page);
    transition: grid-template-columns .25s ease
}

.sidebar {
    background: var(--cl-bg-sidebar);
    border-right: 1px solid var(--cl-border);
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #595959;
    transition: width .25s ease
}

.side-brand {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px 0 16px;
    border-bottom: 1px solid #e1e1e1;
    white-space: nowrap;
    color: #333333
}

.side-brand-logo-frame {
    width: 154px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0
}

.side-brand-logo {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain
}

.side-scroll {
    flex: 1;
    overflow: auto;
    padding: 12px
}

/* 侧边栏滚动条深色主题适配 */
.side-scroll::-webkit-scrollbar {
    width: 4px
}

.side-scroll::-webkit-scrollbar-track {
    background: transparent
}

.side-scroll::-webkit-scrollbar-thumb {
    background: rgba(115, 115, 115, .18);
    border-radius: 4px
}

.side-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(115, 115, 115, .3)
}

.side-footer {
    height: 42px;
    margin: 0 12px 12px;
    border-radius: 12px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a7a7a;
    font-size: 12px
}

.sidebar .el-menu {
    border-right: none;
    background: transparent
}

.sidebar .el-menu-item, .sidebar .el-sub-menu__title {
    height: 42px;
    border-radius: 10px;
    color: #595959;
    margin: 2px 0;
    transition: all .2s ease
}

.sidebar .el-menu-item:hover, .sidebar .el-sub-menu__title:hover {
    background: #f5f5f5;
    color: #404040
}

.sidebar .el-menu-item.is-active {
    background: #f2f2f2;
    color: #333333;
    box-shadow: inset 3px 0 0 #a3a3a3
}

.sidebar .el-sub-menu .el-menu-item {
    padding-left: 44px !important;
    background: transparent
}

.sidebar .el-sub-menu .el-menu-item.is-active {
    background: #f2f2f2;
    color: #333333;
    box-shadow: inset 3px 0 0 #a3a3a3
}

/* 子菜单展开时，父级标题高亮提示 */
.sidebar .el-sub-menu.is-active > .el-sub-menu__title {
    color: #262626
}

.main-shell {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.header {
    height: 60px;
    background: var(--cl-bg-container);
    border-bottom: 1px solid var(--cl-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .03)
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px
}

.mobile-logo {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 800
}

.mobile-logo img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain
}

.crumb {
    font-size: 14px;
    color: #666666
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #4a4a4a
}

.settings {
    cursor: pointer
}

.avatar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 9px;
    border: 1px solid #e3e3e3;
    border-radius: 999px;
    background: #fafafa
}

.avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover
}

.logout-btn {
    border: 0 !important;
    border-radius: 6px !important;
    background: #087c98 !important;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(8, 124, 152, .16);
    transition: transform .18s ease, background .18s ease !important
}

.logout-btn:hover,
.logout-btn:focus {
    background: #066d87 !important
}

.logout-btn:hover {
    transform: translateY(-1px)
}

.tabs-bar {
    height: 46px;
    background: var(--cl-bg-container);
    border-bottom: 1px solid var(--cl-border);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    overflow-x: auto
}

.tab-item {
    height: 31px;
    border: 1px solid #dedede;
    background: var(--cl-bg-container);
    border-radius: 10px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    color: #4a4a4a;
    transition: .15s
}

.tab-item:hover {
    border-color: #bdbdbd;
    color: #262626
}

.tab-item.active {
    background: #f2f2f2;
    border-color: #bdbdbd;
    color: #333333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .05)
}

.tab-close {
    font-size: 15px;
    color: #8a8a8a
}

.tab-tool {
    margin-left: auto;
    color: #666666;
    font-size: 13px;
    cursor: pointer
}

.content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    background: var(--cl-bg-page)
}

.module-page {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 960px;
    background: var(--cl-bg-page)
}

/* home */
.home-card {
    flex: 1;
    min-height: 0;
    background: radial-gradient(circle at 72% 30%, rgba(8, 124, 152, .08), transparent 34%), #fff;
    border: 1px solid #e7ebf2;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(31, 41, 55, .06);
    display: grid;
    grid-template-columns:1.05fr .95fr;
    align-items: center;
    padding: 56px 70px;
    overflow: hidden
}

.welcome-badge {
    display: inline-flex;
    background: #e7f5f6;
    color: #087c98;
    border: 1px solid #cde7ea;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px
}

.home-title {
    font-size: 40px;
    line-height: 1.25;
    margin: 0;
    font-weight: 900
}

.home-sub {
    font-size: 16px;
    color: #7b8798;
    line-height: 1.85;
    margin: 18px 0 34px;
    max-width: 720px
}

.feature-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 16px
}

.feature {
    padding: 18px 14px;
    background: #f8fbff;
    border: 1px solid #edf2fa;
    border-radius: 18px;
    text-align: center
}

.feature i {
    font-style: normal;
    font-size: 27px
}

.feature b {
    display: block;
    margin: 8px 0;
    color: #1f2937
}

.feature span {
    display: block;
    color: #7b8798;
    font-size: 13px;
    line-height: 1.5
}

.home-illustration {
    height: 380px;
    position: relative;
    border-radius: 30px;
    background: linear-gradient(135deg, #eaf4ff, #ffffff);
    border: 1px solid #edf3fb;
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, .58)
}

.illus-card {
    position: absolute;
    background: var(--cl-bg-container);
    border: 1px solid #e5eef9;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(22, 54, 100, .12)
}

.illus-card.chart {
    width: 190px;
    height: 150px;
    left: 64px;
    top: 58px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 24px
}

.illus-card.chart span {
    display: block;
    width: 34px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #64c8cd, #087c98)
}

.illus-card.chart span:nth-child(1) {
    height: 54px
}

.illus-card.chart span:nth-child(2) {
    height: 92px
}

.illus-card.chart span:nth-child(3) {
    height: 118px
}

.illus-card.panel {
    width: 220px;
    height: 160px;
    right: 48px;
    top: 92px;
    padding: 22px
}

.illus-card.panel b {
    display: block;
    margin-bottom: 18px
}

.illus-card.panel em {
    display: block;
    height: 10px;
    border-radius: 10px;
    background: #e9f2ff;
    margin: 13px 0
}

.illus-ring {
    position: absolute;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #087c98;
    font-size: 38px;
    font-weight: 900;
    background: radial-gradient(circle, #fff 45%, #d8ecff 46%, #ecf6ff 70%);
    box-shadow: 0 26px 60px rgba(8, 124, 152, .16)
}

/* list page */
.query-card, .page-card {
    background: var(--cl-bg-container);
    border: 1px solid var(--cl-border);
    border-radius: 18px;
    box-shadow: var(--cl-shadow);
    padding: 12px;
    flex-shrink: 0
}

.table-card {
    background: var(--cl-bg-container);
    border: 1px solid var(--cl-border);
    border-radius: 18px;
    box-shadow: var(--cl-shadow);
    padding: 12px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.query-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px
}

.query-title span {
    font-size: 17px;
    font-weight: 700
}

.query-title small {
    font-size: 12px;
    color: #98a2b3
}

.filter-grid {
    display: grid;
    grid-template-columns:repeat(5, minmax(160px, 1fr));
    gap: 10px 14px;
    align-items: end
}

/* 查询表单 prefix 标签样式：用于 el-input / el-select 的 #prefix 插槽 */
.filter-label {
    color: var(--cl-muted, #7b8798);
    font-size: 13px;
    white-space: nowrap
}

.query-form .el-form-item {
    margin-bottom: 0
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e6ebf3
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-shrink: 0
}

.table-title {
    font-size: 17px;
    font-weight: 700
}

.table-sub {
    font-size: 12px;
    color: #98a2b3;
    margin-top: 4px
}

.pagination {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    flex-shrink: 0
}

/* 表格容器：包裹 el-table 实现自适应高度、数据超出时表格内部滚动 */
.table-body {
    flex: 1;
    min-height: 0;
    overflow: hidden
}

.status-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 13px;
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6
}

.status-tag.off {
    background: #fff1f3;
    color: #c01048;
    border-color: #fecdd6
}

.el-table {
    border-radius: 12px;
    overflow: hidden
}

.el-table th.el-table__cell {
    background: var(--cl-bg-fill) !important;
    color: #475467;
    font-weight: 700
}



.el-input__wrapper, .el-select__wrapper {
    border-radius: 10px !important
}

.el-pager li {
    border-radius: 8px !important
}

/* drawer */
.cl-drawer .el-drawer__header {
    margin-bottom: 0;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #edf2f7
}

.cl-drawer .el-drawer__title {
    font-weight: 700;
    color: #111827
}

.cl-drawer .el-drawer__body {
    padding: 20px 24px
}

.drawer-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    border-left: 3px solid #087c98;
    padding-left: 10px;
    margin: 0 0 16px
}

.drawer-form {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px 22px
}

.drawer-form .el-form-item {
    margin-bottom: 0
}

.drawer-form .span-2 {
    grid-column: span 2
}

.drawer-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf2f7
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fbff;
    border: 1px dashed #cfe3ff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px
}

.avatar-upload img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover
}

.avatar-upload b {
    display: block
}

.avatar-upload p {
    margin: 6px 0 0;
    color: #7b8798;
    font-size: 13px
}

.drawer-footer {
    position: sticky;
    bottom: 0;
    background: var(--cl-bg-container);
    border-top: 1px solid #edf2f7;
    padding: 14px 0 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px
}

.empty-page, .plain-error {
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #667085
}

.empty-page .code, .plain-error .error-code {
    font-size: 96px;
    font-weight: 900;
    color: #d8e2f0;
    line-height: 1
}

.empty-page h2, .plain-error h2 {
    color: #1f2937;
    margin: 12px 0 8px
}

.plain-error a {
    color: #087c98;
    text-decoration: none;
    margin-top: 8px
}

.loading-box {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085
}

@media (max-width: 1400px) {
    .filter-grid {
        grid-template-columns:repeat(4, 1fr)
    }
}

@media (max-width: 1180px) {
    .filter-grid {
        grid-template-columns:repeat(3, 1fr)
    }

    .feature-grid {
        grid-template-columns:repeat(2, 1fr)
    }

    .home-card {
        grid-template-columns:1fr
    }

    .home-illustration {
        display: none
    }
}

@media (max-width: 960px) {
    .login-page {
        justify-content: center;
        background-position: 43% center;
        background-size: cover
    }

    .login-panel {
        width: 100%;
        padding: 24px
    }

    .login-page-brand {
        display: none
    }

    .login-card {
        width: min(100%, 400px);
        padding: 36px 28px 26px
    }

    .app-layout:not(.is-fullscreen) {
        grid-template-columns:72px 1fr
    }

    .app-layout:not(.is-fullscreen) .side-brand span:not(.collapse-btn),
    .app-layout:not(.is-fullscreen) .side-footer,
    .app-layout:not(.is-fullscreen) .sidebar .el-sub-menu__title span,
    .app-layout:not(.is-fullscreen) .sidebar .el-menu-item span {
        display: none
    }

    .mobile-logo {
        display: flex
    }

    .filter-grid {
        grid-template-columns:repeat(2, 1fr)
    }

    .home-card {
        padding: 32px
    }

    .drawer-form {
        grid-template-columns:1fr
    }

    .drawer-form .span-2 {
        grid-column: auto
    }
}
