* { box-sizing: border-box }
body { margin: 0 }
.tl {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 16px/1.65 "Microsoft YaHei","PingFang SC",system-ui,sans-serif;
  overflow-wrap: anywhere;
}
.tl :where(a) { color: inherit; text-decoration: none }
.tl a:hover { text-decoration: underline; text-underline-offset: .2em }
.tl :is(a,summary):focus-visible { outline: 2px solid currentColor; outline-offset: 3px }
.tl :where(img) { max-width: 100%; height: auto }
.tl-top-inner, .tl-main, .tl-footer-inner { width: min(1180px,calc(100% - 40px)); margin-inline: auto }
.tl-top { position: relative; z-index: 1 }
.tl-top-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 2rem; padding-block: 16px }
.tl-brand { display: flex; align-items: center; gap: .5rem; font-size: clamp(1rem,2vw,1.35rem); font-weight: 700 }
.tl-brand .site-logo { width: auto; max-width: 100px; height: 30px; object-fit: contain }
.tl-top nav { display: flex; align-items: center; flex-wrap: wrap; gap: .3em 1.2em; margin-inline-start: auto; font-size: .9rem }
.tl-top nav > a, .tl-more summary { padding-block: .3em }
.tl-more { position: relative }
.tl-more summary { cursor: pointer }
.tl-more[open] > div {
  position: absolute; right: 0; top: 100%; z-index: 2; min-width: min(220px,65vw);
  padding: .6rem 1rem; background: Canvas; color: CanvasText; border: 1px solid #888;
  max-height: 50vh; overflow: auto;
}
.tl .tl-more div a { display: block; color: inherit; padding: .2em 0 }
.tl-main { flex: 1; padding-block: 20px 46px }
.tl-footer { margin-top: auto; border-top: 1px solid currentColor; font-size: .84rem }
.tl-footer-inner { padding-block: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px }
.tl-footer-inner p { margin: 0 }
.tl-sitemap { margin-inline-start: auto }
.tl-pages, .article-adjacent { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-block: 22px }
.tl-pages a { border: 1px solid currentColor; padding: 6px 15px; font-size: .9rem }
.tl .crumb, .tl .related, .tl .article-adjacent { max-width: 900px; margin-inline: auto }
.tl .crumb { margin-block: 12px; font-size: .86rem }
.tl .entry { overflow-wrap: anywhere }
.tl .entry h1 { margin-block: 0 .4em; font-size: clamp(1.8rem,4vw,3rem); line-height: 1.3 }
.tl .entry-meta { font-size: .88rem }
.tl .entry article { font-size: clamp(1rem,1.4vw,1.12rem); line-height: 1.9 }
.tl .entry article :is(h2,h3,h4) { line-height: 1.45; margin: 1.45em 0 .6em }
.tl .entry article :is(ul,ol) { padding-inline-start: 1.65em }
.tl .entry article a { text-decoration: underline; text-underline-offset: .15em }
.tl .entry article blockquote { margin: 1.2em 0; padding: .2em 1em; border-inline-start: 3px solid var(--accent) }
.tl .entry article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse }
.tl .entry article :is(td,th) { border: 1px solid currentColor; padding: .4em .75em }
.tl .entry article pre { overflow: auto; white-space: pre-wrap }
.tl .article-cover, .tl .article-gallery-image { display: block; margin: 1rem auto; max-height: 72vh; object-fit: contain }
.tl .related { margin-block: 20px; padding-block: 10px }
.tl .related ul { padding-inline-start: 1.2em }
.tl .article-list { display: flex; flex-wrap: wrap; gap: .8em 1.6em; padding: 0; list-style: none }
.tl .article-list a { border-bottom: 1px solid currentColor }
.tl .entry-meta a, .tl .crumb a, .tl-pages a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .27em }
.tl .tl-top { box-shadow: inset 0 -2px var(--accent) }
.tl[data-layout="blog"] .tl-main { max-width: 850px }
.tl[data-layout="compact"] .tl-main { max-width: 1000px; padding-block: 12px 24px; font-size: .92rem }
.tl[data-layout="game"] .tl-main { max-width: 1260px; padding-inline: clamp(6px,1.5vw,20px); border-inline-start: 4px solid var(--accent) }
.tl[data-layout="news"] .tl-main { max-width: 1180px; padding-block: 30px 48px }
.tl dl.tl-opening { display: flex; flex-wrap: wrap; gap: .3em 1.15em; margin: .65em 0; font-size: .88rem; line-height: 1.55 }
.tl-opening div { display: flex; flex-wrap: wrap; gap: .4em; align-items: baseline; min-width: 0 }
.tl-opening dt { opacity: .78 }
.tl-opening dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums }
@media (max-width: 680px) {
  .tl-top-inner, .tl-main, .tl-footer-inner { width: calc(100% - 28px) }
  .tl-top-inner { display: block; padding-block: 10px }
  .tl-top nav { margin: 5px 0 0; gap: .1em .95em }
  .tl-more { position: static }
  .tl-more[open] > div { right: 14px; left: 14px; top: 100% }
}
