/* Small safe placeholders/dialog additions; original reference.css is retained. */
.b-pc-qr canvas { width: 230px; height: 230px; max-width: 100%; }
.site-qr-hint { margin: 12px 0 0; font-size: 13px; color: #e8d9a8; }
.site-notice { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 32px)); }
.site-notice::backdrop { background: rgba(0, 0, 0, .58); }
.site-notice p { font-size: 15px; line-height: 1.7; }
.site-notice a { display: inline-block; margin: 5px 0 0; padding: 10px 18px; border-radius: 999px; background: #ffc30d; color: #090900; text-decoration: none; }
#codex-related-sites-20261125 { max-width: 1920px; margin-inline: auto; box-sizing: border-box; background: #000; }
@media (max-width: 960px) { #codex-related-sites-20261125 { max-width: 750px; padding-bottom: 180px !important; } }
@media (max-width: 360px) { .b-pc-qr canvas { width: min(230px, calc(100vw - 116px)); height: auto; } }

/* JIAOYS_IMAGE_UPDATE_BEGIN */
/* Five original sections remain in order; only their image presentation changes. */
.landing-b[data-layout="b-pc"] .b-pc-hero { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; padding-bottom: 28px; }
.landing-b[data-layout="b-pc"] .b-pc-hero > .b-pc-slice { grid-column: 1 / -1; }
.landing-b[data-layout="b-pc"] .b-pc-hero.has-web .b-pc-hero-download { position: relative; left: auto; top: auto; width: clamp(200px, 20vw, 340px); margin-top: 10px; justify-self: end; }
.landing-b[data-layout="b-pc"] .b-pc-hero.has-web .b-pc-hero-web { left: auto; justify-self: start; }
.landing-b[data-layout="b"] .b-top { padding-top: 90px; }
.landing-b[data-layout="b"] .b-logo { top: 16px; }
.landing-b[data-layout="b"] .b-link { top: 12px; height: auto; }
.image-update-pair { display: block; width: 100%; }
.image-update-view { position: relative; display: block; width: 100%; overflow: hidden; }
.image-update-view > img.b-slice { position: absolute; top: 0; max-width: none; height: auto; }
.image-update-left { aspect-ratio: var(--image-left-aspect); }
.image-update-right { aspect-ratio: var(--image-right-aspect); }
.image-update-left > img.b-slice { left: 0; width: var(--image-left-scale); }
.image-update-right > img.b-slice { right: 0; width: var(--image-right-scale); }
.image-update-region { aspect-ratio: var(--image-window-aspect); }
.image-update-region > img.b-slice { left: 0; top: 0; width: var(--image-window-scale); transform: translate(var(--image-window-x), var(--image-window-y)); }
/* JIAOYS_IMAGE_UPDATE_END */

/* JIAOYS_REDBEAN_THEME_BEGIN */
body.b-version, .landing.landing-b { background: #120408; color: #fff4f7; }
.b-pc-header { background: #21080f; box-shadow: 0 1px 0 rgba(255,49,88,.28); }
.b-pc-logo.b-brand { width: clamp(148px, 14vw, 206px); flex: none; }
.redbean-wordmark { display: block; width: 100%; height: auto; object-fit: contain; }
.b-pc-logo .redbean-wordmark { width: auto; max-width: 100%; max-height: calc(var(--b-pc-header-h) - 12px); }
.landing-b[data-layout="b"] .b-logo.b-brand { width: clamp(128px, 40vw, 245px); }
.b-pc-nav a { color: #fff4f7; }
.b-pc-nav a:hover, .b-pc-nav a[aria-current="location"] { color: #ff3158; }
.b-pc-download, .site-notice a { background: #ff3158; color: #120408; }
.b-pc-hero-download::before { background: #120408; }
.b-pc-dialog { background: #21080f; border-color: #ff3158; color: #fff4f7; box-shadow: 0 8px 32px rgba(18,4,8,.5); }
.b-pc-dialog-close { color: #fff4f7; }
.site-qr-hint, .b-guide { color: #f4b7c6; }
.b-guide span { color: #fff4f7; }
.b-dlbar { background: linear-gradient(to top, rgba(18,4,8,.98) 65%, rgba(18,4,8,0)); }
.landing-b a:focus-visible, .b-pc button:focus-visible { outline-color: #ff3158; }
.android-modal { background: #120408; color: #fff4f7; }
.android-modal-header { background: linear-gradient(180deg, #21080f, #120408); border-bottom-color: rgba(255,49,88,.4); }
.android-modal-title { color: #fff4f7; }
.android-modal-back img { filter: none; }
.android-modal-cell, .android-modal-pic { border-color: rgba(255,49,88,.3); background: rgba(255,49,88,.06); }
#codex-related-sites-20261125 { background: #120408; color: #fff4f7; border-top-color: rgba(255,49,88,.3) !important; }
/* JIAOYS_REDBEAN_THEME_END */
