/* 登录页开始 */
.login-wrap {
    display: flex;
    width: 100%;
    max-width: 72rem;
    min-height: 100vh;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    padding: 0 1rem;
}

.login-left {
    display: none;
}

.login-left-inner {
    max-width: 28rem;
    padding: 0 3rem;
}

.login-card {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, .8);
    box-shadow: 0 10px 15px -3px rgba(226, 232, 240, .5);
    padding: 2rem;
    text-align: center;
    animation: fade-in-up .6s ease-out;
}

.login-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, #3b82f6, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(191, 219, 254, .5);
    animation: glow 2s ease-in-out infinite alternate;
}

.login-icon svg {
    width: 2rem;
    height: 2rem;
    color: #fff;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -.025em;
    margin-bottom: .25rem;
}

.login-subtitle {
    color: #3b82f6;
    font-weight: 500;
    font-size: .875rem;
    margin-bottom: .75rem;
}

.login-desc {
    font-size: .875rem;
    color: #94a3b8;
    line-height: 1.625;
}

.login-features {
    margin-top: 1.5rem;
    text-align: left;
}

.login-features>*+* {
    margin-top: .625rem;
}

.login-feature-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem 1rem;
    background: rgba(248, 250, 252, .8);
    border-radius: .75rem;
}

.login-feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: .5rem;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-feature-icon svg {
    width: .875rem;
    height: .875rem;
    color: #3b82f6;
}

.login-feature-text {
    font-size: 13px;
    color: #475569;
}

.login{
    position: static;
}

.login-bg{
    background: none;
    /* background-size: none; */
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 10px 15px -3px rgba(191, 219, 254, .5);
    }

    to {
        box-shadow: 0 10px 30px -3px rgba(59, 130, 246, .4);
    }
}

@media(min-width:1024px) {
    .login-left {
        display: flex;
        /* flex: 1; */
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10;
    }
}
/* 登录页结束 */

/* 主页开始 */

.top-logo-icon {
    left: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    position: absolute;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.top-logo-icon svg {
    width: 16px;
    height: 16px;
}

/* 顶部导航栏 */
.container {
    background-color: #fff;
    border-bottom: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.container .logo a {
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 55px;
}
.container .left_open i {
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
}
.container .left_open i:hover {
    background: #e2e8f0;
    color: #3b82f6;
}
.container .layui-nav-item {
    line-height: 55px;
}
.layui-nav .layui-nav-item a {
    color: #475569;
    font-size: 13px;
}

/* 柱状趋势图 */
.chart-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.chart-title {
  font-size: 0.875rem;
  font-weight: bold;
  color: #334155;
  margin: 0 0 0.75rem 0;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 0.5rem;
  height: 200px;
  padding: 0 1rem;
}
.chart-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.chart-bar {
  width: 100%;
  background: #60a5fa;
  border-radius: 0.5rem 0.5rem 0 0;
  opacity: 0.6;
  transition: opacity 0.2s;
  min-height: 4px;
}
.chart-bar:hover {
  opacity: 1;
}
.chart-bar-label {
  font-size: 10px;
  color: #94a3b8;
}
.layui-nav .layui-nav-item > a:hover {
    color: #3b82f6;
    background: none;
}
.layui-nav .layui-nav-child a {
    color: #475569;
    font-size: 13px;
}
.layui-nav .layui-nav-child a:hover {
    color: #3b82f6;
    background: #eff6ff;
}
.layui-nav .layui-nav-child dd {
    line-height: 32px;
}
.layui-nav-child i {
    color: #94a3b8;
}
.container .right,
.container .left {
    background-color: transparent;
}
.container .layui-nav-child {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* 左侧菜单 */
.left-nav {
    background-color: #fff;
    border-right: 1px solid rgba(226,232,240,0.8);
}
.left-nav #nav li a {
    color: #475569;
    font-size: 13px;
	font-weight: 500;
    padding: 8px 15px 8px 20px;
	border-radius: 8px;
	margin: 0 8px;
}
.left-nav #nav > li {
    border-left: 4px solid transparent;
    line-height: 24px;
	margin-bottom: 2px;
	background: transparent;
	transition: none;
}
.left-nav #nav > li:hover {
    background: #f8fafc;
    border-left-color: transparent;
}
.left-nav #nav > li.open {
    border-left-color: transparent;
    background: transparent;
}
.left-nav #nav li a:hover {
    color: #1e293b;
    background: #f1f5f9;
}
.left-nav #nav li a cite {
    font-size: 13px;
}
.left-nav #nav li .sub-menu {
    background: transparent;
}
.left-nav #nav li .sub-menu li {
    background: transparent;
}
.left-nav #nav li .sub-menu li:hover {
    background: transparent;
}
.left-nav #nav li .sub-menu li a {
    color: #64748b;
    font-size: 13px;
    padding: 6px 15px 6px 36px;
}
.left-nav #nav li .sub-menu li a:hover {
    color: #3b82f6;
    background: #eff6ff;
}
.left-nav #nav li .opened {
    background: transparent;
}
.menu-current {
    background: #eff6ff !important;
	border-radius: 8px;
	margin: 0 8px;
}
.menu-current > a {
    color: #3b82f6 !important;
}
.left-nav #nav li .nav_right {
    font-size: 13px;
    color: #94a3b8;
}
.left-nav #nav li a i {
    color: #94a3b8;
}
.left-nav #nav li a i.iconfont {
    font-size: 15px;
}

