/* R202 / R203 公告（列表 mailbox.php + 详情 mailbox_detail.php）——与 App 的 NoticesPageR202 / NoticeDetailR202 同一套视觉：
   黑色画布、按时间线分组的玻璃底板、未读光点、圆角缩略图（多图叠层 +N）、原比例图片与全屏查看器。 */
@view-transition { navigation: auto; }
:root {
    --nt-bg:#06070a; --nt-tile:#15161c; --nt-text:#f4f1f4; --nt-read:#c9c5cf; --nt-body:#e2dfe6;
    --nt-muted:#a7a3ae; --nt-faint:#75717d; --nt-accent:#f0a8af; --nt-event:#eac384; --nt-update:#8fb8f0; --nt-link:#8cc4ff;
    --nt-hair:rgba(255,255,255,.08); --nt-ease:cubic-bezier(.22,1,.36,1); --nt-spring:cubic-bezier(.3,1.35,.5,1);
}
body { background:var(--nt-bg); }
.nt, .ntd { max-width:720px; margin:0 auto; color:var(--nt-text); -webkit-tap-highlight-color:transparent; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; }
.nt { padding:4px 14px 140px; }
.nt svg, .ntd svg { fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- sections ---------- */
.nt-sec { margin:0 0 6px; animation:ntRise .52s var(--nt-ease) both; animation-delay:calc(var(--i, 0) * 60ms); }
.nt-sec-h { display:flex; align-items:center; gap:6px; height:34px; margin-top:14px; padding:0 2px 0 8px; color:var(--nt-muted); font-size:12.5px; font-weight:800; letter-spacing:.08em; }
.nt-sec:first-child .nt-sec-h { margin-top:0; }
.nt-sec-h > span { flex:1; min-width:0; }
.nt-sec.is-pinned .nt-sec-h { color:color-mix(in srgb, var(--nt-accent) 75%, var(--nt-text)); }
.nt-sec-h > svg { width:14px; height:14px; stroke-width:2; color:var(--nt-accent); }
    color:var(--nt-text); font:800 11.5px/1 inherit; font-family:inherit; letter-spacing:0;
    background:linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.06)); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.12);
    transition:transform .4s var(--nt-spring), opacity .24s ease; }

/* glass, same recipe as the App's GlassUiR92 surface (prominent / accent) */
.nt-box { position:relative; overflow:hidden; border-radius:24px; isolation:isolate;
    background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035) 45%, rgba(255,255,255,.055));
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.085), inset 0 1px 0 rgba(255,255,255,.1), 0 14px 34px rgba(0,0,0,.28); }
.nt-sec.is-pinned .nt-box { background:linear-gradient(180deg, rgba(240,168,175,.15), rgba(240,168,175,.06) 45%, rgba(255,255,255,.05));
    box-shadow:inset 0 0 0 1px rgba(240,168,175,.24), inset 0 1px 0 rgba(255,220,224,.16), 0 14px 34px rgba(0,0,0,.3); }
@supports (backdrop-filter:blur(1px)) { .nt-box { backdrop-filter:blur(18px) saturate(1.2); -webkit-backdrop-filter:blur(18px) saturate(1.2); } }

