:root {
  --ink: #22314a;
  --muted: #6a7891;
  --paper: #fffaf1;
  --sky: #73c7ff;
  --blue: #3a8dff;
  --green: #2fbe72;
  --orange: #ff9f2e;
  --red: #ff615c;
  --yellow: #ffd65a;
  --purple: #8a72ff;
  --card: #ffffff;
  --shadow: 0 18px 44px rgba(35, 56, 92, 0.16);
  --font-sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-display: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 79, 139, 0.28), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(58, 141, 255, 0.34), transparent 25%),
    radial-gradient(circle at 82% 72%, rgba(47, 190, 114, 0.24), transparent 28%),
    linear-gradient(145deg, #eef7ff, #fff0db 44%, #eefbe8 72%, #f3edff);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 7%, rgba(255, 214, 90, 0.34), transparent 20%),
    radial-gradient(circle at 96% 20%, rgba(255, 79, 139, 0.18), transparent 24%),
    radial-gradient(circle at 18% 88%, rgba(47, 190, 114, 0.16), transparent 22%),
    linear-gradient(180deg, #f9fcff, #f3f8ff 46%, #fff8ef);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(34, 49, 74, 0.06), 0 30px 80px rgba(22, 39, 66, 0.24);
}

.app {
  min-height: 100vh;
  padding: 0 18px 94px;
  position: relative;
  overflow-x: hidden;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 159, 46, 0.16) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(58, 141, 255, 0.12) 0 3px, transparent 4px);
  background-size: 92px 92px, 118px 118px;
  background-position: 18px 38px, 76px 12px;
  opacity: 0.8;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 214, 90, 0.36), transparent 28%),
    radial-gradient(circle at 52% 70%, rgba(255, 159, 46, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #fff8e7 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15%;
  width: min(360px, 84vw);
  height: min(360px, 84vw);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 214, 90, 0.2) 48%, transparent 68%);
  transform: translateX(-50%);
  animation: spotlightPulse 2.3s ease-in-out infinite;
}

.splash::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 13%;
  width: min(380px, 88vw);
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(255, 159, 46, 0.22), transparent 62%),
    radial-gradient(ellipse at 50% 70%, rgba(52, 118, 74, 0.12), transparent 68%);
  transform: translateX(-50%) rotateX(64deg);
  transform-origin: center;
  filter: blur(1px);
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.skip-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #49708f;
  background: rgba(255, 255, 255, 0.72);
}

.splash-runway {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 700px;
}

.speed-line {
  position: absolute;
  left: -36%;
  width: 176px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(58, 141, 255, 0.34), rgba(255, 122, 0, 0.44), transparent);
  filter: blur(0.2px);
  opacity: 0;
  animation: speedDash 1.45s cubic-bezier(.22, .88, .24, 1) both;
}

.line-a {
  top: 37%;
  animation-delay: 0.08s;
}

.line-b {
  top: 50%;
  width: 132px;
  animation-delay: 0.18s;
}

.line-c {
  top: 62%;
  width: 206px;
  animation-delay: 0.3s;
}

.dust {
  position: absolute;
  left: 18%;
  bottom: 18%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 159, 46, 0.36);
  box-shadow:
    28px -8px 0 rgba(255, 214, 90, 0.24),
    52px 4px 0 rgba(47, 190, 114, 0.16);
  opacity: 0;
  filter: blur(1px);
  animation: dustPuff 1.62s ease-out both;
}

.dust-a {
  animation-delay: 0.36s;
}

.dust-b {
  left: 30%;
  bottom: 16%;
  transform: scale(0.72);
  animation-delay: 0.52s;
}

.dust-c {
  left: 42%;
  bottom: 15%;
  transform: scale(0.56);
  animation-delay: 0.68s;
}

.splash-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sun {
  position: absolute;
  width: 78px;
  height: 78px;
  left: 50px;
  top: 78px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 16px rgba(255, 214, 90, 0.2);
  animation: rise 2.8s ease both;
}

.cloud {
  position: absolute;
  width: 86px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  animation: drift 5s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 34px;
  height: 34px;
  left: 16px;
  top: -18px;
}

.cloud::after {
  width: 44px;
  height: 44px;
  right: 14px;
  top: -25px;
}

.cloud-a {
  top: 92px;
  right: 44px;
}

.cloud-b {
  width: 68px;
  top: 196px;
  left: 28px;
  animation-delay: 0.9s;
}

.splash-map {
  width: min(330px, 86vw);
  padding: 20px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  z-index: 1;
}

.splash-map.mini {
  width: min(300px, 76vw);
  margin-top: -10px;
  padding: 14px;
  border-radius: 28px;
  transform: rotate(-2deg);
}

.splash-mascot {
  width: min(390px, 92vw);
  height: min(390px, 92vw);
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
  transform-style: preserve-3d;
  animation: squirrelRunIn 2.18s cubic-bezier(.16, .9, .18, 1) both;
}

.splash-mascot::after {
  content: "";
  position: absolute;
  left: 48%;
  bottom: 10px;
  width: 218px;
  height: 24px;
  border-radius: 50%;
  background: rgba(134, 78, 34, 0.18);
  filter: blur(6px);
  transform: translateX(-50%);
  animation: runnerShadow 2.18s cubic-bezier(.16, .9, .18, 1) both, shadowHop 1.55s ease-in-out 2.18s infinite;
}

.squirrel-hero {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: min(370px, 90vw);
  height: min(370px, 90vw);
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 26px rgba(134, 78, 34, 0.28)) drop-shadow(-10px 8px 0 rgba(255, 214, 90, 0.1));
  animation: squirrelSprintBody 2.18s cubic-bezier(.16, .9, .18, 1) both, squirrelHappyHop 1.38s ease-in-out 2.18s infinite;
}

.squirrel-lookout {
  perspective: 700px;
}

.lens-eye {
  position: absolute;
  left: 54%;
  top: 38%;
  z-index: 4;
  width: min(84px, 20vw);
  height: min(84px, 20vw);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 54%, rgba(43, 23, 14, 0.86) 0 24%, rgba(255, 255, 255, 0.7) 25% 30%, transparent 32%);
  mix-blend-mode: multiply;
  opacity: 0.9;
  animation: lensRunBob 2.18s cubic-bezier(.16, .9, .18, 1) both, lensBob 1.38s ease-in-out 2.18s infinite;
}

.lens-eye i {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 28px;
  height: 18px;
  border-radius: 50%;
  background: rgba(20, 12, 10, 0.92);
  box-shadow: 16px -12px 0 -6px rgba(255, 255, 255, 0.9);
  transform-origin: 50% 50%;
  animation: lensBlink 2.2s ease-in-out infinite;
}

.squirrel-spark {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(255, 214, 90, 0.18);
  animation: sparkle 1.8s ease-in-out infinite;
}

.spark-a {
  left: 20px;
  top: 42px;
}

.spark-b {
  right: 26px;
  top: 68px;
  background: var(--green);
  animation-delay: 0.35s;
}

.spark-c {
  right: 54px;
  bottom: 26px;
  background: var(--orange);
  animation-delay: 0.7s;
}

.deer-body {
  position: absolute;
  left: 58px;
  bottom: 18px;
  width: 142px;
  height: 88px;
  border-radius: 54% 48% 42% 48%;
  background: #c98239;
  box-shadow: inset 0 -12px 0 rgba(92, 54, 26, 0.12);
}

.deer-body::before,
.deer-body::after {
  content: "";
  position: absolute;
  bottom: -22px;
  width: 16px;
  height: 38px;
  border-radius: 999px;
  background: #965a2d;
}

.deer-body::before {
  left: 38px;
}

.deer-body::after {
  right: 34px;
}

.body-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 245, 223, 0.75);
}

.dot-a {
  left: 40px;
  top: 20px;
}

.dot-b {
  left: 72px;
  top: 38px;
}

.dot-c {
  right: 32px;
  top: 22px;
}

.deer-head.big {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 120px;
  height: 120px;
  transform: translateX(-50%);
  animation: deerNod 2.4s ease-in-out infinite;
}

.deer-head.big .face {
  inset: 22px 12px 4px;
}

.deer-head.big .ear {
  top: 34px;
  width: 30px;
  height: 38px;
}

.deer-head.big .ear.left {
  left: 6px;
}

.deer-head.big .ear.right {
  right: 6px;
}

.deer-head.big .antlers::before,
.deer-head.big .antlers::after {
  top: 0;
  width: 31px;
  height: 42px;
  border-width: 5px 0 0 5px;
}

.deer-head.big .antlers::before {
  left: 22px;
}

.deer-head.big .antlers::after {
  right: 22px;
}

.deer-head.big .eye {
  top: 40px;
  width: 8px;
  height: 11px;
}

.deer-head.big .eye.left {
  left: 33px;
}

.deer-head.big .eye.right {
  right: 33px;
}

.deer-head.big .nose {
  bottom: 25px;
  width: 14px;
  height: 10px;
}

.scarf {
  position: absolute;
  left: 34px;
  bottom: 2px;
  width: 60px;
  height: 16px;
  border-radius: 999px;
  background: #35c8b4;
  transform: rotate(-4deg);
}

.scarf::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 5px;
  width: 30px;
  height: 12px;
  border-radius: 999px;
  background: #2f94ff;
  transform-origin: left center;
  animation: scarfWave 1.6s ease-in-out infinite;
}

.map-scroll {
  position: absolute;
  right: 22px;
  bottom: 54px;
  width: 58px;
  height: 42px;
  transform: rotate(8deg);
  border-radius: 10px;
  background: #fff7df;
  box-shadow: 0 9px 20px rgba(92, 54, 26, 0.18);
  animation: mapWiggle 2s ease-in-out infinite;
}

.map-scroll span {
  position: absolute;
  left: 12px;
  top: 13px;
  width: 35px;
  height: 18px;
  border-top: 4px dashed #ff9f2e;
  border-bottom: 4px dashed #2fbe72;
}

.splash-map svg {
  width: 100%;
  height: auto;
}

.river {
  stroke: #54b9ff;
  stroke-width: 14;
  opacity: 0.5;
}

.route {
  stroke: #ff7f45;
  stroke-width: 6;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: draw 2.2s ease forwards;
}

.pin {
  fill: #ff615c;
  stroke: #fff;
  stroke-width: 4;
  opacity: 0;
  animation: pop 0.55s ease forwards;
}

.pin-one {
  animation-delay: 0.55s;
}

.pin-two {
  animation-delay: 1.15s;
}

.pin-three {
  animation-delay: 1.75s;
}

.splash-icon {
  fill: #fff;
  stroke-width: 4;
  opacity: 0;
  animation: pop 0.55s ease forwards;
}

.museum {
  color: #3a8dff;
  animation-delay: 0.9s;
}

.park {
  color: #2fbe72;
  animation-delay: 1.5s;
}

.farm {
  color: #ff9f2e;
  animation-delay: 2s;
}

.splash-copy {
  z-index: 1;
  text-align: center;
  margin-top: 24px;
}

.brand-kicker,
.splash-copy p {
  margin: 0;
  color: #52708b;
}

.splash-copy h1 {
  margin: 6px 0 8px;
  font-size: 42px;
  letter-spacing: 0;
}

.slogan {
  display: inline-block;
  margin: 0 0 8px !important;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff !important;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 28px rgba(255, 127, 69, 0.25);
}

.progress {
  width: min(180px, 48vw);
  height: 8px;
  margin-top: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 10px 22px rgba(148, 85, 35, 0.14);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange));
  animation: loading 2.6s ease forwards;
}

.hero {
  margin: 0 -18px;
  padding: 18px 18px 24px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 38px 38px;
  color: #fff;
  background:
    radial-gradient(circle at 17% 20%, rgba(255, 214, 90, 0.42), transparent 19%),
    radial-gradient(circle at 88% 28%, rgba(255, 79, 139, 0.34), transparent 22%),
    radial-gradient(circle at 48% 92%, rgba(138, 114, 255, 0.32), transparent 28%),
    linear-gradient(135deg, rgba(58, 141, 255, 0.96), rgba(47, 190, 114, 0.86) 54%, rgba(255, 159, 46, 0.8)),
    url("data:image/svg+xml,%3Csvg width='420' height='320' viewBox='0 0 420 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,.28)' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M-20 260 C70 210 130 260 220 210 S360 180 440 220'/%3E%3Cpath d='M20 130 C90 100 140 140 210 108 S330 72 414 112'/%3E%3Cpath d='M45 248 l38 -82 34 52 28 -38 43 68'/%3E%3Cpath d='M260 232 h82 v-54 l-41 -28 -41 28z'/%3E%3Cpath d='M285 232 v-34 h32 v34'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  box-shadow: 0 22px 46px rgba(58, 141, 255, 0.18);
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 38px;
  width: 150px;
  height: 150px;
  border-radius: 44% 56% 48% 52%;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(18deg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.topbar p,
.topbar strong {
  display: block;
  margin: 0;
}

.topbar p {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.82;
}

.topbar strong {
  font-size: 23px;
  letter-spacing: 0;
  line-height: 1.18;
}

.icon-btn,
.avatar-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.icon-btn:active,
.avatar-btn:active {
  transform: translateY(1px) scale(0.96);
}

.icon-btn:hover,
.avatar-btn:hover,
.icon-btn.is-active,
.avatar-btn.is-active {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.32);
}

.top-back-btn svg {
  stroke-width: 2.4;
}

.search {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 -10px 20px rgba(255, 255, 255, 0.08);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.weather-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.08), 0 14px 30px rgba(34, 49, 74, 0.1);
}

.weather-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-top: 2px;
  scrollbar-width: none;
}

