@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

:root{
  --paper:#fafaf8;
  --ink:#1a1a1a;
  --gray:#4a4a4a;
  --soft:rgba(26,26,26,.13);
  --line:rgba(26,26,26,.28);
  --hand:'Amatic SC','Kaiti SC',STKaiti,KaiTi,'KaiTi_GB2312',serif;
  --body:'Cabin',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --shadow:0 10px 24px rgba(26,26,26,.14);
}

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

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

body{
  margin:0;
  padding:0 clamp(1rem,3.5vw,2.5rem);
  font:400 17px/1.75 var(--body);
  color:var(--ink);
  background-color:var(--paper);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
  background-attachment:fixed;
  overflow-x:hidden;
}

img{display:block;max-width:100%;height:auto}
ul{margin:0;padding:0;list-style:none}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

h1,h2,h3{
  margin:0;
  font-family:var(--hand);
  font-weight:700;
  line-height:1.12;
  letter-spacing:.015em;
}

h2>span{position:relative;display:inline-block;z-index:0}
h2>span::after{
  content:"";
  position:absolute;
  left:-3%;right:-3%;bottom:.02em;height:.4em;
  background:rgba(26,26,26,.14);
  transform:rotate(-.7deg);
  z-index:-1;
}

/* ---------- 顶部两行 ---------- */

.top{
  max-width:1180px;
  margin:0 auto;
  padding-top:1rem;
  border-bottom:3px solid var(--ink);
}

.brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  min-height:44px;
  padding:.2rem 0;
}
.brand:hover .mark{transform:rotate(9deg)}
.mark{width:2rem;height:2rem;flex:none;color:var(--ink);transition:transform .12s steps(3)}
.bname{font-family:var(--hand);font-size:1.95rem;letter-spacing:.03em}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:.5rem 1.15rem;
  border:3px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  font-weight:600;
  font-size:1rem;
  box-shadow:4px 4px 0 var(--gray);
  transform:rotate(-1deg);
  transition:transform .12s steps(3),box-shadow .12s steps(3);
}
.cta:hover,.cta:focus-visible{
  transform:rotate(1.2deg) translate(-2px,-2px);
  box-shadow:6px 6px 0 var(--gray);
}

.menubar{margin-top:.7rem}
.menubar ul{display:flex;flex-wrap:wrap;gap:.15rem .45rem;padding-bottom:.55rem}
.menubar li{transform:rotate(var(--r,0deg))}
.menubar a{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  min-height:42px;
  padding:.45rem .6rem;
  font-size:1rem;
  color:var(--gray);
  border-bottom:2px solid transparent;
  transition:color .1s steps(2),border-color .1s steps(2),transform .1s steps(2);
}
.menubar a:hover,.menubar a:focus-visible{
  color:var(--ink);
  border-bottom-color:var(--ink);
  transform:translateY(-3px);
}
.tick{width:1rem;height:1rem;flex:none;opacity:.6}

/* ---------- 主体网格 ---------- */

main{
  max-width:1180px;
  margin:0 auto;
  padding:2rem 0 3rem;
  display:grid;
  grid-template-columns:minmax(0,1fr) 19rem;
  gap:clamp(1.5rem,4vw,3rem);
  align-items:start;
}

article{min-width:0}

/* ---------- 首屏 ---------- */

.hero{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:1.25rem;
  align-items:center;
  min-height:45vh;
  padding-bottom:1.6rem;
  border-bottom:3px solid var(--ink);
}

.hero-copy{min-width:0}

h1{
  font-size:clamp(2.2rem,7vw,3.8rem);
  transform:rotate(-.7deg);
  text-wrap:balance;
}
h1 span{
  background:linear-gradient(transparent 76%,rgba(26,26,26,.17) 76%,rgba(26,26,26,.17) 93%,transparent 93%);
}

.badge{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  margin-top:1.1rem;
  padding:.35rem .9rem;
  border:2px solid var(--ink);
  background:var(--paper);
  font-size:1rem;
  box-shadow:3px 3px 0 var(--soft);
  transform:rotate(-2deg);
  transition:transform .12s steps(3);
}
.badge:hover{transform:rotate(1.5deg) translateY(-2px)}

.hero-art{position:relative;aspect-ratio:5/4;min-height:12rem}

.ph{
  position:absolute;
  margin:0;
  overflow:hidden;
  border:3px solid var(--ink);
  padding:6px;
  background:#f1f1ea repeating-linear-gradient(90deg,rgba(26,26,26,.06) 0 1px,transparent 1px 12px);
  box-shadow:var(--shadow);
}
.ph-a{width:64%;left:0;top:1%;transform:rotate(-3.2deg)}
.ph-b{width:56%;right:0;bottom:0;transform:rotate(2.6deg)}
.ph img{width:100%;height:100%;object-fit:cover;filter:grayscale(.14) contrast(1.04)}

