:root {
    font-family: "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.6;
    color: #192a43;
    background: #ebeff5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a, button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #4e80c4; outline-offset: 3px; }

.bb-page-icon::before {
    content: "";
    flex: 0 0 auto;
    display: block;
    width: var(--bb-icon-size, 17px);
    height: var(--bb-icon-size, 17px);
    background: var(--bb-icon-color, currentColor);
    -webkit-mask: var(--bb-icon) center / contain no-repeat;
    mask: var(--bb-icon) center / contain no-repeat;
}
.bb-icon-back {
    --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 6-6 6 6 6'/%3E%3C/svg%3E");
}
.bb-icon-gift {
    --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h16v11H4zM2 7h20v4H2zM12 7v14m0-14H8a2 2 0 1 1 2-3l2 3Zm0 0h4a2 2 0 1 0-2-3l-2 3Z'/%3E%3C/svg%3E");
}
.bb-icon-headset {
    --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13v-1a8 8 0 0 1 16 0v1m-16 0h3v6H6a2 2 0 0 1-2-2v-4Zm16 0h-3v6h1a2 2 0 0 0 2-2v-4Zm-2 6c0 2-2 3-4 3h-2'/%3E%3C/svg%3E");
}
.bb-icon-wechat {
    --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M9 3C4.6 3 1 5.8 1 9.2c0 1.8.9 3.3 2.5 4.5L3 16l2.8-1.3c.7.2 1.4.4 2.2.5a6.2 6.2 0 0 1-.4-2.1c0-3.6 3.5-6.4 7.9-6.4h.8C15 4.5 12.3 3 9 3ZM6.1 8.7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm5.7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z'/%3E%3Cpath fill-rule='evenodd' d='M16 8c-3.9 0-7 2.4-7 5.4 0 3.1 3.1 5.4 7 5.4.8 0 1.6-.1 2.3-.3l2.4 1.2-.5-2c1.7-1 2.8-2.6 2.8-4.3 0-3-3.1-5.4-7-5.4Zm-2.5 4.9a.85.85 0 1 0 0-1.7.85.85 0 0 0 0 1.7Zm4.9 0a.85.85 0 1 0 0-1.7.85.85 0 0 0 0 1.7Z'/%3E%3C/svg%3E");
}
.bb-icon-qq {
    --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 3c-3.2 0-5 2.9-5 6.5v1.1c-2 2.2-3.2 5-2.4 6.4.4.7 1.4.2 2.3-.7.3.8.7 1.5 1.2 2-1.4.5-2.6 1.3-2.2 2.1.5 1.1 3.4.9 6.1.2 2.7.7 5.6.9 6.1-.2.4-.8-.8-1.6-2.2-2.1.5-.5.9-1.2 1.2-2 .9.9 1.9 1.4 2.3.7.8-1.4-.4-4.2-2.4-6.4V9.5C17 5.9 15.2 3 12 3Z'/%3E%3C/svg%3E");
}
.bb-icon-copy {
    --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 8V4h11v12h-4M4 8h12v12H4z'/%3E%3C/svg%3E");
}
.bb-icon-clock {
    --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v5l3 2M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z'/%3E%3C/svg%3E");
}
.bb-icon-message {
    --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 1-8 8H5l1-3a8 8 0 1 1 14-5ZM8 11h.1m3.9 0h.1m3.9 0h.1'/%3E%3C/svg%3E");
}
.bb-icon-lock {
    --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3M5 10h14v11H5zM12 14v3'/%3E%3C/svg%3E");
}
.bb-icon-download {
    --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 15v5h16v-5'/%3E%3C/svg%3E");
}
.bb-icon-shield {
    --bb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.5 7.3 8 9 4.5-1.7 8-4.5 8-9V6l-8-3Zm-3 9 2 2 4-4'/%3E%3C/svg%3E");
}

.bb-page {
    --bb-accent: #227b76;
    --bb-title-icon: #98e2da;
    --bb-rule: #dce4ed;
}
.bb-page-gift { --bb-accent: #ad432e; --bb-title-icon: #ffb59c; }
.bb-page-shell {
    max-width: 578px;
    min-height: 100vh;
    margin-inline: auto;
    background: #fbfcfe;
}
.bb-page-header {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 22px;
    border-top: 4px solid var(--bb-accent);
    background: #192b43;
    color: #fff;
}
.bb-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    color: #d0deeb;
    text-decoration: none;
    font-size: 13px;
}
.bb-back:hover { color: #fff; }
.bb-page-header h1 {
    --bb-icon-size: 26px;
    --bb-icon-color: var(--bb-title-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 13px 0 0;
    font-size: 25px;
    font-weight: 750;
    line-height: 1.3;
}
.bb-page-summary { margin: 7px 0 0; color: #d0deeb; font-size: 13px; text-align: center; }

.bb-page-content { padding: 20px 18px calc(30px + env(safe-area-inset-bottom, 0px)); }
.bb-page-content > section + section { margin-top: 24px; }
.bb-section-title {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #c6d3e1;
    font-size: 16px;
    font-weight: 700;
}
.bb-card-list { display: grid; }
.bb-ticket, .bb-contact, .bb-empty {
    padding: 14px 10px;
    border-bottom: 1px solid var(--bb-rule);
}
.bb-empty {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 108px;
    text-align: center;
    background: #f2f5f9;
}
.bb-empty p { margin: 0; color: #54657c; font-size: 13px; }
.bb-empty p:first-child { color: #273f59; font-size: 15px; font-weight: 700; }
.bb-ticket h3, .bb-contact h3 { margin: 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.bb-ticket p { margin: 5px 0 0; color: #53657b; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bb-contact-heading {
    --bb-icon-size: 26px;
    display: flex;
    align-items: center;
    gap: 11px;
}
.bb-contact-heading.bb-icon-wechat { --bb-icon-color: #0a7c46; }
.bb-contact-heading.bb-icon-qq { --bb-icon-color: #176886; }
.bb-contact-heading p, .bb-contact-guide { color: #53657b; font-size: 13px; }
.bb-contact-heading p { margin: 2px 0 0; }
.bb-contact-guide { margin: 8px 0 0; }

.bb-copy-row {
    appearance: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: 11px;
    padding: 6px 9px;
    border: 1px solid #dce5ee;
    background: #f0f4f8;
    color: #243a55;
    text-align: start;
    cursor: pointer;
}
.bb-copy-row:hover { background: #e8eff7; }
.bb-code-label { color: #506277; font-size: 12px; white-space: nowrap; }
.bb-copy-row code {
    font: 600 14px/1.45 ui-monospace, Consolas, monospace;
    overflow-wrap: anywhere;
    user-select: text;
}
.bb-copy-chip {
    --bb-icon-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border: 1px solid #d3dfed;
    background: #fff;
    color: #23517c;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.bb-copy-row[data-copied] .bb-copy-chip { background: #e2f1e8; color: #175e40; }
.bb-copy-row[data-copy-failed] .bb-copy-chip { background: #f9e7df; color: #843e24; }
.bb-redeem, .bb-hours {
    margin: 0;
    padding-inline: 10px;
    border-bottom: 1px solid var(--bb-rule);
    color: #455b74;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.bb-redeem { list-style: none; counter-reset: bb-step; }
.bb-redeem li, .bb-hours > div { padding-block: 11px; }
.bb-redeem li {
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    counter-increment: bb-step;
}
.bb-redeem li::before {
    content: counter(bb-step, decimal-leading-zero);
    color: var(--bb-accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.bb-redeem li + li, .bb-hours > div + div { border-top: 1px solid var(--bb-rule); }
.bb-hours > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.bb-hours dt { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.bb-hours dd { margin: 0; color: #20334e; text-align: end; white-space: pre-wrap; }

.bb-page-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 18px;
    padding: 8px 14px;
    background: var(--bb-accent);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.bb-page-download:hover { background: #903321; }
.bb-notice {
    --bb-icon-color: #a64233;
    display: flex;
    align-items: start;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 12px;
    border-inline-start: 3px solid #bd5b4a;
    background: #f8efeb;
    color: #65483e;
    font-size: 13px;
}
.bb-notice::before { margin-top: 2px; }
.bb-notice p { margin: 0; }
.bb-return-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: fit-content;
    min-height: 36px;
    margin: 12px auto 0;
    padding-inline: 10px;
    color: #435e7b;
    font-size: 13px;
    text-decoration: none;
}
.bb-copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (min-width: 650px) {
    .bb-page-shell { border-inline: 1px solid var(--bb-rule); }
    .bb-page-header, .bb-page-content { padding-inline: 24px; }
}
@media (max-width: 359px) {
    .bb-page-header, .bb-page-content { padding-inline: 12px; }
    .bb-copy-row { gap: 5px; }
}
