:root {
  --cu-paper: #eef2f0;
  --cu-surface: #e2e9e5;
  --cu-white: #f8faf8;
  --cu-ink: #182229;
  --cu-soft: #596a69;
  --cu-muted: #84918e;
  --cu-line: #cbd5d0;
  --cu-line-strong: #9eaea7;
  --cu-coral: #c87569;
  --cu-green: #6f9388;
  --cu-blue: #6f88a3;
  --cu-font: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cu-display: "Songti SC", "STSong", "Noto Serif SC", serif;
}

.customer-ui,
.customer-ui * {
  box-sizing: border-box;
}

body.customer-ui {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--cu-ink);
  background: var(--cu-paper);
  font-family: var(--cu-font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

.customer-ui button,
.customer-ui input {
  font: inherit;
  letter-spacing: 0;
}

.customer-ui button,
.customer-ui a {
  -webkit-tap-highlight-color: transparent;
}

.customer-ui button {
  cursor: pointer;
}

.customer-ui button:disabled {
  cursor: not-allowed;
}

.cu-paper {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: var(--cu-paper);
  background-image: radial-gradient(rgba(24, 34, 41, 0.08) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  opacity: 0.35;
}

.cu-header,
.cu-home-main,
.cu-footer,
.cu-redeem-main {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.cu-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid rgba(24, 34, 41, 0.14);
}

.cu-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cu-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.cu-brand-mark {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
}

.cu-brand-mark::before,
.cu-brand-mark::after,
.cu-brand-mark i {
  position: absolute;
  display: block;
  content: "";
  height: 2px;
  border-radius: 2px;
  transform-origin: left center;
}

.cu-brand-mark::before {
  top: 3px;
  left: 1px;
  width: 34px;
  background: var(--cu-ink);
  transform: rotate(12deg);
}

.cu-brand-mark::after {
  top: 16px;
  left: 3px;
  width: 31px;
  background: var(--cu-coral);
  transform: rotate(-12deg);
}

.cu-brand-mark i:first-child {
  top: 9px;
  left: 12px;
  width: 15px;
  background: var(--cu-green);
  transform: rotate(42deg);
}

.cu-brand-mark i:last-child {
  top: 9px;
  left: 12px;
  width: 15px;
  background: var(--cu-blue);
  transform: rotate(-42deg);
}

.cu-live,
.cu-session-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cu-soft);
  font-size: 11px;
  font-weight: 650;
}

.cu-live > span,
.cu-status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cu-green);
  box-shadow: 0 0 0 4px rgba(111, 147, 136, 0.14);
  animation: cu-status-breathe 3.4s ease-in-out infinite;
}

.cu-home-main {
  padding: 38px 0 0;
}

.cu-message-stage {
  position: relative;
  height: clamp(440px, calc(100svh - 220px), 620px);
  min-height: 440px;
  overflow: hidden;
  border-top: 1px solid rgba(24, 34, 41, 0.18);
  border-bottom: 1px solid rgba(24, 34, 41, 0.18);
  background: var(--cu-surface);
  isolation: isolate;
}

.cu-message-stage::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(24, 34, 41, 0.035);
}

.cu-signal-art,
.cu-detail-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transition: filter 600ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cu-message-stage:hover .cu-signal-art {
  filter: contrast(1.015) saturate(1.04);
  transform: scale(1.004);
}

.cu-stage-copy {
  position: absolute;
  top: 58px;
  left: 58px;
  z-index: 4;
}

.cu-kicker {
  margin: 0 0 10px;
  color: var(--cu-coral);
  font-size: 11px;
  font-weight: 720;
}

.cu-stage-copy h1,
.cu-session-intro h1 {
  margin: 0;
  color: var(--cu-ink);
  font-family: var(--cu-display);
  font-size: 68px;
  font-weight: 600;
  line-height: 1.08;
}

