:root {
  --orange: #ff5a1f;
  --orange-pressed: #e94d16;
  --orange-light: #fff4ef;
  --orange-soft: #fff8f5;
  --orange-border: #f6b28f;
  --text: #222222;
  --regular: #555555;
  --secondary: #999999;
  --disabled: #c7c7c7;
  --page: #f7f7f8;
  --card: #ffffff;
  --border: #eeeeee;
  --divider: #f2f2f2;
  --success: #1fc48d;
  --warning: #f59e0b;
  --error: #f05252;
  font-family: "PingFang SC", "SF Pro", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #eef0f3; }
body { min-width: 320px; }
button, input { border: 0; font: inherit; letter-spacing: 0; }
button { background: transparent; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
svg { display: block; }

.demo-stage { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.phone {
  position: relative;
  width: min(390px, 100vw);
  height: min(844px, calc(100vh - 48px));
  min-height: 680px;
  overflow: hidden;
  border: 1px solid #dddddf;
  border-radius: 28px;
  background: var(--page);
  box-shadow: 0 24px 72px rgb(25 30 38 / 18%);
}
.test-data-panel { display: none; }
#app, .app-screen { width: 100%; height: 100%; }
.app-screen { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--page); }

.status-bar {
  height: 36px;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px 6px;
  background: var(--card);
  color: #111;
  font-size: 13px;
}
.status-bar strong { font-size: 14px; }
.status-icons { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.signal { font-size: 8px; letter-spacing: -1px; }
.battery { min-width: 25px; padding: 1px 3px; border-radius: 5px; background: #111; color: #fff; font-size: 10px; text-align: center; }

.app-nav {
  min-height: 54px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 8px;
  border-bottom: 1px solid var(--divider);
  background: var(--card);
}
.app-nav h1 { overflow: hidden; margin: 0; font-size: 18px; font-weight: 600; line-height: 26px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.nav-back { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.nav-back:active { background: #f5f5f5; }
.nav-placeholder { width: 40px; height: 40px; }

.app-content { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 28px; scrollbar-width: none; }
.app-content::-webkit-scrollbar { display: none; }
.app-content.has-fixed-action { padding-bottom: 106px; }

.card { border: 1px solid var(--border); border-radius: 12px; background: var(--card); }

.credential-card { padding: 16px; }
.credential-card > .primary-button { margin-top: 14px; }
.field-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.field-label strong { font-size: 16px; font-weight: 600; }
.field-label span { color: var(--secondary); font-size: 12px; }
.credential-input {
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dedfe2;
  border-radius: 8px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.credential-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgb(255 90 31 / 9%); }
.credential-input.is-error { border-color: var(--error); }
.credential-input input { width: 100%; min-width: 0; height: 100%; padding: 0 12px; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.credential-input input::placeholder { color: #b7b7bb; }
.credential-input button { height: 32px; display: flex; align-items: center; gap: 4px; flex: 0 0 auto; margin-right: 8px; padding: 0 9px; border-radius: 7px; background: var(--orange-light); color: var(--orange-pressed); font-size: 13px; font-weight: 500; }
.field-hint, .field-error { display: flex; align-items: center; gap: 4px; margin: 8px 0 14px; font-size: 12px; line-height: 18px; }
.field-hint { color: var(--secondary); }
.field-error { color: var(--error); }

.primary-button, .secondary-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .12s, background .12s, opacity .12s;
}
.primary-button { background: var(--orange); color: #fff; }
.primary-button:active:not(:disabled) { transform: scale(.99); background: var(--orange-pressed); }
.primary-button:disabled { background: #ffb69c; color: rgb(255 255 255 / 90%); }
.secondary-button { border: 1px solid var(--orange-border); background: #fff; color: var(--orange-pressed); }

.notice-card {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #ffe0d2;
  border-radius: 10px;
  background: var(--orange-soft);
  text-align: left;
}
.notice-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--orange); }
.notice-card span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.notice-card strong { font-size: 13px; font-weight: 600; }
.notice-card small { overflow: hidden; color: #8e6c5f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.notice-card > svg { color: #c4a093; }

.account-card { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 13px 14px; }
.account-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #f4f4f5; color: var(--regular); }
.account-card > div:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.account-card span { color: var(--secondary); font-size: 11px; }
.account-card strong { font-size: 14px; font-weight: 600; }
.warm-tips { margin-top: 22px; padding: 0 2px; color: var(--secondary); }
.warm-tips h2 { margin: 0 0 10px; color: var(--regular); font-size: 14px; font-weight: 600; }
.warm-tips p,
.warm-tips button { position: relative; width: 100%; display: flex; align-items: center; margin: 0; padding: 6px 0 6px 13px; font-size: 12px; line-height: 18px; text-align: left; }
.warm-tips p::before,
.warm-tips button::before { position: absolute; top: 13px; left: 1px; width: 4px; height: 4px; border-radius: 50%; background: #b9b9bd; content: ""; }
.warm-tips button { justify-content: space-between; color: var(--orange-pressed); }
.warm-tips button::before { background: var(--orange); }

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 16px; padding: 0; list-style: none; }
.steps::before { position: absolute; top: 11px; left: 17%; right: 17%; height: 1px; background: #dedfe2; content: ""; }
.steps.steps-two { grid-template-columns: repeat(2, 1fr); }
.steps.steps-two::before { left: 25%; right: 25%; }
.steps li { position: relative; display: grid; place-items: center; gap: 4px; color: var(--disabled); }
.steps li span { z-index: 1; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #e7e7e9; color: #fff; font-size: 11px; font-style: normal; }
.steps li em { font-size: 11px; font-style: normal; }
.steps li.active { color: var(--orange-pressed); }
.steps li.active span { background: var(--orange); }

.result-banner { display: flex; gap: 12px; margin-bottom: 12px; padding: 15px; border-radius: 12px; }
.result-banner.warning { border: 1px solid #ffe0ae; background: #fff9ec; }
.result-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #fff2d9; color: var(--warning); }
.result-banner span { color: #9b6b13; font-size: 11px; }
.result-banner h2 { margin: 2px 0 4px; font-size: 17px; font-weight: 600; }
.result-banner p { margin: 0; color: #816f54; font-size: 12px; line-height: 18px; }
.compact-result { align-items: center; gap: 10px; padding: 12px 13px; }
.compact-result .result-icon { width: 36px; height: 36px; }
.compact-result h2 { margin: 1px 0 2px; font-size: 14px; line-height: 20px; }
.compact-result p { font-size: 11px; line-height: 16px; }
.compact-order { display: grid; gap: 3px; margin-bottom: 12px; padding: 12px 14px; }
.compact-order span { color: var(--secondary); font-size: 11px; }
.compact-order strong { font-size: 13px; font-weight: 500; letter-spacing: .2px; }
.group-order-summary { margin-bottom: 10px; }
.voucher-help-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px 0 10px;
  padding: 9px 12px;
  color: var(--orange-pressed);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.voucher-help-link span { display: flex; align-items: center; gap: 7px; }

.section-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; font-size: 15px; font-weight: 600; }
.section-kicker > span { width: 3px; height: 17px; border-radius: 2px; background: var(--orange); }
.voucher-guide { margin-bottom: 12px; padding: 14px; }
.voucher-guide > p { margin: -3px 0 11px; color: var(--regular); font-size: 12px; line-height: 18px; }
.voucher-shot { overflow: hidden; margin: 0; border: 1px solid var(--border); border-radius: 9px; background: #f1f1f2; }
.voucher-shot-crop { position: relative; height: 236px; overflow: hidden; background: #e9e9eb; }
.voucher-shot-crop img { width: 200%; max-width: none; display: block; transform: translate(-50%, -27%); }
.voucher-shot figcaption { display: flex; align-items: center; gap: 6px; padding: 10px 11px; background: #fff; color: var(--regular); font-size: 12px; }
.voucher-shot figcaption span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; font-weight: 600; }
.voucher-shot figcaption strong { margin-left: auto; color: var(--orange-pressed); font-weight: 500; }
.voucher-field { margin-bottom: 8px; }
.voucher-field .primary-button { margin-top: 14px; }
.combined-redemption-card { display: grid; gap: 14px; margin-bottom: 12px; padding: 14px; }
.combined-field + .combined-field { padding-top: 14px; border-top: 1px solid var(--divider); }
.combined-field .section-kicker { margin-bottom: 9px; }
.combined-field .field-label { margin-bottom: 7px; }
.subject-selection-inline .selected-subject-row { min-height: 58px; margin-top: 0; padding-block: 9px; }
.subject-selection-inline .subject-warning { margin-top: 8px; }

.product-card { padding: 14px; }
.product-name { margin: 0; font-size: 15px; font-weight: 600; line-height: 22px; }

.subject-card { margin-top: 12px; padding: 14px; }
.selected-subject-row {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 11px 12px;
  border: 1px solid #ffe0d2;
  border-radius: 9px;
  background: var(--orange-soft);
  text-align: left;
}
.selected-subject-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #fff; color: var(--orange); }
.selected-subject-copy { min-width: 0; display: grid; align-items: center; flex: 1; }
.selected-subject-copy strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.subject-change { display: flex; align-items: center; flex: 0 0 auto; color: var(--orange-pressed); font-size: 11px; }
.subject-warning { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: #a36b21; font-size: 11px; }

.product-detail-rows { margin-top: 13px; border-top: 1px solid var(--divider); }
.product-detail-rows > div, .success-card > div, .status-details > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--divider); }
.product-detail-rows > div:last-child, .success-card > div:last-child, .status-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.product-detail-rows span, .success-card span, .status-details span { flex: 0 0 auto; color: var(--secondary); font-size: 12px; }
.product-detail-rows strong, .success-card strong, .status-details strong { min-width: 0; font-size: 12px; font-weight: 500; text-align: right; word-break: break-all; }
.confirm-notice { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 13px 14px; border: 1px solid #dff3e9; border-radius: 10px; background: #f3fcf8; color: var(--success); }
.confirm-notice span { display: grid; gap: 2px; color: var(--text); }
.confirm-notice strong { font-size: 13px; font-weight: 600; }
.confirm-notice small { color: #648676; font-size: 11px; }

.fixed-action { position: absolute; right: 0; bottom: 0; left: 0; z-index: 10; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); background: rgb(255 255 255 / 96%); }
.fixed-action.split .secondary-button { flex: .85; }
.fixed-action.split .primary-button { flex: 1.3; }

.success-hero, .state-hero { display: grid; place-items: center; padding: 24px 12px 20px; text-align: center; }
.success-mark, .state-mark { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 50%; background: #ecfbf4; color: var(--success); }
.state-mark { background: var(--orange-light); color: var(--orange); }
.success-hero h2, .state-hero h2 { margin: 0 0 6px; font-size: 21px; font-weight: 600; }
.success-hero p, .state-hero p { margin: 0; color: var(--secondary); font-size: 13px; }
.success-card, .status-details { padding: 15px; }
.success-card h3 { margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--divider); font-size: 15px; font-weight: 600; line-height: 21px; }
.next-tip { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 13px 14px; border: 1px solid #ffe2d5; border-radius: 10px; background: var(--orange-soft); color: var(--orange); }
.next-tip > div { display: grid; gap: 2px; color: var(--text); }
.next-tip strong { font-size: 13px; font-weight: 600; }
.next-tip small { color: #8d756c; font-size: 11px; }

.sheet-mask { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; background: rgb(12 17 24 / 48%); animation: fade-in .18s ease-out; }
.help-sheet { width: 100%; max-height: 88%; overflow-y: auto; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; animation: sheet-up .22s ease-out; }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 13px; border-radius: 99px; background: #dedfe2; }
.help-sheet header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 13px; }
.help-sheet header h2 { margin: 0 0 3px; font-size: 18px; font-weight: 600; }
.help-sheet header p { margin: 0; color: var(--secondary); font-size: 12px; }
.help-sheet header button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f5f5f6; color: var(--regular); }
.help-sheet .voucher-shot { margin-bottom: 14px; }
.help-sheet .voucher-shot-crop { height: 270px; }
.query-help-sheet { max-height: 92%; }
.query-flow-reference { overflow: hidden; border: 1px solid #f0f1f3; border-radius: 10px; background: #f7f8fa; }
.query-reference-crop { position: relative; height: 590px; overflow: hidden; }
.query-reference-crop img { position: absolute; top: 0; left: 0; width: 100%; max-width: none; display: block; transform: translateY(-37.5%); }
.query-flow-or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 14px 0; color: var(--secondary); font-size: 13px; }
.query-flow-or span { height: 1px; background: var(--divider); }
.query-flow-or strong { font-weight: 500; }
.voucher-copy-branch { padding: 13px; border: 1px solid #ffe0d2; border-radius: 10px; background: var(--orange-soft); }
.voucher-copy-branch h3 { margin: 0 0 5px; font-size: 14px; font-weight: 600; line-height: 21px; }
.voucher-copy-branch > p { margin: 0 0 11px; color: var(--regular); font-size: 11px; line-height: 17px; }
.voucher-copy-branch .voucher-shot { margin-bottom: 0; }
.voucher-copy-branch .voucher-shot-crop { height: 218px; }
.query-help-sheet > .primary-button { margin-top: 14px; }
.voucher-location-copy { margin: 0 0 12px; color: var(--regular); font-size: 12px; line-height: 18px; }
.voucher-location-sheet .voucher-shot-crop { height: 250px; }

.subject-picker-mask { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-end; background: rgb(12 17 24 / 48%); }
.subject-picker-mask.animate-in { animation: fade-in .18s ease-out; }
.subject-picker { position: relative; width: 100%; height: min(84%, 720px); display: flex; flex-direction: column; overflow: hidden; padding-top: 8px; border-radius: 20px 20px 0 0; background: #fff; }
.subject-picker.animate-in { animation: sheet-up .22s ease-out; }
.subject-picker-header { min-height: 54px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 0 14px; }
.subject-picker-header h2 { margin: 0; font-size: 18px; font-weight: 500; text-align: center; }
.subject-picker-header button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f5f5f6; color: #1f1f1f; }
.subject-search { position: relative; z-index: 4; height: 44px; display: flex; align-items: center; gap: 9px; flex: 0 0 auto; margin: 0 10px 10px; padding: 0 14px; border-radius: 999px; background: #f5f5f7; color: #999da3; }
.subject-search input { width: 100%; height: 100%; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.subject-search input::placeholder { color: #afb2b6; }
.subject-search input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.subject-search > button { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #d9dadd; color: #fff; }
.subject-picker-body { min-height: 0; display: grid; grid-template-columns: 116px minmax(0, 1fr); flex: 1; overflow: hidden; border-top: 1px solid var(--divider); }
.subject-level-one { overflow-y: auto; background: #f5f5f7; scrollbar-width: none; }
.subject-level-one::-webkit-scrollbar { display: none; }
.subject-level-one button { position: relative; width: 100%; min-height: 56px; padding: 9px 7px; color: #5f6063; font-size: 14px; font-weight: 500; line-height: 19px; text-align: center; }
.subject-level-one button.active { background: #fff; color: var(--orange-pressed); font-weight: 600; }
.subject-level-one button.active::before { content: ""; position: absolute; top: 17px; bottom: 17px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
.subject-levels { overflow-y: auto; padding: 0 14px 22px; scrollbar-width: none; }
.subject-levels::-webkit-scrollbar { display: none; }
.subject-group { padding-top: 19px; }
.subject-group h3 { margin: 0 0 13px; font-size: 15px; font-weight: 600; }
.subject-chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.subject-chip { min-height: 39px; display: grid; align-content: center; padding: 7px 4px; border: 1px solid #dedfe2; border-radius: 8px; background: #fff; color: #5f6063; text-align: center; }
.subject-chip strong { overflow: hidden; font-size: 13px; font-weight: 400; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.subject-chip.selected { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-pressed); }
.subject-picker-footer { flex: 0 0 auto; border-top: 1px solid var(--divider); background: #fff; }
.subject-picker-footer p { height: 30px; display: flex; align-items: center; gap: 0; margin: 0; padding: 0 16px; font-size: 12px; }
.subject-picker-footer p span { color: var(--secondary); }
.subject-picker-footer p strong { color: var(--orange-pressed); font-weight: 600; }
.subject-picker-footer .primary-button { min-height: 52px; border-radius: 0; font-size: 16px; font-weight: 500; }
.subject-search-layer { position: absolute; inset: 133px 0 0; z-index: 3; display: flex; flex-direction: column; pointer-events: none; }
.subject-search-results { flex: 0 0 auto; background: #fff; pointer-events: auto; }
.subject-search-results button { width: 100%; min-height: 50px; padding: 11px 14px; border-top: 1px solid var(--divider); background: #fff; color: #303136; font-size: 13px; line-height: 20px; text-align: center; }
.subject-search-results button:last-child { border-bottom: 1px solid var(--divider); }
.subject-search-results mark { background: transparent; color: var(--orange-pressed); }
.subject-search-results p { margin: 0; padding: 34px 16px; border-top: 1px solid var(--divider); color: var(--secondary); font-size: 13px; text-align: center; }
.subject-search-dim { min-height: 0; flex: 1; background: rgb(31 34 38 / 42%); pointer-events: auto; }

.home-screen { background: #fff; }
.home-scroll {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 0 82px;
  background: #fff;
  scrollbar-width: none;
}
.home-scroll::-webkit-scrollbar { display: none; }
.home-topbar {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.home-subject {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
}
.home-subject span {
  width: 0;
  height: 0;
  margin-top: 5px;
  border: 5px solid transparent;
  border-top-color: #222;
}
.home-message {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #1d3150;
}
.home-message i {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 7px;
  height: 7px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #ff2f2f;
}
.home-business-tabs {
  display: flex;
  gap: 24px;
  padding: 0 16px 10px;
}
.home-business-tabs button {
  position: relative;
  padding: 3px 0 8px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
}
.home-business-tabs button.active { color: var(--text); }
.home-business-tabs button.active::after {
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  content: "";
}
.home-banner {
  position: relative;
  min-height: 132px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  margin: 0 12px;
  padding: 17px 18px;
  border-radius: 9px;
  background: linear-gradient(118deg, #17112f 0%, #36227d 52%, #7462e4 100%);
  color: #fff;
}
.home-banner > div:first-child { position: relative; z-index: 2; }
.home-banner span { font-size: 11px; opacity: .82; }
.home-banner h1 {
  margin: 3px 0 4px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.18;
}
.home-banner p {
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: 10px;
}
.home-banner button {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: #7268ee;
  color: #fff;
  font-size: 10px;
}
.home-banner-visual {
  position: relative;
  width: 112px;
  flex: 0 0 auto;
}
.home-banner-visual::before,
.home-banner-visual::after {
  position: absolute;
  border-radius: 50%;
  background: rgb(255 255 255 / 9%);
  content: "";
}
.home-banner-visual::before { width: 116px; height: 116px; top: -9px; right: -26px; }
.home-banner-visual::after { width: 66px; height: 66px; right: 40px; bottom: -29px; }
.home-banner-visual .visual-card {
  position: absolute;
  top: 15px;
  right: 10px;
  z-index: 2;
  width: 66px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 5px solid rgb(255 255 255 / 20%);
  border-radius: 12px;
  background: #f2f0ff;
  color: var(--orange);
  opacity: 1;
  box-shadow: 0 12px 24px rgb(8 6 24 / 25%);
  transform: rotate(8deg);
}
.home-banner-visual i {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #ff9c6e;
  box-shadow: 0 5px 11px rgb(8 6 24 / 20%);
}
.home-banner-visual i:nth-of-type(1) { top: 6px; left: 24px; transform: rotate(18deg); }
.home-banner-visual i:nth-of-type(2) { right: 1px; bottom: 4px; background: #66d7d0; transform: rotate(-18deg); }
.home-banner-visual i:nth-of-type(3) { bottom: 18px; left: 5px; width: 10px; height: 10px; background: #9d91ff; }
.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 15px 8px 13px;
  background: #fff;
}
.home-quick-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
}
.home-quick-item strong {
  color: #3b3b3d;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.home-quick-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%), 0 6px 14px rgb(35 41 52 / 8%);
}
.home-quick-icon.orange { background: linear-gradient(145deg, #fff1db, #ff9e50); color: #fff; }
.home-quick-icon.green { background: linear-gradient(145deg, #eaffef, #62d99a); color: #fff; transform: rotate(-7deg); }
.home-quick-icon.blue { background: linear-gradient(145deg, #eef9ff, #70c9fa); color: #fff; }
.home-quick-icon.pink { border-radius: 50% 50% 46% 54%; background: linear-gradient(145deg, #fff0f7, #fa74a8); color: #fff; }
.home-feed-section {
  padding: 12px 14px 15px;
  border-top: 8px solid var(--page);
  background: #fff;
}
.home-section-head {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.home-section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.home-section-head h2 span { width: 3px; height: 17px; border-radius: 2px; background: var(--orange); }
.home-section-head button { display: flex; align-items: center; color: var(--secondary); font-size: 11px; }
.home-live-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 92px;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
}
.home-live-row:last-child { border-bottom: 0; }
.home-live-cover {
  position: relative;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  text-align: center;
}
.home-live-cover strong { padding: 10px; color: #fff; font-size: 16px; line-height: 20px; }
.home-live-cover span {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px 5px;
  border-radius: 0 0 5px;
  background: rgb(20 22 27 / 55%);
  color: #fff;
  font-size: 9px;
}
.orange-cover { background: linear-gradient(135deg, #ff965f, #ff5a1f); }
.blue-cover { background: linear-gradient(135deg, #5eb6ff, #384ca8); }
.home-live-copy { min-width: 0; }
.home-live-copy h3 {
  overflow: hidden;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-live-copy p,
.home-live-copy small {
  display: block;
  overflow: hidden;
  margin: 0;
  color: var(--secondary);
  font-size: 10px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-live-row > button {
  align-self: end;
  margin-bottom: 8px;
  padding: 6px 7px;
  border-radius: 5px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  white-space: nowrap;
}
.home-bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  height: 65px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px 10px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--divider);
  background: rgb(255 255 255 / 97%);
}
.home-bottom-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #8b8d91;
  font-size: 10px;
}
.home-bottom-nav button.active { color: var(--orange); }
.home-bottom-nav button.active svg { fill: var(--orange); stroke-width: 1.5; }
.toast { position: absolute; bottom: 82px; left: 50%; z-index: 70; max-width: calc(100% - 48px); padding: 9px 14px; border-radius: 999px; background: rgb(27 29 32 / 88%); color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .18s, transform .18s; white-space: nowrap; }
.toast.home-toast { bottom: 76px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spinner { width: 16px; height: 16px; display: inline-block; border: 2px solid rgb(255 255 255 / 45%); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(36px); } }

@media (min-width: 900px) {
  .demo-stage {
    grid-template-columns: 390px 330px;
    gap: 24px;
    place-content: center;
    align-items: center;
  }
  .test-data-panel {
    display: block;
    max-height: min(760px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #e1e3e6;
    border-radius: 16px;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 18px 50px rgb(25 30 38 / 9%);
    scrollbar-width: none;
  }
  .test-data-panel::-webkit-scrollbar { display: none; }
  .test-panel-head > span {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 4px;
    background: #eef0f3;
    color: #727982;
    font-size: 10px;
    font-weight: 500;
  }
  .test-panel-head h2 { margin: 12px 0 5px; font-size: 20px; font-weight: 600; }
  .test-panel-head p { margin: 0; color: #7a8087; font-size: 12px; line-height: 18px; }
  .test-data-list { display: grid; gap: 9px; margin-top: 16px; }
  .test-data-list article { padding: 11px 12px; border: 1px solid #eceef0; border-radius: 9px; background: #fafafa; }
  .test-data-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .test-data-list strong { font-size: 13px; font-weight: 600; }
  .test-data-list em { padding: 2px 5px; border-radius: 4px; background: var(--orange-light); color: var(--orange-pressed); font-size: 9px; font-style: normal; }
  .test-code-row { display: flex; align-items: center; gap: 7px; margin: 7px 0 4px; }
  .test-data-list code { min-width: 0; display: block; flex: 1; color: var(--orange-pressed); font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; font-weight: 600; word-break: break-all; }
  .test-code-row button { height: 25px; flex: 0 0 auto; padding: 0 8px; border: 1px solid #ffd7c6; border-radius: 6px; background: #fff; color: var(--orange-pressed); font-size: 10px; font-weight: 600; }
  .test-code-row button:hover { background: var(--orange-light); }
  .test-code-row button.copied { border-color: #b7ead3; background: #ecfbf4; color: #169b67; }
  .test-code-row button.copy-failed { border-color: #fecaca; background: #fff1f2; color: var(--error); }
  .test-data-list p { margin: 0; color: #858b91; font-size: 10px; line-height: 15px; }
  .test-panel-tip { margin-top: 12px; padding: 11px 12px; border: 1px solid #ffddce; border-radius: 9px; background: var(--orange-soft); }
  .test-panel-tip strong { color: var(--orange-pressed); font-size: 12px; }
  .test-panel-tip p { margin: 4px 0 0; color: #896f65; font-size: 10px; line-height: 16px; }
}

@media (max-width: 480px) {
  body { background: #fff; }
  .demo-stage { display: block; min-height: 100dvh; padding: 0; }
  .phone { width: 100vw; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .test-data-panel { display: none; }
}