/* ---------- rows ---------- */
.nt-row { position:relative; display:flex; align-items:flex-start; gap:14px; padding:15px 16px 15px 26px; animation:ntRow .5s var(--nt-ease) both; animation-delay:calc(var(--r, 0) * 38ms + 80ms); }
.nt-row + .nt-row::before { content:""; position:absolute; top:0; left:26px; right:16px; height:1px; background:var(--nt-hair); transform:scaleY(.6); transform-origin:top; }
.nt-row::after { content:""; position:absolute; inset:0; background:rgba(255,255,255,.075); opacity:0; transition:opacity .32s ease; pointer-events:none; }
.nt-row:active::after { opacity:1; transition-duration:.06s; }
@media (hover:hover) { .nt-row:hover::after { opacity:.55; } }
.nt-hit { position:absolute; inset:0; z-index:1; border-radius:inherit; }
.nt-hit:focus-visible { outline:2px solid rgba(240,168,175,.6); outline-offset:-3px; border-radius:18px; }
.nt-dot { position:absolute; left:9px; top:calc(15px + 11px - 8px); width:16px; height:16px; pointer-events:none; opacity:0; transform:scale(.4); transition:opacity .3s ease, transform .42s var(--nt-spring); }
.nt-dot::before { content:""; position:absolute; inset:1.5px; border-radius:50%; background:rgba(240,168,175,.22); }
.nt-dot::after { content:""; position:absolute; inset:4.4px; border-radius:50%; background:var(--nt-accent); box-shadow:0 0 10px rgba(240,168,175,.55); }
.nt-row.unread .nt-dot { opacity:1; transform:none; }
.nt-row.read-now .nt-dot { animation:ntDotOut .42s ease both; }
.nt-copy { flex:1; min-width:0; display:flex; flex-direction:column; }
.nt-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:15.5px; line-height:22px; font-weight:800; color:var(--nt-read); transition:color .42s ease; }
.nt-row.unread .nt-title { color:var(--nt-text); }
.nt-ex { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-top:6px; font-size:12.5px; line-height:19px; color:var(--nt-muted); }
.nt-meta { display:flex; align-items:center; gap:6px; margin-top:9px; min-width:0; font-size:11px; color:var(--nt-faint); white-space:nowrap; overflow:hidden; font-variant-numeric:tabular-nums; }
.nt-meta > span:last-child { overflow:hidden; text-overflow:ellipsis; }
.nt-tag { flex:none; padding:2.5px 6px; border-radius:8px; font-size:10px; font-weight:800; line-height:1; }
.nt-tag.is-event { color:var(--nt-event); background:rgba(234,195,132,.14); box-shadow:inset 0 0 0 1px rgba(234,195,132,.42); }
.nt-tag.is-update { color:var(--nt-update); background:rgba(143,184,240,.14); box-shadow:inset 0 0 0 1px rgba(143,184,240,.42); }

/* thumbnail: placeholder tile under the image; two plates behind it when there are more; +N glass pill; play mark for video */
.nt-thumb { position:relative; flex:none; width:70px; height:70px; margin-top:1px; }
.nt-thumb::before { content:""; position:absolute; left:0; bottom:0; width:70px; height:70px; border-radius:14px; background:var(--nt-tile); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); }
.nt-thumb.is-stack::before { width:65px; height:65px; }
.nt-thumb.is-stack::after { content:""; position:absolute; left:8px; top:0; right:0; bottom:8px; border-radius:14px; background:rgba(255,255,255,.12); z-index:-1; }
.nt-thumb img { position:absolute; left:0; bottom:0; width:70px; height:70px; object-fit:cover; border-radius:14px; opacity:0; transition:opacity .3s ease; }
.nt-thumb.is-stack img { width:65px; height:65px; }
.nt-thumb img.on { opacity:1; }
.nt-thumb em { position:absolute; right:9px; bottom:4px; min-width:18px; height:18px; padding:0 6px; box-sizing:border-box; display:grid; place-items:center; border-radius:9px; font:800 10.5px/1 inherit; font-family:inherit; font-style:normal; color:#fff; background:rgba(16,17,22,.72); box-shadow:inset 0 0 0 1px rgba(255,255,255,.2); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.nt-thumb:not(.is-stack) em { right:4px; }
.nt-play { position:absolute; left:0; bottom:0; width:70px; height:70px; display:grid; place-items:center; }
.nt-thumb.is-stack .nt-play { width:65px; height:65px; }
.nt-play::before { content:""; width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.08); }
.nt-play::after { content:""; position:absolute; width:11px; height:13px; margin-left:3px; background:rgba(255,255,255,.85); clip-path:polygon(0 0, 100% 50%, 0 100%); }
.nt-pin { position:relative; z-index:2; flex:none; align-self:center; height:28px; padding:0 10px; border:0; border-radius:14px; cursor:pointer; color:var(--nt-text); font:700 11.5px/1 inherit; font-family:inherit; background:rgba(255,255,255,.08); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); }
.nt-pin:hover { background:rgba(255,255,255,.14); }

.nt-empty { display:flex; flex-direction:column; align-items:center; gap:8px; padding:48px 24px 46px; border-radius:24px; text-align:center;
    background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); box-shadow:inset 0 0 0 1px rgba(255,255,255,.09); animation:ntRise .5s var(--nt-ease) both; }
.nt-empty svg { width:34px; height:34px; color:rgba(255,255,255,.5); stroke-width:1.5; margin-bottom:6px; }
.nt-empty strong { font-size:15px; }
.nt-empty span { font-size:12.5px; color:var(--nt-muted); }

