:root {
  color-scheme: light;
  --ink: #182536;
  --muted: #596779;
  --line: #e3e8ed;
  --accent: #1767ba;
  --soft: #edf5fd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.75;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
main:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: #cfe5fc;
}
header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - 1180px) / 2));
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand svg {
  color: var(--accent);
}
.brand strong {
  font-size: 21px;
}
.brand span {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: 6px;
  font-size: 15px;
  color: var(--muted);
}
.edition {
  font-size: 13px;
  color: var(--muted);
}
.layout {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 72px;
  padding: 44px 32px 72px;
  min-height: calc(100vh - 160px);
}
aside {
  align-self: start;
  position: sticky;
  top: 28px;
}
label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bac6d2;
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  caret-color: var(--accent);
}
input::placeholder {
  color: var(--muted);
}
nav {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  gap: 4px;
}
nav a {
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  border-radius: 6px;
}
nav a:hover {
  background: #f5f7fa;
  color: var(--ink);
}
nav a[aria-current="page"] {
  color: #115da6;
  background: var(--soft);
  font-weight: 600;
}
.aside-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
h1 {
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
h2 {
  font-size: 21px;
  line-height: 1.5;
  margin: 40px 0 16px;
}
p {
  margin: 0 0 16px;
}
.intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 65ch;
}
.topic-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.topic-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.topic-list a:hover strong {
  color: var(--accent);
}
.topic-list strong {
  display: block;
  font-size: 19px;
  margin-bottom: 4px;
}
.topic-list small {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.arrow {
  align-self: center;
  color: var(--accent);
  font-size: 24px;
}
.back {
  display: inline-block;
  font-size: 14px;
  margin-bottom: 24px;
}
.path {
  background: #f5f7fa;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  margin: 24px 0;
  color: #34465a;
}
.steps {
  padding-left: 24px;
  margin: 24px 0;
}
.steps li {
  padding-left: 6px;
  margin: 18px 0;
}
.steps li::marker {
  color: var(--accent);
  font-weight: 600;
}
.steps strong {
  display: block;
  margin-bottom: 3px;
}
.steps p {
  color: var(--muted);
  margin: 0;
}
.note {
  padding: 16px 20px;
  background: var(--soft);
  color: #244665;
  border-radius: 8px;
  margin: 28px 0;
  font-size: 14px;
}
figure {
  margin: 28px 0;
}
figure button {
  border: 1px solid var(--line);
  padding: 12px;
  background: #f5f7fa;
  border-radius: 10px;
  width: 100%;
  display: block;
  cursor: zoom-in;
}
figure img {
  display: block;
  max-width: 100%;
  max-height: 560px;
  object-fit: contain;
  margin: auto;
  width: auto;
}
figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.related {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 20px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
dialog {
  border: 0;
  border-radius: 10px;
  padding: 16px;
  max-width: 96vw;
  max-height: 94vh;
  background: white;
}
dialog::backdrop {
  background: rgba(18, 29, 44, 0.7);
}
dialog img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}
dialog .zoom-actions {
  text-align: right;
}
.close {
  border: 0;
  background: var(--soft);
  color: var(--accent);
  border-radius: 6px;
  padding: 6px 14px;
  margin-bottom: 12px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  background: white;
  padding: 8px;
  z-index: 5;
}
.skip:focus {
  top: 12px;
}
#empty {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}
@media (max-width: 760px) {
  header {
    height: 72px;
    padding: 0 20px;
  }
  .edition {
    display: none;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand span {
    font-size: 14px;
  }
  .layout {
    display: block;
    padding: 24px 20px 48px;
  }
  aside {
    position: static;
    margin-bottom: 32px;
  }
  nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    margin-top: 16px;
    padding-bottom: 8px;
  }
  nav a {
    white-space: nowrap;
    padding: 8px 12px;
  }
  .aside-note {
    display: none;
  }
  h1 {
    font-size: 28px;
  }
  .intro {
    font-size: 16px;
  }
  figure button {
    padding: 6px;
  }
  .topic-list a {
    padding: 18px 0;
  }
  footer {
    text-align: left;
    padding: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  a,
  button {
    transition: background-color 0.15s, color 0.15s;
  }
}
[hidden] {
  display: none !important;
}

.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
