:root {
  --notion-ink: #37352f;
  --notion-muted: #787774;
  --notion-faint: #9b9a97;
  --notion-canvas: #f7f6f3;
  --notion-hover: #efedea;
  --notion-active: #e3e1db;
  --notion-border: #e3e2df;
  --notion-blue: #2eaadc;
  --notion-blue-dark: #2389b5;
  --notion-red: #eb5757;
  --notion-green: #0f7b6c;
  --notion-yellow: #b7791f;
}

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--notion-ink);
  background: var(--notion-canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body, button, input, optgroup, select, textarea { letter-spacing: 0; }
a { color: #247ea7; transition: color 150ms ease, background-color 150ms ease; }
a:hover, a:focus { color: #185e7e; text-decoration: none; }
:focus-visible { outline: 2px solid rgba(46, 170, 220, .4); outline-offset: 2px; }

.container { width: min(1180px, calc(100% - 40px)); padding-right: 0; padding-left: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--notion-ink); font-weight: 600; line-height: 1.3; }
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
.text-muted, .help-block { color: var(--notion-muted); }
.text-primary { color: var(--notion-blue); }

/* Navigation */
.navbar.navbar-default {
  min-height: 54px;
  margin: 0 0 32px;
  background: rgba(255, 255, 255, .96);
  border: 0;
  border-bottom: 1px solid var(--notion-border);
  border-radius: 0;
  box-shadow: none;
}
.navbar-fixed-top.navbar-default { margin-bottom: 0; }
.navbar .container { min-height: 54px; }
.navbar-header { margin-right: 0; margin-left: 0; }
.navbar-brand {
  display: inline-flex;
  align-items: center;
  float: left;
  height: 54px;
  padding: 15px 12px 15px 0;
  color: var(--notion-ink) !important;
  font-size: 16px;
  font-weight: 650;
  line-height: 24px;
}
.navbar-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  flex: 0 0 24px;
  background: transparent;
  border-radius: 4px;
  font-size: 12px;
}
.navbar-brand .brand-mark img { display: block; width: 24px; height: 24px; object-fit: contain; }
.navbar-nav > li > a {
  margin: 8px 2px;
  padding: 9px 11px;
  color: #5f5e5b !important;
  border-radius: 5px;
  font-size: 13px;
  line-height: 20px;
  transition: color 150ms ease, background-color 150ms ease;
}
.navbar-nav > li > a:hover, .navbar-nav > li > a:focus,
.navbar-nav > .active > a, .navbar-nav > .active > a:hover,
.navbar-nav > .open > a, .navbar-nav > .open > a:hover {
  color: var(--notion-ink) !important;
  background: var(--notion-hover) !important;
  box-shadow: none !important;
}
.navbar-nav > .active > a { background: var(--notion-active) !important; font-weight: 600; }
.navbar-toggle { margin: 9px 0; padding: 9px; border: 0; border-radius: 5px; }
.navbar-toggle:hover, .navbar-toggle:focus { background: var(--notion-hover) !important; }
.navbar-default .navbar-toggle .icon-bar { background: var(--notion-ink); }
.dropdown-menu {
  padding: 5px;
  background: white;
  border: 1px solid var(--notion-border);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(55, 53, 47, .10);
}
.dropdown-menu > li > a { padding: 7px 9px; color: var(--notion-ink); border-radius: 4px; font-size: 13px; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background: var(--notion-hover); }

/* Surfaces */
.well, .panel, .modal-content {
  color: var(--notion-ink);
  background: white;
  border: 1px solid var(--notion-border);
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(55, 53, 47, .05);
}
.well { min-height: 20px; padding: 24px; margin-bottom: 24px; }
.panel { margin-bottom: 20px; overflow: hidden; }
.panel-heading,
.panel-primary > .panel-heading, .panel-info > .panel-heading,
.panel-success > .panel-heading, .panel-warning > .panel-heading,
.panel-danger > .panel-heading {
  padding: 13px 16px;
  color: var(--notion-ink);
  background: var(--notion-canvas);
  border: 0;
  border-bottom: 1px solid var(--notion-border);
  border-radius: 0;
}
.panel-title { color: var(--notion-ink); font-size: 14px; font-weight: 650; }
.panel-body { padding: 18px; }
.panel-footer { padding: 11px 16px; background: white; border-top: 1px solid var(--notion-border); }
.panel-footer:hover { background: var(--notion-hover); }
.list-group-item { padding: 12px 16px; color: var(--notion-ink); background: white; border-color: var(--notion-border); }
.list-group-item:hover { background: #fbfbfa; }
.list-group-item:first-child, .list-group-item:last-child { border-radius: 0; }
pre, code { color: #5a574f; background: var(--notion-canvas); border-color: var(--notion-border); border-radius: 5px; }

/* Buttons */
.btn {
  min-height: 34px;
  padding: 6px 12px;
  color: var(--notion-ink);
  background: transparent;
  border: 1px solid var(--notion-border);
  border-radius: 5px;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-transform: none;
  transition: color 150ms ease, background-color 150ms ease;
}
.btn:hover, .btn:focus, .btn.focus { color: var(--notion-ink); background: var(--notion-hover); border-color: var(--notion-border); }
.btn:active, .btn.active, .open > .dropdown-toggle.btn { background: var(--notion-active) !important; border-color: var(--notion-border) !important; }
.btn-primary, .btn-info {
  color: white !important;
  background: var(--notion-blue) !important;
  border-color: var(--notion-blue) !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-info:hover, .btn-info:focus { background: var(--notion-blue-dark) !important; border-color: var(--notion-blue) !important; }
.btn-success { color: var(--notion-green); background: #edf6f3; border-color: #cfe5df; }
.btn-warning { color: #8a6116; background: #fbf3db; border-color: #eadcad; }
.btn-danger { color: #c33e3e; background: #fceeee; border-color: #f0cccc; }
.btn-link { color: #247ea7; border-color: transparent; }
.btn-lg { min-height: 42px; padding: 9px 15px; font-size: 14px; border-radius: 5px; }
.btn-sm { min-height: 30px; padding: 4px 9px; }
.btn-xs { min-height: 25px; padding: 2px 7px; font-size: 12px; }
.btn-fab { width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 6px; }
.ripple-container { display: none !important; }

/* Forms */
.form-control {
  height: 38px;
  padding: 8px 10px;
  color: var(--notion-ink);
  background: white;
  border: 1px solid var(--notion-border);
  border-radius: 5px;
  box-shadow: none;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea.form-control { height: auto; min-height: 84px; resize: vertical; }
.form-control::placeholder { color: var(--notion-faint); }
.form-control:focus { border-color: var(--notion-blue); box-shadow: 0 0 0 3px rgba(46, 170, 220, .16); }
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background: var(--notion-canvas); opacity: 1; }
.form-group { margin-bottom: 18px; }
.form-group label.control-label { padding-top: 8px; color: #5f5e5b; font-size: 13px; font-weight: 600; }
.checkbox label, .radio label { color: var(--notion-ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--notion-blue); }
.input-group-btn .btn { height: 38px; margin: 0; }
.input-group .form-control:first-child { border-radius: 5px 0 0 5px; }
.input-group-btn:last-child > .btn { border-radius: 0 5px 5px 0; }
select.form-control { cursor: pointer; }

/* Tables and pagination */
.table-responsive, .fixed-table-container { border: 1px solid var(--notion-border); border-radius: 6px; }
.table { margin-bottom: 0; background: white; }
.table > thead > tr > th {
  padding: 10px 12px;
  color: #6f6e6a;
  background: var(--notion-canvas);
  border-bottom: 1px solid var(--notion-border);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.table > tbody > tr > td { padding: 11px 12px; border-top: 1px solid #eeece9; vertical-align: middle; }
.table > tbody > tr > td:first-child { position: relative; }
.table > tbody > tr > td:first-child::before { content: "⋮⋮"; position: absolute; left: 1px; top: 50%; color: var(--notion-faint); font-size: 10px; opacity: 0; transform: none; transition: opacity 150ms ease; }
.table > tbody > tr:hover > td:first-child::before { opacity: 1; }
.table-striped > tbody > tr:nth-of-type(odd) { background: white; }
.table-hover > tbody > tr:hover { background: var(--notion-hover); }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: var(--notion-border); }
.filelist > tbody > tr > td:first-child { color: var(--notion-faint); }
.filelist .fa { color: var(--notion-muted); }
.fixed-table-toolbar { margin-bottom: 12px; }
.fixed-table-container { clear: both; overflow: hidden; }
.fixed-table-pagination { color: var(--notion-muted); font-size: 13px; }
.pagination { margin: 16px 0 0; }
.pagination > li > a, .pagination > li > span { margin-left: 4px; color: var(--notion-ink); background: transparent; border: 0; border-radius: 5px; }
.pagination > li > a:hover, .pagination > li > a:focus { background: var(--notion-hover); }
.pagination > .active > a, .pagination > .active > a:hover,
.pagination > .disabled > a, .pagination > .disabled > a:hover { color: var(--notion-ink); background: var(--notion-active); }

/* Tabs, alerts and modals */
.nav-tabs { padding: 5px 7px 0; background: white; border-bottom: 1px solid var(--notion-border); }
.nav-tabs > li { margin-bottom: -1px; }
.nav-tabs > li > a { padding: 9px 11px; color: var(--notion-muted) !important; border: 0 !important; border-radius: 5px 5px 0 0; }
.nav-tabs > li > a:hover { background: var(--notion-hover) !important; }
.nav-tabs > li.active { background: transparent; }
.nav-tabs > li.active > a { color: var(--notion-ink) !important; background: var(--notion-canvas) !important; border-bottom: 2px solid var(--notion-ink) !important; }
.alert { padding: 11px 14px; border: 1px solid var(--notion-border); border-radius: 5px; }
.alert-info { color: #216783; background: #edf7fb; border-color: #cce8f3; }
.alert-success { color: #176a5f; background: #edf6f3; border-color: #cfe5df; }
.alert-warning { color: #765616; background: #fbf3db; border-color: #eadcad; }
.alert-danger { color: #a63838; background: #fceeee; border-color: #f0cccc; }
.label { padding: .25em .55em; border-radius: 4px; font-weight: 600; }
.label-success { background: #dcefe9; color: var(--notion-green); }
.label-danger { background: #f9dddd; color: #b63c3c; }
.modal { background: rgba(55, 53, 47, .18); }
.modal-content { overflow: hidden; border: 1px solid var(--notion-border); }
.modal-header, .modal-footer { padding: 14px 18px; background: var(--notion-canvas); border-color: var(--notion-border); }
.modal-body { padding: 20px; }
.modal-title { font-size: 16px; }
.close { color: var(--notion-muted); text-shadow: none; opacity: 1; }

/* Public pages */
.public-body { display: flex; flex-direction: column; }
.public-body > .container { display: flex; flex: 1 0 auto; flex-direction: column; min-height: 0; }
.public-body > .container > .footer { margin-top: auto; }
.public-body > footer { flex: 0 0 auto; margin-top: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.page-heading h1, .page-heading h2 { margin: 0; }
.page-heading__title { font-size: 24px; }
.page-heading__meta { margin: 5px 0 0; color: var(--notion-muted); font-size: 13px; }
.searchbox form { display: flex; align-items: stretch; }
.searchbox .form-control { box-sizing: border-box; flex: 1 1 auto; min-width: 230px; height: 38px; border-radius: 5px 0 0 5px; }
.searchbox .btn { flex: 0 0 auto; height: 38px; margin: 0; border-radius: 0 5px 5px 0; }
.infobox { min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: white !important; }
.infobox:before { content: "\f0ee"; color: #c7c5c1; font-family: FontAwesome; font-size: 62px; line-height: 1; }
.infobox #uploadTitle { margin: 22px 0 18px; color: var(--notion-ink) !important; font-size: 24px; font-weight: 600; }
.infobox #upload_frame { display: flex; flex-direction: column; align-items: center; }
.infobox #uploadFile { height: auto !important; font-size: 14px !important; }
.infobox .checkbox { margin: 8px 0; }
.view { padding: 48px 16px; }
.elseview { display: flex; justify-content: center; height: auto; }
.tubiao { display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; color: #a5a39e; background: var(--notion-canvas); border: 1px solid var(--notion-border); border-radius: 7px; font-size: 54px; }
.elsetext { margin-top: 18px; color: var(--notion-muted); font-size: 15px; }
.image_view { min-height: 240px; }
.image_view img { border-radius: 5px; }
.videoplayer { overflow: hidden; border-radius: 5px; }
.auth-shell { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 170px); padding: 32px 0 64px; }
.auth-card { width: min(420px, 100%); padding: 30px; text-align: center; }
.auth-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 14px; color: white; background: var(--notion-ink); border-radius: 6px; font-size: 18px; }
.auth-card__icon--logo { background: transparent; }
.auth-card__icon--logo img { display: block; width: 42px; height: 42px; object-fit: contain; }
.auth-card h1 { margin: 0 0 8px; font-size: 22px; }
.auth-card__description { margin: 0 0 22px; color: var(--notion-muted); }
.auth-card__actions { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.admin-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 12px; box-sizing: border-box; }
.admin-login-body > .auth-shell { width: min(100%, 1180px); min-height: 0; padding: 0; }
.admin-login-body .auth-card { margin-bottom: 0; }
.footer { margin-top: 40px; padding: 22px 0; color: var(--notion-muted); background: white; border-top: 1px solid var(--notion-border); font-size: 12px; }
.footer p { margin: 0; }
.media-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--notion-canvas); }
.media-body #preview { width: 100%; }
.media-body .aplayer { margin: 0 auto; max-width: 720px; border: 1px solid var(--notion-border); border-radius: 6px; box-shadow: none; }
.media-body .image_view { max-width: 100%; max-height: 100vh; object-fit: contain; }

/* Admin pages */
.admin-body { padding-top: 78px; background: #fbfbfa; }
.admin-body .navbar-fixed-top { background: var(--notion-canvas); }
.admin-body > .container { padding-top: 0 !important; }
.admin-body .admin-content { width: 100%; margin-right: 0; margin-left: 0; padding-right: 0; padding-left: 0; }
.admin-page-header { margin-bottom: 22px; }
.admin-page-header p { margin: 0 0 3px; color: var(--notion-muted); font-size: 12px; }
.admin-page-header h1 { margin: 0; font-size: 25px; }
.admin-body #searchToolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0 0 16px; padding: 16px; background: white; border: 1px solid var(--notion-border); border-radius: 6px; }
.admin-body .admin-table-content .bootstrap-table {
  overflow: visible;
  background: var(--notion-canvas);
  border: 1px solid var(--notion-border);
  border-radius: 6px;
}
.admin-body .admin-table-content .fixed-table-toolbar {
  position: relative;
  margin-bottom: 0;
  background: var(--notion-canvas);
  border-bottom: 1px solid var(--notion-border);
}
.admin-body .admin-table-content .fixed-table-toolbar .bs-bars {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.admin-body .admin-table-content #searchToolbar {
  margin: 0;
  padding: 16px;
  padding-right: 160px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.admin-body .admin-table-content .fixed-table-toolbar .columns {
  position: absolute;
  right: 16px;
  bottom: 16px;
  margin: 0;
}
.admin-body .admin-table-content .fixed-table-container {
  border: 0;
  border-radius: 0 0 6px 6px;
}
.admin-body #searchToolbar .form-group { margin: 0; }
.admin-body #searchToolbar label { display: block; margin-bottom: 5px; color: var(--notion-muted); font-size: 12px; }
.admin-body .bootstrap-table { padding: 0; background: white; }
.admin-body .panel .form-horizontal { max-width: 900px; }
.admin-body font[color="green"] { display: block; margin-top: 5px; color: var(--notion-green); font-size: 12px; }

/* Installer */
.install-body { display: flex; min-height: 100vh; padding: 48px 0; background: var(--notion-canvas); }
.install-shell { width: min(760px, calc(100% - 32px)); margin: auto; }
.install-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.install-brand__mark { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: transparent; border-radius: 6px; }
.install-brand__mark img { display: block; width: 34px; height: 34px; object-fit: contain; }
.install-brand h1 { margin: 0; font-size: 19px; }
.install-brand p { margin: 1px 0 0; color: var(--notion-muted); font-size: 12px; }
.install-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 16px; padding: 0; list-style: none; }
.install-steps li { padding: 9px 6px; color: var(--notion-faint); border-bottom: 2px solid var(--notion-border); text-align: center; font-size: 12px; }
.install-steps li.is-active { color: var(--notion-ink); border-color: var(--notion-ink); font-weight: 650; }
.install-body .panel { margin-bottom: 14px; }
.install-body .panel-heading { padding: 16px 20px; text-align: left; font-size: 16px; font-weight: 650; }
.install-body .panel-body { padding: 24px; }
.install-body .footer { margin: 0; padding: 14px 0 0; background: transparent; border: 0; }

@media (max-width: 767px) {
  .container { width: min(100% - 24px, 1180px); }
  .navbar .container { width: min(100% - 24px, 1180px); max-width: 100%; overflow: visible; }
  .navbar-header { margin-right: 0 !important; margin-left: 0 !important; }
  .navbar-collapse { margin: 0 -12px !important; padding: 4px 12px 10px; background: white; border-top: 1px solid var(--notion-border); box-shadow: none; }
  .navbar-nav { margin: 0; }
  .navbar-nav > li > a { margin: 2px 0; }
  .well { padding: 18px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .searchbox { float: none; margin: 0; }
  .searchbox form { display: flex; align-items: stretch; }
  .searchbox .form-control { min-width: 0; width: 100%; }
  .infobox { min-height: 420px; }
  .admin-body { padding-top: 70px; }
  .admin-page-header { margin-bottom: 16px; }
  .admin-body #searchToolbar { align-items: stretch; flex-direction: column; }
  .admin-body #searchToolbar .form-group, .admin-body #searchToolbar .form-control, .admin-body #searchToolbar .btn-group { width: 100% !important; }
  .admin-body #searchToolbar .btn { margin-bottom: 4px; }
  .admin-body .admin-table-content #searchToolbar { padding-right: 16px; }
  .form-horizontal .control-label { margin-bottom: 5px; text-align: left; }
  .nav-tabs { display: flex; overflow-x: auto; white-space: nowrap; }
  .nav-tabs > li { float: none; }
  .footer { margin-top: 24px; }
  .install-body { padding: 24px 0; }
  .install-steps li { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
