﻿:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #687287;
  --line: #dfe5ef;
  --brand: #1c6dd0;
  --brand-dark: #1454a3;
  --danger: #b42318;
  --ok: #157347;
  --wrap-max: 1120px;
  --radius: 8px;
  --section-gap: 16px;
  --control-height: 42px;
  --control-bg: #ffffff;
  --control-border: #d7dee9;
  --control-border-hover: #b9c7da;
  --control-ring: rgba(28, 109, 208, 0.18);
  --shadow-soft: 0 6px 20px rgba(23, 32, 51, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  color: var(--muted);
}

.bug-nav-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #f2c9c4;
  border-radius: 999px;
  background: #fff7f6;
  color: #9f1d14;
  font-weight: 700;
}

.bug-nav-link:hover {
  background: #ffeceb;
  text-decoration: none;
}

.bug-nav-link span,
.bug-nav-link em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  line-height: 20px;
}

.bug-nav-link span {
  background: #d92d20;
  color: #fff;
}

.bug-nav-link em {
  background: #ffffff;
  color: #687287;
  border: 1px solid #f2c9c4;
}

.hero {
  padding: 42px 0 28px;
}

.compact-hero {
  padding: 24px 0 16px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
}

.search {
  display: flex;
  gap: 10px;
  max-width: 560px;
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
}

.search button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.doc-search-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 14px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.doc-search-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.doc-search-bar .search {
  flex: 1 1 560px;
  max-width: 720px;
}

.doc-search-row .bug-nav-link {
  flex: 0 0 auto;
  margin-left: auto;
}

input,
select,
textarea {
  width: min(100%, 420px);
  padding: 10px 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  background: var(--control-bg);
  color: var(--text);
  font: inherit;
  min-height: var(--control-height);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--control-border-hover);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--control-ring);
}

input::placeholder,
textarea::placeholder {
  color: #8a97aa;
}

input[disabled],
select[disabled],
textarea[disabled] {
  background: #f2f5fa;
  color: #97a4b8;
  cursor: not-allowed;
}

textarea {
  resize: vertical;
  width: min(100%, 760px);
}

.form input,
.form select,
.form textarea,
.search input,
.search select,
.search textarea,
.login-box input,
.login-box select,
.login-box textarea,
.install-box input,
.install-box select,
.install-box textarea {
  width: 100%;
  max-width: 100%;
}

button,
.button {
  display: inline-block;
  min-height: var(--control-height);
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 3px 12px rgba(20, 84, 163, 0.24);
  transition: transform 0.12s ease, background-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover,
.button:hover {
  background: var(--brand-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 5px 16px rgba(20, 84, 163, 0.28);
  text-decoration: none;
}

.danger {
  background: var(--danger);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 5px 16px rgba(180, 35, 24, 0.24);
}

button:active,
.button:active {
  transform: translateY(1px);
}

button:disabled,
.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--section-gap);
  padding-bottom: 40px;
}

.chm-browser {
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
  min-height: calc(100vh - 180px);
  margin-bottom: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(320px, 24%) minmax(0, 1fr);
  min-height: calc(100vh - 122px);
  margin: 14px 0 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: visible;
  align-items: start;
}

.doc-layout .chm-tree {
  position: static;
}

.doc-content {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 22px 28px;
  background: #fff;
  overflow: visible;
}

