/* Reading tools follow the site's quiet monochrome surfaces. */
@font-face {
  font-family: 'Notebook Home Title';
  src: url('assets/fonts/notebook-title.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3002, U+4E5F, U+4EE3, U+5199, U+5F55, U+6D3B, U+751F, U+7801, U+8BB0, U+FF0C;
}
.page-heading h1.notebook-home-title {
  font-family: 'Notebook Home Title', var(--font-serif);
}
.post-content .heading-anchor {
  display: inline-block;
  width: 0;
  height: 1em;
  scroll-margin-top: 115px;
  pointer-events: none;
}
.post-content .heading-share {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-inline-start: .28em;
  border: 0;
  border-radius: 8px;
  color: #555;
  text-decoration: none;
}
.heading-share svg { flex: none; }
.post-content .heading-share:hover, .post-content .heading-share:focus-visible {
  background: #f4f4f5;
  color: #242424;
}
.heading-share:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.heading-share[data-copied]::after {
  content: '已复制';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 6px;
  padding: 3px 7px;
  background: #303030;
  color: white;
  font: 12px/1.6 system-ui, sans-serif;
  white-space: nowrap;
}
.heading-copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.heading-copy-manual { display: block; color: #666; font: 13px/1.8 system-ui, sans-serif; }
.heading-copy-manual input {
  display: block;
  width: min(100%, 36em);
  padding: 6px 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .post-content .heading-share { opacity: 0; }
  .post-content :is(h2, h3):hover .heading-share,
  .post-content .heading-share:focus-visible,
  .post-content .heading-share[data-copied] { opacity: 1; }
}
@media (pointer: coarse) {
  .post-content .heading-share { min-width: 44px; min-height: 44px; }
}
@media (max-width: 600px) {
  .post-content .heading-anchor { scroll-margin-top: 100px; }
}
.reading-layout{position:relative;min-width:0}.reading-tools{margin:28px 0 34px;border:1px solid #e9e9ed;border-radius:18px;background:linear-gradient(125deg,#fff,#fafafbcc);overflow:hidden}.reading-tools>summary{padding:15px 20px;font-size:13px;color:#666;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}.reading-tools>summary::after{content:'＋';color:#999}.reading-tools[open]>summary::after{content:'−'}.reading-toc{display:grid;gap:2px;padding:0 14px 15px;max-height:290px;overflow:auto}.reading-toc a{padding:7px 10px;border-radius:8px;text-decoration:none;font-size:13px;line-height:1.6;color:#888;overflow-wrap:anywhere}.reading-toc a[data-level="3"]{padding-left:26px;font-size:12px}.reading-toc a:hover,.reading-toc a[aria-current="location"]{color:#222;background:#f1f1f3}.post-content h2,.post-content h3{scroll-margin-top:115px}.post-content{min-width:0;overflow-wrap:anywhere}.post-content .table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.post-content pre{position:relative;max-width:100%;padding-top:45px;overflow-x:auto;-webkit-overflow-scrolling:touch;tab-size:4}.code-shell{position:relative;min-width:0;margin:25px 0}.code-shell pre{margin:0}.code-copy{position:absolute;top:9px;right:10px;z-index:1;border:1px solid #e4e4e8;background:#fffdfc;color:#777;font:11px/1.4 -apple-system,BlinkMacSystemFont,sans-serif;padding:6px 10px;border-radius:8px;cursor:pointer}.code-copy:hover{color:#222;border-color:#ccc}.copy-feedback{position:absolute;top:12px;left:14px;color:#888;font-size:11px}.post-near.reading-near{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;border:0;padding:0;margin:36px 0}.reading-near>div{border:1px solid #e9e9ed;border-radius:16px;padding:20px;min-width:0}.reading-near small{display:block;font-size:10px;letter-spacing:.1em;color:#aaa;margin-bottom:9px}.reading-near a{font-size:14px;line-height:1.8;text-decoration:none;overflow-wrap:anywhere}.discovery{margin:40px 0 12px;padding-top:28px;border-top:1px solid #ededf0}.discovery h2,.series-nav h2{font-size:17px;font-weight:500;margin:0 0 18px}.discovery-list{display:grid;gap:0}.discovery-list a{display:flex;align-items:baseline;gap:20px;padding:14px 0;text-decoration:none;border-bottom:1px solid #f0f0f3;font-size:14px;line-height:1.7}.discovery-list time{flex:0 0 auto;font:10px/1.5 -apple-system,BlinkMacSystemFont,sans-serif;color:#999;letter-spacing:.04em}.discovery-list span{min-width:0;overflow-wrap:anywhere}.series-nav{margin:25px 0;border:1px solid #e9e9ed;padding:20px 22px;border-radius:17px;background:#fcfcfccc}.series-nav ol{padding-left:22px;margin:0;color:#888}.series-nav li{padding:5px 0;font-size:13px;line-height:1.7}.series-nav a{text-decoration:none}.series-nav [aria-current="page"]{color:#222;font-weight:600}.featured-notes{max-width:940px;margin:0 auto 40px;padding:22px 25px;border:1px solid #e9e9ed;border-radius:20px;background:linear-gradient(125deg,#fff,#fafafbbb)}.featured-notes .discovery-list a:last-child{border-bottom:0}.featured-notes h2{font-size:14px;font-weight:500;letter-spacing:.08em;margin:0 0 8px}.reading-status{font-size:12px;color:#999}.reading-tools:focus-within,.series-nav:focus-within{border-color:#ccc}.code-copy:focus-visible,.reading-toc a:focus-visible{outline:2px solid #777;outline-offset:3px}@media(max-width:600px){.reading-tools{margin:23px 0}.post-content h2,.post-content h3{scroll-margin-top:100px}.post-content pre{font-size:12px}.post-content table{min-width:520px}.reading-near>div{padding:15px}.post-near.reading-near{gap:10px}.reading-near a{font-size:12px}.featured-notes{padding:17px;margin:0 0 28px}.discovery-list a{gap:12px}.discovery-list time{font-size:9px}.series-nav{padding:17px}}
