:root{
  --accent:#0071e3;
  --accent-dark:#0058b8;
  --coral:#ff6b35;
  --bg:#f6f5f2;
  --card:#ffffff;
  --text:#1d1d1f;
  --muted:#86868b;
  --line:rgba(0,0,0,.08);
  --radius:16px;
  --shadow:0 6px 24px rgba(20,30,50,.08);
  --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:16px;line-height:1.5;touch-action:manipulation;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
.hidden{display:none!important}
[hidden]{display:none!important}
button,a{font-family:inherit}
button{border:0;background:none;color:inherit;cursor:pointer}

/* ---------------- 进入页 ---------------- */
.gate{
  min-height:100dvh;display:flex;align-items:center;justify-content:center;
  padding:32px 22px calc(32px + var(--safe-b));
  background:
    radial-gradient(120% 70% at 50% -10%, #e8f2ff 0%, rgba(232,242,255,0) 60%),
    radial-gradient(90% 60% at 100% 100%, #fff0e8 0%, rgba(255,240,232,0) 55%),
    var(--bg);
}
.gate-inner{width:100%;max-width:400px;text-align:center;min-width:0}
.logo-mark{
  width:74px;height:74px;margin:0 auto 16px;border-radius:22px;
  display:grid;place-items:center;color:#fff;
  background:linear-gradient(145deg,#2b9bff,var(--accent) 55%,#0057b3);
  box-shadow:0 12px 28px rgba(0,113,227,.28);
}
.logo-mark svg{width:42px;height:42px}
.gate h1{font-size:34px;letter-spacing:.06em;margin:0 0 6px;font-weight:700}
.slogan{margin:0 0 30px;color:var(--muted);font-size:14px;letter-spacing:.03em}

#gateForm{display:flex;flex-direction:column;gap:14px;text-align:left}
.field{display:flex;flex-direction:column;gap:7px}
.field span{font-size:13px;color:var(--muted);padding-left:4px}
.field input{
  width:100%;min-width:0;
  height:52px;border-radius:14px;border:1px solid var(--line);background:var(--card);
  padding:0 16px;font-size:17px;color:var(--text);outline:none;
  transition:border-color .18s,box-shadow .18s;
}
.field input::placeholder{color:#b9b9be}
.field input:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(0,113,227,.12)}

.btn-primary{
  height:54px;border-radius:14px;background:var(--accent);color:#fff;
  font-size:17px;font-weight:600;letter-spacing:.04em;
  transition:transform .12s,background .18s;margin-top:6px;
}
.btn-primary:active{transform:scale(.98);background:var(--accent-dark)}
.btn-primary:disabled{opacity:.6}

.hint{margin:22px 0 0;font-size:12.5px;color:#9a9aa0;line-height:1.8}
.err{margin:14px 0 0;font-size:14px;color:#d9333f;background:#fff0f1;border-radius:12px;padding:10px 14px}
.notice{margin:14px 0 0;font-size:14px;color:#0b5c4f;background:#eef6f2;border-radius:12px;padding:10px 14px}

/* 进入页：扫码入口（桌面打开时用手机扫） */
.gate-qr{
  margin:18px auto 0;display:inline-flex;align-items:center;gap:7px;
  height:40px;padding:0 16px;border-radius:20px;
  background:rgba(0,113,227,.07);color:var(--accent);
  font-size:13.5px;font-weight:600;letter-spacing:.02em;
  transition:background .16s;
}
.gate-qr svg{width:17px;height:17px}
.gate-qr:active{background:rgba(0,113,227,.15)}

/* 进入页：管理员入口（低调小链接） */
.admin-link{
  display:block;margin:26px auto 0;border:none;background:none;
  font-size:12px;color:#b6b3ac;letter-spacing:.06em;
  text-decoration:underline;text-underline-offset:3px;
}
.admin-link:active{color:#8f8c85}

/* ---------------- 管理员面板 ---------------- */
.admin-login{max-width:420px;margin:40px auto 0;padding:0 24px}
.admin-login .btn-primary{width:100%;margin-top:6px}
.admin-body{max-width:720px;margin:18px auto 0;padding:0 18px 60px}
.admin-stat{font-size:13px;color:#8f8c85;text-align:center;margin:6px 0 18px}
.admin-pass-box{
  background:#fff;border:1px solid #e8e4dc;border-radius:16px;
  padding:0 16px;margin-bottom:16px;box-shadow:0 1px 4px rgba(40,36,30,.05);
}
.admin-pass-box summary{
  cursor:pointer;list-style:none;display:flex;align-items:center;
  height:46px;font-size:13.5px;font-weight:700;color:#57534b;
}
.admin-pass-box summary::-webkit-details-marker{display:none}
.admin-pass-box summary::after{
  content:'＋';margin-left:auto;color:#b5b0a6;font-size:15px;font-weight:400;
}
.admin-pass-box[open] summary::after{content:'－'}
.admin-pass-box form{padding:2px 0 16px}
.admin-pass-box .field{margin-bottom:10px}
.admin-pass-box .btn-primary{width:100%;margin-top:2px}
.admin-pass-box .err{margin-top:8px}
.admin-list{display:flex;flex-direction:column;gap:14px}
.blocked-toggle{
  width:100%;margin-top:16px;padding:12px 16px;border:1px dashed #e0b9b9;border-radius:14px;
  background:#fdf3f3;color:#a94a4a;font-size:13.5px;font-weight:700;
  display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;
}
.blocked-toggle:active{background:#fbeaea}
.blocked-toggle .bt-arrow{transition:transform .2s;font-size:12px}
.blocked-toggle.open .bt-arrow{transform:rotate(180deg)}
.blocked-list{margin-top:12px}
.admin-empty{text-align:center;color:#9a9aa0;font-size:13.5px;padding:22px 0}

.acard{
  background:#fff;border:1px solid #e8e4dc;border-radius:16px;
  padding:14px 16px;box-shadow:0 1px 4px rgba(40,36,30,.05);
}
.acard-blocked{border-color:#e5b4b4;background:#fff8f8}
.acard-top .acard-tt{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.acard-tt b{font-size:15.5px;color:#2d2a26}
.acard-top small{display:block;margin-top:3px;color:#9a958c;font-size:12px}
.acard-note{
  margin-top:8px;font-size:12.5px;color:#8a6d1a;background:#fdf6e3;
  border-radius:10px;padding:8px 10px;
}
.acard-ops{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.acard-lim{
  display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;
  margin-top:10px;padding:12px;border:1px dashed #cfc9bd;border-radius:12px;
  background:#faf8f3;
}
.acard-lim label{display:flex;flex-direction:column;gap:4px;font-size:11.5px;color:#6a665c;font-weight:600}
.acard-lim input{
  width:86px;height:34px;padding:0 9px;border:1px solid #d9d4ca;border-radius:9px;
  font:inherit;font-size:13.5px;background:#fff;color:#2d2a26;
}
.acard-lim small{width:100%;color:#9a958c;font-size:11.5px;font-weight:400}
.achip{
  height:32px;padding:0 14px;border-radius:16px;border:1px solid #d9d4ca;
  background:#faf8f4;color:#57534b;font-size:13px;font-weight:600;
}
.achip:active{background:#efece5}
.achip.danger{border-color:#e5b4b4;color:#b93a3a;background:#fdf3f3}
.achip.danger:active{background:#f9e4e4}
.achip.good{border-color:#bcd9c8;color:#1f7a4d;background:#eff8f3}

.ab{font-size:11px;font-weight:700;border-radius:9px;padding:2.5px 9px;letter-spacing:.04em}
.ab-ok{background:#eff5ee;color:#4d7c4a}
.ab-warn{background:#fdf3dc;color:#96700f}
.ab-block{background:#fbe3e3;color:#b93a3a}
.ab-flag{background:#f0ede6;color:#7a6f5d}

.agrid{
  margin-top:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:10px;
}
.acell{position:relative;border-radius:12px;overflow:hidden;background:#f2efe9}
.acell img{width:100%;height:112px;object-fit:cover;display:block;cursor:zoom-in}
.acell small{
  display:block;padding:5px 7px;font-size:11px;color:#7d776c;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.acell-hidden img{filter:blur(14px) grayscale(.6)}
.amask{
  position:absolute;top:6px;left:6px;font-size:11px;font-weight:700;
  background:rgba(185,58,58,.92);color:#fff;border-radius:8px;padding:2.5px 8px;
}
.aop{
  position:absolute;top:6px;right:6px;height:26px;padding:0 10px;
  border:none;border-radius:13px;font-size:12px;font-weight:700;
  background:rgba(255,255,255,.92);color:#57534b;box-shadow:0 1px 3px rgba(0,0,0,.15);
}
.aop.danger{color:#b93a3a}
.aop.good{color:#1f7a4d}

/* 照片墙顶部管理员警告条 */
#adminWarn{
  max-width:720px;margin:10px auto 0;width:calc(100% - 32px);
  font-size:13px;color:#8a6d1a;background:#fdf3d7;border:1px solid #eedfb2;
  border-radius:12px;padding:9px 12px;line-height:1.6;
}

/* ---------------- 照片墙 ---------------- */
/* 注：#wall 的 class 是 view，不是 .wall —— 整屏高度与底部留白必须写在 #wall 上 */
#wall{min-height:100dvh;padding-bottom:calc(110px + var(--safe-b))}

/* 三套视图主题：album 相纸册 / gallery 画廊墙 / collage 拼贴墙
   取色对应 design/photo-wall 三份原型：纸白 #FAF8F3 / 展墙灰 #E8E3D9 / 纸台黑 #14120E */
#wall{
  --w-bg:#FAF8F3;--w-top:rgba(250,248,243,.86);--w-deep:#F2EEE4;
  --w-ink:#26231F;--w-ink2:#57534A;--w-ink3:#6B655B;
  --w-hair:rgba(38,35,31,.10);--w-hair2:rgba(38,35,31,.22);
  background:var(--w-bg);color:var(--w-ink);
  transition:background-color .3s ease,color .3s ease;
}
html[data-layout="album"] body{background:#FAF8F3}
html[data-layout="gallery"] body{background:#E8E3D9}
html[data-layout="collage"] body{background:#14120E}

#wall[data-layout="gallery"]{
  --w-bg:#E8E3D9;--w-top:rgba(232,227,217,.93);--w-deep:#DED7C8;
  --w-ink:#17140F;--w-ink2:#4B463D;--w-ink3:#6B655B;
  --w-hair:rgba(23,20,15,.08);--w-hair2:rgba(23,20,15,.18);
}
#wall[data-layout="collage"]{
  --w-bg:#16130F;--w-top:rgba(20,18,14,.9);--w-deep:#2A251C;
  --w-ink:#F1E7D3;--w-ink2:rgba(241,231,211,.78);--w-ink3:rgba(241,231,211,.56);
  --w-hair:rgba(241,231,211,.13);--w-hair2:rgba(241,231,211,.3);
}

.topbar{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;
  gap:10px;
  padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px;
  background:var(--w-top);backdrop-filter:saturate(160%) blur(18px);
  -webkit-backdrop-filter:saturate(160%) blur(18px);
  border-bottom:1px solid var(--w-hair);
  color:var(--w-ink);
}
.album-meta{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.album-meta b{
  font-size:12.5px;letter-spacing:.2em;font-weight:600;color:var(--w-ink3);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.album-meta span{font-size:12px;color:var(--w-ink3);margin-top:5px;letter-spacing:.05em}
.top-actions{display:flex;gap:2px;flex:0 0 auto;margin-right:-6px}
.icon-btn{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  color:var(--w-ink2);transition:background .16s;
}
.icon-btn:active{background:var(--w-hair)}
.icon-btn svg{width:21px;height:21px;stroke-width:1.7}
.icon-btn.light{color:#fff;background:rgba(255,255,255,.14)}
.icon-btn.light:active{background:rgba(255,255,255,.26)}

.wall-main{padding:0}
@media(min-width:600px){
  .wall-main{max-width:560px;margin:0 auto}
  .topbar{padding-left:calc(50% - 264px);padding-right:calc(50% - 264px)}
  .fab{right:calc(50% - 280px)}
}
/* 开场：一行衬线 + 一行注解（仅相纸册） */
.lede{display:none;padding:26px 26px 30px}
.lede h1{
  margin:0;font-family:"Songti SC","Noto Serif CJK SC","Source Han Serif SC",serif;
  font-size:19px;font-weight:400;letter-spacing:.09em;line-height:1.3;color:var(--w-ink);
}
.lede p{
  margin:10px 0 0;display:flex;align-items:center;gap:9px;
  font-size:13.5px;letter-spacing:.03em;color:var(--w-ink3);
}
.lede p::before{content:"";width:18px;height:1px;background:rgba(38,35,31,.3);flex:none}

/* 统一的照片条目 */
.wall-list{min-width:0}
.e{margin:0;min-width:0;position:relative}
.shot{
  display:block;width:100%;padding:0;cursor:zoom-in;overflow:hidden;
  background:var(--w-deep);position:relative;
}
.shot img{display:block;width:100%;height:100%;object-fit:cover}
.e.new{animation:pop .34s ease both}
@keyframes pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.cap{
  display:flex;align-items:center;gap:7px;margin-top:12px;
  font-size:12.5px;line-height:1;letter-spacing:.04em;color:var(--w-ink2);
}
.cap .who{color:var(--w-ink);letter-spacing:.1em;white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}
.cap .sep{color:#A39C8E;font-size:11px;flex:none}
.cap .when{color:var(--w-ink3);font-variant-numeric:tabular-nums;white-space:nowrap}

/* 照片自带的一句话（上传时填的 ≤15 字） */
.pcap{
  margin:10px 0 0;padding:0 2px;
  font-family:"Songti SC","Noto Serif CJK SC",serif;
  font-size:13.5px;line-height:1.55;letter-spacing:.03em;color:var(--w-ink);
  word-break:break-word;
}
.mine{
  margin-left:3px;font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:11px;line-height:1.35;
  letter-spacing:.16em;color:var(--w-ink);padding-bottom:2px;border-bottom:1px solid rgba(38,35,31,.32);
  flex:none;
}
.votes{
  margin-left:auto;display:flex;align-items:center;gap:9px;flex:none;
  font-size:11.5px;letter-spacing:.02em;color:var(--w-ink3);font-variant-numeric:tabular-nums;
}
.votes .v{display:inline-flex;align-items:center;gap:3px}
.votes svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.votes .v.dn svg{transform:rotate(180deg)}
.votes .open{display:inline-flex;opacity:.5}
.votes .open svg{width:11px;height:11px;stroke-width:1.1}

/* 照片下方快捷操作：赞 / 踩 / 分享 / 下载 */
.acts{
  display:flex;align-items:center;gap:6px;margin-top:8px;flex-wrap:wrap;
}
.acts .act{
  display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 10px;
  border:1px solid rgba(38,35,31,.14);border-radius:13px;
  background:rgba(255,255,255,.72);color:var(--w-ink2);
  font-size:11.5px;font-weight:600;line-height:1;letter-spacing:.02em;
  cursor:pointer;
}
.acts .act i{font-style:normal;font-variant-numeric:tabular-nums}
.acts .act svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.acts .act.dn svg{transform:rotate(180deg)}
.acts .act.on{background:var(--accent,#A54C24);border-color:var(--accent,#A54C24);color:#fff}
.acts .act:active{opacity:.7}
.acts a.act{text-decoration:none}

/* ============ 视图一：相纸册（默认） ============ */
#wall[data-layout="album"] .lede{display:block}
#wall[data-layout="album"] .wall-main{padding:0}

#wall[data-layout="album"] .e{margin-bottom:58px}
#wall[data-layout="album"] .e:last-child{margin-bottom:10px}
#wall[data-layout="album"] .shot{background:transparent}

/* 横图：出血，像印在纸上，不裁 */
#wall[data-layout="album"] .e.r-l{width:100%}
#wall[data-layout="album"] .e.r-l .shot img{height:auto}
#wall[data-layout="album"] .e.r-l .cap{padding:0 26px}
#wall[data-layout="album"] .e.r-l .pcap{padding:0 26px}
#wall[data-layout="album"] .e.r-l .acts{padding:0 26px}

/* 竖图 / 方图：收窄成一张相纸，左右错开 */
#wall[data-layout="album"] .e.r-p,
#wall[data-layout="album"] .e.r-s{width:calc(100% - 84px);max-width:312px}
#wall[data-layout="album"] .e.r-p .shot{aspect-ratio:4/5}
#wall[data-layout="album"] .e.r-s .shot{aspect-ratio:1/1}
#wall[data-layout="album"] .e.off-l{margin-left:24px}
#wall[data-layout="album"] .e.off-r{margin-left:auto;margin-right:24px}
#wall[data-layout="album"] .e.r-p .shot,
#wall[data-layout="album"] .e.r-s .shot{
  outline:1px solid rgba(38,35,31,.07);outline-offset:-1px;
  box-shadow:0 1px 1px rgba(40,32,20,.10),0 12px 26px -16px rgba(40,32,20,.5);
}
#wall[data-layout="album"] .e.r-p .cap,
#wall[data-layout="album"] .e.r-s .cap{padding:0}
#wall[data-layout="album"] .e.r-p .pcap,
#wall[data-layout="album"] .e.r-s .pcap{padding:0}

/* ============ 视图二：画廊墙 ============ */
#wall[data-layout="gallery"] .topbar{
  padding:calc(11px + env(safe-area-inset-top,0px)) 14px 11px;
}
#wall[data-layout="gallery"] .album-meta b{
  font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:16px;font-weight:600;
  letter-spacing:.06em;color:var(--w-ink);
}
#wall[data-layout="gallery"] .album-meta span{font-size:11px;margin-top:3px;color:#57524A}
#wall[data-layout="gallery"] .wall-main{padding:12px 14px 0}

#wall[data-layout="gallery"] .wall-list{
  display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:6px;
  column-gap:10px;row-gap:0;grid-auto-flow:row dense;align-items:start;
}
#wall[data-layout="gallery"] .e{margin:0;align-self:start}
#wall[data-layout="gallery"] .e:first-child{grid-column:1/-1}
#wall[data-layout="gallery"] .shot{
  border-radius:2px;background:#DED7C8;
  box-shadow:0 1px 2px rgba(23,20,15,.09);
}
#wall[data-layout="gallery"] .cap{margin-top:7px;gap:4px;font-size:11px}
#wall[data-layout="gallery"] .pcap{
  margin-top:7px;font-size:12px;line-height:1.5;letter-spacing:.02em;
  color:#3F3A32;font-family:inherit;
}
#wall[data-layout="gallery"] .cap .who{
  font-size:11.5px;font-weight:600;letter-spacing:.02em;color:#4B463D;max-width:6.4em;
}
#wall[data-layout="gallery"] .cap .sep{font-size:9px;color:#A79F90}
#wall[data-layout="gallery"] .cap .when{font-size:10.5px;color:var(--w-ink3)}
#wall[data-layout="gallery"] .mine{
  font-family:inherit;font-size:9.5px;letter-spacing:.06em;border:0;padding:1.5px 5px;
  border-radius:2px;background:#A54C24;color:#fff;
}
#wall[data-layout="gallery"] .votes{font-size:10.5px;gap:7px}
#wall[data-layout="gallery"] .votes svg{width:11px;height:11px}
#wall[data-layout="gallery"] .votes .open{display:none}
#wall[data-layout="gallery"] .acts{margin-top:6px;gap:5px}
#wall[data-layout="gallery"] .acts .act{height:24px;padding:0 8px;font-size:10.5px;border-radius:12px}
#wall[data-layout="gallery"] .acts .act svg{width:12px;height:12px}
#wall[data-layout="gallery"] .acts .act.on{background:#A54C24;border-color:#A54C24}

/* ============ 视图三：拼贴墙 ============ */
/* 还原原型的「纸台黑」：深色墙面 + 两团暖光 + 纸噪点，米黄相纸贴在黑底上 */
#wall[data-layout="collage"]{
  background-color:#16130F;
  background-image:
    radial-gradient(130% 44% at 10% 0%, rgba(96,74,40,.45) 0%, rgba(96,74,40,0) 62%),
    radial-gradient(96% 32% at 98% 26%, rgba(66,50,28,.4) 0%, rgba(66,50,28,0) 58%),
    radial-gradient(rgba(241,231,211,.03) 1px, transparent 1px);
  background-size:auto,auto,4px 4px;
}
#wall[data-layout="collage"] .topbar{
  background:var(--w-top);border-bottom:1px solid rgba(241,231,211,.14);
  padding:calc(12px + env(safe-area-inset-top,0px)) 18px 11px;
}
#wall[data-layout="collage"] .album-meta b{
  font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:19px;font-weight:700;
  letter-spacing:.02em;color:#F1E7D3;
}
#wall[data-layout="collage"] .album-meta span{font-size:11.5px;letter-spacing:.06em;color:rgba(241,231,211,.56)}
#wall[data-layout="collage"] .icon-btn{color:rgba(241,231,211,.78)}
#wall[data-layout="collage"] .icon-btn:active{background:rgba(241,231,211,.12)}
#wall[data-layout="collage"] .wall-main{padding:20px 24px 0}

#wall[data-layout="collage"] .e{
  background:#F7EEDC;padding:9px 9px 0;margin-bottom:32px;
  box-shadow:7px 7px 0 var(--tape,#C8342A);
  transform:rotate(var(--rot,0deg));
  transition:transform .18s ease;
}
#wall[data-layout="collage"] .e:active{transform:rotate(0deg) scale(.985)}
/* 胶带 */
#wall[data-layout="collage"] .e::before{
  content:"";position:absolute;top:-11px;left:50%;width:76px;height:21px;z-index:2;
  transform:translateX(-50%) rotate(-3deg);
  background:rgba(216,196,150,.72);
  border-left:1px dashed rgba(255,255,255,.55);
  border-right:1px dashed rgba(255,255,255,.55);
}
#wall[data-layout="collage"] .e:nth-child(3n+1){--rot:-2.2deg;--tape:#C8342A}
#wall[data-layout="collage"] .e:nth-child(3n+2){--rot:2deg;--tape:#1F4E9C}
#wall[data-layout="collage"] .e:nth-child(3n){--rot:-1.4deg;--tape:#D7A22A}

#wall[data-layout="collage"] .shot{background:#E8E0D0}
#wall[data-layout="collage"] .shot img{height:auto}
#wall[data-layout="collage"] .pcap{
  margin:8px 0 0;padding:0 2px;font-size:13.5px;line-height:1.5;
  letter-spacing:.02em;color:#2E2A24;
}
#wall[data-layout="collage"] .cap{
  margin:0;padding:9px 2px 0;border-top:1px solid rgba(26,26,26,.12);
  font-size:12px;gap:6px;color:#3A342B;
}
#wall[data-layout="collage"] .cap .who{font-weight:700;letter-spacing:.06em;color:#1A1A1A;max-width:6.6em}
#wall[data-layout="collage"] .cap .sep{color:#8A8071}
#wall[data-layout="collage"] .cap .when{font-size:11px;color:#6A6154}
#wall[data-layout="collage"] .mine{
  font-family:inherit;font-size:9.5px;letter-spacing:.08em;border:0;padding:2px 6px;
  background:#C8342A;color:#fff;font-weight:700;
}
#wall[data-layout="collage"] .votes{font-size:11px;gap:8px;color:#5A5245}
#wall[data-layout="collage"] .votes .open{display:none}
#wall[data-layout="collage"] .acts{margin:8px 0 0;padding:0 2px 10px}
#wall[data-layout="collage"] .acts .act{background:rgba(255,255,255,.6);color:#3A342B;border-color:rgba(26,26,26,.14)}
#wall[data-layout="collage"] .acts .act.on{background:#C8342A;border-color:#C8342A;color:#fff}

/* 空状态 */
.empty{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  padding:80px 30px;color:var(--w-ink3);text-align:center;font-size:14px;line-height:1.8;
}
.empty svg{width:56px;height:56px;opacity:.42}
/* 相纸册已有开场提示，空状态只留一个安静的图标 */
#wall[data-layout="album"] .empty p{display:none}

/* 上传按钮：随视图换形态 */
.fab{
  position:fixed;right:20px;bottom:calc(22px + var(--safe-b));z-index:30;
  width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  gap:0;color:#fff;background:#1D1D1F;
  box-shadow:0 10px 26px rgba(20,20,20,.28);
  transition:transform .14s,background .2s;
}
.fab:active{transform:scale(.94)}
.fab svg{width:26px;height:26px;flex:none}
.fab-t{display:none}

/* 相纸册：细线胶囊 */
#wall[data-layout="album"] .fab{
  width:auto;height:48px;padding:0 18px 0 20px;gap:9px;border-radius:999px;
  background:#FAF8F3;color:#26231F;border:1px solid rgba(38,35,31,.24);
  box-shadow:0 1px 1px rgba(40,32,20,.10),0 12px 28px -14px rgba(40,32,20,.55);
}
#wall[data-layout="album"] .fab svg{width:15px;height:15px;stroke-width:1.5}
#wall[data-layout="album"] .fab-t{
  display:block;font-size:12.5px;letter-spacing:.12em;line-height:1;
}
/* 画廊：黑圆 */
#wall[data-layout="gallery"] .fab{background:#17140F;box-shadow:0 10px 26px rgba(23,20,15,.3)}
#wall[data-layout="gallery"] .fab svg{width:24px;height:24px}
/* 拼贴：红方块 + 硬阴影（深底上用米色投影才看得见） */
#wall[data-layout="collage"] .fab{
  width:58px;height:58px;border-radius:2px;background:#C8342A;
  box-shadow:4px 4px 0 #E8D9BB;transform:rotate(-3deg);
}
#wall[data-layout="collage"] .fab:active{transform:rotate(0) translate(2px,2px);box-shadow:2px 2px 0 #E8D9BB}
#wall[data-layout="collage"] .fab svg{width:26px;height:26px;stroke-width:2.6}

.fab.busy{pointer-events:none;opacity:.7}
.fab.busy::after{
  content:"";position:absolute;inset:-4px;border-radius:inherit;
  border:3px solid rgba(120,120,120,.22);border-top-color:currentColor;
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.toast{
  position:fixed;left:50%;bottom:calc(104px + var(--safe-b));transform:translateX(-50%);
  z-index:100;background:rgba(29,29,31,.9);color:#fff;font-size:13.5px;
  padding:10px 18px;border-radius:22px;max-width:86vw;text-align:center;
  backdrop-filter:blur(8px);animation:toastIn .22s ease both;
}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}

/* ---------------- 大图 ---------------- */
.overlay{position:fixed;inset:0;z-index:80}
#viewer{background:#0a0a0b;display:flex;flex-direction:column;color:#fff}
.viewer-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:calc(10px + env(safe-area-inset-top,0px)) 14px 10px;font-size:14px;color:rgba(255,255,255,.86);
}
.viewer-stage{
  flex:1;position:relative;display:flex;align-items:center;justify-content:center;
  overflow:hidden;touch-action:none;
}
#viewerImg{
  max-width:100%;max-height:100%;object-fit:contain;display:block;
  /* touch-action:none —— 双指缩放交给图片自己（transform），不再放大整个页面 */
  touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
  transform-origin:center center;will-change:transform;
  transition:transform .22s cubic-bezier(.32,.72,.28,1);
}
.nav-btn{
  position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  width:44px;height:64px;display:grid;place-items:center;color:rgba(255,255,255,.66);
}
.nav-btn svg{width:26px;height:26px}
.nav-btn.prev{left:0}.nav-btn.next{right:0}
.nav-btn:disabled{opacity:.2}

.viewer-foot{
  padding:10px 16px calc(16px + var(--safe-b));
  display:flex;flex-direction:column;gap:10px;align-items:center;
}
.viewer-time{font-size:11.5px;color:rgba(255,255,255,.46)}
.viewer-cap{
  margin:0 0 1px;max-width:88%;text-align:center;
  font-family:"Songti SC","Noto Serif CJK SC",serif;
  font-size:16px;line-height:1.5;letter-spacing:.04em;color:rgba(255,255,255,.94);
}
.viewer-actions{display:flex;gap:10px;align-items:center}
.pill{
  display:flex;align-items:center;gap:6px;height:44px;min-width:56px;padding:0 14px;
  border-radius:22px;background:rgba(255,255,255,.12);color:#fff;font-size:14px;
  transition:background .16s,color .16s;
}
.pill svg{width:21px;height:21px}
.pill:active{background:rgba(255,255,255,.22)}
.pill b{font-weight:600;font-variant-numeric:tabular-nums}
.pill.on{background:var(--accent);color:#fff}
.pill.on.down{background:#3a3a3c}
.pill.danger{color:#ff8a80}
.pill.danger:active{background:rgba(255,80,70,.2)}

/* ---------------- 幻灯片 ---------------- */
.slideshow{background:#000;display:flex;align-items:center;justify-content:center}
#slideImg{max-width:100vw;max-height:100dvh;object-fit:contain;display:block}
.slide-top{
  position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;
  padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px;
  color:rgba(255,255,255,.78);font-size:13px;letter-spacing:.08em;
  background:linear-gradient(rgba(0,0,0,.5),transparent);
}
.slide-bar{position:absolute;left:0;right:0;bottom:calc(64px + var(--safe-b));height:2px;background:rgba(255,255,255,.16)}
.slide-bar i{display:block;height:100%;width:0;background:#fff;transition:width .12s linear}
.slide-foot{
  position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;
  padding:12px 18px calc(14px + var(--safe-b));
  background:linear-gradient(transparent,rgba(0,0,0,.55));
}
.slide-who{font-size:12.5px;color:rgba(255,255,255,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slide-cap{
  margin-left:auto;max-width:52%;text-align:right;
  font-family:"Songti SC","Noto Serif CJK SC",serif;
  font-size:13px;color:rgba(255,255,255,.94);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* ---------------- 二维码卡片 ---------------- */
.sheet{
  background:rgba(12,16,24,.52);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;padding:24px;
}
.sheet-card{
  position:relative;width:100%;max-width:336px;
  background:var(--card);border-radius:24px;padding:26px 22px 22px;
  text-align:center;box-shadow:0 24px 60px rgba(10,20,40,.3);
  animation:sheetIn .22s ease both;
}
@keyframes sheetIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
.sheet-card h2{margin:0 0 4px;font-size:18px;font-weight:700;letter-spacing:.02em}
.sheet-sub{margin:0 0 18px;font-size:12.5px;color:var(--muted);line-height:1.6}
.sheet-x{
  position:absolute;top:10px;right:10px;width:36px;height:36px;border-radius:50%;
  display:grid;place-items:center;color:var(--muted);
}
.sheet-x:active{background:rgba(0,0,0,.06)}
.sheet-x svg{width:18px;height:18px}

.qr-frame{
  width:214px;height:214px;margin:0 auto 14px;padding:9px;
  background:#fff;border:1px solid var(--line);border-radius:18px;
  display:grid;place-items:center;box-shadow:0 4px 16px rgba(20,30,50,.06);
}
.qr-frame img{width:100%;height:100%;display:block;border-radius:8px}
.qr-url{
  margin:0 auto 16px;max-width:250px;font-size:11.5px;line-height:1.6;
  color:var(--muted);word-break:break-all;
}
.btn-ghost{
  display:inline-flex;align-items:center;gap:7px;height:44px;padding:0 20px;
  border-radius:22px;background:rgba(0,113,227,.09);color:var(--accent);
  font-size:14.5px;font-weight:600;transition:background .16s;
}
.btn-ghost:active{background:rgba(0,113,227,.17)}
.btn-ghost svg{width:18px;height:18px}

/* ---------------- 分享海报 ---------------- */
.poster-card{max-width:348px;padding:26px 16px 14px}
.poster-frame{
  position:relative;width:100%;margin:0 0 12px;border-radius:14px;overflow:hidden;
  background:#0C2A25;box-shadow:0 12px 28px rgba(12,42,37,.24);
  display:flex;align-items:center;justify-content:center;
}
.poster-frame img{display:block;width:100%;height:auto;max-height:56vh;object-fit:contain}
.poster-loading{
  position:absolute;inset:0;display:grid;place-items:center;
  font-size:12.5px;letter-spacing:.06em;color:rgba(246,241,228,.72);
  background:#0C2A25;
}
.poster-loading.hidden{display:none!important}
.poster-actions{display:flex;gap:10px;margin-bottom:6px}
.poster-actions .btn-primary{flex:1;height:46px;border-radius:23px;font-size:15px;margin-top:0}
.poster-actions .btn-ghost{flex:none;height:46px;border-radius:23px;padding:0 22px}
.link-btn{
  display:block;margin:4px auto 0;padding:8px 12px;font-size:12.5px;color:var(--muted);
  text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(0,0,0,.18);
}

/* ---------------- 上传：给照片加一句话 ---------------- */
.cap-card{max-width:344px;text-align:left;padding:26px 20px 16px}
.cap-card h2{text-align:center}
.cap-card .sheet-sub{text-align:center;margin-bottom:16px}
.cap-row{display:flex;gap:12px;align-items:flex-start}
.cap-thumb{
  width:64px;height:64px;border-radius:12px;object-fit:cover;flex:none;
  background:#EFEBE2;border:1px solid var(--line);
}
.cap-edit{flex:1;min-width:0;position:relative}
.cap-input{
  width:100%;height:46px;border-radius:12px;border:1px solid var(--line);
  background:#fff;padding:0 54px 0 12px;font-size:15px;color:var(--text);
  font-family:inherit;transition:border-color .15s,box-shadow .15s;
}
.cap-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(0,113,227,.1)}
.cap-input::placeholder{color:#b9b9be}
.cap-count{
  position:absolute;right:11px;top:50%;transform:translateY(-50%);
  font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;
}
.cap-actions{display:flex;gap:10px;margin-top:16px}
.cap-actions .btn-ghost{flex:none;height:46px;border-radius:23px}
.cap-actions .btn-primary{flex:1;height:46px;border-radius:23px;font-size:15px;margin-top:0}

/* ---------------- 照片墙样式选择 ---------------- */
.layout-card{max-width:352px;text-align:left;padding:26px 20px 20px}
.layout-card h2{text-align:center}
.layout-card .sheet-sub{text-align:center;margin-bottom:16px}
.layout-opts{display:flex;flex-direction:column;gap:8px}
.layout-opt{
  display:flex;align-items:center;gap:13px;width:100%;
  padding:10px 13px;border-radius:15px;border:1px solid rgba(0,0,0,.09);
  background:#fff;text-align:left;transition:border-color .16s,background .16s;
}
.layout-opt:active{background:#fafafa}
.layout-opt.on{border-color:var(--accent);background:rgba(0,113,227,.045)}
.lo-prev{
  position:relative;width:48px;height:48px;border-radius:10px;flex:none;overflow:hidden;
  background:#FAF8F3;
}
.lo-prev i{position:absolute;display:block;background:#BEB6A6;border-radius:1.5px}
.lo-album i:nth-child(1){left:7px;top:7px;width:34px;height:13px}
.lo-album i:nth-child(2){left:7px;top:23px;width:23px;height:10px}
.lo-album i:nth-child(3){right:7px;top:36px;width:23px;height:6px}
.lo-gallery{background:#E8E3D9}
.lo-gallery i{width:17px;background:#C3BAA8}
.lo-gallery i:nth-child(1){left:7px;top:6px;height:15px}
.lo-gallery i:nth-child(2){right:7px;top:6px;height:23px}
.lo-gallery i:nth-child(3){left:7px;top:24px;height:15px}
.lo-gallery i:nth-child(4){right:7px;top:32px;height:8px}
.lo-collage{background:#221D15}
.lo-collage i{
  width:21px;height:15px;background:#F7EEDC;border-radius:1px;
  box-shadow:2px 2px 0 #C8342A;
}
.lo-collage i:nth-child(1){left:8px;top:8px;transform:rotate(-6deg)}
.lo-collage i:nth-child(2){left:17px;top:20px;transform:rotate(4deg);box-shadow:2px 2px 0 #1F4E9C}
.lo-collage i:nth-child(3){left:9px;top:31px;transform:rotate(-2deg);box-shadow:2px 2px 0 #D7A22A}
.lo-txt{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.lo-txt b{font-size:15px;font-weight:600;letter-spacing:.02em}
.lo-txt small{font-size:11.5px;color:var(--muted);letter-spacing:.01em}
.lo-tick{
  width:22px;height:22px;border-radius:50%;flex:none;
  display:grid;place-items:center;color:#fff;background:var(--accent);
  opacity:0;transform:scale(.7);transition:opacity .16s,transform .16s;
}
.layout-opt.on .lo-tick{opacity:1;transform:none}
.lo-tick svg{width:13px;height:13px}

/* ---------------- 相册简介 ---------------- */
.intro-box{margin:-12px 0 0;padding:0 26px 30px}
.intro-text{
  margin:0;font-family:"Songti SC","Noto Serif CJK SC","Source Han Serif SC",serif;
  font-size:14px;line-height:1.9;letter-spacing:.05em;color:var(--w-ink2);
  white-space:pre-wrap;word-break:break-word;
  padding-left:12px;border-left:1px solid rgba(38,35,31,.24);
}
.intro-chip{
  display:inline-flex;align-items:center;gap:6px;max-width:100%;
  height:38px;padding:0 15px;border-radius:19px;
  border:1px dashed rgba(38,35,31,.3);color:var(--w-ink2);
  font-size:12.5px;letter-spacing:.04em;transition:background .16s;
}
.intro-chip:active{background:rgba(38,35,31,.05)}
.intro-chip svg{width:14px;height:14px;flex:none;opacity:.7}
.name-chip{margin-top:18px}
#wall[data-layout="collage"] .name-chip{border-color:rgba(241,231,211,.34);color:rgba(241,231,211,.78)}

/* ---------------- 给相册起名字 ---------------- */
.name-row{position:relative}
#nameInput{
  width:100%;box-sizing:border-box;display:block;height:48px;
  border:1px solid var(--line);border-radius:14px;background:#fbfbfc;
  padding:0 58px 0 14px;font-family:inherit;font-size:16px;color:var(--text);
  outline:none;transition:border-color .18s,box-shadow .18s;
}
#nameInput:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(0,113,227,.1)}
#nameInput::placeholder{color:#b9b9be}
.name-count{
  position:absolute;right:13px;top:50%;transform:translateY(-50%);
  font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;
}
#nameBtnSub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
#wall[data-layout="gallery"] .intro-box{margin-top:0;padding:0 0 14px}
#wall[data-layout="gallery"] .intro-text{
  font-size:12.5px;line-height:1.8;padding-left:10px;border-left-color:rgba(23,20,15,.18);
}
#wall[data-layout="gallery"] .intro-chip{height:34px;font-size:12px}
#wall[data-layout="collage"] .intro-box{margin-top:0;padding:0 0 34px}
#wall[data-layout="collage"] .intro-text{
  padding:11px 13px;background:#F7EEDC;border-left:4px solid #C8342A;
  box-shadow:4px 4px 0 #D7A22A;
  font-family:inherit;font-size:13px;line-height:1.75;letter-spacing:.02em;color:#3A342B;
}
#wall[data-layout="collage"] .intro-chip{
  border:1px solid rgba(241,231,211,.45);border-radius:2px;background:transparent;color:rgba(241,231,211,.8);
  font-size:12px;box-shadow:none;
}
#wall[data-layout="collage"] .intro-chip:active{background:rgba(241,231,211,.1)}

/* ---------------- 更多面板 ---------------- */
.more-card{max-width:352px;text-align:left;padding:26px 16px 16px}
.more-card h2{text-align:center}
.more-card .sheet-sub{text-align:center;margin-bottom:12px}
.more-list{display:flex;flex-direction:column;gap:2px}
.more-item{
  display:flex;align-items:center;gap:12px;width:100%;padding:11px 10px;
  border-radius:14px;text-align:left;transition:background .16s;
}
.more-item:active{background:rgba(0,0,0,.045)}
.more-item.off{opacity:.48}
.mi-ic{
  width:36px;height:36px;border-radius:11px;flex:none;display:grid;place-items:center;
  background:rgba(0,113,227,.09);color:var(--accent);
}
.mi-ic svg{width:19px;height:19px}
.mi-txt{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.mi-txt b{font-size:15px;font-weight:600;letter-spacing:.01em}
.mi-txt small{font-size:11.5px;color:var(--muted);line-height:1.35}
.mi-arrow{width:18px;flex:none;color:#c9c9ce;display:grid;place-items:center}
.mi-arrow svg{width:16px;height:16px;display:block}
.more-item.danger .mi-ic{background:rgba(217,51,63,.08);color:#d9333f}
.more-item.danger .mi-txt b{color:#d9333f}

/* ---------------- 写简介 ---------------- */
.intro-card{max-width:352px;text-align:left}
.intro-card h2{text-align:center}
.intro-card .sheet-sub{text-align:center;margin-bottom:14px}
#introInput{
  width:100%;box-sizing:border-box;display:block;
  border:1px solid var(--line);border-radius:14px;background:#fbfbfc;
  padding:12px 14px;font-family:inherit;font-size:15px;line-height:1.7;color:var(--text);
  resize:none;outline:none;transition:border-color .18s,box-shadow .18s;
}
#introInput::placeholder{color:#b9b9be}
#introInput:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(0,113,227,.11)}
.intro-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
#introCount{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.btn-primary.mini{height:42px;width:auto;padding:0 24px;font-size:15px;border-radius:21px;margin-top:0}

/* ---------------- 删除相册投票 ---------------- */
.del-card{max-width:336px}
.vote-wrap{margin:2px 0 18px}
.vote-bar{height:6px;border-radius:3px;background:rgba(0,0,0,.07);overflow:hidden}
.vote-bar i{
  display:block;height:100%;width:0;border-radius:3px;background:#d9333f;
  transition:width .35s cubic-bezier(.4,0,.2,1);
}
.vote-line{margin:9px 0 0;font-size:12.5px;color:var(--muted);text-align:center;letter-spacing:.02em}
.btn-danger{
  width:100%;height:50px;border-radius:14px;background:#d9333f;color:#fff;
  font-size:16px;font-weight:600;letter-spacing:.03em;
  transition:transform .12s,background .18s;
}
.btn-danger:active{transform:scale(.985);background:#b32a34}
.btn-danger:disabled{opacity:.6}
.btn-ghost.wide{width:100%;justify-content:center;height:46px;margin-top:10px;box-sizing:border-box}
