/* 只读分享版：隐藏所有编辑入口，补上图片缩放布局 */
.import,
#selBtn,
#lbAgain,
#lbNo,
#lbFav,
#lbRaw,
#lbExport,
#tagAdd,
#tagDel {
  display: none !important;
}

/* 登录页（跟随相册主题变量） */
#gate {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 26px; overflow: auto; background: var(--c-bg, #F2F4F6);
}
#gate .gateBg {
  position: absolute; inset: 0; background: url(assets/cover.jpg) center/cover no-repeat;
  opacity: .08; filter: saturate(.7) contrast(.95); pointer-events: none;
}
#gate .grain {
  position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image: radial-gradient(rgba(60,80,100,.05) 1px, transparent 1px); background-size: 3px 3px;
}
#gate .gateCard {
  position: relative; z-index: 2; width: 100%; max-width: 390px;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-line, #E4E8EC); border-radius: 4px; padding: 44px 40px 34px;
  box-shadow: 0 30px 80px rgba(30,42,54,.14);
}
#gate .kick { font-size: 11px; letter-spacing: .42em; color: var(--c-accent, #5C8AA6); margin-bottom: 18px; }
#gate h1 { font-family: "STXingkai","KaiTi","Songti SC","SimSun",serif; font-size: 36px; font-weight: 400;
  letter-spacing: .1em; margin: 0 0 10px; line-height: 1.35; color: var(--c-ink, #1E252C); }
#gate p { font-size: 12px; color: var(--c-muted, #67717C); letter-spacing: .08em; line-height: 1.8; margin: 0 0 26px; }
#gate label { display: block; font-size: 11px; letter-spacing: .18em; color: var(--c-faint, #7B8590); margin: 14px 0 6px; }
#gate input { width: 100%; height: 42px; border: 1px solid var(--c-line, #E4E8EC);
  background: var(--c-surface-2, #F7F9FB); border-radius: 3px;
  padding: 0 12px; font-size: 14px; color: var(--c-ink, #1E252C); outline: none; letter-spacing: .04em; box-sizing: border-box; }
#gate input:focus { border-color: var(--c-accent, #5C8AA6); background: var(--c-surface, #fff); }
#gate button { width: 100%; height: 44px; margin-top: 24px; border: none; border-radius: 3px;
  background: var(--c-primary, #48698B); color: var(--c-bg, #F2F4F6);
  font-size: 14px; letter-spacing: .24em; cursor: pointer; font-family: inherit; }
#gate button:hover { filter: brightness(.94); }
#gate .gateMsg { min-height: 20px; font-size: 12px; color: var(--c-danger, #B4494F); margin-top: 12px; letter-spacing: .04em; }
#gate .gateFoot { font-size: 10.5px; color: var(--c-faint, #7B8590); line-height: 1.9; margin-top: 22px;
  border-top: 1px solid var(--c-line, #E4E8EC); padding-top: 16px; }
#gate.shake .gateCard { animation: gshake .4s; }
@keyframes gshake { 0%,100%{transform:translateX(0)}20%{transform:translateX(-7px)}40%{transform:translateX(7px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)} }

#lbCmt small { display: none !important; }
#lbCmt { cursor: default; }

#lb.zoomed .imgwrap {
  display: block !important;
  overflow: auto;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px;
  text-align: center;
}
#lb.zoomed #lbImg {
  margin: 0 auto;
  transition: none;
}
#lb #lbImg { transition: width .18s ease; }

/* 分享版不需要“原图路径”提示 */
#lbHint { color: #8a7c6b; }

/* 登录页手机适配 */
@media (max-width: 640px){
  #gate{ padding: 20px; }
  #gate .gateCard{ padding: 30px 22px 26px; border-radius: 8px; }
  #gate h1{ font-size: 25px; letter-spacing: .06em; }
  #gate .kick{ letter-spacing: .3em; }
  #gate p{ font-size: 13px; }
  #gate input{ height: 46px; font-size: 15px; }
  #gate button{ height: 48px; font-size: 15px; }
}

/* ---------- 只读分享版：藏掉所有会改数据的入口 ---------- */
/* 这些按钮点了会 POST 到 /api/*，静态站只会假成功，用户以为改了其实没改 */
#selBtn, #lbNo, #tagAdd, #tagDel, .chk, #lbFav { display: none !important; }
/* 顶栏少一个按钮，「仅视频」在窄屏上更不容易被挤掉 */