@keyframes ntRise { from { opacity:0; transform:translateY(14px); } }
@keyframes ntRow { from { opacity:0; transform:translateY(8px); } }
@keyframes ntDotOut { 0% { opacity:1; transform:none; } 30% { opacity:1; transform:scale(1.35); } 100% { opacity:0; transform:scale(0); } }

/* ---------- detail ---------- */
.ntd { padding:6px 18px 150px; }
.ntd-back { display:inline-flex; align-items:center; gap:2px; height:34px; padding:0 12px 0 6px; margin:0 0 14px -6px; border-radius:17px; color:var(--nt-muted); text-decoration:none; font-size:13px; font-weight:700; transition:background .2s ease, color .2s ease; }
.ntd-back svg { width:18px; height:18px; stroke-width:2.1; }
.ntd-back:hover { color:var(--nt-text); background:rgba(255,255,255,.06); }
.ntd-cover { margin:0 0 20px; animation:ntRise .5s var(--nt-ease) both; }
.ntd-shot { position:relative; display:block; width:100%; padding:0; border:0; border-radius:22px; overflow:hidden; cursor:zoom-in; background:var(--nt-tile); box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); transition:transform .5s var(--nt-spring); }
.ntd-shot:active { transform:scale(.985); transition-duration:.12s; }
.ntd-shot img { display:block; width:100%; height:auto; min-height:120px; max-height:min(125vw, 900px); object-fit:cover; opacity:0; transition:opacity .36s ease; }
.ntd-shot img.on { opacity:1; }
.ntd-cover .ntd-shot img { max-height:min(125vw, 820px); }
.ntd-chips { display:flex; gap:8px; margin:0 0 12px; animation:ntRise .5s var(--nt-ease) .04s both; }
.ntd-chip { display:inline-flex; align-items:center; gap:3px; height:22px; padding:0 9px; border-radius:11px; font-size:11px; font-weight:800; }
.ntd-chip svg { width:12px; height:12px; stroke-width:2.1; margin-left:-2px; }
.ntd-chip.is-pin { color:#f6c3c8; background:rgba(240,168,175,.14); box-shadow:inset 0 0 0 1px rgba(240,168,175,.45); }
.ntd-chip.is-event { color:#efd2a3; background:rgba(234,195,132,.14); box-shadow:inset 0 0 0 1px rgba(234,195,132,.45); }
.ntd-chip.is-update { color:#a9c8f3; background:rgba(143,184,240,.14); box-shadow:inset 0 0 0 1px rgba(143,184,240,.45); }
.ntd-title { margin:0; font-size:23px; line-height:1.42; font-weight:800; letter-spacing:.01em; animation:ntRise .5s var(--nt-ease) .06s both; }
.ntd-by { display:flex; align-items:center; gap:8px; margin-top:14px; min-width:0; font-size:12px; color:var(--nt-faint); white-space:nowrap; animation:ntRise .5s var(--nt-ease) .1s both; }
.ntd-by img { width:26px; height:26px; border-radius:50%; object-fit:cover; background:rgba(255,255,255,.1); flex:none; }
.ntd-by b { color:var(--nt-muted); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; }
.ntd-hair { height:1px; border:0; margin:18px 0; background:var(--nt-hair); }
.ntd-body { font-size:15.5px; line-height:1.85; letter-spacing:.012em; color:var(--nt-body); word-break:break-word; white-space:pre-wrap; tab-size:4; overflow-wrap:anywhere; animation:ntRise .55s var(--nt-ease) .14s both; }
.ntd-body.is-empty { color:var(--nt-faint); }
.ntd-body a { color:var(--nt-link); text-decoration:none; word-break:break-all; }
.ntd-body a:hover { text-decoration:underline; }
.ntd-shots { display:flex; flex-direction:column; gap:10px; margin-top:22px; }
.ntd-shots .ntd-shot { border-radius:18px; }
.ntd-video { width:100%; aspect-ratio:16/9; border-radius:18px; background:var(--nt-tile); }
.ntd-files { margin-top:22px; border-radius:20px; overflow:hidden; background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); box-shadow:inset 0 0 0 1px rgba(255,255,255,.085); }
.ntd-file { position:relative; display:flex; align-items:center; gap:12px; min-height:64px; padding:10px 14px; box-sizing:border-box; color:var(--nt-text); text-decoration:none; }
.ntd-file + .ntd-file::before { content:""; position:absolute; top:0; left:62px; right:0; height:1px; background:var(--nt-hair); }
.ntd-file > i { flex:none; width:36px; height:36px; display:grid; place-items:center; border-radius:11px; background:rgba(255,255,255,.08); }
.ntd-file > i svg { width:19px; height:19px; stroke-width:1.7; }
.ntd-file > span { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.ntd-file b { font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ntd-file em { font-style:normal; font-size:11px; color:var(--nt-faint); }
.ntd-file audio { width:100%; height:34px; }
.ntd-file .go { width:18px; height:18px; color:var(--nt-muted); flex:none; }
a.ntd-file:active { background:rgba(255,255,255,.05); }
.ntd-acts { display:flex; gap:10px; margin-top:28px; }
.ntd-acts > * { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px; height:46px; border:0; border-radius:23px; cursor:pointer; color:var(--nt-text); text-decoration:none; font:800 13px/1 inherit; font-family:inherit;
    background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.12); transition:transform .45s var(--nt-spring), background .2s ease; }
.ntd-acts > *:active { transform:scale(.95); transition-duration:.1s; }
.ntd-acts svg { width:17px; height:17px; }

/* ---------- full-screen viewer ---------- */
.ntv { position:fixed; inset:0; z-index:10000; touch-action:none; -webkit-user-select:none; user-select:none; }
.ntv[hidden] { display:none; }
.ntv-scrim { position:absolute; inset:0; background:rgba(3,3,5,.96); opacity:0; transition:opacity .32s ease; }
.ntv.on .ntv-scrim { opacity:1; }
.ntv-track { position:absolute; inset:0; display:flex; will-change:transform; }
.ntv-slide { flex:none; width:100vw; height:100%; display:grid; place-items:center; overflow:hidden; }
.ntv-slide img { max-width:100vw; max-height:100%; object-fit:contain; transform-origin:0 0; will-change:transform; }
.ntv-bar { position:absolute; left:0; right:0; top:0; display:flex; align-items:center; justify-content:space-between; padding:calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px; opacity:0; transition:opacity .28s ease; pointer-events:none; }
.ntv.on .ntv-bar { opacity:1; }
.ntv-bar > * { pointer-events:auto; }
.ntv-count { min-width:52px; height:30px; padding:0 12px; display:grid; place-items:center; border-radius:15px; font:800 12.5px/1 inherit; font-family:inherit; color:#fff; background:rgba(255,255,255,.1); box-shadow:inset 0 0 0 1px rgba(255,255,255,.14); font-variant-numeric:tabular-nums; }
.ntv-btn { width:40px; height:40px; display:grid; place-items:center; border:0; border-radius:20px; cursor:pointer; color:#fff; background:rgba(255,255,255,.1); box-shadow:inset 0 0 0 1px rgba(255,255,255,.14); text-decoration:none; }
.ntv-btn svg { width:20px; height:20px; }
.ntv-tools { display:flex; gap:8px; }
.ntv-fly { position:fixed; z-index:10001; object-fit:cover; pointer-events:none; will-change:transform, border-radius; }
.ntv-toast { position:fixed; left:50%; bottom:calc(env(safe-area-inset-bottom, 0px) + 96px); z-index:10002; transform:translate(-50%, 12px); padding:10px 16px; border-radius:18px; font-size:13px; font-weight:700; color:#fff; background:rgba(22,23,28,.92); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12), 0 12px 30px rgba(0,0,0,.4); opacity:0; transition:opacity .25s ease, transform .4s var(--nt-ease); pointer-events:none; }
.ntv-toast.on { opacity:1; transform:translate(-50%, 0); }

::view-transition-old(root), ::view-transition-new(root) { animation-duration:.32s; animation-timing-function:var(--nt-ease); }
::view-transition-group(*) { animation-duration:.46s; animation-timing-function:cubic-bezier(.2,.9,.2,1); }

@media (min-width:760px) { .nt { padding-top:12px; } .ntd { padding-top:14px; } }
@media (prefers-reduced-motion:reduce) {
    .nt-sec, .nt-row, .nt-empty, .ntd-cover, .ntd-chips, .ntd-title, .ntd-by, .ntd-body { animation:none; }
    .nt-dot, .nt-title, .ntv-scrim, .ntv-bar { transition:none; }
}
