@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{
  --paper:#fdfbf7;
  --sheet:#f5f5f5;
  --ink:#1a1a1a;
  --line:#e0e0e0;
  --soft:#4d4d4d;
  --radius:28px;
  --head:118px;
  --font:'Baloo 2','Comic Neue',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

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

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

body{
  margin:0;
  overflow-x:clip;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.8;
  letter-spacing:.01em;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.55;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
}

a{color:inherit}
img{max-width:100%}

.shell{position:relative;z-index:1;display:flex;flex-direction:column;min-height:100vh}
main{flex:1 1 auto}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* 顶栏：品牌独占一行，菜单行在下 */
.bar{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(253,251,247,.95);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(4px);
  padding-inline:max(18px,calc((100% - 1040px)/2));
}
.brand-row{display:flex;justify-content:center;padding:12px 0 8px}
.brand{font-size:1.06rem;font-weight:600;letter-spacing:.1em}
.menu-row{display:flex;align-items:center;gap:12px;padding:0 0 12px}
.burger{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:8px 17px;
  border:1px solid var(--ink);
  border-radius:999px;
  font-size:16px;
  letter-spacing:.12em;
  cursor:pointer;
  user-select:none;
  transition:background-color .12s linear,color .12s linear;
}
.burger .bars{display:inline-flex;flex-direction:column;justify-content:space-between;width:17px;height:12px}
.burger .bars i{display:block;height:2px;background:var(--ink);border-radius:2px}
.burger:hover{background:var(--ink);color:var(--paper)}
.burger:hover .bars i{background:var(--paper)}

/* 全屏遮罩菜单（桌面亦用） */
.drawer-toggle{position:absolute;opacity:0;pointer-events:none;width:0;height:0}
.drawer{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px max(18px,calc((100% - 1040px)/2)) 30px;
  background:var(--paper);
  overflow-y:auto;
  transform:translateX(-100%);
  visibility:hidden;
}
.drawer-toggle:checked ~ .drawer{transform:translateX(0);visibility:visible}
.drawer-head{display:flex;justify-content:flex-end}
.drawer-x{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 18px;
  border:1px solid var(--ink);
  border-radius:999px;
  font-size:16px;
  letter-spacing:.12em;
  cursor:pointer;
}
.drawer-x:hover{background:var(--ink);color:var(--paper)}
.drawer-nav{list-style:none;margin:0;padding:0;max-width:560px}
.drawer-nav li{border-bottom:1px dashed var(--line)}
.drawer-nav a{
  display:block;
  padding:15px 5px;
  font-size:1.18rem;
  line-height:1.5;
  text-decoration:none;
}
.drawer-nav a:hover{background:var(--sheet);text-decoration:underline;text-underline-offset:4px}

/* 首屏 */
.hero{
  position:relative;
  display:grid;
  place-items:end center;
  min-height:70vh;
  margin:0 0 22px;
  background:var(--ink);
  color:var(--paper);
  overflow:hidden;
}
.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.1);
  transform-origin:center top;
}
.hero-veil{position:absolute;inset:0;background:rgba(26,26,26,.52)}
.hero-copy{position:relative;max-width:780px;padding:44px 18px 46px;text-align:center}
.badge{
  display:inline-block;
  margin:0 0 14px;
  padding:6px 16px;
  border:1px solid rgba(253,251,247,.78);
  border-radius:999px;
  font-size:16px;
  line-height:1.5;
  letter-spacing:.1em;
}
.hero h1{
  margin:0;
  font-size:clamp(1.85rem,6.2vw,3rem);
  line-height:1.28;
  letter-spacing:.02em;
  text-shadow:0 1px 0 rgba(0,0,0,.2);
}

