﻿/* ==========================================================================
   Ukusil 路 绔欑偣瀵艰埅銆侀〉闈㈡鏋朵笌鏉＄洰 / 缂栬緫鍣ㄦ牱寮?   ========================================================================== */

:root {
  --site-header-height: 64px;
  --site-max: 1160px;
}

/* --------------------------------- 椤堕儴瀵艰埅 -------------------------------- */

.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  width: 100%;
  max-width: 1280px;
  min-height: var(--site-header-height);
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  padding: 0 28px;
}

.site-brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  text-decoration: none;
}

.site-brand:hover {
  opacity: 0.68;
}

.site-wordmark {
  display: block;
  width: auto;
  height: 30px;
}

.site-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 26px;
}

.site-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: color 120ms ease;
}

.site-nav-link::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.site-nav-link:hover {
  color: var(--ink);
}

.site-nav-link.is-active {
  color: var(--ink);
  font-weight: 550;
}

.site-nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.site-search {
  display: flex;
  width: 248px;
  height: 36px;
  align-items: center;
  padding: 0 4px 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.site-search:focus-within {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(18, 19, 22, 0.045);
}

.site-search input {
  width: 100%;
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.site-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.site-search button {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.site-search button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.guest-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.header-login {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.header-login:hover {
  color: var(--ink);
}

.header-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: var(--primary-ink);
  font-size: 13px;
  text-decoration: none;
  transition:
    background 130ms ease,
    border-color 130ms ease;
}

.header-register:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  color: var(--primary-ink);
}

/* --------------------------------- 鐢ㄦ埛鑿滃崟 -------------------------------- */

.user-menu {
  position: relative;
}

.user-menu summary {
  list-style: none;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-menu-trigger {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition:
    background 120ms ease,
    border-color 120ms ease;
}

.user-menu-trigger:hover,
.user-menu[open] .user-menu-trigger {
  border-color: var(--line);
  background: var(--bg-alt);
}

.user-menu-name {
  max-width: 9em;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 140ms ease;
}

.user-menu[open] .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-panel {
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  right: 0;
  width: 218px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow:
    0 18px 46px rgba(18, 19, 22, 0.12),
    0 3px 8px rgba(18, 19, 22, 0.04);
  animation: menu-arrive 140ms ease both;
}

@keyframes menu-arrive {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 11px 12px;
  border-bottom: 1px solid var(--line);
}

.user-menu-identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-identity span {
  color: var(--muted);
  font-size: 11px;
}

.user-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 0;
}

.user-menu-links a,
.user-menu-logout button {
  display: block;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.user-menu-links a:hover,
.user-menu-logout button:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.user-menu-logout {
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.user-menu-logout button {
  color: var(--danger);
}

/* ------------------------------ 绉诲姩绔鑸紑鍏?----------------------------- */

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  transition: transform 150ms ease, opacity 150ms ease;
}

body.nav-open .nav-toggle span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

body.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  z-index: 50;
  inset: var(--site-header-height) 0 0;
  background: rgba(18, 19, 22, 0.32);
}

.nav-scrim[hidden],
.mobile-nav[hidden] {
  display: none;
}

.mobile-nav {
  position: fixed;
  z-index: 55;
  top: var(--site-header-height);
  right: 0;
  bottom: 0;
  display: none;
  width: min(360px, 90vw);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -18px 12px 48px rgba(18, 19, 22, 0.12);
  animation: mobile-nav-arrive 180ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes mobile-nav-arrive {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.mobile-nav-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.mobile-nav-close:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
}

.mobile-nav-links a {
  padding: 12px 10px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 16px;
  text-decoration: none;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.is-active {
  background: var(--bg-alt);
  color: var(--ink);
}

.mobile-nav-links a.is-active {
  font-weight: 600;
}

.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 22px 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-alt);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.mobile-search button {
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: var(--primary-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.mobile-account {
  padding: 18px 22px 28px;
  border-top: 1px solid var(--line);
}

.mobile-account-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-account-head div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mobile-account-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-account-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.mobile-account-links {
  display: flex;
  flex-direction: column;
}

.mobile-account-links a,
.mobile-account-links button {
  display: block;
  width: 100%;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-account-links a:hover,
.mobile-account-links button:hover {
  color: var(--ink);
}

.mobile-account-links form {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.mobile-account-links form button {
  color: var(--danger);
}

.mobile-guest-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-guest-actions .btn {
  padding: 9px 12px;
  font-size: 13px;
}

/* --------------------------------- 鎻愮ず鏉?--------------------------------- */

.site-flash {
  position: fixed;
  z-index: 80;
  top: calc(var(--site-header-height) + 12px);
  left: 50%;
  width: max-content;
  max-width: min(620px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 10px 10px 15px;
  border-color: var(--line);
  border-left: 3px solid var(--ok);
  border-radius: 9px;
  background: var(--surface);
  box-shadow:
    0 14px 40px rgba(18, 19, 22, 0.11),
    0 2px 6px rgba(18, 19, 22, 0.04);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  transform: translateX(-50%);
  animation: flash-arrive 180ms ease both;
}

.site-flash.notice-error {
  border-left-color: var(--danger);
  background: var(--surface);
  color: var(--ink);
}

@keyframes flash-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, -5px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.site-flash.is-leaving {
  opacity: 0;
  transform: translate(-50%, -5px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-flash .notice-close {
  flex: 0 0 auto;
}

body.nav-open {
  overflow: hidden;
}

/* --------------------------------- 涓诲唴瀹瑰尯 -------------------------------- */

.site-main {
  width: 100%;
  max-width: var(--site-max);
  flex: 1;
  margin: 0 auto;
  padding: 34px 28px 84px;
}

/* ---------------------------------- 椤佃剼 ---------------------------------- */

.footer-inner {
  max-width: var(--site-max);
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 28px 36px;
}

.footer-brand {
  align-items: center;
  gap: 13px;
}

.footer-wordmark {
  display: block;
  width: auto;
  height: 23px;
}

.footer-brand p {
  margin: 0;
  max-width: 17em;
  line-height: 1.5;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  margin: 0;
}

/* --------------------------------- 鍏充簬椤甸潰 -------------------------------- */

.about-page {
  width: 100%;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.7fr);
  gap: 54px;
  align-items: center;
  padding: 30px 0 48px;
  border-bottom: 1px solid var(--line);
}

.about-hero h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.about-lede {
  max-width: 38em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.07rem;
  line-height: 1.95;
}

.about-emblem {
  justify-self: end;
  width: min(100%, 320px);
  opacity: 0.9;
}

.about-emblem img {
  display: block;
  width: 100%;
  height: auto;
}

.about-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 52px;
  padding-top: 42px;
}

.about-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.about-section {
  margin-bottom: 30px;
}

.about-section h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about-section p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.9;
}

.about-facts {
  position: sticky;
  top: calc(var(--site-header-height) + 26px);
  align-self: start;
  padding: 8px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-alt);
}

.about-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.about-facts strong {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.about-fact-label {
  color: var(--muted);
}

.about-facts .btn {
  margin-top: 12px;
}

/* --------------------------------- 鏉＄洰椤甸潰 -------------------------------- */

.entry {
  width: 100%;
}

.entry-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: start;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.entry-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.entry-views {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.entry-title {
  max-width: 850px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.2vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.13;
  overflow-wrap: anywhere;
}

.entry-subtitle {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.entry-meta a {
  color: var(--ink-soft);
  text-decoration: none;
}

.entry-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-tools {
  display: flex;
  min-width: 148px;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-top: 29px;
}

.entry-main-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-main-actions .btn {
  min-width: 62px;
}

.entry-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.entry-secondary-actions a,
.entry-secondary-actions button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.entry-secondary-actions a:hover,
.entry-secondary-actions button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-danger {
  color: var(--danger) !important;
}

.reading-size {
  display: inline-flex;
  height: 29px;
  align-items: center;
  gap: 2px;
  padding: 0 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
}

.reading-size-label {
  padding: 0 4px 0 3px;
  letter-spacing: 0.05em;
}

.reading-size button {
  width: 24px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  line-height: 1;
}

.reading-size button:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.reading-size button:disabled {
  color: var(--line-strong);
  cursor: default;
}

.reading-size output {
  min-width: 18px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.entry-body {
  max-width: 880px;
  font-size: 17px;
  line-height: 1.95;
}

.entry-body::after {
  display: block;
  clear: both;
  content: "";
}

.entry-body > *:first-child {
  margin-top: 0;
}

.wiki-content figure.entry-media {
  float: right;
  width: auto;
  max-width: min(38%, 340px);
  clear: right;
  margin: 0.3em 0 1.5em 1.8em;
}

.wiki-content figure.entry-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-alt);
}

.wiki-content figure.entry-media figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78em;
  line-height: 1.55;
  text-align: left;
}

.entry .wiki-content a {
  text-underline-offset: 3px;
}

.entry-empty {
  max-width: 880px;
}

.entry-siblings {
  max-width: 880px;
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.entry-siblings h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.entry-siblings ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-siblings a {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.entry-siblings a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 880px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.entry-footer-links {
  display: flex;
  gap: 16px;
}

.entry-footer a {
  color: var(--muted);
  text-decoration: none;
}

.entry-footer a:hover {
  color: var(--ink);
}

/* ---------------------------------- 缂栬緫鍣?--------------------------------- */

.editor-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* 条目编辑页与条目页对齐：外框到页头分割线宽度，正文与条目正文同宽。 */
.entry-editor-page {
  max-width: none;
  margin: 0;
}

@media (min-width: 761px) {
  .entry-editor-page .editor {
    padding-left: max(34px, calc((100% - 880px) / 2));
    padding-right: max(34px, calc((100% - 880px) / 2));
  }
}

.editor-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.editor-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.editor-hint {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.editor-title-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-title input {
  padding: 13px 15px;
  border-color: var(--line-strong);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.3;
}

.field-subtitle input {
  padding: 10px 14px;
  border-color: var(--line);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.45;
}

.field-section {
  max-width: 300px;
}

.editor-form {
  gap: 17px;
}

.editor-shell {
  overflow: visible;
  border-radius: 9px;
  border-color: var(--line);
}

.editor-shell:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(18, 19, 22, 0.045);
}

.draft-bar[hidden] {
  display: none;
}

.toolbar {
  top: calc(var(--site-header-height) + 7px);
  border-radius: 8px 8px 0 0;
}

.editor {
  border-radius: 0 0 8px 8px;
}

.toolbar-select[data-font-size] {
  min-width: 66px;
}

.tool-color {
  position: relative;
  display: inline-flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: transparent;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
}

.tool-color:hover {
  border-color: var(--line);
}

.tool-color input {
  position: absolute;
  width: 38px;
  height: 38px;
  opacity: 0;
  cursor: pointer;
}

.tool-color span {
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: conic-gradient(#c0392b, #e6a23c, #3f7a5e, #2f5d9e, #7b5a94, #16181b, #c0392b);
}

.editor {
  min-height: 460px;
  padding: 30px 34px 42px;
  font-size: 17px;
  line-height: 1.9;
}

.editor::after {
  display: block;
  clear: both;
  content: "";
}

.editor figure.entry-media {
  outline: 1px dashed transparent;
  outline-offset: 4px;
}

.editor figure.entry-media:hover {
  outline-color: var(--line-strong);
}

.editor .entry-media img {
  cursor: default;
}

.editor-actions {
  padding-top: 2px;
}

@media (max-width: 760px) {
  .wiki-content figure.entry-media {
    float: none;
    max-width: 100%;
    margin: 1.5em 0;
  }

  .wiki-content figure.entry-media img {
    width: auto;
    max-width: 100%;
  }

  .editor {
    padding: 22px 17px 34px;
  }

  .editor-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .editor-title-fields {
    gap: 9px;
  }

  .field-title input {
    font-size: 1.28rem;
  }

  .field-subtitle input {
    font-size: 1rem;
  }

  .field-section {
    max-width: none;
  }
}

/* -------------------------------- 鎼滅储鏃犵粨鏋?-------------------------------- */

.search-create-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: var(--primary-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 130ms ease,
    border-color 130ms ease;
}

.search-create-cta:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  color: var(--primary-ink);
}

.empty-state-search {
  border-style: solid;
  background: var(--bg-alt);
}

.empty-state-search .empty-eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.empty-state-search p {
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state-search .search-create-cta {
  margin-bottom: 6px;
}

.empty-state-search .empty-search-alt {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 12px;
}

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

/* --------------------------------- 鍝嶅簲寮?--------------------------------- */

@media (max-width: 1120px) {
  .site-header-inner {
    gap: 22px;
    padding: 0 22px;
  }

  .site-nav {
    gap: 20px;
  }

  .site-search {
    width: 205px;
  }

  .about-columns {
    gap: 36px;
  }
}

@media (max-width: 860px) {
  :root {
    --site-header-height: 58px;
  }

  .site-header-inner {
    min-height: var(--site-header-height);
    padding: 0 18px;
  }

  .site-wordmark {
    height: 25px;
  }

  .site-nav,
  .site-search,
  .user-menu,
  .guest-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .site-main {
    padding: 26px 18px 64px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px 32px;
  }

  .footer-meta {
    align-items: flex-start;
    margin-left: 0;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .site-flash {
    top: calc(var(--site-header-height) + 10px);
  }

  .about-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 18px;
  }

  .about-emblem {
    width: min(74%, 260px);
    justify-self: start;
    order: -1;
  }

  .about-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-top: 30px;
  }

  .about-facts {
    position: static;
    margin-top: 14px;
  }

  .entry-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .entry-tools {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 0;
  }

  .entry-secondary-actions {
    margin-left: auto;
    justify-content: flex-start;
  }

  .reading-size {
    order: 4;
  }

  .entry-title {
    font-size: clamp(2.15rem, 9vw, 3rem);
  }

  .entry-body {
    max-width: none;
  }

  .entry-siblings,
  .entry-footer {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .site-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .about-hero h1 {
    font-size: 2.4rem;
  }

  .about-lede {
    font-size: 0.98rem;
  }

  .entry-tools {
    gap: 10px;
  }

  .entry-main-actions {
    flex: 1 1 auto;
  }

  .entry-main-actions .btn {
    min-width: 0;
  }

  .entry-secondary-actions {
    order: 5;
    width: 100%;
    margin-left: 0;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  .reading-size {
    order: 3;
  }

  .site-flash {
    width: calc(100vw - 28px);
  }
}

/* --------------------------------- 娑堟伅鍏ュ彛 -------------------------------- */

.header-messages {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition:
    background 120ms ease,
    color 120ms ease;
}

.header-messages:hover,
.header-messages.is-active {
  background: var(--bg-alt);
  color: var(--ink);
}

.header-messages.is-active {
  font-weight: 550;
}

/* --------------------------------- 鍒嗗尯椤甸潰 -------------------------------- */

.sections-page {
  max-width: 1000px;
}

.section-manage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.section-manage-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.section-manage-item .section-card {
  flex: 1;
}

.section-remove-form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0 4px;
}

.section-remove-form button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.section-remove-form button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-create {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 36px;
  margin-top: 42px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
}

.section-create-copy h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.section-create-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.section-create-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-create-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-color-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.section-color-field input[type='color'] {
  width: 38px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
}

.sections-login-hint {
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.sections-login-hint a {
  color: var(--ink-soft);
}

.field-section-wrap {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.field-section-wrap .field-section {
  max-width: 300px;
}

.field-section-link {
  padding-bottom: 11px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.field-section-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------- 娑堟伅椤甸潰 -------------------------------- */

.messages-page {
  max-width: 920px;
}

.messages-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.messages-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.messages-head .list-sub {
  margin: 8px 0 0;
}

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

.message-item {
  display: block;
  padding: 20px 12px 19px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background 120ms ease;
}

.message-item:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.message-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.message-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.6;
}

.message-item h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.45;
}

.message-item p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.message-delivery {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.messages-empty {
  margin-top: 26px;
}

.message-detail {
  max-width: 840px;
  margin: 0 auto;
}

.message-detail-header {
  padding: 12px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.message-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 11px;
}

.message-detail h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.message-detail-sender {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.message-detail-body {
  max-width: 100%;
}

.message-detail-footer {
  display: flex;
  gap: 8px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ------------------------------- 閫氱煡娴眰 --------------------------------- */

.notice-dock {
  position: fixed;
  z-index: 95;
  top: calc(var(--site-header-height) + 70px);
  right: max(20px, env(safe-area-inset-right));
  display: flex;
  width: min(360px, calc(100vw - 32px));
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notice-toast {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-areas:
    "label arrow"
    "title arrow"
    "copy arrow";
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 15px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 9px;
  background: var(--surface);
  box-shadow:
    0 18px 44px rgba(18, 19, 22, 0.14),
    0 3px 8px rgba(18, 19, 22, 0.04);
  color: var(--ink);
  pointer-events: auto;
  text-decoration: none;
  animation: notice-toast-in 280ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    border-color 140ms ease;
}

.notice-toast:hover {
  border-color: var(--line-strong);
  border-left-color: var(--ink);
  color: var(--ink);
  transform: translateX(-2px);
}

.notice-toast.is-leaving {
  opacity: 0;
  transform: translateX(34px);
}

.notice-toast::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--line-strong);
  content: "";
  transform-origin: left;
  animation: notice-expire 7s linear forwards;
}

.notice-toast-label {
  display: flex;
  grid-area: label;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.notice-toast-title {
  display: block;
  grid-area: title;
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-toast-copy {
  display: -webkit-box;
  grid-area: copy;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-toast-arrow {
  display: flex;
  grid-area: arrow;
  align-items: center;
  padding-left: 12px;
  color: var(--muted);
}

@keyframes notice-toast-in {
  from {
    opacity: 0;
    transform: translateX(calc(100% + 34px));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notice-expire {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* ---------------------------- 閫氱煡缂栬緫鍣ㄤ笌閫夐」 ---------------------------- */

.notice-editor-page .editor-meta {
  align-items: center;
  justify-content: space-between;
}

.notice-editor-page .char-count {
  padding-bottom: 0;
}

.editor-meta-note {
  color: var(--muted);
  font-size: 12px;
}

.notice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.notice-option-group {
  min-width: 0;
  margin: 0;
  padding: 12px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.notice-option-group legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.notice-radio {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.notice-radio:hover {
  background: var(--bg-alt);
}

.notice-radio input {
  margin: 4px 0 0;
  accent-color: var(--ink);
}

.notice-radio > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notice-radio strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.notice-radio small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .header-messages-label {
    display: none;
  }

  .header-messages {
    width: 34px;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 860px) {
  .header-messages {
    margin-left: auto;
  }

  .section-create {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 22px 20px;
  }

  .section-manage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .messages-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .message-item {
    padding-right: 4px;
    padding-left: 4px;
  }

  .notice-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .notice-dock {
    top: calc(var(--site-header-height) + 62px);
    right: 14px;
  }
}

@media (max-width: 600px) {
  .field-section-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .field-section-wrap .field-section {
    width: 100%;
    max-width: none;
  }

  .field-section-link {
    padding-bottom: 0;
  }

  .section-create-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .section-create-actions .btn {
    width: 100%;
  }

  .notice-toast {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice-toast {
    animation: none;
  }

  .notice-toast::after {
    animation: none;
  }
}

/* ------------------------------ 璐﹀彿鍒犻櫎纭 ------------------------------ */

.danger-page {
  max-width: 680px;
  margin: 12px auto 0;
}

.danger-card {
  margin-top: 22px;
  padding: 30px 32px;
  border: 1px solid color-mix(in srgb, var(--danger) 24%, var(--line));
  border-radius: 10px;
  background: var(--surface);
}

.danger-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.danger-lede {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.danger-target {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--danger-soft);
}

.danger-target > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.danger-target strong {
  color: var(--ink);
  font-size: 14px;
}

.danger-target span {
  color: var(--muted);
  font-size: 11px;
}

.danger-target-count {
  flex: 0 0 auto;
  margin-left: auto;
}

.danger-note {
  margin: 18px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.admin-user-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.link-btn.danger {
  color: var(--danger);
}

/* --------------------------------- 娑堟伅鎿嶄綔 -------------------------------- */

.message-row {
  border-bottom: 1px solid var(--line);
}

.message-row .message-item {
  border-bottom: 0;
}

.message-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  padding: 0 12px 13px;
}

.message-row-actions form {
  margin: 0;
}

.message-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.message-action:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.message-action.is-danger:hover {
  color: var(--danger);
}

.message-detail-footer form {
  margin: 0;
}

/* -------------------------------- 鏉＄洰鍥哄畾鎸夐挳 ------------------------------ */

.entry-pin-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.entry-pin-button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-pin-button.is-pinned {
  color: var(--ink);
  font-weight: 550;
}

.entry-pin-button svg {
  flex: 0 0 auto;
}

@media (max-width: 860px) {
  .danger-card {
    padding: 24px 20px;
  }
}

.conflict-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line));
  border-radius: 3px;
  color: var(--danger);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: 1px;
}

/* ------------------------------- 鍙紪杈戝叧浜庨〉 ------------------------------- */

.about-prose h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about-prose h2:not(:first-child) {
  margin-top: 30px;
}

.about-prose h3 {
  margin: 1.4em 0 0.5em;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.about-prose p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.9;
}

.about-prose ul,
.about-prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.9;
}

.about-prose a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.about-prose figure.entry-media {
  margin: 0 0 1.3em 1.4em;
}

.about-admin-edit {
  margin: 20px 0 0;
}

.about-editor-page .editor {
  min-height: 420px;
}

/* ------------------------------ 缂栬緫鍣ㄥ浘鐗囧垹闄?------------------------------ */

.editor figure.entry-media {
  position: relative;
}

.editor-image-delete {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(20, 22, 25, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 9px rgba(18, 19, 22, 0.12);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.72;
  transform: translateY(0);
  transition:
    opacity 120ms ease,
    color 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.editor figure.entry-media:hover .editor-image-delete,
.editor figure.entry-media:focus-within .editor-image-delete,
.editor-image-delete:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.editor-image-delete:hover {
  border-color: rgba(160, 60, 50, 0.38);
  color: var(--danger);
}

@media (hover: none) {
  .editor-image-delete {
    opacity: 1;
    transform: none;
  }
}

.about-prose::after {
  display: block;
  clear: both;
  content: "";
}

.about-prose figure.entry-media {
  float: right;
  max-width: min(38%, 340px);
  clear: right;
}

.about-prose figure.entry-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}

/* ----------------------------- 閫氱敤鎼滅储鑱旀兂闈㈡澘 ----------------------------- */

[data-search-suggest] {
  position: relative;
}

.search-suggest-popover {
  position: absolute;
  z-index: 75;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: min(58vh, 360px);
  padding: 5px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(18, 19, 22, 0.14);
  scrollbar-width: thin;
}

.search-suggest-popover[hidden] {
  display: none;
}

.site-search .search-suggest-popover {
  right: -1px;
  left: auto;
  width: 320px;
}

.search-suggest-option {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.search-suggest-option:hover,
.search-suggest-option.is-active {
  background: var(--bg-alt);
  color: var(--ink);
}

.search-suggest-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest-title mark {
  padding: 0 1px;
  border-radius: 2px;
  background: #fff0b0;
  color: inherit;
}

.search-suggest-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest-empty {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.filter-search-field {
  display: flex;
  flex: 1;
  min-width: 0;
  position: relative;
}

.filter-bar .filter-search-field input {
  width: 100%;
}

.mobile-search.has-search-suggest {
  flex-wrap: wrap;
}

.mobile-search .search-suggest-popover {
  position: static;
  order: 4;
  flex-basis: 100%;
  width: 100%;
  max-height: 260px;
  margin-top: 2px;
}

/* ----------------------------- 涓汉璧勬枡鎵╁睍淇℃伅 ----------------------------- */

.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
}

.profile-facts div {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-alt);
}

.profile-facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.profile-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.profile-extra-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

/* -------------------------------- 涓汉缃《鏉＄洰 ------------------------------- */

.profile-pins-block {
  padding: 0 0 4px;
}

.profile-pin-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.profile-pin-item {
  position: relative;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.profile-pin-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-pin-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.profile-pin-remove {
  position: absolute;
  right: 0;
  bottom: 14px;
}

.profile-pin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.profile-pin-form select {
  min-width: 0;
  flex: 1 1 320px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.profile-pin-empty {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .profile-extra-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-pin-remove {
    position: static;
    margin-top: 5px;
  }
}

/* ------------------------------ 鍒嗗尯鏉＄洰绛涢€?------------------------------- */

.section-filter {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-alt);
}

.section-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  list-style-position: inside;
}

.section-filter-summary::-webkit-details-marker {
  color: var(--muted);
}

.section-filter-summary-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.section-filter[open] .section-filter-summary {
  border-bottom: 1px solid var(--line);
}

.section-filter-form {
  padding: 16px;
}

.section-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.section-filter-range {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.section-filter-range legend {
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.section-filter-dates {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.section-filter-dates label {
  min-width: 0;
  flex: 1;
}

.section-filter-dates input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.section-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.section-filter-actions .hint {
  margin-left: 2px;
}

@media (max-width: 760px) {
  .section-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-filter-summary-note {
    display: none;
  }

  .section-filter-actions .hint {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* ------------------------------ 图片图注编辑 ------------------------------- */

.editor figure.entry-media figcaption {
  min-height: 1.35em;
  margin-top: 7px;
  padding-bottom: 1px;
  border-bottom: 1px dashed transparent;
  cursor: text;
}

.editor figure.entry-media figcaption:hover,
.editor figure.entry-media figcaption:focus {
  border-bottom-color: var(--line-strong);
}

.editor figure.entry-media figcaption:empty::before {
  color: var(--muted);
  content: attr(data-caption-placeholder);
  opacity: 0.72;
  pointer-events: none;
}


/* ------------------------------ 编辑器内链搜索 ------------------------------ */

.editor-link-modal .modal-dialog {
  max-width: 560px;
}

.editor-link-input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.editor-link-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(18, 19, 22, 0.05);
}

.editor-link-results {
  max-height: 320px;
  margin-top: 10px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.editor-link-result {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.editor-link-result:hover,
.editor-link-result.is-active {
  background: var(--bg-alt);
}

.editor-link-result strong {
  font-size: 13px;
  font-weight: 550;
}

.editor-link-result small {
  color: var(--muted);
  font-size: 10.5px;
}

.editor-link-empty {
  margin: 0;
  padding: 14px 10px;
  color: var(--muted);
  font-size: 12px;
}

.editor-link-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}


/* --------------------------------- 热门条目 -------------------------------- */

.popular-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.popular-item {
  display: flex;
  gap: 15px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
}

.popular-rank {
  width: 24px;
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  text-align: right;
}

.popular-body {
  min-width: 0;
  flex: 1;
}

.popular-body .result-main {
  margin: 0;
}

.popular-body .result-subtitle {
  margin: 4px 0 0;
}

.popular-body .result-snippet {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.popular-body .result-meta {
  margin-top: 7px;
}

@media (max-width: 760px) {
  .popular-item {
    gap: 9px;
    padding: 16px 0;
  }

  .popular-rank {
    width: 19px;
    font-size: 1.05rem;
  }
}


/* ------------------------------- 站内确认弹窗 ------------------------------ */

.site-dialog {
  z-index: 130;
}

.site-dialog-dialog {
  width: min(100%, 460px);
  max-width: 460px;
}

.site-dialog-dialog .modal-body {
  padding-top: 16px;
  padding-bottom: 10px;
}

.site-dialog-message {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
  white-space: pre-line;
}

.site-dialog-message[hidden],
.site-dialog-field[hidden] {
  display: none;
}

.site-dialog-field {
  margin-top: 14px;
}

.site-dialog-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.site-dialog-field input:focus {
  border-color: var(--ink);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(18, 19, 22, 0.05);
}

.site-dialog-actions {
  justify-content: flex-end;
  gap: 8px;
}


/* ------------------------------ 编辑器页面目录 ------------------------------ */

.editor-toc-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-alt);
}

.editor-toc-control > div {
  min-width: 0;
  flex: 1 1 300px;
}

.editor-toc-label {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 550;
}

.editor-toc-control .hint {
  margin: 0;
}

.editor-toc-toggle {
  flex: 0 0 auto;
}

.editor-toc-status {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 11px;
}

/* -------------------------------- 图片详细页 ------------------------------- */

.image-detail-page {
  max-width: 1000px;
  margin: 0 auto;
}

.image-detail-head {
  margin: 18px 0 22px;
}

.image-detail-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.image-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 26px;
  align-items: start;
}

.image-preview {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
}

.image-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.image-facts {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.image-facts dl {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 0 22px;
}

.image-facts dl > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.image-facts dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.image-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.image-detail-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .image-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-detail-head h1 {
    font-size: 2rem;
  }
}
