:root {
  --ink: #211914;
  --muted: #806d5e;
  --paper: #fff4eb;
  --panel: #fffaf5;
  --line: #ead7c6;
  --orange: #ff8a19;
  --orange-dark: #d66700;
  --green: #486b4e;
  --gold: #c3914a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #d9d9d9;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button {
  font: inherit;
}

.phone-page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.14);
}

.wechat-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 248, 248, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.nav-bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 54px;
  padding: 0 12px;
}

.nav-bar strong {
  text-align: center;
  font-size: 18px;
}

.icon-btn,
.more-btn,
.modal-close {
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
}

.icon-btn {
  font-size: 34px;
  line-height: 1;
}

.more-btn {
  font-size: 28px;
  letter-spacing: 2px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: #130f0d;
}

.hero-card img {
  width: 100%;
  height: auto;
  filter: saturate(1.05) contrast(1.02);
}

.chat-section {
  padding: 22px 16px 14px;
}

.chat-list {
  display: grid;
  gap: 18px;
}

.message-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.message-row.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #234f3a, #b98b46);
  border-radius: 8px;
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}

.bubble {
  position: relative;
  padding: 15px 16px;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(87, 54, 31, 0.09);
}

.bubble::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -7px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid var(--panel);
}

.bubble p {
  margin: 0;
  color: #4d4037;
  font-size: 16px;
  line-height: 1.85;
}

.bubble p + p {
  margin-top: 8px;
}

.question-bubble p {
  color: #a33024;
  font-size: 15px;
  font-weight: 800;
}

.user-message {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.user-message .avatar {
  grid-column: 2;
  grid-row: 1;
  background: #d7b16c;
  color: #301d0c;
}

.user-message .bubble {
  grid-column: 1;
  background: #dff2d5;
}

.user-message .bubble p {
  color: #1b1712;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.user-message .bubble::before {
  left: auto;
  right: -7px;
  border-right: 0;
  border-left: 8px solid #dff2d5;
}

.typing .bubble {
  width: 74px;
  padding: 16px;
}

.typing-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  background: #ad9b8a;
  border-radius: 50%;
  animation: bounce 0.9s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.12s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.24s;
}

.choice-panel {
  padding: 8px 18px 28px;
  background: #fff4eb;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.34s ease, transform 0.34s ease, max-height 0.34s ease;
  overflow: hidden;
  max-height: 300px;
}

.choice-panel.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.choice-btn {
  min-height: 48px;
  padding: 0 14px;
  color: #fff7e7;
  background: linear-gradient(180deg, #ffa22d, var(--orange));
  border: 1px solid rgba(224, 104, 0, 0.5);
  border-radius: 12px;
  box-shadow: 0 7px 0 rgba(206, 91, 0, 0.22), 0 12px 24px rgba(190, 97, 8, 0.2);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.choice-btn:active {
  transform: translateY(3px);
  box-shadow: 0 4px 0 rgba(206, 91, 0, 0.16), 0 8px 18px rgba(190, 97, 8, 0.18);
}

.choice-btn.wide {
  width: min(78%, 300px);
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-btn.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.brand-note {
  margin: 18px 0 0;
  color: rgba(72, 47, 30, 0.42);
  text-align: center;
  font-size: 16px;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.42;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (min-width: 700px) {
  body {
    padding: 24px 0;
  }

  .phone-page {
    min-height: calc(100vh - 48px);
    border-radius: 22px;
    overflow: hidden;
  }
}
