:root {
  --red: #e1251b;
  --red-dark: #b91c1c;
  --blue: #2563eb;
  --green: #16a34a;
  --gold: #f59e0b;
  --ink: #1f2329;
  --muted: #6c727c;
  --line: #e7e9ee;
  --panel: #ffffff;
  --soft: #f5f6f8;
  --shadow: 0 22px 60px rgba(23, 28, 35, 0.16);
  --theme: #e1251b;
  --theme-soft: #fff0f1;
  --banner-start: #e1251b;
  --banner-end: #ff7a1a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(225, 37, 27, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f2f3f5 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button {
  border: 0;
  font: inherit;
}

.persona-demo {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 34px 22px 42px;
}

.demo-hero {
  max-width: 880px;
  margin: 0 auto 24px;
  text-align: center;
}

.demo-hero span,
.live-explain > span {
  color: var(--theme);
  font-size: 14px;
  font-weight: 900;
}

.demo-hero h1 {
  margin-top: 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.demo-hero p {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.demo-stage {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.phone-shell {
  position: relative;
  width: min(100%, 420px);
  height: 790px;
  margin: 0 auto;
  overflow: hidden;
  border: 10px solid #181b20;
  border-radius: 34px;
  background: #f2f3f5;
  box-shadow: var(--shadow);
}

.phone-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 112px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(24, 27, 32, 0.18);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 18px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 900;
}

.mini-program {
  height: calc(100% - 30px - 58px);
  overflow-y: auto;
  background: #f2f3f5;
  scroll-behavior: smooth;
}

.mini-program::-webkit-scrollbar {
  width: 0;
}

.app-search {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 34px;
  gap: 7px;
  align-items: center;
  margin: 9px 9px 0;
}

.tool-icon {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa1ab;
}

.tool-icon svg {
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.notice-icon::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 6px;
  width: 6px;
  height: 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff4d5a;
}

.searchbox {
  position: relative;
  min-width: 0;
  overflow: hidden;
  height: 36px;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  background: #fff;
  padding: 9px 13px 8px 36px;
  color: #5f6672;
  font-size: 14px;
  line-height: 1.15;
  box-shadow: 0 3px 10px rgba(23, 28, 35, 0.08);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchbox::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  width: 10px;
  height: 10px;
  border: 2px solid #9aa1ab;
  border-radius: 50%;
}

.searchbox::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 22px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #9aa1ab;
  transform: rotate(45deg);
  transform-origin: left center;
}

.quick-channels {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 10px 7px;
  background: #fff;
  color: #545a64;
  scrollbar-width: none;
  white-space: nowrap;
}

.quick-channels::-webkit-scrollbar {
  display: none;
}

.quick-channels span {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: #ffe0df;
  padding: 7px 10px;
  color: #be4b4b;
  font-size: 12px;
  font-weight: 900;
}

.quick-channels span:nth-child(2) {
  background: #dff7e9;
  color: #238157;
}

.quick-channels span:nth-child(3) {
  background: #e2f0ff;
  color: #2f6fae;
}

.quick-channels span:nth-child(4) {
  background: #fff0cf;
  color: #9a640e;
}

.quick-channels span:nth-child(5) {
  background: #f0e5ff;
  color: #7547a6;
}

.quick-channels span:nth-child(6) {
  background: #e7f4ef;
  color: #2e735f;
}

.quick-channels .active {
  background: var(--theme-soft);
  color: var(--theme);
}

.service-entry-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 5px 10px 7px;
  background: #fff;
}

.service-entry-row article {
  min-width: 0;
  text-align: center;
}

.service-entry-row i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin: 0 auto 3px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.service-entry-row i.red {
  background: #ff2438;
}

.service-entry-row i.gold {
  background: #f5a623;
}

.service-entry-row i.green {
  background: #18b96c;
}

.service-entry-row i.blue {
  background: #3280ff;
}

.service-entry-row i.dark {
  background: #333943;
}

.service-entry-row b {
  display: block;
  color: #555b65;
  font-size: 10px;
  line-height: 1.12;
  white-space: nowrap;
}

.persona-banner {
  position: relative;
  display: block;
  margin: 8px 10px 9px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(23, 28, 35, 0.08);
}

.ad-banner-image {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 270;
  object-fit: cover;
}

.recommend-section {
  padding: 4px 10px 12px;
}

.mobile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.mobile-head h3 {
  color: #1f2329;
  font-size: 15px;
  font-weight: 900;
}

.mobile-head span {
  color: var(--muted);
  font-size: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: 8px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 238px;
  overflow: hidden;
  border: 1px solid rgba(231, 233, 238, 0.86);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(23, 28, 35, 0.05);
}

.product-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  min-height: 132px;
}

.product-card img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  background: #fff;
}

.product-card.wide img {
  width: 132px;
  height: 132px;
}

.product-card h4 {
  padding: 8px 9px 0;
  color: #252a32;
  font-size: 14px;
  line-height: 1.28;
}

.product-card p {
  padding: 5px 9px 0;
  color: #b36c19;
  font-size: 11px;
  font-weight: 800;
}

.product-card div {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding: 7px 9px 9px;
}

.product-card b {
  color: var(--theme);
  font-size: 18px;
  line-height: 1;
}

