:root {
  --primary: #009688;
  --header: #23958b;
  --logo: #1d6a64;
  --side: #1f222b;
  --page: #f2f2f2;
  --white: #fff;
  --line: #f6f6f6;
  --border: #eee;
  --hover: #f8f8f8;
  --text: #333;
  --muted: #999;
  --shade: rgba(0, 0, 0, .3);
  --img-mask: rgba(0, 0, 0, .45);
  --mask-btn: rgba(255, 255, 255, .9);
  --panel-shadow: 0 2px 4px rgba(0, 0, 0, .12);
  --side-w: 220px;
  --side-fold: 60px;
  --header-h: 50px;
  --title: #000;
  --tag-line: rgba(255, 255, 255, .6);
}

html, body { background: var(--page); }
body { color: var(--text); }
[hidden] { display: none !important; }

.shell .layui-header { left: var(--side-w); height: var(--header-h); background: var(--header); z-index: 1000; transition: left .3s; }
.shell .layui-header .layui-nav { padding: 0; background: none; }
.shell .layui-header .layui-layout-left { left: 0; }
.shell .layui-header .layui-layout-right { right: 0; }
.shell .layui-header .layui-nav-item { height: var(--header-h); line-height: var(--header-h); }
.shell .layui-header .layui-nav-item > a { padding: 0 20px; color: var(--white); }
.shell .layui-header .layui-nav-item > a:hover { color: var(--white); }
.shell .layui-header .layui-nav-item > a > .layui-icon { font-size: 16px; }
.shell .layui-header .layui-layout-right .layui-nav-item > a { padding-right: 36px; }
.shell .layui-header .layui-nav-bar { display: none; }
.shell .layui-header .layui-nav .layui-nav-more { right: 16px; color: var(--white); }
.shell .layui-header .layui-nav-child { top: calc(var(--header-h) + 5px); left: auto; right: 0; min-width: 120px; }
.shell .layui-header .layui-nav-child dd a { color: var(--text); }
.shell .layui-header .layui-nav-child hr { margin: 5px 0; }
.shell-user { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; font-style: normal; }
.shell-user-tag { margin-left: 8px; padding: 0 6px; border: 1px solid var(--tag-line); border-radius: 2px; font-size: 12px; line-height: 18px; display: inline-block; vertical-align: middle; }

