:root {
  --ink: #1d2420;
  --muted: #6c7b72;
  --paper: #f2f5ef;
  --panel: #ffffff;
  --line: #dbe5dc;
  --jade-deep: #123a32;
  --jade: #1f705e;
  --jade-soft: #dcefe7;
  --gold: #caa56a;
  --gold-dark: #9a7338;
  --warm: #f7f0e6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #d7d9d5;
  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 42px rgba(13, 39, 31, 0.18);
}

.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.08);
}

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

.title-block {
  display: grid;
  gap: 2px;
  text-align: center;
}

.title-block strong {
  font-size: 18px;
  line-height: 1.1;
}

.title-block span {
  color: #8a8f89;
  font-size: 13px;
}

.icon-btn,
.more-btn {
  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-section {
  background: #0f1c18;
}

.hero-placeholder {
  position: relative;
  min-height: auto;
  overflow: hidden;
  background: #07110f;
}

.hero-placeholder::before {
  content: none;
}

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

.hero-identity-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 132px;
  padding: 12px 18px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  overflow: visible;
}

.hero-identity-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #14352e;
  transform: translateY(-3px);
}

.hero-identity-copy strong {
  color: #062d25;
  font-size: 28px;
  line-height: 1.06;
  font-weight: 900;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.58);
}

.hero-identity-copy span {
  color: #113f35;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.46);
}

.hero-copy {
  position: absolute;
  top: 22px;
  left: 0;
  z-index: 2;
  width: 64%;
  padding: 0 0 0 24px;
}

.hero-copy span {
  display: block;
  color: #e5cf9f;
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 18px 0 12px;
  color: #fffaf0;
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei", serif;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.36);
}

.hero-copy p {
  display: inline-block;
  margin: 0;
  padding: 7px 12px;
  color: #f7e6bd;
  border: 1px solid rgba(229, 207, 159, 0.55);
  border-radius: 999px;
  font-size: 12px;
}

.portrait-placeholder {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: 128px;
  height: 128px;
  margin: -14px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(8, 18, 15, 0.78);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.portrait-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

.cred-section {
  padding: 16px 16px 4px;
  background: #fff;
}

.cred-card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f7fbf8);
}

.cred-card p {
  margin: 0;
  color: #35443d;
  font-size: 15px;
  line-height: 1.8;
}

.cred-card p + p {
  margin-top: 6px;
}

.cred-card strong {
  color: var(--jade-deep);
}

.product-section {
  padding: 18px 14px 22px;
  background: #fff;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.section-title span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--jade));
}

.section-title span:last-child {
  background: linear-gradient(90deg, var(--jade), transparent);
}

.section-title h2 {
  margin: 0;
  color: #1f2c26;
  font-size: 19px;
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 12px;
}

.product-card {
  min-width: 0;
}

.image-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  color: rgba(16, 50, 42, 0.54);
  border: 1px solid rgba(31, 112, 94, 0.16);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.tone-1 { background: linear-gradient(145deg, #edf8f3, #bfdcd1); }
.tone-2 { background: linear-gradient(145deg, #eaf6f8, #b7d9d4); }
.tone-3 { background: linear-gradient(145deg, #f5f4ed, #cae2d3); }
.tone-4 { background: linear-gradient(145deg, #f0ecf7, #cad6eb); }
.tone-5 { background: linear-gradient(145deg, #f5f1e8, #dceadd); }
.tone-6 { background: linear-gradient(145deg, #edf7ef, #bfd9c6); }
.tone-7 { background: linear-gradient(145deg, #f6f1e9, #d2e4d5); }
.tone-8 { background: linear-gradient(145deg, #ecf7f4, #c8efe3); }
.tone-9 { background: linear-gradient(145deg, #fff6e5, #d7e6d2); }

.product-card p {
  margin: 7px 0 0;
  color: #36453e;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.banner-note {
  padding: 14px 18px;
  color: #fff9ed;
  background: linear-gradient(90deg, #0f3a31, #215b4e);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
}

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

.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, var(--jade-deep), var(--gold));
  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 26px rgba(22, 52, 42, 0.08);
}

.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: #3d4741;
  font-size: 16px;
  line-height: 1.8;
}

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

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

.factory-bubble p,
.guide-bubble p {
  color: #202721;
  font-size: 16px;
  font-weight: 500;
}

.bubble .em-red {
  color: #a92f25;
  font-weight: 800;
}

.bubble .em-yellow {
  display: inline;
  padding: 1px 4px;
  color: #8c5c00;
  background: linear-gradient(180deg, rgba(255, 241, 142, 0.24), rgba(255, 224, 88, 0.62));
  border-radius: 4px;
  font-weight: 800;
}

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

.user-message .avatar {
  grid-column: 2;
  grid-row: 1;
  background: #d6b46f;
  color: #2b1a08;
}

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

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

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

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

.typing-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  background: #8aa296;
  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 30px;
  background: #eef2ee;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.34s ease, transform 0.34s ease, max-height 0.34s ease;
  overflow: hidden;
  max-height: 430px;
}

.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: 50px;
  padding: 0 14px;
  color: #fffaf0;
  background: linear-gradient(180deg, #277762, #155543);
  border: 1px solid rgba(12, 67, 53, 0.52);
  border-radius: 10px;
  box-shadow: 0 7px 0 rgba(15, 58, 49, 0.2), 0 12px 24px rgba(18, 58, 50, 0.18);
  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(15, 58, 49, 0.16), 0 8px 18px rgba(18, 58, 50, 0.16);
}

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

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

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

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

.site-footer {
  padding: 18px 16px 28px;
  text-align: center;
  font-size: 12px;
}

.site-footer a {
  color: rgba(72, 47, 30, 0.62);
  text-decoration: none;
}

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

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