:root { color-scheme: light; font-family: system-ui, "Microsoft YaHei", sans-serif; background: #ede7db; }
body { margin: 0; }
[hidden] { display: none !important; }
#phone { --phone-width: min(100vw, 430px); --rpx: calc(var(--phone-width) / 750); --tab-height: 0px; --preview-primary: #31483c; --preview-background: #f6f1e6; --preview-nav-text: #fffcf6; width: var(--phone-width); height: 100dvh; margin: auto; display: flex; flex-direction: column; background: var(--preview-background); }
#preview-banner { text-align: center; font-size: 11px; padding: 4px; color: #56604e; background: #ede7db; }
#topbar { position: relative; flex: none; padding: 12px 44px; text-align: center; font-size: 16px; font-weight: 600; background: var(--preview-nav-background, var(--preview-primary)); color: var(--preview-nav-text); }
#back { position: absolute; inset: 0 auto 0 0; width: 44px; font-size: 27px; background: transparent; color: inherit; }
#screen { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #c9c6af transparent; }
#tabs { display: flex; flex: 0 0 var(--tab-height); box-sizing: border-box; border-top: 1px solid #e7dfd0; background: var(--tab-background); }
#tabs button { flex: 1; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 11px; background: transparent; color: var(--tab-color); }
#tabs button[aria-current] { color: var(--tab-selected); }
#tabs img { width: 23px; height: 23px; }
button, input, textarea, select { font: inherit; }
button { box-sizing: border-box; border: 0; margin: 0; padding: 0; color: inherit; background: #e6ebe0; }
button:not([disabled]), [role="button"], select { cursor: pointer; }
#screen button { display: block; }
#screen .primary-btn, #screen .ghost-btn { width: 100%; }
#screen button[size="mini"] { padding: 4px 9px; border-radius: 4px; }
#screen button.scan-room-btn { display: flex; align-items: center; justify-content: center; padding: 0 calc(var(--rpx) * 24); border-radius: 999px; }
#screen button.hall-party-trigger { display: flex; }
#screen .bottom-bar { z-index: 1; bottom: var(--tab-height); left: 50%; right: auto; transform: translateX(-50%); width: var(--phone-width); box-sizing: border-box; }
#screen .bottom-bar button { flex: none; }
#screen .menu-page { height: 100%; }
#screen .home-page { min-height: 100%; }
#screen .wx-scroll { scrollbar-width: auto; scrollbar-color: auto; }
#screen .wx-scroll-x { overflow-x: auto; }
#screen .wx-scroll-y { overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; }
#screen .wx-scroll::-webkit-scrollbar { width: 4px; height: 4px; }
#screen .wx-scroll::-webkit-scrollbar-thumb { background: #c9c6af; border-radius: 999px; }
#screen .wx-picker { display: block; }
#screen .wx-picker :is(input, select) { width: 100%; box-sizing: border-box; height: calc(var(--rpx) * 82); padding: 0 calc(var(--rpx) * 22); border: 1px solid #cbd0c2; border-radius: calc(var(--rpx) * 10); background: #fafaf4; color: inherit; }
#screen img[data-mode="aspectFill"] { object-fit: cover; }
#screen input[type="radio"] { width: auto; height: auto; padding: 0; margin: 0 4px 0 0; accent-color: var(--preview-primary); }
#screen textarea { display: block; min-height: 72px; resize: vertical; }
#screen .wx-swiper { position: relative; overflow: hidden; touch-action: pan-y; }
#screen .wx-swiper button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ffffff55; border-radius: 50%; background: #263b31c9; color: #fffcf6; }
.wx-swiper button::before { content: ""; display: block; box-sizing: border-box; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; }
.wx-slide-prev { left: 8px; }
.wx-slide-prev::before { transform: translateX(1px) rotate(135deg); }
.wx-slide-next { right: 8px; }
#screen .showcase-carousel button { top: calc(var(--rpx) * 182); }
.wx-slide-next::before { transform: translateX(-1px) rotate(-45deg); }
#toast { position: fixed; z-index: 3; bottom: 18%; left: 50%; transform: translateX(-50%); box-sizing: border-box; max-width: calc(var(--phone-width) - 28px); width: max-content; padding: 10px 16px; border-radius: 8px; background: #263b31ea; color: #fffcf6; font-size: 14px; text-align: center; pointer-events: none; }
dialog { box-sizing: border-box; width: min(320px, 90vw); border: 0; padding: 22px; border-radius: 14px; background: #fffcf6; color: #292f28; }
dialog::backdrop { background: #1a221b75; }
dialog h2 { margin: 0; font-size: 18px; }
dialog p { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
#modal-image { display: block; width: min(200px, 100%); height: auto; margin: 0 auto 16px; image-rendering: pixelated; }
dialog div { display: flex; justify-content: end; gap: 8px; }
dialog button { padding: 8px 14px; border-radius: 6px; }
#modal-confirm { background: var(--preview-primary); color: #fffcf6; }
