:root {
  --bg: #f4ede3;
  --surface: rgba(255, 250, 244, 0.82);
  --surface-strong: rgba(255, 249, 241, 0.94);
  --surface-card: linear-gradient(180deg, rgba(255, 246, 236, 0.96) 0%, rgba(246, 234, 220, 0.92) 100%);
  --surface-card-strong: linear-gradient(180deg, rgba(255, 237, 219, 0.98) 0%, rgba(247, 222, 198, 0.95) 100%);
  --border: rgba(89, 55, 24, 0.12);
  --text: #26170f;
  --muted: #6d5649;
  --accent: #bb5a31;
  --accent-deep: #8d3a1b;
  --accent-soft: #f8dcc7;
  --support: #2d5a51;
  --support-soft: rgba(45, 90, 81, 0.12);
  --shadow: 0 24px 60px rgba(70, 36, 13, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at top left, rgba(255, 215, 179, 0.88), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(193, 225, 218, 0.78), transparent 24%),
    linear-gradient(180deg, #faf3eb 0%, #f4ece3 46%, #ede4da 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.ambient,
.cursor-glow,
.click-burst-layer {
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: 0;
  filter: blur(14px);
  opacity: 0.7;
  mix-blend-mode: screen;
}

.ambient-one {
  top: 6%;
  left: -4%;
  width: 22rem;
  height: 22rem;
  border-radius: 45% 55% 58% 42%;
  background: radial-gradient(circle, rgba(255, 188, 136, 0.54) 0%, rgba(255, 188, 136, 0) 68%);
  animation: driftOne 18s ease-in-out infinite alternate;
}

.ambient-two {
  top: 22%;
  right: -6%;
  width: 26rem;
  height: 26rem;
  border-radius: 58% 42% 38% 62%;
  background: radial-gradient(circle, rgba(127, 203, 184, 0.36) 0%, rgba(127, 203, 184, 0) 70%);
  animation: driftTwo 22s ease-in-out infinite alternate;
}

.ambient-three {
  bottom: 10%;
  left: 28%;
  width: 18rem;
  height: 18rem;
  border-radius: 52% 48% 66% 34%;
  background: radial-gradient(circle, rgba(255, 226, 176, 0.34) 0%, rgba(255, 226, 176, 0) 70%);
  animation: driftThree 20s ease-in-out infinite alternate;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(255, 201, 165, 0.28) 0%, rgba(255, 201, 165, 0.08) 38%, rgba(255, 201, 165, 0) 72%);
  transition: opacity 180ms ease;
}

.click-burst-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
}

.click-burst {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(187, 90, 49, 0.42);
  background: rgba(255, 244, 234, 0.55);
  transform: translate(-50%, -50%) scale(0.2);
  animation: burst 560ms ease-out forwards;
}

.app-shell {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--accent) 0%, #dc8a59 100%);
  box-shadow: 0 14px 30px rgba(187, 90, 49, 0.3);
}

.brand-image {
  object-fit: cover;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small,
.eyebrow,
.video-link,
.block-head p,
.page-head p {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 10px 16px;
  border: 1px solid rgba(255, 235, 214, 0.78);
  border-radius: 999px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.86) 0%, rgba(245, 233, 219, 0.82) 100%);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-link.active {
  color: #fff;
  border-color: rgba(187, 90, 49, 0.34);
  background: linear-gradient(135deg, #c7683a 0%, #a64722 100%);
  box-shadow: 0 12px 22px rgba(187, 90, 49, 0.22);
}

.view-stack {
  display: grid;
}

.view {
  display: none;
  gap: 24px;
}

.view.is-active {
  display: grid;
}

.panel {
  padding: 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.9) 0%, rgba(246, 238, 228, 0.84) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 68px rgba(70, 36, 13, 0.14);
  border-color: rgba(187, 90, 49, 0.16);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 30px;
}