.cu-stage-note {
  margin: 20px 0 0;
  color: var(--cu-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.cu-stage-coordinate {
  position: absolute;
  top: 55px;
  right: 56px;
  z-index: 4;
  display: grid;
  justify-items: end;
  color: rgba(24, 34, 41, 0.55);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  line-height: 1.8;
}

.cu-stage-coordinate span:last-child {
  color: var(--cu-green);
}

.cu-access-form {
  position: absolute;
  right: 58px;
  bottom: 58px;
  z-index: 5;
  width: 510px;
  max-width: calc(100% - 116px);
  padding-top: 0;
}

.cu-access-form > label {
  display: block;
  margin-bottom: 8px;
  color: var(--cu-soft);
  font-size: 11px;
  font-weight: 680;
}

.cu-access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.cu-input-wrap {
  position: relative;
}

.cu-input-wrap input {
  width: 100%;
  height: 54px;
  padding: 0 65px 0 15px;
  border: 1px solid rgba(24, 34, 41, 0.22);
  border-radius: 2px;
  outline: none;
  color: var(--cu-ink);
  background: rgba(248, 250, 248, 0.88);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.cu-input-wrap input::placeholder {
  color: var(--cu-muted);
  font-weight: 400;
}

.cu-input-wrap input:hover {
  border-color: var(--cu-line-strong);
  background: var(--cu-white);
}

.cu-input-wrap input:focus {
  border-color: var(--cu-blue);
  background: var(--cu-white);
  box-shadow: 0 0 0 3px rgba(111, 136, 163, 0.13);
}

.cu-input-wrap > span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--cu-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  transform: translateY(-50%);
}

.cu-primary-btn,
.cu-secondary-btn,
.cu-text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  border-radius: 2px;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cu-primary-btn {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--cu-ink);
  color: var(--cu-white);
  background: var(--cu-ink);
  font-size: 12px;
  font-weight: 680;
}

.cu-primary-btn i,
.cu-community i {
  font-style: normal;
}

.cu-primary-btn:hover:not(:disabled) {
  color: var(--cu-ink);
  background: transparent;
  transform: translateY(-1px);
}

.cu-primary-btn:disabled,
.cu-secondary-btn:disabled {
  opacity: 0.38;
}

.cu-status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 5px 0 0;
  border: 0;
  border-radius: 0;
  color: var(--cu-soft);
  background: transparent;
  box-shadow: none;
  font-size: 11px;
}

.cu-status-line.warn {
  color: #806f3f;
}

.cu-status-line.bad {
  color: #a6585f;
}

.cu-status-line.good {
  color: #58796f;
}

.cu-community {
  display: flex;
  align-items: center;
  min-height: 104px;
  padding: 14px 0 0;
  border-bottom: 0;
}

.cu-community a,
.cu-community button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 88px;
  padding: 14px 18px 14px 16px;
  border: 1px solid rgba(24, 34, 41, 0.2);
  border-left: 4px solid var(--cu-coral);
  border-radius: 3px;
  color: var(--cu-ink);
  background: rgba(248, 250, 248, 0.78);
  box-shadow: 0 10px 28px rgba(24, 34, 41, 0.055);
  font-size: 11px;
  text-align: left;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cu-community a:hover,
.cu-community button:hover {
  color: var(--cu-ink);
  border-color: rgba(24, 34, 41, 0.32);
  border-left-color: var(--cu-coral);
  background: var(--cu-white);
  box-shadow: 0 14px 32px rgba(24, 34, 41, 0.09);
  transform: translateY(-1px);
}

.cu-community i {
  color: var(--cu-muted);
  font-size: 14px;
}

.cu-qq-badge {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(200, 117, 105, 0.58);
  border-radius: 50%;
  color: var(--cu-ink);
  background: rgba(200, 117, 105, 0.11);
  font-size: 11px;
  font-weight: 780;
}

.cu-qq-details {
  display: grid;
  gap: 2px;
  margin-right: auto;
  text-align: left;
}

.cu-qq-eyebrow {
  color: #98554d;
  font-size: 9px;
  font-weight: 760;
}

.cu-qq-details strong {
  color: var(--cu-ink);
  font-size: 16px;
  font-weight: 700;
}

.cu-qq-details small {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--cu-soft);
  font-size: 11px;
}

.cu-qq-details b {
  color: var(--cu-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.cu-qq-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--cu-ink);
  border-radius: 2px;
  color: var(--cu-white);
  background: var(--cu-ink);
  font-size: 12px;
  font-weight: 700;
}

.cu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  color: var(--cu-muted);
  font-size: 9px;
}

.cu-toast.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 30;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 3px;
  color: var(--cu-white);
  background: var(--cu-ink);
  box-shadow: 0 16px 34px rgba(24, 34, 41, 0.18);
  font-size: 11px;
  transform: translate(-50%, 12px);
}

.cu-toast.toast.show {
  transform: translate(-50%, 0);
}

