:root {
  --phone-w: 440px;
  --phone-ratio: 440 / 956;
  --blue-900: #0f2d5c;
  --blue-800: #173d78;
  --blue-700: #1f5ca8;
  --blue-100: #eaf2ff;
  --green-700: #147a5e;
  --green-100: #e7f6f1;
  --orange-600: #c66a13;
  --orange-100: #fff2df;
  --ink: #172033;
  --muted: #657188;
  --line: #dce3ee;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --shadow: 0 24px 70px rgba(15, 45, 92, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(31, 92, 168, 0.12), transparent 28%),
    linear-gradient(135deg, #eef3f8 0%, #f8fafc 58%, #edf6f2 100%);
}

button {
  font: inherit;
}

.prototype {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.app-shell {
  position: relative;
  width: min(var(--phone-w), calc(100vw - 56px), calc((100vh - 56px) * 0.46025));
  aspect-ratio: var(--phone-ratio);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(15, 45, 92, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.app-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0;
  opacity: 0.84;
}

.eyebrow.dark {
  color: var(--blue-700);
  opacity: 1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.content {
  height: calc(100% - 164px);
  overflow-y: auto;
  padding: 16px 16px 22px;
  background: linear-gradient(#f7f9fd, #fff 180px);
}

.content::-webkit-scrollbar {
  width: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.icon-button.subtle {
  color: var(--blue-900);
  background: var(--soft);
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15, 45, 92, 0.96), rgba(31, 92, 168, 0.9)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  border-radius: 18px;
}

.carousel {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.carousel-slide {
  position: relative;
  z-index: 1;
  width: 78%;
}

.carousel-slide span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.carousel-slide h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.carousel-slide p {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.5;
}

.carousel-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.carousel-controls button {
  width: 22px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.carousel-controls button.active {
  width: 34px;
  background: #fff;
}

.login-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(31, 92, 168, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(234, 242, 255, 0.96), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(90deg, rgba(31, 92, 168, 0.06) 0 1px, transparent 1px 18px);
}

.login-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.login-card h2 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.login-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.login-steps span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.login-steps span.active {
  color: var(--blue-800);
  border-color: rgba(31, 92, 168, 0.24);
  background: var(--blue-100);
}

.login-steps span.done {
  color: var(--green-700);
  border-color: rgba(20, 122, 94, 0.22);
  background: var(--green-100);
}

.login-steps.in-sheet {
  margin-top: 14px;
}

.login-card .legal {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.hero-actions,
.row-actions {
  display: flex;
  gap: 10px;
}

.banner-dots {
  position: absolute;
  left: 18px;
  top: 14px;
  z-index: 2;
  display: flex;
  gap: 5px;
}

.banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.banner-dots span.active {
  width: 18px;
  background: #fff;
}

.primary,
.secondary,
.ghost {
  border: 0;
  border-radius: 12px;
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
}

.primary {
  color: #fff;
  background: var(--blue-700);
}

.secondary {
  color: var(--blue-900);
  background: #fff;
}

.ghost {
  color: var(--blue-800);
  background: var(--blue-100);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.trust-item,
.metric,
.status-pill {
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.trust-item strong,
.metric strong {
  display: block;
  color: var(--blue-900);
  font-size: 15px;
}

.trust-item span,
.metric span,
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

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

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

.entry-grid.eight {
  grid-template-columns: repeat(4, 1fr);
}

.entry {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 8px;
  background: #fff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.entry-grid.eight .entry {
  min-height: 92px;
  padding: 10px 6px;
}

.entry-grid.eight .entry svg {
  width: 30px;
  height: 30px;
}

.entry svg {
  width: 34px;
  height: 34px;
  color: var(--blue-800);
}

.entry.accent svg {
  color: var(--green-700);
}

.entry.warn svg {
  color: var(--orange-600);
}

.banner-entry svg {
  color: var(--blue-700);
}

.notice {
  border-left: 4px solid var(--orange-600);
  border-radius: 14px;
  padding: 14px;
  background: var(--orange-100);
}

.notice h3,
.list h3,
.profile h2 {
  margin-bottom: 6px;
  font-size: 16px;
}

.notice p,
.list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.segmented,
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.segmented button,
.chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  background: #fff;
}

.segmented button.active,
.chip.active {
  color: #fff;
  border-color: var(--blue-700);
  background: var(--blue-700);
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}

.shelf {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: var(--blue-900);
  background: #fff;
  text-align: left;
  font-weight: 800;
}

.shelf span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #fff;
}

.search svg {
  width: 19px;
  height: 19px;
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.item h3 {
  margin-bottom: 5px;
  line-height: 1.35;
}

.price {
  flex: 0 0 auto;
  color: var(--orange-600);
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 12px;
}

.tag.green {
  color: var(--green-700);
  background: var(--green-100);
}

.tag.orange {
  color: var(--orange-600);
  background: var(--orange-100);
}

.profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
}

.avatar svg {
  width: 32px;
  height: 32px;
}

.profile p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.workbench {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tool {
  border: 0;
  min-height: 78px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.tool svg {
  color: var(--blue-800);
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef5;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), #45aa83);
}

.brand-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.brand-wall span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue-900);
  background: linear-gradient(180deg, #f8fbff, #edf3fb);
  font-size: 13px;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--line);
}

.timeline-row.done .dot {
  background: var(--green-700);
}

.ai-assistant-float {
  position: absolute;
  right: 18px;
  bottom: 90px;
  z-index: 30;
  width: 66px;
  height: 66px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: visible;
  color: #fff;
  background: transparent;
  background-image: url("./assets/ai-robot-icon.png?v=3");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 66px 66px;
  box-shadow: none;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.tab {
  border: 0;
  color: var(--muted);
  background: transparent;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  font-size: 12px;
}

.tab svg {
  width: 23px;
  height: 23px;
}

.tab.active {
  color: var(--blue-700);
  font-weight: 800;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
}

.sheet.open {
  display: block;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 43, 0.42);
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(var(--phone-w), calc(100vw - 56px), calc((100vh - 56px) * 0.46025));
  max-height: 78vh;
  overflow-y: auto;
  transform: translateX(-50%);
  padding: 10px 18px 24px;
  background: #fff;
  border-radius: 24px 24px 0 0;
}

.sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #d7deea;
}

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

.sheet-head h2 {
  margin: 0;
  font-size: 20px;
}

.message {
  padding: 12px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 520px) {
  .prototype {
    padding: 12px;
  }

  .app-shell {
    width: min(calc(100vw - 24px), calc((100vh - 24px) * 0.46025));
    border-radius: 28px;
  }

  .sheet-panel {
    width: min(calc(100vw - 24px), calc((100vh - 24px) * 0.46025));
  }
}
