.group-buy-host { color: #1b1921; background: #101015; }
.phone-app:has(.group-buy-host) { padding-bottom: 0; background: #fff; }
/* The shared navigation sets display inline. The voucher footer occupies its space on this route. */
.phone-app:has(.group-buy-host) .tabbar { display: none !important; }
.phone-app:has(.group-buy-host) .page-header { background: #101015; color: #fff; border-color: #26242c; }
.phone-app:has(.group-buy-host) .head-btn { color: #eee; }
.group-buy-host button { cursor: pointer; font: inherit; }
.group-buy-host button:disabled { cursor: default; }
.group-buy-page { min-height: calc(100vh - 52px); background: #fff; }
.group-buy-tabs { display: flex; background: #101015; }
.group-buy-tabs[hidden] { display: none; }
.group-buy-tab { position: relative; flex: 1; min-height: 48px; border: none; background: transparent; color: #c0bdc6; font-weight: 600; }
.group-buy-tab.active { color: #fff; }
.group-buy-tab.active::after { content: ""; position: absolute; bottom: 3px; left: calc(50% - 12px); width: 24px; height: 3px; border-radius: 8px; background: #e9ce96; }
.group-buy-tab:disabled { opacity: .45; }
.group-buy-body { background: #101015; }
.gb-banner { margin: 0 16px; min-height: 138px; padding: 15px 18px 29px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; border-radius: 20px 20px 0 0; }
.gb-banner-douyin { background: radial-gradient(ellipse at 102% 15%,#8746ba 0%,transparent 62%),linear-gradient(125deg,#223786,#462189 55%,#26122f); color: #fff; }
.gb-banner-meituan { background: radial-gradient(ellipse at 98% 10%,#ffed76,transparent 60%),linear-gradient(125deg,#ffd94d,#ffbd42 62%,#fba826); color: #33200a; }
.gb-banner h2 { margin: 0; font-size: clamp(23px,6vw,31px); line-height: 1.22; }
.gb-banner p { margin: 7px 0 0; font-size: 13px; }
.gb-banner img { width: 35%; max-width: 140px; height: auto; display: block; }
.gb-paper { position: relative; margin-top: -16px; border-radius: 20px 20px 0 0; background: #fff; padding: 18px 20px calc(136px + env(safe-area-inset-bottom)); min-height: calc(100vh - 210px); }
.gb-paper header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gb-paper header label { font-size: 19px; font-weight: 700; }
.gb-records-link,.gb-code-row button,.gb-table-bar,.gb-dialog-close { border: none; background: transparent; color: #39343e; min-height: 44px; padding: 0 4px; }
.gb-code-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e6e3e9; }
.gb-code-row input { min-width: 0; flex: 1; box-sizing: border-box; min-height: 54px; border: none; background: transparent; color: #211f24; font: inherit; }
.gb-code-row button { min-width: 44px; }
.gb-scan-mark { display: inline-block; position: relative; width: 20px; height: 17px; border: 2px solid #29252e; border-radius: 4px; vertical-align: middle; }
.gb-scan-mark::before { content: ""; position: absolute; left: 4px; right: 4px; top: -3px; bottom: -3px; border-block: 4px solid #fff; }
.gb-scan-mark::after { content: ""; position: absolute; top: 6px; left: 2px; right: 2px; border-top: 2px solid #29252e; }
.gb-paper h3 { margin: 25px 0 8px; font-size: 15px; }
.gb-paper p,.gb-dialog p,.gb-show-ticket .sub { margin: 5px 0; color: #635e69; line-height: 1.65; font-size: 14px; }
.gb-bottom { position: fixed; z-index: 9; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%,480px); box-sizing: border-box; padding: 5px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 #eeecf0; }
.gb-bottom .gb-table-bar { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.gb-bottom .gb-table-bar span { color: #69636f; }
.group-buy-host .primary { min-height: 46px; border: none; border-radius: 12px; background: #32283e; color: #fff; box-shadow: none; font-weight: 650; }
.gb-bottom .primary,.gb-dialog>.primary { display: block; width: 100%; }
.group-buy-host .primary:disabled { background: #f0eef2; color: #827c88; opacity: 1; }
.gb-state,.gb-card { padding: 22px 20px; background: #fff; }
.gb-state + button,.gb-card button { margin: 6px 12px; }
.gb-shade { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; background: rgba(13,12,18,.63); }
.gb-dialog { position: relative; box-sizing: border-box; width: min(100%,480px); padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 80vh; overflow-y: auto; border-radius: 20px 20px 0 0; color: #211e27; background: #fff; }
.gb-dialog h3 { margin: 4px 52px 20px 0; font-size: 19px; }
.gb-dialog .gb-dialog-close { position: absolute; right: 13px; top: 9px; width: 44px; font: 29px/1 sans-serif; }
.gb-dialog .gb-empty { margin: 18px 0; text-align: center; }
.gb-table-scroll { overflow-y: auto; max-height: 43vh; }
.gb-table-scroll h4 { margin: 12px 0 7px; }
.gb-table-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.gb-table-choice,.group-buy-host .input { border-radius: 10px; border: 1px solid #e5e2e8; min-height: 44px; background: #f7f6f8; color: #332e3a; overflow-wrap: anywhere; }
.gb-table-choice[aria-pressed=true] { border-color: #5e467d; background: #eee6f7; color: #422562; }
.gb-table-choice:disabled { color: #928d95; }
.gb-dialog>.primary { margin-top: 15px; }
.gb-dialog>.input { margin-top: 8px; width: 100%; }
.gb-record { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ebe9ee; }
.gb-record small { display: block; color: #68636f; }
.gb-ticket-code { padding: 20px 0; font-size: 25px; font-weight: 700; overflow-wrap: anywhere; letter-spacing: .04em; }
.gb-inline-note { color: #983e22; }
