@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&family=Comic+Neue:wght@300;400;700&display=swap');

:root{
  --red:#E8402A;
  --cream:#FFF6E5;
  --ink:#1F2A44;
  --leaf:#2E9E5B;
  --paper:#FFFFFF;
  --soft:rgba(31,42,68,.16);
}

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

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

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Baloo 2','Comic Neue','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.7;
  font-weight:500;
}

img{max-width:100%;height:auto;display:block;border-radius:4px}
a{color:var(--red)}
a:focus-visible{outline:3px solid var(--ink);outline-offset:2px}

/* 品牌行 */
.masthead{
  background:var(--red);
  border-bottom:4px solid var(--ink);
}
.masthead-in{
  max-width:1180px;
  margin:0 auto;
  padding:10px 20px;
}
.mark{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  color:#fff;
  text-decoration:none;
  font-size:22px;
  font-weight:700;
  letter-spacing:.02em;
  transition:opacity .15s ease;
}
.mark:hover{opacity:.82}
.mark-icon{width:34px;height:34px;flex:none}

/* 布局 */
.layout{
  display:grid;
  grid-template-columns:252px minmax(0,1fr);
  gap:30px;
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:28px 20px 64px;
}

/* 左侧菜单 */
.side{
  position:sticky;
  top:16px;
  max-height:calc(100vh - 32px);
  overflow:auto;
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:4px;
  padding:14px;
}
.side-title{
  margin:0;
  font-size:17px;
  letter-spacing:.04em;
  line-height:1.5;
}
.side-rule{
  border:0;
  border-top:3px solid var(--ink);
  margin:8px 0 12px;
}
.menu ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px;
}
.menu a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:6px 10px;
  border:2px solid transparent;
  border-radius:4px;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  line-height:1.4;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease;
}
.menu a:hover,.menu a:focus-visible{
  background:var(--red);
  color:#fff;
  border-color:var(--ink);
}
.menu-ico{
  display:inline-flex;
  width:16px;
  height:16px;
  flex:none;
  color:currentColor;
}
.menu-ico svg{width:16px;height:16px;display:block}

/* 正文 */
.page-body{min-width:0}

.page-body > article{
  padding:44px 0;
  border-bottom:3px solid var(--soft);
  scroll-margin-top:24px;
}
.page-body > article:last-child{
  border-bottom:0;
  padding-bottom:8px;
}
.page-body > article.hero{
  padding:8px 0 40px;
  border-bottom:4px solid var(--ink);
}

.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:24px;
  align-items:center;
  min-height:70vh;
  overflow:hidden;
}
.hero-copy{position:relative;z-index:2;min-width:0}
.hero-h1{
  margin:0 0 18px;
  font-size:clamp(30px,4.6vw,52px);
  line-height:1.24;
  font-weight:700;
  letter-spacing:.01em;
}
.hero-desc{
  margin:0;
  max-width:32em;
  padding-left:14px;
  border-left:4px solid var(--red);
}
.hero-art{
  position:relative;
  z-index:2;
  margin:0;
  justify-self:end;
  width:100%;
  max-width:220px;
  aspect-ratio:1;
}
.hero-art svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  animation:art-roll 12s linear infinite;
}
.hero-art svg + svg{animation-delay:4s}
.hero-art svg + svg + svg{animation-delay:8s}
.hero-img{width:100%;height:100%;object-fit:contain}
.hero-ghost{
  position:absolute;
  right:-6px;
  bottom:28px;
  z-index:1;
  font-size:clamp(52px,9vw,124px);
  line-height:.78;
  font-weight:700;
  letter-spacing:.03em;
  color:transparent;
  -webkit-text-stroke:2px rgba(232,64,42,.32);
  pointer-events:none;
  user-select:none;
}
@keyframes art-roll{
  0%{opacity:0;transform:translateY(8px)}
  5%{opacity:1;transform:none}
  30%{opacity:1}
  34%{opacity:0;transform:none}
  100%{opacity:0}
}

