:root {
  --bg: #f3f3f3;
  --panel: #ffffff;
  --text: #111111;
  --muted: #7b7b7b;
  --red: #ef0202;
  --red-deep: #d90000;
  --green: #72db77;
  --green-deep: #59c866;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

body {
  min-height: 100svh;
}

button {
  font: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100svh;
}

.app {
  width: 100%;
  min-height: 100svh;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.topbar-main {
  text-align: center;
  line-height: 1;
  font-size: 22px;
  font-weight: 700;
}

.hero {
  background: #fff;
  padding: 0;
  line-height: 0;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
}

.content {
  flex: 1;
  padding: 0 0 0;
  background: #fff;
}

.chat {
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.msg-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.avatar {
  width: 82px;
  height: 82px;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: 700;
  line-height: 1.05;
  padding-top: 2px;
}

.avatar-main {
  font-size: 17px;
  letter-spacing: 0;
}

.avatar-sub {
  font-size: 13px;
  margin-top: 4px;
}

.bubble {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  color: #111;
}

.assistant-bubble {
  min-height: 72px;
  display: flex;
  align-items: center;
  font-size: 23px;
  line-height: 1.35;
}

.question-card {
  padding: 14px 18px 18px;
}

.question-text {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 16px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #abeb69, var(--green));
  color: #fff;
  font-size: 18px;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.05);
}

.choice:active {
  transform: translateY(1px);
}

.choice[disabled] {
  opacity: 1;
  cursor: default;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-left: 56px;
}

.user-bubble {
  max-width: min(72%, 280px);
  min-height: 64px;
  display: flex;
  align-items: center;
  font-size: 23px;
  line-height: 1.35;
  padding: 14px 18px;
}

.wechat-mark {
  position: relative;
  width: 64px;
  height: 48px;
  flex: none;
}

.wechat-mark::before,
.wechat-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #18c15b;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.wechat-mark::before {
  width: 36px;
  height: 30px;
  right: 16px;
  top: 2px;
}

.wechat-mark::after {
  width: 30px;
  height: 24px;
  right: 0;
  bottom: 2px;
}

.wechat-mark i,
.wechat-mark b {
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.wechat-mark i {
  width: 4px;
  height: 4px;
  right: 27px;
  top: 13px;
  box-shadow: 7px 0 0 #fff;
}

.wechat-mark b {
  width: 4px;
  height: 4px;
  right: 11px;
  bottom: 15px;
  box-shadow: -7px 0 0 #fff;
}

.footer {
  background: #fff;
  padding: 18px 0 36px;
}

.cta {
  display: block;
  width: min(82%, 420px);
  height: 82px;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #71e07b, #64d36f);
  color: #fff;
  font-size: 23px;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(93, 201, 109, 0.24);
}

.cta:disabled {
  opacity: 1;
}

.is-hidden {
  display: none;
}

@media (min-width: 768px) {
  body {
    display: flex;
    justify-content: center;
    padding: 16px 0;
  }

  .page-shell {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .app {
    width: 430px;
    min-height: calc(100svh - 32px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  }

  .hero {
    background: #fff;
  }
}

@media (max-width: 380px) {
  .status-time {
    font-size: 22px;
  }

  .topbar-main {
    font-size: 20px;
  }

  .assistant-bubble,
  .question-text,
  .user-bubble {
    font-size: 20px;
  }

  .choice {
    font-size: 16px;
    min-height: 42px;
  }

  .cta {
    font-size: 20px;
    height: 72px;
  }
}
