/* ============================================================
   首页 · 墙上最左画框（护眼桌面）的壁纸列表与大图
   样式沿用 prototype.html 已定稿的列表：左对齐、缩略图 + 名称 + 分辨率、发丝分隔线
   仅新增：列表右上角的小关闭按钮
   ============================================================ */

.wp-zone{
  position:absolute;
  left:43%;top:11%;width:33%;height:46%;
  z-index:30;                      /* 置顶：高于滚动窗/画框/墙上文字，低于灯箱(45) */
  pointer-events:none;
  opacity:0;visibility:hidden;
  font-family:var(--sans,"PingFang SC","Microsoft YaHei",system-ui,sans-serif);
  transition:opacity .32s var(--ease,ease),visibility .32s;
}
.wp-zone.on{opacity:1;visibility:visible}

/* 壁纸列表展开期间：滚动窗/墙上文字/滚动提示淡出；
   画框及其标签文字（护眼桌面 / 关于我 / 我的产品）保留显示，仅禁用交互，
   避免误触发墙上浮字。只有手动关闭列表（× 或 Esc）后 .wp-open 移除才恢复。 */
.wall-words,.scroll-cue,.m-brand{transition:opacity .3s var(--ease,ease)}
.scene.wp-open .wall-news,
.scene.wp-open .wall-words,
.scene.wp-open .scroll-cue,
.scene.wp-open .m-brand{
  opacity:0;
  pointer-events:none;
}
.scene.wp-open .frames{pointer-events:none}
@keyframes wpZoneIn{from{opacity:0}to{opacity:1}}
.wp-zone.on .wp-list{animation:wpZoneIn .45s var(--ease,ease) .06s both}

.wp-list{
  position:absolute;left:2%;right:2%;top:13%;bottom:3%;
  margin:0;padding:0 4px 0 0;list-style:none;
  overflow-y:auto;overflow-x:hidden;
  pointer-events:none;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 94%,transparent 100%);
          mask-image:linear-gradient(to bottom,#000 0%,#000 94%,transparent 100%);
  scrollbar-width:thin;scrollbar-color:rgba(120,92,62,.22) transparent;
}
.wp-zone.on .wp-list{pointer-events:auto}
.wp-list::-webkit-scrollbar{width:3px}
.wp-list::-webkit-scrollbar-thumb{background:rgba(120,92,62,.22)}

