:root{
  --paper:#fafaf8;
  --ink:#1a1a1a;
  --grey:#4a4a4a;
  --tape:#e6dfc9;
  --soft:#f2f0e9;
  --edge:#fffdfa;
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  background-color:var(--paper);
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  color:var(--ink);
  font-family:"Comic Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  letter-spacing:.01em;
}

img{max-width:100%;display:block}

a{color:inherit}

:focus-visible{
  outline:3px solid var(--grey);
  outline-offset:3px;
}

/* 页头 */
.masthead{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(250,250,248,.96);
  border-bottom:2px dashed var(--grey);
  padding:8px clamp(14px,3vw,34px) 0;
}

.brandline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width:1240px;
  margin:0 auto;
  padding-bottom:4px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:4px 2px;
  text-decoration:none;
  color:var(--ink);
  font-family:"Baloo 2","Comic Neue","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:1.35rem;
  font-weight:700;
  letter-spacing:.02em;
}

.mark{
  width:22px;
  height:22px;
  flex:0 0 auto;
  border:2.5px solid var(--ink);
  border-radius:62% 38% 54% 46% / 48% 58% 42% 52%;
  background:var(--soft);
  transform:rotate(-9deg);
}

img.mark{object-fit:contain;background:transparent}

.contact{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 14px;
  text-decoration:none;
  font-size:1rem;
  font-weight:700;
  color:var(--ink);
  border:2px solid var(--ink);
  border-radius:16px 6px 16px 6px / 6px 16px 6px 16px;
  background:var(--soft);
  box-shadow:3px 3px 0 rgba(26,26,26,.18);
  transition:transform .12s steps(2),box-shadow .12s steps(2);
}

.contact:hover{
  transform:translate(-1px,-1px) rotate(-1deg);
  box-shadow:4px 4px 0 rgba(26,26,26,.28);
}

/* 主导航 */
.menu{max-width:1240px;margin:0 auto}

.menu-row{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:2px 4px;
  margin:0;
  padding:6px 0 6px;
  border-top:2px solid var(--ink);
}

.menu-row > li{position:relative}

.menu-row a{
  display:block;
  min-height:42px;
  padding:9px 12px;
  font-size:1rem;
  font-weight:700;
  text-decoration:none;
  color:var(--ink);
  border-bottom:3px solid transparent;
  transition:transform .1s steps(2),background-color .1s steps(2);
}

.menu-row a:hover,
.menu-row a:focus-visible{
  background:var(--soft);
  border-bottom-color:var(--ink);
  transform:rotate(-1.2deg);
}

.has-drop > a::after{
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  margin-left:7px;
  vertical-align:2px;
  border-right:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
  transform:rotate(45deg);
}

.drop{
  list-style:none;
  position:absolute;
  left:0;
  top:100%;
  min-width:190px;
  margin:0;
  padding:6px;
  display:none;
  z-index:40;
  background:var(--edge);
  border:2px solid var(--ink);
  border-radius:16px 6px 16px 6px / 6px 16px 6px 16px;
  box-shadow:5px 5px 0 rgba(26,26,26,.16);
}

.has-drop:hover .drop,
.has-drop:focus-within .drop{display:block}

.drop a{border-bottom:0;min-height:40px;padding:8px 10px}
.drop a:hover{background:var(--soft)}

/* 主体网格 */
main{
  max-width:1240px;
  margin:0 auto;
  padding:26px clamp(14px,3vw,34px) 64px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 268px;
  gap:36px;
  align-items:start;
}

.sheet{min-width:0}

/* 头部大图 */
.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:70vh;
  margin:0 0 40px;
  overflow:hidden;
  border:2.5px solid var(--ink);
  border-radius:22px 10px 22px 10px / 10px 22px 10px 22px;
  background:var(--soft);
  box-shadow:7px 8px 0 rgba(26,26,26,.14);
  scroll-margin-top:150px;
}

.hero-art{position:absolute;inset:0}

.hero-art img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(.35) contrast(1.07);
}

.hero-veil{
  position:absolute;
  inset:0;
  background:linear-gradient(185deg,rgba(26,26,26,.10) 10%,rgba(26,26,26,.84) 88%);
}

.hero-copy{
  position:relative;
  padding:clamp(20px,4vw,46px);
  max-width:44rem;
  text-align:left;
  color:var(--paper);
}

.hero--plain .hero-copy{color:var(--ink)}

.hero h1{
  margin:0 0 14px;
  font-family:"Baloo 2","Comic Neue","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:clamp(1.95rem,5.4vw,3.2rem);
  line-height:1.22;
  font-weight:700;
  letter-spacing:.01em;
}

.hero:not(.hero--plain) h1{text-shadow:2px 3px 0 rgba(0,0,0,.34)}

.hero .lead{
  margin:0;
  max-width:34rem;
  font-size:1.05rem;
  line-height:1.7;
  color:inherit;
  opacity:.94;
}

/* 正文卡片 */
article > section{scroll-margin-top:150px}