.weather-actions::-webkit-scrollbar {
  display: none;
}

.weather-actions button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
}

.weather-actions button.active {
  color: #24715d;
  background: #fff;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-main p,
.weather-tip p,
.weather-tip span {
  margin: 0;
}

.weather-main p,
.weather-tip span {
  font-size: 12px;
  opacity: 0.85;
}

.weather-main strong {
  display: block;
  margin-top: 2px;
  font-size: 25px;
}

.weather-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset -8px -8px 0 rgba(255, 159, 46, 0.35);
  position: relative;
}

.weather-icon span {
  position: absolute;
  right: -7px;
  bottom: 7px;
  width: 31px;
  height: 15px;
  border-radius: 999px;
  background: #fff;
}

.weather-icon[data-weather="rainy"] {
  background: #75a7ff;
  box-shadow: inset -8px -8px 0 rgba(58, 141, 255, 0.35);
}

.weather-icon[data-weather="cloudy"] {
  background: #b8d2e8;
  box-shadow: inset -8px -8px 0 rgba(103, 132, 160, 0.22);
}

.weather-icon[data-weather="cloudy"] span,
.weather-icon[data-weather="foggy"] span,
.weather-icon[data-weather="humid"] span,
.weather-icon[data-weather="comfortable"] span {
  width: 35px;
  height: 17px;
  right: -8px;
  bottom: 8px;
}

.weather-icon[data-weather="rainy"]::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: -10px;
  width: 5px;
  height: 14px;
  border-radius: 999px;
  background: #dff4ff;
  box-shadow: 12px 3px 0 #dff4ff, 24px -1px 0 #dff4ff;
}

.weather-icon[data-weather="thunder"] {
  background: #6c83b8;
  box-shadow: inset -8px -8px 0 rgba(36, 55, 98, 0.26);
}

.weather-icon[data-weather="thunder"]::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -14px;
  width: 12px;
  height: 24px;
  background: #ffd75e;
  clip-path: polygon(44% 0, 100% 0, 63% 44%, 100% 44%, 20% 100%, 42% 54%, 0 54%);
}

.weather-icon[data-weather="snowy"] {
  background: #d8efff;
  box-shadow: inset -8px -8px 0 rgba(91, 150, 210, 0.2);
}

.weather-icon[data-weather="snowy"]::after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: -8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 13px 5px 0 #fff, 27px 0 0 #fff;
}

.weather-icon[data-weather="foggy"] {
  background: #cfd9df;
  box-shadow: inset -8px -8px 0 rgba(106, 126, 140, 0.2);
}

.weather-icon[data-weather="foggy"]::after,
.weather-icon[data-weather="humid"]::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -7px;
  width: 50px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 8px 9px 0 rgba(255, 255, 255, 0.58);
}

.weather-icon[data-weather="hot"] {
  background: #ffb13d;
  box-shadow: 0 0 0 10px rgba(255, 214, 90, 0.22), inset -8px -8px 0 rgba(255, 97, 92, 0.3);
}

.weather-icon[data-weather="humid"] {
  background: #9ed9d0;
  box-shadow: inset -8px -8px 0 rgba(47, 154, 144, 0.22);
}

.weather-icon[data-weather="windy"] {
  background: #9ad4ff;
}

.weather-icon[data-weather="windy"]::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 16px;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 10px 12px 0 rgba(255, 255, 255, 0.62);
}

.weather-icon[data-weather="cold"] {
  background: #b8e4ff;
  box-shadow: inset -8px -8px 0 rgba(58, 141, 255, 0.25);
}

.weather-icon[data-weather="comfortable"] {
  background: #abe6b8;
  box-shadow: inset -8px -8px 0 rgba(60, 169, 106, 0.22);
}

.weather-tip p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
}

.weather-scene {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
}

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

.weather-metrics span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #345;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .64);
}

.weather-scene-card {
  display: grid;
  gap: 8px;
  padding: 11px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.weather-scene-card small,
.weather-scene-card strong,
.weather-scene-card p {
  margin: 0;
}

.weather-scene-card small {
  color: rgba(35, 56, 92, .58);
  font-size: 11px;
  font-weight: 900;
}

.weather-scene-card strong {
  display: block;
  margin-top: 2px;
  color: #234;
  font-size: 15px;
}

.weather-scene-card p {
  margin-top: 4px;
  color: rgba(35, 56, 92, .76);
  font-size: 12px;
  line-height: 1.45;
}

.weather-scene-tags,
.weather-scene-places {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.weather-scene-tags::-webkit-scrollbar,
.weather-scene-places::-webkit-scrollbar {
  display: none;
}

.weather-scene-tags em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #2f5847;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  background: rgba(231, 247, 237, .9);
}

.weather-scene-places button {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 7px 9px;
  border-radius: 13px;
  color: #23385c;
  text-align: left;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, .78);
}

.weather-scene-places span {
  display: block;
  margin-top: 2px;
  color: rgba(35, 56, 92, .58);
  font-size: 10px;
  font-weight: 800;
}

.tiny-deer {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -4px;
  margin-right: 5px;
  border-radius: 50% 50% 45% 45%;
  background: #c98239;
  position: relative;
}

.tiny-deer::before,
.tiny-deer::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 7px;
  height: 9px;
  border: solid #8b5a2a;
  border-width: 2px 0 0 2px;
  border-radius: 7px 0 0 0;
}

.tiny-deer::before {
  left: 2px;
  transform: rotate(-18deg);
}

.tiny-deer::after {
  right: 2px;
  transform: rotate(108deg);
}

.tiny-squirrel {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: -5px;
  margin-right: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 36%, #fff1d6 0 22%, transparent 23%), #c97832;
  position: relative;
  box-shadow: inset 0 -3px 0 rgba(95, 52, 23, 0.14);
}

.tiny-squirrel::before {
  content: "";
  position: absolute;
  right: -6px;
  top: -2px;
  width: 13px;
  height: 18px;
  border-radius: 999px;
  background: #d6843a;
  transform: rotate(28deg);
}

.tiny-squirrel::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 3px;
  width: 5px;
  height: 4px;
  border-radius: 50%;
  background: #5d3321;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.category {
  min-height: 88px;
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 214, 90, 0.22), transparent 26%),
    var(--card);
  box-shadow: 0 10px 0 rgba(255, 255, 255, 0.54), 0 16px 28px rgba(35, 56, 92, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category:nth-child(2n) .cat-icon {
  transform: rotate(4deg);
}

.category:nth-child(3n) .cat-icon {
  transform: rotate(-5deg);
}

.category:nth-child(4n) {
  background:
    radial-gradient(circle at 80% 12%, rgba(138, 114, 255, 0.18), transparent 28%),
    var(--card);
}

.category:nth-child(5n) {
  background:
    radial-gradient(circle at 18% 16%, rgba(47, 190, 114, 0.18), transparent 28%),
    var(--card);
}

.category:active,
.subcat-card:active,
.place-card:active {
  transform: scale(0.97);
}

.category small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.category.active {
  border-color: rgba(58, 141, 255, 0.26);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 214, 90, 0.4), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(220, 244, 255, 0.96));
  box-shadow: 0 0 0 3px rgba(255, 159, 46, 0.24), 0 12px 0 rgba(255, 214, 90, 0.22), 0 18px 34px rgba(58, 141, 255, 0.13);
}

.cat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  border-radius: 17px 20px 15px 21px;
  color: #fff;
  box-shadow: inset 0 -7px 0 rgba(34, 49, 74, 0.09), 0 8px 16px rgba(35, 56, 92, 0.12);
}

.color-sun {
  background: var(--yellow);
}

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

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

.color-red {
  background: var(--red);
}

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

.color-purple {
  background: var(--purple);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 6px;
  scrollbar-width: none;
}

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

.chips button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #40506a;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(35, 56, 92, 0.07);
  backdrop-filter: blur(12px);
}

.chips button.active {
  color: #fff;
  background: linear-gradient(135deg, #ff4f8b, var(--orange));
  box-shadow: 0 10px 20px rgba(255, 97, 92, 0.22);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 18px 0 12px;
  position: relative;
}

.section-title p,
.section-title h2 {
  margin: 0;
}

.section-title p {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.section-title h2 {
  margin-top: 4px;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2,
.splash-copy h1,
.topbar strong {
  font-weight: 900;
  color: transparent;
  font-family: var(--font-display);
  background: linear-gradient(90deg, #ff4f8b, #ff9f2e 28%, #22c978 58%, #3a8dff 86%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.92);
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.96),
    0 7px 0 rgba(255, 214, 90, 0.36),
    0 13px 20px rgba(58, 141, 255, 0.18);
  transform-origin: left center;
}

.section-title h2,
.daily-story-card h2 {
  animation: bubbleTitlePop 3.8s ease-in-out infinite;
}

.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2,
.topbar strong {
  font-family: var(--font-display);
  font-weight: 900;
  color: transparent;
  background: linear-gradient(92deg, #ff1f7a 0%, #ff7a00 24%, #ffd000 43%, #12c76f 63%, #008cff 84%, #7a45ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.7px rgba(255, 255, 255, 0.86);
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.95),
    0 5px 0 rgba(255, 204, 0, 0.34),
    0 10px 18px rgba(255, 31, 122, 0.2),
    0 16px 26px rgba(0, 140, 255, 0.18);
  filter: saturate(1.28) contrast(1.06);
}

.topbar strong {
  font-size: 26px;
  line-height: 1.12;
}

.section-title h2 {
  font-size: 31px;
  line-height: 1.02;
}

.map-hero h2,
.category-hero h2,
.wanted-hero h2 {
  font-size: 25px;
  line-height: 1.08;
}

.daily-story-card h2 {
  font-size: 20px;
  line-height: 1.12;
}

.assistant-head h2 {
  font-size: 23px;
  line-height: 1.1;
}

/* Mini-program final override: soft, simple, and touch-friendly. */
body {
  color: var(--mp-text);
  background: var(--mp-bg);
}

.phone-shell {
  width: min(100%, 375px);
  background: linear-gradient(180deg, #fbfff8 0%, var(--mp-bg) 58%, #fff9ed 100%);
}

.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  color: var(--mp-text);
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: none;
}

.topbar strong {
  font-size: 18px;
}

.section-title h2 {
  font-size: 18px;
  line-height: 1.2;
}

.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.assistant-head h2 {
  font-size: 20px;
}

.nav-btn,
.detail-btn,
.map-btn,
.route-btn {
  min-height: 44px;
  border-radius: 12px;
  color: #355746;
  background: #eef8f2;
  box-shadow: none;
}

.detail-btn {
  color: #3d647f;
  background: #e9f5ff;
}

.map-btn {
  color: #765a1e;
  background: #fff1c8;
}

.route-btn {
  color: #285946;
  background: #ddf5e7;
}

.tabbar button.active {
  color: #2f5847;
  background: #e7f7ed;
  box-shadow: none;
}

/* Final override: all major headings use colorful candy bubble lettering. */
.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-weight: 900;
  color: transparent;
  letter-spacing: 0;
  line-height: 1.08;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95) 0 8%, transparent 9% 100%),
    linear-gradient(100deg, #ff7aa8 0%, #58c9f4 21%, #ffd83d 41%, #72cc4e 61%, #9a5bd6 79%, #ff5a92 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2.4px #111111;
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 #111111,
    0 4px 0 rgba(17, 17, 17, 0.72),
    0 7px 0 rgba(255, 255, 255, 0.82),
    0 11px 18px rgba(64, 80, 96, 0.18);
  filter: saturate(1.22) contrast(1.08);
}

.topbar strong {
  font-size: 24px;
}

.section-title h2 {
  font-size: 28px;
}

.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.detail-body h2 {
  font-size: 25px;
}

.daily-story-card h2,
.assistant-head h2 {
  font-size: 21px;
}

/* Clear candy title redesign: bright and rounded, without blurry heavy shadow. */
.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  color: #ff7aa8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0 18%, rgba(255, 255, 255, 0) 19% 100%),
    linear-gradient(100deg, #ff6fa3 0%, #41bff2 23%, #ffd23d 44%, #67c957 65%, #8d63e8 86%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.15px #243044;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96),
    0 2px 0 rgba(36, 48, 68, 0.72),
    0 5px 9px rgba(98, 122, 148, 0.18);
  filter: saturate(1.12);
}

.weather-date {
  display: block;
  margin-top: 2px;
  color: #7d8fa1;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

/* Final override: all major headings use colorful candy bubble lettering. */
.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-weight: 900;
  color: transparent;
  letter-spacing: 0;
  line-height: 1.08;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95) 0 8%, transparent 9% 100%),
    linear-gradient(100deg, #ff7aa8 0%, #58c9f4 21%, #ffd83d 41%, #72cc4e 61%, #9a5bd6 79%, #ff5a92 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2.4px #111111;
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 #111111,
    0 4px 0 rgba(17, 17, 17, 0.72),
    0 7px 0 rgba(255, 255, 255, 0.82),
    0 11px 18px rgba(64, 80, 96, 0.18);
  filter: saturate(1.22) contrast(1.08);
}