.cu-primary-btn:focus-visible,
.cu-secondary-btn:focus-visible,
.cu-text-btn:focus-visible,
.cu-community a:focus-visible,
.cu-community button:focus-visible {
  outline: 3px solid rgba(111, 136, 163, 0.3);
  outline-offset: 3px;
}

/* Redeem page */

.cu-text-btn {
  padding: 0;
  border: 0;
  color: var(--cu-soft);
  background: transparent;
  font-size: 11px;
}

.cu-text-btn:hover {
  color: var(--cu-coral);
}

.cu-redeem-main {
  padding: 38px 0 76px;
}

.cu-session-flow {
  position: relative;
  min-height: 382px;
  overflow: hidden;
  border-top: 1px solid rgba(24, 34, 41, 0.18);
  border-bottom: 1px solid rgba(24, 34, 41, 0.18);
  background: var(--cu-surface);
  isolation: isolate;
}

.cu-detail-art {
  z-index: 1;
}

.cu-session-intro {
  position: absolute;
  top: 54px;
  left: 54px;
  z-index: 3;
}

.cu-session-intro h1 {
  font-size: 52px;
}

.cu-session-note {
  margin: 16px 0 0;
  color: var(--cu-soft);
  font-size: 12px;
}

.cu-session-status {
  position: absolute;
  top: 56px;
  right: 54px;
  z-index: 3;
  min-height: 32px;
  padding: 0 0 0 2px;
}

#statusValue[data-tone="bad"] {
  color: #a6585f;
}

#statusValue[data-tone="good"] {
  color: #58796f;
}

.cu-session-facts {
  position: absolute;
  right: 38px;
  bottom: 24px;
  z-index: 4;
  display: grid;
  grid-template-columns: 0.8fr 1.05fr 1.35fr;
  gap: 34px;
  width: 70%;
  min-height: 72px;
  border-top: 1px solid rgba(24, 34, 41, 0.22);
  background: transparent;
}

.cu-session-facts > div {
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 14px 0 0;
  border: 0;
}

.cu-session-facts > div::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--cu-blue);
  content: "";
}

.cu-session-facts > div:last-child::before {
  background: var(--cu-coral);
}

.cu-session-facts span {
  color: var(--cu-muted);
  font-size: 10px;
}

.cu-session-facts strong {
  overflow-wrap: anywhere;
  color: var(--cu-ink);
  font-size: 13px;
  font-weight: 680;
}

.cu-current-line {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  margin-top: 36px;
  border-top: 1px solid rgba(24, 34, 41, 0.2);
  border-bottom: 1px solid rgba(24, 34, 41, 0.2);
}

.cu-channel {
  display: grid;
  grid-template-rows: auto minmax(70px, auto) minmax(52px, auto) auto;
  min-width: 0;
  min-height: 298px;
  padding: 34px 10px 34px 0;
}

.cu-code-channel {
  padding-right: 0;
  padding-left: 10px;
}

.cu-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--cu-soft);
  font-size: 11px;
  font-weight: 680;
}

.cu-tag,
.cu-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cu-muted);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.cu-tag::before,
.cu-count::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cu-green);
  content: "";
}

.cu-count::before {
  background: var(--cu-blue);
}

.cu-phone-value.phone-value,
.cu-code-value.code-value {
  align-self: end;
  min-width: 0;
  margin: 26px 0 0;
  overflow-wrap: anywhere;
  color: var(--cu-ink);
  font-family: var(--cu-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.cu-code-value.code-value {
  color: var(--cu-coral);
  font-size: 42px;
  font-variant-numeric: tabular-nums;
}

.cu-meta.meta {
  align-self: start;
  min-height: 42px;
  margin: 10px 0 20px;
  overflow: hidden;
  color: var(--cu-soft);
  font-size: 11px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cu-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  width: min(100%, 330px);
}

.cu-compact-btn.cu-primary-btn,
.cu-secondary-btn {
  min-height: 44px;
  padding: 0 13px;
  font-size: 11px;
}

.cu-secondary-btn {
  border: 1px solid var(--cu-line-strong);
  color: var(--cu-soft);
  background: transparent;
}

.cu-secondary-btn:hover:not(:disabled) {
  border-color: var(--cu-ink);
  color: var(--cu-ink);
  transform: translateY(-1px);
}

.cu-line-junction {
  position: relative;
  min-height: 298px;
}

.cu-line-junction::before,
.cu-line-junction::after {
  position: absolute;
  top: 50%;
  width: calc(50% - 11px);
  height: 1px;
  background: var(--cu-line-strong);
  content: "";
}

.cu-line-junction::before {
  left: 0;
}

.cu-line-junction::after {
  right: 0;
}

.cu-line-junction > span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 1px solid var(--cu-line-strong);
  border-radius: 50%;
  background: var(--cu-paper);
  transform: translate(-50%, -50%);
}

.cu-line-junction > i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cu-coral);
  transform: translate(-50%, -50%);
}

