:root {
  --bg: #f6f2ff;
  --bg-2: #eef8ff;
  --paper: rgba(255,255,255,.82);
  --line: rgba(124, 103, 189, .14);
  --text: #4a3f66;
  --muted: #857aa3;
  --primary: #a78bfa;
  --primary-2: #7dd3fc;
  --accent: #fde68a;
  --mint: #bbf7d0;
  --danger: #fda4af;
  --shadow: 0 20px 50px rgba(126, 110, 180, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(167,139,250,.22), transparent 28%),
    radial-gradient(circle at top right, rgba(125,211,252,.18), transparent 24%),
    linear-gradient(180deg, #fffefc 0%, #f7f4ff 48%, #eef9ff 100%);
}
.phone-shell {
  width: 390px;
  height: 844px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(180deg, #2d2740, #120f1d);
  box-shadow: 0 24px 70px rgba(34, 23, 73, .28);
}
.phone-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.45);
  background:
    radial-gradient(circle at 15% 15%, rgba(253,230,138,.35), transparent 18%),
    radial-gradient(circle at 85% 12%, rgba(125,211,252,.26), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, #fffefa 44%, var(--bg-2) 100%);
}
.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 34px;
  background: #14111f;
  border-radius: 999px;
  z-index: 20;
}
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  height: 5px;
  border-radius: 999px;
  background: rgba(38,31,60,.85);
  z-index: 20;
}
.app {
  height: 100%;
  padding: 58px 18px 26px;
  overflow: hidden;
}
.scroll-page {
  height: 100%;
  overflow: auto;
  padding-bottom: 42px;
  scrollbar-width: none;
}
.scroll-page::-webkit-scrollbar { display: none; }
.glass, .card {
  background: var(--paper);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 26px;
}
.soft-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(124, 103, 189, .1);
  border-radius: 22px;
}
.gradient-card {
  background: linear-gradient(135deg, rgba(167,139,250,.22), rgba(125,211,252,.22), rgba(253,230,138,.24));
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.section-title { font-size: 1rem; font-weight: 800; }
.section-sub { font-size: .78rem; color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .34rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-purple { background: rgba(167,139,250,.16); color: #7756dc; }
.badge-blue { background: rgba(125,211,252,.18); color: #177ab4; }
.badge-yellow { background: rgba(253,230,138,.26); color: #a76a00; }
.badge-mint { background: rgba(187,247,208,.3); color: #1e7d55; }
.icon-chip {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(167,139,250,.22), rgba(125,211,252,.18));
  color: #7155d7;
}
.bottom-nav {
  position: sticky;
  bottom: 10px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 103, 189, .12);
  border-radius: 24px;
  padding: 10px 8px;
  box-shadow: 0 14px 34px rgba(100, 88, 141, .16);
}
.nav-item { color: var(--muted); }
.nav-item.active { color: #6f50dd; }
.hero-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 22px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(124, 103, 189, .1);
}
.stat-pill {
  padding: .7rem .85rem;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(124,103,189,.08);
}
.chat-bubble-user {
  margin-left: auto;
  max-width: 76%;
  padding: .9rem 1rem;
  border-radius: 22px 22px 8px 22px;
  background: linear-gradient(135deg, #a78bfa, #7dd3fc);
  color: white;
}
.chat-bubble-ai {
  max-width: 84%;
  padding: .95rem 1rem;
  border-radius: 22px 22px 22px 8px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(124,103,189,.1);
}
.product-image, .avatar-image {
  object-fit: cover;
  border-radius: 20px;
}
.product-image { width: 92px; height: 92px; }
.avatar-image { width: 54px; height: 54px; }
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 30px;
}
.frame-title { font-weight: 800; color: #5a4a86; margin-bottom: 12px; }
iframe {
  width: 390px;
  height: 844px;
  border: 0;
  border-radius: 46px;
  background: transparent;
}