.topbar strong {
  font-size: 24px;
}

.section-title h2 {
  font-size: 28px;
}

.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.detail-body h2 {
  font-size: 25px;
}

.daily-story-card h2,
.assistant-head h2 {
  font-size: 21px;
}

/* Candy bubble title style inspired by the provided reference image. */
.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-weight: 900;
  color: transparent;
  letter-spacing: 0;
  line-height: 1.08;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95) 0 8%, transparent 9% 100%),
    linear-gradient(100deg, #ff7aa8 0%, #58c9f4 21%, #ffd83d 41%, #72cc4e 61%, #9a5bd6 79%, #ff5a92 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2.4px #111111;
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 #111111,
    0 4px 0 rgba(17, 17, 17, 0.72),
    0 7px 0 rgba(255, 255, 255, 0.82),
    0 11px 18px rgba(64, 80, 96, 0.18);
  filter: saturate(1.22) contrast(1.08);
}

.topbar strong {
  font-size: 24px;
}

.section-title h2 {
  font-size: 28px;
}

.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.detail-body h2 {
  font-size: 25px;
}

.daily-story-card h2,
.assistant-head h2 {
  font-size: 21px;
}

/* Mini-program final override: soft, simple, and touch-friendly. */
body {
  color: var(--mp-text);
  background: var(--mp-bg);
}

.phone-shell {
  width: min(100%, 375px);
  background: linear-gradient(180deg, #fbfff8 0%, var(--mp-bg) 58%, #fff9ed 100%);
}

.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  color: var(--mp-text);
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: none;
}

.topbar strong {
  font-size: 18px;
}

.section-title h2 {
  font-size: 18px;
  line-height: 1.2;
}

.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.assistant-head h2 {
  font-size: 20px;
}

.nav-btn,
.detail-btn,
.map-btn,
.route-btn {
  min-height: 44px;
  border-radius: 12px;
  color: #355746;
  background: #eef8f2;
  box-shadow: none;
}

.detail-btn {
  color: #3d647f;
  background: #e9f5ff;
}

.map-btn {
  color: #765a1e;
  background: #fff1c8;
}

.route-btn {
  color: #285946;
  background: #ddf5e7;
}

.tabbar button.active {
  color: #2f5847;
  background: #e7f7ed;
  box-shadow: none;
}

/* Mini-program design draft: soft macaron, 375px mobile-first, large tap targets. */
:root {
  --mp-bg: #f6fbf4;
  --mp-surface: #ffffff;
  --mp-primary: #78cfa6;
  --mp-accent: #ffd978;
  --mp-soft: #9bcfff;
  --mp-pink: #ffb7c8;
  --mp-text: #243044;
  --mp-muted: #708094;
  --mp-border: rgba(72, 97, 122, 0.1);
  --mp-shadow: 0 10px 24px rgba(93, 132, 112, 0.12);
}

body {
  color: var(--mp-text);
  background: var(--mp-bg);
}

.phone-shell {
  width: min(100%, 375px);
  background: linear-gradient(180deg, #fbfff8 0%, var(--mp-bg) 58%, #fff9ed 100%);
  box-shadow: 0 18px 50px rgba(73, 108, 98, 0.16);
}

.app {
  padding: 0 16px calc(104px + env(safe-area-inset-bottom));
}

.app::before {
  display: none;
}

.hero {
  margin: 0 -16px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 18px;
  border-radius: 0 0 18px 18px;
  color: var(--mp-text);
  background:
    linear-gradient(135deg, rgba(120, 207, 166, 0.24), rgba(255, 217, 120, 0.26)),
    #fbfff7;
  box-shadow: 0 8px 22px rgba(93, 132, 112, 0.1);
}

.hero::after {
  display: none;
}

.topbar p {
  color: var(--mp-muted);
  font-size: 12px;
}

.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  color: var(--mp-text);
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: none;
}

.topbar strong {
  font-size: 18px;
}

.icon-btn,
.avatar-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  color: #4d7964;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 16px rgba(93, 132, 112, 0.1);
}

.search {
  height: 48px;
  margin: 14px 0 12px;
  color: #6f8596;
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow);
}

.search input::placeholder {
  color: #9aa8b5;
}

.weather-card,
.daily-story-card,
.place-card,
.directory-card,
.subcat-card,
.want-card,
.detail-sheet,
.assistant-sheet {
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow);
}

.weather-card {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
}

.weather-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.weather-actions button,
.chips button,
.category,
.text-btn,
.back-card,
.subcat-card,
.directory-head,
.directory-tags button,
.score-tabs span,
.detail-actions button,
.assistant-prompts button,
.ask-box button,
.empty-state button {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
}

.weather-actions button {
  padding: 0 4px;
  color: #5e7387;
  background: #f3f8f4;
}

.weather-actions button.active,
.chips button.active,
.category.active {
  color: #2f5847;
  background: #e7f7ed;
  box-shadow: inset 0 0 0 2px rgba(120, 207, 166, 0.42);
}

.quick-panel {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.category {
  min-height: 86px;
  padding: 10px 6px;
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  color: var(--mp-text);
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow);
}

.cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.chips {
  gap: 8px;
  margin: 12px 0;
}

.chips button {
  color: #5d7184;
  background: #fffdf7;
  border: 1px solid var(--mp-border);
}

.section-title {
  margin: 18px 0 12px;
}

.section-title p {
  color: #5b9c7b;
  font-size: 12px;
}

.section-title h2 {
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.2;
}

.text-btn {
  min-width: 86px;
  color: #375c4c;
  background: var(--mp-accent);
  box-shadow: 0 8px 18px rgba(255, 217, 120, 0.28);
}

.place-card {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.place-art {
  height: 128px;
  border-radius: 12px 12px 0 0;
}

.place-content {
  padding: 12px;
}

.place-content h3 {
  color: var(--mp-text);
  font-size: 16px;
}

.place-content p {
  color: #5d6d7d;
  font-size: 13px;
  line-height: 1.48;
}

.tags {
  gap: 6px;
}

.tags span,
.detail-tags span {
  min-height: 24px;
  padding: 4px 8px;
  color: #5c7180;
  border-radius: 999px;
  background: #f3f8f4;
}

.meta-row {
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-row span {
  flex: 1 1 100%;
  font-size: 12px;
}

.card-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nav-btn {
  min-width: 0;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 13px;
}

.detail-btn {
  color: #3d647f;
  background: #e9f5ff;
}

.map-btn {
  color: #765a1e;
  background: #fff1c8;
}

.route-btn {
  color: #285946;
  background: #ddf5e7;
}

.tabbar {
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 351px);
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--mp-border);
  box-shadow: 0 10px 28px rgba(93, 132, 112, 0.16);
}

.tabbar button {
  min-height: 50px;
  border-radius: 12px;
  color: #7d8b9a;
}

.tabbar button.active {
  color: #2f5847;
  background: #e7f7ed;
  box-shadow: none;
}

.tabbar svg {
  font-size: 18px;
}

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

.deer-float {
  bottom: calc(88px + env(safe-area-inset-bottom));
}

.detail-actions {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
}

.detail-actions button {
  height: 44px;
  color: #355746;
  background: #fff1c8;
}

.detail-actions button:nth-child(2) {
  color: #3d647f;
  background: #e9f5ff;
}

.detail-actions button:last-child {
  color: #285946;
  background: #ddf5e7;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  text-align: center;
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow);
}

.empty-state img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state h3 {
  color: var(--mp-text);
  font-size: 18px;
}

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

.empty-state button {
  padding: 0 18px;
  color: #2f5847;
  background: #e7f7ed;
}

.mini-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 20px 0 4px;
  color: #8a98a5;
  font-size: 12px;
}

.mini-legal button {
  min-height: 44px;
  padding: 0 4px;
  color: inherit;
  background: transparent;
}

.mini-legal span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c6d0d8;
}

@media (max-width: 380px) {
  .app {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 116px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--green));
  opacity: 0.72;
  transform: rotate(-2deg);
}

.text-btn {
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff4f8b, #ff9f2e);
  box-shadow: 0 10px 0 rgba(255, 214, 90, 0.22), 0 14px 24px rgba(255, 97, 92, 0.2);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subcat-view {
  grid-column: 1 / -1;
}

.subcat-view {
  display: grid;
  gap: 12px;
}

.back-card {
  min-height: 58px;
  border-radius: 24px 19px 25px 20px;
  color: #fff;
  font-weight: 800;
  text-align: left;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 0 rgba(255, 255, 255, 0.52), 0 16px 30px rgba(58, 141, 255, 0.14);
}

.back-card.all-card {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.level-back {
  grid-column: 1 / -1;
}

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

.subcat-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 25px 21px 26px 20px;
  color: var(--ink);
  text-align: left;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 214, 90, 0.28), transparent 30%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 0 rgba(255, 255, 255, 0.58), 0 16px 30px rgba(35, 56, 92, 0.09);
  backdrop-filter: blur(10px);
}

.subcat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-size: 20px;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.subcat-card:nth-child(2n) .subcat-icon {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.subcat-card strong {
  font-size: 17px;
}

.subcat-card small {
  color: var(--muted);
  font-size: 12px;
}

.map-view,
.category-view,
.wanted-view,
.saved-empty {
  grid-column: 1 / -1;
}

.map-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(58, 141, 255, 0.94), rgba(47, 190, 114, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(255, 214, 90, 0.45), transparent 30%);
  box-shadow: 0 16px 32px rgba(58, 141, 255, 0.2);
}

.map-hero p,
.map-hero h2,
.map-hero span {
  margin: 0;
}

.map-hero p {
  font-size: 13px;
  opacity: 0.9;
}

.map-hero h2 {
  margin: 3px 0;
  font-size: 22px;
}

.map-hero span {
  font-size: 12px;
  opacity: 0.86;
}

.map-hero button {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--blue);
  font-weight: 800;
  background: #fff;
}

.map-stage {
  aspect-ratio: 1647 / 1068;
  max-height: 430px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #dff1f0;
  box-shadow: inset 0 -30px 60px rgba(58, 141, 255, 0.08);
}

.map-stage.is-draggable {
  cursor: grab;
  touch-action: none;
}

.map-stage.is-dragging {
  cursor: grabbing;
}

.taiyuan-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: translate(var(--map-pan-x, 0), var(--map-pan-y, 0)) scale(var(--map-zoom, 1));
  transform-origin: center;
  transition: transform 0.22s ease;
}

.map-stage.is-dragging .taiyuan-map {
  transition: none;
}

.taiyuan-map-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.08);
  box-shadow: none;
}

.map-zoom-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(35, 56, 92, 0.16);
  backdrop-filter: blur(10px);
}

.map-zoom-controls button,
.map-zoom-controls span {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #29405b;
  font-size: 13px;
  font-weight: 900;
  background: #f3f8ff;
}

.map-zoom-controls button {
  cursor: pointer;
}

.map-zoom-controls button:hover {
  background: #3a8dff;
  color: #fff;
}

.map-zoom-controls span {
  min-width: 48px;
  background: transparent;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 8;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%) scale(var(--map-pin-scale, 1));
  transform-origin: center;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  animation: pinPop 0.65s ease both;
  animation-delay: var(--delay);
}

.map-pin::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pin), transparent 62%);
  filter: blur(1px);
  animation: mapGlow 1.8s ease-in-out infinite;
}

.pin-dot {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: block;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--pin);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--pin), transparent 72%), 0 8px 18px rgba(35, 56, 92, 0.22);
}

.map-pin::after {
  display: none;
}

.map-pin.is-glowing .pin-dot {
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.7), 0 0 28px var(--pin), 0 8px 18px rgba(35, 56, 92, 0.22);
}

.pin-高::after {
  height: 48px;
}

.pin-低::after {
  height: 24px;
}

.map-pin strong,
.map-pin small {
  position: absolute;
  left: 25px;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 16px rgba(35, 56, 92, 0.12);
}

.map-pin strong {
  top: -2px;
  font-size: 11px;
}

.map-pin small {
  top: 19px;
  color: var(--muted);
  font-size: 9px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #40506a;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  box-shadow: 0 8px 20px rgba(35, 56, 92, 0.08);
}

.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legend-color);
}

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

.map-clusters article,
.saved-empty {
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 56, 92, 0.08);
}

.map-clusters strong,
.map-clusters span {
  display: block;
}

.map-clusters span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.saved-empty {
  text-align: center;
}

.saved-empty h3,
.saved-empty p {
  margin: 6px 0 0;
}

