:root{color-scheme:light;--ink:#000;--line:#d5d5d5;--paper:#fff;--wash:#f6f6f4}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;color:var(--ink);background:var(--paper);font:15px/1.75 "Microsoft YaHei","PingFang SC",sans-serif}a,a:visited{color:#000}button,input{font:inherit;color:#000}button{cursor:pointer;border:1px solid #aaa;background:white;border-radius:4px;padding:5px 12px}button:hover{background:#ededeb}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #000;outline-offset:3px}.topbar{height:72px;position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:#fff;border-bottom:1px solid var(--line)}.brand{text-decoration:none;font-size:23px;font-weight:700;letter-spacing:-.5px}.brand span{margin-left:12px;font-size:14px;letter-spacing:1px;font-weight:400}.topbar nav{display:flex;gap:28px;height:100%;align-items:center}.topbar nav a{text-decoration:none;height:100%;display:flex;align-items:center;border-bottom:3px solid transparent;padding-top:3px}.topbar nav a[aria-current]{font-weight:700;border-bottom-color:#000}.menu{display:none}.layout{display:grid;grid-template-columns:272px minmax(0,1fr);max-width:1520px;margin:auto}aside{position:sticky;top:72px;height:calc(100vh - 72px);overflow:auto;border-right:1px solid var(--line);padding:24px 20px 40px}aside label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}input{width:100%;border:1px solid #999;border-radius:4px;padding:7px 10px;background:white}#search-status{font-size:12px;margin:6px 0;min-height:20px}.nav-group{margin:18px 0}.nav-group p{font-size:13px;font-weight:700;margin:0 0 6px}.nav-group a{display:block;text-decoration:none;font-size:12px;line-height:1.5;padding:6px 8px;border-left:2px solid transparent}.nav-group a:hover,.nav-group a.active{background:#eee;border-left-color:#000}.source-link{font-size:12px}main{min-width:0;max-width:1110px;padding:40px 46px 70px}.page-heading{border-bottom:2px solid #000;padding-bottom:22px;margin-bottom:32px}.eyebrow{font-size:12px;letter-spacing:2px;margin:0}h1{font-size:30px;line-height:1.35;margin:8px 0 12px;letter-spacing:.5px}.page-heading>p:not(.eyebrow){font-size:14px;margin:0;max-width:760px}.tools{display:flex;gap:10px;margin-top:16px}.tools button{font-size:12px}h2{font-size:22px;line-height:1.5;margin:32px 0 20px}h3{font-size:19px;line-height:1.5;margin:0 0 6px}h3>span,h5>span{font-family:Consolas,monospace;margin-right:6px}h4{font-size:15px;margin:20px 0 8px}h5{font-size:14px;margin:0 0 6px}.source{font-size:12px;margin:0 0 12px}.topic,.problem{padding:22px 0 30px;border-bottom:1px solid #aaa;scroll-margin-top:90px}.focus{background:var(--wash);border-left:3px solid #000;padding:10px 14px;margin:14px 0}.topic p,.problem p{margin:8px 0 12px}.table-scroll{overflow:auto;margin:12px 0}table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;line-height:1.7}th,td{text-align:left;vertical-align:top;padding:9px 11px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}th{border-top:1px solid #000;border-bottom:1px solid #000;background:var(--wash);font-weight:700}.topic th:nth-child(1){width:29%}.topic th:nth-child(2){width:43%}.topic th:nth-child(3){width:28%}.problem th:first-child{width:37%}td:first-child{font-weight:500}code,pre{font-family:Consolas,"Cascadia Code",monospace;color:#000}code{font-size:.96em}p code,td code{overflow-wrap:anywhere}.code-panel{border:1px dashed #777;margin:12px 0;position:relative;padding:36px 16px 14px;background:#fafafa;border-radius:3px}.code-panel pre{margin:0;overflow:auto;font-size:13px;line-height:1.75;tab-size:4}.code-panel code{font-size:inherit}.copy{position:absolute;right:9px;top:7px;font-size:11px;padding:1px 8px;background:#fff}.question{padding:18px 0 10px;border-top:1px solid var(--line)}.exercise-title{margin-top:24px}.options{display:grid;gap:6px 28px;padding-left:25px;margin:10px 0 12px;font-size:13px}.options li{padding-left:2px;overflow-wrap:anywhere}.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cols-1{grid-template-columns:1fr}summary{cursor:pointer;font-weight:700;font-size:14px;width:fit-content}details.answer{margin:12px 0}.answer>p{font-size:13px}.original{font-size:13px;margin:10px 0}.original summary{font-weight:400;font-size:12px;text-decoration:underline;text-underline-offset:3px}.samples{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:14px 0}.samples>div{min-width:0;border-left:2px solid #ccc;padding-left:12px}.samples pre{font-size:13px;margin:5px 0;overflow:auto;line-height:1.65}.family{background:var(--wash);padding:16px 18px;margin:0 0 8px}.family h3{font-size:15px}.family p{font-size:13px;margin:5px 0}.sources{margin-top:40px;font-size:13px}.sources h2{font-size:20px}.sources th:first-child{width:17%}footer{border-top:1px solid var(--line);padding:16px 30px;text-align:center;font-size:12px}[hidden]{display:none!important}.skip{position:fixed;top:-100px;z-index:20;background:white;padding:10px}.skip:focus{top:5px}
@media(min-width:1500px){main{padding-left:64px;padding-right:64px}}@media(max-width:1100px){.layout{grid-template-columns:236px minmax(0,1fr)}main{padding:28px 26px}.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding:0 22px}}@media(max-width:760px){html{scroll-padding-top:78px}.topbar{height:62px;padding:0 15px;gap:12px}.brand{font-size:20px}.brand span{display:none}.topbar nav{gap:14px;font-size:12px}.menu{display:block;font-size:12px;padding:4px 8px}.layout{display:block}aside{display:none;position:fixed;z-index:4;background:#fff;top:62px;width:min(86vw,320px);height:calc(100dvh - 62px);box-shadow:4px 0 15px #0002}body.menu-open aside{display:block}main{padding:25px 18px 45px}h1{font-size:25px}h2{font-size:20px}h3{font-size:17px}table{min-width:620px}.problem table{min-width:490px}.family table{min-width:0}.family th:first-child{width:30%}.sources table{min-width:550px}.cols-4,.cols-2{grid-template-columns:1fr}.samples{gap:12px}.code-panel{padding-left:12px;padding-right:12px}.code-panel pre{font-size:12px}.topic,.problem{padding-top:18px}.page-heading{margin-bottom:22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}@media print{.topbar,aside,footer,.tools,.copy,.skip,.original{display:none!important}.layout{display:block}main{max-width:none;padding:0}body{font-size:10pt}.page-heading{margin-bottom:10px;padding-bottom:10px}.page-heading h1{font-size:22pt}.table-scroll{overflow:visible}table{min-width:0!important;font-size:9pt}th,td{padding:5px 7px}h2,h3,h4,h5{break-after:avoid}.code-panel{padding:10px;background:white;break-inside:avoid}.code-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:8.5pt}.question{break-inside:avoid}.topic,.problem{padding:14px 0}.samples pre{white-space:pre-wrap}a{text-decoration:none}details>summary{list-style:none}}
