/* 《小满》电脑端（zw-pc-page-xiaoman）
   页头页脚是宿主的，这一块是内容区：宽度跟着宿主走，铺满给的那一条。
   标题带一行，下面是摊开的院子；右上角一个「沉浸」开关。 */

.xm-pc {
  padding: 20px clamp(16px, 2vw, 32px) 10px;
  background: #F6F1E7;
}

.xm-pc * { box-sizing: border-box; }

.xm-pc .xm-pc-inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ---------- 标题带 ---------- */
.xm-pc .xm-pc-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 14px;
}

.xm-pc .xm-pc-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.xm-pc .xm-pc-seal {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: linear-gradient(160deg, #C1513F, #A63B31);
  color: #FDF6E8;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 23px;
  line-height: 44px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(150, 50, 40, .24), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.xm-pc .xm-pc-titles { min-width: 0; }

.xm-pc .xm-pc-name {
  margin: 0;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 5px;
  line-height: 1.12;
  color: #2F2C27;
}

.xm-pc .xm-pc-sub {
  margin: 5px 0 0;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: #8A8272;
}

.xm-pc .xm-pc-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 2px;
  min-width: 0;
}

.xm-pc .xm-pc-hint {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12.5px;
  letter-spacing: .3px;
  color: #948B7B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 「沉浸」按钮 */
.xm-pc .xm-pc-fs {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid #DED3BF;
  border-radius: 999px;
  background: #FFFDF8;
  color: #6B604C;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12.5px;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}

.xm-pc .xm-pc-fs:hover {
  background: #FFF8EA;
  border-color: #C9B28B;
  color: #7A5B2E;
  box-shadow: 0 3px 10px rgba(120, 95, 55, .12);
}

.xm-pc .xm-pc-fs:active { transform: translateY(1px); }

.xm-pc .xm-pc-fs[aria-pressed="true"] {
  background: #7A5B2E;
  border-color: #7A5B2E;
  color: #FFF8EA;
}

.xm-pc .xm-pc-fs-ico { width: 14px; height: 14px; }

/* ---------- 院子 ---------- */
.xm-pc .xm-pc-stage {
  position: relative;
  height: calc(100vh - 196px);
  min-height: 540px;
  border-radius: 18px;
  overflow: hidden;
  background: #FAF6EE;
  border: 1px solid #E3D8C6;
  box-shadow: 0 18px 40px rgba(70, 58, 40, .13), inset 0 0 0 1px rgba(255, 255, 255, .55);
  transition: box-shadow .2s, border-color .2s;
}

.xm-pc .xm-pc-stage:hover {
  border-color: #D8C9B0;
  box-shadow: 0 20px 46px rgba(70, 58, 40, .16), inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.xm-pc .xm-pc-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #FAF6EE;
  opacity: 0;
  transition: opacity .34s ease;
}

.xm-pc .xm-pc-stage.is-ready .xm-pc-frame { opacity: 1; }

/* 等院子开门：一层纸色 + 一行小字，载入完就退场
   这层纸只许看，不许挡：不然门开了，里面右下角那只小助手点都点不着 */
.xm-pc .xm-pc-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FAF6EE, #F3ECDF);
  font-family: "Songti SC", "SimSun", serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: #9A8F7C;
  transition: opacity .3s ease, visibility .3s;
}

.xm-pc .xm-pc-stage.is-ready .xm-pc-mask {
  opacity: 0;
  visibility: hidden;
  display: none;
}

/* ---------- 沉浸：院子铺满整个窗口 ---------- */
.xm-pc .xm-pc-stage.is-immersive {
  position: fixed;
  inset: 0;
  z-index: 9990;
  height: 100vh;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.xm-pc-locked { overflow: hidden; }

/* 沉浸的时候页面被院子盖住了，退出按钮就浮到右上角去 */
body.xm-pc-locked .xm-pc-fs {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 9995;
  height: 34px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 6px 18px rgba(60, 50, 35, .18);
}

body.xm-pc-locked .xm-pc-fs:hover { background: #FFF8EA; }

/* ---------- 窄窗（电脑上把窗口缩到一半） ---------- */
@media (max-width: 900px) {
  .xm-pc { padding: 12px 8px 4px; }
  .xm-pc .xm-pc-hero { padding-bottom: 10px; }
  .xm-pc .xm-pc-hint { display: none; }
  .xm-pc .xm-pc-stage {
    height: calc(100vh - 150px);
    min-height: 500px;
    border-radius: 12px;
  }
}