@charset "UTF-8";

/* 文章馆：米白阅读纸面与科研刊物的黑色横带。 */
body.article-page-active {
  --ink: #171b19;
  --muted: #647064;
  --line: #d8dcd2;
  --cyan: #648043;
  background: #f8f7f2;
  color: #171b19;
}

body.article-page-active .ambient { display: none; }
body.article-page-active .main-shell { min-width: 0; }
body.article-page-active main { max-width: 1570px; }
body.article-page-active .sidebar {
  background: #f5f4ed;
  border-right-color: #b9beb2;
  backdrop-filter: none;
  overflow-y: auto;
}
body.article-page-active .sidebar > :is(.brand, .workspace-label, nav, .sidebar-bottom) { flex-shrink: 0; }
body.article-page-active .sidebar-bottom { padding-top: 25px; }
body.article-page-active .brand-mark,
body.article-page-active .brand b { color: #171b19; }
body.article-page-active .brand b { font-weight: 700; }
body.article-page-active .workspace-label,
body.article-page-active .sidebar-settings { border-color: #d8dcd2; color: #616b61; }
body.article-page-active .live-dot { background: #6c9651; box-shadow: none; }
body.article-page-active .sidebar nav { gap: 5px; }
body.article-page-active .sidebar nav a {
  min-height: 48px;
  color: #465044;
  font-size: 14px;
}
body.article-page-active .sidebar nav a:hover { background: #e8ecdf; color: #171b19; }
body.article-page-active .sidebar nav a.active {
  background: #171b19;
  color: #f8f7f2;
  clip-path: none;
  box-shadow: none;
}
body.article-page-active .sidebar nav a.active::before {
  top: 0;
  bottom: 0;
  width: 4px;
  background: #b2f46a;
}
body.article-page-active .sidebar nav a.active .icon { color: #b2f46a; }
body.article-page-active .sidebar-target,
body.article-page-active .storage-indicator,
body.article-page-active .local-caption { color: #616b61; }
body.article-page-active .target-emblem { border-color: #a7b29d; }
body.article-page-active .topbar { border-color: #c5cbbb; }
body.article-page-active .breadcrumb { color: #70776b; }
body.article-page-active .breadcrumb b { color: #171b19; }
body.article-page-active .search-trigger {
  background: #f0f1e9;
  border-color: #d1d8c8;
  color: #64705c;
  min-height: 40px;
}
body.article-page-active .profile-avatar { color: #46553d; background: #dfe8da; border-color: #f8f7f2; }
body.article-page-active .app-footer { color: #6b7665; border-color: #c5cbbb; }
body.article-page-active .app-footer b { color: #648043; }
body.article-page-active .mobile-menu { color: #171b19; min-width: 44px; min-height: 44px; }

.article-space,
.article-form {
  --article-paper: #f8f7f2;
  --article-ink: #171b19;
  --article-muted: #647064;
  --article-line: #cbd0c3;
  --article-soft-line: #e0e3d9;
  --article-sage: #dfe8da;
  --article-signal: #b2f46a;
  color: var(--article-ink);
  min-width: 0;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif);
}
.article-space *,
.article-form * { box-sizing: border-box; }
.article-space ::selection,
.article-form ::selection { background: #d1eabc; color: #171b19; }
.article-space :is(button, input, textarea, select, a, summary):focus-visible,
.article-form :is(button, input, textarea, select, a, summary):focus-visible {
  outline: 2px solid #668c42;
  outline-offset: 3px;
}
.article-space button,
.article-form button { transition: background-color .16s, color .16s, border-color .16s; }
.article-space :is(button, a) { touch-action: manipulation; }
.article-space p { line-height: 1.85; }
.article-space .eyebrow,
.article-form .eyebrow { color: #68745f; font-size: 10px; letter-spacing: 2px; }

.article-space .article-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 8px 0 24px;
}
.article-space .article-page-head h1 {
  margin: 6px 0 8px;
  font: 700 clamp(38px, 4.3vw, 64px)/1.16 var(--serif, Georgia, serif);
  letter-spacing: 2px;
}
.article-space .article-page-head h1 > span { display: inline-block; color: #78945d; font: 300 28px/1 var(--sans); margin-left: 13px; vertical-align: top; padding-top: 8px; }
.article-space .article-page-head p { color: #56624f; font-size: 14px; }
.article-space .article-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid #8fa66e;
  background: var(--article-signal);
  color: #1d2a15;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}
.article-space .article-add:hover { background: #a6e65e; border-color: #5c733e; }
.article-space .article-add .icon { width: 19px; height: 19px; }

.article-space .article-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 160px;
  border: 1px solid var(--article-ink);
  background: var(--article-paper);
  overflow: hidden;
}
.article-space .article-banner-label {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  background: var(--article-ink);
  color: var(--article-paper);
}
.article-space .article-banner-label::before {
  content: "+";
  position: absolute;
  top: 12px;
  right: 18px;
  color: var(--article-signal);
  font: 300 30px/1 var(--sans);
}
.article-space .article-banner-label h2 {
  max-width: 390px;
  font: 500 clamp(24px, 2.6vw, 36px)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: .5px;
}
.article-space .article-banner-label h2 i { font-style: normal; color: #d9e2cd; font-size: .8em; margin-left: 6px; }
.article-space .article-banner-label :is(p, small, span, .eyebrow) {
  max-width: 85%;
  color: #ced8c5;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 1.8px;
}
.article-space .article-banner-art {
  position: relative;
  min-width: 0;
  min-height: 160px;
  overflow: hidden;
  background: #f3f2e9 linear-gradient(145deg, #f3f2e9 52%, #d8dfd3 52%, #e9ece2 78%) 74% 46% / cover no-repeat;
  border-left: 1px solid var(--article-ink);
}
.article-space .article-banner-art::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 9px;
  height: 9px;
  border: 1px solid #6f805e;
  border-radius: 50%;
  background: #b2f46a;
}
.article-space .article-banner-art > img { display: block; width: 100%; height: 160px; object-fit: cover; object-position: 74% 46%; }
.article-space .article-banner-art :is(span, small, p) {
  position: absolute;
  right: 18px;
  bottom: 15px;
  max-width: calc(100% - 60px);
  color: #526244;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-align: right;
}
.article-space .article-banner-art > b { position: absolute; top: 10px; right: 18px; color: #6c825a; font: 300 28px/1 var(--sans); }

.article-space .article-personal-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--article-ink);
  color: #4f5e46;
  font-size: 13px;
}
.article-space .article-personal-strip p { font-size: 13px; line-height: 1.8; }
.article-space .article-personal-strip b { color: var(--article-ink); }
.article-space .article-personal-strip > span { display: inline-flex; align-items: center; gap: 9px; line-height: 1.8; }
.article-space .article-personal-strip > span i { width: 6px; height: 6px; border-radius: 50%; background: #83a865; flex-shrink: 0; }
.article-space .article-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  flex-shrink: 0;
  color: #53624a;
  font-size: 12px;
}
.article-space .article-stats b,
.article-space .article-stats strong { color: var(--article-ink); font: 600 23px/1.1 Georgia, serif; margin-right: 4px; }
.article-space .article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
}
.article-space .article-filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.article-space .article-filter {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid transparent;
  background: transparent;
  color: #57644e;
  font-size: 13px;
  white-space: nowrap;
}
.article-space .article-filter:hover { background: #e9ecdf; color: #171b19; }
.article-space .article-filter.active { background: var(--article-ink); color: #f8f7f2; border-color: var(--article-ink); }
.article-space .article-filter span,
.article-space .article-filter small { margin-left: 6px; font-size: 11px; opacity: .72; }
.article-space .article-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 280px;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--article-line);
  background: #fafbf5;
  padding: 0 12px;
  color: #6b775f;
}
.article-space .article-search .icon,
.article-space .article-search svg { width: 18px; height: 18px; flex-shrink: 0; }
.article-space .article-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--article-ink);
  font-size: 14px;
  outline-offset: 1px;
}
.article-space .article-search input::placeholder { color: #747d6d; }
.article-space .article-search:focus-within { border-color: #6e8658; box-shadow: 0 0 0 1px #6e8658; }

.article-space .article-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
  gap: 0;
  align-items: start;
  border-top: 3px solid var(--article-ink);
  border-bottom: 1px solid var(--article-ink);
}
.article-space .article-directory { min-width: 0; padding: 25px 24px 26px 0; }
.article-space .article-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--article-ink);
}
.article-space .article-directory-head :is(h2, h3) { font: 600 25px/1.35 var(--serif, Georgia, serif); letter-spacing: .5px; }
.article-space .article-directory-head :is(span, small) { color: #67715f; font-size: 11px; }
.article-space .article-directory-note { margin: 29px 0 0; padding: 18px 8px 0; color: #718063; font-size: 12px; line-height: 1.9; }
.article-space .article-directory-note span { display: block; margin-top: 12px; font: 9px/1.6 ui-monospace, monospace; letter-spacing: 1.5px; color: #88947c; }
.article-space .article-list-empty { padding: 25px 9px; font-size: 13px; color: #738066; }
.article-space .article-order-note { margin-bottom: 18px; padding: 11px 14px; background: #eaf0e0; border-left: 3px solid #a9c18c; color: #617752; font-size: 12px; }
.article-space #article-reader-container { min-width: 0; scroll-margin-top: 22px; }
.article-space .article-list { display: flex; flex-direction: column; min-width: 0; }
.article-space .article-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 104px;
  padding: 18px 9px 18px 8px;
  border: 0;
  border-bottom: 1px solid var(--article-line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--article-ink);
  clip-path: none;
  white-space: normal;
  letter-spacing: 0;
}
.article-space .article-row:hover { background: #edf0e5; transform: none; }
.article-space .article-row.selected { background: #e8eedf; }
.article-space .article-row.selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 3px;
  background: #7aa94b;
}
.article-space .row-number { padding-top: 4px; color: #62705b; font: 12px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.article-space .article-row-copy { min-width: 0; }
.article-space .article-row-copy h3 { font: 600 18px/1.5 var(--serif, Georgia, serif); overflow-wrap: anywhere; }
.article-space .article-row-copy p { color: #6c7765; font-size: 12px; line-height: 1.7; margin-top: 5px; overflow-wrap: anywhere; }
.article-space .article-row-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.article-space .article-row-tags span { padding: 1px 5px; border: 1px solid #c9d4bb; font-size: 10px; line-height: 1.6; color: #61734f; }
.article-space .article-row-state { align-self: start; color: #637953; margin-top: 4px; font-size: 16px; }
.article-space .article-row-state .icon { width: 17px; height: 17px; }
.article-space .article-row.selected .article-row-state { color: #3e6130; }

.article-space .article-reader {
  min-width: 0;
  border-left: 1px solid var(--article-line);
  padding: 29px 0 32px 32px;
}
.article-space .article-reader-head { position: relative; padding-bottom: 23px; margin-bottom: 22px; border-bottom: 1px solid var(--article-ink); }
.article-space .article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 13px; color: #66725e; font-size: 12px; line-height: 1.8; }
.article-space .article-meta span:first-child { color: #33462b; }
.article-space .article-reader-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.article-space .article-reader-controls .article-kind-label { margin: 0; }
.article-space .article-reader-controls .article-language-switch { margin: 0; }
.article-space .article-title { min-width: 0; }
.article-space .article-title h2 {
  font: 700 clamp(28px, 3.1vw, 43px)/1.3 var(--serif, Georgia, serif);
  letter-spacing: .5px;
  margin: 0 0 11px;
  overflow-wrap: anywhere;
}
.article-space .article-original-title { color: #70796a; font: 14px/1.7 Georgia, serif; letter-spacing: .8px; overflow-wrap: anywhere; }
.article-space .article-language-switch {
  display: inline-flex;
  max-width: 100%;
  margin-top: 19px;
  border: 1px solid #aeb7a2;
  vertical-align: middle;
}
.article-space .article-language-switch button {
  min-width: 74px;
  min-height: 44px;
  padding: 9px 16px;
  border-right: 1px solid #cbd0c3;
  background: transparent;
  color: #55624b;
  font-size: 13px;
}
.article-space .article-language-switch button:last-child { border-right: 0; }
.article-space .article-language-switch button:hover { background: #e7ecdd; }
.article-space .article-language-switch button[aria-pressed="true"] { background: var(--article-ink); color: var(--article-paper); }
.article-space .article-language-switch button[aria-pressed="true"]::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; background: var(--article-signal); border-radius: 50%; vertical-align: middle; }
.article-space details.article-guide > summary { cursor: pointer; min-height: 44px; line-height: 44px; font-weight: 600; }
.article-space .article-kind-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  margin-bottom: 14px;
  background: #e4ecdc;
  border: 1px solid #c6d6b5;
  color: #446232;
  font-size: 11px;
  line-height: 1.5;
}
.article-space .article-reader-notice { margin: 0 0 24px; padding: 13px 16px; border-left: 3px solid #a9bd93; background: #f0f2e9; color: #5b6b4f; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.article-space .article-reader-notice a { border-bottom: 1px solid #a7b895; color: #3f6030; }
.article-space .article-guide { margin-bottom: 27px; padding: 22px 24px; background: #e5ecdf; border: 1px solid #c5d2ba; }
.article-space .article-guide h3 { font: 600 20px/1.5 var(--serif, Georgia, serif); margin-bottom: 9px; }
.article-space .article-guide :is(p, ul, ol) { color: #3e5134; font-size: 15px; line-height: 1.95; }
.article-space .article-guide :is(ul, ol) { padding-left: 23px; margin: 10px 0 0; }
.article-space .article-reading-section { margin: 26px 0; }
.article-space .article-reading-section > h3 { font: 600 21px/1.55 var(--serif, Georgia, serif); margin: 0 0 13px; padding-left: 13px; border-left: 3px solid #8fae6d; }
.article-space .article-parallel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.article-space .article-parallel:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.article-space .article-parallel > :nth-child(2) { padding-left: 22px; border-left: 1px solid #d7decf; }
.article-space :is(.article-zh, .article-original) { min-width: 0; }
.article-space .article-zh p,
.article-space .article-original p { margin: 0 0 13px; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.article-space .article-original p { color: #5c6953; line-height: 1.85; }
.article-space :is(.article-zh, .article-original) > small { display: block; margin-bottom: 10px; font-size: 10px; color: #6f7a64; letter-spacing: 1.5px; }

.article-space .article-fulltext { margin: 29px 0; border-top: 1px solid var(--article-line); border-bottom: 1px solid var(--article-line); }
.article-space .article-fulltext-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--article-soft-line); }
.article-space .article-fulltext-heading h3 { font: 600 20px/1.5 var(--serif, Georgia, serif); }
.article-space .article-fulltext-heading span { font-size: 11px; color: #718065; text-align: right; }
.article-space .article-fulltext > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 15px 0;
  color: #2d4024;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.article-space .article-fulltext > summary::-webkit-details-marker { display: none; }
.article-space .article-fulltext > summary::after { content: "+"; color: #6a8354; font: 22px/1 var(--sans); }
.article-space .article-fulltext[open] > summary::after { content: "−"; }
.article-space .article-fulltext > summary small { color: #6a765f; font-size: 11px; font-weight: 400; margin-left: auto; }
.article-space .article-fulltext[open] > summary { border-bottom: 1px solid var(--article-soft-line); }
.article-space .article-markdown { padding: 22px 0; color: #2c3527; font-size: 16px; line-height: 1.95; min-width: 0; overflow-wrap: anywhere; }
.article-space .article-parallel-full { gap: 23px; padding: 19px 0; border-bottom: 1px solid #e0e5d7; }
.article-space .article-parallel-full:last-child { border-bottom: 0; }
.article-space .article-parallel-full > .article-markdown { padding-top: 0; padding-bottom: 0; }
.article-space .article-parallel-full > .article-markdown:last-child { color: #637557; }
.article-space .article-parallel-full .article-markdown > :last-child { margin-bottom: 0; }
.article-space .article-markdown h2 { font: 600 26px/1.5 var(--serif, Georgia, serif); margin: 32px 0 16px; color: #171b19; }
.article-space .article-markdown h3 { font: 600 21px/1.6 var(--serif, Georgia, serif); margin: 24px 0 12px; }
.article-space .article-markdown :is(h2, h3):first-child { margin-top: 0; }
.article-space .article-markdown p { margin: 0 0 18px; font-size: 16px; line-height: 2; }
.article-space .article-markdown :is(ul, ol) { padding-left: 25px; margin: 16px 0 23px; }
.article-space .article-markdown li { margin: 7px 0; padding-left: 4px; line-height: 1.95; }
.article-space .article-markdown li::marker { color: #638148; }
.article-space .article-markdown blockquote { margin: 23px 0; padding: 18px 22px; background: #edf0e4; border-left: 3px solid #a3b78c; color: #526247; }
.article-space .article-markdown blockquote p:last-child { margin-bottom: 0; }
.article-space .article-markdown pre { max-width: 100%; overflow-x: auto; padding: 18px; margin: 22px 0; background: #ebeee3; border: 1px solid #d1dac6; font-size: 13px; line-height: 1.75; white-space: pre; }
.article-space .article-markdown code { padding: 2px 5px; background: #e9eddf; color: #456333; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .87em; }
.article-space .article-markdown pre code { padding: 0; background: transparent; font-size: inherit; }
.article-space .article-markdown a { color: #476a30; text-decoration: underline; text-decoration-color: #a5bb8e; text-underline-offset: 4px; }
.article-space .article-markdown a:hover { color: #1e3912; text-decoration-color: #1e3912; }
.article-space .article-markdown img { display: block; max-width: 100%; height: auto; margin: 22px auto; border: 1px solid #d2d9c7; }
.article-space .article-image-link { display: block; border: 1px dashed #b8c5a8; padding: 16px 18px; background: #f0f3e8; margin: 20px 0; color: #5d7350; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.article-space .article-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.article-space .article-terms > h3 { grid-column: 1 / -1; font: 600 20px/1.5 var(--serif, Georgia, serif); margin-bottom: 4px; }
.article-space .article-term { min-width: 0; padding: 17px 18px; border: 1px solid #cbd5c0; background: #f0f3e9; }
.article-space .article-term :is(h4, b, strong) { display: block; color: #344c27; font-size: 14px; font-weight: 600; line-height: 1.6; margin: 0 0 7px; }
.article-space .article-term p { color: #5d6d51; font-size: 13px; line-height: 1.85; }
.article-space .article-term > span { display: block; font-size: 11px; color: #79876d; margin: 0 0 8px; overflow-wrap: anywhere; }
.article-space .article-term small { display: block; color: #738168; font-size: 11px; line-height: 1.75; margin-top: 5px; }
.article-space .article-question { margin: 27px 0; padding: 20px 0; border-top: 1px solid var(--article-ink); border-bottom: 1px solid var(--article-line); }
.article-space .article-question :is(h3, h4) { font: 600 19px/1.5 var(--serif, Georgia, serif); margin: 0 0 9px; }
.article-space .article-question p { color: #526148; font-size: 15px; }
.article-space .article-question > span { display: block; font-size: 12px; color: #738561; margin-bottom: 8px; }
.article-space .article-question > span .icon { width: 15px; height: 15px; margin-right: 5px; }

.article-space .article-note { margin: 30px 0 23px; padding: 22px; background: #f1f3e9; border: 1px solid #aebaa0; }
.article-space .article-note > label,
.article-space .article-note label[for="article-note"] { display: block; margin-bottom: 12px; font: 600 20px/1.5 var(--serif, Georgia, serif); color: var(--article-ink); }
.article-space .article-note label > span { margin-left: 8px; color: #7c896d; font: 12px/1.6 var(--sans); }
.article-space .article-note label .icon { width: 17px; height: 17px; margin-right: 6px; color: #698651; }
.article-space .article-note textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  max-width: 100%;
  border: 1px solid #c5cfb9;
  border-radius: 0;
  background: #fbfcf7;
  color: #2d3f24;
  font-size: 16px;
  line-height: 1.9;
  padding: 14px 16px;
  resize: vertical;
}
.article-space .article-note textarea::placeholder { color: #7c8770; font-size: 14px; }
.article-space .article-note-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 11px; margin-top: 15px; }
.article-space .article-note-actions > span { color: #6a765f; font-size: 12px; }
.article-space .article-note-actions > span:first-child { margin-right: auto; }
.article-space .article-note-actions > div { display: flex; flex-wrap: wrap; gap: 9px; }
.article-space .article-note-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 15px; border: 1px solid #aabb95; color: #4c6639; background: transparent; font-size: 13px; }
.article-space .article-note-actions button:hover { background: #e0e8d4; border-color: #809868; }
.article-space .article-note-actions .article-favorite.active { color: #3f6129; background: #deebcc; border-color: #9eba80; }
.article-space .article-note-actions .article-mark-read { background: var(--article-ink); color: var(--article-paper); border-color: var(--article-ink); }
.article-space .article-note-actions .article-mark-read:hover { background: #33432b; border-color: #33432b; }
.article-space .article-note-actions .article-mark-read.active { background: #d6e7c8; color: #3d5b2b; border-color: #9ab580; }
.article-space .article-note-actions .icon { width: 16px; height: 16px; }
.article-space .article-privacy { margin-top: 13px; color: #69775e; font-size: 11px; line-height: 1.85; }
.article-space .article-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 23px; padding: 19px 0 0; border-top: 1px solid var(--article-line); color: #65725c; font-size: 12px; line-height: 1.7; }
.article-space .article-sources a { display: inline-flex; align-items: center; min-height: 36px; gap: 7px; color: #3d5e2b; text-decoration: underline; text-decoration-color: #b4c5a3; text-underline-offset: 5px; overflow-wrap: anywhere; }
.article-space .article-sources a:hover { color: #182d0e; text-decoration-color: #182d0e; }
.article-space .article-sources > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 21px; }
.article-space .article-sources > p { width: 100%; color: #76846b; font-size: 11px; line-height: 1.8; }
.article-space .article-sources .icon { width: 14px; height: 14px; }
.article-space .article-sources .article-source-label { font: 9px/1.5 ui-monospace, monospace; letter-spacing: 1px; }
.article-space .article-sources small { color: #78836e; font-size: 10px; }
.article-space .article-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; min-height: 260px; padding: 38px 20px; color: #6b7e5c; text-align: center; }
.article-space .article-empty h2,
.article-space .article-empty h3 { color: #3d5430; font: 600 24px/1.5 var(--serif, Georgia, serif); }
.article-space .article-empty p { max-width: 460px; font-size: 14px; color: #6a795f; }
.article-space .article-empty .icon { width: 33px; height: 33px; margin-bottom: 6px; stroke-width: 1.2; }

/* 添加文章表单的样式只在此表单中生效。 */
dialog:has(.article-form) { width: 780px; padding: 28px 30px; border: 1px solid #98aa87; background: #f8f7f2; color: #171b19; }
dialog:has(.article-form)::backdrop { background: #171b195c; backdrop-filter: blur(4px); }
.article-form { background: #f8f7f2; }
dialog:has(.article-form) .modal-heading { border-bottom: 2px solid #171b19; padding-bottom: 20px; margin-bottom: 22px; }
dialog:has(.article-form) .modal-heading h2 { font: 600 28px/1.4 var(--serif, Georgia, serif); color: #171b19; }
dialog:has(.article-form) .modal-heading p { color: #69795c; font-size: 13px; line-height: 1.8; }
dialog:has(.article-form) .modal-heading .eyebrow { color: #68745f; }
dialog:has(.article-form) .modal-heading .icon-button { width: 44px; height: 44px; color: #536647; background: #eef2e5; border: 1px solid #c4d0b9; }
.article-form .article-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.article-form .form-label { color: #54684a; font-size: 13px; line-height: 1.7; margin-bottom: 17px; min-width: 0; }
.article-form .form-label > span { color: #7c8b70; font-size: 11px; }
.article-form .form-label :is(input, select, textarea) { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; margin-top: 7px; padding: 11px 12px; border: 1px solid #becdae; border-radius: 0; background: #fcfdf8; color: #293e20; font-size: 15px; line-height: 1.6; }
.article-form .form-label input::placeholder,
.article-form .form-label textarea::placeholder { color: #8a977e; font-size: 13px; }
.article-form .article-form-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; }
.article-form .article-form-body textarea { min-height: 220px; resize: vertical; font-size: 15px; line-height: 1.9; }
.article-form .article-import-language { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 17px; margin: 4px 0 18px; padding: 13px 15px; background: #e9efdf; border: 1px solid #c4d2b4; color: #4a653b; font-size: 13px; }
.article-form .article-import-language label { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; }
.article-form .article-import-language input { accent-color: #628744; }
.article-form .article-import-note { margin: 7px 0 18px; padding: 13px 15px; border-left: 3px solid #a8ba93; background: #edf1e5; color: #647758; font-size: 12px; line-height: 1.85; }
.article-form .article-import-note a { color: #426b2f; text-decoration: underline; text-underline-offset: 3px; }
.article-form .form-note { color: #6c7e5f; font-size: 12px; }
.article-form .article-privacy { color: #748468; font-size: 11px; line-height: 1.8; }
.article-form .article-privacy .icon { width: 14px; height: 14px; margin-right: 5px; }
.article-form .modal-actions { margin-top: 23px; padding-top: 18px; border-top: 1px solid #ccd6c0; }
.article-form .modal-actions .button { min-height: 44px; padding: 10px 18px; color: #3f5930; font-size: 13px; border: 1px solid #b3c3a0; background: transparent; clip-path: none; }
.article-form .modal-actions .button:hover { background: #e6eddc; transform: none; }
.article-form .modal-actions .button-dark,
.article-form .modal-actions button[type="submit"] { color: #f8f7f2; background: #171b19; border-color: #171b19; }
.article-form .modal-actions .button-dark:hover,
.article-form .modal-actions button[type="submit"]:hover { background: #32472a; border-color: #32472a; }

@media (max-width: 1180px) {
  .article-space .article-workspace { grid-template-columns: 270px minmax(0, 1fr); }
  .article-space .article-directory { padding-right: 20px; }
  .article-space .article-reader { padding-left: 25px; }
  .article-space .article-banner-label { padding: 20px 25px; }
  .article-space .article-row { gap: 8px; }
  .article-space .article-row-copy h3 { font-size: 17px; }
  .article-space .article-personal-strip { align-items: flex-start; }
  .article-space .article-stats { gap: 8px 14px; }
  .article-space .article-parallel { gap: 19px; }
  .article-space .article-parallel > :nth-child(2) { padding-left: 18px; }
}

@media (max-width: 1024px) {
  .article-space .article-workspace { grid-template-columns: 250px minmax(0, 1fr); }
  .article-space .article-directory { padding-right: 17px; }
  .article-space .article-reader { padding-left: 22px; }
  .article-space .article-page-head h1 { font-size: 46px; }
  .article-space .article-title h2 { font-size: 31px; }
  .article-space .article-banner-label h2 { font-size: 30px; }
  .article-space .article-personal-strip { flex-wrap: wrap; gap: 11px; }
  .article-space .article-stats { justify-content: flex-start; }
  .article-space .article-toolbar { gap: 13px; }
  .article-space .article-filter { padding: 9px 11px; }
  .article-space .article-search { width: 230px; }
  .article-space .article-parallel { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .article-space .article-parallel > :nth-child(2) { padding: 13px 0 0; border-left: 0; border-top: 1px dashed #c8d3bb; }
  .article-space .article-terms { grid-template-columns: minmax(0, 1fr); }
  .article-space .article-guide { padding: 18px; }
  .article-space .article-reader-controls { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .article-space .article-workspace { grid-template-columns: minmax(0, 1fr); }
  .article-space .article-directory { padding: 23px 0 25px; }
  .article-space .article-directory-head { margin-bottom: 0; }
  .article-space .article-directory-note { display: none; }
  .article-space .article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-space .article-row { padding: 16px 13px; border-right: 1px solid var(--article-line); min-height: 98px; }
  .article-space .article-row:nth-child(2n) { border-right: 0; }
  .article-space .article-reader { padding: 27px 0 29px; border-left: 0; border-top: 2px solid var(--article-ink); }
  .article-space .article-reader-head { margin-bottom: 20px; }
  .article-space .article-title h2 { font-size: 36px; }
  .article-space .article-parallel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .article-space .article-parallel > :nth-child(2) { padding: 0 0 0 22px; border-top: 0; border-left: 1px solid #d7decf; }
  .article-space .article-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 590px) {
  body.article-page-active main { padding: 21px 17px 30px; }
  body.article-page-active .topbar { margin: 0 17px; }
  body.article-page-active .search-trigger { width: 44px; min-width: 44px; height: 44px; padding: 12px; }
  body.article-page-active .sidebar nav a { min-height: 48px; font-size: 14px; }
  .article-space .article-page-head { flex-wrap: wrap; align-items: flex-start; gap: 17px; padding: 0 0 22px; }
  .article-space .article-page-head h1 { font-size: 43px; margin-top: 7px; letter-spacing: 1px; }
  .article-space .article-page-head p { font-size: 13px; }
  .article-space .article-add { padding: 10px 15px; min-height: 44px; font-size: 13px; }
  .article-space .article-banner { grid-template-columns: 1fr 1fr; min-height: 132px; }
  .article-space .article-banner-label { padding: 20px 14px; gap: 7px; }
  .article-space .article-banner-label h2 { font-size: 23px; letter-spacing: 0; line-height: 1.12; overflow-wrap: normal; }
  .article-space .article-banner-label::before { font-size: 21px; top: 8px; right: 9px; }
  .article-space .article-banner-label :is(p, small, span, .eyebrow) { font-size: 8px; max-width: 100%; letter-spacing: .8px; line-height: 1.75; }
  .article-space .article-banner-art { min-height: 132px; background-position: 80% 48%; }
  .article-space .article-banner-art > img { height: 132px; object-position: 80% 48%; }
  .article-space .article-banner-art::after { width: 7px; height: 7px; left: 12px; bottom: 12px; }
  .article-space .article-banner-art :is(span, small, p) { right: 9px; bottom: 11px; font-size: 8px; letter-spacing: 0; max-width: calc(100% - 32px); }
  .article-space .article-personal-strip { padding: 16px 0; gap: 12px; }
  .article-space .article-personal-strip p { font-size: 12px; }
  .article-space .article-stats { gap: 8px 18px; font-size: 11px; }
  .article-space .article-stats b,
  .article-space .article-stats strong { font-size: 20px; }
  .article-space .article-toolbar { flex-direction: column; align-items: stretch; gap: 12px; padding: 15px 0 19px; }
  .article-space .article-filter-tabs { gap: 3px; }
  .article-space .article-filter { flex: 1; min-height: 44px; padding: 8px 9px; font-size: 12px; }
  .article-space .article-filter span,
  .article-space .article-filter small { font-size: 10px; margin-left: 3px; }
  .article-space .article-search { width: 100%; min-height: 46px; }
  .article-space .article-search input { font-size: 16px; }
  .article-space .article-directory { padding: 21px 0 24px; }
  .article-space .article-directory-head { padding-bottom: 15px; }
  .article-space .article-directory-head :is(h2, h3) { font-size: 23px; }
  .article-space .article-list { grid-template-columns: minmax(0, 1fr); }
  .article-space .article-row { grid-template-columns: 25px minmax(0, 1fr) 20px; gap: 10px; min-height: 86px; padding: 16px 11px; border-right: 0; }
  .article-space .article-row-copy h3 { font-size: 18px; }
  .article-space .article-row-copy p { font-size: 12px; margin-top: 4px; }
  .article-space .article-row-tags { margin-top: 6px; }
  .article-space .article-reader { padding: 25px 0 25px; }
  .article-space .article-reader-head { padding-bottom: 21px; }
  .article-space .article-meta { font-size: 12px; gap: 5px 12px; }
  .article-space .article-title h2 { font-size: 31px; line-height: 1.4; margin-bottom: 9px; }
  .article-space .article-original-title { font-size: 13px; letter-spacing: .3px; }
  .article-space .article-reader-controls { align-items: flex-start; gap: 12px; margin-top: 17px; }
  .article-space .article-reader-controls .article-language-switch { margin-top: 0; }
  .article-space .article-language-switch { display: flex; width: 100%; margin-top: 17px; }
  .article-space .article-language-switch button { flex: 1; min-width: 0; min-height: 45px; padding: 9px 12px; font-size: 13px; }
  .article-space .article-reader-notice { padding: 12px 14px; margin-bottom: 22px; font-size: 12px; }
  .article-space .article-guide { padding: 18px 16px; margin-bottom: 25px; }
  .article-space .article-guide h3 { font-size: 20px; }
  .article-space .article-guide :is(p, ul, ol) { font-size: 15px; }
  .article-space .article-reading-section { margin: 25px 0; }
  .article-space .article-reading-section > h3 { font-size: 20px; padding-left: 11px; }
  .article-space .article-parallel { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .article-space .article-parallel > :nth-child(2) { padding: 13px 0 0; border-left: 0; border-top: 1px dashed #c8d3bb; }
  .article-space .article-zh p,
  .article-space .article-original p { font-size: 16px; line-height: 1.95; }
  .article-space .article-fulltext > summary { min-height: 58px; flex-wrap: wrap; gap: 3px 12px; font-size: 14px; }
  .article-space .article-fulltext > summary small { margin-left: 0; font-size: 10px; }
  .article-space .article-markdown { font-size: 16px; padding: 19px 0; }
  .article-space .article-parallel-full { padding: 18px 0; gap: 12px; }
  .article-space .article-parallel-full > .article-markdown:nth-child(2) { padding-top: 13px; padding-left: 0; border-left: 0; border-top: 1px dashed #d0dcc4; }
  .article-space .article-markdown h2 { font-size: 24px; margin-top: 29px; }
  .article-space .article-markdown h3 { font-size: 20px; }
  .article-space .article-markdown p { font-size: 16px; }
  .article-space .article-markdown blockquote { padding: 16px; }
  .article-space .article-markdown pre { padding: 14px; font-size: 12px; }
  .article-space .article-terms { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .article-space .article-term { padding: 16px; }
  .article-space .article-note { padding: 18px 15px; }
  .article-space .article-note label > span { display: block; margin: 4px 0 0; }
  .article-space .article-note textarea { padding: 13px; min-height: 145px; font-size: 16px; }
  .article-space .article-note textarea::placeholder { font-size: 14px; }
  .article-space .article-note-actions { gap: 10px; }
  .article-space .article-note-actions > div { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .article-space .article-note-actions button { flex: 1; min-height: 45px; padding: 10px 13px; font-size: 12px; }
  .article-space .article-privacy { font-size: 11px; }
  .article-space .article-sources { gap: 8px 18px; font-size: 12px; padding-top: 14px; }
  .article-space .article-sources a { min-height: 44px; }
  .article-space .article-empty { min-height: 225px; padding: 29px 17px; }
  dialog:has(.article-form) { width: calc(100% - 28px); max-width: calc(100vw - 28px); padding: 22px 18px; }
  dialog:has(.article-form) .modal-heading { gap: 12px; padding-bottom: 17px; }
  dialog:has(.article-form) .modal-heading h2 { font-size: 25px; }
  dialog:has(.article-form) .modal-heading p { font-size: 12px; }
  .article-form .article-form-grid { grid-template-columns: minmax(0, 1fr); }
  .article-form .form-label :is(input, select, textarea) { font-size: 16px; }
  .article-form .article-form-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-form .article-form-body textarea { min-height: 230px; font-size: 16px; }
  .article-form .article-import-language { padding: 12px; gap: 8px 13px; }
  .article-form .article-import-language label { min-height: 44px; }
  .article-form .article-import-note { font-size: 12px; }
  .article-form .modal-actions { justify-content: stretch; gap: 10px; }
  .article-form .modal-actions .button { flex: 1; min-height: 46px; font-size: 13px; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-space *,
  .article-form * { transition: none; scroll-behavior: auto; }
}

.article-space .article-markdown > :is(p, ul, ol, blockquote) { max-inline-size: 40em; }
.article-space .article-note label > span, .article-space .article-privacy {
  color: var(--article-muted);
  font-size: 13px;
}
@media (prefers-color-scheme: dark) {
  body.article-page-active {
    --ink: #e2eadc;
    --muted: #b2c1ac;
    --line: #53654e;
    --cyan: #c0dda2;
    background: #18231e;
    color: var(--ink);
  }
  .article-space, .article-form, dialog:has(.article-form) {
    --article-paper: #1d2c24;
    --article-ink: #e2eadc;
    --article-muted: #bac8b2;
    --article-line: #586a52;
    --article-soft-line: #3f5240;
    --article-sage: #2b3e30;
    --article-selected: #375041;
    --article-link: #c1e1a4;
    color: var(--article-ink);
  }
  body.article-page-active .sidebar { background: #1d2c24; border-color: var(--line); }
  body.article-page-active :is(.brand b, .brand-mark, .profile-avatar) { color: var(--ink); }
  body.article-page-active :is(.workspace-label, .sidebar-settings, .sidebar-target,
    .storage-indicator, .local-caption, .breadcrumb, .search-trigger) { color: var(--muted); }
  body.article-page-active #navigation a { color: var(--muted); }
  body.article-page-active #navigation a:is(.active, :hover) {
    background: #375041;
    color: var(--ink);
  }
  body.article-page-active :is(.search-trigger, .profile-avatar) { background: #2b3e30; }
  .article-space .article-banner-label { background: #111e18; color: var(--article-ink); }
  .article-space .article-banner-art { background-color: #314934; background-blend-mode: multiply; }
  .article-space :is(.article-order-note, .article-guide, .article-reader-notice,
    .article-kind-label, .article-markdown blockquote, .article-markdown pre, .article-markdown code,
    .article-image-link, .article-term, .article-note) {
    background: var(--article-sage);
    border-color: var(--article-line);
    color: var(--article-ink);
  }
  .article-space .article-markdown pre code { background: transparent; }
  .article-space :is(.article-search, .article-note textarea), .article-form .form-label :is(input, select, textarea) {
    background: #15221b; border-color: var(--article-line); color: var(--article-ink);
  }
  .article-space :is(.article-filter, .article-language-switch button, .article-row-tags span,
    .article-row-state, .article-meta, .article-original-title,
    .article-personal-strip, .article-original p, .article-markdown p, .article-stats,
    .article-fulltext-heading span, .article-note textarea::placeholder, .article-note-actions > span,
    .article-sources, .article-sources > p, .article-sources small, .article-term p,
    .article-term > span, .article-term small, .article-question p, .article-question > span,
    .article-empty, .article-empty p) { color: var(--article-muted); }
  .article-space :is(.article-markdown h2, .article-meta span:first-child, .article-guide p, .article-guide li,
    .article-markdown, .article-parallel-full > .article-markdown:last-child,
    .article-term :is(b, strong, h4), .article-empty h3) { color: var(--article-ink); }
  .article-space :is(.article-markdown a, .article-sources a, .article-reader-notice a,
    .article-note-actions button), .article-form .article-import-note a { color: var(--article-link); }
  .article-space :is(.article-row:is(:hover, .selected), .article-filter:is(:hover, .active),
    .article-language-switch button:is(:hover, [aria-pressed="true"]), .article-note-actions button:is(:hover, .active)) {
    background: var(--article-selected); color: var(--article-ink);
  }
  .article-space .article-note-actions .article-mark-read:not(.active) {
    background: var(--article-link); color: #16251b; border-color: var(--article-link);
  }
  .article-space ::selection, .article-form ::selection { background: #c1e1a4; color: #16251b; }
  dialog:has(.article-form), .article-form { background: var(--article-paper); border-color: var(--article-line); }
  dialog:has(.article-form) .modal-heading h2 { color: var(--article-ink); }
  dialog:has(.article-form) .modal-heading :is(p, .eyebrow), .article-form :is(.form-label,
    .form-label > span, .form-label textarea::placeholder, .form-note, .article-privacy) { color: var(--article-muted); }
  .article-form :is(.article-import-note, .article-import-language),
  dialog:has(.article-form) .modal-heading .icon-button {
    background: var(--article-sage); color: var(--article-ink); border-color: var(--article-line);
  }
  .article-form .modal-actions .button { color: var(--article-link); border-color: var(--article-line); }
  .article-form .modal-actions .button:hover { background: var(--article-selected); }
  .article-form .modal-actions button[type="submit"] { background: var(--article-link); color: #16251b; }
  :is(.article-space, .article-form) :is(a, button, input, textarea, select, summary):focus-visible {
    outline-color: var(--article-link);
  }
}
