/* 5-1 阁楼。class 一律 at- 开头；弹窗借心愿单的蕾丝框 .ws-pop，内嵌浏览器借娱乐的 .fn-br */
.at { position: relative; min-height: 100%; background: #3E3A40; }
.at-scene { position: relative; width: 100%; aspect-ratio: 864 / 1872; overflow: hidden; }
.at-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 一层藕粉紫的薄雾，上面稍亮好放标题；油灯那里一团暖光轻轻呼吸 */
.at-veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(60, 50, 62, .35), rgba(169, 154, 170, .08) 30%, rgba(137, 123, 141, .1) 70%, rgba(40, 34, 42, .45)); }
.at-lamp { position: absolute; left: 58.5%; top: 58.5%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 150, .45), transparent 65%); mix-blend-mode: screen; animation: at-lamp 4.5s ease-in-out infinite; }
@keyframes at-lamp { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .95; transform: scale(1.08); } }

.at-bar { position: absolute; z-index: 4; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--status-h) + 6px) 18px 0; }
.at-lock { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12px; letter-spacing: 1px; color: var(--paper);
  background: rgba(60, 50, 62, .45); border: 1px solid rgba(244, 238, 231, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.at-head { position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--status-h) + 58px); display: flex; flex-direction: column; align-items: center; text-align: center; color: #FBF8F4; pointer-events: none; }
.at-head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: 6px; padding-left: 6px; text-shadow: 0 2px 10px rgba(30, 24, 32, .6); }
.at-head i { font-family: var(--font-script); font-style: normal; font-size: 24px; line-height: 1.1; color: #EDE4EC; text-shadow: 0 2px 8px rgba(30, 24, 32, .6); }
.at-head p { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 4px; border-radius: 14px; font-size: 11.5px; background: rgba(60, 50, 62, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.at-head p .dy-av { width: 20px; height: 20px; font-size: 9.5px; }

/* 物件：呼吸的小光点 + 点了才出来的纸签（和「我们」一样） */
.at-desk { position: absolute; inset: 0; z-index: 2; }
.at-spot { position: absolute; left: calc(var(--x) - var(--w) / 2); top: calc(var(--y) - var(--h) / 2); width: var(--w); height: var(--h); -webkit-tap-highlight-color: transparent; }
.at-spot .glow { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: rgba(255, 240, 214, .95);
  box-shadow: 0 0 0 3px rgba(255, 240, 214, .3), 0 0 12px 4px rgba(255, 214, 160, .7); animation: ou-breathe 3.2s ease-in-out var(--d) infinite; }
.at-spot.on .glow { animation: none; transform: scale(1.3); box-shadow: 0 0 0 4px rgba(255, 240, 214, .45), 0 0 16px 6px rgba(255, 214, 160, .9); }
.at-spot .tag { position: absolute; left: 50%; display: flex; flex-direction: column; align-items: center; white-space: nowrap; transform: translateX(-50%); padding: 4px 10px 5px; border-radius: 2px;
  background: #FBF8F3; color: var(--ink); border: 1px solid rgba(169, 154, 170, .55); box-shadow: 0 0 0 2px #FBF8F3, 0 0 0 2.6px rgba(169, 154, 170, .4), 0 4px 10px rgba(30, 24, 32, .35);
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; }
.at-spot.on .tag { opacity: 1; visibility: visible; }
.at-spot .tag b { font-size: 12.5px; font-weight: 600; letter-spacing: 2px; }
.at-spot .tag small { font-size: 10px; color: var(--ink-2); }
.at-spot[data-tag="top"] .tag { bottom: calc(100% + 2px); }
.at-spot[data-tag="bottom"] .tag { top: calc(100% + 2px); }
.at-spot[data-tag="right"] .tag { left: calc(100% + 4px); top: 50%; transform: translateY(-50%); }
.at-spot[data-tag="top-l"] .tag { bottom: calc(100% + 2px); left: auto; right: 0; transform: none; }
.at-spot[data-tag="bottom-r"] .tag { top: calc(100% + 2px); left: auto; right: 0; transform: none; }
.at-foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(18px + var(--safe-b)); margin: 0; text-align: center; font-size: 11.5px; line-height: 1.9; letter-spacing: 2px;
  color: rgba(248, 243, 236, .85); text-shadow: 0 1px 4px rgba(30, 24, 32, .6); pointer-events: none; }

/* 弹窗里的内容 */
.at-pop .in { align-items: stretch; text-align: left; }
.at-pop .hd { justify-content: center; }
.at-pop .hd b { font-size: 18px; font-weight: 600; letter-spacing: 4px; }
.at-pop .hd em { font-family: var(--font-script); font-style: normal; font-size: 22px; color: var(--mauve-deep); }
.at-pop .sum { margin: 4px 0 12px; text-align: center; font-size: 11.5px; color: var(--ink-2); }
.at-pop .sum .addr { font-family: var(--font-serif); font-size: 13px; color: var(--teal); }
.at-pop .list { display: flex; flex-direction: column; gap: 10px; }
.at-pop time { display: block; margin-top: 4px; font-family: var(--font-serif); font-size: 11.5px; color: var(--ink-2); }
.at-pop .ph { margin: 0; padding: 5px; background: #fff; box-shadow: 0 0 0 1px var(--lace), 0 3px 8px rgba(81, 75, 74, .12); border-radius: 2px 10px 2px 10px; }
.at-pop .ph img { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: 1px 7px 1px 7px; filter: saturate(.85); }
.at-pop .ph figcaption { padding: 6px 4px 2px; font-size: 12.5px; color: var(--ink); }
.at-pop .list.k-photos { display: grid; grid-template-columns: 1fr 1fr; }
.at-pop .list.k-photos .ph img { height: 110px; }
.at-pop .dr { padding: 10px 12px; background: var(--paper); border-left: 2px solid var(--teal-pale); }
.at-pop .dr b { font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.at-pop .dr p { margin: 4px 0 0; font-size: 13px; line-height: 1.8; color: var(--ink); }
.at-pop .nt { margin: 0; padding: 10px 12px; background: #FBF6EA; font-size: 13.5px; line-height: 1.8; color: var(--ink); box-shadow: 0 1px 3px rgba(81, 75, 74, .1); }
.at-pop .nt:nth-child(odd) { margin-right: 14px; } .at-pop .nt:nth-child(even) { margin-left: 14px; }
.at-pop .wk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--lace); background: var(--paper); color: var(--ink); }
.at-pop .wk .ic { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(170, 180, 181, .25); color: var(--teal); flex: none; }
.at-pop .wk span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.at-pop .wk b { font-size: 14px; font-weight: 500; } .at-pop .wk i { font-style: normal; font-size: 11px; color: var(--ink-2); }
.at-pop .wk em { font-style: normal; font-size: 12px; color: var(--mauve-deep); display: flex; align-items: center; gap: 3px; }
.at-pop .wi { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; background: var(--paper); font-size: 14px; color: var(--ink); }
.at-pop .wi time { flex-basis: 100%; margin: 0 0 0 20px; }
.at-pop .wax, .at-pop .sealed .wax { width: 12px; height: 12px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .4), transparent 55%), #637479; box-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.at-pop .ml { margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--paper); border-left: 2px solid var(--mauve-pale); }
.at-pop .ml b { font-size: 13.5px; font-weight: 500; } .at-pop .ml i { font-style: normal; font-size: 11px; color: var(--ink-2); }
/* 没分享的：封起来的一行 */
.at-pop .sealed { margin: 14px 0 4px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--mauve-pale); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--mauve-deep);
  background: repeating-linear-gradient(135deg, rgba(169, 154, 170, .06) 0 6px, transparent 6px 12px); }
.at-pop .sealed .wax { background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .4), transparent 55%), var(--mauve-btn); }
.at-pop .sealed small { flex-basis: 100%; font-size: 11px; color: var(--ink-2); margin-left: 20px; }
.at-br { position: absolute; inset: 0; z-index: 70; }
@media (prefers-reduced-motion: reduce) { .at-lamp, .at-spot .glow { animation: none; } }
