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

:root{
  --paper:#fafaf8;
  --card:#ffffff;
  --card-alt:#f1f0e9;
  --ink:#1a1a1a;
  --graphite:#4a4a4a;
  --line:#d8d6cc;
  --radius:28px;
  --head-w:246px;
}

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

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

body{
  margin:0;
  background-color:var(--paper);
  color:var(--ink);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.72;
  overflow-x:clip;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23p)' opacity='0.14'/></svg>");
  background-repeat:repeat;
}

a{color:inherit}
a:focus-visible{outline:2px dashed var(--ink);outline-offset:3px}
img{max-width:100%;height:auto}

/* ---------- 左侧竖排站头 ---------- */
.site-rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--head-w);
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:30px 22px 26px;
  background:rgba(250,250,248,.95);
  border-right:1px dashed var(--line);
  z-index:20;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  text-decoration:none;
  font-size:19px;
  font-weight:800;
  line-height:1.28;
  letter-spacing:-.02em;
  padding:6px 0;
  min-height:44px;
}
.brand-mark{
  width:30px;
  height:30px;
  flex:none;
  border-radius:9px;
  object-fit:cover;
  transform:rotate(-5deg);
}
.brand span{
  position:relative;
  display:inline-block;
}
.brand span::after{
  content:"";
  position:absolute;
  left:-3px;
  right:-3px;
  bottom:1px;
  height:2px;
  background:var(--ink);
  opacity:.45;
  transform:rotate(-.8deg);
}

.site-rail nav p{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.site-rail nav a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:8px 10px;
  font-size:16px;
  color:var(--graphite);
  text-decoration:none;
  border-radius:12px;
}
.site-rail nav a::before{
  content:"";
  flex:none;
  width:9px;
  height:9px;
  border:1.5px solid var(--graphite);
  border-radius:2px;
  transform:rotate(11deg);
  opacity:.8;
}
.site-rail nav a:nth-child(2n)::before{border-radius:50%;transform:rotate(-16deg)}
.site-rail nav a:nth-child(3n)::before{transform:rotate(38deg);border-radius:3px}
.site-rail nav a:hover,
.site-rail nav a:focus-visible{
  color:var(--ink);
  background:#eeece4;
}

.head-contact{
  margin:auto 0 0;
  display:flex;
  flex-direction:column;
  gap:1px;
  font-size:16px;
  line-height:1.45;
  color:var(--graphite);
  padding-top:14px;
  border-top:1px dashed var(--line);
  word-break:break-all;
}
.head-contact .k{
  font-weight:700;
  color:var(--ink);
  letter-spacing:.06em;
}

/* ---------- 主区 ---------- */
main{
  margin-left:var(--head-w);
  padding:0 48px 0 40px;
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  text-align:right;
  padding:96px 0;
  background-image:radial-gradient(var(--line) 1.3px,transparent 1.4px);
  background-size:22px 22px;
  background-position:6px 6px;
}

.hero-in{max-width:14ch}

.hero h1{
  margin:0;
  font-size:clamp(2.7rem,6.6vw,5.4rem);
  line-height:1.04;
  font-weight:800;
  letter-spacing:-.05em;
  word-break:break-word;
}

.hero-mark{
  position:absolute;
  left:4%;
  bottom:15%;
  width:104px;
  height:104px;
  border:2px dashed var(--graphite);
  border-radius:14px;
  transform:rotate(-9deg);
  opacity:.5;
}
.hero-mark::after{
  content:"";
  position:absolute;
  inset:15px;
  border:1.5px solid var(--graphite);
  border-radius:50%;
  transform:rotate(14deg);
  opacity:.75;
}

/* ---------- 正文舞台 ---------- */
.stage{
  display:grid;
  grid-template-columns:192px minmax(0,1fr);
  gap:36px;
  padding:56px 0 48px;
  border-top:1px dashed var(--line);
}

.side-note{
  position:sticky;
  top:30px;
  align-self:start;
  background:var(--card-alt);
  border-radius:var(--radius);
  padding:20px 16px;
  --rot:-.9deg;
  transform:rotate(var(--rot));
}

.side-h{
  margin:0 0 12px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--graphite);
}
.side-h > span{
  position:relative;
  display:inline-block;
  padding-bottom:3px;
}
.side-h > span::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:currentColor;
  opacity:.35;
  transform:rotate(-.8deg);
}

.side-links{
  margin:0 0 22px;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.side-links a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 8px;
  font-size:16px;
  color:var(--graphite);
  text-decoration:none;
  border-radius:10px;
  border-bottom:1px dashed rgba(74,74,74,.22);
}
.side-links a:last-child{border-bottom:0}
.side-links a:hover,
.side-links a:focus-visible{
  color:var(--ink);
  background:rgba(26,26,26,.06);
}

.side-host{
  margin:0;
  font-size:16px;
  line-height:1.5;
  color:var(--graphite);
  word-break:break-all;
}

.stream{min-width:0}

.stream > section{
  --rot:0deg;
  background:var(--card);
  border-radius:var(--radius);
  padding:34px 30px;
  margin:0 0 26px;
  transform:rotate(var(--rot));
  overflow-wrap:break-word;
  scroll-margin-top:24px;
}
.stream > section:nth-child(2n){background:var(--card-alt);--rot:.28deg}
.stream > section:nth-child(3n){--rot:-.3deg}
.stream > section:last-child{margin-bottom:0}

