/* Bootstrap -> Layui visual compatibility layer for user center pages.
   Scope strategy: this file is only linked from user-center related templates,
   so selectors can stay simple without touching unrelated front pages. */
:root {
  --lu-primary: #1E9FFF;
  --lu-normal: #16baaa;
  --lu-warm: #FFB800;
  --lu-danger: #FF5722;
  --lu-border: #e6e6e6;
  --lu-border-strong: #d2d2d2;
  --lu-bg-soft: #f8f9fb;
  --lu-bg-head: #fafafa;
  --lu-text: #393D49;
  --lu-text-secondary: #606266;
  --lu-text-muted: #999;
  --lu-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --lu-focus: 0 0 0 3px rgba(30, 159, 255, 0.12);
}

body {
  color: var(--lu-text);
  background: var(--lu-bg-soft);
  font: 14px/1.6 Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;
}

.layui-layer-dialog .layui-layer-content {
  white-space: pre-line;
  word-break: break-word;
  line-height: 1.75;
}

/* Layer 的状态图标继承了上面的行高后会向下错位，仅在轻提示中居中修正。 */
.layui-layer.layui-layer-msg .layui-layer-content .layui-layer-face {
  top: 50%;
  line-height: 1;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

input,
button,
select,
textarea {
  font-family: inherit;
}

.form-group {
  margin-bottom: 18px;
}

label,
.control-label,
.help-block,
.form-control,
.alert,
.btn,
.table,
.nav-tabs > li > a,
.pagination > li > a,
.pagination > li > span {
  font-family: inherit;
}

label,
.control-label {
  font-weight: 400;
  color: var(--lu-text-secondary);
}

.help-block {
  margin-top: 8px;
  color: var(--lu-text-muted);
}

.form-control,
.editable-input input,
.editable-input select,
.editable-input textarea,
.bootstrap-table .search input,
.fixed-table-pagination .page-list .btn,
.fixed-table-pagination .page-size,
.input-group-addon {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #5f5f5f;
  background: #fff;
  border: 1px solid var(--lu-border-strong);
  border-radius: 2px;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

textarea.form-control,
.editable-input textarea {
  min-height: 92px;
  resize: vertical;
}

.form-control:focus,
.editable-input input:focus,
.editable-input select:focus,
.editable-input textarea:focus,
.bootstrap-table .search input:focus {
  border-color: var(--lu-primary);
  box-shadow: var(--lu-focus);
  outline: 0;
}

.input-group-addon {
  width: auto;
  color: #909399;
  background: var(--lu-bg-head);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  line-height: 36px;
  white-space: nowrap;
  box-shadow: none;
  transition: all .2s;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
  opacity: .94;
  outline: 0;
}

.btn:focus {
  box-shadow: var(--lu-focus);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 30px;
}

.btn-default,
.btn.btn-default {
  color: #666;
  background: #fff;
  border-color: var(--lu-border-strong);
}

.btn-default:hover,
.btn-default:focus {
  color: var(--lu-primary);
  border-color: var(--lu-primary);
  background: #fff;
}

.btn-primary,
.btn-success,
.btn-info {
  color: #fff;
  background: var(--lu-primary);
  border-color: var(--lu-primary);
}

.btn-primary:hover,
.btn-success:hover,
.btn-info:hover,
.btn-primary:focus,
.btn-success:focus,
.btn-info:focus {
  color: #fff;
  background: #3ca8ff;
  border-color: #3ca8ff;
}

.btn-warning {
  color: #fff;
  background: var(--lu-warm);
  border-color: var(--lu-warm);
}

.btn-warning:hover,
.btn-warning:focus {
  color: #fff;
  background: #ffca36;
  border-color: #ffca36;
}

.btn-danger {
  color: #fff;
  background: var(--lu-danger);
  border-color: var(--lu-danger);
}

.btn-danger:hover,
.btn-danger:focus {
  color: #fff;
  background: #ff7355;
  border-color: #ff7355;
}

.nav-tabs {
  display: flex;
  gap: 24px;
  padding: 0 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--lu-border);
  background: transparent;
}

.nav-tabs > li {
  float: none;
  margin-bottom: 0;
}

.nav-tabs > li > a {
  margin: 0;
  padding: 0 4px 12px;
  color: #666;
  border: none;
  border-radius: 0;
  background: transparent;
  transition: color .2s;
}

.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
  color: var(--lu-primary);
  background: transparent;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: var(--lu-primary);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--lu-primary);
}

.panel {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden;
}

.panel-default {
  border-color: #ebeef5;
}

.panel-heading {
  padding: 14px 18px;
  color: #303133;
  font-weight: 600;
  background: var(--lu-bg-head);
  border-bottom: 1px solid #f0f0f0;
}

.panel-body {
  padding: 20px;
}

