@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500;700&display=swap');

:root{
--paper:#fafaf8;
--ink:#1a1a1a;
--mid:#4a4a4a;
--hair:rgba(26,26,26,.28);
--wash:rgba(74,74,74,.06);
--mono:"Roboto Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
--sans:"Exo",-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
margin:0;
background-color:var(--paper);
background-image:
repeating-linear-gradient(0deg,rgba(26,26,26,.03) 0 1px,transparent 1px 4px),
repeating-linear-gradient(90deg,rgba(26,26,26,.022) 0 1px,transparent 1px 7px);
color:var(--ink);
font-family:var(--sans);
font-size:17px;
line-height:1.78;
overflow-x:hidden;
overflow-x:clip;
-webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto}

a{color:inherit}

:focus-visible{outline:2px dashed var(--ink);outline-offset:3px}

.grain{
position:fixed;inset:0;z-index:90;pointer-events:none;opacity:.35;
mix-blend-mode:multiply;
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

hr{
border:0;height:1px;margin:10px 0;opacity:.55;
background:repeating-linear-gradient(90deg,var(--ink) 0 7px,transparent 7px 12px);
}

/* 页头 */
.top{
position:sticky;top:0;z-index:50;
display:flex;align-items:center;gap:10px;
padding:8px clamp(10px,3vw,24px);
background:rgba(250,250,248,.9);
backdrop-filter:blur(7px) grayscale(1);
border-bottom:1px solid var(--ink);
}

.mark{
flex:0 0 auto;width:44px;height:44px;display:grid;place-items:center;
border:1px solid var(--ink);
border-radius:52% 46% 55% 44%;
transform:rotate(-3deg);
transition:transform .16s steps(3,end),border-radius .16s steps(3,end);
}
.mark svg{width:24px;height:24px}
.mark:hover{transform:rotate(7deg);border-radius:44% 56% 42% 58%}

.nav{flex:1 1 auto;min-width:0}
.nav ol{
display:flex;align-items:center;gap:1px;
margin:0;padding:0;list-style:none;
overflow-x:auto;scrollbar-width:none;
}
.nav ol::-webkit-scrollbar{display:none}
.nav li{flex:0 0 auto}
.nav a{
display:flex;align-items:center;min-height:42px;padding:0 11px;
font-family:var(--mono);font-size:16px;line-height:1.2;
color:var(--mid);text-decoration:none;
border-bottom:2px solid transparent;
transition:color .14s steps(2,end),border-color .14s steps(2,end);
}
.nav a:hover,.nav a:focus-visible{color:var(--ink);border-bottom-color:var(--ink)}

.jump{position:relative;flex:0 0 auto}
.jump summary{
list-style:none;cursor:pointer;
display:flex;align-items:center;min-height:42px;padding:0 14px;
font-family:var(--mono);font-size:16px;
border:1px solid var(--ink);
border-radius:44px 32px 46px 30px;
transform:rotate(1.4deg);
}
.jump summary::-webkit-details-marker{display:none}
.jump-body{
position:absolute;right:0;top:calc(100% + 8px);width:216px;
background:var(--paper);
border:1px solid var(--ink);
border-radius:22px;
padding:8px;
box-shadow:7px 7px 0 rgba(26,26,26,.13);
}
.jump-body ul{list-style:none;margin:0;padding:0}
.jump-body a{
display:flex;align-items:center;min-height:40px;padding:0 10px;
font-size:16px;text-decoration:none;color:var(--mid);
border-bottom:1px dashed rgba(26,26,26,.2);
}
.jump-body li:last-child a{border-bottom:0}
.jump-body a:hover{color:var(--ink);background:var(--wash)}

/* 首屏 */
.hero{
position:relative;overflow:hidden;
display:grid;grid-template-columns:1.12fr .88fr;
align-items:center;gap:clamp(18px,4vw,56px);
min-height:70vh;
padding:clamp(26px,5vw,64px) clamp(16px,5vw,60px);
border-bottom:1px solid var(--ink);
}
.hero::before{
content:"01";
position:absolute;left:-.05em;bottom:-.3em;
font-family:var(--mono);font-weight:700;
font-size:clamp(150px,25vw,330px);line-height:1;
color:var(--ink);opacity:.06;pointer-events:none;
letter-spacing:-.06em;
}

.hero-txt{position:relative;z-index:1;text-align:left}
.hero-tag{
margin:0 0 10px;
font-family:var(--mono);font-size:16px;letter-spacing:.3em;
color:var(--mid);
}
h1{
margin:0 0 14px;
font-size:clamp(30px,5.2vw,62px);
line-height:1.14;
font-weight:600;
letter-spacing:-.02em;
}
.hero-lede{
margin:0 0 22px;max-width:46ch;
font-size:17px;color:var(--mid);
}
.hero-act{display:flex;flex-wrap:wrap;gap:10px;margin:0}

.btn{
display:inline-flex;align-items:center;min-height:46px;padding:0 22px;
font-family:var(--mono);font-size:16px;text-decoration:none;
color:var(--paper);background:var(--ink);
border:1px solid var(--ink);
border-radius:44px 32px 48px 28px;
transition:transform .16s steps(3,end),border-radius .16s steps(3,end);
}
.btn-ghost{background:transparent;color:var(--ink)}
.btn:hover{transform:rotate(-1.6deg) translateY(-2px);border-radius:32px 48px 28px 44px}

.hero-figure{
position:relative;margin:0;padding:10px;
border:1px solid rgba(26,26,26,.4);
border-radius:28px;
background:rgba(250,250,248,.55);
backdrop-filter:blur(8px) grayscale(1);
box-shadow:10px 12px 0 rgba(26,26,26,.1);
transform:rotate(-1.2deg);
}
.hero-figure::before{
content:"";position:absolute;top:-11px;left:50%;
width:88px;height:22px;
background:rgba(26,26,26,.16);
border-radius:2px;
transform:translateX(-50%) rotate(-4deg);
}
.hero-figure img{display:block;width:100%;border-radius:20px}
.hero-sketch{display:block;width:100%;color:var(--ink);opacity:.8}

/* 正文骨架 */
.wrap{
display:grid;grid-template-columns:minmax(0,1fr) 264px;
gap:clamp(22px,4vw,54px);
max-width:1180px;margin:0 auto;
padding:clamp(28px,5vw,60px) clamp(16px,4vw,28px);
}

.body{max-width:74ch}
.body section{
padding-bottom:clamp(24px,4vw,42px);
margin-bottom:clamp(24px,4vw,42px);
border-bottom:1px dashed var(--hair);
}
.body section:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.body section[id]{scroll-margin-top:88px}

.body h2{
margin:0 0 .62em;
font-size:clamp(21px,2.6vw,29px);
line-height:1.36;font-weight:600;letter-spacing:-.012em;
}
.body h2::before{
content:"";display:block;width:40px;height:6px;
border-top:2px solid var(--ink);border-bottom:1px solid var(--mid);
margin-bottom:11px;transform:rotate(-1deg);
}
.body h3{margin:1.5em 0 .5em;font-size:clamp(18px,2vw,22px);line-height:1.4;font-weight:600}
.body p{margin:0 0 1.05em;font-size:17px}
.body ul,.body ol{margin:0 0 1.1em;padding-left:1.35em}
.body li{margin:.36em 0}
.body li::marker{color:var(--mid)}
.body a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--mid)}
.body a:hover{border-bottom-color:var(--ink);background:var(--wash)}
.body blockquote{
margin:1.3em 0;padding:14px 18px;
border-left:3px solid var(--ink);
background:var(--wash);
transform:rotate(-.4deg);
}
.body blockquote p:last-child{margin-bottom:0}
.body strong,.body b{font-weight:600}
.body img{border-radius:14px;border:1px solid var(--hair)}
.body figure{margin:1.4em 0}
.body figcaption{font-size:16px;color:var(--mid);margin-top:6px}
.body table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:16px}
.body th,.body td{border:1px solid var(--hair);padding:8px 10px;text-align:left;vertical-align:top}
.body th{font-weight:600;background:var(--wash)}
.body pre{
overflow-x:auto;padding:12px 14px;
background:rgba(26,26,26,.05);
border:1px dashed var(--hair);border-radius:12px;
font-family:var(--mono);font-size:16px;line-height:1.6;
}
.body code{font-family:var(--mono);font-size:.95em}

