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

:root{
  --paper:#fafaf8;
  --ink:#1a1a1a;
  --gray:#4a4a4a;
  --line:#d3d3ca;
  --soft:#efefe7;
  --tape:#efe7a8;
}

*,*::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:'Inter','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.72;
  letter-spacing:.004em;
  overflow-x:hidden;
}
body::after{
  content:"";position:fixed;inset:0;z-index:70;pointer-events:none;opacity:.4;
  mix-blend-mode:multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}
a{color:inherit}
p{margin:0}

hr{
  border:0;height:6px;margin:10px 0 16px;
  background:repeat-x left center / 22px 6px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='6'%3E%3Cpath d='M0 3.5 Q5.5 .5 11 3.5 T22 3.5' fill='none' stroke='%231a1a1a' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* 左侧固定竖排 */
.rail{
  position:fixed;top:0;left:0;right:0;z-index:40;
  display:flex;align-items:center;gap:8px;
  padding:8px 10px;
  background:rgba(250,250,248,.97);
  border-bottom:1.5px solid var(--ink);
}
.rail-mark{
  flex:0 0 auto;display:grid;place-items:center;
  width:44px;height:44px;
  border:1.5px solid var(--ink);border-radius:12px 5px 13px 6px;
  background:#fff;font-weight:800;font-size:20px;text-decoration:none;
  transform:rotate(-2deg);overflow:hidden;
}
.rail-mark img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.rail-nav{flex:1 1 auto;min-width:0}
.rail-nav ol{
  display:flex;gap:2px;list-style:none;margin:0;padding:0 0 2px;
  overflow-x:auto;scrollbar-width:thin;
}
.rail-nav li{flex:0 0 auto}
.rail-nav a,.rail-contact{
  display:inline-flex;align-items:center;min-height:44px;
  padding:0 11px;font-size:16px;font-weight:700;
  text-decoration:none;white-space:nowrap;border-radius:8px;
}
.rail-nav a:hover{background:var(--soft);text-decoration:underline wavy 1.5px}
.rail-nav a[aria-current="true"]{background:var(--tape)}
.rail-contact{
  flex:0 0 auto;font-weight:800;
  border:1.5px solid var(--ink);border-radius:10px 4px 11px 5px;
  background:#fff;transform:rotate(1.4deg);
}
.rail-contact:hover{background:var(--tape)}

/* 主体两栏，aside 贴右 */
main{
  display:grid;grid-template-columns:minmax(0,1fr);gap:26px;
  padding:70px 16px 40px;max-width:1260px;
}
.hero{grid-column:1/-1}
.sheet{grid-column:1;min-width:0}
.side{grid-column:1;min-width:0}

/* Hero */
.hero{
  position:relative;overflow:hidden;
  display:grid;grid-template-columns:minmax(0,1fr) 112px;
  align-items:center;gap:14px;
  min-height:68vh;padding:20px 0 30px;
}
.hero-ghost{
  position:absolute;left:-6px;bottom:2%;z-index:0;
  font-size:clamp(52px,15vw,178px);font-weight:800;line-height:.78;
  letter-spacing:-.05em;color:#e8e8e0;white-space:nowrap;
  animation:drift 11s ease-in-out infinite alternate;
}
.hero h1{
  position:relative;z-index:1;margin:0;
  font-size:clamp(27px,7vw,58px);line-height:1.17;
  font-weight:800;letter-spacing:-.025em;max-width:24ch;
}
.hero h1 span{
  background:linear-gradient(transparent 68%,var(--tape) 68%,var(--tape) 94%,transparent 94%);
  padding:0 2px;
}
.hero-sticker{
  position:relative;z-index:1;margin:0;
  aspect-ratio:4/5;padding:7px;
  background:#fff;border:1.5px solid var(--ink);
  border-radius:10px;
  box-shadow:5px 7px 0 rgba(26,26,26,.14);
  transform:rotate(-4deg);
  animation:tilt 6s ease-in-out infinite alternate;
}
.hero-sticker::before{
  content:"";position:absolute;top:-11px;left:50%;width:52px;height:16px;
  transform:translateX(-50%) rotate(-7deg);
  background:rgba(239,231,168,.8);
  border-left:1px dashed rgba(26,26,26,.3);
  border-right:1px dashed rgba(26,26,26,.3);
}
.hero-sticker img,.hero-sticker svg{display:block;width:100%;height:100%;object-fit:cover;border-radius:6px}

/* 正文 */
.sheet > *{min-width:0}
.sheet > article{
  padding:42px 0;
  border-top:1.5px dashed var(--line);
  scroll-margin-top:86px;
}
.sheet > article:first-child{border-top:0;padding-top:10px}
.sheet h2{
  margin:34px 0 4px;
  font-size:clamp(21px,4.6vw,30px);line-height:1.3;
  font-weight:800;letter-spacing:-.012em;max-width:26ch;
}
.sheet h3{margin:26px 0 4px;font-size:20px;line-height:1.35;font-weight:800;max-width:28ch}
.sheet p{margin:0 0 15px;max-width:64ch;color:#262626}
.sheet ul,.sheet ol{padding-left:22px;margin:0 0 16px;max-width:62ch}
.sheet li{margin:5px 0}
.sheet a{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.sheet a:hover{background:var(--tape)}
.sheet blockquote{
  margin:20px 0;padding:13px 17px;
  border-left:3px solid var(--ink);background:#f2f2e9;
  border-radius:0 10px 10px 0;color:#333;
}
.sheet blockquote p:last-child{margin:0}
.sheet img{max-width:100%;height:auto;border:1.5px solid var(--ink);border-radius:10px}
.sheet figure{margin:20px 0}
.sheet table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:16px}
.sheet th,.sheet td{border-bottom:1px dashed var(--line);padding:8px 6px;text-align:left;vertical-align:top}
.sheet pre{overflow-x:auto;padding:12px;background:#f1f1e8;border-radius:10px;border:1px solid var(--line)}

/* 右侧栏 */
.jump{
  margin:0;padding:18px 16px 16px;
  background:#fff;border:1.5px solid var(--ink);
  border-radius:14px 6px 16px 8px;
  box-shadow:5px 7px 0 rgba(26,26,26,.1);
  transform:rotate(.5deg);
}
.jump h2{margin:0;font-size:19px;font-weight:800;letter-spacing:.01em}
.jump hr{margin:8px 0 4px}
.jump ol{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:1px}
.jump li{opacity:0;transform:translateY(6px);animation:pop .34s ease-out forwards}
.jump li:nth-child(1){animation-delay:.03s}
.jump li:nth-child(2){animation-delay:.07s}
.jump li:nth-child(3){animation-delay:.11s}
.jump li:nth-child(4){animation-delay:.15s}
.jump li:nth-child(5){animation-delay:.19s}
.jump li:nth-child(6){animation-delay:.23s}
.jump li:nth-child(7){animation-delay:.27s}
.jump a{
  display:flex;align-items:center;min-height:40px;padding:0 6px;
  font-size:16px;text-decoration:none;
  border-bottom:1px dashed var(--line);
}
.jump a:hover{background:#f5f5ec;text-decoration:underline wavy 1.5px}
.jump-fig{margin:14px 0 0}
.jump-fig svg{width:100%;height:auto;opacity:.85}

/* 页脚 */
footer{
  margin-top:12px;
  padding:30px 16px 22px;
  border-top:2px solid var(--ink);
  background:#f2f2ea;
  display:grid;gap:24px;
}
.foot-top{display:grid;gap:24px}
.foot-brand{margin:0;font-size:clamp(20px,5vw,26px);font-weight:800;letter-spacing:-.02em}
.foot-claim{
  display:inline-flex;align-items:center;min-height:40px;
  font-size:16px;font-weight:700;text-decoration:underline wavy 1.5px;
  text-underline-offset:4px;
}
.foot-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0 0;max-width:360px}
.foot-form label{font-size:16px;font-weight:700}
.foot-form input{
  flex:1 1 130px;min-height:44px;padding:8px 10px;
  font:inherit;font-size:16px;color:var(--ink);
  background:#fff;border:1.5px solid var(--ink);border-radius:9px 4px 10px 5px;
}
.foot-form button{
  min-height:44px;padding:8px 16px;font:inherit;font-size:16px;font-weight:800;
  color:#fff;background:var(--ink);border:1.5px solid var(--ink);
  border-radius:10px 4px 11px 5px;cursor:pointer;
}
.foot-form button:hover{background:var(--gray)}
.foot-cols{display:grid;grid-template-columns:1fr;gap:16px}
.foot-cols dl{margin:0}
.foot-cols dt{font-size:16px;font-weight:800;letter-spacing:.06em;border-bottom:1.5px solid var(--ink);padding-bottom:4px}
.foot-cols dd{margin:0}
.foot-cols a{
  display:inline-flex;align-items:center;min-height:40px;
  font-size:16px;text-decoration:none;
}
.foot-cols a:hover{text-decoration:underline wavy 1.5px}
.foot-base{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:10px;padding-top:16px;border-top:1.5px dashed #bfbfb4;font-size:16px;
}
.foot-base p{margin:0}
.foot-base a{display:inline-flex;align-items:center;min-height:40px;font-weight:700;text-decoration:none}
.foot-base a:hover{text-decoration:underline wavy 1.5px}

@keyframes drift{
  from{transform:translate3d(0,0,0) }
  to{transform:translate3d(10px,-12px,0)}
}
@keyframes tilt{
  from{transform:rotate(-4deg)}
  to{transform:rotate(-1.4deg)}
}
@keyframes pop{
  to{opacity:1;transform:none}
}

@media (min-width:560px){
  .foot-cols{grid-template-columns:repeat(3,1fr)}
}

@media (min-width:900px){
  .rail{
    right:auto;bottom:0;width:200px;
    flex-direction:column;align-items:flex-start;flex-wrap:nowrap;
    gap:20px;padding:26px 20px;
    background:transparent;border-bottom:0;
    border-right:1.5px dashed var(--line);
  }
  .rail-mark{width:48px;height:48px}
  .rail-nav{flex:0 0 auto;width:100%}
  .rail-nav ol{flex-direction:column;gap:1px;overflow:visible;padding:0}
  .rail-nav a{width:100%;padding:0 10px}
  .rail-contact{margin-top:auto;width:100%;justify-content:center}

  main{margin-left:200px;grid-template-columns:minmax(0,1fr) 288px;column-gap:38px;padding:24px 30px 56px}
  .hero{grid-template-columns:minmax(0,1fr) 170px;gap:26px;min-height:70vh;padding:64px 0 52px}
  .side{grid-column:2;align-self:start;position:sticky;top:24px}
  .sheet > article{scroll-margin-top:24px;padding:52px 0}

  footer{margin-left:200px;padding:38px 30px 26px;grid-template-columns:minmax(0,1fr)}
  .foot-top{grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);gap:36px}
  .foot-cols{gap:22px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .jump li{opacity:1;transform:none}
}

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