.hero-showcase {
  --sc-frame: #1e152d;
  --sc-lilac: #c8b5ff;
  --sc-peach: #ffd0b8;
  --sc-paper: #fbf8ff;
  --sc-text: #2d243a;
  --sc-muted: #65586f;
  --sc-rule: #e4daed;
  --sc-ease: cubic-bezier(.22, .75, .26, 1);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: "badge" auto "phone" 1fr "tabs" auto / minmax(0, 1fr);
  place-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 453px;
  padding: 1px 8px 4px;
  container-type: inline-size;
}

.hero-showcase::before {
  position: absolute;
  z-index: -1;
  inset: 5% 9% 3%;
  pointer-events: none;
  background: radial-gradient(ellipse, #bb91f548 0, #9468c635 40%, transparent 71%);
  content: '';
}

.hero-showcase .sc-brand {
  grid-area: badge; display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  padding: 4px 9px; color: #fff7ff; background: var(--sc-frame); border: 1px solid #9a7fba;
  border-radius: 999px; font-size: 12px; white-space: nowrap;
}
.hero-showcase .sc-brand strong { font-weight: 680; }
.hero-showcase .sc-brand > [aria-hidden] { color: var(--sc-peach); }
.hero-showcase .sc-example { color: var(--sc-lilac); font-size: 11px; }
.hero-showcase .sc-phone {
  --sc-screen-height: 271px;
  grid-area: phone; position: relative; align-self: start; width: min(100%, 283px);
  padding: 6px; background: #1a1125; border: 2px solid #ae96c6; border-radius: 33px;
  box-shadow: 0 14px 31px #180e293f, 0 1px 0 #e4ccfc inset;
}
.hero-showcase .sc-phone::after {
  position: absolute; inset: 58px -4px auto auto; width: 3px; height: 29px;
  background: #a080ba; border-radius: 0 2px 2px 0; pointer-events: none; content: '';
}
.hero-showcase .sc-phone-status, .hero-showcase .sc-phone-heading, .hero-showcase .sc-phone-home { background: var(--sc-paper); }
.hero-showcase .sc-phone-status {
  position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 23px;
  padding: 2px 13px 0; color: var(--sc-text); border-radius: 24px 24px 0 0; font-family: system-ui, sans-serif; font-size: 10px; font-weight: 720;
}
.hero-showcase .sc-phone-status > i {
  position: absolute; top: 5px; inset-inline: 0; margin: auto; width: 44px; height: 11px; border-radius: 10px; background: #271b31;
}
.hero-showcase .sc-phone-battery { position: relative; width: 15px; height: 8px; border: 1px solid #64576e; border-radius: 3px; }
.hero-showcase .sc-phone-battery::before { position: absolute; inset: 1px 2px 1px 1px; background: #54445f; border-radius: 1px; content: ''; }
.hero-showcase .sc-phone-battery::after { position: absolute; inset: 2px -3px 2px auto; width: 1px; background: #64576e; content: ''; }
.hero-showcase .sc-phone-heading {
  display: flex; align-items: center; gap: 6px; min-height: 39px; padding: 4px 10px;
  color: var(--sc-text); border-block-end: 1px solid var(--sc-rule); font-size: 13px;
}
.hero-showcase .sc-phone-mark {
  display: grid; place-items: center; width: 20px; height: 20px; background: #ede2fb; border-radius: 6px;
  color: #583f75; font-size: 11px; font-weight: 720;
}
.hero-showcase .sc-phone-heading > :last-child { margin-inline-start: auto; color: var(--sc-muted); font-size: 10px; }
.hero-showcase .sc-phone-home { display: grid; place-items: center; min-height: 18px; border-radius: 0 0 24px 24px; }
.hero-showcase .sc-phone-home::after { width: 78px; height: 3px; background: #3e2f4b; border-radius: 4px; content: ''; }

.hero-showcase .sc-viewport {
  block-size: var(--sc-screen-height); min-width: 0; overflow-x: hidden; overflow-y: auto;
  background: var(--sc-paper); color: var(--sc-text); scroll-behavior: auto;
  scrollbar-width: thin; scrollbar-color: #ad97c1 var(--sc-paper);
}
.hero-showcase .sc-track { position: relative; }
.hero-showcase .sc-chapter { min-width: 0; padding: 12px 9px; }
.hero-showcase .sc-chapter + .sc-chapter { border-top: 1px solid var(--sc-rule); }
.hero-showcase .sc-step-0 { min-height: 187px; }
.hero-showcase .sc-step-1 { min-height: 223px; background: #f7f1fd; }
.hero-showcase .sc-step-2 { min-height: var(--sc-screen-height); }
.hero-showcase .sc-panel-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 5px; margin-bottom: 7px;
}
.hero-showcase .sc-panel-header h2 { margin: 0; color: var(--sc-text); font-size: 15px; line-height: 1.25; font-weight: 690; }
.hero-showcase .sc-summary { color: #604481; font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-showcase .sc-icon {
  flex: none; width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.hero-showcase .sc-friends { display: grid; gap: 3px; }
.hero-showcase .sc-friend, .hero-showcase .sc-receipt {
  display: grid; align-items: center; gap: 5px; min-height: 40px; padding: 4px 5px;
  color: var(--sc-text); background: #fffaff; border: 1px solid var(--sc-rule); border-radius: 7px; text-align: start;
}
.hero-showcase .sc-friend { grid-template-columns: 22px minmax(0, 1fr) auto 15px; width: 100%; min-height: 44px; transition: background-color .22s, border-color .22s; }
.hero-showcase .sc-friend:hover, .hero-showcase .sc-friend[aria-pressed="true"] { background: #f0e6fa; border-color: #d2bce9; }
.hero-showcase .sc-friend[aria-disabled="true"] { cursor: default; }
.hero-showcase :is(.sc-friend, .sc-receipt) strong { font-size: 12px; font-weight: 630; white-space: nowrap; }
.hero-showcase .sc-avatar {
  display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  color: #583d76; background: #eadff5; font-size: 11px; font-weight: 650;
}
.hero-showcase .sc-days { display: inline-flex; align-items: center; gap: 2px; color: #8e412e; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-showcase .sc-days .sc-icon { width: 12px; height: 12px; }
.hero-showcase .sc-check {
  display: grid; place-items: center; justify-self: end; width: 15px; height: 15px;
  color: #fff; background: #fffaff; border: 1px solid #ae9cba; border-radius: 5px;
}
.hero-showcase .sc-check .sc-icon { width: 11px; height: 11px; opacity: 0; transform: scale(.7); transition: opacity .2s, transform .26s var(--sc-ease); }
.hero-showcase [aria-pressed="true"] .sc-check { border-color: #634687; background: #634687; }
.hero-showcase [aria-pressed="true"] .sc-check .sc-icon { opacity: 1; transform: scale(1); }

.hero-showcase .sc-thread { display: grid; gap: 8px; }
.hero-showcase .sc-incoming { display: flex; align-items: start; gap: 5px; max-width: 96%; }
.hero-showcase .sc-incoming p, .hero-showcase .sc-outgoing { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.hero-showcase .sc-incoming p {
  padding: 6px 8px; color: var(--sc-text); background: #fffaff; border: 1px solid var(--sc-rule);
  border-radius: 4px 10px 10px 10px; font-size: 11px;
}
.hero-showcase .sc-outgoing {
  justify-self: end; width: fit-content; max-width: min(94%, 208px); padding: 8px 9px;
  color: #30223e; background: #e9dcf8; border: 1px solid #d9c2ef;
  border-radius: 11px 4px 11px 11px; font-size: 12px;
}
.hero-showcase .sc-schedule {
  display: flex; align-items: center; gap: 4px; width: fit-content; min-height: 29px; margin: 8px 0 0 auto;
  padding: 4px 6px; color: #7a402f; background: #ffeadf; border: 1px solid #eccab9;
  border-radius: 7px; font-size: 11px; font-variant-numeric: tabular-nums;
}
.hero-showcase .sc-schedule time { font-weight: 690; }
.hero-showcase .sc-schedule-zone { color: #775958; font-size: 10px; white-space: nowrap; }
.hero-showcase .sc-schedule .sc-icon { width: 13px; height: 13px; }

.hero-showcase .sc-delivery { min-width: 0; }
.hero-showcase .sc-progress {
  display: block; appearance: none; width: 100%; height: 4px; margin: 0 0 7px;
  border: 0; border-radius: 4px; background: #e7daef; accent-color: #684795;
}
.hero-showcase .sc-progress::-webkit-progress-bar { border-radius: 4px; background: #e7daef; }
.hero-showcase .sc-progress::-webkit-progress-value { border-radius: 4px; background: #684795; transition: width .35s var(--sc-ease); }
.hero-showcase .sc-progress::-moz-progress-bar { border-radius: 4px; background: #684795; }
.hero-showcase .sc-receipts { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hero-showcase .sc-receipt {
  grid-template-columns: 22px minmax(0, 1fr) auto auto; min-height: 36px;
  transition: background-color .32s var(--sc-ease), border-color .32s var(--sc-ease);
}
.hero-showcase .sc-receipt time {
  color: var(--sc-muted); opacity: 0; transform: translateY(3px); font-size: 10px;
  font-variant-numeric: tabular-nums; transition: opacity .24s, transform .36s var(--sc-ease);
}
.hero-showcase .sc-receipt-state { display: flex; align-items: center; gap: 2px; color: var(--sc-muted); font-size: 10px; font-weight: 620; white-space: nowrap; }
.hero-showcase .sc-receipt-state .sc-icon { width: 12px; height: 12px; opacity: 0; transform: scale(.64); transition: opacity .24s, transform .36s var(--sc-ease); }
.hero-showcase .sc-receipt[data-delivered="true"] { background: #edf6f1; border-color: #d9eadf; }
.hero-showcase [data-delivered="true"] .sc-receipt-state { color: #2c6444; }
.hero-showcase [data-delivered="true"] :is(time, .sc-receipt-state .sc-icon) { opacity: 1; transform: none; }
.hero-showcase .sc-result-note { margin: 8px 0 0; color: var(--sc-muted); font-size: 10px; line-height: 1.45; }

.hero-showcase .sc-tabs {
  grid-area: tabs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px;
  width: min(100%, 283px); padding: 3px; background: var(--sc-frame); border: 1px solid #9a7fba; border-radius: 12px;
}
.hero-showcase .sc-tabs button {
  min-height: 44px; padding: 3px; color: #e8d8f7; background: var(--sc-frame); border: 1px solid transparent;
  border-radius: 8px; font-size: 12px; font-weight: 650; white-space: nowrap;
  transition: color .22s, background-color .22s, border-color .22s;
}
.hero-showcase .sc-tabs button:hover { color: #fff7ff; border-color: var(--sc-lilac); }
.hero-showcase .sc-tabs button[aria-selected="true"] { color: #271737; background: #dccaf8; border-color: var(--sc-lilac); }
.hero-showcase :focus-visible { position: relative; z-index: 1; outline: 2px solid #6e4a98; outline-offset: -2px; }
.hero-showcase .sc-tabs button:focus-visible { outline-color: var(--sc-peach); outline-offset: 2px; }
.hero-showcase .sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hero-showcase[data-playing="true"][data-step="1"] .sc-outgoing { animation: huoban-phone-greeting .46s .15s var(--sc-ease) both; }
@keyframes huoban-phone-greeting {
  from { opacity: .4; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@container (max-width: 330px) {
  .hero-showcase .sc-phone { --sc-screen-height: 252px; width: min(100%, 261px); }
  .hero-showcase .sc-tabs { width: min(100%, 261px); }
}
@media (max-width: 640px) {
  .hero-showcase { min-height: 435px; padding-inline: 4px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-showcase *, .hero-showcase .sc-progress::-webkit-progress-value { animation: none !important; transition: none !important; }
}