.doc-back-top {
  position: fixed;
  right: max(20px, calc((100vw - 1440px) / 2 + 20px));
  top: 62%;
  z-index: 20;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #b9c7da;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand);
  font-size: 24px;
  line-height: 40px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(10px);
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.doc-back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.doc-back-top:hover {
  background: #edf5ff;
}

.chm-tree {
  background: #fbfcfe;
  border-right: 1px solid var(--line);
  padding: 14px 12px 18px;
  overflow: visible;
  min-width: 0;
}

.chm-tree-title {
  margin: 0 0 10px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chm-tree-list {
  margin: 0;
  padding-left: 18px;
  list-style: none;
}

.chm-tree > .chm-tree-list {
  padding-left: 0;
}

.chm-tree-node,
.chm-tree-post {
  margin: 1px 0;
}

.chm-tree summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 28px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  user-select: none;
}

.chm-tree .tree-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chm-tree summary:hover,
.chm-tree-post a:hover {
  background: #edf4ff;
  text-decoration: none;
}

.chm-tree-post a.active {
  background: #dcecff;
  color: var(--brand-dark);
  font-weight: 700;
}

.chm-tree summary::marker {
  content: "";
}

.tree-toggle {
  width: 14px;
  flex: 0 0 14px;
  color: #8a6a1f;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.tree-toggle::before {
  content: "+";
}

.chm-tree details[open] > summary .tree-toggle {
  color: #b97800;
}

.chm-tree details[open] > summary .tree-toggle::before {
  content: "-";
}

.tree-folder-icon,
.chm-tree-post a::before {
  display: inline-block;
  width: 16px;
  height: 13px;
  margin-right: 6px;
  vertical-align: -2px;
  background-repeat: no-repeat;
  background-size: 16px 13px;
}

.tree-folder-icon {
  flex: 0 0 16px;
  margin-right: 0;
  background-image:
    linear-gradient(#d7a845, #d7a845),
    linear-gradient(#f4ca64, #e3ad36);
  background-position: 1px 1px, 0 4px;
  background-size: 7px 4px, 16px 9px;
  border: 1px solid #b9821e;
  border-top: 0;
  border-radius: 2px;
}

.chm-tree-post a {
  display: block;
  min-height: 26px;
  padding: 2px 6px 2px 24px;
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chm-tree-post a::before {
  content: "";
  border: 1px solid #8aa4c2;
  border-radius: 1px;
  background:
    linear-gradient(135deg, transparent 0 49%, #cfe0f3 50%) top right / 6px 6px no-repeat,
    linear-gradient(#ffffff, #edf4fb);
  box-shadow: inset 0 -3px 0 rgba(28, 109, 208, 0.08);
}

.chm-start {
  padding: 28px;
}

.chm-start h1,
.chm-start h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.chm-start p {
  margin: 0 0 18px;
  color: var(--muted);
}

.chm-start-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.chm-start-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: #fff;
}

.chm-start-links a:hover {
  border-color: var(--brand);
  text-decoration: none;
}

.result-head {
  margin-bottom: 16px;
}

.result-head h1 {
  margin: 0 0 6px;
  font-size: 26px;
}

.result-head p {
  margin: 0;
  color: var(--muted);
}

.result-grid {
  padding-bottom: 0;
}

.result-list {
  border-top: 1px solid var(--line);
}

.result-row {
  border-bottom: 1px solid var(--line);
  padding: 10px 4px;
}

.result-row a {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.result-row a:hover {
  color: var(--brand);
  text-decoration: none;
}

.result-row:hover {
  background: #f6faff;
}

.result-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.front-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.front-pager > span:first-child {
  flex: 1 1 220px;
  color: var(--muted);
  font-size: 14px;
}

.front-pager a,
.front-pager .current {
  min-width: 34px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  text-align: center;
  line-height: 22px;
}

.front-pager a:hover {
  background: #edf5ff;
  text-decoration: none;
}

.front-pager .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}

.bug-board {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: var(--section-gap);
  align-items: start;
}

.bug-submit-panel {
  position: sticky;
  top: 16px;
}

.bug-list-panel h2,
.bug-submit-panel h2 {
  margin-top: 0;
}

.bug-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.bug-item:first-of-type {
  border-top: 0;
}

.bug-head,
.bug-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.bug-head span,
.bug-foot span {
  color: var(--muted);
  font-size: 14px;
}

.bug-content {
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
  white-space: normal;
  overflow-wrap: anywhere;
}

.bug-admin-note {
  margin: 10px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--brand);
  background: #edf5ff;
}

.bug-admin-note p {
  margin: 6px 0 0;
}

.bug-readers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.bug-readers span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 13px;
}

.bug-admin-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.search-hit {
  background: transparent;
  color: #d92d20;
  font-weight: 700;
}

.post-card,
.panel,
.login-box,
.install-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.post-card h2 {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.35;
}

.post-card p,
.summary,
.meta {
  color: var(--muted);
}

.article {
  max-width: none;
  min-width: 0;
  padding: 0 0 24px;
}

.article h1 {
  margin: 8px 0 14px;
  font-size: 34px;
}

.content {
  margin-top: 24px;
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 0;
  max-width: 100%;
  overflow: visible;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.content img {
  max-width: 100%;
  height: auto;
}

.content iframe.video-iframe,
.content video {
  display: block;
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 260px;
  margin: 18px 0;
  border: 0;
  border-radius: 6px;
  background: #0f172a;
}

.content table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.content td,
.content th {
  border: 1px solid var(--line);
  padding: 6px 8px;
  vertical-align: top;
  white-space: normal;
}

.content pre {
  margin: 14px 0;
  padding: 14px 16px;
  overflow-x: visible;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #243047;
  border-radius: 6px;
  background: #0f172a;
  color: #dbe7ff;
  line-height: 1.65;
}

.content pre code.hljs,
.content pre code.language-zero,
.content pre code.language-html,
.content pre code.language-css,
.content pre code.language-javascript,
.content pre code.language-php,
.content pre code.language-sql,
.content pre code.language-xml {
  color: #dbe7ff;
  background: transparent;
}

.content pre code {
  display: block;
  font: 14px/1.65 Consolas, "Courier New", monospace;
  white-space: pre;
}

.content :not(pre) > code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef2ff;
  color: #4338ca;
  font-family: Consolas, "Courier New", monospace;
}

.content pre code[class*="language-"]::before {
  display: block;
  margin-bottom: 8px;
  color: #8ea3c4;
  font-size: 12px;
  text-transform: uppercase;
  content: attr(class);
}

.front-code-keyword {
  color: #c084fc;
  font-weight: 700;
}

.front-code-bracket {
  color: #fca5a5;
}

.front-code-number {
  color: #fdba74;
}

.empty,
.notice {
  background: #fff8e6;
  border: 1px solid #f2d58a;
  border-radius: var(--radius);
  padding: 14px 16px;
}

.success {
  background: #eaf7ef;
  border-color: #a8d8b8;
  color: var(--ok);
}

.site-footer {
  margin-top: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.login-body,
.install-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-box {
  width: min(420px, 100%);
}

.login-box .notice {
  margin-bottom: 12px;
}

.login-box label {
  margin-bottom: 10px;
}

.login-box button {
  margin-top: 6px;
}

.login-box p {
  margin: 14px 0 0;
}

.install-box {
  width: min(760px, 100%);
}

.form {
  display: grid;
  gap: var(--section-gap);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.admin-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #111827;
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar a {
  color: #dbe7ff;
  padding: 8px 0;
}

.admin-main {
  padding: 28px;
  overflow-x: auto;
}

.admin-console.admin-body {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.admin-console .sidebar {
  padding: 14px 28px;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.admin-console .sidebar a {
  white-space: nowrap;
}

.admin-console .sidebar .brand {
  margin-right: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

td form {
  margin: 0;
}

.admin-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 14px;
}

.admin-pager > span:first-child {
  color: var(--muted);
  margin-right: 4px;
}

.admin-pager .button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--control-border);
  background: var(--panel);
  color: var(--brand);
  box-shadow: none;
}

.admin-pager .button:hover {
  background: #edf5ff;
}

.admin-pager .button.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  cursor: default;
}

.admin-bulk-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-bulk-tools.bottom {
  margin: 12px 0 0;
}

.admin-bulk-tools label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  color: var(--muted);
}

.admin-bulk-tools input[type="checkbox"],
td input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.posts-top-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.posts-title-search {
  display: flex;
  flex: 1 1 420px;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}

.posts-title-search input {
  width: min(100%, 360px);
  min-width: 180px;
}

.posts-title-search button,
.posts-title-search .button {
  flex: 0 0 auto;
}

.posts-manage-panel {
  overflow-x: auto;
}

.posts-manage-panel form {
  margin: 0;
}

.posts-manage-table {
  min-width: 860px;
  table-layout: fixed;
}

.posts-manage-table .check-col {
  width: 58px;
  text-align: center;
  vertical-align: middle;
}

.posts-manage-table .title-col {
  width: 38%;
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posts-manage-table th:nth-child(3),
.posts-manage-table td:nth-child(3) {
  width: 150px;
}

.posts-manage-table th:nth-child(4),
.posts-manage-table td:nth-child(4) {
  width: 92px;
}

.posts-manage-table th:nth-child(5),
.posts-manage-table td:nth-child(5) {
  width: 170px;
}

.posts-manage-table .action-col {
  width: 74px;
  text-align: center;
  white-space: nowrap;
}

.posts-manage-table input[type="checkbox"],
.admin-bulk-tools input[type="checkbox"] {
  display: inline-block;
  inline-size: 16px;
  block-size: 16px;
  padding: 0;
  margin: 0;
  min-height: 0;
  vertical-align: middle;
  box-shadow: none;
}

.posts-manage-panel .admin-pager {
  min-width: 860px;
}

.member-account-panel table td {
  vertical-align: middle;
}

.member-account-panel table td:first-child {
  width: 64px;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}

.member-account-panel input[type="text"],
.member-account-panel input[type="email"],
.member-account-panel input[type="password"],
.member-account-panel input:not([type]) {
  min-height: 38px;
  padding: 8px 10px;
}

.member-account-panel form[style*="display:grid"] {
  max-width: 320px;
  gap: 8px !important;
}

.member-account-panel form[style*="display:flex"] {
  flex-wrap: wrap;
}

.member-account-panel select {
  min-width: 140px;
}

.member-account-panel button {
  min-height: 36px;
  padding: 8px 12px;
}

@media (max-width: 900px) {
  .member-account-panel table,
  .member-account-panel tbody,
  .member-account-panel tr,
  .member-account-panel td,
  .member-account-panel th {
    display: block;
    width: 100%;
  }

  .member-account-panel tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }

  .member-account-panel th {
    display: none;
  }

  .member-account-panel td {
    border: 0;
    padding: 6px 0;
  }

  .member-account-panel table td:first-child {
    text-align: left;
    width: auto;
  }
}

.category-settings-panel table td {
  vertical-align: middle;
}

.category-settings-panel input {
  min-height: 36px;
  padding: 8px 10px;
}

.category-settings-panel td:nth-child(1),
.category-settings-panel td:nth-child(2) {
  min-width: 180px;
}

.category-settings-panel td:nth-child(3) {
  width: 110px;
}

.category-settings-panel td:nth-child(2) input {
  max-width: 180px;
}

.category-settings-panel td:nth-child(3) input {
  max-width: 72px;
}

.category-settings-panel td:nth-child(4) {
  width: 210px;
  white-space: nowrap;
}

.category-settings-panel td:nth-child(4) form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 6px;
}

.category-settings-panel td:nth-child(4) button {
  min-height: 32px;
  padding: 6px 10px;
}

@media (max-width: 980px) {
  .category-settings-panel table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--section-gap);
}

.stats span {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}

.member-center-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--section-gap);
  margin-bottom: 18px;
}

