/* ============================================================================
   共享图册（15-album.css）
   ----------------------------------------------------------------------------
   像一本摊在桌上的相册：纸不是纯白，是晒过太阳的那种米色；照片是白边的小样，
   日期用等宽数字。三列照片墙，点开一张看大图、看留言。
   没接图片接口的时候，照片位就换成一张「他写的画面」的纸卡 —— 不装成照片。
   ============================================================================ */
.tap-album{z-index:73;
  --al-ink:#2b2723;--al-sub:#8d8377;--al-dim:#b3a897;--al-line:#e9e1d3;
  --al-bg:#f7f3ec;--al-card:#fffdf9;--al-me:#b06a45;--al-them:#5d7d6a}

.tap-album .tap-screen{background:
  radial-gradient(120% 52% at 100% -10%,#fcf2e3 0%,#f9f5ee 46%,#f7f3ec 74%),
  radial-gradient(90% 42% at -10% 106%,#f1ece1 0%,#f7f3ec 62%),#f7f3ec}
.tap-album .tap-view{position:absolute;inset:38px 0 0;background:transparent}
.tap-album .tap-status{color:#8b8175}
.tap-album .tap-status-ico svg{opacity:.5}

/* ---------- 顶栏：返回 / 标题 / 计数 / 刷新 / 加号 ---------- */
.al-head{padding:0 8px 0 10px;border-bottom:1px solid #efe8db;gap:0}
.al-head h2{font-size:13px;letter-spacing:2px;color:var(--al-ink)}
.al-count{font-size:9px;letter-spacing:.2px;color:var(--al-dim);
  font-variant-numeric:tabular-nums;padding:0 4px 0 6px;white-space:nowrap}
.tap-album .tap-vback{color:#8a7a66}
.al-hbtn{width:29px;height:29px;display:grid;place-items:center;flex-shrink:0;
  background:none;border:0;border-radius:9px;color:#8b7f6f}
.al-hbtn svg{width:14.5px;height:14.5px;stroke-width:1.6}
.al-hbtn:active{background:#efe8da;color:var(--al-ink)}
.al-hbtn[hidden]{display:none}
.al-plus{color:#7c6a55}
.al-delbtn{color:#a4655a}
.al-delbtn:active{background:#f6e6e1}

/* ---------- 骨架 ---------- */
.al-stage{flex:1;min-height:0;display:flex;flex-direction:column;position:relative}
.al-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0 14px 40px}
.al-scroll::-webkit-scrollbar{display:none}
.al-detail{padding-bottom:26px}

/* ---------- 刊头 ---------- */
.al-mast{padding:15px 5px 13px}
.al-mast h1{margin:0;font-family:"Songti SC","STSong","Noto Serif SC",Georgia,serif;
  font-size:23px;font-weight:500;letter-spacing:4px;color:var(--al-ink);line-height:1.1}
.al-mast p{margin:8px 0 0;font-size:10px;line-height:1.7;letter-spacing:.4px;color:var(--al-sub)}
.al-mast p i{font-style:normal;color:#c3b6a2;margin:0 5px}
.al-track{height:2.5px;border-radius:2px;background:#eae2d3;margin-top:11px;overflow:hidden}
.al-track i{display:block;height:100%;border-radius:2px;
  background:linear-gradient(90deg,#d8bb9b,#a87c58);transition:width .5s ease}

/* ---------- 照片墙 ---------- */
.al-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.al-cell{position:relative;display:block;width:100%;aspect-ratio:1;padding:0;border:0;
  border-radius:9px;overflow:hidden;background:#e9e1d4;
  box-shadow:0 0 0 1px rgba(43,39,35,.045) inset;transition:transform .14s}
.al-cell:active{transform:scale(.965)}
.al-cell>img{width:100%;height:100%;object-fit:cover;display:block}
/* 不压整条暗角：平色照片上会显出一道横线，只给角标自己垫个底就够了 */
.al-tag{position:absolute;left:5px;bottom:5px;z-index:2;font-size:8px;line-height:1;
  padding:2.5px 4px;border-radius:5px;font-style:normal;letter-spacing:.2px;
  color:#fff;background:rgba(43,39,35,.34);backdrop-filter:blur(3px)}
.al-tag.me{background:rgba(176,106,69,.72)}
.al-tag.them{background:rgba(93,125,106,.72)}
.al-cnum{position:absolute;right:4px;bottom:4px;z-index:2;display:flex;align-items:center;gap:2.5px;
  padding:2px 4px 2px 3.5px;border-radius:5px;font-size:8px;font-style:normal;letter-spacing:0;
  color:#fff;background:rgba(43,39,35,.34);backdrop-filter:blur(3px)}
.al-cnum svg{width:8px;height:8px;stroke-width:2}

/* 文字卡：没有图片接口时，照片位写画面 */
.al-cell-txt{background:linear-gradient(152deg,var(--h1,#efe6d6) 0%,var(--h2,#dcd0bd) 100%)}
.al-cell-txt .ct{position:absolute;inset:0;display:flex;flex-direction:column;
  justify-content:flex-end;padding:7px 7px 21px;text-align:left}
.al-cell-txt .ct small{font-size:6.8px;letter-spacing:1.4px;color:rgba(74,64,56,.5)}
.al-cell-txt .ct em{margin-top:4px;font-style:normal;font-family:"Songti SC",serif;
  font-size:8.5px;line-height:1.55;color:#4a4038;
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- 正在放一张 / 他在看 ---------- */
.al-working{margin:0 0 10px;padding:11px 13px;border-radius:12px;background:#fffdf7;
  border:1px dashed #e2d7c3;display:flex;align-items:center;gap:9px;
  font-size:10.5px;letter-spacing:.3px;color:#8a7d6c}
.al-dots{display:inline-flex;gap:3px}
.al-dots i{width:3.5px;height:3.5px;border-radius:50%;background:#b9a58a;
  animation:alDot 1.25s infinite ease-in-out}
.al-dots i:nth-child(2){animation-delay:.16s}
.al-dots i:nth-child(3){animation-delay:.32s}
@keyframes alDot{0%,70%,100%{opacity:.28;transform:translateY(0)}35%{opacity:1;transform:translateY(-2.4px)}}

/* ---------- 空 ---------- */
.al-empty{padding:44px 18px;text-align:center}
.al-empty b{display:block;font-family:"Songti SC",serif;font-size:15px;font-weight:500;
  letter-spacing:2px;color:#5c5247}
.al-empty span{display:block;margin-top:12px;font-size:10.5px;line-height:1.95;
  letter-spacing:.4px;color:#9b9081}
.al-empty .go{margin-top:20px;display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 15px;
  border-radius:16px;border:1px solid #ded2bd;background:#fffdf8;
  font-size:10.5px;color:#806e57;letter-spacing:.6px}
.al-empty .go svg{width:11px;height:11px}

/* ---------- 大图页 ---------- */
.al-view{padding:12px 3px 0}
.al-photo{position:relative;margin:0 auto;padding:5px;background:#fff;border-radius:14px;
  box-shadow:0 14px 30px -26px rgba(43,39,35,.95),0 0 0 1px #f0e9dc}
/* 白框跟着照片走：竖图不会被拉成一整块白板，横图也不出屏 */
.al-photo.al-photo-img{width:fit-content;max-width:100%}
.al-photo.al-photo-txt{width:100%}
.al-photo img{display:block;width:auto;height:auto;max-width:100%;max-height:47vh;
  border-radius:9px;background:#f6f1e8}
.al-tx{border-radius:9px;padding:26px 22px;min-height:196px;
  background:linear-gradient(152deg,var(--h1,#efe6d6) 0%,var(--h2,#dcd0bd) 100%);
  display:flex;flex-direction:column;justify-content:center}
.al-tx small{font-size:8px;letter-spacing:2.4px;color:rgba(74,64,56,.52)}
.al-tx p{margin:13px 0 0;font-family:"Songti SC","STSong",serif;font-size:14px;
  line-height:1.95;color:#453b32;white-space:pre-wrap;letter-spacing:.3px}

.al-who{display:flex;align-items:center;gap:7px;margin:13px 4px 0}
.al-ava{width:23px;height:23px;border-radius:50%;overflow:hidden;flex-shrink:0;
  background:#e6dccc;display:grid;place-items:center;font-size:10px;color:#7c6c58}
.al-ava img{width:100%;height:100%;object-fit:cover}
.al-who b{font-size:11px;font-weight:500;letter-spacing:.3px;color:#4d443a}
.al-who span{font-size:9.5px;color:var(--al-dim);letter-spacing:.2px}
.al-who span i{font-style:normal;margin:0 4px;color:#cfc3b0}

.al-cap{margin:11px 4px 0;font-family:"Songti SC","STSong",serif;font-size:14.5px;
  line-height:1.8;letter-spacing:.6px;color:#332e29}

/* ---------- 留言 ---------- */
.al-cms{margin:20px 4px 0;padding-top:15px;border-top:1px solid var(--al-line)}
.al-cms-h{display:flex;align-items:center;justify-content:space-between;
  font-size:9px;letter-spacing:1.6px;color:#b3a897;margin-bottom:14px}
.al-cms-h i{font-style:normal;letter-spacing:.3px}
.al-cm{display:flex;gap:8px;margin-bottom:13px}
.al-cm .al-ava{width:22px;height:22px;font-size:9px}
.al-cm-main{flex:1;min-width:0;padding-top:1px}
.al-cm-main b{font-size:9.5px;font-weight:400;color:#988b78;letter-spacing:.3px}
.al-cm-main b em{font-style:normal;margin-left:6px;color:#c4b8a6;font-size:8.5px}
.al-cm-main p{margin:4px 0 0;font-size:12.5px;line-height:1.72;color:#3d352e;
  letter-spacing:.2px;word-break:break-word}
.al-cm.byme .al-cm-main p{color:#3d352e}
.al-wait{display:flex;align-items:center;gap:7px;margin:2px 0 0;font-size:10px;
  color:#b0a595;letter-spacing:.3px;line-height:1.8}
.al-none{font-size:10px;color:#b0a595;letter-spacing:.3px;line-height:1.8}

/* ---------- 留言条（固定在底部） ---------- */
.al-bar-c{position:relative;z-index:6;display:flex;gap:7px;flex-shrink:0;
  padding:9px 13px calc(9px + env(safe-area-inset-bottom,0px));
  background:#f7f3ec;border-top:1px solid var(--al-line)}
.al-bar-c[hidden]{display:none}
.al-in{flex:1;min-width:0;height:36px;padding:0 14px;border-radius:18px;
  border:1px solid #e6ddcc;background:#fffdf9;font-family:inherit;font-size:12px;
  color:#332e29;letter-spacing:.2px;box-shadow:0 3px 10px -9px rgba(43,39,35,.7)}
.al-in:focus{outline:none;border-color:#d8c8ae}
.al-in::placeholder{color:#b6a996}
.al-send{height:36px;padding:0 15px;border-radius:18px;border:0;background:#332e29;
  color:#fff;font-family:inherit;font-size:11.5px;letter-spacing:1px}
.al-send:active{background:#4a423a}

/* ---------- 加一张 ---------- */
.al-add{padding:12px 3px 0}
.al-drop{width:100%;aspect-ratio:4/3;border-radius:15px;border:1px dashed #dccfba;
  background:#fbf8f1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;color:#a2947f}
.al-drop svg{width:26px;height:26px;stroke-width:1.3}
.al-drop b{font-size:12px;font-weight:400;letter-spacing:1px;color:#8b7c66}
.al-drop span{font-size:9.5px;letter-spacing:.3px;color:#b0a390}
.al-preview{padding:6px;background:#fff;border-radius:15px;
  box-shadow:0 14px 30px -26px rgba(43,39,35,.95),0 0 0 1px #f0e9dc}
.al-preview img{width:100%;display:block;border-radius:10px;max-height:250px;object-fit:contain;background:#f4eee4}
.al-fields{margin:16px 4px 0}
.al-f{display:block;margin-bottom:11px}
.al-f small{display:block;font-size:9px;letter-spacing:1.4px;color:#b3a897;margin-bottom:6px}
.al-f input{width:100%;height:36px;padding:0 12px;border-radius:10px;border:1px solid #e8dfcf;
  background:#fffdf9;font-family:inherit;font-size:12px;color:#332e29}
.al-f input:focus{outline:none;border-color:#d8c8ae}
.al-f input::placeholder{color:#c0b4a2}
.al-acts{display:flex;gap:8px;margin:18px 4px 0}
.al-acts button{flex:1;height:40px;border-radius:12px;font-family:inherit;font-size:12px;letter-spacing:1.2px}
.al-ghost{border:1px solid #e2d8c6;background:#fffdf8;color:#8b7c66}
.al-primary{border:0;background:#332e29;color:#fff}
.al-primary:disabled{background:#c3b8a8}
.al-tip{margin:14px 4px 0;font-size:9.5px;line-height:1.85;letter-spacing:.3px;color:#b0a595}

/* ---------- TA 手机 > 共享图册 里的入口卡 ---------- */
.tap .al-entry{position:relative;width:100%;text-align:left;
  border:1px solid #eae2d4;
  background:linear-gradient(150deg,#fffdf8 0%,#f8f3e9 100%)}
.tap .al-entry:after{content:'';position:absolute;right:14px;top:50%;width:7px;height:7px;
  margin-top:-4px;border-right:1.4px solid #c8b9a3;border-top:1.4px solid #c8b9a3;
  transform:rotate(45deg)}
.tap .al-entry .tap-card-s{max-width:88%}
.al-ava svg{width:11px;height:11px;stroke-width:1.6;opacity:.72}

/* ---------- 首页：他的样子 ---------- */
.al-slim{display:flex;align-items:center;gap:10px;width:100%;margin:0 2px 14px;
  padding:9px 11px;border:1px solid #eae2d3;border-radius:14px;
  background:#fffdf8;text-align:left;font-family:inherit}
.al-slim:active{background:#fbf6ec}
.al-slim-ava{width:34px;height:34px;border-radius:50%;overflow:hidden;flex-shrink:0;
  display:grid;place-items:center;background:#e6dccc;font-size:13px;color:#7c6c58}
.al-slim-ava img{width:100%;height:100%;object-fit:cover;display:block}
.al-slim-main{flex:1;min-width:0}
.al-slim-main b{display:block;font-size:12px;font-weight:500;letter-spacing:.6px;color:#4d443a}
.al-slim-main i{display:block;margin-top:3px;font-style:normal;font-size:9.5px;
  letter-spacing:.2px;color:#a4977f}
.al-slim-go{width:7px;height:7px;flex-shrink:0;
  border-right:1.4px solid #c8b9a3;border-top:1.4px solid #c8b9a3;transform:rotate(45deg)}

/* ---------- 他的样子 ---------- */
.al-me{padding:6px 3px 0}
.al-me-top{display:flex;align-items:center;gap:14px;padding:13px 4px 16px}
.al-me-ava{width:74px;height:74px;border-radius:50%;overflow:hidden;flex-shrink:0;
  display:grid;place-items:center;background:#e6dccc;font-family:"Songti SC","STSong",serif;
  font-size:26px;color:#7c6c58;box-shadow:0 0 0 1px #f0e9dc}
.al-me-ava img{width:100%;height:100%;object-fit:cover;display:block}
.al-me-id b{display:block;font-family:"Songti SC","STSong",serif;font-size:19px;
  font-weight:500;letter-spacing:2px;color:#332e29}
.al-me-id span{display:block;margin-top:6px;font-size:10px;letter-spacing:.4px;color:#9d9182}
.al-me-id i{display:block;margin-top:5px;font-style:normal;font-size:9px;letter-spacing:.3px;color:#b6a99a}
.al-me-sec{margin:0 4px 18px;padding-top:15px;border-top:1px solid var(--al-line)}
.al-me-h{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:11px}
.al-me-h span{font-size:11px;letter-spacing:1.6px;color:#6b6154}
.al-me-h i{font-style:normal;font-size:9px;letter-spacing:.3px;color:#b3a897}
.al-me textarea{width:100%;box-sizing:border-box;padding:11px 12px;border-radius:11px;
  border:1px solid #e8dfcf;background:#fffdf9;font-family:inherit;font-size:12px;
  line-height:1.75;color:#332e29;resize:none;display:block}
.al-me textarea:focus{outline:none;border-color:#d8c8ae}
.al-me-btn{display:block;width:100%;height:38px;margin-top:10px;border-radius:11px;
  border:1px solid #e2d8c6;background:#fffdf8;font-family:inherit;font-size:11.5px;
  letter-spacing:1.2px;color:#7d6d59}
.al-me-btn.al-me-dark{border:0;background:#332e29;color:#fff}
.al-me-btn:disabled{color:#c0b4a2;background:#f7f2e9;border-color:#efe7d9}
.al-me-note{margin:9px 2px 0;font-size:9px;line-height:1.8;letter-spacing:.3px;color:#b0a595}
.al-me-look{margin:0;padding:11px 12px;border-radius:11px;background:#f7f2e8;
  border:1px solid #ece3d3;font-size:10.5px;line-height:1.85;color:#6d6153;
  word-break:break-word;letter-spacing:.1px}
.al-me-look-empty{color:#b0a595;background:#fbf8f1}
