/* 生日网站 · 分享 / 查看模式样式（全部 bd- 前缀） */
/* 最后一页内容变多：用上下弹性空白居中，内容太长时可以滚动，不会顶出屏幕 */
#mod-r2 #r2-stage { justify-content: flex-start; }
#mod-r2 #r2-stage::before, #mod-r2 #r2-stage::after { content: ""; flex: 1 0 0; }

.bd-btn { appearance: none; -webkit-appearance: none; cursor: pointer; min-height: 44px; padding: 10px 26px; border-radius: 999px; border: 2px solid #FFC7DB; background: #FFC7DB; color: #8D7070; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.bd-btn:disabled { opacity: .55; cursor: default; }
.bd-btn-o { background: transparent; color: #FFC7DB; box-shadow: none; }
.bd-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.bd-segs { display: flex; gap: 8px; justify-content: center; margin: 6px 0; }
.bd-seg { appearance: none; -webkit-appearance: none; cursor: pointer; padding: 6px 18px; border-radius: 999px; border: 1.5px solid #FFC7DB; background: transparent; color: #FFC7DB; font: inherit; font-size: 14px; }
.bd-seg.on { background: #FFC7DB; color: #8D7070; font-weight: 700; }
.bd-url { width: min(320px, 86vw); margin: 8px 0; padding: 9px 12px; border-radius: 10px; border: 1.5px solid rgba(255,199,219,.7); background: rgba(255,255,255,.12); color: #FFFBED; font: inherit; font-size: 13px; text-align: center; }
.bd-msg { min-height: 1.4em; margin: 6px 0 0; font-size: 13px; color: #FFFBED; opacity: .95; }
.bd-note { font-size: 12px; opacity: .8; }
.bd-ts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 300; }

/* 查看模式 */
.bd-vbar { position: fixed; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 220; margin: 0 auto; width: -webkit-fit-content; width: fit-content; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(141,112,112,.92); color: #FFC7DB; font-size: 12.5px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.bd-vbar a { color: #FFFBED; font-weight: 700; text-decoration: underline; }
.bd-gone { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: #8D7070; color: #FFC7DB; font-size: 14px; }
.bd-gone p { margin: 0; }
.bd-gone-t { font-size: 18px; font-weight: 700; }

/* 查看模式下：不能选图、删图、改字、点「制作完成」 */
html.bd-viewer #pt-pickBtn, html.bd-viewer #pt-resetBtn, html.bd-viewer #pt-countLabel,
html.bd-viewer #wh-pickBtn, html.bd-viewer #wh-countLabel,
html.bd-viewer #wh-cardToolbar, html.bd-viewer #wh-toolbarBackdrop, html.bd-viewer .ph-x,
html.bd-viewer #ck-madeCompleteBtn, html.bd-viewer #lt-editHint { display: none !important; }
html.bd-viewer #wh-dateBtn { pointer-events: none; }
