/* 2-2 相册。class 一律 al- 开头；评论、谁传的、分类小签借日记的 dy- */
.al { position: relative; min-height: 100%; padding: 0 0 calc(34px + var(--safe-b)); }
.al .lace-edge { top: 0; }

/* 信纸卡：米白底 + 细点纹 + 里面一道细线框（和日记卡同一个质感），不歪 */
.al-card, .al-big .mat, .al-item .th {
  background-color: var(--card);
  background-image: radial-gradient(rgba(169, 154, 170, .16) .6px, transparent .7px);
  background-size: 5px 5px; border: 1px solid var(--lace); box-shadow: var(--shadow); }

/* 相簿：一排蝴蝶结，不同颜色 */
.al-books { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 2px 22px 8px; flex: none; }
.al-books::-webkit-scrollbar { display: none; }
.al-book { flex: none; width: 54px; border: 0; background: none; padding: 6px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink-2); border-radius: 14px; }
.al-bow { width: 40px; height: 30px; margin-bottom: 3px; filter: drop-shadow(0 2px 2px rgba(81, 75, 74, .14)); transition: transform .2s; }
.al-book b { font-size: 12px; font-weight: 500; letter-spacing: 1px; color: var(--ink); }
.al-book i { font-style: normal; font-family: var(--font-serif); font-size: 11px; color: var(--ink-2); }
.al-book[aria-pressed="true"] { background: rgba(169, 154, 170, .14); }
.al-book[aria-pressed="true"] .al-bow { transform: translateY(-2px) scale(1.08); }
.al-book[aria-pressed="true"] b { color: var(--mauve-deep); }

/* 照片墙：一屏一页，两列三行，左右滑 */
.al-wallp { height: 100%; min-height: 0; display: flex; flex-direction: column; padding-bottom: calc(10px + var(--safe-b)); box-sizing: border-box; }
.al-wallp .cl-top { flex: none; }
.al-pager { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.al-pages { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.al-pages::-webkit-scrollbar { display: none; }
.al-page { flex: 0 0 100%; scroll-snap-align: start; min-height: 0; padding: 0 24px; box-sizing: border-box; display: flex; flex-direction: column; }
.al-month { margin: 4px 2px 8px; display: flex; align-items: center; gap: 10px; font-weight: 400; flex: none; }
.al-month span { font-family: var(--font-script); font-size: 21px; line-height: 1.2; color: var(--mauve-deep); }
.al-month::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--lace), transparent); }
.al-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; }
.al-card { position: relative; min-height: 0; min-width: 0; display: flex; flex-direction: column; padding: 6px 6px 7px; border-radius: 3px 12px 3px 12px; color: var(--ink); }
.al-card::before { content: ''; position: absolute; inset: 3px; border: 1px solid var(--line-soft); border-radius: 2px 10px 2px 10px; pointer-events: none; }
.al-card .ph { flex: 1; min-height: 0; overflow: hidden; border-radius: 2px 8px 2px 2px; background: var(--lace); }
.al-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.88); }
.al-card .cap { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; padding: 0 2px; flex: none; }
.al-card .cap i { font-family: var(--font-script); font-style: normal; font-size: 16px; line-height: 1; color: var(--mauve-deep); }
.al-card .by { width: 15px; height: 15px; border-radius: 50%; font-size: 8.5px; color: var(--paper); display: flex; align-items: center; justify-content: center; background: var(--teal-soft); overflow: hidden; }
.al-card .by.me { background: var(--mauve-btn); }
.al-card .by img { width: 100%; height: 100%; object-fit: cover; }
.al-card .ds { margin-top: 2px; padding: 0 2px; font-size: 10.5px; line-height: 1.5; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; min-height: 1.5em; }
.al-card .st { position: absolute; top: 11px; right: 11px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(252, 250, 246, .9); color: var(--mauve-btn); box-shadow: 0 1px 4px rgba(81, 75, 74, .2); }
.al-card .cm { position: absolute; top: 11px; left: 11px; height: 18px; padding: 0 6px; border-radius: 9px; display: flex; align-items: center; gap: 3px; font-size: 10px;
  background: rgba(252, 250, 246, .9); color: var(--mauve-deep); }
.al-empty { flex: 0 0 100%; padding: 60px 10px; text-align: center; font-size: 13px; line-height: 2; color: var(--ink-2); }
.al-empty a { color: var(--mauve-deep); text-decoration: underline; text-underline-offset: 3px; }