.page-body h2{
  margin:0 0 8px;
  font-size:clamp(22px,2.8vw,30px);
  line-height:1.35;
  font-weight:700;
}
.page-body h3{
  margin:26px 0 8px;
  font-size:20px;
  line-height:1.4;
  font-weight:700;
}
.page-body p{margin:0 0 1em}
.page-body ul,.page-body ol{margin:0 0 1em;padding-left:1.4em}
.page-body li{margin-bottom:.45em}
.page-body hr{
  border:0;
  border-top:3px solid var(--red);
  width:64px;
  margin:0 0 18px;
}
.page-body blockquote{
  margin:0 0 1em;
  padding:12px 16px;
  border-left:5px solid var(--ink);
  background:var(--paper);
  border-radius:4px;
}
.page-body strong{font-weight:700}
.page-body a{text-decoration:underline;text-underline-offset:3px}
.page-body table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 1em}
.page-body th,.page-body td{border:2px solid var(--soft);padding:8px 10px;text-align:left}
.page-body img{margin:0 0 1em}
.page-body figure{margin:0 0 1em}

/* 滚动显现 */
.js .page-body > article{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease,transform .5s ease;
}
.js .page-body > article.in{
  opacity:1;
  transform:none;
}

/* 页脚 */
.foot-band{
  background:var(--ink);
  color:var(--cream);
  border-top:5px solid var(--red);
}
.site-foot{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:26px;
  max-width:1180px;
  margin:0 auto;
  padding:40px 20px 0;
}
.site-foot h3{
  margin:0 0 8px;
  font-size:17px;
  color:#fff;
  letter-spacing:.03em;
  line-height:1.5;
}
.site-foot ul{list-style:none;margin:0;padding:0}
.site-foot a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:2px 0;
  color:var(--cream);
  text-decoration:none;
  border-bottom:2px solid transparent;
  transition:color .15s ease,border-color .15s ease;
}
.site-foot a:hover,.site-foot a:focus-visible{
  color:#FFBCA8;
  border-bottom-color:var(--red);
}
.foot-tomato{width:30px;height:30px;margin-bottom:6px;display:block}
.copyright{
  grid-column:1/-1;
  margin:26px 0 0;
  padding:14px 0 30px;
  font-size:16px;
  color:rgba(255,246,229,.72);
  border-top:2px solid rgba(255,246,229,.22);
}

@media (max-width:760px){
  .layout{
    grid-template-columns:minmax(0,1fr);
    gap:0;
    padding:0 16px 48px;
  }
  .side{
    position:sticky;
    top:0;
    z-index:20;
    max-height:none;
    overflow:visible;
    margin:0 -16px;
    padding:10px 16px;
    border:0;
    border-bottom:2px solid var(--ink);
    border-radius:0;
    background:var(--cream);
  }
  .side-title,.side-rule{display:none}
  .menu ul{
    grid-auto-flow:column;
    grid-auto-columns:max-content;
    gap:8px;
    overflow-x:auto;
    padding-bottom:2px;
  }
  .menu a{
    min-height:44px;
    padding:6px 12px;
    background:var(--paper);
    border:2px solid var(--ink);
  }
  .page-body > article{
    padding:34px 0;
    scroll-margin-top:78px;
  }
  .hero{
    grid-template-columns:minmax(0,1fr) 108px;
    gap:14px;
    min-height:0;
    padding:24px 0 30px;
  }
  .hero-art{max-width:108px}
  .hero-h1{font-size:clamp(26px,7.4vw,38px)}
  .hero-ghost{
    font-size:clamp(40px,13vw,72px);
    bottom:14px;
  }
  .site-foot{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:32px 16px 0;
  }
  .copyright{padding:14px 0 26px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-art svg{animation:none;opacity:1}
  .hero-art svg + svg{display:none}
  .js .page-body > article{opacity:1;transform:none;transition:none}
}

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