.alert {
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  box-shadow: none;
}

.alert-success {
  color: #0c6b58;
  background: #f0fdf9;
  border-color: #c4f1e0;
}

.alert-info {
  color: #1863a3;
  background: #ecf8ff;
  border-color: #bfe5ff;
}

.alert-danger {
  color: #9f2d20;
  background: #fff2f0;
  border-color: #ffd6d1;
}

.alert-warning {
  color: #9c6a00;
  background: #fff8e8;
  border-color: #ffe2a8;
}

.close {
  font-size: 18px;
  opacity: .55;
  text-shadow: none;
}

.close:hover,
.close:focus {
  opacity: 1;
}

.table {
  margin-bottom: 0;
  color: var(--lu-text-secondary);
  background: #fff;
}

.table > thead > tr > th {
  padding: 12px;
  color: #909399;
  font-weight: 600;
  background: var(--lu-bg-head);
  border-top: none !important;
  border-bottom: 1px solid #ebeef5;
}

.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 12px;
  vertical-align: middle;
  border-top: 1px solid #f2f6fc;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background: #fcfcfd;
}

.table-hover > tbody > tr:hover {
  background: #f5f9ff;
}

.table-bordered {
  border: 1px solid #ebeef5;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
  border: 1px solid #ebeef5;
}

.table-responsive {
  border-radius: 10px;
}

.pagination {
  margin: 0;
}

.pagination > li > a,
.pagination > li > span {
  min-width: 32px;
  height: 32px;
  margin: 0 3px;
  padding: 0 10px;
  line-height: 30px;
  text-align: center;
  color: #666;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
  color: var(--lu-primary);
  background: #fff;
  border-color: var(--lu-primary);
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  color: #fff;
  background: var(--lu-primary);
  border-color: var(--lu-primary);
}

.bootstrap-table .fixed-table-container {
  border: 1px solid #ebeef5;
  border-radius: 10px;
  overflow: hidden;
}

.bootstrap-table .fixed-table-toolbar,
.bootstrap-table .fixed-table-pagination {
  padding: 14px 16px;
  background: #fff;
}

.bootstrap-table .fixed-table-toolbar .btn,
.bootstrap-table .fixed-table-pagination .btn {
  min-height: 34px;
  padding: 0 12px;
  line-height: 32px;
}

.bootstrap-table .fixed-table-pagination .pagination-detail,
.bootstrap-table .fixed-table-pagination .pagination-info,
.bootstrap-table .fixed-table-pagination .page-list {
  color: #666;
}

.bootstrap-table .table {
  border: none;
}

.bootstrap-table .fixed-table-loading {
  background: rgba(255,255,255,.88);
}

.dropdown-menu {
  border: 1px solid #ebeef5;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(31, 35, 41, 0.08);
  padding: 6px 0;
}

.dropdown-menu > li > a {
  padding: 8px 14px;
  color: var(--lu-text-secondary);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  color: var(--lu-primary);
  background: #f5f9ff;
}

.modal-content {
  border: none;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.modal-header,
.modal-footer {
  border-color: #f0f0f0;
}

.editable-container.editable-popup {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15,23,42,.12);
}

.editable-buttons .btn {
  min-height: 32px;
  line-height: 30px;
}

.wrap.js-check-wrap {
  background: transparent;
}

@media (max-width: 768px) {
  .nav-tabs {
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }

  .nav-tabs > li {
    flex: 0 0 auto;
  }

  .panel-body {
    padding: 16px;
  }

  .table > thead > tr > th,
  .table > tbody > tr > td,
  .table > tfoot > tr > td {
    padding: 10px;
  }
}


/* --- File list specific rollback + polish --- */
.all-box .bootstrap-table .fixed-table-container,
.all-box .bootstrap-table .fixed-table-toolbar,
.all-box .bootstrap-table .fixed-table-pagination,
.all-box .bootstrap-table .table,
.all-box .bootstrap-table .table > thead > tr > th,
.all-box .bootstrap-table .table > tbody > tr > td,
.all-box .bootstrap-table .table-bordered,
.all-box .bootstrap-table .table-bordered > thead > tr > th,
.all-box .bootstrap-table .table-bordered > tbody > tr > td {
  border: none !important;
  box-shadow: none !important;
  background: transparent;
}