.saved-empty p {
  color: var(--muted);
  font-size: 13px;
}

.category-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 159, 46, 0.94), rgba(255, 97, 92, 0.92)),
    radial-gradient(circle at 86% 18%, rgba(255, 214, 90, 0.4), transparent 30%);
  box-shadow: 0 16px 32px rgba(255, 118, 74, 0.18);
}

.category-hero p,
.category-hero h2,
.category-hero span {
  margin: 0;
}

.category-hero p {
  font-size: 13px;
  opacity: 0.9;
}

.category-hero h2 {
  margin: 3px 0;
  font-size: 22px;
}

.category-hero span {
  font-size: 12px;
  opacity: 0.86;
}

.category-hero button {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--red);
  font-weight: 800;
  background: #fff;
}

.category-directory {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.directory-card {
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(35, 56, 92, 0.09);
  border-left: 6px solid var(--dir-color);
}

.directory-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.directory-head span {
  font-size: 19px;
  font-weight: 900;
}

.directory-head small {
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  background: var(--dir-color);
}

.directory-card p {
  margin: 6px 0 11px;
  color: var(--muted);
  font-size: 13px;
}

.directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-tags button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #3e5068;
  font-size: 12px;
  font-weight: 800;
  background: #f1f7ff;
}

.directory-tags em {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-size: 10px;
  background: var(--dir-color);
}

.wanted-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(138, 114, 255, 0.94), rgba(255, 97, 92, 0.92)),
    radial-gradient(circle at 84% 18%, rgba(255, 214, 90, 0.42), transparent 30%);
  box-shadow: 0 16px 32px rgba(138, 114, 255, 0.18);
}

.wanted-hero p,
.wanted-hero h2,
.wanted-hero span {
  margin: 0;
}

.wanted-hero p {
  font-size: 13px;
  opacity: 0.9;
}

.wanted-hero h2 {
  margin: 3px 0;
  font-size: 22px;
}

.wanted-hero span {
  font-size: 12px;
  opacity: 0.86;
}

.wanted-hero button {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--purple);
  font-weight: 800;
  background: #fff;
}

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

.score-tabs span {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 9px;
  border-radius: 18px;
  color: #53627a;
  font-size: 11px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(35, 56, 92, 0.08);
}

.score-tabs strong {
  color: #ff9f2e;
  font-size: 14px;
}

.want-list {
  display: grid;
  gap: 12px;
}

.want-card {
  display: grid;
  grid-template-columns: 30px 92px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(35, 56, 92, 0.09);
}

.want-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.want-card img {
  width: 92px;
  height: 82px;
  object-fit: cover;
  border-radius: 16px;
}

.want-content {
  min-width: 0;
}

.want-top {
  display: grid;
  gap: 3px;
}

.want-top h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.star-score {
  color: #ff9f2e;
  font-size: 13px;
  font-weight: 900;
}

.star-2 {
  color: #3a8dff;
}

.star-1 {
  color: #8a72ff;
}

.want-content p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.want-content small,
.want-content em {
  display: block;
  font-size: 11px;
}

.want-content small {
  color: #334861;
  font-weight: 800;
}

.want-content em {
  margin-top: 3px;
  color: #8a94a8;
  font-style: normal;
}

.place-card {
  display: block;
  min-height: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px 19px 25px 20px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(255, 214, 90, 0.64), rgba(58, 141, 255, 0.34)) border-box;
  box-shadow: 0 10px 0 rgba(58, 141, 255, 0.06), 0 16px 30px rgba(35, 56, 92, 0.1);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.place-card:nth-child(4n + 2) {
  transform: rotate(0.7deg);
}

.place-card:nth-child(4n + 3) {
  transform: rotate(-0.7deg);
}

.place-card:active {
  transform: scale(0.98);
}

.place-art {
  position: relative;
  overflow: hidden;
  background: var(--art-bg);
  height: 104px;
}

.place-art svg {
  width: 100%;
  height: 100%;
  min-height: 146px;
  stroke: rgba(255, 255, 255, 0.9);
}

.place-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
}

.place-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(34, 49, 74, 0.18));
}

.place-content {
  min-width: 0;
  padding: 10px 10px 11px;
}

.place-content h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.22;
  min-height: 37px;
  color: #163153;
}

.place-content p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 22px;
  overflow: hidden;
}

.tags span {
  padding: 3px 6px;
  border-radius: 999px;
  color: #47607a;
  font-size: 10px;
  background: #eef7ff;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}

.meta-row span {
  color: #24344e;
  font-size: 10px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-btn {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  background: var(--green);
}

.detail-btn {
  background: var(--blue);
}

.map-btn {
  background: var(--orange);
}

.route-btn {
  background: linear-gradient(135deg, var(--green), #13a8ff);
}

.daily-story-card {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  margin: 12px 18px 16px;
  padding: 14px 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 27px 22px 30px 22px;
  color: #26344f;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 214, 90, 0.55), transparent 25%),
    linear-gradient(135deg, rgba(255, 248, 218, 0.98), rgba(207, 241, 255, 0.95) 52%, rgba(231, 255, 220, 0.95));
  background-size: cover;
  box-shadow: 0 12px 0 rgba(255, 255, 255, 0.52), 0 20px 36px rgba(54, 122, 172, 0.16);
  animation: storyFloat 4.8s ease-in-out infinite;
}

.daily-story-card::before {
  content: "";
  position: absolute;
  right: 58px;
  bottom: -34px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(255, 133, 69, 0.16);
}

.story-icon {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 -8px 18px rgba(255, 160, 70, 0.12);
}

.story-icon img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  transform-origin: 50% 86%;
  animation: mascotHello 2.8s ease-in-out infinite;
}

.story-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.daily-story-card p,
.daily-story-card h2 {
  margin: 0;
}

.daily-story-card p {
  color: #ff7b29;
  font-size: 12px;
  font-weight: 800;
}

.daily-story-card h2 {
  margin: 3px 0 4px;
  color: #132642;
  font-size: 18px;
  line-height: 1.2;
}

.daily-story-card span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #52647e;
  font-size: 12px;
  line-height: 1.45;
}

.daily-story-card button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff9f2e, #ff615c);
  box-shadow: 0 8px 18px rgba(255, 112, 68, 0.24);
}

@keyframes storyFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes mascotHello {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0) scale(1);
  }
  42% {
    transform: rotate(4deg) translateY(-3px) scale(1.04);
  }
  64% {
    transform: rotate(-3deg) translateY(1px) scale(0.99);
  }
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 8;
  width: min(calc(100% - 28px), 402px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 0 rgba(255, 255, 255, 0.52), 0 18px 45px rgba(35, 56, 92, 0.16);
  backdrop-filter: blur(16px);
}

.tabbar button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 54px;
  padding: 8px 4px 7px;
  color: #708098;
  border-radius: 16px;
  background: transparent;
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.tabbar button:active {
  transform: translateY(1px) scale(0.97);
}

.tabbar button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: inset 0 -6px 0 rgba(34, 49, 74, 0.1), 0 8px 18px rgba(58, 141, 255, 0.22);
}

.tabbar svg {
  font-size: 19px;
}

.tabbar span {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.deer-float {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 96px;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  animation: float 2.8s ease-in-out infinite;
}

.deer-bubble {
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(255, 159, 46, 0.32);
}

.squirrel-float {
  gap: 6px;
  transform-origin: right bottom;
}

.squirrel-bubble {
  background: linear-gradient(135deg, var(--orange), var(--red));
  transform-origin: right center;
  animation: bubblePulse 2.8s ease-in-out infinite;
}

.squirrel-orb {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: #fff4dc;
  box-shadow: 0 15px 30px rgba(148, 85, 35, 0.22);
  overflow: hidden;
  transform-origin: center bottom;
  animation: squirrelOrbDance 3s ease-in-out infinite;
}

.squirrel-orb::after {
  content: "";
  position: absolute;
  inset: auto -12px -14px 10px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 159, 46, 0.36);
}

.squirrel-orb::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 159, 46, 0.4);
  animation: assistantRing 2s ease-in-out infinite;
}

.squirrel-orb img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  object-position: center 28%;
  transform: translateY(4px);
  position: relative;
  z-index: 2;
}

.orbit {
  position: absolute;
  inset: 4px;
  z-index: 1;
  border-radius: 50%;
  border: 1px dashed rgba(255, 159, 46, 0.55);
  animation: orbitSpin 5s linear infinite;
}

.orbit-b {
  inset: 10px;
  border-color: rgba(47, 190, 114, 0.45);
  animation-direction: reverse;
  animation-duration: 6.5s;
}

.sparkle-dot {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(255, 214, 90, 0.22);
  animation: sparkle 1.35s ease-in-out infinite;
}

.squirrel-float.is-tapping {
  animation: assistantTap 0.48s ease both;
}

.mini-squirrel {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #fff4dc;
  box-shadow: inset 0 -4px 0 rgba(148, 85, 35, 0.12);
}

.mini-squirrel img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  object-position: center 27%;
  transform: translate(-7px, 2px);
}

.deer,
.mini-deer {
  width: 58px;
  height: 58px;
  position: relative;
  display: block;
}

.mini-deer {
  width: 48px;
  height: 48px;
}

.face {
  position: absolute;
  inset: 9px 5px 3px;
  border-radius: 52% 52% 45% 45%;
  background: #d89143;
  box-shadow: inset 0 -8px 0 rgba(120, 75, 31, 0.12);
}

.face::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 25px;
  height: 17px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fff5df;
}

.ear {
  position: absolute;
  top: 14px;
  width: 17px;
  height: 21px;
  border-radius: 70% 20% 70% 20%;
  background: #bf7932;
}

.ear.left {
  left: 2px;
  transform: rotate(-25deg);
}

.ear.right {
  right: 2px;
  transform: rotate(115deg);
}

.antlers::before,
.antlers::after {
  content: "";
  position: absolute;
  top: 0;
  width: 16px;
  height: 20px;
  border: solid #8b5a2a;
  border-width: 3px 0 0 3px;
  border-radius: 10px 0 0 0;
}

.antlers::before {
  left: 12px;
  transform: rotate(-18deg);
}

.antlers::after {
  right: 12px;
  transform: rotate(108deg);
}

.eye {
  position: absolute;
  top: 18px;
  width: 5px;
  height: 7px;
  border-radius: 50%;
  background: #222;
  animation: blink 4s infinite;
}

.eye.left {
  left: 16px;
}

.eye.right {
  right: 16px;
}

.nose {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 8px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #3a2620;
}

.assistant-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(25, 35, 52, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.assistant-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 28;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(25, 35, 52, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.detail-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-sheet {
  width: min(100%, 430px);
  max-height: 88vh;
  position: relative;
  overflow-y: auto;
  border-radius: 30px 30px 22px 22px;
  background: #fffaf4;
  box-shadow: var(--shadow);
  transform: translateY(24px);
  transition: transform 0.22s ease;
}

.detail-panel.open .detail-sheet {
  transform: translateY(0);
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: rgba(34, 49, 74, 0.28);
  backdrop-filter: blur(12px);
}

.detail-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, #eaf7ff, #fffaf4);
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.detail-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 76%;
  min-height: 210px;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--art-bg);
  scroll-snap-align: center;
}

.gallery-slide svg {
  width: 100%;
  height: 210px;
  stroke-width: 3;
}

.gallery-slide img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}

.gallery-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(34, 49, 74, 0.34));
}

.gallery-slide span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  background: rgba(34, 49, 74, 0.28);
  backdrop-filter: blur(10px);
}

.detail-body {
  padding: 8px 18px 20px;
}

.detail-kicker,
.detail-desc {
  margin: 0;
  color: var(--muted);
}

.detail-kicker {
  font-size: 13px;
  font-weight: 700;
}

.detail-body h2 {
  margin: 6px 0 8px;
  font-size: 25px;
  letter-spacing: 0;
}

.detail-desc {
  font-size: 14px;
  line-height: 1.55;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0;
}

.detail-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #3f5873;
  font-size: 12px;
  background: #eef7ff;
}

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

.info-grid div {
  min-height: 76px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(35, 56, 92, 0.07);
}

.info-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.info-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
}

.detail-section {
  margin-top: 18px;
}

.detail-section h3 {
  margin: 0 0 9px;
  font-size: 17px;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.lulu-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 18px;
  background: #fff3da;
}

.lulu-note .tiny-squirrel {
  flex: 0 0 auto;
  margin-top: 2px;
}

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

.action-grid button {
  min-height: 42px;
  border-radius: 15px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.relic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.relic-grid span {
  padding: 8px 10px;
  border-radius: 14px;
  color: #8a4a17;
  font-size: 13px;
  font-weight: 700;
  background: #fff1d7;
}

.detail-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 10px;
  margin: 18px -18px -20px;
  padding: 12px 18px;
  background: rgba(255, 250, 244, 0.9);
  backdrop-filter: blur(12px);
}

.detail-actions button {
  height: 46px;
  border-radius: 17px;
  color: #fff;
  font-weight: 700;
  background: var(--orange);
}

