body {
  width: auto;
  max-width: none;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4, h5, h6 { color: var(--accent); line-height: 1.4; }
h1 { font-size: clamp(1.65rem, 4vw, 2.15rem); }
h2 { margin: 2.1rem 0 1rem; font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin-block: 1em; }
a, .article-content a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; box-shadow: none; border: 0; background: none; }
a:hover, .article-content a:hover { color: var(--accent-hover); text-decoration: underline; box-shadow: none; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #af6500; outline-offset: 4px; border-radius: 2px; }
.wrapper { overflow: visible; }
.header { width: calc(100% - 3rem); max-width: calc(var(--measure) - 3rem); margin: 1.25rem auto 0; padding: .7rem 0 1.1rem; background: var(--paper); border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
.nav { display: flex; align-items: center; gap: 2rem; max-width: none; margin: 0; padding: 0; text-align: left; }
.nav-logo { float: none; flex: 0 0 auto; margin: 0; }
.nav-logo:hover { transform: none; }
.nav-logo img { width: 50px; height: 50px; object-fit: contain; }
.nav-links { display: flex; flex: 1; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; margin: 0; font-weight: normal; }
.nav-links li, .nav-links li:first-child { display: block; margin: 0; font-size: 1.25rem; }
.nav-links a { display: inline-block; color: var(--ink); padding: .25rem 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: .45em; }
.content { max-width: var(--measure); margin: 2.5rem auto 3rem; padding: 0 1.5rem; color: var(--ink); line-height: 1.8; }
.article-title { color: var(--accent); margin: 0 0 1.5rem; font-size: clamp(1.65rem, 4vw, 2.15rem); text-align: left; }
.article-subtitle { display: block; color: var(--muted); font-size: .55em; font-weight: normal; margin-top: .5rem; }
.article-date { color: var(--muted); font-weight: normal; text-align: left; font-size: .9rem; }
.article-blog .article-title, .article-blog .article-date { text-align: center; }
.article-blog .article-title { margin-bottom: .65rem; }
.article-blog .article-date { margin: 0 0 2rem; }
.article-content { display: flow-root; }
.article-content p { font-size: inherit; line-height: 1.8; }
.article-blog:lang(zh-CN) > .article-content > p:not(:has(img, picture, video, iframe, svg)) { text-indent: 2em; }
.article-content a { text-decoration: underline; }
.article-content a:hover, .article-content a:focus { background: none; }
.article-content hr { height: 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; }
.article-content hr::before { display: none; }
.article-content img { max-width: 100%; height: auto; }
.article-content img[align="left"] { margin: .5rem 1.25rem 1rem 0; }
.article-content pre { overflow-x: auto; }
.article-content table { display: block; max-width: 100%; width: max-content; overflow-x: auto; font-size: .92em; border-collapse: collapse; }
.article-content td, .article-content th { padding: .65rem .85rem; border: 1px solid var(--rule); text-align: left; }
.article-content th { background: var(--wash); color: var(--ink); }
.article-content tr:nth-child(even) { background: #fafbf9; }
blockquote { border-left: 3px solid #9db6a7; padding: .1rem 1.25rem; color: var(--muted); margin-inline: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.footer { border-top: 1px solid var(--rule); padding: 1.5rem; margin: 0; color: var(--muted); text-align: center; font-size: .9rem; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.footer-links li { padding: 0; margin: 0; }
.footer-links li::before { display: none; }
.footer a { color: var(--accent); }
.footer-links a { margin: 0; }
.footer p { margin: .75rem 0 0; }
.skip-link { position: absolute; left: 1rem; top: -6rem; padding: .5rem 1rem; background: white; z-index: 10; }
.skip-link:focus { top: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.archive-list { list-style: none; padding: 0; }
.archive-item { display: grid; grid-template-columns: 6.8rem minmax(0, 1fr); align-items: baseline; gap: 1rem; margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.archive-entry-link { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.65; }
.archive-title { font-size: 1.35rem; margin: 1.5rem 0 .8rem; }
.archive-item-date { display: inline; font-size: .88em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0; margin: 0; }
.archive-notice { padding: .75rem 1rem; background: var(--wash); border-left: 3px solid var(--accent); font-size: .9rem; }
.home-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 1rem 0; border-block: 1px solid var(--rule); }
.publication-list { list-style: none; padding: 0; }
.publication-entry { padding: 1.15rem 0; margin: 0; border-bottom: 1px solid var(--rule); }
.publication-entry p { margin: .45rem 0; }
.publication-notes { font-size: .92em; color: var(--muted); }
.publication-link, .publication-citation a[href$=".pdf"] { display: inline-block; font-size: .85em; font-weight: bold; padding: .05rem .45rem; background: var(--wash); border-radius: 3px; }
.article-pagination { display: flex; justify-content: space-between; gap: 2rem; margin: 2rem 0; padding-top: 1rem; border-top: 1px solid var(--rule); }
.article-pagination a { max-width: 48%; }
.share-links, .comments { margin-top: 2rem; font-size: .9rem; }
.share-links { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.share-label { margin: 0 0 .65rem; color: var(--muted); }
.share-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .35rem .85rem; border: 1px solid var(--rule); border-radius: 4px; color: var(--accent); background: var(--paper); font: inherit; line-height: 1.4; text-decoration: none; cursor: pointer; }
.share-action:hover, .share-action:focus-visible { border-color: var(--accent); background: var(--wash); color: var(--accent-hover); text-decoration: none; }
.share-links [hidden] { display: none; }
.share-status { margin: .65rem 0 0; color: var(--accent); }
.share-copy-fallback { margin-top: .5rem; }
.share-copy-fallback label { display: block; color: var(--muted); }
.share-copy-fallback input { box-sizing: border-box; width: 100%; padding: .5rem .65rem; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); background: var(--paper); font: inherit; }
.share-dialog { box-sizing: border-box; width: min(360px, calc(100% - 2rem)); max-height: calc(100% - 2rem); margin: auto; padding: 1.75rem; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); background: var(--paper); text-align: center; overflow-y: auto; }
.share-dialog::backdrop { background: rgb(24 43 35 / 35%); }
.share-dialog h2 { margin: .25rem 0 1rem; font-size: 1.3rem; text-align: center; }
.share-dialog img { display: block; max-width: 100%; height: auto; margin: auto; image-rendering: pixelated; }
.share-dialog p { margin: 1rem 0 0; line-height: 1.7; }
.share-dialog-note { color: var(--muted); font-size: .9em; }
.share-close { position: absolute; top: .25rem; right: .25rem; width: 36px; height: 36px; padding: 0; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: 1.5rem; cursor: pointer; }
.comments summary { cursor: pointer; color: var(--accent); }
.article-content :is(h2, h3, h4) { scroll-margin-top: 1.5rem; }
.article-resources .article-content > h2 { padding-bottom: .55rem; border-bottom: 1px solid var(--rule); }
.course-archive { --ink: #6e7270; --muted: #6e7270; --accent: #6e7270; --accent-hover: #474c4a; --wash: #f5f5f4; --rule: #e2e4e2; color: var(--ink); margin-top: 3rem; }
.course-archive > h2 { padding-bottom: .55rem; border-bottom: 1px solid var(--rule); }
.article-resources .article-content > h3 { margin: 1.7rem 0 .65rem; }
.article-resources .article-content li { margin-block: .4rem; }
.article-resources .article-content li::marker { color: var(--muted); }
.article-resources .article-content > ul { padding-left: 1.3rem; }
.article-resources blockquote { background: var(--wash); border-color: var(--accent); font-size: .93em; }
.article-resources table { width: 100%; }
.article-resources th:first-child, .article-resources td:first-child { white-space: nowrap; }
.table-of-contents { margin: 0 0 2rem; padding: 1rem 1.4rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--wash); font-size: .92em; }
.table-of-contents summary { cursor: pointer; color: var(--accent); font-weight: bold; }
.table-of-contents ul { padding-left: 1.2rem; }
.table-of-contents > nav > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.table-of-contents li { margin: .25rem 0; }
.table-of-contents a { text-decoration: none; }
.table-of-contents a:hover { text-decoration: underline; }
.table-of-contents li ul { font-size: .94em; margin: .35rem 0 .65rem; }
@media (max-width: 600px) {
  body { font-size: 17px; }
  .header { width: calc(100% - 2rem); margin-top: .75rem; padding: .5rem 0 .8rem; }
  .nav { align-items: flex-start; gap: 1rem; }
  .nav-links { justify-content: flex-start; gap: .15rem .9rem; }
  .nav-links li, .nav-links li:first-child { font-size: 1.0625rem; }
  .nav-logo img { width: 40px; height: 40px; }
  .content { padding-inline: 1rem; margin-top: 1.7rem; }
  .article-content img[align="left"] { float: none; display: block; margin: 1rem auto; }
  .article-content table { font-size: .85em; }
  .archive-item { grid-template-columns: 5.65rem minmax(0, 1fr); gap: .55rem; }
  .archive-item-date { font-size: .8em; }
  .table-of-contents { padding: .85rem 1rem; }
  .table-of-contents > nav > ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
