:root {
  --blue: #1762ff;
  --navy: #0d1c43;
  --text: #26344e;
  --muted: #7b879d;
  --line: #e5ebf4;
  --bg: #f5f8fc;
  --cyan: #11a9c5;
  --radius: 10px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0, #fff 360px);
  color: var(--text);
  font:
    14px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--blue);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.5;
}
button:hover,
.button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.primary:hover {
  background: #1051df;
  color: #fff;
}
.danger {
  color: #db4557;
}
.muted {
  color: var(--muted);
}
input,
select,
textarea {
  padding: 10px 12px;
  border: 1px solid #dae2ef;
  border-radius: 6px;
  background: #fff;
  max-width: 100%;
  color: var(--text);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #a9c5ff;
  outline-offset: 1px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 16px;
}
h1 {
  font-size: 30px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 16px;
}
p {
  margin: 0 0 14px;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 max(28px, calc((100% - 1240px) / 2));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 10;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #0752bd;
  background: linear-gradient(110deg, #0752bd, #0e91be);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  white-space: nowrap;
  font-size: 14px;
}
.account {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
  white-space: nowrap;
}
.account span {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-button {
  border: 0;
  padding: 4px;
  background: transparent;
  color: var(--blue);
}
.menu-toggle {
  display: none;
}
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 60px;
  min-height: calc(100vh - 160px);
}
.welcome {
  text-align: center;
  padding: 46px 0 30px;
}
.welcome h1 {
  font-size: 38px;
  letter-spacing: -1px;
  margin-bottom: 9px;
}
.welcome p {
  font-size: 15px;
  color: #66748e;
  margin-bottom: 24px;
}
.searchbox {
  display: flex;
  max-width: 690px;
  margin: auto;
  gap: 8px;
  padding: 5px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  box-shadow: 0 4px 16px #173a7110;
}
.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
}
.searchbox button {
  min-width: 95px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  margin: 0 0 28px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 8px 28px #193d7610;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.panel-head h2 {
  font-size: 15px;
  margin: 0;
}
.panel-head a {
  font-size: 12px;
  color: var(--blue);
}
.notice-row,
.latest-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f3f8;
  align-items: baseline;
  font-size: 13px;
}
.latest-row:last-child,
.notice-row:last-child {
  border-bottom: 0;
}
.latest-row a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.section {
  margin: 28px 0;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.section-title:before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 3px;
  background: var(--blue);
}
.section-title h2 {
  margin: 0;
  font-size: 22px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(145deg,#fff,#fbfdff);
  box-shadow: 0 5px 18px #193d7609;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.category:hover {
  border-color: #9dbfff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #193d7618;
}
.category-top {
  display: flex;
  gap: 13px;
}
.category-symbol {
  background: #edf4ff;
  border-radius: 9px;
  color: var(--blue);
  width: 40px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.category h3 {
  margin: 0 0 4px;
}
.category p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  min-height: 38px;
}
.category .count {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin: 7px 0 10px;
}
.category-doc {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid #f0f3f8;
  padding-top: 8px;
  margin-top: 7px;
  font-size: 13px;
}
.points {
  border-radius: 5px;
  background: #edf3ff;
  color: #2e61ce;
  padding: 2px 7px;
  font-size: 11px;
  white-space: nowrap;
}
.points.high {
  background: #fff0f2;
  color: #d84f68;
}
.empty {
  color: var(--muted);
  padding: 26px 0;
  text-align: center;
}
.loading {
  text-align: center;
  padding: 80px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
footer a {
  margin-left: 24px;
}
.crumbs {
  margin: 24px 0;
  color: var(--muted);
  font-size: 13px;
}
.workspace {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 28px;
}
.article-card { min-width:0; padding:24px 28px; border:1px solid #e8eef8; border-radius:12px; background:#fff; box-shadow:0 10px 32px #193d760c; }
.section-kicker { color:#1688aa; text-transform:uppercase; letter-spacing:.12em; font-size:10px; font-weight:700; margin-bottom:7px; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; }
.page-heading h1 { margin:0 0 5px; }
.tree-reader { min-height:320px; padding:28px; border:1px solid #e8eef8; border-radius:12px; background:radial-gradient(ellipse at top right,#eaf7ff 0,transparent 50%),#fff; box-shadow:0 10px 32px #193d760c; }
.tree-reader.tree-reading { min-height:0; padding:0; border:0; background:transparent; box-shadow:none; }
.tree-reader h1 { margin:0 0 10px; }
.sidebar {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.sidebar h3 {
  color: var(--blue);
}
.sidebar-title { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 10px; }
.sidebar-title h3 { margin:0; font-size:15px; }
.mini-action { font-size:12px; color:var(--blue); white-space:nowrap; }
.sidebar-all { background:#f2f6ff; font-weight:600; }
.sidebar a small,.tree summary small { color:var(--muted); font-size:10px; margin-left:4px; }
.sidebar-children { border-left:1px solid #dce7f8; margin:4px 0 0 8px; padding-left:6px; }
.sidebar-section { display:block; padding:12px 10px 4px; font-size:11px; color:var(--muted); }
.sidebar-empty { color:var(--muted); font-size:12px; padding:4px 10px; }
.sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
}
.sidebar a.active {
  background: #edf3ff;
  color: var(--blue);
}
.tree details {
  margin-left: 12px;
}
.tree summary {
  padding: 6px 0;
  cursor: pointer;
  word-break: break-word;
}
.tree summary a {
  display: inline;
  padding: 0;
}
.tree-group { margin:2px 0 2px 6px !important; border-left:1px solid #dce7f8; padding-left:8px; }
.tree-group summary { display:flex; align-items:center; justify-content:space-between; font-size:12px; }
.tree-group > summary { list-style:none; gap:5px; }
.tree-group > summary::-webkit-details-marker { display:none; }
.tree-group > summary > a,.tree-group > summary > .tree-unassigned { flex:1; min-width:0; }
.tree-toggle-icon,.tree-toggle-spacer { flex:0 0 20px; width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center; }
.tree-toggle-icon { border:1px solid #cbdcf4; border-radius:4px; background:#f5f9ff; color:var(--blue); font:600 16px/1 Consolas,monospace; }
.tree-toggle-icon::before { content:"+"; }
.tree-group[open] > summary > .tree-toggle-icon::before { content:"−"; }
.tree-group > summary:hover > .tree-toggle-icon { background:#eaf2ff; border-color:#a8c5ee; }
.tree-article-row { display:flex; align-items:center; gap:3px; }
.tree-article { display:block !important; margin-left:7px; padding:5px 8px !important; border-radius:5px; font-size:11px !important; line-height:1.45; }
.tree-article-row .tree-article { flex:1; min-width:0; }
.tree-delete,.delete-front { padding:3px 6px; color:#bd5060; font-size:10px; border:0; background:transparent; }
.doc-actions { display:flex; align-items:center; gap:8px; }
.doc-actions .delete-front { border:1px solid #f0d8dd; border-radius:5px; }
.tree-article.active { background:#eaf2ff; color:var(--blue); }
.restricted-dot { float:right; color:#b7791f; font-size:10px; }
.tree-unassigned { padding:6px 3px; color:var(--muted); font-size:11px; }
.doc-list {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.doc-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.doc-row h3 {
  margin: 0 0 7px;
}
.meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 0;
}
.page-jump { display:flex; align-items:center; gap:6px; font-size:12px; }
.page-jump select { padding:6px 8px; font-size:12px; }
.prose {
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.prose p { margin:0 0 1em; }
.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6 { margin:1.15em 0 .55em; }
.prose > :first-child { margin-top:0; }
.prose img {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
}
.prose table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  margin: 20px 0;
}
.prose td,
.prose th {
  padding: 9px 12px;
  border: 1px solid #d8e0ec;
}
.prose pre {
  background: #f2f5f9;
  border-radius: 7px;
  padding: 18px;
  overflow-x: auto;
  white-space: pre;
}
.prose code {
  font-family: Consolas, monospace;
  font-size: 14px;
}
.prose a {
  color: var(--blue);
  text-decoration: underline;
}
.article-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.article-head h1 {
  font-size: 28px;
}
.permission {
  background: #f6f9ff;
  border: 1px solid #dbe7ff;
  text-align: center;
  padding: 54px 20px;
  border-radius: 10px;
}
.auth-wrap {
  max-width: 460px;
  margin: 60px auto;
}
.auth-wrap h1 {
  text-align: center;
  font-size: 26px;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.auth-tabs button {
  flex: 1;
  border: 0;
  border-radius: 0;
  padding: 12px;
}
.auth-tabs button.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
label.field {
  display: block;
  margin-bottom: 18px;
}
label.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.captcha-row input {
  min-width: 0;
}
.captcha-img {
  width: 134px;
  height: 46px;
  cursor: pointer;
  border-radius: 5px;
}
.error {
  color: #d34455;
  background: #fff3f4;
  padding: 10px;
  border-radius: 6px;
  margin: 15px 0;
  display: none;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.full {
  width: 100%;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 620px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 20px 80px #13234425;
}
dialog::backdrop {
  background: #0b1b3e55;
}
.close {
  position: absolute;
  right: 12px;
  top: 8px;
  padding: 3px 10px;
  font-size: 24px;
  border: 0;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #152443;
  color: white;
  border-radius: 8px;
  padding: 12px 22px;
  display: none;
  z-index: 100;
  max-width: 90%;
  box-shadow: 0 6px 30px #0002;
}
.admin-body {
  background: #f5f8fc;
}
.admin-body .topbar {
  padding: 0 28px;
  height: 66px;
  gap: 20px;
}
.subbrand {
  font-size: 14px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.back-site {
  margin-left: auto;
  color: var(--muted);
}
.admin-body .account {
  margin-left: 10px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: calc(100vh - 66px);
}
.admin-nav {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 25px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-nav a {
  padding: 11px 18px;
  border-radius: 6px;
}
.admin-nav a.active {
  color: var(--blue);
  background: #edf4ff;
}
.admin-main {
  padding: 30px 34px;
  min-width: 0;
  max-width: 1600px;
  width: 100%;
}
.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.admin-title h1 {
  font-size: 24px;
  margin: 0;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th {
  background: #f1f5fb;
  color: #55627c;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}
.table-sort {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.table-sort:hover,
.table-sort:focus-visible {
  color: var(--blue);
}
.table-sort-mark {
  display: inline-block;
  width: 1.1em;
  margin-left: 4px;
  color: var(--blue);
  text-align: center;
}
table.data td,
table.data th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
table.data tr:last-child td {
  border-bottom: 0;
}
table.data td:first-child {
  min-width: 160px;
}
.actions {
  white-space: nowrap;
}
.actions button {
  padding: 3px 7px;
  border: 0;
  font-size: 12px;
  background: transparent;
  color: var(--blue);
}
.actions button.danger {
  color: #d34455;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.summary-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
}
.editor-meta {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
.editor-meta .title-field {
  grid-column: 1/-1;
}
.editor-meta input[type="checkbox"] {
  width: 20px;
  height: 20px;
  padding: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.system-panel { padding:24px; margin-bottom:24px; background:#fff; border:1px solid var(--line); border-radius:8px; }
.system-panel h2 { font-size:18px; }
.setting-switch { display:flex; align-items:center; gap:10px; margin-bottom:14px; cursor:pointer; }
.setting-switch input { width:20px; height:20px; padding:0; accent-color:var(--blue); }
.sms-log-table td { vertical-align:top; }
.sms-log-table .sms-content { min-width:260px; max-width:420px; overflow-wrap:anywhere; }
.editor-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 4px;
}
.editor-tabs {
  padding: 10px 14px;
  background: #f5f8fc;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
#html-source {
  width: 100%;
  min-height: 520px;
  border: 0;
  font-family: Consolas, monospace;
  border-radius: 0;
  font-size: 14px;
}
.editor-panel #front-html-source { display:block; box-sizing:border-box; width:100%; height:580px; min-height:580px; resize:vertical; padding:16px; border:0; border-radius:0; font:14px/1.6 Consolas,monospace; }
.editor-panel #front-html-source[hidden] { display:none; }
.toastui-editor-defaultUI {
  border: 0 !important;
}
.toastui-editor-contents {
  font-size: 15px !important;
}
.checkboxes {
  max-height: 160px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.checkboxes label {
  display: block;
  margin: 4px 0;
}
.checkboxes input {
  width: auto;
}
.badge {
  background: #f1f5fb;
  color: var(--muted);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
}
.skip {
  position: absolute;
  left: -9999px;
}
:focus-visible {
  outline: 2px solid #1762ff;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .topbar {
    gap: 20px;
    padding: 0 24px;
  }
  nav {
    gap: 16px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-main {
    padding: 24px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 64px;
    padding: 0 18px;
    gap: 12px;
  }
  .brand {
    font-size: 21px;
  }
  .menu-toggle {
    display: flex;
    padding: 4px 9px;
    border: 0;
    margin-left: auto;
  }
  .topbar nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    box-shadow: 0 10px 20px #13234410;
  }
  .topbar nav.open {
    display: flex;
  }
  .account {
    margin-left: 0;
    font-size: 12px;
    gap: 8px;
  }
  .account .button {
    padding: 6px 10px;
  }
  .account span {
    max-width: 75px;
  }
  .page {
    padding: 0 18px 35px;
  }
  .welcome {
    padding: 32px 0 24px;
  }
  .welcome h1 {
    font-size: 29px;
  }
  .welcome p {
    font-size: 13px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 26px;
  }
  .panel {
    padding: 18px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .category {
    padding: 17px;
  }
  .category p {
    min-height: 0;
  }
  .category-doc {
    font-size: 13px;
  }
  .category .count {
    margin-bottom: 5px;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 16px;
  }
  .sidebar:not(.tree) {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .sidebar h3 {
    width: 100%;
  }
  .tree {
    max-height: 300px;
    overflow: auto;
  }
  .doc-row {
    padding: 16px 0;
    align-items: flex-start;
  }
  .doc-row h3 {
    font-size: 15px;
  }
  .doc-row .points {
    align-self: center;
  }
  .article-head h1 {
    font-size: 24px;
  }
  .prose {
    font-size: 15px;
  }
  .auth-wrap {
    margin: 30px auto;
  }
  .admin-body .topbar {
    padding: 0 14px;
    gap: 12px;
  }
  .admin-body .brand {
    font-size: 18px;
  }
  .subbrand {
    padding-left: 12px;
    font-size: 12px;
  }
  .back-site {
    display: none;
  }
  .admin-body .account {
    margin-left: auto;
  }
  .admin-layout {
    display: block;
  }
  .admin-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    gap: 5px;
  }
  .admin-nav a {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12px;
  }
  .admin-main {
    padding: 20px 15px;
  }
  .admin-title h1 {
    font-size: 21px;
  }
  .summary-grid {
    gap: 10px;
  }
  .summary-value {
    font-size: 25px;
  }
  .editor-meta {
    grid-template-columns: 1fr;
  }
  .editor-meta .title-field {
    grid-column: auto;
  }
  .editor-tabs {
    flex-wrap: wrap;
  }
  .filters input {
    width: 100%;
  }
  .table-wrap {
    max-width: 100%;
  }
  .prose table {
    max-width: 100%;
  }
  .captcha-img {
    width: 123px;
  }
  .account .text-button {
    font-size: 12px;
  }
}

/* 防止长文档标题撑开手机端网格和弹性布局。 */
.panel,
.category,
.overview-grid > section,
.category-top > div {
  min-width: 0;
}
.latest-row a {
  min-width: 0;
}
.admin-nav {
  align-items: stretch;
}
.sidebar.tree {
  max-height: calc(100vh - 110px);
  overflow: auto;
  position: sticky;
  top: 20px;
  align-self: start;
}
@media (max-width: 760px) {
  .sidebar.tree {
    max-height: 300px;
    position: static;
  }
}

/* 用户资料、前台编辑和树状导航的紧凑展示。 */
.account-link { color:var(--blue); font-size:13px; font-weight:600; }
.profile-card { max-width:800px; margin:45px auto; padding:28px; display:grid; grid-template-columns:78px 1fr; gap:0 20px; }
.profile-mark { width:68px; height:68px; border-radius:20px; background:linear-gradient(145deg,#145cff,#1bb1c4); color:#fff; display:grid; place-items:center; font-size:30px; font-weight:700; box-shadow:0 9px 22px #1762ff33; }
.profile-heading h1 { margin:0 0 4px; }
.profile-heading { min-width:0; overflow-wrap:anywhere; }
.profile-username { grid-column:1/-1; margin-top:22px; padding-top:22px; border-top:1px solid var(--line); }
.profile-username h2 { font-size:18px; }
.profile-username .field { max-width:420px; }
.profile-heading p { color:var(--muted); margin:0; }
.profile-data { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; margin:25px 0 0; }
.profile-data div { padding:13px 0; border-top:1px solid var(--line); }
.profile-data dt { color:var(--muted); font-size:12px; }
.profile-data dd { margin:4px 0 0; font-weight:600; }
.front-editor-wrap { padding:24px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 12px 36px #193d7610; }
.admin-tree-board { display:grid; gap:16px; }
.admin-tree-section { border:1px solid var(--line); background:#fff; border-radius:10px; padding:14px; box-shadow:0 5px 20px #173a7108; }
.admin-tree-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:5px 8px 12px; border-bottom:1px solid var(--line); }
.admin-tree-section-head small { color:var(--muted); font-size:11px; }
.admin-tree-list { list-style:none; padding:4px 0 4px 18px; margin:0; min-height:14px; border-left:1px solid #dce7f8; }
.admin-tree-section > .admin-tree-list { border:0; padding-left:0; }
.admin-tree-item { list-style:none; margin:5px 0; }
.admin-tree-row { display:flex; align-items:center; gap:8px; min-height:42px; padding:6px 9px; border:1px solid #e8edf5; border-radius:7px; background:#fff; }
.admin-tree-row:hover,.admin-tree-item.drag-over > .admin-tree-row { border-color:#82adff; background:#f5f9ff; }
.admin-tree-item.dragging { opacity:.45; }
.admin-tree-name { flex:1; min-width:0; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.admin-tree-name small { color:var(--muted); font-size:11px; }
.drag-handle { color:#8a9ab3; font-size:20px; cursor:grab; user-select:none; }
.admin-tree-row button { padding:4px 8px; font-size:12px; }
.bulk-toolbar { display:flex; align-items:center; gap:12px; margin:-4px 0 12px; padding:9px 12px; border:1px solid var(--line); background:#fff; border-radius:8px; }
.bulk-toolbar label { display:flex; align-items:center; gap:5px; font-size:12px; }
.bulk-toolbar input { width:auto; }
.bulk-toolbar select { padding:7px 10px; }
.permission-editor { max-height:360px; overflow:auto; border:1px solid var(--line); border-radius:7px; }
.permission-head,.permission-row { display:grid; grid-template-columns:minmax(130px,1fr) minmax(250px,1.2fr); align-items:center; gap:8px; padding:8px 10px; border-bottom:1px solid #edf1f7; }
.permission-head { position:sticky; top:0; background:#f4f7fc; color:var(--muted); font-size:11px; z-index:1; }
.permission-row > div { display:flex; gap:12px; flex-wrap:wrap; }
.permission-board { background:#f8faff; }
.permission-check { display:flex; align-items:center; gap:4px; margin:0; font-size:11px; }
.permission-check input { width:auto; }
.page { animation:page-arrive .28s ease-out both; }
@keyframes page-arrive { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
button,.button,.account-link,.sidebar a { transition:color .16s ease,background-color .16s ease,border-color .16s ease,transform .16s ease; }
button:not(:disabled):hover,.button:hover { transform:translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
}
@media (max-width:760px) {
  .article-card { padding:18px 16px; }
  .page-heading { align-items:flex-start; flex-direction:column; }
  .tree-reader { min-height:230px; padding:20px; }
  .front-editor-wrap { padding:15px; }
  .profile-card { margin:25px auto; padding:20px; grid-template-columns:56px minmax(0,1fr); gap:0 13px; }
  .profile-mark { width:52px; height:52px; border-radius:15px; font-size:24px; }
  .profile-heading h1 { font-size:22px; }
  .profile-data { grid-template-columns:1fr; margin-top:18px; }
  .pagination { flex-wrap:wrap; gap:8px; }
  .page-jump { order:2; }
  .admin-tree-row { flex-wrap:wrap; }
  .admin-tree-name { flex-basis:calc(100% - 38px); align-items:flex-start; flex-direction:column; gap:1px; }
  .admin-tree-row button { margin-left:30px; }
  .permission-head,.permission-row { grid-template-columns:1fr; }
  .bulk-toolbar { flex-wrap:wrap; }
}

.user-table td:first-child { min-width:70px; white-space:nowrap; }
.user-table td:nth-child(2) { min-width:160px; }
