/* 04 小屋 */
.cabin-scene { position: relative; margin: calc(-52px - env(safe-area-inset-top)) calc(-1 * var(--page-x)) 0; aspect-ratio: 390 / 412; }
.cabin-scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cabin-head { position: absolute; left: 20px; top: calc(56px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 2px; z-index: 1; }
.cabin-head h1 { font-family: var(--f-title); font-weight: 600; font-size: var(--fs-h1); line-height: 30px; letter-spacing: 2px; }
.cabin-whale { position: absolute; left: 38.5%; top: 64.6%; width: 19%; }
.cabin-whale svg { width: 100%; height: auto; display: block; }
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 92px; gap: 12px; }
.mod { border-radius: 26px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.mod h2 { font-family: var(--f-title); font-weight: 600; font-size: 15px; line-height: 20px; }
.mod .t { display: flex; flex-direction: column; min-width: 0; }
.mod svg.badge-svg { width: 40px; height: 40px; flex: none; overflow: visible; }
.mod-album { grid-row: span 2; flex-direction: column; align-items: stretch; justify-content: space-between; padding: 14px 16px; background: linear-gradient(150deg, rgba(255, 206, 227, 0.55), rgba(242, 249, 252, 0.3)); }
.mod-album h2 { font-size: 16px; line-height: 22px; }
.stack { position: relative; height: 104px; margin-top: 4px; }
.stack i { position: absolute; width: 78px; height: 84px; border-radius: 12px; border: 4px solid #FFFFFF; box-shadow: 0 6px 14px rgba(38, 34, 119, 0.15); background-size: cover; background-position: center; }
.stack i:nth-child(1) { left: 8px; top: 12px; transform: rotate(-8deg); }
.stack i:nth-child(2) { left: 58px; top: 6px; transform: rotate(6deg); }
.stack i:nth-child(3) { left: 34px; top: 22px; }
.mod-watch { grid-column: span 2; gap: 12px; padding: 14px 16px; background: linear-gradient(150deg, rgba(197, 232, 238, 0.55), rgba(242, 249, 252, 0.3)); }
.mod-watch h2 { font-size: 16px; line-height: 22px; }
.mod-watch .go { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--c-whale); color: #FFFFFF; font-size: var(--fs-small); display: flex; align-items: center; flex: none; }
.cabin-mods { margin-top: 0; }

/* 占位照片（没有真图时） */
.ph { background-image: var(--ph); display: flex; align-items: center; justify-content: center; }
.ph svg { width: 26px; height: 26px; fill: none; stroke: #FFFFFF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }

/* 04 相册 */
.album-tools { margin-top: 12px; }
.album-tools .who { display: inline-flex; }
.month-h { margin: 14px 4px 8px; display: flex; align-items: baseline; justify-content: space-between; }
.month-h h2 { font-family: var(--f-title); font-weight: 600; font-size: 15px; line-height: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.photo { aspect-ratio: 1; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 6px 14px rgba(38, 34, 119, 0.10); position: relative; overflow: hidden; background-size: cover; background-position: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .who-dot { position: absolute; left: 6px; bottom: 6px; width: 18px; height: 18px; border-radius: 9px; color: #FFFFFF; font-size: 10px; display: flex; align-items: center; justify-content: center; border: 1.5px solid #FFFFFF; }
.photo .who-dot.him { background: var(--c-online); }
.photo .who-dot.her { background: var(--c-rose); }
.photo .star { position: absolute; right: 6px; top: 6px; width: 16px; height: 16px; fill: #F7B6CF; stroke: #FFFFFF; stroke-width: 1.6; }

.viewer { position: fixed; inset: 0; z-index: 40; background: rgba(31, 29, 92, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: flex; flex-direction: column; touch-action: pan-y; }
.viewer-top { flex: none; padding: calc(52px + env(safe-area-inset-top)) 16px 0; height: calc(96px + env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; color: #DEF1F5; font-family: var(--f-mono); font-size: var(--fs-small); }
.viewer-top button { width: 44px; height: 44px; border-radius: 22px; background: rgba(255, 255, 255, 0.18); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.viewer-img { flex: 1; margin: 12px 16px; border-radius: 24px; border: 3px solid rgba(255, 255, 255, 0.9); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25); overflow: hidden; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; min-height: 0; }
.viewer-img img { width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; }
.viewer-img .ph-icon { width: 56px; height: 56px; fill: none; stroke: #FFFFFF; stroke-width: 1.4; }
.viewer-card { flex: none; margin: 0 16px calc(34px + env(safe-area-inset-bottom)); border-radius: 26px; padding: 16px 18px; background: rgba(246, 251, 253, 0.9); border: 1px solid rgba(255, 255, 255, 0.9); display: flex; flex-direction: column; gap: 12px; }
.viewer-card .row1 { display: flex; align-items: center; gap: 10px; }
.viewer-card .said { padding: 8px 12px; border-radius: 14px; background: rgba(197, 232, 238, 0.5); font-size: var(--fs-small); line-height: 20px; color: var(--c-ink-3); }
.acts4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.acts4 button { height: 60px; border-radius: 18px; background: rgba(186, 203, 227, 0.45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: var(--fs-cap); color: var(--c-ink-3); }
.acts4 button .icon { width: 20px; height: 20px; }
.acts4 button[aria-pressed="true"] { background: rgba(255, 206, 227, 0.5); color: var(--c-rose); }
.acts4 button[aria-pressed="true"] .icon { fill: #F7B6CF; }
.acts4 button.danger { color: #C2456A; }

/* 全局 · 内置浏览器 */
.browser-layer { position: fixed; inset: 0; z-index: 48; background: rgba(38, 34, 119, 0.30); }
.browser { position: absolute; left: 50%; top: calc(48px + env(safe-area-inset-top)); bottom: 0; width: min(100vw, 430px); transform: translate(-50%, 100%); transition: transform 0.25s ease; border-radius: 28px 28px 0 0; overflow: hidden; background: #FFFFFF; box-shadow: 0 -12px 36px rgba(38, 34, 119, 0.25); display: flex; flex-direction: column; }
.browser-layer.open .browser { transform: translate(-50%, 0); }
.br-top { flex: none; height: 60px; padding: 0 8px; display: flex; align-items: center; gap: 4px; background: rgba(242, 249, 252, 0.94); border-bottom: 1px solid rgba(186, 203, 227, 0.6); position: relative; }
.br-top button { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: var(--c-ink-3); flex: none; }
.br-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.br-title b { font-size: 15px; font-weight: 500; line-height: 20px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-title .cap { font-family: var(--f-mono); font-size: 11px; display: flex; align-items: center; gap: 4px; }
.br-bar { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; border-radius: 0 2px 2px 0; background: linear-gradient(90deg, var(--c-sea), var(--c-whale)); transition: width 0.4s ease, opacity 0.3s; }
.br-body { flex: 1; position: relative; background: linear-gradient(180deg, #F6FBFD, #EEF2FA); }
.br-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #FFFFFF; }
.br-blocked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 36px 80px; text-align: center; background: linear-gradient(180deg, #F6FBFD, #EEF2FA); }
.br-blocked h2 { font-family: var(--f-title); font-weight: 600; font-size: 18px; line-height: 26px; }
.br-blocked .btns { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }
.br-tools { flex: none; height: calc(84px + env(safe-area-inset-bottom)); padding: 8px 20px calc(26px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; background: rgba(242, 249, 252, 0.94); border-top: 1px solid rgba(186, 203, 227, 0.6); }
.br-tools button { width: 48px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: var(--c-ink-3); }
.br-tools button:disabled { opacity: 0.35; }
.br-tools .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.br-menu { position: absolute; right: 10px; top: 56px; z-index: 2; width: 180px; border-radius: 18px; padding: 6px; background: rgba(246, 251, 253, 0.98); box-shadow: 0 12px 28px rgba(38, 34, 119, 0.2); }
.br-menu button { width: 100%; height: 40px; padding: 0 12px; border-radius: 12px; text-align: left; font-size: var(--fs-body); }
.br-menu button:hover { background: rgba(186, 203, 227, 0.35); }
.mod .t .cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