.detail-actions button:last-child {
  background: linear-gradient(135deg, var(--green), #13a8ff);
}

.detail-actions button:nth-child(2) {
  background: var(--blue);
}

.assistant-sheet {
  width: min(100%, 430px);
  max-height: 84vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  border-radius: 30px 30px 22px 22px;
  overflow: hidden;
  background: #fffaf4;
  box-shadow: var(--shadow);
  transform: translateY(24px);
  transition: transform 0.22s ease;
}

.assistant-panel.open .assistant-sheet {
  transform: translateY(0);
}

.assistant-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.assistant-head p,
.assistant-head h2 {
  margin: 0;
}

.assistant-head p {
  font-size: 12px;
  opacity: 0.84;
}

.assistant-head h2 {
  font-size: 21px;
}

.assistant-head > div:nth-child(2) {
  min-width: 0;
}

.assistant-new-chat {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 10px;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
}

.assistant-head .close-btn {
  flex: 0 0 auto;
  margin-left: 0;
}

.close-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.assistant-prompts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px 8px;
  scrollbar-width: none;
}

.assistant-prompts::-webkit-scrollbar {
  display: none;
}

.assistant-prompts button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  color: #35506a;
  background: #fff;
  box-shadow: 0 7px 18px rgba(35, 56, 92, 0.08);
}

.chat {
  overflow-y: auto;
  padding: 8px 16px 14px;
}

.msg {
  max-width: 86%;
  margin: 8px 0;
  padding: 11px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.msg p {
  margin: 0;
}

.msg > * + * {
  margin-top: 8px;
}

.msg h1,
.msg h2,
.msg h3,
.msg h4 {
  margin: 0;
  color: #24364d;
  font-size: 15px;
  line-height: 1.35;
}

.msg ul,
.msg ol {
  margin: 8px 0 0;
  padding-left: 18px;
}

.msg li + li {
  margin-top: 4px;
}

.msg a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.msg code {
  padding: 1px 5px;
  border-radius: 7px;
  color: #1d3f5f;
  background: #eef6fb;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.msg pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 8px 0 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: #eef6fb;
}

.msg pre code {
  padding: 0;
  background: transparent;
  white-space: pre;
}

.msg blockquote {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 3px solid #c6dde9;
  color: var(--muted);
}

.msg.typing::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  border-radius: 4px;
  background: #8ba0b3;
  animation: typingCursor 0.8s steps(2, start) infinite;
}

.msg.ai {
  color: #35465d;
  background: #fff;
}

.msg.user {
  margin-left: auto;
  color: #fff;
  background: var(--blue);
}

.msg-actions {
  max-width: 86%;
  display: flex;
  gap: 8px;
  margin: -2px 0 8px;
  padding-left: 4px;
}

.msg-actions button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d8e4ef;
  border-radius: 999px;
  background: #ffffff;
  color: #4f6478;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(35, 56, 92, .08);
}

.msg-actions button:active {
  transform: translateY(1px);
}

.mini-result {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mini-result article {
  padding: 10px;
  border-radius: 16px;
  background: #f2fbff;
}

.mini-result h4,
.mini-result p {
  margin: 0;
}

.mini-result h4 {
  font-size: 14px;
}

.mini-result p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ask-box {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
}

.ask-box input {
  min-width: 0;
  flex: 1;
  height: 44px;
  border: 0;
  outline: 0;
  border-radius: 16px;
  padding: 0 13px;
  background: #f1f6fb;
}

.ask-box button {
  padding: 0 16px;
  border-radius: 16px;
  color: #fff;
  background: var(--green);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes typingCursor {
  50% {
    opacity: 0;
  }
}

@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  80% {
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes drift {
  50% {
    transform: translateX(18px);
  }
}

@keyframes loading {
  from {
    width: 8%;
  }
  to {
    width: 100%;
  }
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.12);
  }
}

@keyframes squirrelBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) rotate(2deg);
  }
}

@keyframes squirrelPeekIn {
  0% {
    opacity: 0;
    transform: translateY(112px) scale(0.68) rotate(-10deg);
  }
  42% {
    opacity: 1;
    transform: translateY(24px) scale(1.02) rotate(5deg);
  }
  62% {
    opacity: 1;
    transform: translateY(-14px) scale(1.08) rotate(-4deg);
  }
  82% {
    transform: translateY(7px) scale(0.98) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes squirrelRunIn {
  0% {
    opacity: 0;
    transform: translate3d(-132vw, 92px, -120px) rotateY(-34deg) rotateZ(-13deg) scale(0.62);
  }
  18% {
    opacity: 1;
    transform: translate3d(-78vw, 48px, -70px) rotateY(-24deg) rotateZ(10deg) scale(0.76);
  }
  42% {
    transform: translate3d(-25vw, -6px, 18px) rotateY(-10deg) rotateZ(-9deg) scale(1.02);
  }
  60% {
    transform: translate3d(5vw, -42px, 34px) rotateY(8deg) rotateZ(7deg) scale(1.1);
  }
  76% {
    transform: translate3d(0, 16px, 0) rotateY(-4deg) rotateZ(-4deg) scale(0.98);
  }
  88% {
    transform: translate3d(0, -10px, 8px) rotateY(3deg) rotateZ(2deg) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0) rotateZ(0) scale(1);
  }
}

@keyframes squirrelSprintBody {
  0% {
    transform: translateX(-50%) translateY(16px) rotate(-15deg) scale(0.94);
  }
  18% {
    transform: translateX(calc(-50% - 12px)) translateY(-18px) rotate(16deg) scale(1.02);
  }
  36% {
    transform: translateX(calc(-50% + 10px)) translateY(14px) rotate(-13deg) scale(0.98);
  }
  54% {
    transform: translateX(calc(-50% - 7px)) translateY(-34px) rotate(12deg) scale(1.04);
  }
  72% {
    transform: translateX(calc(-50% + 5px)) translateY(8px) rotate(-8deg) scale(1);
  }
  100% {
    transform: translateX(-50%) translateY(0) rotate(-3deg) scale(1);
  }
}

@keyframes squirrelHappyHop {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-3deg) scale(1);
  }
  30% {
    transform: translateX(calc(-50% - 4px)) translateY(-26px) rotate(7deg) scale(1.035);
  }
  58% {
    transform: translateX(calc(-50% + 5px)) translateY(4px) rotate(-6deg) scale(0.995);
  }
  76% {
    transform: translateX(-50%) translateY(-10px) rotate(3deg) scale(1.02);
  }
}

@keyframes runnerShadow {
  0% {
    opacity: 0;
    transform: translateX(-220%) scale(0.34);
  }
  28% {
    opacity: 0.2;
    transform: translateX(-155%) scale(0.48);
  }
  58% {
    opacity: 0.46;
    transform: translateX(-42%) scale(0.86);
  }
  78% {
    opacity: 0.34;
    transform: translateX(-50%) scale(0.68);
  }
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes shadowHop {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.55;
  }
  38% {
    transform: translateX(-50%) scale(0.72);
    opacity: 0.24;
  }
}

@keyframes speedDash {
  0% {
    opacity: 0;
    transform: translate3d(0, 28px, 0) rotate(-10deg) scaleX(0.45);
  }
  16% {
    opacity: 0.85;
  }
  72% {
    opacity: 0.75;
    transform: translate3d(128vw, -18px, 0) rotate(-10deg) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(148vw, -24px, 0) rotate(-10deg) scaleX(0.28);
  }
}

@keyframes dustPuff {
  0% {
    opacity: 0;
    transform: translate3d(-42px, 12px, 0) scale(0.2);
  }
  28% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate3d(80px, -18px, 0) scale(1.45);
  }
}

@keyframes lensRunBob {
  0% {
    transform: translate(-86%, -26%) scale(0.72) rotate(-8deg);
    opacity: 0;
  }
  38% {
    opacity: 0.75;
    transform: translate(-64%, -56%) scale(1.03) rotate(6deg);
  }
  72% {
    opacity: 0.9;
    transform: translate(-48%, -42%) scale(0.96) rotate(-4deg);
  }
  100% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
}

@keyframes lensBob {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  38% {
    transform: translate(-50%, calc(-50% - 8px)) scale(1.08);
  }
}

@keyframes lensBlink {
  0%,
  82%,
  100% {
    transform: scaleY(1);
  }
  88%,
  92% {
    transform: scaleY(0.12);
  }
}

@keyframes spotlightPulse {
  0%,
  100% {
    opacity: 0.75;
    transform: translateX(-50%) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(0.78);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes mapWiggle {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }
  50% {
    transform: rotate(13deg) translateY(-5px);
  }
}

@keyframes mapFloat {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: none;
  }
}

@keyframes flatMapRotate {
  from {
    transform: none;
  }
  to {
    transform: none;
  }
}

@keyframes mapGlow {
  0%,
  100% {
    transform: scale(0.72);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.22);
    opacity: 0.92;
  }
}

@keyframes pinPop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(calc(var(--map-pin-scale, 1) * 0.5));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--map-pin-scale, 1));
  }
}

@keyframes squirrelOrbDance {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  35% {
    transform: translateY(-8px) rotate(4deg);
  }
  70% {
    transform: translateY(-2px) rotate(-6deg);
  }
}

@keyframes assistantRing {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.85;
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bubblePulse {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(-4px) scale(1.04);
  }
}

@keyframes bubbleTitlePop {
  0%,
  100% {
    transform: rotate(-0.7deg) translateY(0);
  }
  45% {
    transform: rotate(0.8deg) translateY(-1px);
  }
}

@keyframes assistantTap {
  0% {
    transform: scale(1) rotate(0);
  }
  40% {
    transform: scale(1.16) rotate(-8deg);
  }
  75% {
    transform: scale(0.96) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes mascotEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes deerNod {
  50% {
    transform: translateX(-50%) rotate(3deg) translateY(-4px);
  }
}

@keyframes scarfWave {
  50% {
    transform: rotate(16deg) translateX(2px);
  }
}

@media (min-width: 700px) {
  body {
    padding: 24px 0;
  }

  .phone-shell {
    min-height: calc(100vh - 48px);
    border-radius: 34px;
  }

  .app {
    min-height: calc(100vh - 48px);
  }

  .splash {
    width: min(100%, 430px);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 34px;
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  .weather-card {
    grid-template-columns: 1fr;
  }

  .place-card {
    display: block;
  }

  .place-art {
    height: 88px;
  }

  .deer-bubble {
    display: none;
  }
}

#loginPassword {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .74);
  color: #24415c;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(94, 132, 168, .18);
}

.app:not(.page-home) .home-only {
  display: none !important;
}

.app:not(.page-home) .hero {
  padding-bottom: 14px;
}

.app:not(.page-home) .section-title {
  position: sticky;
  top: 0;
  z-index: 4;
  align-items: center;
  margin: 10px -6px 12px;
  padding: 12px 6px 10px;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, .96), rgba(247, 251, 255, .78)),
    var(--cream);
  backdrop-filter: blur(12px);
}

.app:not(.page-home) .section-title .text-btn {
  display: none;
}

.app.page-map .section-title p::after {
  content: " · 地图";
}

.app.page-category .section-title p::after {
  content: " · 分类";
}

.app.page-saved .section-title p::after {
  content: " · 想去";
}

/* Final title treatment: vivid, legible display type across all app views. */
.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  color: transparent;
  letter-spacing: 0;
  background: linear-gradient(92deg, #ff1f7a 0%, #ff7a00 23%, #ffd000 42%, #12c76f 62%, #008cff 82%, #7a45ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.7px rgba(255, 255, 255, 0.86);
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.94),
    0 5px 0 rgba(255, 204, 0, 0.34),
    0 10px 18px rgba(255, 31, 122, 0.2),
    0 16px 26px rgba(0, 140, 255, 0.18);
  filter: saturate(1.28) contrast(1.06);
}

.topbar strong {
  font-size: 26px;
  line-height: 1.12;
}

.section-title h2 {
  font-size: 31px;
  line-height: 1.02;
}

.map-hero h2,
.category-hero h2,
.wanted-hero h2 {
  font-size: 25px;
  line-height: 1.08;
}

.daily-story-card h2 {
  font-size: 20px;
  line-height: 1.12;
}

.assistant-head h2 {
  font-size: 23px;
  line-height: 1.1;
}
/* Mini-program final override: soft, simple, and touch-friendly. */
body {
  color: var(--mp-text);
  background: var(--mp-bg);
}

.phone-shell {
  width: min(100%, 375px);
  background: linear-gradient(180deg, #fbfff8 0%, var(--mp-bg) 58%, #fff9ed 100%);
}

.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  color: var(--mp-text);
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: none;
}

.topbar strong {
  font-size: 18px;
}

.section-title h2 {
  font-size: 18px;
  line-height: 1.2;
}

.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.assistant-head h2 {
  font-size: 20px;
}

.nav-btn,
.detail-btn,
.map-btn,
.route-btn {
  min-height: 44px;
  border-radius: 12px;
  color: #355746;
  background: #eef8f2;
  box-shadow: none;
}

.detail-btn {
  color: #3d647f;
  background: #e9f5ff;
}