.all-box .bootstrap-table {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.all-box .bootstrap-table .fixed-table-toolbar {
  padding: 0;
}

.all-box .bootstrap-table .fixed-table-container {
  border-radius: 0;
}

.all-box .bootstrap-table .fixed-table-header {
  background: #fafcff;
  border-bottom: 1px solid #eef2f7;
}

.all-box .bootstrap-table .fixed-table-body {
  background: #fff;
}

.all-box .bootstrap-table .table > thead > tr > th {
  height: 48px;
  padding: 0 14px !important;
  font-size: 13px;
  font-weight: 600;
  color: #7a8599;
  background: #fafcff;
  vertical-align: middle !important;
}

.all-box .bootstrap-table .table > tbody > tr > td {
  height: 58px;
  padding: 0 14px !important;
  vertical-align: middle !important;
  color: #2f3447;
  font-size: 13px;
  border-top: 1px solid #f3f6fb !important;
}

.all-box .bootstrap-table .table-hover > tbody > tr:hover {
  background: #f8fbff;
}

.all-box .bootstrap-table .table-hover > tbody > tr:hover > td {
  background: #f8fbff;
}

.all-box .bootstrap-table .table > tbody > tr:first-child > td {
  border-top: none !important;
}

.all-box .bootstrap-table .table > tbody > tr > td:first-child,
.all-box .bootstrap-table .table > thead > tr > th:first-child {
  padding-left: 16px !important;
  width: 44px;
}

.all-box .bootstrap-table .table > tbody > tr > td:nth-child(2),
.all-box .bootstrap-table .table > thead > tr > th:nth-child(2) {
  min-width: 360px;
}

.all-box .bootstrap-table .table > tbody > tr > td a {
  color: #1E9FFF;
}

.all-box .bootstrap-table .table > tbody > tr > td a:hover {
  color: #0c8ce9;
  text-decoration: none;
}

.all-box .bootstrap-table .file-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
}

.all-box .bootstrap-table .filename {
  display: inline-block;
  max-width: calc(100% - 64px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  color: #2f3447;
  font-size: 14px;
  line-height: 1.4;
}

.all-box .bootstrap-table .filename.folder {
  color: #1666d3;
  font-weight: 500;
}

.all-box .bootstrap-table .gengduo {
  float: right;
  display: none;
  width: 28px;
  height: 28px;
  margin-top: 0;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  background: #f2f6fc;
}

.all-box .bootstrap-table .gengduo:hover {
  background: #e8f3ff;
}

.all-box .bootstrap-table .gengduo .icon-color {
  color: #7c8aa5;
}

.all-box .bootstrap-table .gengduo:hover .icon-color {
  color: #1E9FFF;
}

.all-box .bootstrap-table .fixed-table-pagination {
  padding: 12px 16px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}

.all-box .bootstrap-table .fixed-table-pagination .pagination-info,
.all-box .bootstrap-table .fixed-table-pagination .pagination-detail,
.all-box .bootstrap-table .fixed-table-pagination .page-list {
  color: #7a8599;
}

.all-box .bootstrap-table .pagination > li > a,
.all-box .bootstrap-table .pagination > li > span {
  min-width: 30px;
  height: 30px;
  line-height: 28px;
}

.all-box .top {
  margin-bottom: 16px;
}

.all-box .daohang {
  height: auto;
  line-height: 20px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.all-box .daohang-path,
.all-box .daohang-all {
  color: #667085;
}

.all-box .daohang-path a,
.all-box .daohang-all span[onclick] {
  color: #1E9FFF;
}

@media (max-width: 890px) {
  .all-box .bootstrap-table {
    border-radius: 10px;
  }

  .all-box .bootstrap-table .table > thead > tr > th,
  .all-box .bootstrap-table .table > tbody > tr > td {
    padding: 0 10px !important;
  }

  .all-box .bootstrap-table .table > tbody > tr > td:nth-child(2),
  .all-box .bootstrap-table .table > thead > tr > th:nth-child(2) {
    min-width: 240px;
  }

  .all-box .bootstrap-table .filename {
    max-width: calc(100% - 52px);
  }
}


/* --- User station compact layout + aside layering fix --- */
html.user-layout-compact,
html.user-layout-compact body,
html.user-layout-compact .app {
  height: auto !important;
  min-height: 100%;
}

html.user-layout-compact .header,
html.user-layout-compact .pub-header {
  height: auto !important;
}

html.user-layout-compact .el-container {
  min-height: 0 !important;
}

html.user-layout-compact .el-container.is-vertical {
  min-height: 100vh;
}

html.user-layout-compact .el-container.is-vertical > .el-container {
  align-items: flex-start;
  min-height: calc(100vh - 70px);
}

html.user-layout-compact .el-main {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 28px;
  overflow: visible !important;
}

html.user-layout-compact .wrap.js-check-wrap {
  padding-bottom: 0 !important;
}

html.user-layout-compact .el-aside {
  position: relative;
  z-index: 20;
  overflow: visible !important;
}

html.user-layout-compact #menubar,
html.user-layout-compact .el-menu,
html.user-layout-compact .el-menu-item,
html.user-layout-compact .el-menu-item > a {
  position: relative;
  z-index: 21;
}
