:root {
  --blue: #1768d8;
  --deep-blue: #0b3474;
  --green: #16b75d;
  --mint: #dff8ec;
  --text: #1f2937;
  --muted: #697386;
  --line: #dfe8f6;
  --panel: #f6f9ff;
  --card: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(31, 120, 255, 0.16), transparent 32%),
    linear-gradient(145deg, #edf5ff 0%, #f9fbff 42%, #e9fff3 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: min(100vh, 932px);
  overflow: hidden;
  background: linear-gradient(180deg, #f9fbff 0%, #edf5ff 58%, #f7fbff 100%);
  box-shadow: 0 24px 80px rgba(24, 55, 108, 0.22);
}

.hero {
  height: 206px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 22px 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 35%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(7, 50, 143, 0.9), rgba(23, 104, 216, 0.72));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -50px -70px 70px;
  height: 150px;
  border-radius: 50%;
  background: rgba(28, 204, 122, 0.25);
  transform: rotate(-10deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 55%;
  color: #fff;
}

.hero-copy p {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
}

.hero-copy p span {
  display: block;
}

.hero-mascot {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 15px;
  width: 160px;
  height: 168px;
  perspective: 700px;
}

.story-bubble {
  position: absolute;
  right: 14px;
  top: -5px;
  z-index: 5;
  width: 124px;
  min-height: 42px;
  padding: 7px 10px;
  border: 0;
  border-radius: 15px 15px 6px 15px;
  background: #fff;
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 12px 24px rgba(5, 30, 85, 0.18);
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.story-bubble::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -7px;
  border-width: 8px 8px 0 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.story-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.rabbit-canvas,
.rabbit-video,
.rabbit-gif {
  position: relative;
  display: block;
  overflow: hidden;
  background: transparent;
}

.rabbit-video,
.rabbit-gif {
  object-fit: contain;
}

.hero-model {
  width: 166px;
  height: 164px;
  margin: 0 auto;
  border: 0;
  outline: none;
  object-fit: cover;
  mix-blend-mode: darken;
  filter: drop-shadow(0 18px 16px rgba(4, 25, 67, 0.22));
}

.hero-model:focus-visible {
  filter: drop-shadow(0 18px 16px rgba(4, 25, 67, 0.22)) drop-shadow(0 0 0 rgba(255, 255, 255, 0.95));
}

.content-panel {
  position: relative;
  margin-top: -18px;
  padding: 22px 18px 112px;
  min-height: 620px;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.88)),
    linear-gradient(145deg, transparent 55%, rgba(81, 151, 255, 0.12));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: start;
  margin-bottom: 18px;
}

.service-item {
  min-height: 84px;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #273248;
}

.service-item strong {
  font-size: 14px;
  font-weight: 600;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 15px;
  background-color: #eaf4ff;
  background-size: 68% 68%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(23, 104, 216, 0.08),
    0 8px 16px rgba(22, 104, 216, 0.12);
}

.icon-bill {
  background-image: url("模块/icon-bill.jpg");
}

.icon-knowledge {
  background-image: url("模块/icon-knowledge.jpg");
}

.icon-projects {
  background-image: url("模块/icon-projects.jpg");
}

.icon-craftsman {
  background-image: url("模块/icon-craftsman.jpg");
}

.service-item.active::after {
  content: "";
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
  font-style: italic;
}

.section-head button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.hot-card,
.insight-panel,
.chat-window {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(45, 100, 180, 0.11);
}

.hot-card {
  padding: 16px;
}

.hot-body {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
}

.thumbnail {
  position: relative;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mint);
}

.mascot-card {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 56%, rgba(255, 255, 255, 0.86), transparent 40%),
    linear-gradient(145deg, #d9f7e7, #dbeafe);
}

.mini-model {
  width: 76px;
  height: 76px;
  border: 0;
  object-fit: contain;
  mix-blend-mode: darken;
  filter: drop-shadow(0 8px 12px rgba(4, 67, 36, 0.18));
}

.thumbnail span {
  position: absolute;
  left: 8px;
  bottom: 7px;
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.question-list {
  display: grid;
  gap: 8px;
}

.question-list button {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: #4c566f;
  font-size: 15px;
  line-height: 1.4;
}

.question-list button::before {
  content: "●";
  color: #ff7f30;
  margin-right: 8px;
  font-size: 11px;
}

.insight-panel {
  margin-top: 16px;
  padding: 16px;
}

.insight-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.insight-title h2 {
  margin: 0;
  font-size: 18px;
}

.pill {
  border-radius: 999px;
  padding: 5px 10px;
  background: #e6f7ef;
  color: #09783a;
  font-size: 12px;
  font-weight: 700;
}

.meter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.meter-item {
  min-height: 72px;
  padding: 10px;
  border-radius: 8px;
  background: #f3f7ff;
}

.meter-item span {
  color: var(--muted);
  font-size: 12px;
}

.meter-item strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 7px;
  height: 110px;
  padding: 12px 8px 0;
  border-bottom: 1px solid var(--line);
}