.map-btn {
  color: #765a1e;
  background: #fff1c8;
}

.route-btn {
  color: #285946;
  background: #ddf5e7;
}

.tabbar button.active {
  color: #2f5847;
  background: #e7f7ed;
  box-shadow: none;
}
/* Final override: all major headings use colorful candy bubble lettering. */
.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-weight: 900;
  color: transparent;
  letter-spacing: 0;
  line-height: 1.08;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95) 0 8%, transparent 9% 100%),
    linear-gradient(100deg, #ff7aa8 0%, #58c9f4 21%, #ffd83d 41%, #72cc4e 61%, #9a5bd6 79%, #ff5a92 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2.4px #111111;
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 #111111,
    0 4px 0 rgba(17, 17, 17, 0.72),
    0 7px 0 rgba(255, 255, 255, 0.82),
    0 11px 18px rgba(64, 80, 96, 0.18);
  filter: saturate(1.22) contrast(1.08);
}

.topbar strong {
  font-size: 24px;
}

.section-title h2 {
  font-size: 28px;
}

.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.detail-body h2 {
  font-size: 25px;
}

.daily-story-card h2,
.assistant-head h2 {
  font-size: 21px;
}
/* Final clarity pass: readable candy titles, no heavy blur. */
.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0 17%, rgba(255, 255, 255, 0) 18% 100%),
    linear-gradient(100deg, #ff6fa3 0%, #41bff2 23%, #ffd23d 44%, #67c957 65%, #8d63e8 86%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.05px #243044;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96),
    0 2px 0 rgba(36, 48, 68, 0.55),
    0 4px 8px rgba(98, 122, 148, 0.16);
  filter: saturate(1.08);
}
/* Final readable title system: clear, simple headings for mobile screens. */
.topbar strong,
.section-title h2,
.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.daily-story-card h2,
.detail-body h2,
.assistant-head h2 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-weight: 900;
  color: #22324a;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #22324a;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.95);
  filter: none;
  letter-spacing: 0;
  line-height: 1.18;
}

.topbar strong {
  font-size: 22px;
}

.section-title h2 {
  display: inline;
  font-size: 24px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: inset 0 -9px 0 rgba(255, 222, 101, 0.55);
}

.daily-story-card h2 {
  font-size: 18px;
  box-shadow: inset 0 -7px 0 rgba(174, 232, 255, 0.55);
}

.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.detail-body h2,
.assistant-head h2 {
  font-size: 24px;
}

/* Purpose-led splash: immediately explains search, routes, and navigation. */
.splash {
  grid-template-rows: auto auto auto auto;
  gap: 10px;
  padding: 24px 22px;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 222, 101, 0.5), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(174, 232, 255, 0.58), transparent 26%),
    radial-gradient(circle at 50% 86%, rgba(195, 241, 208, 0.7), transparent 34%),
    linear-gradient(180deg, #fbfff8 0%, #fff7df 100%);
}

.splash::before {
  bottom: 9%;
  width: min(350px, 86vw);
  height: min(350px, 86vw);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 222, 101, 0.28) 48%, transparent 70%);
}

.splash::after {
  bottom: 8%;
  height: 78px;
}

.splash-intro {
  z-index: 4;
  text-align: center;
  animation: splashIntroIn 0.7s ease both;
}

.splash-kicker,
.splash-subtitle {
  margin: 0;
  font-weight: 800;
  color: #52708b;
}

.splash-kicker {
  font-size: 14px;
}

.splash-intro h1 {
  margin: 4px 0 6px;
  color: #22324a;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.94);
}

.splash-subtitle {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #315947;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 22px rgba(67, 104, 78, 0.12);
}

.splash .splash-mascot {
  width: min(260px, 68vw);
  height: min(248px, 64vw);
  margin: -4px 0 -2px;
}

.splash .squirrel-hero {
  width: min(250px, 66vw);
  height: min(250px, 66vw);
}

.splash .splash-mascot::after {
  bottom: 4px;
  width: 148px;
}

.splash .lens-eye {
  left: 54%;
  top: 40%;
  width: min(58px, 16vw);
  height: min(58px, 16vw);
}

.splash .lens-eye i {
  left: 10px;
  right: 10px;
  top: 20px;
  height: 12px;
}

.splash-steps {
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: min(330px, 88vw);
}

.splash-step {
  min-height: 82px;
  padding: 10px 6px 9px;
  border: 1px solid rgba(116, 155, 142, 0.18);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(56, 82, 94, 0.12);
  transform: translateY(18px) scale(0.94);
  opacity: 0;
  animation: splashStepPop 0.64s cubic-bezier(.2, .95, .24, 1.18) both;
}

.splash-step b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.splash-step strong {
  display: block;
  color: #22324a;
  font-size: 15px;
  line-height: 1.1;
}

.step-search {
  animation-delay: 1.05s;
}

.step-search b {
  background: linear-gradient(135deg, #55c7f1, #3a8dff);
}

.step-route {
  animation-delay: 1.32s;
}

.step-route b {
  background: linear-gradient(135deg, #ffd65a, #ff9f2e);
}

.step-nav {
  animation-delay: 1.59s;
}

.step-nav b {
  background: linear-gradient(135deg, #58cf8b, #2fbe72);
}

.splash .progress {
  width: min(220px, 56vw);
  margin-top: 2px;
}

.splash .progress::after {
  content: "正在准备太原路线";
  display: block;
  margin-top: 8px;
  color: #6b7e89;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@keyframes splashIntroIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashStepPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  72% {
    opacity: 1;
    transform: translateY(-5px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Weather date badge: larger and placed in the left open area of the card. */
.weather-card {
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 12px;
}

.weather-date {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  min-height: 66px;
  margin: 0;
  padding: 8px 7px;
  border-radius: 18px;
  color: #22324a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  background: linear-gradient(180deg, #fff7c7, #e6f8ef);
  box-shadow: inset 0 0 0 1px rgba(122, 181, 151, 0.24), 0 10px 18px rgba(60, 88, 76, 0.1);
}

.weather-date span,
.weather-date em {
  display: block;
  font-style: normal;
}

.weather-date span {
  font-size: 17px;
}

.weather-date em {
  margin-top: 4px;
  color: #4f6f5d;
  font-size: 12px;
  font-weight: 800;
}

.weather-main {
  grid-column: 2;
  min-width: 0;
}

.weather-tip,
.weather-actions {
  grid-column: 1 / -1;
}

.weather-main p {
  font-size: 13px;
}

.weather-main strong {
  font-size: 29px;
}

.cards {
  scroll-margin-top: 14px;
  padding-bottom: calc(118px + env(safe-area-inset-bottom));
}

.cards.is-jump-target {
  padding-bottom: 58vh;
}

/* 3D scout squirrel splash animation based on the provided mascot image. */
.splash {
  overflow: hidden;
  perspective: 920px;
}

.splash .splash-intro {
  animation: scoutTitleIn 0.72s ease both;
}

.splash .splash-intro h1 {
  font-size: 36px;
}

.splash .splash-subtitle {
  min-height: 32px;
  padding: 5px 14px;
}

.splash .scout-3d {
  width: min(318px, 82vw);
  height: min(318px, 82vw);
  margin: -8px 0 -6px;
  transform-style: preserve-3d;
  animation: scoutBounceIn 1.78s cubic-bezier(.2, .95, .2, 1.08) both, scoutLookAround 2.35s ease-in-out 1.78s infinite;
}

.splash .scout-3d::after {
  content: none;
}

.splash-shadow {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 68%;
  height: 22px;
  border-radius: 50%;
  background: rgba(112, 68, 34, 0.22);
  filter: blur(8px);
  transform: translateX(-50%);
  animation: scoutShadowBounce 1.78s cubic-bezier(.2, .95, .2, 1.08) both, scoutShadowIdle 2.35s ease-in-out 1.78s infinite;
}

.splash .scout-3d .squirrel-hero {
  left: 50%;
  bottom: 0;
  width: min(318px, 82vw);
  height: min(318px, 82vw);
  object-fit: cover;
  object-position: center top;
  clip-path: inset(0 0 8.5% 0 round 28px);
  transform: translateX(-50%) translateZ(42px) rotateX(2deg) rotateY(-7deg);
  filter:
    drop-shadow(0 22px 26px rgba(119, 70, 36, 0.26))
    drop-shadow(0 8px 0 rgba(255, 224, 122, 0.14));
  animation: scoutImageHop 1.78s cubic-bezier(.2, .95, .2, 1.08) both, scoutImageBreathe 1.18s ease-in-out 1.78s infinite;
}

.splash .scout-3d .lens-eye {
  left: 53.2%;
  top: 42%;
  width: min(76px, 19vw);
  height: min(76px, 19vw);
  border: 2px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 62% 28%, rgba(255, 255, 255, 0.96) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 52%, #1e1715 0 24%, #523323 25% 34%, rgba(255, 244, 222, 0.24) 35% 48%, transparent 49%);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.58),
    0 0 0 5px rgba(255, 255, 255, 0.18);
  mix-blend-mode: normal;
  opacity: 0;
  transform: translate(-50%, -50%) translateZ(80px) scale(0.7);
  animation: scoutLensPop 0.58s ease 1.05s both, scoutLensBob 1.18s ease-in-out 1.78s infinite;
}

.splash .scout-3d .lens-eye::before,
.splash .scout-3d .lens-eye::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  height: 48%;
  border-radius: 999px;
  background: rgba(90, 54, 30, 0.92);
  transform: scaleY(0);
  z-index: 2;
  animation: scoutEyelid 2.15s ease-in-out 2.15s infinite;
}

.splash .scout-3d .lens-eye::before {
  top: 4%;
  transform-origin: top;
}

.splash .scout-3d .lens-eye::after {
  bottom: 4%;
  transform-origin: bottom;
}

.splash .scout-3d .lens-eye i {
  left: 18px;
  right: 18px;
  top: 26px;
  height: 18px;
  background: #15100f;
  box-shadow:
    13px -11px 0 -6px rgba(255, 255, 255, 0.92),
    -8px 9px 0 -7px rgba(255, 255, 255, 0.7);
  animation: scoutPupilPeek 2.15s ease-in-out 2.15s infinite;
}

.scout-scan {
  position: absolute;
  z-index: 5;
  left: 52%;
  top: 42%;
  width: 116px;
  height: 24px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(97, 207, 255, 0.42), transparent);
  filter: blur(0.2px);
  opacity: 0;
  transform-origin: left center;
  animation: scoutScan 2.4s ease-in-out 1.62s infinite;
}

.scan-a {
  --scan-rotate: -17deg;
  transform: rotate(-17deg);
}

.scan-b {
  --scan-rotate: 12deg;
  animation-delay: 2.05s;
  transform: rotate(12deg);
}

.splash .splash-step {
  animation-name: scoutStepPop;
}

.splash .progress span {
  animation-duration: 4.65s;
}

@keyframes scoutTitleIn {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scoutBounceIn {
  0% {
    opacity: 0;
    transform: translate3d(-24vw, 96px, -160px) rotateX(18deg) rotateY(-38deg) rotateZ(-10deg) scale(0.56);
  }
  38% {
    opacity: 1;
    transform: translate3d(8vw, -34px, 70px) rotateX(-6deg) rotateY(18deg) rotateZ(7deg) scale(1.08);
  }
  58% {
    transform: translate3d(-4vw, 18px, 28px) rotateX(5deg) rotateY(-12deg) rotateZ(-5deg) scale(0.96);
  }
  76% {
    transform: translate3d(2vw, -14px, 48px) rotateX(-3deg) rotateY(8deg) rotateZ(3deg) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) rotateZ(0) scale(1);
  }
}

@keyframes scoutLookAround {
  0%,
  100% {
    transform: rotateY(-5deg) rotateX(1deg) translateY(0);
  }
  42% {
    transform: rotateY(7deg) rotateX(-2deg) translateY(-9px);
  }
  70% {
    transform: rotateY(-2deg) rotateX(2deg) translateY(2px);
  }
}

@keyframes scoutImageHop {
  0% {
    transform: translateX(-50%) translateY(18px) translateZ(26px) rotateZ(-7deg);
  }
  42% {
    transform: translateX(-50%) translateY(-20px) translateZ(70px) rotateZ(6deg);
  }
  70% {
    transform: translateX(-50%) translateY(8px) translateZ(38px) rotateZ(-3deg);
  }
  100% {
    transform: translateX(-50%) translateY(0) translateZ(42px) rotateZ(0);
  }
}

@keyframes scoutImageBreathe {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) translateZ(42px) rotateZ(0) scale(1);
  }
  48% {
    transform: translateX(-50%) translateY(-12px) translateZ(52px) rotateZ(2deg) scale(1.025);
  }
}

@keyframes scoutShadowBounce {
  0% {
    opacity: 0;
    transform: translateX(-70%) scale(0.45);
  }
  42% {
    opacity: 0.18;
    transform: translateX(-45%) scale(0.78);
  }
  70% {
    opacity: 0.32;
    transform: translateX(-52%) scale(0.92);
  }
  100% {
    opacity: 0.42;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes scoutShadowIdle {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  48% {
    transform: translateX(-50%) scale(0.82);
  }
}

@keyframes scoutLensPop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateZ(80px) scale(0.42);
  }
  to {
    opacity: 0.94;
    transform: translate(-50%, -50%) translateZ(80px) scale(1);
  }
}

@keyframes scoutLensBob {
  0%,
  100% {
    transform: translate(-50%, -50%) translateZ(80px) scale(1);
  }
  48% {
    transform: translate(-50%, calc(-50% - 7px)) translateZ(86px) scale(1.035);
  }
}

@keyframes scoutEyelid {
  0%,
  40%,
  52%,
  100% {
    transform: scaleY(0);
  }
  45%,
  48% {
    transform: scaleY(1);
  }
}

@keyframes scoutPupilPeek {
  0%,
  100% {
    transform: translateX(0) scaleY(1);
  }
  28% {
    transform: translateX(-5px) scaleY(1);
  }
  46% {
    transform: translateX(0) scaleY(0.15);
  }
  64% {
    transform: translateX(5px) scaleY(1);
  }
}

@keyframes scoutScan {
  0%,
  100% {
    opacity: 0;
    transform: translateX(0) rotate(var(--scan-rotate, -14deg)) scaleX(0.25);
  }
  28% {
    opacity: 0.85;
    transform: translateX(8px) rotate(var(--scan-rotate, -14deg)) scaleX(1);
  }
  55% {
    opacity: 0;
    transform: translateX(34px) rotate(var(--scan-rotate, -14deg)) scaleX(0.45);
  }
}

@keyframes scoutStepPop {
  0% {
    opacity: 0;
    transform: translateY(20px) rotateX(24deg) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translateY(-6px) rotateX(-4deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

.daily-story-card {
  cursor: pointer;
}

.daily-story-card:focus-visible {
  outline: 3px solid rgba(58, 141, 255, 0.72);
  outline-offset: 3px;
}

.story-detail-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 25% 22%, rgba(255, 214, 90, 0.48), transparent 28%),
    linear-gradient(135deg, #e6f7ff, #fff7d7 58%, #e8f8ed);
}

.story-detail-cover img {
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 270px;
  height: 250px;
  object-fit: cover;
  object-position: center top;
  clip-path: inset(0 0 9% 0 round 24px);
  filter: drop-shadow(0 18px 24px rgba(121, 77, 39, 0.22));
}

.story-detail-cover span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #315947;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 24px rgba(61, 91, 74, 0.12);
}

.story-detail-body .detail-desc {
  font-size: 18px;
  line-height: 1.7;
}

.story-speech-actions {
  grid-template-columns: 1fr;
}

.story-read-btn {
  color: #07384a;
  background: linear-gradient(135deg, #ffd65a, #58c9f4 54%, #53d6a2);
  box-shadow: 0 12px 26px rgba(88, 201, 244, 0.22);
}

.story-read-btn.is-loading {
  cursor: wait;
  opacity: 0.82;
}

.story-read-btn.is-playing {
  background: linear-gradient(135deg, #ff8f5a, #ff4f8b);
  color: #ffffff;
}

.ad-carousel {
  position: relative;
  z-index: 1;
  margin: -2px 0 14px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 14px 30px rgba(45, 70, 88, 0.12);
}

.ad-track {
  display: flex;
  width: 100%;
  transition: transform 0.42s ease;
}

.ad-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 118px;
  padding: 14px 98px 14px 16px;
  overflow: hidden;
  border-radius: 22px;
  text-align: left;
  color: #22324a;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.82) 0 18%, transparent 19%),
    linear-gradient(135deg, color-mix(in srgb, var(--ad-color), white 14%), color-mix(in srgb, var(--ad-accent), white 16%));
}

.ad-slide::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 15px;
  width: 66px;
  height: 66px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 42% 38%, #fff 0 8%, transparent 9%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58), 0 10px 20px rgba(33, 48, 74, 0.12);
  transform: rotate(8deg);
}

.ad-slide::after {
  content: "广告";
  position: absolute;
  right: 32px;
  bottom: 36px;
  color: #3a526c;
  font-size: 16px;
  font-weight: 900;
}

.app:not(.page-home) .ad-slide::before,
.app:not(.page-home) .ad-slide::after {
  content: none;
}

.ad-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #315947;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.68);
}

.ad-slide strong,
.ad-slide small,
.ad-slide em {
  display: block;
}

.ad-slide strong {
  margin-top: 7px;
  font-size: 20px;
  line-height: 1.15;
}

.ad-slide small {
  width: min(100%, 210px);
  margin-top: 5px;
  color: #4f647a;
  font-size: 12px;
  line-height: 1.35;
}

.ad-slide em {
  margin-top: 8px;
  color: #ff5f6d;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.ad-dots {
  position: absolute;
  right: 14px;
  top: 12px;
  display: flex;
  gap: 5px;
}

.ad-dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(34, 50, 74, 0.24);
  transition: width 0.2s ease, background 0.2s ease;
}