.wp-row{margin:0;padding:0}
.wp-row button{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;margin:0;padding:clamp(2px,.28vh,4px) 0;
  background:none;border:0;border-bottom:1px solid rgba(120,92,62,.085);
  text-align:left;font-family:inherit;
  font-size:clamp(10px,.78vw,12.5px);line-height:1.42;
  color:rgba(74,58,40,.88);cursor:pointer;
  transition:color .25s var(--ease,ease);
}
.wp-row button:hover,
.wp-row button:focus-visible{color:#B4623A}
.wp-row button:focus-visible{outline:1px dashed rgba(122,84,50,.4);outline-offset:2px}
.wp-row .wp-t{
  flex:1 1 auto;min-width:0;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  white-space:normal;overflow:hidden;
}
.wp-row .wp-s{
  flex:0 0 auto;max-width:34%;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.82em;letter-spacing:0;color:rgba(74,58,40,.44);
}
.wp-row .wp-thumb{
  flex:0 0 auto;
  width:clamp(26px,2.6vw,42px);aspect-ratio:16/9;height:auto;
  object-fit:cover;border-radius:1px;opacity:.82;
  transition:opacity .25s var(--ease,ease);
}
.wp-row button:hover .wp-thumb{opacity:1}

/* 列表右上角的小 × ：仅一个字形，无背景无边框 */
.wp-close{
  position:absolute;right:6px;top:calc(13% - 22px);
  width:20px;height:20px;padding:0;
  background:none;border:0;border-radius:2px;
  font-family:var(--sans,system-ui,sans-serif);
  font-size:14px;line-height:18px;text-align:center;
  color:rgba(74,58,40,.34);
  cursor:pointer;pointer-events:none;
  transition:color .25s var(--ease,ease),background .25s var(--ease,ease);
}
.wp-zone.on .wp-close{pointer-events:auto}
.wp-close:hover,
.wp-close:focus-visible{color:rgba(74,58,40,.88);background:rgba(255,255,255,.35)}
.wp-close:focus-visible{outline:1px dashed rgba(122,84,50,.4);outline-offset:1px}

/* ============================================================
   壁纸大图 lightbox
   ============================================================ */
.wp-lightbox{
  position:fixed;inset:0;z-index:45;display:none;
  background:rgba(20,16,12,.96);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  align-items:center;justify-content:center;flex-direction:column;
}
.wp-lightbox.on{display:flex}
.wp-lb-close{
  position:absolute;right:18px;top:14px;z-index:50;
  width:34px;height:34px;padding:0;
  background:none;border:0;cursor:pointer;
  font-size:26px;line-height:30px;color:rgba(255,255,255,.7);
}
.wp-lb-close:hover,
.wp-lb-close:focus-visible{color:#fff}
.wp-lb-close:focus-visible{outline:1px dashed rgba(255,255,255,.5);outline-offset:2px}
.wp-lb-stage{position:relative;max-width:94vw;max-height:82vh;display:flex;align-items:center;justify-content:center}
.wp-lb-img{
  display:block;max-width:94vw;max-height:82vh;object-fit:contain;
  border-radius:2px;box-shadow:0 24px 70px -20px rgba(0,0,0,.7);
}
.wp-lb-actions{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;
  margin-top:16px;padding:0 16px;max-width:94vw;
  font-family:inherit;
}
.wp-lb-cap{font-size:12px;letter-spacing:.04em;color:rgba(255,255,255,.72)}
.wp-lb-dl-m,
.wp-lb-src{
  font-family:inherit;font-size:12px;letter-spacing:.04em;
  color:rgba(255,255,255,.82);text-decoration:none;cursor:pointer;
  padding:6px 12px;border:1px solid rgba(255,255,255,.32);border-radius:3px;
  background:rgba(255,255,255,.06);
}
.wp-lb-dl-m:hover,
.wp-lb-src:hover{background:rgba(255,255,255,.16);color:#fff}
/* 桌面端也常驻显示下载按钮，避免用户找不到；悬停时另有跟随鼠标的快捷按钮 */
.wp-lb-dl-m{display:inline-block}
.wp-lb-src{font-size:11px;color:rgba(255,255,255,.6)}
.wp-lb-tip{
  margin:10px 16px 0;max-width:min(720px,92vw);text-align:center;
  font-family:inherit;font-size:12px;line-height:1.7;
  color:rgba(255,255,255,.75);
}
.wp-lb-tip:empty{display:none}

@media (max-aspect-ratio: 7/5), (max-width: 820px){
  .wp-zone{display:none}
  .wp-lb-stage{max-height:74vh}
  .wp-lb-img{max-height:74vh}
  .wp-lb-dl-m{display:inline-block}

  /* 移动端「护眼桌面」壁纸网格：两列、缩略图 + 说明，沿用 prototype 定稿样式 */
  .m-gallery{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;list-style:none;margin:0;padding:0;
  }
  .m-gallery button{
    display:block;width:100%;padding:0;background:none;border:0;text-align:left;cursor:pointer;
  }
  .m-gallery img{
    display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:2px;
    box-shadow:0 4px 14px -8px rgba(90,50,20,.4);
  }
  .m-gallery .mc{
    display:block;margin-top:7px;
    font-family:var(--sans, system-ui, sans-serif);font-size:12px;line-height:1.5;
    color:rgba(74,58,40,.62);
  }
  .m-gallery button:active img{opacity:.82}
}
@media (prefers-reduced-motion: reduce){
  .wp-zone,.wp-list,.wp-close{animation:none;transition-duration:.15s}
}