/* 翻页：小圆点 + 第几页 + 两个小箭头 */
.al-dots { flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 10px; }
.al-dots .dots { display: flex; align-items: center; gap: 6px; }
.al-dots .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--lace); transition: width .2s; }
.al-dots .dots i.on { width: 16px; border-radius: 3px; background: var(--mauve-btn); }
.al-dots .dots em { margin-left: 6px; font-style: normal; font-family: var(--font-serif); font-size: 12.5px; color: var(--ink-2); }
.al-turn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--lace); background: var(--card); color: var(--mauve-deep); padding: 0; display: flex; align-items: center; justify-content: center; }
.al-turn.r .ico { transform: scaleX(-1); }
.al-turn:disabled { opacity: .35; }

/* 看一张 */
.al-one { display: flex; flex-direction: column; }
.al-one .dy-input { margin-top: auto; }
.al-one .dy-cmts { margin-bottom: 18px; }
.al-star[aria-pressed="true"] { background: var(--mauve-btn); border-color: var(--mauve-btn); color: var(--paper); }
.al-big { position: relative; margin: 8px 26px 0; }
.al-big .mat { position: relative; display: block; padding: 10px; border-radius: 3px 16px 3px 16px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--lace), 0 10px 24px rgba(81, 75, 74, .12); }
.al-big .mat::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--line-soft); border-radius: 2px 13px 2px 13px; pointer-events: none; }
.al-big img { display: block; width: 100%; max-height: 420px; object-fit: cover; filter: saturate(.9); border-radius: 2px 10px 2px 2px; }
.al-nav { position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(252, 250, 246, .9); color: var(--mauve-deep); box-shadow: 0 2px 8px rgba(81, 75, 74, .2); }
.al-nav.l { left: -14px; }
.al-nav.r { right: -14px; }
.al-nav.r .ico { transform: scaleX(-1); }
.al-info { margin: 18px 26px 0; text-align: center; }
.al-en { margin: 0; font-family: var(--font-script); font-size: 24px; line-height: 1.3; color: var(--mauve-deep); }
.al-sub { margin: 2px 0 0; font-family: var(--font-serif); font-size: 13px; letter-spacing: 1px; color: var(--ink-2); }
.al-desc { margin: 12px 0 0; font-size: 14.5px; line-height: 1.85; color: var(--ink); }
.al-desc.none { font-size: 12.5px; color: var(--ink-2); }
.al-info .dy-by { margin-top: 10px; }

/* 传照片 */
.al-upcat { margin: 4px 24px 0; }
.al-upcat h3, .al-items h3 { margin: 0 0 8px; font-size: 13px; font-weight: 500; letter-spacing: 1px; color: var(--mauve-deep); text-align: center; }
.al-upcat .dy-cats.in { padding-bottom: 6px; }
.al-items { margin: 12px 22px 0; display: flex; flex-direction: column; gap: 12px; }
.al-item { display: flex; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--lace); border-radius: 4px 14px 4px 14px; box-shadow: var(--shadow); }
.al-item .th { position: relative; flex: none; width: 88px; height: 100px; padding: 5px; border-radius: 3px 10px 3px 10px; box-sizing: border-box; }
.al-item .th img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px 7px 2px 2px; }
.al-item .th button { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; background: var(--teal); color: var(--paper); display: flex; align-items: center; justify-content: center; }
.al-item .fs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.al-item label { display: flex; flex-direction: column; gap: 3px; }
.al-item label span { font-size: 11px; color: var(--ink-2); letter-spacing: 1px; }
.al-item input[type=datetime-local] { height: 32px; border: 0; border-bottom: 1px solid var(--lace); background: none; font-family: var(--font-serif); font-size: 14px; color: var(--teal); padding: 0; outline: 0; }
.al-item textarea { flex: 1; resize: none; border: 0; outline: 0; font: inherit; font-size: 13px; line-height: 26px; color: var(--ink); padding: 0;
  background: transparent repeating-linear-gradient(transparent 0 25px, var(--line-soft) 25px 26px); }
.al-item textarea::placeholder { color: #B3A9A2; }
.al-pick { margin: 14px 22px 0; padding: 22px 16px; border: 1px dashed var(--mauve); border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  color: var(--mauve-deep); background: rgba(252, 250, 246, .6); cursor: pointer; }
.al-pick b { margin-top: 4px; font-size: 14px; font-weight: 500; letter-spacing: 2px; }
.al-pick i { font-style: normal; font-size: 11.5px; color: var(--ink-2); }