.hero-copy h1,
.page-head h2,
.result-card h2,
.intro-card h2,
.result-empty h2 {
  margin: 0;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero-copy p,
.page-head p,
.summary-text,
.video-desc,
.message-body,
.intro-card p,
.result-empty p {
  line-height: 1.72;
}

.hero-copy p {
  max-width: 36rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 280px));
  gap: 16px;
  width: min(576px, 100%);
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: stretch;
  min-height: 132px;
}

.hero-actions .btn {
  min-height: 64px;
  width: 100%;
  padding: 0 30px;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.miniapp-portal {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  width: min(576px, 100%);
  min-height: 104px;
  padding: 14px 16px;
  margin: 22px auto 0;
  border-radius: 22px;
  border: 1px solid rgba(120, 79, 52, 0.12);
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.92) 0%, rgba(244, 232, 220, 0.86) 100%);
  box-shadow: 0 14px 28px rgba(70, 36, 13, 0.08);
}

.miniapp-qr {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.miniapp-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.miniapp-meta strong,
.miniapp-meta small {
  display: block;
}

.miniapp-meta strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.miniapp-meta small {
  color: var(--muted);
  line-height: 1.5;
}

.hero-card {
  display: grid;
  gap: 14px;
  align-self: stretch;
  padding: 18px;
  border-radius: 24px;
  color: #effbf7;
  background:
    radial-gradient(circle at top right, rgba(111, 197, 177, 0.28), transparent 26%),
    linear-gradient(180deg, rgba(37, 72, 64, 0.97) 0%, rgba(29, 51, 46, 0.97) 100%);
}

.hero-stat,
.intro-card {
  display: grid;
  gap: 8px;
}

.hero-stat {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stat strong {
  font-size: 1.18rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.page-head {
  display: grid;
  gap: 10px;
}

.eyebrow,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.step-aside {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 20px;
}

.step-progress,
.selection-summary,
.summary-chip-list,
.card-grid,
.symptom-list,
.video-clips,
.chip-row,
.chat-list {
  display: grid;
  gap: 12px;
}

.step-pill {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
  border: 1px solid rgba(215, 174, 140, 0.34);
  border-radius: 18px;
  color: var(--muted);
  background: var(--surface-card);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.step-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 700;
}

.step-pill.active {
  color: #fff;
  border-color: rgba(187, 90, 49, 0.34);
  background: linear-gradient(135deg, #c7683a 0%, #a64722 100%);
  box-shadow: 0 12px 22px rgba(187, 90, 49, 0.22);
}

.step-pill.active span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.selection-summary h3,
.block-head h3,
.section-card h3,
.section-card h4 {
  margin: 0;
}

.summary-chip-list {
  min-height: 64px;
}

.summary-chip,
.summary-empty,
.chip-row span,
.clip-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
}

.summary-chip,
.chip-row span,
.clip-time {
  color: var(--support);
  background: rgba(45, 90, 81, 0.12);
}

.summary-empty {
  justify-self: start;
  color: var(--muted);
  background: rgba(116, 88, 69, 0.08);
}

.step-panel {
  min-height: 0;
}

.step-page {
  display: none;
}

.step-page.is-active {
  display: grid;
  gap: 18px;
}

.block-head {
  display: grid;
  gap: 8px;
}

.cause-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-grid .select-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  text-align: center;
}

.compact-grid .select-card strong {
  margin: 0;
}

.select-card,
.clip-card {
  width: 100%;
  padding: 18px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 79, 52, 0.14);
  background: var(--surface-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.select-card:hover,
.clip-card:hover,
.btn:hover,
.nav-link:hover,
.step-pill:hover {
  transform: translateY(-2px);
}

.select-card.selected,
.clip-card.active {
  border-color: rgba(187, 90, 49, 0.52);
  box-shadow: 0 18px 34px rgba(187, 90, 49, 0.16);
  background: var(--surface-card-strong);
}

.select-card strong,
.clip-card strong {
  display: block;
  font-size: 1rem;
}

.select-card strong {
  margin-bottom: 8px;
}

.select-card p,
.clip-card p,
.point-item p,
.solution-item p,
.risk-text,
.summary-text,
.video-desc {
  margin: 0;
}

.select-card p,
.clip-card p,
.point-item p,
.solution-item p {
  color: var(--muted);
}

.state-text {
  margin: 0;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: rgba(45, 90, 81, 0.08);
  border: 1px solid rgba(45, 90, 81, 0.08);
  color: var(--muted);
}

.submit-btn,
.chat-form .btn {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #d77743 0%, var(--accent) 42%, var(--accent-deep) 100%);
  box-shadow: 0 16px 30px rgba(187, 90, 49, 0.28);
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(187, 90, 49, 0.22);
  background: linear-gradient(135deg, #cf6f3d 0%, #b95b31 44%, #94401f 100%);
  box-shadow: 0 14px 28px rgba(187, 90, 49, 0.24);
}

.result-empty {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.result-layout {
  display: grid;
  gap: 20px;
}

.result-card,
.section-card {
  display: grid;
  gap: 16px;
}

.tag {
  justify-self: start;
}

.result-card h2 {
  line-height: 1.22;
  overflow-wrap: anywhere;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.risk-text {
  color: var(--accent-deep);
  font-weight: 700;
}

.chip-row {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
}

.point-list,
.solution-list {
  display: grid;
  gap: 14px;
}

.point-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
}

.point-bullet {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.solution-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 244, 235, 0.95) 0%, rgba(246, 232, 218, 0.9) 100%);
}

.solution-item h4 {
  margin: 0 0 8px;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #1c140f;
}

.video-meta {
  display: grid;
  gap: 8px;
}

.video-meta h4 {
  margin: 0;
}

.video-link {
  display: inline-block;
  word-break: break-all;
}

.video-clips {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.clip-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.clip-card strong,
.clip-card p {
  text-align: center;
}

.clip-time {
  justify-self: end;
}

.assistant-panel {
  display: grid;
  gap: 18px;
}

.message {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.message.user {
  background: linear-gradient(135deg, #fff2e5 0%, #ffe7d3 100%);
}

.message:not(.user) {
  border: 1px solid rgba(60, 118, 106, 0.16);
  background: linear-gradient(180deg, rgba(231, 244, 239, 0.98) 0%, rgba(207, 231, 223, 0.94) 100%);
}

.message-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.message-body {
  white-space: pre-wrap;
}

.chat-form {
  display: grid;
  gap: 12px;
}

.chat-form textarea {
  width: 100%;
  min-height: 112px;
  padding: 16px 18px;
  resize: vertical;
  outline: none;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 79, 52, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.chat-form textarea:focus {
  border-color: rgba(187, 90, 49, 0.4);
  box-shadow: 0 0 0 4px rgba(187, 90, 49, 0.12);
}

@media (max-width: 1080px) {
  .hero-panel,
  .step-shell,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .step-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 100%);
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-link {
    width: 100%;
  }

  .panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 9vw, 2.9rem);
    line-height: 1.08;
  }

  .hero-copy p,
  .page-head p,
  .summary-text,
  .video-desc,
  .message-body,
  .result-empty p {
    line-height: 1.68;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
    min-height: 0;
  }

  .hero-actions .btn {
    min-height: 58px;
    font-size: 1.02rem;
  }

  .miniapp-portal {
    width: 100%;
    grid-template-columns: 72px 1fr;
    justify-self: stretch;
    margin-top: 12px;
  }

  .miniapp-qr {
    width: 72px;
    height: 72px;
  }

  .cause-grid,
  .compact-grid,
  .video-clips {
    grid-template-columns: 1fr;
  }

  .step-progress {
    grid-template-columns: 1fr;
  }

  .step-pill {
    grid-template-columns: 44px 1fr;
  }

  .chip-row {
    grid-template-columns: 1fr;
  }

  .chip-row span {
    justify-self: stretch;
  }
}

.mobile-tabbar {
  display: none;
}

body.is-mobile-experience {
  background:
    radial-gradient(circle at top left, rgba(81, 170, 153, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(65, 106, 225, 0.18), transparent 26%),
    linear-gradient(180deg, #f9fcff 0%, #edf4fb 54%, #eef3f8 100%);
  color: #14304a;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body.is-mobile-experience .ambient,
body.is-mobile-experience .cursor-glow,
body.is-mobile-experience .click-burst-layer {
  display: none;
}

@media (max-width: 720px) {
  html,
  body.is-mobile-experience {
    min-height: 100%;
  }

  body.is-mobile-experience {
    background:
      radial-gradient(circle at 0% 0%, rgba(81, 170, 153, 0.18), transparent 32%),
      radial-gradient(circle at 100% 8%, rgba(65, 106, 225, 0.16), transparent 28%),
      linear-gradient(180deg, #f9fcff 0%, #edf4fb 58%, #eef3f8 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: scroll;
  }

  body.is-mobile-experience .topbar {
    display: none;
  }

  body.is-mobile-experience .app-shell {
    width: 100%;
    padding: 0 0 28px;
    min-height: 100vh;
  }

  body.is-mobile-experience .view-stack {
    display: block;
  }

  body.is-mobile-experience .view {
    padding: 0;
  }

  body.is-mobile-experience .view.is-active {
    display: block;
  }

  body.is-mobile-experience .page-shell {
    padding: 10px 10px 16px;
    min-height: calc(100vh - 12px);
  }

  body.is-mobile-experience #homeView .page-shell,
  body.is-mobile-experience #assistantView .page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  body.is-mobile-experience #homeView .page-shell {
    min-height: calc(100vh - 4px);
    padding-bottom: 4px;
    justify-content: center;
  }

  body.is-mobile-experience .glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(18, 49, 77, 0.08);
    backdrop-filter: blur(8px);
  }

  body.is-mobile-experience .mini-back-btn {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 12px rgba(18, 49, 77, 0.08);
    color: #16324f;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  body.is-mobile-experience .mini-back-btn.hidden {
    visibility: hidden;
  }

  body.is-mobile-experience .section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #16324f;
  }

  body.is-mobile-experience .section-subtitle {
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #6a7a90;
  }

  body.is-mobile-experience .page-head {
    display: none;
  }

  body.is-mobile-experience .panel {
    padding: 12px;
    position: relative;
    overflow: hidden;
  }

  body.is-mobile-experience .panel::after {
    content: "";
    position: absolute;
    right: -38px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 124, 246, 0.16) 0%, rgba(47, 124, 246, 0) 72%);
    pointer-events: none;
  }

  body.is-mobile-experience .hero-panel {
    display: block;
  }

  body.is-mobile-experience .hero {
    position: relative;
    overflow: hidden;
    padding: 16px 14px 14px;
    margin-top: 2px;
    min-height: 336px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
      radial-gradient(circle at 85% 12%, rgba(47, 124, 246, 0.18), transparent 24%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 251, 255, 0.9) 100%);
  }

  body.is-mobile-experience .hero::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 191, 167, 0.22) 0%, rgba(55, 191, 167, 0) 72%);
  }

  body.is-mobile-experience .hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 41, 65, 0.07);
    color: #355674;
    font-size: 0.78rem;
  }

  body.is-mobile-experience .hero-title {
    display: block;
    margin-top: 18px;
    font-size: 1.58rem;
    line-height: 1.16;
    font-weight: 800;
    color: #0f2941;
  }

  body.is-mobile-experience .hero-desc {
    display: block;
    margin-top: 14px;
    color: #5f738a;
    font-size: 0.84rem;
    line-height: 1.58;
  }

  body.is-mobile-experience .hero-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-height: 110px;
    transform: translateY(-31px);
  }

  body.is-mobile-experience .primary-btn,
  body.is-mobile-experience .secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    border: none;
  }

  body.is-mobile-experience .primary-btn {
    background: linear-gradient(135deg, #2f7cf6 0%, #37bfa7 100%);
    color: #fff;
    box-shadow: 0 8px 15px rgba(47, 124, 246, 0.24);
  }

  body.is-mobile-experience .secondary-btn {
    background: rgba(255, 255, 255, 0.85);
    color: #1b4f7c;
    border: 1px solid rgba(47, 124, 246, 0.16);
    box-shadow: none;
  }

  body.is-mobile-experience .hero-btn::after,
  body.is-mobile-experience .primary-btn::after,
  body.is-mobile-experience .secondary-btn::after {
    border: none;
  }

  body.is-mobile-experience .quick-entry {
    margin-top: 10px;
    padding: 14px 12px;
    min-height: 312px;
    display: flex;
    flex-direction: column;
  }

  body.is-mobile-experience #homeView .quick-entry {
    margin-top: 8px;
  }

  body.is-mobile-experience #homeView .disclaimer {
    margin-top: 8px;
  }

  body.is-mobile-experience .flow-row {
    display: flex;
    gap: 10px;
    margin-top: 0;
    align-items: flex-start;
  }

  body.is-mobile-experience #homeSteps {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 18px;
    flex: 1;
  }

  body.is-mobile-experience .flow-index {
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f7cf6 0%, #37bfa7 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
  }

  body.is-mobile-experience .flow-main {
    flex: 1;
  }

  body.is-mobile-experience .flow-label {
    display: block;
    font-size: 0.94rem;
    font-weight: 700;
    color: #16324f;
  }

  body.is-mobile-experience .flow-desc {
    display: block;
    margin-top: 2px;
    color: #6a7a90;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  body.is-mobile-experience .disclaimer {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 243, 213, 0.76);
    color: #8b5a11;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  body.is-mobile-experience .step-shell,
  body.is-mobile-experience .step-aside,
  body.is-mobile-experience .step-progress,
  body.is-mobile-experience .hero-card,
  body.is-mobile-experience .feature-grid,
  body.is-mobile-experience .miniapp-portal,
  body.is-mobile-experience .mobile-tabbar {
    display: none !important;
  }

  body.is-mobile-experience .panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 45, 71, 0.06);
    color: #355674;
    font-size: 0.68rem;
  }

  body.is-mobile-experience .panel .section-title {
    margin-top: 10px;
  }

  body.is-mobile-experience .progress-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
  }

  body.is-mobile-experience .progress-item {
    flex: 1;
    text-align: center;
    padding: 7px 0;
    border-radius: 10px;
    background: rgba(236, 243, 251, 0.95);
    border: 1px solid rgba(47, 124, 246, 0.08);
    color: #6e7d91;
    font-size: 0.74rem;
    font-weight: 600;
  }

  body.is-mobile-experience .progress-item.active {
    background: linear-gradient(135deg, #2f7cf6 0%, #37bfa7 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 9px 15px rgba(47, 124, 246, 0.16);
  }

  body.is-mobile-experience .summary-chip,
  body.is-mobile-experience .chip,
  body.is-mobile-experience .video-pill,
  body.is-mobile-experience .video-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(234, 243, 255, 0.98) 0%, rgba(241, 251, 248, 0.95) 100%);
    border: 1px solid rgba(47, 124, 246, 0.08);
    color: #2f7cf6;
    font-size: 0.68rem;
  }

  body.is-mobile-experience .summary-empty {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(246, 249, 253, 0.98);
    color: #6c7c90;
    font-size: 0.84rem;
  }

  body.is-mobile-experience .block {
    margin-top: 10px;
  }

  body.is-mobile-experience .block-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #16324f;
  }

  body.is-mobile-experience .card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  body.is-mobile-experience .cause-grid {
    grid-template-columns: 1fr;
  }

  body.is-mobile-experience .select-card,
  body.is-mobile-experience .symptom-card,
  body.is-mobile-experience .related-video {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    text-align: left;
    border: 1px solid rgba(47, 124, 246, 0.1);
    border-radius: 12px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 253, 0.95) 100%);
    box-shadow: 0 6px 12px rgba(18, 49, 77, 0.05);
    font: inherit;
    color: inherit;
  }

  body.is-mobile-experience .select-card.selected,
  body.is-mobile-experience .symptom-card.selected {
    background: linear-gradient(180deg, rgba(228, 240, 255, 0.98) 0%, rgba(230, 249, 244, 0.96) 100%);
    border-color: rgba(47, 124, 246, 0.34);
    box-shadow: 0 9px 15px rgba(47, 124, 246, 0.14);
  }

  body.is-mobile-experience .cause-card {
    min-height: 70px;
  }

  body.is-mobile-experience .cause-main {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  body.is-mobile-experience .cause-dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2f7cf6 0%, #37bfa7 100%);
    box-shadow: 0 0 0 4px rgba(47, 124, 246, 0.08);
  }

  body.is-mobile-experience .cause-copy,
  body.is-mobile-experience .symptom-main,
  body.is-mobile-experience .flow-main {
    flex: 1;
  }

  body.is-mobile-experience .compact {
    justify-content: center;
    padding: 0 10px;
  }

  body.is-mobile-experience .select-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #173550;
    line-height: 1.35;
  }

  body.is-mobile-experience .select-desc {
    display: block;
    margin-top: 3px;
    color: #678099;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  body.is-mobile-experience .symptom-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }

  body.is-mobile-experience .submit-btn {
    margin-top: 10px;
  }

  body.is-mobile-experience .mobile-result-empty,
  body.is-mobile-experience .result-card,
  body.is-mobile-experience .section-card {
    padding: 12px;
    margin-bottom: 8px;
  }

  body.is-mobile-experience .result-card {
    position: relative;
    overflow: hidden;
  }

  body.is-mobile-experience .result-card::after {
    content: "";
    position: absolute;
    right: -32px;
    top: -36px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 191, 167, 0.18) 0%, rgba(55, 191, 167, 0) 72%);
  }

  body.is-mobile-experience .tag {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(55, 191, 167, 0.12);
    color: #13856f;
    font-size: 0.68rem;
  }

  body.is-mobile-experience .result-title {
    margin-top: 6px;
    font-size: 1.08rem;
    font-weight: 800;
    color: #112d47;
  }

  body.is-mobile-experience .result-risk {
    margin-top: 4px;
    color: #1c8f78;
    font-size: 0.76rem;
    font-weight: 700;
  }

  body.is-mobile-experience .result-summary,
  body.is-mobile-experience .list-text,
  body.is-mobile-experience .solution-text,
  body.is-mobile-experience .video-text,
  body.is-mobile-experience .video-path,
  body.is-mobile-experience .video-tip,
  body.is-mobile-experience .chat-content {
    display: block;
    margin-top: 6px;
    color: #66778d;
    font-size: 0.74rem;
    line-height: 1.4;
  }

  body.is-mobile-experience .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  body.is-mobile-experience .text-list {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 8px;
  }

  body.is-mobile-experience .bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f7cf6 0%, #37bfa7 100%);
    margin-top: 5px;
  }

  body.is-mobile-experience .solution-item {
    margin-top: 8px;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.96) 0%, rgba(242, 247, 252, 0.94) 100%);
    border: 1px solid rgba(47, 124, 246, 0.08);
  }

  body.is-mobile-experience .solution-title,
  body.is-mobile-experience .video-title,
  body.is-mobile-experience .related-video-title {
    display: block;
    color: #173550;
    font-size: 0.82rem;
    font-weight: 700;
  }

  body.is-mobile-experience .featured-video {
    margin-top: 8px;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(233, 243, 255, 0.98) 0%, rgba(243, 249, 255, 0.95) 100%);
    border: 1px solid rgba(47, 124, 246, 0.1);
  }

  body.is-mobile-experience .case-video {
    width: 100%;
    height: 132px;
    border-radius: 10px;
    background: #0f2941;
  }

  body.is-mobile-experience .featured-video-head,
  body.is-mobile-experience .related-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  body.is-mobile-experience .featured-video-head {
    margin-top: 6px;
  }

  body.is-mobile-experience .video-pill.subtle,
  body.is-mobile-experience .video-time {
    background: rgba(15, 41, 65, 0.07);
    color: #4f647b;
  }

  body.is-mobile-experience .video-link {
    color: #2f7cf6;
    word-break: break-all;
  }

  body.is-mobile-experience .related-title {
    margin-top: 8px;
    color: #173550;
    font-size: 0.8rem;
    font-weight: 700;
  }

  body.is-mobile-experience .related-video {
    display: block;
    margin-top: 8px;
  }

  body.is-mobile-experience .related-blue {
    background: linear-gradient(180deg, rgba(245, 249, 255, 0.98) 0%, rgba(239, 246, 255, 0.94) 100%);
  }

  body.is-mobile-experience .related-green {
    background: linear-gradient(180deg, rgba(242, 251, 247, 0.98) 0%, rgba(236, 249, 244, 0.94) 100%);
  }

  body.is-mobile-experience .related-sand {
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.98) 0%, rgba(255, 246, 232, 0.94) 100%);
  }

  body.is-mobile-experience .related-video-desc {
    display: block;
    margin-top: 4px;
    color: #66778d;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  body.is-mobile-experience .chat-card {
    padding: 16px 14px;
    margin-bottom: 8px;
    margin-top: 2px;
    background:
      radial-gradient(circle at 90% 14%, rgba(55, 191, 167, 0.16), transparent 24%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.92) 100%);
  }

  body.is-mobile-experience #assistantView .chat-card {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
  }

  body.is-mobile-experience .chat-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  body.is-mobile-experience .chat-item {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 6px 12px rgba(18, 49, 77, 0.04);
  }

  body.is-mobile-experience .chat-item.user {
    align-self: flex-end;
    background: linear-gradient(180deg, rgba(228, 240, 255, 0.98) 0%, rgba(238, 246, 255, 0.95) 100%);
  }

  body.is-mobile-experience .chat-item.assistant {
    align-self: flex-start;
    background: linear-gradient(180deg, rgba(231, 248, 244, 0.98) 0%, rgba(240, 251, 248, 0.95) 100%);
  }

  body.is-mobile-experience .chat-role {
    display: block;
    font-size: 0.74rem;
    color: #3a546e;
    font-weight: 700;
  }

  body.is-mobile-experience .composer {
    margin-top: 12px;
  }

  body.is-mobile-experience #assistantView .composer {
    margin-top: auto;
  }

  body.is-mobile-experience .textarea {
    width: 100%;
    min-height: 108px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(248, 251, 255, 0.96);
    border: 1px solid rgba(47, 124, 246, 0.1);
    padding: 12px;
    font: inherit;
    font-size: 0.84rem;
    color: #14304a;
  }

  body.is-mobile-experience .composer .primary-btn {
    margin-top: 10px;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow,
  .click-burst-layer {
    display: none;
  }

  .panel:hover,
  .select-card:hover,
  .clip-card:hover,
  .btn:hover,
  .nav-link:hover,
  .step-pill:hover {
    transform: none;
  }
}

@keyframes driftOne {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5%, 8%, 0) scale(1.08);
  }
}

@keyframes driftTwo {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-7%, 6%, 0) scale(1.12);
  }
}

@keyframes driftThree {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, -7%, 0) scale(1.1);
  }
}

@keyframes burst {
  0% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8.5);
  }
}