.member-card h2,
.points-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.member-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.member-meta-row span {
  color: var(--muted);
}

.member-meta-row strong {
  text-align: right;
  word-break: break-all;
}

.email-empty {
  color: #9b6b00;
}

.member-card .button {
  margin-top: 14px;
}

.points-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.points-stats div {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.points-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.points-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.15;
}

.checkin-form {
  margin-top: 14px;
}

.member-ann-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.member-ann-head .button {
  min-height: 34px;
  padding: 6px 12px;
}

.notice-rotator {
  position: relative;
}

.notice-slide {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfdff;
}

.notice-slide.active {
  display: block;
}

.notice-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.notice-head h3 {
  margin: 0;
  font-size: 18px;
}

.notice-head span {
  color: var(--muted);
  font-size: 13px;
}

.notice-body {
  margin: 10px 0 12px;
  color: var(--text);
  line-height: 1.65;
}

.notice-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.notice-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8d3e3;
}

.notice-dot.active {
  background: var(--brand);
}

.notice-more-line {
  margin-top: 10px;
  text-align: right;
}

.notice-more-line a {
  font-size: 13px;
}

.announcement-layout {
  display: grid;
  gap: var(--section-gap);
}

.announcement-list-panel .ann-title {
  font-weight: 600;
}

.announcement-list-panel .ann-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.ann-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid var(--line);
}