.shell .layui-side { top: 0; width: var(--side-w); background: var(--side); z-index: 1002; transition: width .3s, transform .3s; }
.shell .layui-logo { position: absolute; left: 0; top: 0; width: 100%; height: var(--header-h); line-height: var(--header-h); padding: 0 15px; box-sizing: border-box; background: var(--logo); color: var(--white); font-size: 16px; text-align: center; white-space: nowrap; overflow: hidden; box-shadow: none; }
.shell .layui-side-scroll { position: absolute; top: var(--header-h); bottom: 0; left: 0; width: 100%; height: auto; overflow-y: auto; scrollbar-width: none; }
.shell .layui-side-scroll::-webkit-scrollbar { display: none; }
.shell .layui-nav-tree { width: 100%; background: none; }
.shell .layui-side .layui-nav-tree .layui-nav-item > a { position: relative; height: 56px; line-height: 56px; padding: 0 30px 0 45px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell .layui-side .layui-nav-tree .layui-nav-item > a > .layui-icon:first-child { position: absolute; left: 20px; top: 50%; margin-top: -9px; font-size: 16px; line-height: 18px; }
.shell .layui-side .layui-nav-tree .layui-nav-item > a > cite { font-style: normal; }
.shell .layui-side .layui-nav-tree .layui-nav-child dd a { height: 40px; line-height: 40px; padding: 0 30px 0 45px; }

.shell .layui-body { left: var(--side-w); top: var(--header-h); bottom: 0; padding-bottom: 0; transition: left .3s; }
.shell .layui-fluid { padding: 15px; }
.shell-crumb { height: 42px; line-height: 42px; padding: 0 15px; background: var(--white); border-bottom: 1px solid var(--line); }
.shell-crumb .layui-breadcrumb { font-size: 14px; }
.shell-shade { display: none; position: fixed; inset: 0; background: var(--shade); z-index: 1001; }

body.shell-fold .shell .layui-side { width: var(--side-fold); }
body.shell-fold .shell .layui-header, body.shell-fold .shell .layui-body { left: var(--side-fold); }
body.shell-fold .shell .layui-logo { color: transparent; }
body.shell-fold .shell .layui-side .layui-nav-tree .layui-nav-item > a { padding: 0; }
body.shell-fold .shell .layui-side .layui-nav-tree .layui-nav-item > a > cite,
body.shell-fold .shell .layui-side .layui-nav-more,
body.shell-fold .shell .layui-side .layui-nav-child { display: none !important; }

@media (max-width: 991.98px) {
  .shell .layui-side { width: var(--side-w); transform: translateX(-100%); }
  .shell .layui-header, .shell .layui-body { left: 0; }
  body.shell-open .shell .layui-side { transform: none; }
  body.shell-open .shell-shade { display: block; }
  .shell .layui-header .layui-nav-item > a { padding: 0 15px; }
  .shell .layui-header .layui-layout-right .layui-nav-item > a { padding-right: 32px; }
  .shell .layui-header .layui-nav .layui-nav-more { right: 12px; }
}
@media (max-width: 767.98px) {
  .shell .layui-fluid { padding: 10px; }
  .shell-crumb { padding: 0 10px; }
  .shell-user { max-width: 110px; }
  .shell-user-tag { display: none; }
}

.layui-card-header .layui-icon { margin-right: 4px; }
.list-tabs { margin: 0; padding: 0 15px; }
.list-tabs .layui-tab-title { border-bottom-color: var(--line); white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.list-tabs .layui-tab-title::-webkit-scrollbar { display: none; }
.list-tabs .layui-tab-title li { cursor: pointer; }
.tab-count { margin-left: 6px; color: var(--muted); font-size: 12px; }
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 15px 15px 0; }
.list-toolbar .layui-input, .list-toolbar .layui-form-select { width: 200px; }
.list-toolbar .layui-btn + .layui-btn { margin-left: 0; }
.list-toolbar .grow { flex: 1; }
.list-body { padding: 0 15px 5px; }
@media (max-width: 767.98px) {
  .list-toolbar { padding: 10px 10px 0; }
  .list-toolbar .layui-input, .list-toolbar .layui-form-select { width: 100%; }
  .list-toolbar > .layui-inline { flex: 1 1 140px; }
  .list-toolbar > .layui-inline:has(> .layui-btn) { flex: none; }
  .list-toolbar .grow { display: none; }
  .list-tabs { padding: 0 10px; }
  .list-body { padding: 0 10px 5px; }
}

.pre-wrap { white-space: pre-wrap; word-break: break-word; }
.dialog-form { padding: 20px 30px 0 0; }
.dialog-form .layui-form-item:last-of-type { margin-bottom: 20px; }
.dialog-form .layui-form-mid.pre-wrap { float: none; display: block; overflow: hidden; }
@media (max-width: 767.98px) {
  .dialog-form { padding: 15px 15px 0 0; }
  .dialog-form .layui-form-label { width: 64px; padding: 9px 10px; }
  .dialog-form .layui-input-block { margin-left: 84px; }
}

.login-body { background: var(--page); }
.login-main { width: 375px; max-width: 100%; margin: 0 auto; padding: 110px 0 40px; box-sizing: border-box; }
.login-header { padding: 20px; text-align: center; }
.login-header h2 { margin-bottom: 10px; font-size: 30px; font-weight: 300; color: var(--title); }
.login-box { padding: 20px; }
.login-box .layui-form-item { margin-bottom: 15px; }
@media (max-width: 767.98px) {
  .login-main { padding-top: 60px; }
}

.pick, .chips { position: relative; }
.pick-trigger { display: block; width: 100%; padding-right: 30px; text-align: left; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: var(--white); }
.pick-trigger.ph { color: var(--muted); }
.pick.open .pick-trigger, .chips:focus-within { border-color: var(--primary) !important; }
.pick-panel { position: absolute; left: 0; top: calc(100% + 4px); z-index: 899; min-width: 100%; max-height: 300px; overflow-y: auto; padding: 5px 0; box-sizing: border-box; background: var(--white); border: 1px solid var(--border); border-radius: 2px; box-shadow: var(--panel-shadow); }
.pick-panel.up { top: auto; bottom: calc(100% + 4px); }
.pick-panel.fixed { position: fixed; z-index: 29891015; }
.pick-panel dd { padding: 0 10px; line-height: 36px; white-space: nowrap; cursor: pointer; }
.pick-panel dd:hover { background: var(--hover); }
.pick-panel dd.layui-this { background: var(--primary); color: var(--white); }
.pick-panel dd small { margin-left: 8px; color: var(--muted); font-size: 12px; }
.pick-panel dd.layui-this small { color: inherit; }
.pick-panel dd .layui-badge-rim { margin-left: 8px; }
.pick-search { padding: 0 5px 5px; }
.pick-search .layui-input { height: 32px; }
.pick-none { padding: 0 10px; line-height: 36px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 38px; padding: 4px 6px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 2px; background: var(--white); cursor: text; }
.chips > input { flex: 1; min-width: 80px; height: 28px; border: 0; outline: none; background: none; }
.chips > input::placeholder { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px 0 8px; border: 1px solid var(--border); border-radius: 2px; background: var(--hover); font-size: 12px; }
.chip small { color: var(--muted); }
.chip button { display: inline-flex; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.chip button .layui-icon { font-size: 12px; }
.cover-box { position: relative; width: 120px; height: 160px; border: 1px dashed var(--border); border-radius: 2px; overflow: hidden; background: var(--hover); }
.cover-box.r169 { width: 213px; height: 120px; }
.cover-box.r53 { width: 200px; height: 120px; }
.cover-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.cover-empty .layui-icon { font-size: 30px; color: var(--primary); }
.cover-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--img-mask); color: var(--white); font-size: 12px; opacity: 0; transition: opacity .15s; }
.cover-box:hover .cover-mask, .cover-box.busy .cover-mask { opacity: 1; }
.cover-mask button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--mask-btn); color: var(--text); cursor: pointer; }
.crop-wrap { padding: 16px; }
.crop-box { position: relative; overflow: hidden; user-select: none; touch-action: none; }
.crop-box canvas { display: block; }
.crop-frame { position: absolute; top: 0; left: 0; box-shadow: 0 0 0 9999px var(--img-mask); outline: 2px solid var(--white); outline-offset: -2px; cursor: move; }

