:root {
  --mist-blue: #7CB9E8;
  --grass: #A8E6CF;
  --coral: #FFAAA5;
  --bg: #FAFAF8;
  --line: #F0F0ED;
  --muted: #8E8E8E;
  --text: #5A5A5A;
  --black: #333333;
  --success: #6BCB77;
  --warning: #FFD93D;
  --danger: #FF6B6B;
  --link: #4D96FF;
  --shadow: 0 12px 28px rgba(90, 90, 90, 0.12);
  --soft-shadow: 0 6px 16px rgba(90, 90, 90, 0.08);
  font-family: "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(168, 230, 207, 0.35), transparent 32%),
    radial-gradient(circle at bottom right, rgba(124, 185, 232, 0.28), transparent 34%),
    #eef6f5;
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  height: min(100vh, 920px);
  min-height: 720px;
  overflow: hidden;
  background: var(--bg);
  border: 10px solid #ffffff;
  border-radius: 34px;
  box-shadow: 0 24px 80px rgba(51, 51, 51, 0.18);
}

.app-view {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

.splash {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  align-content: center;
  gap: 32px;
  padding: 36px;
  background: linear-gradient(180deg, #dff2ff 0%, #f7fbf7 62%, #e3f5df 100%);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.splash.is-hidden {
  opacity: 0;
  transform: translateY(-18px);
  visibility: hidden;
}

.splash-photo {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(#bde8ff 0 48%, #cdeecf 49% 100%);
  box-shadow: var(--shadow);
}

.app-icon-mark {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  width: 74px;
  height: 74px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(90, 90, 90, 0.16);
}

.sun {
  position: absolute;
  top: 46px;
  right: 62px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffd870;
  box-shadow: 0 0 0 18px rgba(255, 216, 112, 0.16);
}

.cloud,
.cloud::before,
.cloud::after {
  position: absolute;
  display: block;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.cloud {
  width: 78px;
  height: 26px;
  animation: cloud-drift 5s ease-in-out infinite alternate;
}

.cloud::before {
  left: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
}

.cloud::after {
  right: 12px;
  bottom: 8px;
  width: 36px;
  height: 36px;
}

.cloud-a {
  top: 72px;
  left: 36px;
}

.cloud-b {
  top: 132px;
  right: 30px;
  transform: scale(0.75);
  animation-delay: 1.3s;
}

.hill {
  position: absolute;
  bottom: 70px;
  width: 280px;
  height: 138px;
  border-radius: 60% 60% 0 0;
  background: #98dbb8;
}

.hill-a {
  left: -80px;
}

.hill-b {
  right: -92px;
  bottom: 52px;
  background: #7dcda0;
}

.road {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 88px;
  height: 150px;
  transform: translateX(-50%) perspective(100px) rotateX(18deg);
  border-radius: 80px 80px 0 0;
  background: linear-gradient(90deg, #e9d8ad, #fff0c9, #e9d8ad);
}

.splash-copy h1 {
  margin: 0;
  color: var(--black);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0;
}

.splash-copy p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 17px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 10px;
  background: rgba(250, 250, 248, 0.92);
}

.city-button {
  flex: 0 0 auto;
  padding: 10px 12px;
  color: var(--black);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  font-size: 14px;
}

.search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.search-pill input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--black);
  background: transparent;
  font-size: 14px;
}

.screen {
  display: none;
  height: calc(100% - 76px);
  overflow-y: auto;
  padding: 0 18px 94px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.is-active {
  display: block;
}

.scene-strip {
  display: flex;
  gap: 10px;
  margin: 4px -18px 10px;
  padding: 6px 18px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.scene-strip::-webkit-scrollbar {
  display: none;
}

.scene {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(90, 90, 90, 0.05);
  font-size: 13px;
}

.scene.is-picked {
  color: #28516e;
  background: var(--mist-blue);
  border-color: transparent;
}

.location-status {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(168, 230, 207, 0.6);
  border-radius: 16px;
  background: rgba(168, 230, 207, 0.22);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2,
.page-title h1,
.profile-card h1 {
  margin: 0;
  color: var(--black);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.section-heading button {
  flex: 0 0 auto;
  color: var(--link);
  background: transparent;
  font-size: 12px;
}

.section-heading button:disabled {
  color: var(--muted);
  cursor: default;
}

.doubao-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(124, 185, 232, 0.28);
  border-radius: 22px;
  background: #eef8ff;
  box-shadow: var(--soft-shadow);
}

.doubao-card h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 17px;
  font-weight: 500;
}

.doubao-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.place-card {
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.place-card.tall {
  border-radius: 28px;
}

.place-card.small-offset {
  width: 91%;
  margin-left: auto;
}

.place-open {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
  background: transparent;
}

.photo {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background-size: cover;
}

.photo::before,
.hero-photo::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 45%, rgba(51, 51, 51, 0.22)),
    radial-gradient(circle at 22% 25%, rgba(255, 255, 255, 0.74) 0 5%, transparent 5.5%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.62) 0 8%, transparent 8.5%);
}

.photo::after,
.hero-photo::after {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -18px;
  height: 96px;
  content: "";
  border-radius: 50% 50% 0 0;
}

.photo-sunset {
  background: linear-gradient(180deg, #a9d8ee 0%, #ffd4a6 56%, #8ac299 100%);
}

.photo-sunset::after {
  background: #5f965e;
}

.photo-lake {
  background: linear-gradient(180deg, #c9ebf7 0%, #e2f5ff 46%, #91cdd8 47%, #8bd39a 100%);
}

.photo-lake::after {
  background: #8dd59f;
}

.photo-forest {
  background: linear-gradient(180deg, #c3e4d5 0%, #9bd4b9 50%, #5fa277 100%);
}

.photo-forest::after {
  background: #407b59;
}

.photo-picnic {
  background: linear-gradient(180deg, #bfe7ff 0%, #f8edd0 48%, #99d694 100%);
}

.photo-picnic::after {
  background: #7ac785;
}

.photo-river {
  background: linear-gradient(180deg, #cfefff 0%, #8fcde8 46%, #7db9c8 48%, #6aa67a 100%);
}

.photo-river::after {
  background: #4e8b65;
}

.photo-street {
  background: linear-gradient(180deg, #dce9df 0%, #f3d7bc 48%, #c6a07d 100%);
}

.photo-street::after {
  background: #947255;
}

.photo-kids {
  background: linear-gradient(180deg, #bee9ff 0%, #f6f1c4 50%, #9bdb92 100%);
}

.photo-kids::after {
  background: #86c97c;
}

.photo-flower {
  background: linear-gradient(180deg, #d9f1ff 0%, #ffd6df 48%, #b7df9c 100%);
}

.photo-flower::after {
  background: #8fc778;
}

.photo-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--black);
  font-size: 12px;
}

.photo-tag.green {
  background: rgba(168, 230, 207, 0.9);
}

.photo-tag.coral {
  background: rgba(255, 170, 165, 0.9);
}

.card-body {
  padding: 14px 15px 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 17px;
  font-weight: 500;
}

.card-body p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body .meta {
  color: var(--muted);
  font-size: 13px;
}

.detail-screen {
  padding-inline: 0;
}

.hero-photo {
  position: relative;
  min-height: 315px;
  margin-bottom: 16px;
}

.hero-actions {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-actions button {
  min-width: 0;
  padding: 11px 8px;
  border-radius: 18px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  font-size: 12px;
}

.detail-block,
.note-block,
.reviews,
.page-title,
.profile-card,
.menu-grid,
.empty-state,
.pit-card,
.buddy-card {
  margin-inline: 18px;
}

.detail-block {
  padding: 4px 0 6px;
}

.detail-block h1 {
  margin: 0 0 14px;
  color: var(--black);
  font-size: 20px;
  font-weight: 600;
}

.detail-block p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.5;
}

.note-block {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.note-block.blue {
  background: #eef8ff;
  border-color: rgba(124, 185, 232, 0.35);
}

.note-block h2,
.reviews h2,
.pit-card h2,
.buddy-card h2 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 17px;
  font-weight: 500;
}

.note-block p,
.note-block li,
.reviews p,
.pit-card p,
.buddy-card p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.note-block ul {
  margin: 0;
  padding-left: 20px;
}

.reviews {
  margin-top: 18px;
}

.reviews article {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.reviews b {
  color: var(--black);
  font-size: 14px;
}

.reviews span {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
}

.reviews p {
  margin: 8px 0 0;
}

.fixed-cta,
.floating-button {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  width: calc(100% - 36px);
  margin: 18px;
  padding: 15px 18px;
  border-radius: 20px;
  color: var(--black);
  background: var(--mist-blue);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 600;
}

.page-title {
  padding: 14px 0 8px;
}

.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pit-card,
.buddy-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 107, 107, 0.22);
  border-radius: 24px;
  background: #fff7f6;
  box-shadow: var(--soft-shadow);
}

.pit-card.soft {
  background: #fffdf3;
  border-color: rgba(255, 217, 61, 0.35);
}

.card-foot {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.pit-card button,
.buddy-card button {
  margin-top: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--black);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(90, 90, 90, 0.06);
}

.floating-button {
  background: var(--coral);
}

.floating-button.green,
.buddy-card.green button {
  background: var(--grass);
}

.buddy-card {
  background: #ffffff;
  border-color: var(--line);
}

.buddy-card.green {
  background: #f3fff9;
  border-color: rgba(168, 230, 207, 0.45);
}

.buddy-card button {
  background: var(--mist-blue);
  font-weight: 600;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eaf7ff, #f2fff9);
  box-shadow: var(--soft-shadow);
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  font-size: 28px;
}

.profile-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.menu-grid button {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--black);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  font-size: 24px;
}

.menu-grid span {
  font-size: 14px;
}

.empty-state {
  display: grid;
  place-items: center;
  margin-top: 18px;
  padding: 26px 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px dashed #d9ddd8;
}

.backpack {
  font-size: 42px;
}

.empty-state p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.privacy-card {
  margin: 18px;
  padding: 18px;
  border: 1px solid rgba(124, 185, 232, 0.28);
  border-radius: 24px;
  background: #eef8ff;
  box-shadow: var(--soft-shadow);
}

.privacy-card h2 {
  margin: 0 0 10px;
  color: var(--black);
  font-size: 17px;
  font-weight: 500;
}

.privacy-card p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.privacy-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.privacy-card span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
}

.inline-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 30px 18px;
  border: 1px dashed #d9ddd8;
  border-radius: 24px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

.inline-empty div {
  font-size: 42px;
}

.inline-empty p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 9px 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.tabbar button {
  display: grid;
  gap: 4px;
  place-items: center;
  min-width: 0;
  padding: 7px 3px;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  font-size: 18px;
}

.tabbar span {
  font-size: 12px;
}

.tabbar button.is-active {
  color: var(--black);
  background: #eaf7ff;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 8;
  max-width: calc(100% - 42px);
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 13px;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes cloud-drift {
  from {
    translate: -8px 0;
  }
  to {
    translate: 12px 0;
  }
}

@media (max-width: 460px) {
  body {
    display: block;
    background: var(--bg);
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