.bar {
  min-height: 12px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #1fd06d, #1768d8);
}

.story-list,
.knowledge-list,
.link-list {
  display: grid;
  gap: 10px;
}

.story-item,
.knowledge-item,
.link-card {
  padding: 12px;
  border-radius: 8px;
  background: #f5f8ff;
  border-left: 4px solid var(--green);
}

.story-item strong,
.knowledge-item strong,
.link-card strong {
  display: block;
  margin-bottom: 5px;
}

.story-item p,
.knowledge-item p,
.link-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.link-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.link-card::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 18px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
}

.chat-window {
  display: grid;
  gap: 12px;
  min-height: 310px;
  max-height: 390px;
  overflow-y: auto;
  padding: 14px;
  margin-top: 16px;
}

.message {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.message.assistant {
  justify-content: flex-start;
}

.avatar-model {
  position: relative;
  overflow: hidden;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  mix-blend-mode: darken;
  animation: avatar-pop 1.9s ease-in-out infinite;
}

.message > div {
  position: relative;
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 15px;
  background: #eef6ff;
  color: #253046;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  text-align: left;
  box-shadow: 0 4px 12px rgba(45, 100, 180, 0.08);
}

.message.assistant > div::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 14px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
}

.message.user {
  justify-content: flex-end;
}

.message.user > div {
  background: var(--blue);
  color: #fff;
  border-radius: 15px;
}

.message.user > div::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 14px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
}

.message.is-pending > div {
  color: #406044;
  background: #e9f9ef;
}

.message.is-pending > div::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 6px;
  margin-left: 7px;
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--green) 0 2px, transparent 3px) 0 50% / 6px 6px repeat-x;
  animation: thinking-dots 1s ease-in-out infinite;
}

.message.is-error > div {
  background: #fff4ed;
  color: #7a3412;
}

.composer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  display: grid;
  grid-template-columns: 54px 1fr 48px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(28, 86, 168, 0.16);
}

.origin-page {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  padding: 18px 18px 32px;
  background: linear-gradient(180deg, #0d5dcc 0%, #eff8ff 36%, #fff 100%);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.phone-shell.show-origin .origin-page {
  transform: translateX(0);
}

.origin-top {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.origin-top button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.origin-top strong {
  text-align: center;
}

.origin-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px 10px 18px;
  color: #fff;
  text-align: center;
}

.origin-model {
  width: 190px;
  height: 168px;
  border: 0;
  object-fit: cover;
  mix-blend-mode: darken;
  filter: drop-shadow(0 18px 22px rgba(3, 38, 79, 0.2));
}

.origin-hero p {
  margin: 0;
  max-width: 330px;
  font-size: 15px;
  line-height: 1.65;
}

.origin-card {
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(23, 58, 115, 0.18);
}

.origin-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.origin-card p {
  margin: 0 0 12px;
  color: #4d5a70;
  font-size: 14px;
  line-height: 1.7;
}

.origin-card a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.voice-button,
.send-button {
  border: 0;
  border-radius: 50%;
}

.voice-button {
  width: 50px;
  height: 50px;
  position: relative;
  background: url("assets/zheli-mic-button.jpg") center / cover no-repeat;
  box-shadow:
    0 8px 18px rgba(23, 104, 216, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.voice-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(23, 104, 216, 0.2);
}

.voice-button:active {
  transform: translateY(1px) scale(0.98);
}

.voice-button::before {
  content: none;
}

.voice-button::after {
  content: none;
}

.composer input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #f7fbff;
  color: var(--text);
  outline: none;
}

.composer.is-busy {
  opacity: 0.88;
}

.composer.is-busy input {
  color: var(--muted);
}

.send-button {
  width: 44px;
  height: 44px;
  background: #f7fbff;
  color: var(--blue);
  font-size: 31px;
  line-height: 1;
}

@media (max-width: 380px) {
  .hero-copy p {
    font-size: 23px;
  }

  .hero-mascot {
    right: 6px;
    transform: scale(0.9);
  }

  .content-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .service-item strong,
  .question-list button {
    font-size: 13px;
  }

  .hot-body {
    grid-template-columns: 82px 1fr;
  }
}

@keyframes avatar-pop {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes thinking-dots {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@media (min-width: 700px) {
  .phone-shell {
    margin: 28px 0;
    border-radius: 28px;
    min-height: 900px;
  }
}