@media (max-width: 900px) {
  .cu-header,
  .cu-home-main,
  .cu-footer,
  .cu-redeem-main {
    width: calc(100% - 30px);
  }

  .cu-header {
    min-height: 70px;
  }

  .cu-home-main,
  .cu-redeem-main {
    padding-top: 22px;
  }

  .cu-message-stage {
    height: clamp(440px, calc(100svh - 180px), 590px);
  }

  .cu-stage-copy {
    top: 32px;
    left: 24px;
  }

  .cu-stage-copy h1 {
    font-size: 46px;
  }

  .cu-stage-coordinate {
    top: 32px;
    right: 22px;
  }

  .cu-access-form {
    right: 22px;
    bottom: 26px;
    width: calc(100% - 44px);
    max-width: none;
  }

  .cu-community {
    display: flex;
    min-height: 0;
    padding: 10px 0;
  }

  .cu-community a,
  .cu-community button {
    width: 100%;
    min-width: 0;
    min-height: 84px;
    padding: 12px 14px 12px 12px;
  }

  .cu-session-flow {
    min-height: 450px;
  }

  .cu-session-intro {
    top: 32px;
    left: 24px;
  }

  .cu-session-intro h1 {
    font-size: 38px;
  }

  .cu-session-status {
    top: 34px;
    right: 22px;
  }

  .cu-session-facts {
    grid-template-columns: 1fr 1fr;
    right: 0;
    bottom: 0;
    gap: 0 24px;
    width: 100%;
    padding: 0 18px 12px;
    background: rgba(238, 242, 240, 0.9);
  }

  .cu-session-facts > div {
    min-height: 76px;
    padding: 15px 0 8px;
  }

  .cu-session-facts > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(24, 34, 41, 0.12);
  }

  .cu-current-line {
    grid-template-columns: 1fr;
  }

  .cu-channel,
  .cu-code-channel {
    min-height: 270px;
    padding: 28px 4px;
  }

  .cu-line-junction {
    min-height: 68px;
  }

  .cu-line-junction::before,
  .cu-line-junction::after {
    top: auto;
    left: 50%;
    width: 1px;
    height: calc(50% - 11px);
  }

  .cu-line-junction::before {
    top: 0;
  }

  .cu-line-junction::after {
    top: auto;
    right: auto;
    bottom: 0;
  }

  .cu-phone-value.phone-value,
  .cu-code-value.code-value {
    font-size: 34px;
  }

}

@media (max-width: 480px) {
  .cu-brand-mark {
    width: 34px;
  }

  .cu-live {
    font-size: 10px;
  }

  .cu-message-stage {
    height: clamp(440px, calc(100svh - 180px), 560px);
    min-height: 440px;
  }

  .cu-stage-coordinate {
    display: none;
  }

  .cu-access-row {
    grid-template-columns: 1fr;
  }

  .cu-primary-btn {
    min-height: 50px;
  }

  .cu-footer {
    min-height: 60px;
  }

  .cu-footer span:last-child {
    display: none;
  }

  .cu-qq-badge {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .cu-qq-details strong {
    font-size: 15px;
  }

  .cu-qq-details small {
    gap: 5px;
    font-size: 10px;
  }

  .cu-qq-details b {
    font-size: 11px;
  }

  .cu-qq-action {
    min-width: 88px;
    padding-inline: 10px;
  }

  .cu-session-status {
    top: 34px;
    right: 22px;
    left: auto;
  }

  .cu-session-flow {
    min-height: 480px;
  }

  .cu-action-row {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .cu-phone-value.phone-value,
  .cu-code-value.code-value {
    font-size: 30px;
  }

  .cu-record-head h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-ui *,
  .customer-ui *::before,
  .customer-ui *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes cu-status-breathe {
  0%, 100% {
    opacity: 0.62;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
