:root {
  color-scheme: light;
  --text: #262626;
  --muted: #8a8f8d;
  --green: #00b96b;
  --border: #e7e9e8;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Segoe UI";
  color: var(--text);
  background: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-size: 15px; line-height: 1.74; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: #1677ff; text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible { outline: 2px solid #009e5d; outline-offset: 4px; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; flex: none; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 12px; padding: 8px 16px; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.topbar { position: fixed; inset: 0 0 auto; height: 52px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 32px 0 16px; background: #fff; border-bottom: 1px solid #f1f2f1; }
.document-brand { display: flex; align-items: center; gap: 8px; min-width: 0; color: #595959; font-size: 13px; }
.document-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-brand .brand-bird { width: 16px; height: 16px; }
.document-brand > svg:last-child { width: 13px; height: 13px; margin-left: 4px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 6px; background: transparent; border: 0; border-radius: 6px; color: #262626; }
.icon-button:hover { background: #f4f5f5; text-decoration: none; }
.icon-button[aria-pressed="true"], [data-like][aria-pressed="true"] { color: #00a860; background: #ebfaf3; }
#bookmark[aria-pressed="true"] svg { fill: #d7f5e7; }
.action-group { display: flex; border: 1px solid #d9dcda; border-radius: 8px; }
.action-group .icon-button { width: 31px; height: 30px; }
.action-group svg { width: 16px; height: 16px; }
main { width: 750px; max-width: calc(100% - 48px); margin-left: max(24px, calc((100vw - 962px) / 2)); padding-top: 78px; padding-bottom: 70px; }
h1 { margin: 0 0 12px; font-size: 36px; line-height: 52px; font-weight: 700; letter-spacing: 0; overflow-wrap: anywhere; }
h2 { margin: 34px 0 17px; font-size: 24px; line-height: 34px; font-weight: 700; }
#guide-content > h2:first-child { margin-top: 0; }
p { margin: 0 0 7.83px; }
strong { font-weight: 700; }
.warning { color: #df2a3f; }
ul, ol { padding: 0 0 0 30px; margin: 0; }
li { margin: 0 0 3.915px; padding: 0; }
li::marker { font-size: 12px; }
li:has(> div > .warning:only-child)::marker { color: #df2a3f; }
li > ul { margin-top: 3.915px; list-style-type: circle; }
ol.step > li::marker { font-size: 15px; }
blockquote { border-left: 3px solid #e0e2e1; margin: 10px 0; padding: 0 0 0 10px; }
blockquote p:last-child, blockquote li:last-child { margin-bottom: 0; }
hr { height: 1px; padding: 0; border: 0; background: #e8e8e8; margin: 24px 0; }
.image-row { margin: 7.83px 0; line-height: 26.1px; }
.image-row.centered { text-align: center; }
figure { display: inline-block; width: var(--image-width); max-width: calc(100% - 2px); margin: 0 1px; vertical-align: bottom; line-height: 15px; }
.image-button { display: block; padding: 0; width: 100%; border: 0; border-radius: 4px; background: transparent; cursor: zoom-in; line-height: 0; }
.image-button img { display: block; width: 100%; height: auto; border: 1px solid #e5e5e5; border-radius: 4px; }
.image-button:hover { box-shadow: 0 0 0 2px #d5e9df; }
figcaption { font-size: 14px; line-height: 22px; color: var(--muted); margin-top: 6px; text-align: center; overflow-wrap: anywhere; }
#guide-content > .image-row:first-of-type { margin-top: 7.83px; padding-bottom: 6px; }
.article-footer { margin-top: 40px; padding-top: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.like-large { display: inline-flex; justify-content: center; align-items: center; width: 58px; height: 58px; border: 1px solid var(--border); background: white; border-radius: 50%; margin-bottom: 12px; }
.like-large svg { width: 26px; height: 26px; }
#outline { position: fixed; top: 78px; left: calc((100vw - 962px) / 2 + 786px); width: 230px; max-width: calc(100vw - (100vw - 962px) / 2 - 810px); z-index: 15; padding-top: 2px; background: white; font-size: 14px; }
.outline-heading { display: flex; align-items: center; gap: 4px; margin-left: 28px; margin-bottom: 10px; color: #1c1c1c; }
.outline-heading .icon-button { width: 28px; height: 28px; }
.outline-heading svg { width: 16px; height: 16px; }
#outline nav { border-left: 2px solid #d9ddda; }
#outline nav a { position: relative; display: block; padding: 2px 12px 2px 26px; color: #595959; font-size: 13px; line-height: 24px; }
#outline nav a:hover { color: #00a860; text-decoration: none; background: #f8faf9; }
#outline nav a[aria-current]::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: #00cc7a; }
.floating-actions { position: fixed; bottom: 84px; right: 40px; display: flex; flex-direction: column; gap: 12px; z-index: 16; }
.round-button { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px #00000014, 0 2px 4px #0000000a; color: #656967; }
.round-button:hover { background: #f6f8f7; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); width: max-content; padding: 10px 18px; border-radius: 8px; color: #fff; background: #262b29; box-shadow: 0 4px 20px #0002; font-size: 14px; }
.outline-backdrop { position: fixed; inset: 52px 0 0; z-index: 25; border: 0; background: #0005; }
body.modal-open { overflow: hidden; }
#lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; padding: 0; margin: 0; background: #161918f5; color: #fff; }
#lightbox::backdrop { background: #161918; }
.lightbox-toolbar { position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 12px 22px; z-index: 1; }
.lightbox-toolbar .icon-button { color: white; width: 40px; height: 40px; }
.lightbox-toolbar .icon-button:hover { background: #fff2; }
.lightbox-content { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 66px 76px 24px; }
#lightbox-image { display: block; max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; min-height: 0; }
#lightbox-caption { flex-shrink: 0; max-width: 100%; margin: 0; font-size: 14px; text-align: center; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 46px; height: 64px; border: 0; border-radius: 6px; background: #ffffff12; color: white; }
.lightbox-arrow:hover { background: #ffffff26; }
.lightbox-arrow.previous { left: 16px; }
.lightbox-arrow.next { right: 16px; }
@media (min-width: 1550px) { #outline { max-width: 230px; } }
@media (max-width: 1100px) {
  main { margin: 0 auto; }
  #outline { top: 52px; right: 0; bottom: 0; left: auto; width: 280px; max-width: 85vw; padding: 22px 18px; z-index: 30; box-shadow: -6px 0 24px #0001; }
  .outline-heading { margin-left: 24px; justify-content: space-between; }
  #outline nav a { font-size: 15px; padding-top: 9px; padding-bottom: 9px; }
  .floating-actions { right: 20px; bottom: 28px; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 10px; gap: 6px; }
  .document-brand { gap: 5px; flex: 1; }
  .document-brand > svg:last-child { display: none; }
  .header-actions { gap: 2px; }
  .header-actions .icon-button { width: 30px; }
  .action-group { border: 0; }
  main { max-width: calc(100% - 36px); padding-top: 76px; }
  h1 { font-size: 28px; line-height: 1.4; margin-bottom: 20px; }
  h2 { font-size: 23px; }
  .image-row.centered { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 10px 0; }
  .image-row figure { flex: 0 1 auto; }
  .floating-actions { right: 12px; bottom: 20px; gap: 9px; }
  .round-button { width: 40px; height: 40px; }
  .lightbox-content { padding: 66px 12px 96px; }
  #lightbox-image { max-height: calc(100dvh - 210px); }
  .lightbox-arrow { top: auto; bottom: 20px; transform: none; height: 44px; width: 56px; }
  .lightbox-arrow.previous { left: calc(50% - 72px); }
  .lightbox-arrow.next { right: calc(50% - 72px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .topbar, #outline, .floating-actions, .toast, .outline-backdrop, #lightbox, .like-large, .skip-link { display: none !important; }
  main { width: auto; max-width: none; margin: 0; padding: 0; }
  h2, figure { break-inside: avoid; }
  .image-row { break-inside: avoid; }
  h2 { break-after: avoid; }
}
