/* Copied from /root/open123/design-v2/assets/site.css. */
/* Open123 site system: monochrome, tight, typography-first, no cards. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #171614;
  --muted: #5a5750;
  --soft: #6f6c65;
  --line: #e9e7e2;
  --panel: #f4f3f0;
  --overlay: rgba(23, 22, 20, .13);
  --blue: #2f5f9e;
  --orange: #a84f27;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151413;
  --ink: #efede7;
  --muted: #b3b0a8;
  --soft: #97948c;
  --line: #363430;
  --panel: #24221f;
  --overlay: rgba(239, 237, 231, .18);
  --blue: #9dc0f0;
  --orange: #e7a27d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Open123 Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
}
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: rgba(47, 95, 158, .16); color: inherit; }
:where(a, button, [tabindex]):focus-visible { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.4; text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; }
.skip {
  position: fixed;
  top: 12px;
  left: 18px;
  z-index: 5;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.4;
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

.shell {
  /* Header, footer and reader share one 720px column so the chrome lines up
     with the article text instead of floating wider on each side. */
  width: min(720px, calc(100% - 96px));
  margin: 0 auto;
  padding-top: 44px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: block; height: 28px; width: auto; }
.brand-mark--dark { display: none; }
html[data-theme="dark"] .brand-mark--light { display: none; }
html[data-theme="dark"] .brand-mark--dark { display: block; }
.brand-name {
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--ink);
  white-space: nowrap;
  /* Match the 52/72 SVG baseline inside the 28px wordmark box. */
  transform: translateY(-2px);
}
.brand-dot {
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  color: var(--soft);
  margin: 0 .118em 0 -.076em;
  transform: translateY(-1px);
}
.brand-dot--footer {
  font-size: inherit;
  margin: 0 .091em 0 .081em;
  transform: none;
  color: inherit;
}
.nav { display: flex; align-items: center; gap: 26px; flex-wrap: nowrap; }
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  min-height: 42px;
  font-size: 13.5px;
  color: var(--muted);
}
.nav a .icon { width: 15px; height: 15px; }
.nav a:hover { color: var(--blue); text-decoration: none; }
/* One icon for the current mode; click cycles auto -> light -> dark. */
.theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme:hover { color: var(--blue); }
.theme .theme-icon { width: 15px; height: 15px; }

.reader { max-width: 720px; margin: 80px auto 0; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--soft);
  font-size: 13px;
}
.back .icon { width: 14px; height: 14px; }
.reader h1 {
  margin: 18px 0 12px;
  font-size: clamp(29px, 3.8vw, 40px);
  line-height: 1.28;
  letter-spacing: -.02em;
}
.tool-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 17px 0 15px;
}
.tool-hero .tool-tile { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.tool-hero .tool-tile .icon { width: 22px; height: 22px; }
.tool-hero h1 { margin: 0; }
.meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--soft);
  font-size: 11.5px;
  letter-spacing: .04em;
  line-height: 1.7;
}
.meta .icon { width: 12px; height: 12px; color: var(--blue); }
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 580px;
  margin: 18px 0 32px;
  color: var(--soft);
  font-size: 11.5px;
  line-height: 1.8;
}
.notice .icon { width: 13px; height: 13px; margin-top: .34em; color: var(--orange); }
.article-body { max-width: 640px; }
.article-body a[href] { color: var(--blue); text-decoration: underline; text-underline-offset: .16em; }
.article-body p { margin: 18px 0; font-size: 16.5px; line-height: 1.9; }
.article-body > p { text-indent: 2em; }
.article-body h2 {
  margin: 36px 0 12px;
  font-size: 22px;
  line-height: 1.4;
}
.article-body ul { margin: 18px 0; padding-left: 1.2em; }
.article-body li { margin: 6px 0; font-size: 16px; line-height: 1.85; }
.article-body blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--panel);
  color: var(--ink);
}
.article-body blockquote p { margin: 0; font-size: 16.5px; line-height: 1.85; }
.related { margin-top: 52px; color: var(--soft); font-size: 11.5px; }
.related p { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.related p .icon { width: 13px; height: 13px; color: var(--orange); }
.related a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.related a:hover { color: var(--blue); }
.related a .icon { width: 13px; height: 13px; }

.tool-list { list-style: none; padding: 0; margin: 34px 0 0; }
.tool-list li + li { margin-top: 34px; }
.tool-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 17px;
  padding: 0;
}
.tool-tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--panel);
  color: var(--muted);
  transition: background .18s ease, color .18s ease;
}
.tool-tile .icon { width: 19px; height: 19px; }
.tool-tile--blue .icon { color: var(--blue); }
.tool-tile--orange .icon { color: var(--orange); }
.tool-main { min-width: 0; }
.tool-link h2 { margin: 0 0 5px; font-size: 22px; line-height: 1.4; }
.tool-link p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-top: 3px;
  color: var(--soft);
  font-size: 11.5px;
  white-space: nowrap;
}
.tool-cta .icon { width: 12px; height: 12px; transition: transform .18s ease; }
.tool-link:hover { text-decoration: none; }
.tool-link:hover .tool-tile { background: var(--line); color: var(--ink); }
.tool-link:hover .tool-tile--blue .icon { color: var(--blue); }
.tool-link:hover .tool-tile--orange .icon { color: var(--orange); }
.tool-link:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.tool-link:hover .tool-cta { color: var(--blue); }
.tool-link:hover .tool-cta .icon { transform: translate(2px, -2px); }
.sample {
  margin: 34px 0;
  padding: 26px 28px;
  background: var(--panel);
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sample-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  color: var(--soft);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
}
.sample-label .icon { width: 13px; height: 13px; color: var(--orange); }
.reader > p { color: var(--muted); font-size: 16.5px; line-height: 1.85; max-width: 580px; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 100px;
  padding: 0 0 44px;
  color: var(--soft);
  font-size: 11.5px;
  line-height: 1.8;
}
.footer-links { display: flex; align-items: center; gap: 26px; }
.footer a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.footer a .icon { width: 12px; height: 12px; }
.footer a .icon--brand { width: 13px; height: 13px; }
.footer a:hover { color: var(--blue); }

