/* 总站外壳：只负责顶栏、页脚和页面骨架，测试内部样式仍由 app.css / custom.css 决定 */
body.site-shell{
  --surface-base:#FAF9F5;
  --surface-alt:#FDF6EC;
  --surface-card:#FFFDF9;
  --text-primary:#1A1A1A;
  --text-secondary:#5C544C;
  --text-muted:#8A8178;
  --accent:#E07856;
  --accent-soft:#F2D9CE;
  --line:#E7DFD3;
  --font-head:"Source Han Serif SC","Noto Serif SC","Songti SC","SimSun",serif;
  --font-body:"Source Han Sans SC","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --content-max:1080px;
  --gutter:32px;
  --motion:cubic-bezier(.22,.61,.36,1);
  margin:0;background:var(--surface-base);color:var(--text-primary);
  font-family:var(--font-body);display:flex;flex-direction:column;min-height:100dvh;
}
body.site-shell *{box-sizing:border-box}
body.site-shell a{color:inherit;text-decoration:none}

body.site-shell .site-topbar{
  position:sticky;top:0;z-index:40;
  background:rgba(250,249,245,.94);backdrop-filter:saturate(1.2) blur(10px);
  border-bottom:1px solid var(--line);
}
body.site-shell .site-topbar-inner{
  max-width:var(--content-max);margin:0 auto;padding:14px var(--gutter);
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
body.site-shell .site-brand{display:flex;flex-direction:column;gap:2px;line-height:1.15}
body.site-shell .site-brand-name{font-family:var(--font-head);font-weight:700;font-size:19px;letter-spacing:.01em}
body.site-shell .site-brand-name i{font-style:normal;color:var(--accent)}
body.site-shell .site-brand-sub{font-size:11px;letter-spacing:.16em;color:var(--text-muted)}
body.site-shell .site-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end}
body.site-shell .site-nav a{
  font-size:14px;color:var(--text-secondary);padding:7px 14px;border-radius:9999px;
  border:1px solid transparent;transition:color .18s var(--motion),background .18s var(--motion);
  white-space:nowrap;
}
body.site-shell .site-nav a:hover{color:var(--text-primary);background:var(--surface-alt)}

body.site-shell .site-main{flex:1 0 auto;width:100%}
body.site-shell .shell-frame{width:100%;max-width:480px}
@media (min-width:900px){
  body.site-shell .shell-frame{max-width:760px}
  body.site-shell .site-boot{max-width:760px}
}
body.site-shell #root{width:100%;min-height:100%}
/* 原测试页用 100vh 撑满；套上总站外壳后改成自然高度，页脚才能贴底 */
body.site-shell #root [class*="min-h-screen"],
body.site-shell #root [class*="min-h-[100dvh]"]{min-height:auto !important}

body.site-shell .site-footer{margin-top:auto;border-top:1px solid var(--line);background:var(--surface-alt)}
body.site-shell .site-footer-inner{
  max-width:var(--content-max);margin:0 auto;padding:20px var(--gutter) 24px;
  display:flex;flex-direction:column;align-items:flex-start;gap:10px;color:var(--text-muted);
}
body.site-shell .site-footer-brand{font-family:var(--font-head);font-size:20px;font-weight:700;letter-spacing:-.01em;color:var(--text-secondary)}
body.site-shell .site-footer-note{font-size:12.5px;line-height:1.7}
body.site-shell .site-footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px}
body.site-shell .site-footer-links a{font-size:12.5px;color:var(--text-secondary)}
body.site-shell .site-footer-links a:hover{color:var(--accent)}

body.site-shell .site-boot{max-width:480px;margin:0 auto;padding:34px 20px 48px}
body.site-shell .site-boot-line{height:12px;border-radius:8px;background:var(--line);opacity:.55}
body.site-shell .site-boot-title{height:48px;border-radius:12px;background:var(--line);opacity:.6;margin-top:20px}
body.site-shell .site-boot-card{height:180px;border-radius:18px;background:var(--line);opacity:.38;margin-top:22px}
body.site-shell .site-boot-row{display:flex;gap:10px;margin-top:14px}
body.site-shell .site-boot-row span{flex:1;height:44px;border-radius:10px;background:var(--line);opacity:.4}

@media (max-width:760px){
  body.site-shell{--gutter:20px}
  body.site-shell .site-topbar-inner{flex-direction:column;align-items:flex-start;gap:8px;padding:12px var(--gutter) 10px}
  body.site-shell .site-brand-name{font-size:18px;white-space:nowrap}
  body.site-shell .site-nav{width:100%;justify-content:flex-start;gap:3px;flex-wrap:nowrap}
  body.site-shell .site-nav a{padding:5px 7px;font-size:12.5px}
}