.stream h2{
  font-size:clamp(1.35rem,2.3vw,1.85rem);
  line-height:1.32;
  letter-spacing:-.02em;
  margin:0 0 16px;
}
.stream h2 > span{
  position:relative;
  display:inline-block;
  padding-bottom:4px;
}
.stream h2 > span::after{
  content:"";
  position:absolute;
  left:-1px;
  right:-1px;
  bottom:0;
  height:2px;
  background:currentColor;
  opacity:.32;
  transform:rotate(-.7deg);
}
.stream h3{
  font-size:1.12rem;
  line-height:1.45;
  margin:26px 0 10px;
  letter-spacing:-.01em;
}
.stream h3 > span{
  position:relative;
  display:inline-block;
  border-bottom:2px dashed rgba(26,26,26,.3);
  padding-bottom:2px;
}
.stream p{margin:0 0 14px}
.stream p:last-child{margin-bottom:0}
.stream a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-thickness:1.6px;
  text-underline-offset:3px;
}
.stream ul,
.stream ol{margin:0 0 16px;padding-left:1.25em}
.stream li{margin:0 0 6px}
.stream blockquote{
  margin:22px 0;
  padding:16px 20px;
  background:#f4f2e7;
  border-radius:18px;
  transform:rotate(-.35deg);
}
.stream blockquote p:last-child{margin-bottom:0}
.stream figure{margin:22px 0}
.stream figure img{border-radius:18px}
.stream figcaption{font-size:16px;color:var(--graphite);margin-top:8px}
.stream table{width:100%;border-collapse:collapse;margin:0 0 18px}
.stream th,
.stream td{padding:10px 12px;border-bottom:1px dashed var(--line);text-align:left}
.stream code{
  font-size:16px;
  background:#eceae1;
  border-radius:6px;
  padding:1px 5px;
}
.stream pre{
  overflow-x:auto;
  background:#1a1a1a;
  color:#fafaf8;
  padding:16px 18px;
  border-radius:18px;
}
.stream pre code{background:none;padding:0;color:inherit}

/* ---------- 页脚 ---------- */
.site-foot{
  margin-left:var(--head-w);
  padding:44px 40px 46px;
  border-top:1px dashed var(--line);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  text-align:center;
}
.site-foot p{
  margin:0;
  font-size:clamp(1.9rem,4.6vw,3.3rem);
  line-height:1.02;
  font-weight:800;
  letter-spacing:-.05em;
  color:var(--graphite);
  word-break:break-word;
}
.site-foot small{
  font-size:16px;
  line-height:1.5;
  color:var(--graphite);
}

/* ---------- 显现 ---------- */
.stream > div,
.side-note{transform:rotate(var(--rot,0deg))}

.js .rv{opacity:0;transform:translateY(16px)}
.js .rv.in{
  opacity:1;
  transform:rotate(var(--rot,0deg));
  transition:opacity .32s steps(4,end) var(--d,0s),transform .34s cubic-bezier(.2,.7,.3,1) var(--d,0s);
}

/* ---------- 中屏 ---------- */
@media (max-width:1100px){
  :root{--head-w:212px}
  main{padding:0 28px 0 24px}
  .site-foot{margin-left:var(--head-w);padding-left:24px;padding-right:28px}
  .stage{grid-template-columns:158px minmax(0,1fr);gap:24px}
  .stream > div{padding:28px 22px}
}

/* ---------- 移动端 ---------- */
@media (max-width:860px){
  .site-rail{
    position:sticky;
    inset:auto;
    width:auto;
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:6px 12px;
    padding:10px 14px;
    border-right:0;
    border-bottom:1px dashed var(--line);
  }
  .brand{font-size:16px;min-height:40px;padding:0;white-space:nowrap;overflow:hidden}
  .brand-mark{width:24px;height:24px}

  .head-contact{
    margin:0;
    flex-direction:row;
    align-items:center;
    gap:6px;
    font-size:16px;
    border-top:0;
    padding-top:0;
    max-width:44vw;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    display:flex;
  }
  .head-contact .host{overflow:hidden;text-overflow:ellipsis}

  .site-rail nav{
    grid-column:1 / -1;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .site-rail nav::-webkit-scrollbar{display:none}
  .site-rail nav p{flex-direction:row;gap:4px}
  .site-rail nav a{
    min-height:40px;
    padding:8px 11px;
    white-space:nowrap;
    background:#f0eee6;
  }

  main{margin-left:0;padding:0 16px}
  .hero{min-height:74vh;padding:56px 0}
  .hero-mark{width:66px;height:66px;bottom:10%;left:2%}
  .stage{grid-template-columns:minmax(0,1fr);gap:0;padding:32px 0 32px}
  .side-note{display:none}
  .stream > div{padding:24px 18px;margin-bottom:18px}
  div[id]{scroll-margin-top:112px}
  .site-foot{margin-left:0;padding:32px 16px 36px}
}

@media (max-width:420px){
  .brand span{font-size:15px}
  .head-contact .k{display:none}
  .hero h1{font-size:clamp(2.2rem,11vw,3rem)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .rv{opacity:1;transform:rotate(var(--rot,0deg))}
  .js .rv.in{transition:none}
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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