/* 右侧内容区 */
.page-content {
    top: 56px;
    background: #f0f4f8;
}
.page-content .layui-tab-title {
    background: #fff;
    height: 36px;
    border-bottom: 1px solid #e2e8f0;
}
.page-content .layui-tab-title .layui-this {
    background: rgb(240, 244, 248);
    color: #3b82f6;
}
.page-content .layui-tab-title li {
    color: #64748b;
    font-size: 13px;
}
.page-content .layui-tab-title li.home {
    color: #3b82f6;
    font-weight: 500;
}

/* 欢迎横幅 */
.home-welcome {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 24px;
    margin-top: 15px;
    margin-bottom: 15px;
    animation: fadeInUp 0.5s ease-out;
}
.home-welcome-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 256px;
    height: 256px;
    opacity: 0.03;
    pointer-events: none;
}
.home-welcome-bg svg {
    width: 100%;
    height: 100%;
}
.home-welcome-body {
    position: relative;
}
.home-welcome-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.home-welcome-desc {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}
.home-welcome-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}
.home-welcome-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}
.home-welcome-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #10b981;
}
.home-welcome-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 2s infinite;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 统计卡片 */
.stat-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.stat-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.stat-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-card-icon svg {
    width: 17px;
    height: 17px;
}
.stat-card-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}
.stat-card-num {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.stat-card-num .unit {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 2px;
}
.stat-card-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 100px;
    overflow: hidden;
}
.stat-card-bar-inner {
    height: 100%;
    border-radius: 100px;
    transition: width 1s;
}

