/* 公開匿名上傳頁（搭配 app.css 使用） */
.pub-page { align-items: start; }
.card.pub { width: min(680px, 100%); margin: 4vh auto; }
.card.pub .zone {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    margin: 16px 0 12px; padding: 34px 16px; text-align: center;
    border: 2px dashed var(--border); border-radius: var(--radius);
    cursor: pointer; transition: border-color .15s, background .15s;
}
.card.pub .zone:hover, .card.pub .zone.over, .card.pub .zone:focus-visible {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 7%, transparent);
    outline: none;
}
.card.pub .zone strong { font-size: 1.05rem; }
.card.pub .ts-wrap { display: flex; justify-content: center; margin: 8px 0; min-height: 65px; }
.pub-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card.pub .pub-bar .fmt { flex-direction: row; }
.p-list { display: flex; flex-direction: column; margin-top: 8px; }
.p-row { display: flex; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.p-row:last-child { border-bottom: 0; }
.p-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--border); }
.p-thumb.ph { display: block; }
.p-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.p-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.p-meta { color: var(--muted); font-size: .8rem; }
.p-bar { height: 4px; background: var(--border); border-radius: 3px; overflow: hidden; }
.p-bar i { display: block; width: 0; height: 100%; background: var(--primary); transition: width .15s; }
.p-row.ok .p-bar { display: none; }
.p-row.err .p-bar i { background: var(--danger); width: 100% !important; }
.p-row.err .p-meta { color: var(--danger); }
.p-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.card.pub .notice { margin: 16px 0 0; }
.card.pub .p-actions button.primary { margin: 0; padding: 3px 10px; }

/* 頁面最上方的圓形 logo（50×50） */
.pub-logo { display: block; width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 50%; }
.pub-logo img {
    display: block; width: 50px; height: 50px; box-sizing: border-box;
    padding: 3px; object-fit: contain;
    background: #fff; border: 1px solid var(--border); border-radius: 50%;
}
.pub-logo:hover img { border-color: var(--primary); }
.pub-logo:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.card.pub h1, .card.pub > p:first-of-type { text-align: center; }

/* 上傳頁底部廣告（一行三個，與卡片同寬） */
.pub-ads {
    width: min(680px, 100%);
    margin: 20px auto 8px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0 4px;
    box-sizing: border-box;
}
.pub-ad {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
    line-height: 0;
    transition: box-shadow .15s, border-color .15s;
}
a.pub-ad:hover {
    border-color: var(--primary, #2563eb);
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.pub-ad img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}