/* 正文 */
.body{max-width:820px;margin:0 auto;padding:0 18px 8px}
article [id]{scroll-margin-top:calc(var(--head) + 16px)}
.body > section{
  margin:0 0 20px;
  padding:24px 20px;
  background:rgba(255,255,255,.62);
  border:1px solid var(--line);
  border-radius:var(--radius);
  backdrop-filter:blur(6px);
}
.body > section:last-child{margin-bottom:26px}
.body h2{margin:0 0 12px;font-size:1.32rem;line-height:1.45;letter-spacing:.02em}
.body h3{margin:22px 0 8px;font-size:1.1rem;line-height:1.5}
.body p{margin:0 0 14px}
.body p:last-child{margin-bottom:0}
.body ul,.body ol{margin:0 0 14px;padding-left:1.25em}
.body li{margin:6px 0}
.body a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.body a:hover{background:var(--sheet)}
.body strong{font-weight:700}
.body blockquote{
  margin:0 0 16px;
  padding:12px 16px;
  background:var(--sheet);
  border-left:3px solid var(--ink);
  border-radius:0 16px 16px 0;
}
.body blockquote p:last-child{margin-bottom:0}
.body img{height:auto;border:1px solid var(--line);border-radius:18px}
.body figure{margin:0 0 16px}
.body figcaption{font-size:16px;color:var(--soft);margin-top:8px}
.body code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.94em;
  background:var(--sheet);
  padding:1px 5px;
  border-radius:6px;
}
.body pre{overflow-x:auto;background:var(--sheet);border:1px solid var(--line);border-radius:16px;padding:14px}
.body table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 16px}
.body th,.body td{border:1px solid var(--line);padding:8px 10px;text-align:left}
.body th{background:var(--sheet)}

/* 页脚：两栏 + 表单块 + 居中底栏 */
footer{
  display:grid;
  gap:26px 40px;
  margin-top:40px;
  padding:34px max(18px,calc((100% - 1040px)/2)) 0;
  background:var(--sheet);
  border-top:1px solid var(--line);
}
footer > section{min-width:0}
.foot-brand h2{margin:0 0 8px;font-size:1.24rem;letter-spacing:.05em}
.subtitle{margin:0;max-width:44ch;font-size:16px;line-height:1.8;color:var(--soft)}
.cap{margin:0 0 10px;font-size:16px;line-height:1.5;letter-spacing:.16em;color:var(--soft)}
.foot-links{list-style:none;margin:0;padding:0}
.foot-links a{
  display:block;
  min-height:40px;
  padding:9px 0;
  font-size:16px;
  text-decoration:none;
}
.foot-links a:hover{text-decoration:underline;text-underline-offset:4px}
.foot-form form{display:flex;flex-wrap:wrap;gap:10px;max-width:520px}
.foot-form input{
  flex:1 1 220px;
  min-height:46px;
  padding:10px 16px;
  border:1px solid var(--ink);
  border-radius:14px;
  background:var(--paper);
  color:var(--ink);
  font:inherit;
  font-size:16px;
}
.foot-form button{
  min-height:46px;
  padding:10px 22px;
  border:1px solid var(--ink);
  border-radius:14px;
  background:var(--ink);
  color:var(--paper);
  font:inherit;
  font-size:16px;
  cursor:pointer;
  transition:background-color .12s linear,color .12s linear;
}
.foot-form button:hover{background:var(--paper);color:var(--ink)}
.foot-base{grid-column:1/-1;margin-top:6px;padding:14px 0 26px;border-top:1px dashed #cfcfcf;text-align:center}
.foot-base p{margin:0;font-size:16px;color:var(--soft)}

@media (min-width:760px){
  .body{padding:0 24px 10px}
  .body > section{padding:30px 28px}
  footer{
    grid-template-columns:1.5fr 1fr;
    grid-template-areas:"a b" "c c" "d d";
  }
  footer > div:first-child{grid-area:a}
  footer > div:nth-child(2){grid-area:b}
  footer > div:nth-child(3){grid-area:c}
  .foot-base{grid-area:d}
  .hero-copy{padding:52px 24px 54px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important}
  .hero-img{transform:none}
}

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