/* 右侧栏 */
.side{
align-self:start;position:sticky;top:82px;
padding:16px 18px;
border:1px solid var(--ink);
border-radius:28px;
background:rgba(250,250,248,.62);
backdrop-filter:blur(6px) grayscale(1);
box-shadow:8px 8px 0 rgba(26,26,26,.09);
transform:rotate(.8deg);
}
.side h2{
margin:0 0 6px;
font-family:var(--mono);font-size:16px;font-weight:500;
letter-spacing:.18em;
}
.side hr{margin:0 0 12px}
.side ol{list-style:none;margin:0;padding:0;counter-reset:s}
.side li{counter-increment:s;border-bottom:1px dashed rgba(26,26,26,.22)}
.side li:last-child{border-bottom:0}
.side a{
display:flex;align-items:center;gap:9px;
min-height:40px;padding:2px 0;
font-size:16px;line-height:1.3;text-decoration:none;color:var(--mid);
}
.side a::before{
content:counter(s,decimal-leading-zero);
font-family:var(--mono);font-size:13px;color:var(--ink);opacity:.5;
}
.side a:hover{color:var(--ink)}

/* 页脚 */
.foot{
margin-top:clamp(30px,6vw,68px);
padding:clamp(24px,4vw,42px) clamp(16px,4vw,28px) 18px;
border-top:1px solid var(--ink);
background:rgba(74,74,74,.05);
}
.foot-top{
display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;
gap:clamp(16px,3vw,36px);
max-width:1180px;margin:0 auto;
}
.foot-addr{font-style:normal;display:flex;flex-direction:column;gap:6px}
.foot-addr b{font-size:20px;font-weight:600;letter-spacing:-.01em}
.foot-host{font-family:var(--mono);font-size:16px;color:var(--mid);word-break:break-all}
.foot-col h2{
margin:0 0 6px;
font-family:var(--mono);font-size:16px;font-weight:500;letter-spacing:.16em;
}
.foot-col hr{margin:0 0 10px}
.foot-col ul{list-style:none;margin:0;padding:0}
.foot-col a{
display:flex;align-items:center;min-height:40px;padding:2px 0;
font-size:16px;line-height:1.3;text-decoration:none;color:var(--mid);
}
.foot-col a:hover{color:var(--ink)}
.foot-big{
max-width:1180px;margin:clamp(18px,4vw,38px) auto 0;
font-size:clamp(38px,11vw,138px);line-height:.94;font-weight:700;
letter-spacing:-.035em;color:rgba(26,26,26,.17);
white-space:nowrap;overflow:hidden;
}
.foot-bottom{
max-width:1180px;margin:14px auto 0;padding-top:12px;
border-top:1px dashed var(--hair);
text-align:center;font-family:var(--mono);font-size:16px;color:var(--mid);
}

