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

:root{
--paper:#fdfbf7;
--sheet:#f5f5f5;
--ink:#1a1a1a;
--line:#e0e0e0;
--mute:#5f5a52;
--r:10px;
}

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

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

body{
margin:0;
background:var(--paper);
color:var(--ink);
font-family:'Nunito',system-ui,-apple-system,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
font-size:17px;
line-height:1.8;
-webkit-font-smoothing:antialiased;
}

body::before{
content:"";
position:fixed;
inset:0;
z-index:1;
pointer-events:none;
opacity:.28;
mix-blend-mode:multiply;
background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.5'/></svg>");
}

a{color:inherit;text-decoration:underline;text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
img{max-width:100%}

h1,h2,h3{font-family:'Fredoka','Nunito',system-ui,sans-serif;font-weight:600;line-height:1.25;letter-spacing:-.01em}
hr{border:0;border-top:1px solid var(--line);margin:.55rem 0 1.05rem}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* 顶部胶囊导航 */
.dock{
position:sticky;
top:0;
z-index:20;
display:flex;
align-items:center;
justify-content:center;
gap:.5rem;
padding:.55rem clamp(.6rem,2vw,1.2rem);
background:var(--paper);
border-bottom:1px solid var(--line);
}

.dock-side{list-style:none;display:flex;gap:.4rem;margin:0;padding:0;flex:1 1 0;min-width:0}
.dock-left{order:1;justify-content:flex-end}
.dock-right{order:3;justify-content:flex-start}

.brand{
order:2;
display:inline-flex;
align-items:center;
gap:.5rem;
padding:.3rem .7rem;
border-radius:999px;
font-family:'Fredoka',sans-serif;
font-weight:600;
font-size:1.05rem;
text-decoration:none;
white-space:nowrap;
}

.brand-mark{
display:grid;
place-items:center;
width:30px;
height:30px;
border:1px solid var(--ink);
border-radius:50%;
font-size:.88rem;
line-height:1;
}

.pill{
display:inline-flex;
align-items:center;
min-height:40px;
padding:.28rem .85rem;
border:1px solid var(--line);
border-radius:999px;
background:var(--paper);
color:var(--ink);
font-size:.92rem;
line-height:1.3;
text-decoration:none;
white-space:nowrap;
transition:background .12s linear,color .12s linear,border-color .12s linear;
}

.pill:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* 版心与双栏 */
main{max-width:1120px;margin:0 auto;padding:0 clamp(1rem,4vw,2rem)}

article{
display:grid;
grid-template-columns:minmax(0,1fr) 16.5rem;
column-gap:3rem;
align-items:start;
overflow-wrap:break-word;
}

article > section{
grid-column:1;
min-width:0;
padding:2.2rem 0;
border-top:1px solid var(--line);
}

article > section[id]{scroll-margin-top:7rem}

/* 首屏 */
.hero{
grid-column:1/-1;
display:grid;
grid-template-columns:1.05fr .95fr;
align-items:center;
gap:clamp(1rem,3vw,2.5rem);
min-height:min(70vh,640px);
border-top:0;
padding:clamp(1.6rem,5vh,3.2rem) 0 clamp(1.4rem,4vh,2.6rem);
}

.hero-copy{grid-column:2;grid-row:1;text-align:right}
.hero-copy h1{margin:0;font-size:clamp(1.9rem,5.4vw,3.4rem);line-height:1.12;letter-spacing:-.02em}

.hero-art{grid-column:1;grid-row:1;position:relative;height:clamp(210px,40vh,400px)}

.shot{
position:absolute;
object-fit:cover;
background:var(--sheet);
border:1px solid var(--line);
border-radius:var(--r);
box-shadow:0 10px 22px rgba(26,26,26,.09);
}

.shot-a{width:76%;height:84%;top:0;left:0}
.shot-b{width:54%;height:54%;right:0;bottom:0;border-color:var(--ink);transform:rotate(-2deg)}

.hero:has(.hero-art:empty) .hero-art{display:none}
.hero:has(.hero-art:empty){grid-template-columns:1fr;min-height:min(56vh,470px)}
.hero:has(.hero-art:empty) .hero-copy{grid-column:1/-1}

/* 正文排版 */
article section > *:first-child{margin-top:0}
h2{font-size:clamp(1.3rem,2.6vw,1.65rem);margin:1.3rem 0 .35rem}
h3{font-size:1.12rem;margin:1.1rem 0 .3rem}
p{margin:0 0 1rem}
ul,ol{padding-left:1.3rem}
li{margin:.25rem 0}
figure{margin:1.3rem 0}
blockquote{margin:1.2rem 0;padding:.6rem 1rem;border-left:3px solid var(--ink);background:var(--sheet)}
code{font-size:.92em;background:var(--sheet);padding:.1rem .3rem;border-radius:4px}
table{width:100%;border-collapse:collapse;font-size:.95rem}
th,td{border:1px solid var(--line);padding:.5rem .6rem;text-align:left}
article section img{height:auto;border-radius:var(--r);border:1px solid var(--line)}

/* 侧栏目录 */
.rail{
grid-column:2;
grid-row:2 / span 30;
align-self:start;
position:sticky;
top:5.4rem;
padding:1rem 1.1rem 1.1rem;
background:var(--sheet);
border:1px solid var(--line);
border-radius:var(--r);
box-shadow:0 8px 20px rgba(26,26,26,.05);
}

.rail h2{font-size:.95rem;margin:0 0 .4rem;letter-spacing:.06em}
.rail hr{margin:0 0 .5rem}
.rail ol{list-style:none;margin:0;padding:0;counter-reset:rail}
.rail li + li a{border-top:1px dotted var(--line)}
.rail a{display:flex;align-items:center;min-height:40px;font-size:.94rem;text-decoration:none}
.rail a::before{counter-increment:rail;content:counter(rail,decimal-leading-zero);font-family:'Fredoka',sans-serif;font-size:.78rem;color:var(--mute);margin-right:.55rem}
.rail a:hover{text-decoration:underline}

/* 页脚 */
footer{max-width:1120px;margin:3rem auto 0;padding:0 clamp(1rem,4vw,2rem) 2rem}

.foot-top{
display:grid;
grid-template-columns:1.1fr 1fr 1.2fr .9fr;
gap:1.6rem;
border-top:2px solid var(--ink);
padding:2rem 0 1.4rem;
}

.foot-top h2{font-size:.95rem;margin:0 0 .3rem;letter-spacing:.07em}
.foot-top hr{margin:0 0 .55rem}

.foot-addr{font-style:normal}
.foot-brand{display:block;font-family:'Fredoka',sans-serif;font-weight:600;font-size:1.15rem;line-height:1.4}

.foot-list{list-style:none;margin:0;padding:0}
.foot-list a{display:inline-flex;align-items:center;min-height:40px;font-size:.95rem;text-decoration:none}
.foot-list a:hover{text-decoration:underline}

.foot-sub{display:grid;gap:.5rem}
.foot-sub input{
min-height:44px;
padding:.5rem .7rem;
font:inherit;
font-size:.95rem;
color:var(--ink);
background:var(--paper);
border:1px solid var(--line);
border-radius:8px;
}
.foot-sub button{
min-height:44px;
padding:.5rem .9rem;
font:inherit;
font-family:'Fredoka',sans-serif;
font-size:.95rem;
color:var(--paper);
background:var(--ink);
border:1px solid var(--ink);
border-radius:999px;
cursor:pointer;
transition:opacity .12s linear;
}
.foot-sub button:hover{opacity:.85}

.foot-up{margin:0}
.to-top{display:inline-flex;align-items:center;min-height:40px;font-size:.95rem;text-decoration:none}
.to-top:hover{text-decoration:underline}

.foot-bottom{border-top:1px solid var(--line);text-align:center;padding:.9rem 0 0;font-size:.9rem;color:var(--mute)}
.foot-bottom p{margin:0}

/* 入场 */
.rv{opacity:0;transform:translateY(10px);transition:opacity .3s linear,transform .3s ease-out}
.rv.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
.rv{opacity:1;transform:none;transition:none}
a,.pill,.foot-sub button{transition:none}
}

@media (max-width:900px){
section{grid-template-columns:1fr;column-gap:0}
section > article{grid-column:1}
.rail{grid-column:1;grid-row:auto;position:static;margin:1.6rem 0 0}
}

@media (max-width:820px){
.dock{flex-wrap:wrap;gap:.4rem;padding:.5rem .6rem}
.brand{order:0;flex:1 1 100%;justify-content:center;padding:.2rem 0}
.dock-side{overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.dock-side::-webkit-scrollbar{display:none}
.dock-left{justify-content:flex-start}
.dock-right{justify-content:flex-end}
.pill{font-size:.88rem;padding:.24rem .7rem}
.hero{grid-template-columns:1fr;min-height:0;gap:1.1rem;padding:1.1rem 0 1.4rem}
.hero-copy{grid-column:1;grid-row:1;text-align:left}
.hero-art{grid-column:1;grid-row:2;height:200px}
h1{font-size:clamp(1.8rem,8vw,2.4rem)}
.foot-top{grid-template-columns:1fr 1fr;gap:1.2rem}
}

@media (max-width:520px){
.foot-top{grid-template-columns:1fr}
body{font-size:16px}
}

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