:root {
  --yj-primary: #5e9fd0;
  --yj-primary-dark: #4b86b2;
  --yj-bg: #eff6fc;
  --yj-side: #263f52;
  --yj-side-deep: #241f36;
  --yj-side-active: #5e9fd0;
  --yj-side-text: #d5e5f1;
  --yj-side-group: #c3dcee;
  --yj-side-active-bg: rgba(94,159,208,.28);
  --yj-fs: 14px;
}

html, body { margin: 0; height: 100%; background: var(--yj-bg); }

.yj-layout { display: flex; flex-direction: column; height: 100vh; }
.yj-header { height: 52px; background: #fff; border-bottom: 1px solid #e9f1f8; display: flex; align-items: center; padding: 0 16px; flex-shrink: 0; }
.yj-header .yj-logo { font-size: 17px; font-weight: 700; color: var(--yj-primary-dark); margin-right: 22px; white-space: nowrap; }
.yj-header .yj-logo img { height: 26px; vertical-align: -6px; margin-right: 6px; }
.yj-header .yj-head-nav { display: flex; gap: 4px; flex: 1; }
.yj-header .yj-head-nav a { color: #777; font-size: var(--yj-fs); padding: 6px 12px; border-radius: 6px; text-decoration: none; cursor: pointer; }
.yj-header .yj-head-nav a:hover { background: var(--yj-bg); color: var(--yj-primary-dark); }
.yj-header .yj-head-right { display: flex; align-items: center; gap: 12px; font-size: var(--yj-fs); color: #666; }
.yj-header .yj-head-right .yj-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--yj-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

.yj-body { display: flex; flex: 1; overflow: hidden; position: relative; }
.yj-side { width: 210px; background: var(--yj-side); overflow-y: auto; flex-shrink: 0; transition: width .2s; }
.yj-side.fold { width: 0; }
.yj-side .yj-menu-group { padding: 10px 0 2px 18px; color: var(--yj-side-group); font-size: calc(var(--yj-fs) - 2px); }
.yj-side .yj-menu-sec { padding: 10px 18px 2px; color: rgba(255,255,255,.45); font-size: calc(var(--yj-fs) - 3px); letter-spacing: .5px; }
.yj-side a.yj-menu-item { display: block; padding: 10px 18px; color: var(--yj-side-text); font-size: calc(var(--yj-fs) + 1px); text-decoration: none; cursor: pointer; border-left: 3px solid transparent; }
.yj-side a.yj-menu-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.yj-side a.yj-menu-item.active { color: #fff; background: var(--yj-side-active-bg); border-left-color: var(--yj-side-active); }
.yj-side a.yj-menu-item i { margin-right: 8px; font-size: 14px; }

.yj-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.yj-tabs { height: 38px; background: #fff; border-bottom: 1px solid #e9f1f8; display: flex; align-items: center; overflow-x: auto; flex-shrink: 0; padding: 0 8px; }
.yj-tabs .yj-tab { padding: 5px 12px; font-size: calc(var(--yj-fs) - 2px); color: #777; border-radius: 6px; margin-right: 4px; cursor: pointer; white-space: nowrap; background: var(--yj-bg); }
.yj-tabs .yj-tab.active { background: var(--yj-primary); color: #fff; }
.yj-tabs .yj-tab .yj-tab-close { margin-left: 6px; font-style: normal; opacity: .7; }
.yj-tabs .yj-tab .yj-tab-close:hover { opacity: 1; }
.yj-content { flex: 1; overflow: auto; padding: 14px; }
.yj-view { display: none; }
.yj-view.active { display: block; }

.yj-login-wrap { min-height: 100vh; box-sizing: border-box; display: grid; place-items: center; padding: 24px 14px; background: linear-gradient(145deg, #f9fcff, #e9f1f9 75%, #f4f7fb); }
.yj-login-card { box-sizing: border-box; width: min(100%, 456px); background: #fff; border: 1px solid #dbe5ef; border-radius: 16px; padding: clamp(18px, 5vw, 38px); box-shadow: 0 12px 36px rgb(20 40 62 / 9%); }
.yj-login-card h1 { font-size: 26px; line-height: 1.2; font-weight: 700; color: #14283e; margin: 0 0 6px; }
.yj-login-card .yj-login-sub { color: #4d6177; font-size: 14px; margin-bottom: 24px; overflow-wrap: anywhere; }
.yj-login-card label { display: block; margin-bottom: 6px; color: #14283e; font-weight: 600; }
.yj-login-card .layui-input { min-height: 44px; font-size: 16px; color: #14283e; border-color: #aabdd1; border-radius: 8px; }
.yj-login-card .layui-input::placeholder { color: #4d6177; }
.yj-login-card .layui-btn-fluid { min-height: 44px; background: #20598d; }
.yj-login-card .layui-btn-fluid:hover { background: #174670; color: #fff; }
.yj-login-card :is(a, button, input):focus-visible { outline: 2px solid #20598d; outline-offset: 2px; }
.yj-login-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 12px; margin-top: 16px; font-size: 14px; color: #4d6177; }
.yj-login-links a { color: #1a4c7d; text-decoration: underline; text-underline-offset: 3px; }

.layui-card { border-radius: 10px; box-shadow: 0 2px 10px rgba(94,159,208,.08); border: 0; }
.layui-card-header { border-bottom: 1px solid #eef4fa; font-size: 14px; color: #555; }
.layui-btn { border-radius: 6px; }
.layui-btn-normal { background-color: var(--yj-primary); }
.layui-btn-normal:hover { background-color: var(--yj-primary-dark); }
.layui-form-select dl dd.layui-this { background-color: var(--yj-primary); }
.layui-laypage .layui-laypage-curr .layui-laypage-em { background-color: var(--yj-primary); }
.layui-table-view { border-radius: 8px; }
.text-gray { color: #aaa; }
.mt-2 { margin-top: 10px; }
.yj-stat-num { font-size: 26px; font-weight: 700; color: var(--yj-primary-dark); }
.yj-stat-label { font-size: calc(var(--yj-fs) - 2px); color: #999; margin-top: 4px; }
.yj-license-banner { background: #fff7e8; color: #b98a2f; border: 1px solid #f3e2bb; border-radius: 8px; padding: 8px 14px; font-size: 12px; margin-bottom: 12px; }

@media (max-width: 768px) {
  .yj-side { position: absolute; z-index: 999; height: calc(100vh - 52px); }
  .yj-side.fold { width: 0; }
}
/* personalize: theme + font size */
:root { --yj-fs: 16px; }
body { font-size: var(--yj-fs); }
.layui-table, .layui-form-label, .layui-input, .layui-textarea, .layui-btn,
.layui-card-header, .layui-layer-content, .yj-menu-item, .yj-tab,
.layui-form-select dl dd, .layui-table-cell, .layui-laypage a, .layui-laypage span,
.yj-head-right, .yj-head-nav a, .yj-stat-label, .layui-word-aux,
.layui-tab-title li, .layui-form-radio, .layui-form-checkbox[lay-skin=primary] {
  font-size: var(--yj-fs);
}
.layui-table-cell { height: auto; min-height: 28px; line-height: 1.6; }
.layui-form-label,
.layui-form-pane .layui-form-label { text-align: left; }
.yj-menu-group { font-size: calc(var(--yj-fs) - 2px); }
#yjPersonalize { cursor: pointer; color: #777; padding: 6px 10px; border-radius: 6px; }
#yjPersonalize:hover { background: var(--yj-bg); color: var(--yj-primary-dark); }
.yj-pf-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 16px; }
.yj-pf-sw { width: 34px; height: 34px; border-radius: 9px; cursor: pointer; border: 2px solid transparent; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.yj-pf-sw.on { border-color: #333; }
.yj-pf-row { margin: 12px 0; font-size: 13px; color: #666; }
.yj-pf-row input[type=color] { width: 46px; height: 30px; border: 1px solid #ddd; border-radius: 6px; padding: 2px; background: #fff; vertical-align: middle; }
.yj-pf-row input[type=range] { width: 170px; vertical-align: middle; }

/* side menu modes */
.yj-menu-group { display: flex; align-items: center; padding-right: 14px; }
.yj-menu-group > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yj-menu-caret { font-size: 12px; transition: transform .2s; display: none; }
.yj-side[data-menu-mode="flat"] .yj-menu-sub { display: block; }
.yj-side[data-menu-mode="accordion"] .yj-menu-caret, .yj-side[data-menu-mode="manual"] .yj-menu-caret { display: inline-block; }
.yj-side[data-menu-mode="accordion"] .yj-menu-group, .yj-side[data-menu-mode="manual"] .yj-menu-group { cursor: pointer; }
.yj-side[data-menu-mode="accordion"] .yj-menu-sub, .yj-side[data-menu-mode="manual"] .yj-menu-sub { display: none; }
.yj-side[data-menu-mode="accordion"] .yj-menu-group.open + .yj-menu-sub, .yj-side[data-menu-mode="manual"] .yj-menu-group.open + .yj-menu-sub { display: block; }
.yj-side[data-menu-mode="accordion"] .yj-menu-group.open .yj-menu-caret, .yj-side[data-menu-mode="manual"] .yj-menu-group.open .yj-menu-caret { transform: rotate(180deg); }

/* collapsible side beautify */
.yj-side[data-menu-mode="accordion"] .yj-menu-group, .yj-side[data-menu-mode="manual"] .yj-menu-group {
  margin: 6px 10px 2px; padding: 9px 12px; border-radius: 9px;
  background: rgba(255,255,255,.07); color: #ece7f8;
  font-size: var(--yj-fs); letter-spacing: .5px;
}
.yj-side[data-menu-mode="accordion"] .yj-menu-group:hover, .yj-side[data-menu-mode="manual"] .yj-menu-group:hover { background: rgba(255,255,255,.14); }
.yj-side[data-menu-mode="accordion"] .yj-menu-group.open, .yj-side[data-menu-mode="manual"] .yj-menu-group.open { background: var(--yj-primary); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.yj-side[data-menu-mode="accordion"] .yj-menu-sub, .yj-side[data-menu-mode="manual"] .yj-menu-sub { margin: 2px 12px 8px 16px; padding-left: 8px; border-left: 2px solid rgba(255,255,255,.18); }
.yj-side[data-menu-mode="accordion"] .yj-menu-item, .yj-side[data-menu-mode="manual"] .yj-menu-item { border-left: 0; border-radius: 8px; margin: 2px 0; padding: 8px 12px; font-size: var(--yj-fs); }
.yj-side[data-menu-mode="accordion"] .yj-menu-item:hover, .yj-side[data-menu-mode="manual"] .yj-menu-item:hover { background: rgba(255,255,255,.10); }
.yj-side[data-menu-mode="accordion"] .yj-menu-item.active, .yj-side[data-menu-mode="manual"] .yj-menu-item.active { background: rgba(255,255,255,.18); color: #fff; }

.yj-sort-ghost { opacity: .45; background: rgba(94,159,208,.35) !important; border-radius: 8px; }

.yj-menu-grip { font-size: 14px; color: rgba(255,255,255,.35); cursor: grab; margin-left: 6px; display: inline-block; }
.yj-menu-grip:hover { color: #fff; }
.yj-menu-grip:active { cursor: grabbing; }

/* user center account page */
.yj-uc-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border-radius: 16px;
  background: linear-gradient(120deg, var(--yj-primary) 0%, var(--yj-primary-dark) 55%, #7fb2e5 120%);
  color: #fff; box-shadow: 0 8px 24px rgba(94,159,208,.28); }
.yj-uc-hero-left { display: flex; align-items: center; gap: 16px; }
.yj-uc-avatar-ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: rgba(255,255,255,.35); display: inline-flex; }
.yj-uc-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.6); display: none; }
.yj-uc-name { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.yj-uc-sub { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 4px; }
.yj-uc-stats { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.yj-uc-stat { min-width: 96px; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.16); backdrop-filter: blur(2px); }
.yj-uc-stat .layui-btn { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); color: #fff; margin: 0; }
.yj-uc-stat .layui-btn:hover { background: rgba(255,255,255,.32); color: #fff; }
.yj-uc-num { display: flex; align-items: center; justify-content: center; min-height: 28px; font-size: 20px; font-weight: 700; line-height: 28px; }
.yj-uc-num-sm { font-size: 15px; }
.yj-uc-label { font-size: 11px; color: rgba(255,255,255,.72); margin-top: 4px; line-height: 16px; }
.yj-uc-code { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; cursor: pointer; border-bottom: 1px dashed rgba(255,255,255,.6); letter-spacing: .5px; }
.yj-uc-code:hover { color: #fff9e0; }
.yj-uc-tabs { margin-top: 16px; }
.yj-uc-tabs > .layui-tab-title { border-bottom: 0; display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 12px; box-shadow: 0 2px 10px rgba(94,159,208,.08); }
.yj-uc-tabs > .layui-tab-title li { border-radius: 9px; padding: 0 18px; color: #777; transition: all .15s; }
.yj-uc-tabs > .layui-tab-title li:hover { background: var(--yj-bg); color: var(--yj-primary-dark); }
.yj-uc-tabs > .layui-tab-title li.layui-this { background: var(--yj-primary); color: #fff; }
.yj-uc-tabs > .layui-tab-title li.layui-this:after { display: none; }
.yj-uc-tabs > .layui-tab-content { padding: 14px 0 0; }
.yj-uc-tabs .layui-card { border-radius: 14px; box-shadow: 0 3px 14px rgba(94,159,208,.09); margin-bottom: 14px; }
.yj-uc-tabs .layui-card-header { background: transparent; font-weight: 600; color: #3d7099; border-bottom: 1px dashed #edf4fa; padding: 13px 20px; }
.yj-uc-tabs .layui-card-body { padding: 20px 22px; }
.yj-uc-tabs .layui-form-label { color: #777; }
.pill { display: inline-block; font-size: 12px; border-radius: 999px; padding: 2px 10px; background: #eff6fc; color: #7d94a8; }
.pill.ok { background: #edf9f0; color: #5fb878; }
.pill.off { background: #fff3e8; color: #e09a26; }
.sec-hint { font-size: 12px; color: #9aa9b7; margin-top: 10px; }
@media (max-width: 768px) { .yj-uc-stats { margin-left: 0; width: 100%; } }

/* shell polish */
.yj-header { box-shadow: 0 1px 0 #efeaf7, 0 6px 18px rgba(140,120,190,.06); }
.yj-header .yj-logo { letter-spacing: .5px; }
.yj-header .yj-head-nav a { border-radius: 999px; }
.yj-header .yj-head-right { gap: 10px; }
#yjNotice, #yjPersonalize { border-radius: 999px; }
.yj-header .yj-head-right .yj-avatar { box-shadow: 0 2px 8px rgba(94,159,208,.35); }
.yj-tabs { border-bottom: 0; background: transparent; padding: 9px 12px 0; gap: 6px; }
.yj-tabs .yj-tab { border-radius: 999px; padding: 6px 14px; background: #e9f1f8; color: #4b86b2; }
.yj-tabs .yj-tab:hover { background: #e2dbf2; }
.yj-tabs .yj-tab.active { background: var(--yj-primary); color: #fff; box-shadow: 0 3px 10px rgba(94,159,208,.35); }
.yj-tabs .yj-tab.active .yj-tab-close { color: #fff; }
.yj-content { padding: 16px 18px; }
.layui-card { border-radius: 12px; box-shadow: 0 2px 12px rgba(94,159,208,.10); border: 1px solid #f1ecf9; }
.layui-card-header { border-bottom: 1px dashed #edf4fa; color: #3d7099; font-weight: 600; }
.layui-btn { border-radius: 8px; }
.layui-btn-normal { box-shadow: 0 2px 8px rgba(94,159,208,.25); }
.layui-btn-primary { border-color: #dbe9f4; background: #fff; }
.layui-input, .layui-textarea { border-radius: 8px; border-color: #dbe9f4; }
.layui-input:focus, .layui-textarea:focus { border-color: var(--yj-primary) !important; box-shadow: 0 0 0 3px rgba(94,159,208,.15); }
.layui-form-select dl { border-radius: 10px; box-shadow: 0 8px 24px rgba(94,159,208,.18); border: 0; }
.layui-form-select dl dd.layui-this { background: var(--yj-primary); }
.layui-form-onswitch { background-color: var(--yj-primary); border-color: var(--yj-primary); }
.layui-form-checked[lay-skin=primary] i { border-color: var(--yj-primary) !important; background-color: var(--yj-primary); }
.layui-table-view { border-radius: 12px; border: 1px solid #eef5fb; }
.layui-table thead tr { background: #f8fbfe; }
.layui-table thead th { color: #437aa5; font-weight: 600; }
.layui-table tbody tr:hover { background: #f8fbfe; }
.layui-table th, .layui-table td { border-color: #f3eefa; }
.layui-laypage a, .layui-laypage span { border-radius: 6px; border: 0; background: #f1f7fc; margin: 0 2px; }
.layui-laypage .layui-laypage-curr .layui-laypage-em { border-radius: 6px; background: var(--yj-primary); }
.yj-side { background: linear-gradient(180deg, var(--yj-side) 0%, var(--yj-side-deep) 100%); }
.yj-side::-webkit-scrollbar { width: 6px; }
.yj-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px; }
.yj-side a.yj-menu-item { margin: 2px 8px; border-radius: 8px; padding: 9px 12px; border-left: 0; }
.yj-side a.yj-menu-item i { opacity: .85; width: 18px; display: inline-block; }
.yj-side a.yj-menu-item:hover { background: rgba(255,255,255,.08); }
.yj-side a.yj-menu-item.active { background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); box-shadow: inset 3px 0 0 var(--yj-side-active); }
.yj-side[data-menu-mode="accordion"] .yj-menu-item, .yj-side[data-menu-mode="manual"] .yj-menu-item { margin: 2px 0; }
.yj-side[data-menu-mode="accordion"] .yj-menu-sub, .yj-side[data-menu-mode="manual"] .yj-menu-sub { border-left-color: rgba(255,255,255,.14); }
.layui-layer { border-radius: 14px; overflow: hidden; }
.layui-layer-title { background: #f8fbfe; color: #3d7099; font-weight: 600; border-bottom: 1px solid #eef5fb; }
.layui-layer-btn .layui-layer-btn0 { background: var(--yj-primary); border-color: var(--yj-primary); border-radius: 8px; }
.layui-layer-btn a { border-radius: 8px; }
.layui-progress-bar { background-color: var(--yj-primary); }
.yj-license-banner { border-radius: 10px; }

/* 全局统计 */
.yj-count-cards, .yj-count-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 12px; margin-bottom: 14px; }
:is(.yj-count-cards, .yj-count-periods) .layui-card { min-width: 0; margin-bottom: 0; }
.yj-count-cards .yj-count-global { grid-column: 1 / -1; }
.yj-count-period { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.yj-count-period > div:first-child { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid var(--yj-line); }
.yj-count-period dt { color: var(--yj-muted); font-size: max(12px, calc(var(--yj-fs) - 1px)); }
.yj-count-period dd { margin: 4px 0 0; font-size: calc(var(--yj-fs) + 2px); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.yj-count-period > div:first-child dd { color: var(--yj-accent-ink); font-size: calc(var(--yj-fs) + 14px); }
.yj-count-empty { padding: 24px 0; text-align: center; color: var(--yj-muted); }
.yj-count-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 93px), 1fr)); gap: 8px; }
.yj-count-tile { background: var(--yj-accent-soft); border-radius: 8px; padding: 10px; }
.yj-count-tile-label { font-size: max(12px, calc(var(--yj-fs) - 1px)); color: var(--yj-muted); overflow-wrap: anywhere; }
.yj-count-tile-num { font-size: calc(var(--yj-fs) + 8px); font-weight: 700; color: var(--yj-ink); margin-top: 5px; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* 验证设置行 */
.yj-check-row { display: flex; align-items: center; gap: 14px; border: 1px solid #eef4fa; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; background: #fff; }
.yj-check-label { flex: 0 0 170px; color: #666; font-size: calc(var(--yj-fs) - 1px); }
.yj-check-label .layui-icon { color: #a8c9e2; margin-right: 6px; font-size: 14px; }
.yj-check-ctrl { flex: 1; min-width: 0; }
.yj-check-ctrl .layui-form-select { max-width: 100%; }
.yj-check-tip { color: #aaa; font-size: 12px; margin-top: 4px; }
@media (max-width: 768px) { .yj-check-row { flex-direction: column; align-items: stretch; } .yj-check-label { flex: none; } }

/* 登录页行为验证滑块 */
.yj-beh-box { background: #f8f6fd; border: 1px solid #e9f2f9; border-radius: 10px; padding: 10px 14px 6px; }
.yj-beh-box .layui-slider { margin: 14px 0 10px; }
.yj-beh-tip { text-align: center; color: #96b4cc; font-size: 12px; padding-bottom: 6px; }

/* 验证设置分组与帮助 */
.yj-check-group { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; color: #3d7099; font-weight: 600; font-size: calc(var(--yj-fs) - 1px); }
.yj-check-group::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--yj-primary); }
.yj-check-group:first-child { margin-top: 0; }
.yj-check-help { cursor: help; }
.yj-check-help:hover { color: var(--yj-primary); }

/* 侧栏菜单项拖动手柄 */
.yj-side a.yj-menu-item { display: flex; align-items: center; }
.yj-side a.yj-menu-item > .layui-icon:first-child { margin-right: 6px; }
.yj-side .yj-menu-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yj-side .yj-item-grip { margin-left: auto; opacity: 0; font-size: 14px; cursor: grab; color: #96b4cc; transition: opacity .15s; }
.yj-side a.yj-menu-item:hover .yj-item-grip { opacity: .8; }
.yj-side:hover .yj-item-grip { opacity: .45; }

/* 站点设置 LOGO 行 */
.yj-logo-line { display: flex; gap: 8px; margin-bottom: 8px; }
.yj-logo-line .layui-input { flex: 1; }
.yj-logo-line .layui-btn { white-space: nowrap; }

/* 用户中心公告与新闻 */
.yj-uc-bulletin { margin-top: 16px; background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 2px 10px rgba(94,159,208,.08); }
.yj-uc-bulletin-title { font-size: 13px; font-weight: 600; color: #3d7099; margin-bottom: 6px; }
.yj-uc-bulletin-title .layui-icon { margin-right: 4px; color: var(--yj-primary); }
.yj-uc-bulletin-list { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.yj-uc-bulletin-list a { color: #666; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.yj-uc-bulletin-list a:hover { color: var(--yj-primary); }
.yj-uc-bulletin-tag { font-size: 11px; color: #5e9fd0; background: var(--yj-bg); border-radius: 4px; padding: 1px 6px; }

/* 行为验证滑块（自定义） */
.yj-bsl { position: relative; height: 44px; border-radius: 22px; background: #f1edfb; border: 1px solid #e6ddf6; overflow: hidden; user-select: none; margin-bottom: 4px; }
.yj-bsl-tip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 54px; font-size: 13px; color: #96b4cc; pointer-events: none; }
.yj-bsl-btn { position: absolute; left: 2px; top: 2px; z-index: 2; width: 40px; height: 38px; border-radius: 19px; background: #fff; box-shadow: 0 2px 8px rgba(94,159,208,.35); color: var(--yj-primary); display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; transition: background .2s; }
.yj-bsl.moving .yj-bsl-btn { cursor: grabbing; }
.yj-bsl.ok { background: #e3f6ec; border-color: #bfe8d1; }
.yj-bsl.ok .yj-bsl-btn { background: #16b777; color: #fff; }
.yj-bsl.ok .yj-bsl-tip { color: #16b777; }

/* 路由菜单 */
.yj-rt-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.yj-rt-note { color: #aaa; font-size: 12px; margin-left: 6px; }
.yj-rt-table { border: 1px solid #eef4fa; border-radius: 10px; overflow: hidden; }
.yj-rt-head, .yj-rt-row { display: flex; align-items: center; padding: 9px 12px; border-bottom: 1px solid #f1f7fc; font-size: calc(var(--yj-fs) - 1px); }
.yj-rt-head { background: #f8fbfe; color: #437aa5; font-weight: 600; }
.yj-rt-row:hover { background: #f8fbfe; }
.yj-rt-row.yj-rt-hidden { opacity: .55; }
.yj-rt-col-check { flex: 0 0 34px; }
.yj-rt-col-title { flex: 1 1 300px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yj-rt-col-title em { color: #a3c1d8; font-style: normal; font-size: 12px; }
.yj-rt-col-type { flex: 0 0 90px; color: #888; }
.yj-rt-col-name { flex: 0 0 170px; color: #8a7fb5; }
.yj-rt-col-path { flex: 0 0 220px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yj-rt-col-sort { flex: 0 0 90px; }
.yj-rt-col-sort .layui-input { height: 30px; line-height: 30px; padding: 0 8px; }
.yj-rt-col-op { flex: 0 0 110px; text-align: right; white-space: nowrap; }
.yj-rt-op { display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 6px; color: #fff; background: #5e9fd0; margin-left: 4px; cursor: pointer; }
.yj-rt-op.rt-del { background: #e0566b; }
.yj-rt-op:hover { opacity: .85; }
.yj-rt-toggle { display: inline-block; width: 18px; color: #5e9fd0; cursor: pointer; }
.yj-rt-toggle-place { display: inline-block; width: 18px; }
.yj-rt-indent { display: inline-block; width: 16px; }
.yj-rt-tag { font-size: 11px; color: #e0566b; background: #fdeef0; border-radius: 4px; padding: 0 5px; font-weight: normal; }
.yj-rt-icons { display: grid; grid-template-columns: repeat(auto-fill, 34px); gap: 6px; margin-top: 8px; }
.yj-rt-icons a { display: flex; align-items: center; justify-content: center; height: 30px; border: 1px solid #e9f2f9; border-radius: 6px; color: #5e9fd0; cursor: pointer; }
.yj-rt-icons a:hover { background: var(--yj-bg); }
.yj-rt-empty { text-align: center; color: #bbb; padding: 30px 0; }
@media (max-width: 900px) { .yj-rt-col-name, .yj-rt-col-path { display: none; } }

/* 路由可见开关 */
.yj-rt-col-visible { flex: 0 0 64px; text-align: center; }
.yj-rt-sw { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; vertical-align: middle; }
.yj-rt-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.yj-rt-sw i { position: absolute; inset: 0; background: #dcd6ec; border-radius: 11px; transition: background .2s; }
.yj-rt-sw i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.yj-rt-sw.on i { background: #5e9fd0; }
.yj-rt-sw.on i::after { transform: translateX(18px); }

/* 路由可见开关（锁定态） */
.yj-rt-sw.locked { cursor: not-allowed; opacity: .75; }
.yj-rt-sw.locked i { background: #a8c9e2; }
.yj-rt-op.rt-lock { background: #c8c2d8; cursor: not-allowed; }

/* 用户组编辑弹窗 */
.ug-sec { display: flex; align-items: center; gap: 8px; padding: 12px 18px 8px; color: #3d7099; font-weight: 600; font-size: calc(var(--yj-fs) - 1px); border-bottom: 1px dashed #edf4fa; margin-bottom: 12px; }
.ug-sec::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--yj-primary); }
.ug-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 0 18px; }
.ug-field label { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.ug-field.ug-full { grid-column: 1 / -1; }
.ug-tip { color: #aaa; font-size: 12px; margin-top: 4px; }
.ug-route-table { max-height: 300px; overflow: auto; }
.ug-route-table .yj-rt-head { position: sticky; top: 0; z-index: 2; }
@media (max-width: 700px) { .ug-grid { grid-template-columns: 1fr; } }

/* ===== 左侧栏视觉优化 (0.24.38) ===== */
:root { --yj-side-w: 248px; }
.yj-side {
  width: var(--yj-side-w);
  background: linear-gradient(180deg, #342e4c 0%, #2b2641 55%, #262138 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: inset -1px 0 0 rgba(0,0,0,.25);
  padding: 4px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.yj-side::-webkit-scrollbar { width: 6px; }
.yj-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }
.yj-side::-webkit-scrollbar-track { background: transparent; }

.yj-side .yj-menu-block { padding: 0; }
.yj-side .yj-menu-block + .yj-menu-block { border-top: 1px solid rgba(255,255,255,.055); margin-top: 2px; }

/* 一级分组标题（平铺模式） */
.yj-side[data-menu-mode="flat"] .yj-menu-group {
  padding: 13px 16px 7px 18px;
  color: #8d86a6;
  font-size: calc(var(--yj-fs) - 4px);
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.yj-side[data-menu-mode="flat"] .yj-menu-group > span::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: rgba(255,255,255,.2);
  margin-right: 8px;
  vertical-align: 1px;
  transition: background .15s;
}
.yj-side .yj-menu-block:has(.yj-menu-item.active) .yj-menu-group { color: #d5cbf2; }
.yj-side .yj-menu-block:has(.yj-menu-item.active) .yj-menu-group > span::before { background: var(--yj-primary); box-shadow: 0 0 8px rgba(94,159,208,.8); }

/* 二级分区小标题（网络验证等） */
.yj-side .yj-menu-sec {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 14px 2px;
  padding: 6px 6px 2px;
  color: #7d7696;
  font-size: calc(var(--yj-fs) - 5px);
  letter-spacing: 1px;
  white-space: nowrap;
}
.yj-side .yj-menu-sec::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.12), transparent);
}

/* 菜单项 */
.yj-side a.yj-menu-item,
.yj-side[data-menu-mode="accordion"] a.yj-menu-item,
.yj-side[data-menu-mode="manual"] a.yj-menu-item {
  display: flex;
  align-items: center;
  margin: 2px 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  color: #b8b1cd;
  font-size: var(--yj-fs);
  line-height: 1.35;
  position: relative;
  transition: background .15s, color .15s, transform .15s;
}
.yj-side a.yj-menu-item i.layui-icon:first-child {
  width: 18px;
  text-align: center;
  margin-right: 9px;
  font-size: 15px;
  opacity: .9;
}
.yj-side a.yj-menu-item .yj-menu-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yj-side a.yj-menu-item:hover {
  color: #fff;
  background: rgba(255,255,255,.065);
  transform: translateX(2px);
}
.yj-side a.yj-menu-item.active,
.yj-side[data-menu-mode="accordion"] a.yj-menu-item.active,
.yj-side[data-menu-mode="manual"] a.yj-menu-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(94,159,208,.62), rgba(94,159,208,.26));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.16);
}
.yj-side a.yj-menu-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 9px; bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #fff;
  opacity: .9;
}
.yj-side a.yj-menu-item.active i.layui-icon:first-child { opacity: 1; }

/* 拖动把手：悬停显示 */
.yj-side .yj-menu-grip,
.yj-side .yj-item-grip {
  opacity: .22;
  transition: opacity .15s, color .15s;
  margin-left: auto;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.yj-side .yj-menu-block:hover .yj-menu-grip,
.yj-side a.yj-menu-item:hover .yj-item-grip { opacity: .8; }
.yj-side .yj-menu-grip:hover, .yj-side .yj-item-grip:hover { color: #fff; }

/* 折叠模式下与新版样式协调 */
.yj-side[data-menu-mode="accordion"] .yj-menu-group,
.yj-side[data-menu-mode="manual"] .yj-menu-group {
  margin: 8px 12px 4px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: var(--yj-fs);
  letter-spacing: .5px;
  background: rgba(255,255,255,.06);
  transition: background .15s, box-shadow .15s;
}
.yj-side[data-menu-mode="accordion"] .yj-menu-group > span::before,
.yj-side[data-menu-mode="manual"] .yj-menu-group > span::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: rgba(255,255,255,.55);
  margin-right: 8px;
  vertical-align: 1px;
}
.yj-side[data-menu-mode="accordion"] .yj-menu-group.open,
.yj-side[data-menu-mode="manual"] .yj-menu-group.open {
  background: linear-gradient(90deg, var(--yj-primary), var(--yj-primary-dark));
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
.yj-side[data-menu-mode="accordion"] .yj-menu-sub,
.yj-side[data-menu-mode="manual"] .yj-menu-sub {
  margin: 2px 12px 8px 18px;
  padding-left: 6px;
  border-left: 1px solid rgba(255,255,255,.14);
}
.yj-side[data-menu-mode="accordion"] .yj-menu-sec,
.yj-side[data-menu-mode="manual"] .yj-menu-sec { margin: 8px 4px 2px; padding-left: 2px; }

@media (max-width: 768px) { .yj-side { width: var(--yj-side-w); } }

/* 分区（网络验证）内菜单项不允许拖动，隐藏把手 */
.yj-menu-sub:has(.yj-menu-sec) .yj-item-grip { display: none; }

/* ===== 个性化面板 UI (0.24.51) ===== */
.yj-pf-panel { padding: 18px 20px; }
.yj-pf-sec { background: #f8fbfe; border: 1px solid #eef4fa; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.yj-pf-title { font-size: 14px; font-weight: 600; color: #5a5170; display: flex; align-items: center; gap: 8px; }
.yj-pf-desc { font-size: 12px; color: #94a8ba; margin: 4px 0 12px; line-height: 1.5; }
.yj-pf-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.yj-pf-sw { width: 32px; height: 32px; border-radius: 10px; cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(80,60,140,.15); transition: transform .15s, box-shadow .15s; }
.yj-pf-sw:hover { transform: translateY(-1px); }
.yj-pf-sw.on { box-shadow: 0 0 0 2px var(--yj-primary), 0 3px 8px rgba(80,60,140,.25); transform: scale(1.04); }
.yj-pf-colorline { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #6b8299; }
.yj-pf-colorline input[type=color] { width: 42px; height: 28px; border: 1px solid #e4def0; border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.yj-pf-colorline code { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 2px 8px; font-size: 12px; color: #8a819e; }
.yj-pf-badge { background: var(--yj-primary); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 500; }
.yj-pf-range { padding: 2px 2px 0; }
.yj-pf-range input[type=range] { width: 100%; accent-color: var(--yj-primary); }
.yj-pf-seg { display: flex; background: #f1ecfa; padding: 3px; border-radius: 10px; gap: 2px; }
.yj-pf-seg button { flex: 1; border: 0; background: transparent; padding: 8px 4px; border-radius: 8px; font-size: 12px; color: #6b8299; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.yj-pf-seg button:hover { color: var(--yj-primary-dark); }
.yj-pf-seg button.on { background: #fff; color: var(--yj-primary-dark); font-weight: 600; box-shadow: 0 2px 6px rgba(94,159,208,.2); }
.yj-pf-note { font-size: 12px; color: #94a8ba; text-align: center; margin: 2px 0 12px; }
.yj-pf-actions { display: flex; gap: 8px; }
.yj-pf-actions .layui-btn { flex: 1; margin: 0; }
.yj-pf-panel .layui-form-select dl { border-radius: 8px; }

/* 侧栏宽度拖拽手柄 */
.yj-side-resizer {
  position: absolute;
  top: 50%;
  left: calc(var(--yj-side-w) - 5px);
  transform: translateY(-50%);
  width: 10px;
  height: 96px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.42));
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 4px 14px rgba(0,0,0,.30);
  cursor: col-resize;
  z-index: 20;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.yj-side-resizer::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 40px;
  border-radius: 3px;
  background-image: radial-gradient(circle, rgba(90,80,120,.75) 1.2px, transparent 1.6px);
  background-size: 4px 8px;
  background-position: center;
  opacity: .85;
}
.yj-side-resizer:hover, .yj-side-resizer.dragging {
  background: linear-gradient(180deg, var(--yj-primary), var(--yj-primary-dark));
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 0 4px rgba(94,159,208,.18), 0 6px 16px rgba(0,0,0,.32);
  transform: translateY(-50%) scaleY(1.04);
}
.yj-side-resizer:hover::before, .yj-side-resizer.dragging::before {
  background-image: radial-gradient(circle, rgba(255,255,255,.95) 1.2px, transparent 1.6px);
  opacity: 1;
}
.yj-side.fold + .yj-side-resizer { display: none; }
@media (max-width: 768px) { .yj-side-resizer { display: none; } }

/* ===== 侧栏精致化 (0.24.57) ===== */
.yj-side { background: linear-gradient(180deg, var(--yj-side) 0%, var(--yj-side-deep) 100%); }
.yj-side .yj-menu-group { gap: 8px; }
.yj-side .yj-menu-group > span::before { display: none !important; }
.yj-side .yj-menu-gicon {
  width: 24px; height: 24px; flex: none;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: #dcebf7;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.045));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: background .18s, color .18s, box-shadow .18s;
}
.yj-side .yj-menu-block:hover .yj-menu-gicon { color: #fff; background: linear-gradient(135deg, rgba(94,159,208,.55), rgba(94,159,208,.22)); }
.yj-side .yj-menu-block:has(.yj-menu-item.active) .yj-menu-gicon {
  color: #fff;
  background: linear-gradient(135deg, var(--yj-primary), var(--yj-primary-dark));
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}
.yj-side[data-menu-mode="flat"] .yj-menu-group { padding: 14px 16px 7px 16px; color: #a99fc7; font-weight: 600; letter-spacing: .8px; }
.yj-side[data-menu-mode="flat"] .yj-menu-group:hover { color: #ded6f4; }
.yj-side[data-menu-mode="flat"] .yj-menu-sec { color: rgba(255,255,255,.34); font-weight: 500; letter-spacing: 1.2px; }
.yj-side[data-menu-mode="flat"] .yj-menu-sec::after { background: linear-gradient(90deg, rgba(255,255,255,.10), transparent); }
.yj-side a.yj-menu-item,
.yj-side[data-menu-mode="accordion"] a.yj-menu-item,
.yj-side[data-menu-mode="manual"] a.yj-menu-item {
  margin: 3px 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: calc(var(--yj-fs) - 1px);
  color: #beb6d4;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}
.yj-side a.yj-menu-item:hover { background: rgba(255,255,255,.075); transform: translateX(3px); color: #fff; }
.yj-side a.yj-menu-item.active,
.yj-side[data-menu-mode="accordion"] a.yj-menu-item.active,
.yj-side[data-menu-mode="manual"] a.yj-menu-item.active {
  background: linear-gradient(90deg, rgba(94,159,208,.72), rgba(94,159,208,.20));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.18);
}
.yj-side a.yj-menu-item.active::before { width: 4px; top: 8px; bottom: 8px; opacity: 1; }
.yj-side[data-menu-mode="accordion"] .yj-menu-group,
.yj-side[data-menu-mode="manual"] .yj-menu-group {
  gap: 9px;
  font-weight: 600;
  letter-spacing: .4px;
  background: linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.yj-side[data-menu-mode="accordion"] .yj-menu-group:hover,
.yj-side[data-menu-mode="manual"] .yj-menu-group:hover { background: rgba(255,255,255,.12); }
.yj-side[data-menu-mode="accordion"] .yj-menu-group.open,
.yj-side[data-menu-mode="manual"] .yj-menu-group.open { box-shadow: 0 6px 18px rgba(0,0,0,.30); }

/* 顶部工具按钮（前台 / 刷新 / 退出） */
.yj-header .yj-head-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: #f5f9fd; border: 1px solid #e2edf7; color: #54718a;
  font-size: 13px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.yj-header .yj-head-nav a i { font-size: 14px; color: #7aa7c9; transition: color .16s ease; }
.yj-header .yj-head-nav a:hover { background: #eaf4fc; border-color: #cfe5f4; color: #2f6b99; box-shadow: 0 4px 12px rgba(94,159,208,.16); transform: translateY(-1px); }
.yj-header .yj-head-nav a:hover i { color: #4b8fbf; }
.yj-header .yj-head-nav a:active { transform: translateY(0); box-shadow: none; }
.yj-header .yj-group-chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; color: #4b86b2;
  background: #edf6fd; border: 1px solid #dcebf8; white-space: nowrap;
}
.yj-header .yj-head-right .yj-btn-quit {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: #fff6f6; border: 1px solid #f4dcdc; color: #c05656;
  font-size: 13px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.yj-header .yj-head-right .yj-btn-quit i { font-size: 14px; }
.yj-header .yj-head-right .yj-btn-quit:hover { background: #ffecec; border-color: #eec4c4; color: #a94444; box-shadow: 0 4px 12px rgba(192,86,86,.14); transform: translateY(-1px); }
.yj-header .yj-head-right .yj-btn-quit:active { transform: translateY(0); box-shadow: none; }
@media (max-width: 768px) {
  .yj-header { padding: 0 10px; }
  .yj-header .yj-head-nav a { height: 30px; padding: 0 10px; font-size: 12px; }
  .yj-header .yj-group-chip { display: none; }
  .yj-header .yj-head-right .yj-btn-quit { height: 30px; padding: 0 10px; font-size: 12px; }
}

/* 资料绑定区块 */
.bind-line { display: flex; gap: 10px; align-items: center; }
.bind-line .layui-input { flex: 1; height: 38px; border-radius: 8px; }
.bind-line .layui-btn { height: 38px; line-height: 38px; margin: 0; border-radius: 8px; padding: 0 16px; }
.bind-line .layui-input:disabled, .bind-line .layui-input[readonly] { color: #7d94a8; background: #f7fbfe; cursor: default; }
.bind-state { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12px; color: #9aa9b7; }
.bind-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c5d5e2; }
.bind-state.on { color: #5fb878; }
.bind-state.on::before { background: #5fb878; }
.bind-code-row { display: flex; gap: 8px; margin-top: 8px; }
.bind-code-row .layui-input { flex: 1; height: 34px; }
.bind-code-row .layui-btn { height: 34px; line-height: 34px; margin: 0; border-radius: 8px; }

/* 保存按钮跟随主题 */
.layui-btn:not(.layui-btn-primary):not(.layui-btn-danger):not(.layui-btn-warm):not(.layui-btn-disabled),
.layui-btn-normal { background-color: var(--yj-primary); }
.layui-btn:not(.layui-btn-primary):not(.layui-btn-danger):not(.layui-btn-warm):not(.layui-btn-disabled):hover,
.layui-btn-normal:hover { background-color: var(--yj-primary-dark); opacity: 1; }

/* 下拉框可读性 */
.layui-form-select dl dd { color: #3b4a5a; }
.layui-form-select dl dd:hover { background: #f0f6fc; color: #1f3b52; }
.layui-form-select dl dd.layui-this { background: var(--yj-primary); color: #fff; font-weight: 600; }
.layui-form-select dl dd.layui-select-tips { color: #98a6b3; }
.layui-form-select .layui-input, .layui-form-select input { color: #3b4a5a; }

/* 主题浅色侧栏与分组可读性 */
.yj-side .yj-menu-sec { color: var(--yj-side-group); }
.yj-side a.yj-menu-item:hover { background: var(--yj-side-active-bg); color: var(--yj-side-active); }
.yj-side a.yj-menu-item.active { background: var(--yj-side-active-bg); color: var(--yj-side-active); box-shadow: inset 3px 0 0 var(--yj-side-active); font-weight: 600; }
.yj-side[data-menu-mode="accordion"] .yj-menu-group:hover,
.yj-side[data-menu-mode="manual"] .yj-menu-group:hover { background: var(--yj-side-active-bg); }
.yj-side[data-menu-mode="accordion"] .yj-menu-group.open,
.yj-side[data-menu-mode="manual"] .yj-menu-group.open { background: var(--yj-side-active-bg); color: var(--yj-side-active); box-shadow: none; font-weight: 600; }
.yj-side::-webkit-scrollbar-thumb { background: var(--yj-side-active-bg); }

/* 浅色侧栏文字对比度修正 */
.yj-side .yj-menu-block:has(.yj-menu-item.active) .yj-menu-group { color: var(--yj-side-active); }
.yj-side[data-menu-mode="accordion"] .yj-menu-item.active,
.yj-side[data-menu-mode="manual"] .yj-menu-item.active { color: var(--yj-side-active); background: var(--yj-side-active-bg); }
.yj-side[data-menu-mode="accordion"] .yj-menu-item:hover,
.yj-side[data-menu-mode="manual"] .yj-menu-item:hover { color: var(--yj-side-active); background: var(--yj-side-active-bg); }

/* 选中高亮只保留当前项 */
.yj-side a.yj-menu-item:focus, .yj-side a.yj-menu-item:focus-visible { outline: none; }
.yj-side[data-menu-mode="accordion"] .yj-menu-group.open,
.yj-side[data-menu-mode="manual"] .yj-menu-group.open { background: transparent; color: inherit; box-shadow: none; }
.yj-side .yj-menu-block:has(.yj-menu-item.active) .yj-menu-group { color: var(--yj-side-active); }

/* 拖拽把手常显且提高对比度 */
.yj-side .yj-item-grip { opacity: .55; color: var(--yj-side-group); font-size: 15px; }
.yj-side a.yj-menu-item:hover .yj-item-grip { opacity: 1; color: var(--yj-side-active); }
.yj-side .yj-menu-grip { color: var(--yj-side-group); opacity: .85; font-size: 15px; }
.yj-side .yj-menu-grip:hover, .yj-side a.yj-menu-item:hover .yj-item-grip { color: var(--yj-side-active); }

/* 分组标题不跟随激活项高亮 */
.yj-side .yj-menu-block:has(.yj-menu-item.active) .yj-menu-group { color: var(--yj-side-group); }

/* 操作按钮（对齐 A 站会员操作样式） */
.yj-op { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; margin: 0 6px 0 0; border: 1px solid #dbe9f4; border-radius: 999px; background: #fff; color: var(--yj-primary-dark); font-size: 12.5px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; }
.yj-op:hover { background: var(--yj-bg); border-color: #cfe2f0; }
.yj-op.warn { color: #c98a2e; border-color: #f3e2bb; }
.yj-op.warn:hover { background: #fffaf0; }
.yj-op.danger { color: #c05656; border-color: #f0d4ce; }
.yj-op.danger:hover { background: #fff6f6; }

/* 账户管理 - 双行标签（联系方式 / 账户资金） */
.acc-kv-row { display: flex; align-items: center; gap: 6px; line-height: 1.9; white-space: nowrap; min-width: 0; }
.acc-kv-label { color: #6b7a8a; }
.acc-kv-chip { display: inline-block; max-width: 100%; padding: 0 8px; border-radius: 6px; background: #f3f6f9; color: #8a97a6; font-size: 12px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; }
.acc-kv-chip.on { background: #eef6fd; color: #3f6f97; }

/* 账户管理 - 编辑抽屉用户组表格 */
.acc-groups-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.acc-groups-table th, .acc-groups-table td { border: 1px solid #e9eef3; padding: 10px 12px; text-align: left; color: #4b5b6b; }
.acc-groups-table th { background: #f7fafc; color: #33475b; font-weight: 600; }
.acc-groups-table th.c, .acc-groups-table td.c { width: 46px; text-align: center; padding: 8px 0; }
.acc-groups-table tbody tr:hover td { background: #fbfdff; }

/* 账户编辑抽屉：加宽标签以容纳"超级会员到期时间"等长文案 */
#accountEditDiv .layui-form-label { width: 150px; padding-left: 8px; padding-right: 8px; }
#accountEditDiv .layui-input-block { margin-left: 150px; }

/* 账户编辑抽屉 - 功能卡开通状态 */
.acc-fc { margin: 0 0 16px; border: 1px solid #e9eef3; border-radius: 6px; overflow: hidden; background: #fff; }
.acc-fc-head { background: #f7fafc; border-bottom: 1px solid #e9eef3; padding: 10px 12px; font-weight: 600; color: #33475b; font-size: 13.5px; }
.acc-fc-tools { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e9eef3; color: #8a97a6; font-size: 12.5px; }
.acc-fc-tools .layui-btn { margin: 0; border-radius: 4px; }
.acc-fc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.acc-fc-table th, .acc-fc-table td { border: 1px solid #e9eef3; padding: 10px 12px; text-align: left; color: #4b5b6b; }
.acc-fc-table th { background: #fbfcfe; color: #33475b; font-weight: 600; }
.acc-fc-empty { text-align: center !important; color: #9aa7b4 !important; padding: 26px 0 !important; }

/* 设置类表单长标签适配：标签与输入区同步加宽，保持贴合 */
form[lay-filter="softSettingForm"] .layui-form-label,
form[lay-filter="smsSettingForm"] .layui-form-label,
form[lay-filter="uploadSettingForm"] .layui-form-label { width: 140px; }
form[lay-filter="softSettingForm"] .layui-input-block,
form[lay-filter="smsSettingForm"] .layui-input-block,
form[lay-filter="uploadSettingForm"] .layui-input-block { margin-left: 140px; }
#permissionEditDiv .layui-form-label { width: 130px; }
#permissionEditDiv .layui-input-block { margin-left: 130px; }
#cardFeatureCatalogForm .layui-form-label { width: 120px; }
#cardFeatureCatalogForm .layui-input-block { margin-left: 120px; }

.yj-drawer-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 6px 8px 10px; }
.yj-drawer-actions .layui-btn { min-width: 88px; }