/* ---------- 正文 ---------- */

.body section{
  padding:2.4rem 0 .8rem;
  scroll-margin-top:6rem;
}
.body section+section{border-top:1px dashed var(--line)}
.body section:first-child{padding-top:2rem}

.body h2{
  font-size:clamp(1.7rem,4vw,2.4rem);
  margin-bottom:.9rem;
}
.body h3{
  font-size:clamp(1.3rem,2.6vw,1.6rem);
  margin:1.6rem 0 .6rem;
}
.body p{margin:0 0 1.15rem;color:#2c2c2c}
.body a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.body a:hover{background:rgba(26,26,26,.08)}
.body ul,.body ol{margin:0 0 1.2rem;padding-left:1.3rem}
.body ul li{position:relative;padding-left:1.15rem;margin-bottom:.55rem}
.body ul li::before{content:"—";position:absolute;left:0;color:var(--gray)}
.body ol li{margin-bottom:.55rem;list-style:decimal}
.body img{border:2px solid var(--ink);padding:4px;background:#fff;margin:0 0 1.1rem}
.body blockquote{
  margin:1.4rem 0;
  padding:.7rem 1rem;
  border-left:5px solid var(--ink);
  background:rgba(26,26,26,.05);
  transform:rotate(-.4deg);
}
.body blockquote p:last-child{margin-bottom:0}
.body table{width:100%;border-collapse:collapse;margin:0 0 1.2rem;font-size:1rem}
.body th,.body td{border:2px solid var(--ink);padding:.5rem .65rem;text-align:left}
.body th{background:rgba(26,26,26,.08)}

/* ---------- 右侧栏 ---------- */

.rail{
  position:sticky;
  top:1rem;
  display:grid;
  gap:1.2rem;
  align-content:start;
  border:2px solid var(--ink);
  padding:1.05rem 1.05rem 1.2rem;
  background:#fff;
  box-shadow:var(--shadow);
  transform:rotate(-.7deg);
}

.rail h2{font-size:1.55rem;margin-bottom:.55rem}

.rail-nav a{
  display:block;
  padding:.45rem .1rem;
  min-height:40px;
  font-size:1rem;
  color:var(--gray);
  border-bottom:1px dotted var(--line);
  transition:color .1s steps(2),padding-left .1s steps(2);
}
.rail-nav a:hover{color:var(--ink);padding-left:.35rem}

.rail-note{
  border-top:2px solid var(--ink);
  padding-top:.85rem;
}
.rail-jump{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.3rem .8rem;
  border:2px dashed var(--ink);
  font-size:1rem;
  transform:rotate(.6deg);
}
.rail-jump:hover{background:var(--ink);color:var(--paper)}

/* ---------- 页脚 ---------- */

footer{
  max-width:1180px;
  margin:0 auto;
  padding:1.6rem 0 3rem;
  border-top:3px solid var(--ink);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1rem 1.6rem;
}

.fmark{display:flex;align-items:center;gap:.55rem}
.fmark .mark{width:1.7rem;height:1.7rem}
.flogo{display:inline-flex;align-items:center;min-height:44px}
.fbrand{font-family:var(--hand);font-size:1.35rem}

.fcta a{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:.45rem 1.15rem;
  border:3px solid var(--ink);
  font-family:var(--hand);
  font-size:1.5rem;
  box-shadow:4px 4px 0 var(--soft);
  transform:rotate(-1.2deg);
  transition:transform .12s steps(3);
}
.fcta a:hover{transform:rotate(1deg) translateY(-2px)}

.fnav ul{display:flex;flex-wrap:wrap;gap:.1rem .7rem}
.fnav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.35rem .1rem;
  font-size:1rem;
  color:var(--gray);
}
.fnav a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}

.fcopy{font-size:1rem;color:var(--gray)}

/* ---------- 断点 ---------- */

@media (max-width:900px){
  main{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;transform:none}
}

@media (max-width:720px){
  .hero{grid-template-columns:1fr;min-height:0;gap:1.6rem}
  .hero-art{aspect-ratio:4/3}
  h1{transform:none}
  footer{flex-direction:column;align-items:flex-start;gap:.7rem}
}

@media (max-width:420px){
  .bname{font-size:1.6rem}
  .body div{padding:1.9rem 0 .6rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
  .cta:hover,.menubar a:hover,.badge:hover,.fcta a:hover,.brand:hover .mark{transform:none}
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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