/* Xuefei theme contract v1. Immutable release: create a new version for changes. */
:root{--xf-bg:#f6f4ee;--xf-panel:#fffefa;--xf-text:#252c2c;--xf-muted:#626a66;--xf-line:#dcded4;--xf-accent:#a34535;--xf-nav-height:64px}
body.xf-native{padding-top:var(--xf-nav-height);color:var(--xf-text);background:var(--xf-bg);color-scheme:light}
html{scroll-padding-top:90px}
.xf-shell,.xf-shell *{box-sizing:border-box}
.xf-shell{position:fixed;inset:0 0 auto;z-index:90;height:var(--xf-nav-height);background:#f6f4eef5;border-bottom:1px solid var(--xf-line);color:var(--xf-text);font:14px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;backdrop-filter:blur(16px)}
.xf-shell-inner{max-width:1120px;margin:auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;height:100%;gap:24px;min-width:0}
.xf-brand{display:flex;align-items:center;gap:10px;font-weight:600;letter-spacing:.05em;white-space:nowrap}
.xf-mark{display:grid;place-items:center;background:var(--xf-accent);color:#fffefa;width:28px;height:28px;border-radius:5px;font-family:serif;font-size:19px}
.xf-shell a{color:var(--xf-muted);text-decoration:none;background:none}.xf-shell .xf-brand{color:var(--xf-text)}
.xf-shell nav{display:flex;align-items:center;justify-content:flex-end;gap:24px;height:100%;overflow-x:auto;min-width:0;scrollbar-width:none}.xf-shell nav::-webkit-scrollbar{display:none}
.xf-shell nav a{display:flex;align-items:center;height:100%;white-space:nowrap;border-bottom:2px solid transparent;padding-top:2px;flex-shrink:0;min-height:44px}
.xf-shell nav a:hover,.xf-shell nav a[aria-current=page]{color:var(--xf-accent);border-bottom-color:var(--xf-accent)}
.xf-shell a:focus-visible,.xf-skip:focus-visible{outline:2px solid var(--xf-accent);outline-offset:3px}
.xf-skip{position:fixed;top:-100px;left:20px;z-index:1000;background:#fffefa;color:#252c2c;padding:12px}.xf-skip:focus{top:72px}
.xf-post{display:grid;grid-template-columns:94px 1fr 18px;gap:18px}
.xf-about-prose{max-width:760px;padding-bottom:38px}.xf-about-prose section{padding:27px 0;border-top:1px solid var(--xf-line)}.xf-about-prose h2{font-size:21px;margin-bottom:15px}.xf-about-prose p{font-size:16px;line-height:1.95;color:var(--xf-muted)}
.xf-about-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.xf-about-links a{background:var(--xf-panel);border:1px solid var(--xf-line);border-radius:6px;padding:17px}.xf-about-links strong{display:block;font-size:14px;font-weight:500;color:var(--xf-accent)}.xf-about-links span{display:block;font-size:14px;color:var(--xf-muted);margin-top:8px}
@media(max-width:700px){.xf-shell-inner{padding:0 16px;gap:14px}.xf-brand-name{display:none}.xf-shell nav{gap:16px;justify-content:flex-start}.xf-shell nav a{font-size:14px}.xf-about-links{grid-template-columns:1fr}}

.xf-shell nav .xf-personal{margin-left:8px;font-size:13px}.xf-shell nav .xf-personal::before{content:"";height:16px;border-left:1px solid var(--xf-line);margin-right:24px}@media(max-width:700px){.xf-shell nav .xf-personal{margin-left:0}.xf-shell nav .xf-personal::before{margin-right:16px}}