@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); padding-top: 24px; }
  .header { display: block; }
  .brand-mark { height: 26px; }
  .brand-name { font-size: 18px; }
  .brand-dot { font-size: 18px; }
  .nav { gap: 16px; margin-top: 16px; }
  .nav a { font-size: 13px; }
  .theme { margin-left: auto; width: 36px; height: 36px; min-height: 36px; }
  .theme .theme-icon { width: 14px; height: 14px; }
  .reader { margin-top: 48px; }
  .reader h1 { font-size: 27px; line-height: 1.32; margin-top: 12px; }
  .tool-hero { gap: 12px; margin: 14px 0 12px; }
  .tool-hero .tool-tile { width: 42px; height: 42px; border-radius: 11px; }
  .tool-hero .tool-tile .icon { width: 19px; height: 19px; }
.tool-tile--blue .icon { color: var(--blue); }
.tool-tile--orange .icon { color: var(--orange); }
  .tool-hero h1 { font-size: 27px; margin: 0; }
  .meta { font-size: 11px; }
  .notice { margin: 16px 0 26px; }
  .article-body p { font-size: 15.5px; line-height: 1.9; margin: 16px 0; }
  .article-body h2 { font-size: 20px; margin-top: 30px; }
  .article-body li { font-size: 15.5px; }
  .article-body blockquote { padding: 18px 20px; margin: 24px 0; }
  .article-body blockquote p { font-size: 15.5px; }
  .tool-list { margin-top: 26px; }
  .tool-list li + li { margin-top: 26px; }
  .tool-link { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; }
  .tool-tile { width: 38px; height: 38px; border-radius: 10px; }
  .tool-tile .icon { width: 18px; height: 18px; }
  .tool-link h2 { font-size: 19px; }
  .tool-link p { font-size: 14.5px; }
  .tool-cta { grid-column: 2; margin-top: 1px; font-size: 11px; }
  .sample { padding: 18px; margin: 24px 0; font-size: 14.5px; }
  .reader > p { font-size: 15.5px; }
  .footer { margin-top: 80px; padding-bottom: 32px; gap: 8px; }
  .footer-links { gap: 18px; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 32px); }
  .brand-mark { height: 24px; }
  .brand-name { font-size: 17px; }
  .brand-dot { font-size: 17px; }
  .nav { gap: 12px; }
  .reader h1 { font-size: 25px; }
  .nav a span { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