.ann-tag.tag-ok {
  color: #116a3a;
  background: #e9f7ef;
  border-color: #b9dfc8;
}

.ann-tag.tag-off {
  color: #8d3b1f;
  background: #fff1e9;
  border-color: #f0c7b2;
}

.announcement-form-panel .ann-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fbfdff;
}

.announcement-form-panel .ann-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.announcement-form-panel .ann-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.announcement-form-panel .ann-helper {
  margin-top: 4px;
  background: #f8fbff;
}

.member-points-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--section-gap);
  align-items: start;
}

.member-points-row .panel h2 {
  margin: 0 0 10px;
}

@media (max-width: 760px) {
  .topbar,
  .doc-search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .doc-search-bar {
    padding: 10px 0;
  }

  .doc-search-bar .search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }

  .doc-search-bar .search input {
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 8px 10px;
  }

  .doc-search-bar .search button {
    min-width: 64px;
    min-height: 40px;
    padding: 8px 12px;
  }

  .doc-search-row .bug-nav-link {
    align-self: flex-start;
    margin-left: 0;
  }

  .bug-nav-link {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .posts-top-tools,
  .posts-title-search {
    align-items: stretch;
    flex-direction: column;
  }

  .posts-title-search {
    flex: 1 1 auto;
    width: 100%;
  }

  .posts-title-search input {
    width: 100%;
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .admin-console .sidebar {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .member-center-grid {
    grid-template-columns: 1fr;
  }

  .points-stats {
    grid-template-columns: 1fr;
  }

  .announcement-form-panel .ann-grid {
    grid-template-columns: 1fr;
  }

  .member-points-row {
    grid-template-columns: 1fr;
  }

  .bug-board {
    grid-template-columns: 1fr;
  }

  .bug-submit-panel {
    position: static;
  }

  .chm-browser {
    grid-template-columns: 1fr;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .chm-tree {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .doc-layout .chm-tree {
    position: static;
  }

  .doc-content {
    padding: 18px;
  }
}