.product-card em {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  background: var(--theme-soft);
  color: var(--theme);
  font-size: 20px;
  font-style: normal;
  line-height: 1;
}

.mock-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 8px 14px;
}

.mock-tabbar span {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 3px;
  color: #6c727c;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.mock-tabbar svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mock-tabbar b {
  display: block;
  font: inherit;
  line-height: 1.1;
}

.mock-tabbar .active {
  color: var(--theme);
}

.live-explain {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 26px;
  box-shadow: 0 14px 38px rgba(23, 28, 35, 0.08);
}

.live-explain h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.live-explain p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.logic-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.logic-points article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fa;
  padding: 14px;
}

.logic-points span {
  color: var(--theme);
  font-size: 12px;
  font-weight: 900;
}

.logic-points b {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.28;
}

.persona-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.persona-card {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  text-align: left;
  box-shadow: 0 10px 26px rgba(23, 28, 35, 0.07);
  cursor: pointer;
}

.persona-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.persona-card:not(.active) .persona-progress {
  width: 0;
  animation: none;
}

.persona-card.active .persona-progress {
  width: 100%;
  bottom: 0;
  animation: personaProgress 10s linear 1;
}

.manual-mode .persona-progress {
  width: 0 !important;
  animation: none !important;
}

.persona-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(225, 37, 27, 0.08);
}

.persona-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.persona-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.persona-card.active {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(135deg, var(--banner-start) 0%, var(--banner-end) 100%);
}

.persona-card.active span {
  color: rgba(255, 255, 255, 0.86);
}

.persona-card.active::after {
  background: rgba(255, 255, 255, 0.18);
}

body[data-persona="student"] {
  --theme: #e1251b;
  --theme-soft: #ffe8ec;
  --banner-start: #e1251b;
  --banner-end: #ff7a1a;
}

body[data-persona="fashion"] {
  --theme: #be185d;
  --theme-soft: #fce7f3;
  --banner-start: #be185d;
  --banner-end: #f97316;
}

body[data-persona="family"] {
  --theme: #138a44;
  --theme-soft: #dcfce7;
  --banner-start: #138a44;
  --banner-end: #f59e0b;
}

@keyframes personaProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .persona-demo {
    display: flex;
    flex-direction: column;
    padding: 22px 10px 28px;
  }

  .demo-hero {
    order: 0;
    margin-bottom: 16px;
    text-align: left;
  }

  .demo-hero p {
    margin-left: 0;
  }

  .demo-stage {
    order: 2;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .live-explain {
    order: 2;
    padding: 18px;
  }

  .logic-points {
    grid-template-columns: 1fr;
  }

  .persona-picker {
    order: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
  }

  .persona-card {
    min-height: 96px;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .persona-demo {
    padding: 12px 8px 20px;
  }

  .demo-hero {
    margin-bottom: 10px;
  }

  .demo-hero span {
    font-size: 12px;
  }

  .demo-hero h1 {
    margin-top: 7px;
    font-size: 23px;
    line-height: 1.18;
  }

  .demo-hero p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.54;
  }

  .phone-shell {
    width: 100%;
    max-width: 430px;
    height: min(736px, calc(100vh - 142px));
    min-height: 620px;
    border-width: 6px;
    border-radius: 26px;
  }

  .phone-status {
    height: 28px;
  }

  .mini-program {
    height: calc(100% - 28px - 56px);
  }

  .app-search {
    grid-template-columns: 32px minmax(0, 1fr) 32px 32px;
    gap: 6px;
    margin: 8px 8px 0;
  }

  .tool-icon,
  .searchbox {
    height: 34px;
  }

  .tool-icon {
    width: 32px;
    border-radius: 9px;
  }

  .searchbox {
    padding: 8px 10px 7px 33px;
    font-size: 13px;
  }

  .quick-channels {
    gap: 7px;
    padding: 8px 8px 7px;
  }

  .quick-channels span {
    padding: 6px 9px;
    font-size: 11px;
  }

  .persona-banner {
    margin: 8px;
    border-radius: 12px;
  }

  .product-grid {
    gap: 7px;
  }

  .product-card {
    min-height: 224px;
  }

  .product-card img {
    height: 110px;
  }

  .product-card.wide {
    min-height: 124px;
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .product-card.wide img {
    width: 124px;
    height: 124px;
  }

  .persona-picker {
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 6px;
    margin: 0 -2px 10px;
    border: 1px solid rgba(231, 233, 238, 0.88);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    padding: 6px;
    box-shadow: 0 8px 24px rgba(23, 28, 35, 0.08);
    backdrop-filter: blur(14px);
  }

  .persona-card {
    min-height: 54px;
    border-radius: 10px;
    padding: 9px 6px;
    text-align: center;
    box-shadow: none;
  }

  .persona-card strong {
    font-size: 14px;
    line-height: 1.15;
  }

  .persona-card span {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .persona-card::after {
    display: none;
  }

  .persona-progress {
    height: 3px;
  }

  .live-explain {
    padding: 15px;
  }

  .live-explain h2 {
    font-size: 22px;
  }

  .live-explain p {
    font-size: 14px;
    line-height: 1.58;
  }

  .logic-points {
    gap: 8px;
    margin-top: 14px;
  }

  .logic-points article {
    padding: 11px;
  }

  .logic-points b {
    font-size: 15px;
  }
}
