/* 全站壳层：与首页一致的左右留白与背景，子页不用窄栏居中 */
.top{
  height:56px;flex:none;display:flex;align-items:center;justify-content:space-between;
  padding:0 var(--edge);box-sizing:border-box;
  background:rgba(255,255,255,0.8);
  backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:.5px solid #D1D1D6;
}
.app{
  width:100%!important;max-width:none!important;min-height:100vh;min-height:100dvh;
  display:flex;flex-direction:column;box-sizing:border-box;
  background:#F2F2F7;color:#1D1D1F;
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','PingFang SC','Helvetica Neue','Noto Sans SC','Microsoft YaHei',sans-serif
}
:where(html[data-theme=dark]) .app{background:#0F141B;color:#E6EAF0}
/* 子页 #body.pg 边距见 layout.css，此处仅壳层与卡片 */
/* 子页卡片：克制阴影，避免浮夸渐变底 */
body.pg-page #body.pg .card{
  background:#fff;
  border:.5px solid rgba(60,60,67,.1);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
body.pg-page #body.pg .ans-hd::after,body.pg-page #body.pg .ent::after,body.pg-page #body.pg .prof::after{
  background:linear-gradient(180deg,rgba(255,255,255,.9),#fff);
}
:where(html[data-theme=dark]) body.pg-page #body.pg .card{background:#18202A;border-color:rgba(255,255,255,.09);box-shadow:none}
:where(html[data-theme=dark]) body.pg-page #body.pg .ans-hd::after,
:where(html[data-theme=dark]) body.pg-page #body.pg .ent::after,
:where(html[data-theme=dark]) body.pg-page #body.pg .prof::after{background:linear-gradient(180deg,rgba(24,32,42,.92),#18202A)}

/* 全站地标线稿底纹：子页不加载 home-polish.css，由壳层补回固定水印层 */
body::after{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22820%22 height=%22760%22 fill=%22none%22 stroke=%22%238E8E93%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cg transform=%22translate%2830 40%29 scale%281%29%22%3E%3Cpath d=%22M0 120h90M10 120V84l12-6v-8h8v8l30 8V70h10v-8h8v8h8v50M50 120V20M45 20h10M50 20l-3-12 3-5 3 5z%22/%3E%3C/g%3E%3Cg transform=%22translate%28330 20%29 scale%281%29%22%3E%3Cpath d=%22M0 120h140M10 120V70h120v50M24 70V52h92v18M40 52q30-56 60 0M70 6v-14M65 -2h10M10 96h120M30 120V98h16v22M94 120V98h16v22M0 120V84q8-12 16 0M124 84q8-12 16 0v36%22/%3E%3C/g%3E%3Cg transform=%22translate%28600 60%29 scale%280.95%29%22%3E%3Cpath d=%22M0 120h120M0 120l10-24h100l10 24M30 96V60h40v36M26 60l24-22 24 22M50 38V26M44 26h12M50 78m-9 0a9 9 0 1 0 18 0a9 9 0 1 0-18 0M50 78v-6M50 78l5 2%22/%3E%3C/g%3E%3Cg transform=%22translate%2870 300%29 scale%281%29%22%3E%3Cpath d=%22M0 120h130M14 120V70h100v50M8 70l56-28 56 28M44 50V30h40v20M40 30q24-30 48 0M64 6v-12M58 0h12M54 120V92q10-14 20 0v28M28 90h10v14H28zM90 90h10v14H90z%22/%3E%3C/g%3E%3Cg transform=%22translate%28360 320%29 scale%280.95%29%22%3E%3Cpath d=%22M0 120h140M0 120V70h30v-8h8v8h12v-8h8v8h24v-8h8v8h12v-8h8v8h30v50M60 120V96q10-14 20 0v24M10 70V58h10v12M120 70V58h10v12%22/%3E%3C/g%3E%3Cg transform=%22translate%28620 330%29 scale%281%29%22%3E%3Cpath d=%22M-10 120q30-8 60 0t60 0t60 0M40 100h60l-8-36H48zM36 64l34-28 34 28M58 100V84h12v16M60 112h20M46 104l-6 14M94 104l6 14%22/%3E%3C/g%3E%3Cg transform=%22translate%28180 560%29 scale%281%29%22%3E%3Cpath d=%22M-10 124q40-8 80 0t80 0t80 0M0 118l20-30h20l10-20h20l10 20h16l14-44h10l14 44 16 30M110 44h10M30 88V74h8v14M74 68V52h8v16%22/%3E%3C/g%3E%3Cg transform=%22translate%28520 560%29 scale%281%29%22%3E%3Cpath d=%22M0 120h100M40 120l6-96h8l6 96M42 80h16M38 24h24M44 24V8h12v16M50 8V-14M34 120l16-30 16 30%22/%3E%3C/g%3E%3C/svg%3E") 0 0/820px 760px repeat;opacity:.08;
 -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(50% - 640px),rgba(0,0,0,.38) calc(50% - 540px),rgba(0,0,0,.38) calc(50% + 540px),#000 calc(50% + 640px));
 mask-image:linear-gradient(90deg,#000 0,#000 calc(50% - 640px),rgba(0,0,0,.38) calc(50% - 540px),rgba(0,0,0,.38) calc(50% + 540px),#000 calc(50% + 640px))}
body::before{z-index:-1}
@media (max-width:1023px){html{background:#ECEEF2!important}body::after{opacity:.065;-webkit-mask-image:none;mask-image:none;background-size:600px 556px}}
@media (max-width:1023.98px){body.pg-page::after,body::after{opacity:.065;-webkit-mask-image:none;mask-image:none;background-size:600px 556px}}
@media print{body::after{display:none}}
