:root {
  --ink: #182d3a;
  --muted: #637781;
  --blue: #126590;
  --line: #dce6eb;
  --header-height: 82px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--ink); background: white; font: 17px/1.75 "Segoe UI", Arial, "Microsoft YaHei", sans-serif; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid #e5b52b; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: calc(100% - 80px); max-width: 1160px; margin: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: #eaf5fb; border-bottom: 3px solid #f3cf65; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 80px; }
.brand { color: #174e6e; font-size: 30px; font-weight: 300; white-space: nowrap; }
.header-inner nav { display: flex; gap: 25px; align-items: center; }
.header-inner nav a { color: #183f55; font-size: 17px; white-space: nowrap; padding: 7px 0; }
.header-inner nav a[aria-current] { box-shadow: 0 2px #24729b; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: 42px; line-height: 1.25; font-weight: 400; letter-spacing: -.6px; }
h2 { font-weight: 450; font-size: 27px; }
.welcome { padding-top: 52px; }
.welcome > p { margin: 28px 0; }
.release p { margin: 24px 0; }
.release ul, .release ol { padding-left: 27px; margin: 0 0 28px; }
.latest-section { margin-top: 55px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.section-heading > a { font-size: 14px; }
.article-list { border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 135px minmax(0,1fr) 22px; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); align-items: center; }
.article-date { color: var(--muted); font-size: 13px; }
.article-date span { display: block; color: var(--blue); font-size: 12px; }
.article-row h3 { font-size: 19px; font-weight: 450; line-height: 1.5; margin: 0; }
.article-row p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.article-arrow { font-size: 23px; }
.site-footer { background: #eef7fb; border-top: 3px solid #f3cf65; padding: 35px 0 45px; margin-top: 70px; }
.site-footer h2 { font-size: 21px; margin-bottom: 22px; }
.footer-columns { display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: 35px; color: var(--muted); }
.github-link { display: inline-flex; gap: 10px; align-items: center; }
.github-link svg { color: var(--muted); }
.back-top { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: grid; place-items: center; width: 44px; height: 44px; color: #154d6c; background: #f7d76f; border: 1px solid #e5bd43; border-radius: 50%; box-shadow: 0 2px 8px #123d5115; }
.back-top:hover { background: #ffe697; }
.page-heading { padding: 48px 0 25px; }
.page-heading p { color: var(--muted); }
.page-content { min-height: 250px; }
.topic-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.topic-tabs a { border: 1px solid var(--line); padding: 6px 13px; font-size: 14px; border-radius: 3px; }
.topic-tabs a[aria-current] { background: #eaf5fb; color: #174e6e; border-color: #9abed1; }
.empty-state { padding: 28px 0; color: var(--muted); }
.empty-state h2 { color: var(--ink); }
.button { display: inline-block; border-bottom: 2px solid #f3cf65; padding: 6px 0; }
.tag-section { margin-top: 35px; }
.simple-list { padding: 0; list-style: none; }
.simple-list li { display: flex; justify-content: space-between; gap: 25px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.simple-list time { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.reading-entry { display: grid; grid-template-columns: minmax(0,780px) minmax(190px,260px); gap: 65px; padding-top: 45px; align-items: start; }
.reading-entry + .reading-entry { margin-top: 70px; border-top: 3px solid #f3cf65; }
.reading { min-width: 0; }
.post-heading { margin-bottom: 35px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-heading > a { font-size: 14px; }
.post-meta { color: var(--muted); font-size: 13px; margin: 22px 0 12px; }
.post-heading h1 { font-size: 36px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.contents-panel { position: sticky; top: calc(var(--header-height) + 30px); max-height: calc(100vh - var(--header-height) - 60px); overflow-y: auto; scrollbar-width: thin; border-left: 2px solid #f3cf65; padding-left: 20px; font-size: 13px; }
.contents-panel summary { color: #174e6e; font-size: 16px; font-weight: 550; cursor: pointer; padding-bottom: 12px; }
.contents-panel ol { list-style: none; margin: 0; padding: 0; }
.contents-panel li { padding-left: calc(var(--depth) * 12px); margin: 0 0 9px; line-height: 1.5; }
.contents-panel a { display: block; }
.prose { font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.prose h1,.prose h2,.prose h3,.prose h4 { line-height: 1.4; font-weight: 550; margin: 1.8em 0 .7em; }
.prose h1 { font-size: 30px; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose a { text-decoration: underline; }
.prose p,.prose ul,.prose ol { margin-bottom: 1.2em; }
.prose img { max-width: 100%; height: auto; }
.prose pre { background: #f3f7fa; border: 1px solid var(--line); padding: 18px; overflow: auto; line-height: 1.6; border-radius: 4px; }
.prose code { font: .85em/1.6 Consolas, monospace; background: #f3f7fa; padding: .15em .3em; border-radius: 3px; }
.prose pre code { padding: 0; }
.prose table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 14px; }
.prose th,.prose td { border: 1px solid var(--line); padding: 10px 14px; min-width: 100px; text-align: left; }
.prose th { background: #eaf5fb; }
.prose blockquote { border-left: 3px solid #f3cf65; margin: 25px 0; padding: 2px 0 2px 22px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.reading-next { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 45px; font-size: 15px; }
.load-status { color: var(--muted); margin-top: 12px; font-size: 13px; }
.about-copy { max-width: 760px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 40; background: white; padding: 10px 18px; }
.skip-link:focus { top: 10px; }
.highlight .c,.highlight .c1,.highlight .cm { color: #637781; font-style: italic; }
.highlight .k,.highlight .kd,.highlight .kn { color: #745296; }
.highlight .s,.highlight .s1,.highlight .s2 { color: #126590; }
.highlight .mi,.highlight .nf { color: #926018; }
@media(max-width:1050px) {
  .header-inner nav { gap: 17px; }
  .header-inner nav a { font-size: 15px; }
  .reading-entry { gap: 30px; }
}
@media(max-width:850px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .brand { font-size: 26px; }
  .header-inner nav { overflow-x: auto; padding: 0 0 10px; gap: 21px; }
  .header-inner nav a { font-size: 14px; }
  .reading-entry { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; padding-top: 20px; }
  .contents-panel { grid-row: 1; top: var(--header-height); z-index: 10; padding: 10px 14px; background: #f2f8fc; border: 1px solid #dae8ef; max-height: calc(65vh - var(--header-height)); }
  .contents-panel summary { padding: 0; font-size: 14px; }
  .contents-panel details[open] summary { padding-bottom: 12px; }
  html { scroll-padding-top: calc(var(--header-height) + 72px); }
  .footer-columns { gap: 20px; }
}
@media(max-width:550px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  .welcome { padding-top: 32px; }
  .latest-section { margin-top: 40px; }
  .article-row { grid-template-columns: minmax(0,1fr) 22px; gap: 8px 15px; padding: 20px 0; }
  .article-date { grid-column: 1/-1; display: flex; gap: 13px; }
  .article-row h3 { font-size: 17px; }
  .article-arrow { grid-column: 2; grid-row: 2; }
  .section-heading h2 { font-size: 25px; }
  .footer-columns { grid-template-columns: 1fr; gap: 18px; }
  .site-footer { padding-bottom: 75px; }
  .post-heading h1 { font-size: 29px; }
  .prose { font-size: 16px; }
  .simple-list li { flex-direction: column; gap: 6px; }
  .back-top { right: 15px; bottom: 15px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header,.site-footer,.back-top,.contents-panel,.reading-next { display: none; }
  .shell { width: 100%; }
  .reading-entry { display: block; }
  .prose pre { white-space: pre-wrap; }
}