article > section:not(.hero){
  position:relative;
  margin:0 0 36px;
  padding:26px clamp(18px,3vw,32px) 22px;
  background:var(--edge);
  border:2px solid var(--ink);
  border-bottom-width:7px;
  border-radius:18px;
  box-shadow:5px 6px 0 rgba(26,26,26,.10);
  transform:rotate(-.32deg);
}

article > section:not(.hero):nth-of-type(even){transform:rotate(.36deg)}

article h2{
  margin:.15em 0 .35em;
  font-family:"Baloo 2","Comic Neue","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:clamp(1.35rem,3vw,1.72rem);
  line-height:1.32;
  letter-spacing:.01em;
}

article h2 + hr{
  border:0;
  border-top:3px dashed var(--grey);
  margin:.2em 0 1.1em;
  opacity:.8;
}

article h3{
  margin:1.5em 0 .45em;
  font-size:1.16rem;
  line-height:1.5;
}

article p{margin:0 0 1em;color:#232323}

article ul,
article ol{padding-left:1.35em;margin:0 0 1em}

article li{margin:.3em 0}

article a{
  color:var(--ink);
  text-decoration:underline wavy 1.5px;
  text-underline-offset:4px;
  padding:1px 2px;
}

article a:hover{background:var(--soft)}

article blockquote{
  margin:1.2em 0;
  padding:12px 18px;
  border-left:5px solid var(--grey);
  background:var(--soft);
}

article strong{font-weight:700}

/* 侧栏 */
.rail{
  position:sticky;
  top:132px;
  display:grid;
  gap:24px;
  min-width:0;
}

.rail-card{
  position:relative;
  padding:18px 16px 14px;
  background:var(--edge);
  border:2px solid var(--ink);
  border-radius:18px;
  box-shadow:4px 5px 0 rgba(26,26,26,.12);
  transform:rotate(.55deg);
}

.rail-card::before{
  content:"";
  position:absolute;
  top:-10px;
  left:50%;
  width:66px;
  height:19px;
  transform:translateX(-50%) rotate(-3.5deg);
  background:var(--tape);
  border:1px solid rgba(26,26,26,.22);
  opacity:.85;
}

.rail-card h2{
  margin:0 0 8px;
  font-family:"Baloo 2","Comic Neue","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:1.1rem;
  line-height:1.4;
}

.rail-card h2 + hr{
  border:0;
  border-top:2px dashed var(--grey);
  margin:0 0 10px;
  opacity:.75;
}

.rail-nav ul{list-style:none;margin:0;padding:0}

.rail-nav a{
  display:block;
  min-height:40px;
  padding:9px 6px;
  font-size:1rem;
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px dashed #d9d5cb;
  transition:transform .1s steps(2),background-color .1s steps(2);
}

.rail-nav li:last-child a{border-bottom:0}

.rail-nav a:hover{
  background:var(--soft);
  transform:translateX(3px);
}

/* 页脚 */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 26px;
  padding:20px clamp(14px,3vw,34px);
  border-top:2.5px solid var(--ink);
  background:var(--soft);
}

.foot-brand{
  font-family:"Baloo 2","Comic Neue","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:1.14rem;
  font-weight:700;
  letter-spacing:.02em;
}

.foot-nav ul{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:2px 14px;
  margin:0;
  padding:0;
}

.foot-nav a{
  display:inline-block;
  min-height:40px;
  padding:9px 2px;
  font-size:1rem;
  color:var(--grey);
  text-decoration:none;
  border-bottom:2px solid transparent;
}

.foot-nav a:hover,
.foot-nav a:focus-visible{
  color:var(--ink);
  border-bottom-color:var(--ink);
}

.foot-copy{
  font-size:1rem;
  color:var(--grey);
}

/* 滚动出现 */
.reveal{
  opacity:.001;
  translate:0 14px;
  transition:opacity .34s steps(4),translate .34s steps(4);
}

.reveal.in{
  opacity:1;
  translate:0 0;
}

/* 中屏 */
@media (max-width:1020px){
  main{grid-template-columns:minmax(0,1fr) 236px;gap:26px}
  .rail{top:120px}
}

/* 窄屏 */
@media (max-width:900px){
  body{font-size:17px}
  .masthead{position:static}
  main{grid-template-columns:minmax(0,1fr);padding-top:18px;gap:30px}
  .rail{position:static;grid-template-columns:minmax(0,1fr)}
  .hero{min-height:58vh;margin-bottom:30px;box-shadow:5px 6px 0 rgba(26,26,26,.14)}
  section > article,
  .hero{scroll-margin-top:20px}
  .drop{
    position:static;
    display:block;
    min-width:0;
    padding:0 0 2px 12px;
    border:0;
    border-left:2px dashed #cfcabd;
    box-shadow:none;
    background:transparent;
  }
  .drop a{min-height:40px}
  .foot{justify-content:flex-start}
  .foot-copy{width:100%}
}

@media (max-width:560px){
  .hero{min-height:52vh}
  .menu-row a{padding:9px 9px}
  section h2 + hr{margin-bottom:.9em}
}

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

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