    :root {
      --map-sand: #f5ecda;
      --map-sand-deep: #e7d6ba;
      --map-clay: #8b5a2b;
      --map-rock: #6e4a2f;
      --map-lake: #9dc6e4;
    }
    html { background: #f5ecda; }
    body { overflow-x: hidden; }

    .explore-shell {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* ── Top Bar ────────────────────────────────── */
    .explore-topbar {
      width: 100%;
      border-bottom: 1px solid var(--map-sand-deep);
      background: linear-gradient(180deg, #faf2e4 0%, var(--map-sand) 100%);
      z-index: 10;
      flex-shrink: 0;
      position: sticky;
      top: 0;
    }
    .explore-topbar-inner {
      width: min(1180px, calc(100vw - 24px));
      margin: 0 auto;
      height: 56px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 1rem;
    }

    .explore-logo {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      text-decoration: none;
      color: var(--map-rock);
      flex-shrink: 0;
    }
    .explore-logo svg { width: 26px; height: 26px; }
    .explore-logo span {
      font-family: "Roboto", "Noto Sans SC", sans-serif;
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: 0.02em;
    }
    .top-links {
      display: inline-flex;
      align-items: center;
      gap: 0.95rem;
      min-width: 0;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .top-links::-webkit-scrollbar { display: none; }
    .top-link {
      text-decoration: none;
      color: var(--map-rock);
      font-size: 0.84rem;
      white-space: nowrap;
      transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    .top-link.active,
    .top-link:hover { color: #2f506c; }

    .top-actions {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .search-wrap {
      position: relative;
      width: 220px;
    }
    .search-wrap svg {
      position: absolute;
      left: 0.85rem;
      top: 50%;
      transform: translateY(-50%);
      color: #8a775f;
      pointer-events: none;
    }
    .search-input {
      width: 100%;
      height: 32px;
      padding: 0.45rem 0.78rem 0.45rem 2.2rem;
      background: #fffdf8;
      border: 1px solid #d7c5a8;
      border-radius: 999px;
      color: #222;
      font-family: inherit;
      font-size: 0.8rem;
      outline: none;
      transition: border-color 220ms, box-shadow 220ms;
    }
    .search-input:focus {
      border-color: var(--map-lake);
      box-shadow: 0 0 0 3px rgba(157, 198, 228, 0.22);
    }
    .search-input::placeholder { color: #9a8973; }

    .user-avatar {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: #fffdf8;
      border: 1px solid #d7c5a8;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #6f5a42;
      cursor: pointer;
      flex-shrink: 0;
      transition: border-color 200ms, transform 200ms;
      overflow: hidden;
      text-decoration: none;
    }
    .user-avatar:hover {
      border-color: #c9b08a;
    }
    .user-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: none;
    }
    .user-avatar .avatar-fallback {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      font-size: 0.86rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      color: #6f5a42;
    }

    /* ── Map Placeholder ─────────────────────────── */
    .map-placeholder {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      aspect-ratio: 4 / 3;
      background: #e8deca;
      border: 2px dashed #d0c2a8;
      border-radius: 8px;
      color: #a39476;
      font-size: 0.9rem;
      text-align: center;
    }
    .map-placeholder svg { margin-bottom: 0.6rem; color: #a39476; }
    .map-placeholder p { margin: 0.2rem 0; }
    .map-placeholder .sub { font-size: 0.8rem; }
    .map-placeholder.visible { display: flex; }

    /* Hide map image when placeholder is visible */
    .map-placeholder.visible ~ img,
    .map-placeholder.visible ~ .pins-layer { display: none; }

    /* ── Layer Control ──────────────────────────── */
    .layer-control {
      position: absolute;
      top: 0.8rem;
      left: 0.8rem;
      z-index: 20;
    }
    .layer-toggle-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      background: rgba(18, 25, 36, 0.7);
      border: 1px solid rgba(236, 233, 228, 0.15);
      border-radius: 10px;
      color: rgba(236, 233, 228, 0.5);
      cursor: pointer;
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      transition: color 200ms, border-color 200ms, background 200ms, opacity 200ms;
      opacity: 0.5;
    }
    .layer-toggle-btn:hover,
    .layer-toggle-btn.active {
      opacity: 1;
      color: #f5ecda;
      border-color: rgba(236, 233, 228, 0.35);
      background: rgba(18, 25, 36, 0.92);
    }
    .layer-panel {
      display: none;
      position: absolute;
      top: 42px;
      left: 0;
      min-width: 180px;
      background: rgba(18, 25, 36, 0.94);
      border: 1px solid rgba(236, 233, 228, 0.12);
      border-radius: 12px;
      padding: 6px 0;
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
      box-shadow: 0 10px 32px rgba(0,0,0,0.4);
      animation: fadeIn 180ms ease;
    }
    .layer-panel.visible { display: block; }
    .layer-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 14px;
      cursor: pointer;
      color: rgba(236, 233, 228, 0.45);
      font-size: 0.82rem;
      transition: background 150ms, color 150ms;
      user-select: none;
    }
    .layer-item:hover {
      background: rgba(255,255,255,0.06);
      color: rgba(236, 233, 228, 0.7);
    }
    .layer-item.checked {
      color: #f5ecda;
    }

    /* color dot per layer */
    .layer-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
      opacity: 0.35;
      transition: opacity 200ms;
    }
    .layer-item.checked .layer-dot { opacity: 1; }
    .dot-landmarks { background: var(--map-clay); }
    .dot-story { background: #7c5cbf; }
    .dot-food { background: #e8743a; }
    .dot-labels { background: var(--map-lake); }

    /* eye icon on the right */
    .layer-eye {
      margin-left: auto;
      display: flex;
      align-items: center;
      opacity: 0.25;
      transition: opacity 200ms;
    }
    .layer-item.checked .layer-eye { opacity: 0.7; }
    .layer-item:hover .layer-eye { opacity: 1; }
    .layer-item:not(.checked) .layer-eye svg circle { display: none; }

    /* ── Story Pins ── */
    .story-pins-layer {
      position: absolute;
      top: 0; right: 0; bottom: 0; left: 0;
      inset: 0;
      pointer-events: none;
    }
    .story-pin {
      position: absolute;
      transform: translate(-50%, -50%);
      pointer-events: auto;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.55rem 0.9rem;
      background: linear-gradient(135deg, rgba(99,66,175,0.92), rgba(56,120,190,0.92));
      color: #fff;
      border: 1px solid rgba(160,140,220,0.6);
      border-radius: 999px;
      font-size: 0.88rem;
      font-weight: 600;
      white-space: nowrap;
      box-shadow: 0 2px 10px rgba(99,66,175,0.35);
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 3;
      animation: storyPulse 2.5s ease-in-out infinite;
    }
    .story-pin:hover {
      transform: translate(-50%, -50%) scale(1.08);
      box-shadow: 0 4px 18px rgba(99,66,175,0.5);
    }
    @keyframes storyPulse {
      0%, 100% { box-shadow: 0 2px 10px rgba(99,66,175,0.35); }
      50% { box-shadow: 0 2px 18px rgba(99,66,175,0.6); }
    }

    /* ── Food Pins ── */
    .food-pins-layer {
      position: absolute;
      top: 0; right: 0; bottom: 0; left: 0;
      inset: 0;
      pointer-events: none;
    }
    .food-pin {
      position: absolute;
      transform: translate(-50%, -50%);
      pointer-events: auto;
      cursor: default;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.5rem 0.85rem;
      background: linear-gradient(135deg, rgba(232,116,58,0.92), rgba(210,80,30,0.92));
      color: #fff;
      border: 1px solid rgba(255,160,80,0.5);
      border-radius: 999px;
      font-size: 0.84rem;
      font-weight: 600;
      white-space: nowrap;
      box-shadow: 0 2px 10px rgba(210,80,30,0.3);
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 4;
      animation: foodBounce 2.8s ease-in-out infinite;
    }
    .food-pin:hover {
      transform: translate(-50%, -50%) scale(1.08);
      box-shadow: 0 4px 18px rgba(210,80,30,0.45);
    }
    @keyframes foodBounce {
      0%, 100% { transform: translate(-50%, -50%) translateY(0); }
      50% { transform: translate(-50%, -50%) translateY(-3px); }
    }

    /* ── Map ────────────────────────────────────── */
    .map-container {
      flex: 1;
      position: relative;
      overflow: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f5ecda;
    }

    .map-wrap {
      position: relative;
      display: inline-block;
      line-height: 0;
    }

    .map-wrap img {
      display: block;
      max-width: 100%;
      max-height: calc(100vh - 60px);
      width: auto;
      height: auto;
    }

    /* ── Location Pins ─────────────────────────── */
    .pins-layer {
      position: absolute;
      top: 0; right: 0; bottom: 0; left: 0;
      inset: 0;
      pointer-events: none;
    }

    .loc-pin {
      position: absolute;
      transform: translate(-50%, -50%);
      pointer-events: auto;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.6rem 0.85rem;
      background: rgba(139, 90, 43, 0.92);
      color: #fff;
      border: 1px solid rgba(92, 58, 27, 0.8);
      border-radius: 999px;
      font-size: 0.92rem;
      font-weight: 600;
      white-space: nowrap;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 2;
    }

    .loc-pin:hover {
      transform: translate(-50%, -50%) scale(1.06);
      box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    }
    .loc-pin:active {
      transform: translate(-50%, -50%) scale(0.97);
    }

    .loc-pin.favorited {
      background: rgba(212, 160, 56, 0.92);
      border-color: rgba(180, 130, 30, 0.8);
    }

    .loc-pin.vertical {
      flex-direction: column;
      padding: 0.7rem 0.4rem;
      white-space: normal;
      writing-mode: vertical-rl;
      text-orientation: upright;
      letter-spacing: 2px;
    }

    .loc-pin.dimmed {
      opacity: 0.15;
      pointer-events: none;
    }

    .loc-pin.highlighted {
      background: rgba(157, 198, 228, 0.9);
      border-color: rgba(100, 160, 210, 0.8);
      box-shadow: 0 0 12px rgba(157, 198, 228, 0.5);
    }

    /* ── Action Menu ───────────────────────────── */
    .action-menu {
      position: absolute;
      z-index: 60;
      background: rgba(255,255,255,0.96);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      border-radius: 12px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.18);
      border: 1px solid rgba(0,0,0,0.06);
      overflow: hidden;
      width: 140px;
      font-size: 0.85rem;
      display: none;
      animation: menuPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .action-menu.visible { display: block; }

    @keyframes menuPop {
      0% { transform: scale(0.9); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }

    .menu-title {
      padding: 0.45rem 0.8rem;
      background: #f8f7f5;
      border-bottom: 1px solid rgba(0,0,0,0.06);
      font-size: 0.72rem;
      font-weight: 700;
      color: #888;
    }

    .menu-btn {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      width: 100%;
      padding: 0.55rem 0.8rem;
      background: none;
      border: none;
      font-family: inherit;
      font-size: 0.82rem;
      color: #333;
      cursor: pointer;
      transition: background 150ms, color 150ms;
    }
    .menu-btn:hover { background: #eef5ff; color: #2563eb; }
    .menu-btn.fav-action:hover { background: #fffbeb; color: #b8860b; }
    .menu-btn + .menu-btn { border-top: 1px solid rgba(0,0,0,0.04); }

    /* ── Toast ─────────────────────────────────── */
    .toast {
      position: fixed;
      top: 5rem;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(30, 35, 45, 0.92);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      color: #fff;
      padding: 0.6rem 1.4rem;
      border-radius: 999px;
      font-size: 0.84rem;
      font-weight: 500;
      box-shadow: 0 6px 20px rgba(0,0,0,0.25);
      opacity: 0;
      pointer-events: none;
      transition: opacity 300ms;
      z-index: 100;
    }
    .toast.show { opacity: 1; }

    /* ── Fav Counter ───────────────────────────── */
    .fav-counter {
      position: fixed;
      bottom: 1.5rem; left: 1.5rem;
      z-index: 10;
      display: flex; align-items: center; gap: 0.5rem;
      padding: 0.5rem 1rem;
      background: rgba(18, 25, 36, 0.88);
      border: 1px solid var(--line);
      border-radius: 999px;
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      font-size: 0.8rem;
      color: rgba(236, 233, 228, 0.6);
    }
    .fav-counter .star-icon { color: #555; transition: color 300ms; }
    .fav-counter .star-icon.active { color: #f0b429; }
    .fav-count { font-weight: 700; color: var(--ink); }

    /* ── AI Agent ──────────────────────────────── */
    .ai-agent {
      position: fixed;
      bottom: 1.5rem;
      right: 1.5rem;
      z-index: 50;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .agent-avatars {
      position: relative;
      width: 64px;
      height: 64px;
    }
    .agent-avatar {
      position: absolute;
      top: 0; left: 0;
      width: 64px;
      height: 64px;
      cursor: grab;
      filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
      animation: agentFloat 3s ease-in-out infinite;
      opacity: 0;
      transform: scale(0);
      transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      pointer-events: none;
    }
    .agent-avatar.active {
      opacity: 1;
      transform: scale(1);
      pointer-events: auto;
    }
    .agent-avatar:hover {
      animation-play-state: paused;
    }
    .agent-avatars.transforming .agent-avatar.active {
      animation: transformPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    @keyframes transformPop {
      0% { transform: scale(0) rotate(-180deg); opacity: 0; }
      50% { transform: scale(1.3) rotate(10deg); opacity: 1; }
      100% { transform: scale(1) rotate(0deg); opacity: 1; }
    }

    .agent-name-tag {
      margin-top: 4px;
      padding: 0.15rem 0.5rem;
      background: rgba(18, 25, 36, 0.85);
      border-radius: 999px;
      font-size: 0.6rem;
      font-weight: 600;
      color: rgba(236, 233, 228, 0.8);
      white-space: nowrap;
      pointer-events: none;
      -webkit-backdrop-filter: blur(6px);
      backdrop-filter: blur(6px);
    }

    .agent-tooltip {
      position: absolute;
      bottom: calc(100% + 10px);
      right: 0;
      background: rgba(255,255,255,0.96);
      color: #8b5a2b;
      font-size: 0.82rem;
      font-weight: 600;
      padding: 0.55rem 1rem;
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.12);
      white-space: nowrap;
      opacity: 0;
      transform: translateY(6px);
      pointer-events: none;
      transition: opacity 0.3s, transform 0.3s;
    }
    .agent-tooltip::after {
      content: '';
      position: absolute;
      bottom: -6px;
      right: 24px;
      width: 12px;
      height: 12px;
      background: rgba(255,255,255,0.96);
      transform: rotate(45deg);
      box-shadow: 2px 2px 4px rgba(0,0,0,0.06);
    }

    .ai-agent:hover .agent-tooltip {
      opacity: 1;
      transform: translateY(0);
    }

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

    /* ── Chat Box ─────────────────────────────── */
    .chat-box {
      position: fixed;
      bottom: 5.5rem;
      right: 1.5rem;
      z-index: 55;
      width: 370px;
      max-height: 520px;
      background: rgba(255,255,255,0.97);
      border-radius: 18px;
      box-shadow: 0 12px 48px rgba(0,0,0,0.2);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transform: scale(0.5) translateY(20px);
      transform-origin: bottom right;
      opacity: 0;
      pointer-events: none;
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
    }
    .chat-box.open {
      transform: scale(1) translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .chat-header {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.7rem 0.85rem;
      background: linear-gradient(135deg, #d4a056, #c4843a);
      color: #fff;
      flex-shrink: 0;
    }
    .chat-header-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255,255,255,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
    }
    .chat-header-info {
      flex: 1;
    }
    .chat-header-name {
      font-size: 0.92rem;
      font-weight: 700;
    }
    .chat-header-status {
      font-size: 0.7rem;
      opacity: 0.85;
    }
    .chat-close {
      width: 28px;
      height: 28px;
      border: none;
      background: rgba(255,255,255,0.2);
      border-radius: 50%;
      color: #fff;
      font-size: 1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }
    .chat-close:hover {
      background: rgba(255,255,255,0.35);
    }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      min-height: 250px;
      max-height: 320px;
      background: #faf8f5;
    }

    .chat-msg {
      max-width: 82%;
      padding: 0.6rem 0.9rem;
      border-radius: 14px;
      font-size: 0.85rem;
      line-height: 1.55;
      color: #333;
      word-break: break-word;
    }
    .chat-msg.bot {
      align-self: flex-start;
      background: #fff;
      border: 1px solid rgba(0,0,0,0.06);
      border-bottom-left-radius: 4px;
    }
    .chat-msg.user {
      align-self: flex-end;
      background: linear-gradient(135deg, #d4a056, #c4843a);
      color: #fff;
      border-bottom-right-radius: 4px;
    }
    .chat-msg.typing .dot-loader {
      display: inline-flex;
      gap: 4px;
    }
    .chat-msg.typing .dot-loader span {
      width: 6px;
      height: 6px;
      background: #bbb;
      border-radius: 50%;
      animation: dotBounce 1.4s infinite ease-in-out;
    }
    .chat-msg.typing .dot-loader span:nth-child(2) { animation-delay: 0.16s; }
    .chat-msg.typing .dot-loader span:nth-child(3) { animation-delay: 0.32s; }

    @keyframes dotBounce {
      0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
      40% { transform: scale(1); opacity: 1; }
    }

    .chat-input-area {
      display: flex;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      border-top: 1px solid rgba(0,0,0,0.06);
      background: #fff;
      flex-shrink: 0;
    }
    .chat-input {
      flex: 1;
      padding: 0.55rem 0.85rem;
      border: 1px solid rgba(0,0,0,0.1);
      border-radius: 999px;
      font-family: inherit;
      font-size: 0.84rem;
      outline: none;
      color: #333;
      transition: border-color 0.2s;
    }
    .chat-input:focus {
      border-color: #d4a056;
    }
    .chat-input::placeholder {
      color: #bbb;
    }
    .chat-send {
      width: 36px;
      height: 36px;
      border: none;
      background: linear-gradient(135deg, #d4a056, #c4843a);
      border-radius: 50%;
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .chat-send:hover {
      transform: scale(1.08);
      box-shadow: 0 2px 8px rgba(196,132,58,0.4);
    }
    .chat-send:active {
      transform: scale(0.95);
    }

    /* ── 语音输入按钮 ──────────────────────────── */
    .chat-voice-btn {
      width: 36px;
      height: 36px;
      border: 1px solid rgba(0,0,0,0.1);
      background: #fff;
      border-radius: 50%;
      color: #999;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
    }
    .chat-voice-btn:hover {
      color: #d4a056;
      border-color: rgba(212,160,86,0.4);
      background: rgba(212,160,86,0.06);
      transform: scale(1.08);
    }
    .chat-voice-btn:active {
      transform: scale(0.95);
    }
    .chat-voice-btn.listening {
      color: #fff;
      background: #e74c3c;
      border-color: #e74c3c;
      animation: voicePulse 1.5s ease-in-out infinite;
      box-shadow: 0 0 0 4px rgba(231,76,60,0.2);
    }
    @keyframes voicePulse {
      0%, 100% { box-shadow: 0 0 0 4px rgba(231,76,60,0.2); }
      50%      { box-shadow: 0 0 0 8px rgba(231,76,60,0.1); }
    }
    .chat-input.voice-active {
      border-color: #e74c3c;
      background: rgba(231,76,60,0.03);
    }

    /* ── Quick Actions ────────────────────────── */
    .chat-quick-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      padding: 0.2rem 0 0.3rem;
    }
    .chat-quick-actions.hidden { display: none; }
    .chat-quick-btn {
      padding: 0.3rem 0.7rem;
      background: #fff;
      border: 1px solid #d7c5a8;
      border-radius: 999px;
      font-family: inherit;
      font-size: 0.74rem;
      color: #8b5a2b;
      cursor: pointer;
      transition: background 200ms, border-color 200ms, color 200ms;
      white-space: nowrap;
    }
    .chat-quick-btn:hover {
      background: #f5ecda;
      border-color: #c4843a;
      color: #c4843a;
    }

    /* ── Bot 富文本样式 ───────────────────────── */
    .chat-msg.bot strong {
      font-weight: 600;
      color: #5c3a1e;
    }
    .chat-msg.bot ul {
      margin: 0.3rem 0;
      padding-left: 1.2rem;
      list-style: disc;
    }
    .chat-msg.bot li {
      margin-bottom: 0.15rem;
    }

    /* ── Map Stats Overlay ────────────────────── */
    .map-stats {
      position: absolute;
      bottom: 0.8rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 15;
      display: flex;
      align-items: center;
      gap: 0;
      padding: 0.5rem 1.2rem;
      background: rgba(110, 74, 47, 0.82);
      border: 1px solid rgba(139, 90, 43, 0.25);
      border-radius: 999px;
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      font-size: 0.76rem;
      color: rgba(245, 236, 218, 0.7);
      white-space: nowrap;
    }
    .map-stat-item {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0 0.6rem;
    }
    .map-stat-item svg {
      opacity: 0.55;
      flex-shrink: 0;
    }
    .stat-num {
      font-weight: 700;
      color: rgba(245, 236, 218, 0.95);
      font-variant-numeric: tabular-nums;
    }
    .map-stat-sep {
      width: 1px;
      height: 14px;
      background: rgba(245, 236, 218, 0.18);
      flex-shrink: 0;
    }

    /* ── Scene Filter Chips ─────────────────── */
    .scene-filters {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1.5rem;
    }
    .scene-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.45rem 1rem;
      background: #fff;
      border: 1px solid #d7c5a8;
      border-radius: 999px;
      font-family: inherit;
      font-size: 0.8rem;
      font-weight: 500;
      color: #8a7560;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .scene-chip:hover {
      border-color: #b8a080;
      color: #5c4a36;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .scene-chip.active {
      background: var(--map-clay);
      border-color: var(--map-clay);
      color: #fff;
      box-shadow: 0 2px 12px rgba(139, 90, 43, 0.25);
    }
    .scene-chip.active svg {
      stroke: #fff;
    }

    /* ── Site Footer ────────────────────────── */
    .site-footer {
      background: #2c1810;
      color: rgba(236, 233, 228, 0.6);
      padding: 1.8rem 1.5rem 1.5rem;
    }
    .footer-inner {
      max-width: 1180px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
    .footer-brand {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .footer-brand-text {
      font-family: "Roboto", "Noto Sans SC", sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: rgba(236, 233, 228, 0.8);
    }
    .footer-links {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }
    .footer-links a {
      text-decoration: none;
      color: rgba(236, 233, 228, 0.5);
      font-size: 0.82rem;
      transition: color 200ms;
    }
    .footer-links a:hover {
      color: rgba(236, 233, 228, 0.85);
    }
    .footer-slogan {
      font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
      font-size: 0.92rem;
      color: rgba(232, 168, 62, 0.5);
      letter-spacing: 0.15em;
      margin-top: 0.3rem;
    }
    .footer-copy {
      font-size: 0.72rem;
      color: rgba(236, 233, 228, 0.3);
    }

    /* ── Recommendation Section (Apple-style) ───── */
    .reco-section {
      padding: clamp(2rem, 4vw, 3.5rem) clamp(1.2rem, 3vw, 3rem);
      background: #f5ecda;
      border-top: none;
    }

    .reco-header {
      text-align: center;
      margin-bottom: clamp(1.2rem, 3vw, 2.5rem);
    }
    .reco-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.78rem;
      color: #8b5a2b;
      letter-spacing: 0.1em;
      margin-bottom: 0.8rem;
    }
    .reco-eyebrow-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: #8b5a2b;
    }
    .reco-title {
      margin: 0;
      font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
      font-weight: 400;
      font-size: clamp(1.6rem, 3vw, 2.3rem);
      line-height: 1.15;
      color: #2c1810;
    }
    .reco-subtitle {
      margin: 0.8rem 0 0;
      color: #8a7560;
      font-size: 0.92rem;
      max-width: 40ch;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.6;
    }

    .reco-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: clamp(1rem, 2vw, 1.5rem);
      max-width: 1200px;
      margin: 0 auto;
    }

    .reco-card {
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      background: #fff;
      border: none;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
      transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                  box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      display: block;
    }
    .reco-card:hover {
      transform: translateY(-6px) scale(1.01);
      box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    }

    .reco-card-img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      display: block;
      transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reco-card:hover .reco-card-img {
      transform: scale(1.05);
    }

    .reco-card-img-wrap {
      overflow: hidden;
      position: relative;
    }
    .reco-card-tag {
      position: absolute;
      top: 0.8rem;
      left: 0.8rem;
      padding: 0.25rem 0.65rem;
      background: rgba(0,0,0,0.5);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
      border-radius: 999px;
      font-size: 0.68rem;
      font-weight: 600;
      color: #fff;
      letter-spacing: 0.04em;
    }
    .reco-card-tag.match {
      background: rgba(212, 160, 56, 0.85);
    }

    .reco-card-body {
      padding: 1.2rem 1.3rem 1.4rem;
    }
    .reco-card-name {
      margin: 0;
      font-size: 1.1rem;
      font-weight: 700;
      color: #2c1810;
      line-height: 1.3;
    }
    .reco-card-desc {
      margin: 0.45rem 0 0;
      font-size: 0.82rem;
      color: #8a7560;
      line-height: 1.55;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .reco-card-meta {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      margin-top: 0.9rem;
      font-size: 0.74rem;
      color: #a39476;
    }
    .reco-card-meta span {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }

    /* ── Featured wide card ─────────────────── */
    .reco-card.featured {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
    }
    .reco-card.featured .reco-card-img {
      aspect-ratio: 16 / 9;
      height: 100%;
    }
    .reco-card.featured .reco-card-body {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 2rem 2.5rem;
    }
    .reco-card.featured .reco-card-name {
      font-size: 1.5rem;
    }
    .reco-card.featured .reco-card-desc {
      -webkit-line-clamp: 3;
      font-size: 0.88rem;
    }

    /* ── Responsive ─────────────────────────────── */
    @media (max-width: 768px) {
      .explore-topbar-inner {
        grid-template-columns: 1fr;
        height: auto;
        padding: 8px 0;
      }
      .explore-logo span { display: inline; }
      .explore-logo { order: 1; }
      .search-wrap {
        width: min(260px, 70vw);
      }
      .top-links {
        order: 2;
      }
      .top-actions { order: 3; justify-content: flex-start; }
      .user-avatar { width: 38px; height: 38px; }
      .loc-pin { font-size: 0.8rem; padding: 0.5rem 0.65rem; }
      .fav-counter { bottom: 1rem; left: 1rem; }
      .ai-agent { bottom: 1rem; right: 1rem; }
      .agent-avatar { width: 52px; height: 52px; max-width: 52px; max-height: 52px; }
      .chat-box { width: calc(100vw - 1.5rem); right: 0.75rem; bottom: 5.5rem; }
      .reco-grid { grid-template-columns: 1fr; }
      .reco-card.featured { grid-template-columns: 1fr; }
      .reco-card.featured .reco-card-body { padding: 1.2rem 1.3rem 1.4rem; }
      .reco-card.featured .reco-card-name { font-size: 1.2rem; }
      .map-stats { font-size: 0.68rem; padding: 0.4rem 0.8rem; }
      .map-stat-item { padding: 0 0.35rem; }
      .scene-filters { gap: 0.35rem; }
      .scene-chip { padding: 0.35rem 0.7rem; font-size: 0.74rem; }
      .footer-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    }
    /* ── PWA Install Banner ────────────────────── */
    .pwa-install-banner {
      background: linear-gradient(90deg, #faf2e4, #f5ecda);
      border-bottom: 1px solid var(--map-sand-deep);
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height 400ms cubic-bezier(0.22,1,0.36,1), opacity 300ms ease;
    }
    .pwa-install-banner.show {
      max-height: 60px;
      opacity: 1;
    }
    .pwa-banner-inner {
      width: min(1180px, calc(100vw - 24px));
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.55rem 0;
      font-size: 0.82rem;
      color: var(--map-rock);
    }
    .pwa-banner-inner > span { flex: 1; }
    .pwa-install-btn {
      padding: 0.35rem 1rem;
      border: none;
      border-radius: 999px;
      background: var(--map-clay);
      color: #fff;
      font-family: inherit;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 200ms;
    }
    .pwa-install-btn:hover { background: var(--map-rock); }
    .pwa-dismiss-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      border: none;
      border-radius: 50%;
      background: transparent;
      color: var(--map-rock);
      cursor: pointer;
      opacity: 0.5;
      transition: opacity 200ms;
    }
    .pwa-dismiss-btn:hover { opacity: 1; }

    /* ── Background Themes ─────────────────────── */

    /* 大漠落日 */
    body.theme-sunset {
      background: linear-gradient(160deg, #1a0a00 0%, #3d1800 30%, #7a2e00 60%, #c25800 85%, #e8a83e 100%) !important;
    }
    body.theme-sunset .explore-topbar {
      background: linear-gradient(180deg, rgba(61,24,0,0.95) 0%, rgba(61,24,0,0.88) 100%);
      border-bottom-color: rgba(232,168,62,0.2);
    }
    body.theme-sunset .map-container { background: #2a1000; }
    body.theme-sunset .reco-section { background: #2a1000; }
    body.theme-sunset .reco-title { color: #f5d6a0; }
    body.theme-sunset .reco-subtitle { color: rgba(245,214,160,0.6); }
    body.theme-sunset .reco-eyebrow { color: #e8a83e; }
    body.theme-sunset .reco-eyebrow-dot { background: #e8a83e; }
    body.theme-sunset .reco-card { background: rgba(61,24,0,0.6); border: 1px solid rgba(232,168,62,0.15); }
    body.theme-sunset .reco-card-name { color: #f5d6a0; }
    body.theme-sunset .reco-card-desc { color: rgba(245,214,160,0.6); }
    body.theme-sunset .reco-card-meta { color: rgba(245,214,160,0.4); }
    body.theme-sunset .scene-chip { background: rgba(61,24,0,0.6); border-color: rgba(232,168,62,0.25); color: #e8a83e; }
    body.theme-sunset .scene-chip.active { background: #c25800; border-color: #c25800; color: #fff; }
    body.theme-sunset .site-footer { background: #1a0a00; }
    body.theme-sunset .top-link,
    body.theme-sunset .explore-logo { color: #f5d6a0; }
    body.theme-sunset .search-input { background: rgba(245,214,160,0.1); border-color: rgba(232,168,62,0.25); color: #f5d6a0; }
    body.theme-sunset .search-input::placeholder { color: rgba(245,214,160,0.4); }
    body.theme-sunset .search-wrap svg { color: rgba(245,214,160,0.4); }
    body.theme-sunset .user-avatar { background: rgba(245,214,160,0.1); border-color: rgba(232,168,62,0.25); }
    body.theme-sunset .user-avatar .avatar-fallback { color: #e8a83e; }
    body.theme-sunset .food-ranking-section { background: #2a1000; }

    /* 星空夜色 */
    body.theme-night {
      background: linear-gradient(145deg, #0a0e1a 0%, #121924 40%, #1d2d42 100%) !important;
    }
    body.theme-night .explore-topbar {
      background: linear-gradient(180deg, rgba(10,14,26,0.95) 0%, rgba(18,25,36,0.88) 100%);
      border-bottom-color: rgba(157,198,228,0.12);
    }
    body.theme-night .map-container { background: #0d1220; }
    body.theme-night .reco-section { background: #0d1220; }
    body.theme-night .reco-title { color: #9dc6e4; }
    body.theme-night .reco-subtitle { color: rgba(157,198,228,0.5); }
    body.theme-night .reco-eyebrow { color: #9dc6e4; }
    body.theme-night .reco-eyebrow-dot { background: #9dc6e4; }
    body.theme-night .reco-card { background: rgba(18,25,36,0.7); border: 1px solid rgba(157,198,228,0.1); }
    body.theme-night .reco-card-name { color: #ece9e4; }
    body.theme-night .reco-card-desc { color: rgba(236,233,228,0.5); }
    body.theme-night .reco-card-meta { color: rgba(236,233,228,0.35); }
    body.theme-night .scene-chip { background: rgba(18,25,36,0.7); border-color: rgba(157,198,228,0.2); color: #9dc6e4; }
    body.theme-night .scene-chip.active { background: #2f506c; border-color: #2f506c; color: #fff; }
    body.theme-night .site-footer { background: #060a14; }
    body.theme-night .top-link,
    body.theme-night .explore-logo { color: #9dc6e4; }
    body.theme-night .search-input { background: rgba(157,198,228,0.08); border-color: rgba(157,198,228,0.18); color: #ece9e4; }
    body.theme-night .search-input::placeholder { color: rgba(157,198,228,0.35); }
    body.theme-night .search-wrap svg { color: rgba(157,198,228,0.35); }
    body.theme-night .user-avatar { background: rgba(157,198,228,0.08); border-color: rgba(157,198,228,0.18); }
    body.theme-night .user-avatar .avatar-fallback { color: #9dc6e4; }
    body.theme-night .food-ranking-section { background: #0d1220; }

    /* 天山翠谷 */
    body.theme-forest {
      background: linear-gradient(155deg, #0a1a10 0%, #14301e 40%, #1e5035 100%) !important;
    }
    body.theme-forest .explore-topbar {
      background: linear-gradient(180deg, rgba(10,26,16,0.95) 0%, rgba(20,48,30,0.88) 100%);
      border-bottom-color: rgba(120,200,140,0.15);
    }
    body.theme-forest .map-container { background: #0e2016; }
    body.theme-forest .reco-section { background: #0e2016; }
    body.theme-forest .reco-title { color: #a0d8b0; }
    body.theme-forest .reco-subtitle { color: rgba(160,216,176,0.55); }
    body.theme-forest .reco-eyebrow { color: #5cb87a; }
    body.theme-forest .reco-eyebrow-dot { background: #5cb87a; }
    body.theme-forest .reco-card { background: rgba(14,32,22,0.7); border: 1px solid rgba(120,200,140,0.12); }
    body.theme-forest .reco-card-name { color: #c8e8d0; }
    body.theme-forest .reco-card-desc { color: rgba(200,232,208,0.55); }
    body.theme-forest .reco-card-meta { color: rgba(200,232,208,0.35); }
    body.theme-forest .scene-chip { background: rgba(14,32,22,0.7); border-color: rgba(120,200,140,0.2); color: #5cb87a; }
    body.theme-forest .scene-chip.active { background: #2a7a48; border-color: #2a7a48; color: #fff; }
    body.theme-forest .site-footer { background: #061208; }
    body.theme-forest .top-link,
    body.theme-forest .explore-logo { color: #a0d8b0; }
    body.theme-forest .search-input { background: rgba(120,200,140,0.08); border-color: rgba(120,200,140,0.18); color: #c8e8d0; }
    body.theme-forest .search-input::placeholder { color: rgba(120,200,140,0.35); }
    body.theme-forest .search-wrap svg { color: rgba(120,200,140,0.35); }
    body.theme-forest .user-avatar { background: rgba(120,200,140,0.08); border-color: rgba(120,200,140,0.18); }
    body.theme-forest .user-avatar .avatar-fallback { color: #5cb87a; }
    body.theme-forest .food-ranking-section { background: #0e2016; }

    /* 雪域高原 */
    body.theme-snow {
      background: linear-gradient(150deg, #e8eef5 0%, #d0dbe8 40%, #b8c8d8 100%) !important;
    }
    body.theme-snow .explore-topbar {
      background: linear-gradient(180deg, rgba(240,244,250,0.96) 0%, rgba(224,232,242,0.92) 100%);
      border-bottom-color: rgba(160,180,200,0.25);
    }
    body.theme-snow .map-container { background: #dce4ee; }
    body.theme-snow .reco-section { background: #dce4ee; }
    body.theme-snow .reco-title { color: #2c4058; }
    body.theme-snow .reco-subtitle { color: rgba(44,64,88,0.55); }
    body.theme-snow .reco-eyebrow { color: #5080a8; }
    body.theme-snow .reco-eyebrow-dot { background: #5080a8; }
    body.theme-snow .reco-card { background: rgba(255,255,255,0.7); border: 1px solid rgba(160,180,200,0.2); }
    body.theme-snow .reco-card-name { color: #2c4058; }
    body.theme-snow .reco-card-desc { color: rgba(44,64,88,0.6); }
    body.theme-snow .reco-card-meta { color: rgba(44,64,88,0.4); }
    body.theme-snow .scene-chip { background: rgba(255,255,255,0.6); border-color: rgba(160,180,200,0.3); color: #5080a8; }
    body.theme-snow .scene-chip.active { background: #5080a8; border-color: #5080a8; color: #fff; }
    body.theme-snow .site-footer { background: #2c4058; }
    body.theme-snow .top-link,
    body.theme-snow .explore-logo { color: #2c4058; }
    body.theme-snow .search-input { background: rgba(255,255,255,0.5); border-color: rgba(160,180,200,0.3); color: #2c4058; }
    body.theme-snow .search-input::placeholder { color: rgba(44,64,88,0.4); }
    body.theme-snow .search-wrap svg { color: rgba(44,64,88,0.4); }
    body.theme-snow .user-avatar { background: rgba(255,255,255,0.5); border-color: rgba(160,180,200,0.3); }
    body.theme-snow .user-avatar .avatar-fallback { color: #5080a8; }
    body.theme-snow .food-ranking-section { background: #dce4ee; }
