:root{
  --z-a: 0;
  --z-b: 10;   /* 如需让 B 永远在最上方，可改成更大：比如 100 */
  --z-c: 0;
  --z-d: 20;
}

html,body{
  margin:0;
  font-family: system-ui, sans-serif;
  background:#f4f6fb;
}
body{ min-height: 300vh; }

strong{
  font-size: 3em;
  font-weight:bold;
}

/* A：底层流动 */
.rect-a{
  position: relative;
  z-index: var(--z-a);
  height: 40vh;
  background: rgb(0 27 199 / 1);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.08);
}

/* 可选：如果 CSP 禁止行内样式，把第一块 rect-a 设为白色
.rect-a:first-of-type { background: #fff; }
*/

/* B：固定半透明层（毛玻璃条） */
.rect-b {
  position: fixed;
  top: 20%;
  left: 0;
  z-index: var(--z-b);
  width: 100%;
  height: 15vh;

  /* 毛玻璃核心 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* 细节美化 */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;

  /* 如遇个别浏览器不触发毛玻璃，可启用超低透明底色：
     background: hsl(0 0% 100% / 0.01);
  */
}
.rect-b img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 叠放容器：C 与 D 同位重叠 */
.stack{
  position: relative;
  display: grid;
  height: 50vh;
  place-items: center;     /* 子项在网格正中 */
}
.stack > *{
  grid-area: 1 / 1;
}

/* C：较小宽度（居中） */
.rect-c{
  position: relative;
  z-index: var(--z-c);
  width: 80%;
  height: 100%;
  margin: 0 auto;
  background: rgba(91,212,0,1);
  display: grid;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.15);
}

/* D：叠在 C 上且更高层（居中） */
.rect-d{
  position: relative;
  z-index: var(--z-d);
  width: 45%;
  height: 70%;

  /* 关键：不要外边距顶开，保持正中 */
  margin: 0;

  background: rgba(250,194,82,1);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  opacity: 1;
  border-radius: 12px;
  border: 1px solid black;
}

/* 说明卡片 */
.long{
  width: 80%;
  margin: 8vh auto 16vh;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  position: relative;
  z-index: 1;
}