.ad-dots button.active {
  width: 18px;
  background: #22324a;
}

.ad-detail-cover {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 230px;
  padding: 22px;
  border-radius: 28px 28px 0 0;
  color: #22324a;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.76) 0 16%, transparent 17%),
    radial-gradient(circle at 26% 20%, color-mix(in srgb, var(--ad-accent), white 18%) 0 18%, transparent 19%),
    linear-gradient(135deg, color-mix(in srgb, var(--ad-color), white 10%), color-mix(in srgb, var(--ad-accent), white 10%));
}

.ad-detail-cover span,
.ad-detail-cover small {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
}

.ad-detail-cover strong {
  font-size: 30px;
  line-height: 1.1;
}

.ad-detail-body .detail-desc {
  font-size: 17px;
  line-height: 1.75;
}

.login-panel {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(20, 30, 44, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.login-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-sheet {
  position: relative;
  width: min(100%, 390px);
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f3fbf6);
  box-shadow: 0 24px 60px rgba(35, 56, 92, 0.24);
  transform: translateY(20px);
  transition: transform 0.24s ease;
}

.login-panel.open .login-sheet {
  transform: translateY(0);
}

.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #52708b;
  background: #f1f7f3;
}

.login-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 42px;
}

.login-hero img {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  object-fit: cover;
  background: #fff4ca;
}

.login-hero p,
.login-hero h2 {
  margin: 0;
}

.login-hero p {
  color: #5d758a;
  font-size: 13px;
  font-weight: 800;
}

.login-hero h2 {
  color: #22324a;
  font-size: 24px;
  line-height: 1.15;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid #dcebe4;
  border-radius: 14px;
  background: #f4fbf7;
}

.login-mode-tabs button {
  min-height: 36px;
  border-radius: 10px;
  color: #5d758a;
  font-size: 13px;
  font-weight: 900;
  background: transparent;
}

.login-mode-tabs button.active {
  color: #1f694f;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(47, 120, 84, 0.12);
}

.login-mode-tabs button:disabled,
.login-submit:disabled {
  cursor: wait;
  opacity: 0.64;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #395168;
  font-weight: 900;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dcebe4;
  border-radius: 14px;
  outline: 0;
  color: #22324a;
  background: #f9fffb;
}

.login-form input:focus {
  border-color: #78cfa6;
  box-shadow: 0 0 0 3px rgba(120, 207, 166, 0.22);
}

.login-message {
  margin: 0;
  color: #6a7891;
  font-size: 13px;
  line-height: 1.45;
}

.login-message[data-state="loading"] {
  color: #386fae;
}

.login-message[data-state="success"] {
  color: #1f8a53;
}

.login-message[data-state="error"] {
  color: #c2413a;
}

.login-error-log {
  overflow: hidden;
  border: 1px solid #f0c9c5;
  border-radius: 14px;
  background: #fff7f6;
}

.login-error-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 0 12px;
  color: #9a302b;
  font-size: 12px;
  font-weight: 900;
  background: #ffe9e6;
}

.login-error-head button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  color: #8f2d28;
  font-size: 12px;
  font-weight: 900;
  background: #ffffff;
}

.login-error-log pre {
  max-height: 150px;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  color: #6b2b2b;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.login-submit {
  min-height: 48px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
}

.login-submit {
  background: linear-gradient(135deg, #3a8dff, #58c9f4);
}

.avatar-btn.is-logged-in {
  color: #fff;
  background: linear-gradient(135deg, #31c46f, #3a8dff);
}

.weather-card {
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.weather-card[data-weather-card="sunny"] {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 224, 105, 0.56), transparent 23%),
    radial-gradient(circle at 12% 82%, rgba(133, 217, 255, 0.34), transparent 30%),
    linear-gradient(135deg, #fff6c9, #dff5ff 52%, #ecfff1);
  border-color: rgba(255, 207, 82, 0.46);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.38), 0 16px 30px rgba(255, 190, 73, 0.16);
}

.weather-card[data-weather-card="rainy"] {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.34), transparent 24%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #d9ecff, #bed9f7 48%, #e8f4ff);
  border-color: rgba(102, 146, 190, 0.34);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.26), 0 16px 30px rgba(87, 125, 169, 0.14);
}

.weather-card[data-weather-card="cloudy"] {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.52), transparent 24%),
    radial-gradient(circle at 18% 76%, rgba(177, 207, 229, 0.3), transparent 30%),
    linear-gradient(135deg, #eef5f8, #d9e9f1 52%, #f6fbf8);
  border-color: rgba(132, 159, 178, 0.32);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.34), 0 16px 30px rgba(93, 125, 150, 0.12);
}

.weather-card[data-weather-card="thunder"] {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 219, 93, 0.34), transparent 18%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 13px),
    linear-gradient(135deg, #dbe4f6, #becce4 52%, #eef3ff);
  border-color: rgba(91, 109, 152, 0.34);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.26), 0 16px 30px rgba(67, 86, 132, 0.14);
}

.weather-card[data-weather-card="snowy"] {
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.78), transparent 16%),
    radial-gradient(circle at 82% 18%, rgba(214, 238, 255, 0.68), transparent 24%),
    radial-gradient(circle at 16% 84%, rgba(255, 255, 255, 0.62), transparent 18%),
    linear-gradient(135deg, #f7fbff, #e1f0fb 52%, #ffffff);
  border-color: rgba(157, 190, 219, 0.36);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.5), 0 16px 30px rgba(101, 133, 178, 0.11);
}

.weather-card[data-weather-card="foggy"] {
  background:
    repeating-linear-gradient(178deg, rgba(255, 255, 255, 0.5) 0 4px, transparent 4px 18px),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(135deg, #eef1f0, #dbe2e1 52%, #f8faf7);
  border-color: rgba(142, 154, 158, 0.3);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.38), 0 16px 30px rgba(95, 113, 120, 0.11);
}

.weather-card[data-weather-card="hot"] {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 244, 142, 0.58), transparent 24%),
    radial-gradient(circle at 16% 80%, rgba(255, 126, 94, 0.28), transparent 30%),
    linear-gradient(135deg, #fff0b8, #ffd0a8 50%, #fff6d9);
  border-color: rgba(255, 148, 82, 0.42);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.34), 0 16px 30px rgba(255, 124, 75, 0.15);
}

.weather-card[data-weather-card="humid"] {
  background:
    radial-gradient(circle at 86% 20%, rgba(190, 255, 236, 0.46), transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(122, 211, 184, 0.24), transparent 30%),
    linear-gradient(135deg, #e5fbf1, #d4eee8 52%, #f6fff3);
  border-color: rgba(92, 177, 154, 0.28);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.34), 0 16px 30px rgba(73, 145, 129, 0.12);
}

.weather-card[data-weather-card="windy"] {
  background:
    repeating-linear-gradient(165deg, rgba(255, 255, 255, 0.34) 0 3px, transparent 3px 20px),
    radial-gradient(circle at 88% 20%, rgba(200, 242, 255, 0.52), transparent 26%),
    linear-gradient(135deg, #e9f8f2, #d8eef8 48%, #f5fff9);
  border-color: rgba(128, 180, 190, 0.34);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.32), 0 16px 30px rgba(92, 143, 154, 0.13);
}

.weather-card[data-weather-card="cold"] {
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.72), transparent 16%),
    radial-gradient(circle at 82% 18%, rgba(198, 231, 255, 0.62), transparent 24%),
    linear-gradient(135deg, #f0f7ff, #dbeaff 52%, #f8fbff);
  border-color: rgba(145, 181, 220, 0.36);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.42), 0 16px 30px rgba(101, 133, 178, 0.13);
}

.weather-card[data-weather-card="comfortable"] {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 232, 137, 0.34), transparent 22%),
    radial-gradient(circle at 14% 82%, rgba(133, 224, 177, 0.3), transparent 30%),
    linear-gradient(135deg, #f1ffd9, #ddf6ed 52%, #fff7d8);
  border-color: rgba(107, 190, 132, 0.32);
  box-shadow: inset 0 -14px 24px rgba(255, 255, 255, 0.4), 0 16px 30px rgba(83, 156, 108, 0.12);
}