.muted { color: var(--muted); }
.num-box { display: block; padding: 10px 15px; background: var(--hover); color: var(--muted); border-radius: 2px; transition: background .3s; }
a.num-box:hover { background: var(--page); color: var(--muted); }
.num-box h3 { padding-bottom: 10px; font-size: 12px; }
.num-box p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num-box p cite { font-style: normal; font-size: 30px; font-weight: 300; line-height: 36px; color: var(--primary); }
.num-box p small { margin-left: 6px; font-size: 12px; }
@media (min-width: 768px) {
  .num-5 > li { width: 20%; }
}
.drawer-body { padding: 15px; }
.setting-form .layui-form-label { width: 120px; }
.setting-form .layui-input-block { margin-left: 150px; }
@media (max-width: 767.98px) {
  .num-box p cite { font-size: 24px; }
  .drawer-body { padding: 10px; }
}

.cell-media { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-media img { flex: none; object-fit: cover; border-radius: 2px; background: var(--hover); }
.cell-media .tx { flex: 1; min-width: 0; line-height: 20px; }
.cell-media .tx > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-lines { line-height: 20px; white-space: normal; }
.cell-lines > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-lines > .layui-progress { margin: 7px 0; }
.ep-sort { width: 64px; height: 30px; }
.ep-title { height: 30px; }
.ep-name { display: block; min-width: 200px; word-break: break-all; }
.tag-common { align-items: center; margin-top: 8px; }
.wm-thumb { display: inline-flex; align-items: center; height: 40px; padding: 4px 6px; box-sizing: border-box; background: repeating-conic-gradient(#7a7a7a 0 25%, #b4b4b4 0 50%) 0 0 / 12px 12px; border-radius: 2px; }
.wm-thumb img { display: block; max-height: 32px; max-width: 120px; }
.wm-preview { display: flex; gap: 10px; align-items: flex-start; }
.wm-preview img { display: block; height: 216px; background: var(--hover); }
.ep-none { text-align: center; color: var(--muted); }
.ep-table { overflow-x: auto; }
.ep-table .layui-table { min-width: 760px; }
.btn-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-wrap .layui-btn { margin: 0; }
.media-view { padding: 15px; }
.media-view img { display: block; width: 100%; }
.media-view video, .media-view audio { display: block; width: 100%; }
.media-view video { max-height: 70vh; background: var(--title); }
.facts { margin: 0; }
.facts td:first-child { width: 90px; color: var(--muted); }
.card-sub { margin-left: 8px; color: var(--muted); font-size: 12px; }
.cover-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; padding: 15px 0 5px; }
.cover-wall.r169 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.wall-item { min-width: 0; }
.wall-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden; background: var(--hover); cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; }
.r169 .wall-cover { aspect-ratio: 16 / 9; }
.wall-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall-item.off .wall-cover img { opacity: .4; }
.wall-item.on .wall-cover { outline-color: var(--primary); }
.wall-check { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: 14px; border-radius: 2px; background: var(--mask-btn); color: transparent; }
.wall-item.on .wall-check { background: var(--primary); color: var(--white); }
.wall-cover .layui-badge { position: absolute; right: 6px; top: 6px; }
.wall-title { display: block; margin-top: 6px; line-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wall-none { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); }
.wall-page { text-align: center; }
@media (max-width: 767.98px) {
  .cover-wall { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .cover-wall.r169 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 767.98px) {
  .page-form .layui-form-label { width: 72px; padding: 9px 10px 9px 0; }
  .page-form .layui-input-block { margin-left: 82px; }
}
@media (max-width: 450px) {
  .page-form .layui-form-item .layui-input-inline { margin-left: 82px; }
}