/* 颜色变体 */
.stat-blue .stat-card-icon { background: #eff6ff; }
.stat-blue .stat-card-icon svg { color: #3b82f6; }
.stat-blue .stat-card-bar-inner { background: rgba(59,130,246,0.3); }

.stat-emerald .stat-card-icon { background: #ecfdf5; }
.stat-emerald .stat-card-icon svg { color: #10b981; }
.stat-emerald .stat-card-bar-inner { background: rgba(16,185,129,0.3); }

.stat-amber .stat-card-icon { background: #fffbeb; }
.stat-amber .stat-card-icon svg { color: #f59e0b; }
.stat-amber .stat-card-bar-inner { background: rgba(245,158,11,0.3); }

.stat-red .stat-card-icon { background: #fef2f2; }
.stat-red .stat-card-icon svg { color: #ef4444; }
.stat-red .stat-card-bar-inner { background: rgba(239,68,68,0.3); }

.stat-violet .stat-card-icon { background: #f5f3ff; }
.stat-violet .stat-card-icon svg { color: #8b5cf6; }
.stat-violet .stat-card-bar-inner { background: rgba(139,92,246,0.3); }

.stat-cyan .stat-card-icon { background: #ecfeff; }
.stat-cyan .stat-card-icon svg { color: #06b6d4; }
.stat-cyan .stat-card-bar-inner { background: rgba(6,182,212,0.3); }

/* 图表卡片 */
.chart-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.chart-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.chart-card-head-left h3 {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 2px 0;
}
.chart-card-head-left p {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}
.chart-card-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #94a3b8;
}
.chart-card-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.chart-card-body {
    height: 240px;
    overflow: hidden;
    position: relative;
}
.chart-card-head-title {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 2px;
}
.chart-card-head-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}
.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    text-decoration: none;
    transition: all 0.2s;
}
.quick-link:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.quick-link:active {
    transform: scale(0.97);
}
.quick-link span {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}
/* .quick-link svg:last-child {
    margin-left: auto;
} */
.quick-link:hover svg:last-child {
    color: #60a5fa;
}
.quick-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 主页结束 */

/* 内容开始 */
.x-body { background-color: rgb(240 244 248 / 1); }
.list-toolbar { background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.02); overflow: hidden; }
.list-toolbar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 10px 10px; }
.list-toolbar-title { font-size: 1.25rem; font-weight: 700; color: #334155; }
.list-toolbar-actions-right { display: flex; align-items: center; gap: 8px; }
.list-search-card { background: #fff; border-radius: 16px; border: 1px solid rgba(226,232,240,0.8); box-shadow: 0 1px 3px rgba(0,0,0,0.04); padding: 16px; margin-bottom: 16px; }
.list-toolbar-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.list-toolbar-search .layui-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.list-table-wrap { overflow-x: auto; }
.list-table-wrap .layui-table { width: 100% !important; font-size: 13px; border-collapse: collapse; background: transparent; }
.list-table-wrap .layui-table thead { background: rgba(248,250,252,0.8); }
.list-table-wrap .layui-table thead th,
.list-table-wrap .layui-table thead td { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #f1f5f9; background: transparent; }
.list-table-wrap .layui-table tbody tr { border-bottom: 1px solid #f8fafc; transition: background 0.2s; }
.list-table-wrap .layui-table tbody tr:last-child { border-bottom: 0; }
.list-table-wrap .layui-table tbody tr:hover { background: rgba(239,246,255,0.4); }
.list-table-wrap .layui-table tbody td { padding: 14px 16px; color: #475569; background: transparent; }
.layui-table, .layui-table-view { margin-top: 0; }
#bx{ width: 100%; padding: 0;}
.layui-table thead tr{background: rgb(248 250 252 / 0.8);}
.list-table-wrap .layui-table tbody tr{background: #fff;}
.page a{background: #fff;}
.page a:hover{background: #f5fafc; color: #000;}
.turnPage{padding-bottom: 10px;}

/* 内容区按钮样式 */
.list-toolbar-actions-right .layui-btn,
.list-toolbar-search .layui-btn { height: 36px; line-height: 36px; padding: 0 16px; font-size: 13px; border-radius: 10px; border: none; }
.list-toolbar-actions-right .layui-btn-normal,
.list-toolbar-search .layui-btn-normal { background: #3b82f6; color: #fff; }
.list-toolbar-actions-right .layui-btn-normal:hover,
.list-toolbar-search .layui-btn-normal:hover { background: #2563eb; }
/* 搜索输入框 */
.list-toolbar-search .layui-input { height: 36px; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 13px; }
.list-toolbar-search .layui-input:focus { border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

/* 表格操作按钮 */
.list-table-wrap .layui-btn-sm { height: 28px; line-height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; border: 1px solid #e2e8f0; }
.list-table-wrap .layui-btn-sm.layui-btn-normal { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.list-table-wrap .layui-btn-sm.layui-btn-normal:hover { background: #2563eb; }
.list-table-wrap .layui-btn-sm.layui-btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.list-table-wrap .layui-btn-sm.layui-btn-danger:hover { background: #dc2626; }
.list-table-wrap .layui-btn-sm:not(.layui-btn-normal):not(.layui-btn-danger) { background: #10b981; color: #fff; border-color: #10b981; }
.list-table-wrap .layui-btn-sm:not(.layui-btn-normal):not(.layui-btn-danger):hover { background: #059669; }
/* 内容结束 */

/* 内容输出窗口开始 */
/* layer 弹窗全局圆角 */
.layui-layer-popup { border-radius: 16px !important; overflow: hidden; }
.layui-layer-popup .layui-layer-title { background: #fff; border-bottom: 1px solid #e2e8f0; color: #334155; font-size: 15px; font-weight: 700; padding: 0 20px; height: 48px; line-height: 48px; border-radius: 16px 16px 0 0; }
.layui-layer-popup .layui-layer-setwin .layui-layer-close2 { font-size: 20px; color: #94a3b8; }
.layui-layer-popup .layui-layer-setwin .layui-layer-close2:hover { color: #ef4444; }
/* 弹窗页面全局 */
body.popup-page { background: #f0f4f8; padding: 20px; width: 90%; }
/* 卡片容器 */
.popup-card { background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.06); padding: 24px; margin: 0 auto; max-width: 100%; text-align: center;}
.popup-card legend { font-size: 18px; font-weight: 700; color: #334155; padding: 0; margin-left: 0;}
/* 表单行 */
.popup-card .layui-form-label { width: 70px; padding: 9px 8px 9px 0; text-align: right; font-size: 13px; color: #475569; font-weight: 500; }
.popup-card .layui-input-inline { margin-right: 8px; }
.popup-card .layui-form-item { clear: both; margin-bottom: 0; }
.popup-card .layui-form-select .layui-input,
.popup-card .layui-input { height: 36px; line-height: 36px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; font-size: 13px; color: #334155; padding: 0 8px; min-width: 80px; }
.popup-card .layui-form-select .layui-input:focus,
.popup-card .layui-input:focus { border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); outline: none; }
/* 下拉面板 */
.popup-card .layui-form-select dl { border-radius: 10px; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.popup-card .layui-form-select dl dd:hover { background: #eff6ff; }
/* 推送按钮 */
.popup-card .layui-btn { height: 38px; line-height: 38px; padding: 0 24px; font-size: 14px; font-weight: 600; border-radius: 10px; background: #3b82f6; color: #fff; border: none; }
.popup-card .layui-btn:hover { background: #2563eb; }
/* 小号按钮 */
.popup-card .layui-btn-sm { height: 30px; line-height: 30px; padding: 0 14px; font-size: 12px; font-weight: 500; margin-bottom: 10px;}

/* 内容输出窗口结束 */

/* 数据统计开始 */

.boss-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}
.boss-card:hover {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
}
.boss-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.boss-card-title {
  font-size: 1rem;
  font-weight: bold;
  color: #1e293b;
  margin: 0 0 2px 0;
}
.boss-card-subtitle {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}
.boss-card-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.boss-card-stat {
  text-align: center;
}
.boss-card-stat-value {
  font-family: monospace;
  font-size: 1.125rem;
  font-weight: bold;
  color: #334155;
}
.boss-card-stat-damage {
  color: #ef4444;
}
.boss-card-stat-label {
  font-size: 10px;
  color: #94a3b8;
}
.boss-card-progress {
  margin-top: 0.75rem;
}
.boss-card-progress-bar {
  position: relative;
  height: 0.625rem;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}
.boss-card-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}
.boss-card-progress-info {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 10px;
  color: #94a3b8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.stats-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1rem;
  transition: box-shadow 0.2s;
}
.stats-card:hover {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
}
.stats-card-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 2px;
}
.stats-card-value {
  font-family: monospace;
  font-size: 1.125rem;
  font-weight: bold;
}
.stats-card-value.red { color: #ef4444; }
.stats-card-value.blue { color: #3b82f6; }
.stats-card-value.green { color: #10b981; }
.stats-card-value.orange { color: #f59e0b; }
.stats-card-value.purple { color: #8b5cf6; }

/* 数据统计结束 */

/* 页面加载遮罩 */
.page-loading {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.page-loading.show {
  display: flex;
}
.page-loading-spinner {
  width: 42px; height: 42px;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading-text {
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}

/* 帮助开始 */
.help-wrap { display: flex; gap: 16px; }
.help-sidebar {
  width: 250px; min-width: 250px;
  background: #fff; border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 12px; height: fit-content;
}
.help-sidebar-btn {
  width: 100%; text-align: left;
  padding: 8px 12px; font-size: 13px;
  border-radius: 12px; border: none; outline: none;
  background: transparent; cursor: pointer;
  font-weight: 500; color: #475569;
  transition: all 0.15s;
}
.help-sidebar-btn:hover { background: #f8fafc; }
.help-content {
  flex: 1; background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 24px;
}
.help-section-title {
  font-size: 18px; font-weight: 700;
  color: #1e293b; margin-bottom: 4px;
}
.help-divider {
  height: 1px; background: #f1f5f9; margin-bottom: 16px;
}
.help-item {
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid #f8fafc;
}
.help-item:last-child { border-bottom: none; }
.help-item-title {
  font-size: 14px; font-weight: 700; color: #334155;
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.help-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #60a5fa; display: inline-block; flex-shrink: 0;
}
.help-item-text {
  font-size: 13px; color: #64748b; line-height: 1.8;
  white-space: pre-line; padding: 10px 14px;
  cursor: pointer; border-radius: 6px;
  border: 1px solid transparent; transition: border-color 0.15s;
  min-height: 44px;
}
.help-item-text:hover { border-color: #e2e8f0; background: #f8fafc; }
.help-item-text:empty::after {
  content: '点击添加帮助内容';
  color: #94a3b8; font-style: italic;
}
.help-edit-textarea {
  width: 100%; min-height: 120px;
  font-size: 13px; color: #334155; line-height: 1.8;
  border: 1px solid #93c5fd; border-radius: 8px;
  padding: 10px 14px; outline: none; resize: vertical;
  font-family: inherit;
}
.help-edit-textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
/* 帮助结束 */

/* 重置密码开始 */
.pass-wrap {
  display: flex; justify-content: center; align-items: center;
  min-height: 100vh; background: #f1f5f9; padding: 20px;
}
.pass-card {
  width: 100%; max-width: 440px;
  background: #fff; border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 32px;
}
.pass-title {
  font-size: 18px; font-weight: 700; color: #1e293b;
  text-align: center; margin-bottom: 4px;
}
.pass-subtitle {
  font-size: 13px; color: #94a3b8; text-align: center; margin-bottom: 24px;
}
.pass-divider {
  height: 1px; background: #f1f5f9; margin-bottom: 24px;
}
.pass-form-group { margin-bottom: 18px; }
.pass-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #334155; margin-bottom: 6px;
}
.pass-input {
  width: 100%; height: 42px; padding: 0 14px;
  font-size: 14px; color: #1e293b;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 10px; outline: none;
  box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s;
}
.pass-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); background: #fff; }
.pass-input::placeholder { color: #cbd5e1; }
.pass-input[readonly] { color: #94a3b8; background: #f1f5f9; }
.pass-code-row { display: flex; gap: 10px; }
.pass-code-row .pass-input { flex: 1; }
.pass-btn-code {
  height: 42px; padding: 0 16px; font-size: 13px; font-weight: 500;
  white-space: nowrap; border-radius: 10px; border: 1px solid #3b82f6;
  color: #3b82f6; background: #fff; cursor: pointer;
  transition: all 0.15s; flex-shrink: 0;
}
.pass-btn-code:hover { background: #eff6ff; }
.pass-btn-code:disabled { color: #cbd5e1; border-color: #e2e8f0; cursor: not-allowed; background: #f8fafc; }
.pass-btn-submit {
  width: 100%; height: 44px; font-size: 15px; font-weight: 600;
  color: #fff; background: #3b82f6; border: none;
  border-radius: 10px; cursor: pointer;
  transition: background 0.15s; margin-top: 6px;
}
.pass-btn-submit:hover { background: #2563eb; }
/* 重置密码结束 */

/* 参数设置开始 */
.setting-content { }
.setting-card {
  background: #fff; border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 20px; margin-bottom: 16px;
}
.setting-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.setting-dot {
  width: 8px; height: 20px; border-radius: 4px; flex-shrink: 0;
}
.setting-card-title {
  font-size: 14px; font-weight: 700; color: #334155;
  white-space: nowrap;
}
.setting-card-line { flex: 1; height: 1px; background: #f1f5f9; }
.setting-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px 20px;
}
.setting-field { }
.setting-label {
  display: block; font-size: 11px; font-weight: 600;
  color: #64748b; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.setting-input-wrap { position: relative; }
.setting-input {
  width: 100%; height: 38px; padding: 0 12px;
  font-size: 13px; color: #1e293b;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; outline: none;
  box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s;
}
.setting-input-has-unit { padding-right: 40px; }
.setting-input:focus {
  border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  background: #fff;
}
.setting-unit {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 11px; color: #94a3b8;
  pointer-events: none;
}
.setting-desc {
  margin: 3px 0 0; font-size: 10px; color: #94a3b8;
}
.setting-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.setting-btn-save {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 20px;
  font-size: 13px; font-weight: 600;
  color: #fff; background: #3b82f6; border: none;
  border-radius: 10px; cursor: pointer;
  transition: background 0.15s;
}
.setting-btn-save:hover { background: #2563eb; }
/* 参数设置结束 */