/* Final route, weather, and account polish. */
.search input {
  color: var(--mp-text);
  caret-color: #24715d;
  font-weight: 700;
}

.search input::placeholder {
  color: #7d8d99;
}

.avatar-btn {
  overflow: hidden;
  border-radius: 50%;
  padding: 0;
}

.avatar-image,
.avatar-visual {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.avatar-image {
  object-fit: cover;
}

.avatar-visual {
  position: relative;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
}

.avatar-visual::before,
.avatar-visual::after,
.profile-avatar::before,
.profile-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.avatar-visual::before,
.profile-avatar::before {
  top: 22%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.avatar-visual::after,
.profile-avatar::after {
  bottom: 17%;
  width: 52%;
  height: 30%;
  border-radius: 999px 999px 42% 42%;
}

.avatar-guest::before,
.avatar-guest::after,
.profile-avatar-guest::before,
.profile-avatar-guest::after {
  background: #8aa1b4;
}

.avatar-member,
.profile-avatar-member {
  background: linear-gradient(135deg, #2fbe72, #3a8dff);
}

.avatar-member::before,
.avatar-member::after,
.profile-avatar-member::before,
.profile-avatar-member::after {
  background: #fff;
}

.weather-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.weather-date {
  grid-column: 1;
  grid-row: 1;
  min-width: 76px;
  min-height: 50px;
  padding: 8px 10px;
  font-size: 17px;
}

.weather-date span,
.weather-date em {
  display: inline;
  margin: 0;
  font-size: inherit;
}

.weather-update-time {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  color: #3d6554;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(122, 181, 151, 0.18);
}

.weather-main {
  grid-column: 2;
}

.weather-tip,
.weather-scene,
.weather-actions {
  grid-column: 1 / -1;
}

.map-view,
.category-view,
.wanted-view,
.profile-view,
.saved-empty {
  grid-column: 1 / -1;
}

.map-hero,
.category-hero,
.wanted-hero,
.profile-hero {
  min-height: 0;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(35, 56, 92, 0.1);
}

.map-hero h2,
.category-hero h2,
.wanted-hero h2,
.profile-hero h2 {
  font-size: 18px;
  line-height: 1.16;
}

.map-hero button,
.category-hero button,
.wanted-hero button,
.profile-hero button {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.map-stage {
  margin-top: 10px;
  border-radius: 14px;
}

.map-zoom-controls {
  top: 8px;
  right: 8px;
  gap: 4px;
  padding: 5px;
}

.map-zoom-controls button,
.map-zoom-controls span {
  min-width: 30px;
  height: 30px;
  font-size: 12px;
}

.map-zoom-controls span {
  min-width: 44px;
}

.taiyuan-map {
  width: 100%;
  max-width: none;
  height: 100%;
}

.map-pin strong {
  font-size: 10px;
}

.map-pin small {
  display: none;
}

.back-card {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(35, 56, 92, 0.08);
}

.subcat-view {
  gap: 10px;
}

.app.subcat-mode .section-title h2 {
  font-size: 24px;
  line-height: 1.08;
}

.app.subcat-mode .section-title .text-btn {
  display: none;
}

.app.subcat-mode .section-title::after {
  bottom: -5px;
  width: 82px;
  height: 5px;
}

.subcat-toolbar,
.subcat-all {
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow);
}

.subcat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
}

.subcat-toolbar p,
.subcat-toolbar strong {
  margin: 0;
}

.subcat-toolbar p {
  color: var(--mp-muted);
  font-size: 12px;
  font-weight: 800;
}

.subcat-toolbar strong {
  color: var(--mp-text);
  font-size: 17px;
  line-height: 1.2;
}

.subcat-home {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  color: #2f6d58;
  font-size: 12px;
  font-weight: 900;
  background: #e9f7ef;
}

.subcat-all {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--mp-text);
  text-align: left;
}

.subcat-all span {
  font-weight: 900;
}

.subcat-all em {
  color: #2f6d58;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.subcat-grid {
  gap: 8px;
}

.subcat-card {
  min-height: 86px;
  grid-template-columns: 32px 1fr;
  align-content: center;
  align-items: center;
  gap: 6px 9px;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(35, 56, 92, 0.07);
}

.subcat-icon {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 16px;
}

.subcat-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.subcat-card small {
  font-size: 11px;
}

.profile-view {
  display: grid;
  gap: 12px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--mp-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 249, 242, 0.92)),
    radial-gradient(circle at 90% 14%, rgba(255, 214, 90, 0.32), transparent 30%);
}

.profile-hero.is-member {
  background:
    linear-gradient(135deg, rgba(233, 249, 240, 0.96), rgba(230, 243, 255, 0.92)),
    radial-gradient(circle at 90% 14%, rgba(58, 141, 255, 0.22), transparent 30%);
}

.profile-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(122, 181, 151, 0.24);
}

.profile-avatar-image {
  background-size: cover;
  background-position: center;
}

.profile-avatar-image::before,
.profile-avatar-image::after {
  content: none;
}

.profile-hero p,
.profile-hero h2,
.profile-hero span {
  margin: 0;
}

.profile-hero p {
  color: var(--mp-muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-hero span {
  display: block;
  overflow: hidden;
  color: var(--mp-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.profile-stats span,
.profile-panel {
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow);
}

.profile-stats span {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px;
  color: var(--mp-muted);
  font-size: 11px;
  text-align: center;
}

.profile-stats strong {
  color: var(--mp-text);
  font-size: 15px;
  line-height: 1.15;
}

.profile-panel {
  padding: 12px;
}

.profile-panel h3 {
  margin: 0 0 10px;
  color: var(--mp-text);
  font-size: 15px;
}

.preference-head {
  margin-bottom: 12px;
}

.preference-head h3 {
  margin-bottom: 4px;
}

.preference-head p {
  margin: 0;
  color: var(--mp-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

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

.preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preference-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.preference-field > span,
.preference-field legend {
  color: var(--mp-text);
  font-size: 12px;
  font-weight: 900;
}

.preference-field input,
.preference-field select,
.preference-field textarea {
  width: 100%;
  border: 1px solid #d8e3f2;
  border-radius: 10px;
  background: #f8fbff;
  color: var(--mp-text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.preference-field input,
.preference-field select {
  height: 38px;
  padding: 0 10px;
}

.preference-field textarea {
  min-height: 58px;
  resize: vertical;
  padding: 10px;
  line-height: 1.45;
}

.preference-field input:focus,
.preference-field select:focus,
.preference-field textarea:focus {
  border-color: #58c9f4;
  box-shadow: 0 0 0 3px rgba(88, 201, 244, .16);
}

.preference-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preference-choice-list label {
  cursor: pointer;
}

.preference-choice-list input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.preference-choice-list span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid #d8e3f2;
  border-radius: 10px;
  background: #f1f7ff;
  padding: 7px 9px;
  color: #3e5068;
  font-size: 12px;
  font-weight: 900;
}

.preference-choice-list input:checked + span {
  border-color: #58c9f4;
  background: #e8f8ff;
  color: #17637b;
}

.preference-status {
  min-height: 18px;
  margin: 0;
  color: var(--mp-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.preference-status[data-state="success"] {
  color: #16845f;
}

.preference-status[data-state="error"] {
  color: #d14b4b;
}

.preference-save {
  min-height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #58c9f4, #53d6a2);
  color: #07384a;
  font-size: 13px;
  font-weight: 1000;
  box-shadow: 0 10px 24px rgba(83, 214, 162, .22);
}

.preference-save:disabled {
  cursor: wait;
  opacity: .68;
}

.preference-open-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #58c9f4, #53d6a2);
  color: #07384a;
  font-size: 13px;
  font-weight: 1000;
  box-shadow: 0 10px 24px rgba(83, 214, 162, .22);
}

.preference-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(18, 31, 48, .46);
}

.preference-modal.open {
  display: flex;
}

.preference-sheet {
  width: min(100%, 460px);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 20px 20px 16px 16px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 24px 70px rgba(20, 38, 64, .28);
}

.preference-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.preference-modal-head p,
.preference-modal-head h2,
.preference-modal-head span {
  margin: 0;
}

.preference-modal-head p {
  color: #27936f;
  font-size: 12px;
  font-weight: 900;
}

.preference-modal-head h2 {
  margin-top: 3px;
  color: var(--mp-text);
  font-size: 20px;
  line-height: 1.2;
}

.preference-modal-head span,
.preference-required-note {
  display: block;
  margin-top: 5px;
  color: var(--mp-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.preference-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eef4fb;
  color: #456071;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.preference-required-note {
  margin: 0 0 12px;
  border-radius: 12px;
  background: #fff7df;
  padding: 9px 10px;
  color: #8a5a00;
}

.profile-tags,
.profile-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tags span,
.profile-mini-list button {
  border-radius: 10px;
  background: #f1f7ff;
}

.profile-tags span {
  padding: 7px 9px;
  color: #3e5068;
  font-size: 12px;
  font-weight: 800;
}

.profile-mini-list {
  display: grid;
}

.profile-mini-list button {
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  color: var(--mp-text);
  text-align: left;
  font-weight: 900;
}

.profile-mini-list span {
  color: var(--mp-muted);
  font-size: 11px;
  font-weight: 700;
}

.app.page-profile .section-title p::after {
  content: " · 个人中心";
}

.weather-actions button:disabled,
.weather-actions button.is-disabled {
  cursor: not-allowed;
  opacity: .46;
}

.ad-empty {
  cursor: default;
  text-align: left;
}

.card-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.nav-btn {
  min-width: 0;
  min-height: 38px;
  padding: 0 6px;
  border-radius: 12px;
  white-space: nowrap;
}

.save-btn,
.detail-actions button.is-saved,
.map-save-btn.is-saved,
.want-actions button.is-saved {
  color: #805200;
  background: #ffe08a;
}

.map-control-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.map-type-tabs,
.map-district-tabs,
.map-route-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.map-type-tabs::-webkit-scrollbar,
.map-district-tabs::-webkit-scrollbar,
.map-route-tabs::-webkit-scrollbar {
  display: none;
}

.map-type-tabs button,
.map-district-tabs button,
.map-route-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  color: #496277;
  font-size: 12px;
  font-weight: 900;
  background: #fffdf7;
}

.map-type-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 4px 0 0 var(--map-tab-color);
}

.map-type-tabs small {
  color: #7d8b9a;
  font-size: 10px;
}

.map-type-tabs button.active,
.map-district-tabs button.active,
.map-route-tabs button.active {
  color: #2f5847;
  border-color: rgba(120, 207, 166, 0.7);
  background: #e7f7ed;
}

.map-pin.is-selected .pin-dot,
.map-pin:focus-visible .pin-dot {
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.75), 0 0 30px var(--pin), 0 8px 18px rgba(35, 56, 92, 0.22);
}

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

.map-focus-card,
.map-route-card,
.want-section-head {
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 56, 92, 0.08);
}

.map-focus-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-left: 5px solid var(--focus-color, #3a8dff);
}

.map-focus-card img {
  width: 96px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
}

.map-focus-card p,
.map-focus-card h3,
.map-focus-card span,
.map-focus-card small,
.map-route-card p {
  margin: 0;
}

.map-focus-card p {
  color: #5b9c7b;
  font-size: 11px;
  font-weight: 900;
}

.map-focus-card h3 {
  margin-top: 3px;
  color: var(--mp-text);
  font-size: 17px;
  line-height: 1.18;
}

.map-focus-card span,
.map-focus-card small {
  display: block;
  margin-top: 4px;
  color: var(--mp-muted);
  font-size: 12px;
  line-height: 1.4;
}

.map-focus-actions,
.want-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.map-focus-actions button,
.want-actions button {
  min-height: 36px;
  padding: 0 6px;
  border-radius: 10px;
  color: #355746;
  font-size: 12px;
  font-weight: 900;
  background: #eef7ff;
}

.map-focus-actions button:first-child {
  background: #fff1c8;
}

.map-focus-actions button:last-child,
.want-actions button:nth-child(2) {
  background: #ddf5e7;
}

.map-route-card {
  padding: 12px;
}

.map-route-card ol {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.map-route-card li button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  color: var(--mp-text);
  text-align: left;
  background: #f7fbf6;
}

.map-route-card li span {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: #5b9c7b;
}

.map-route-card li strong,
.map-route-card li small {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.map-route-card li small,
.map-route-card p {
  color: var(--mp-muted);
  font-size: 12px;
}

.want-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
}

.want-section-head strong {
  color: var(--mp-text);
  font-size: 14px;
}

.want-section-head span,
.saved-pill {
  color: #5b9c7b;
  font-size: 12px;
  font-weight: 900;
}

.saved-list {
  margin-top: 10px;
}

.saved-place-card .want-rank {
  color: #805200;
  background: #ffe08a;
}

.saved-pill {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f7ed;
}

@media (max-width: 430px) {
  .card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-btn {
    min-height: 36px;
    font-size: 11px;
  }

  .map-focus-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .map-focus-card img {
    width: 82px;
    height: 96px;
  }
}