/* 动效 */
@keyframes rise{
from{opacity:0;transform:translateY(14px) rotate(-.6deg)}
to{opacity:1;transform:none}
}
.reveal{opacity:0}
.reveal.in{animation:rise .46s steps(7,end) both}

@media (prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
.reveal{opacity:1}
.reveal.in{animation:none}
*{transition:none!important}
}

/* 窄屏 */
@media (max-width:900px){
.wrap{grid-template-columns:1fr}
.side{position:static;top:auto;transform:none;margin-top:6px}
.hero{
grid-template-columns:1fr;min-height:0;align-content:start;
padding:30px clamp(16px,4vw,22px) 42px;
}
.hero::before{font-size:clamp(120px,32vw,200px);opacity:.055}
.hero-figure{transform:rotate(-.8deg)}
.foot-top{grid-template-columns:1fr 1fr}
.foot-addr{grid-column:1 / -1}
.jump-body{right:auto;left:0}
}

@media (max-width:520px){
h1{font-size:clamp(28px,8.6vw,38px)}
.hero-lede{max-width:none}
.hero-figure::before{width:64px;height:18px}
.foot-top{grid-template-columns:1fr}
.foot-big{letter-spacing:-.04em}
.nav a{padding:0 9px}
}

button[aria-expanded]{min-width:44px;min-height:44px}
