        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            width: 100%;
            height: 100%;
            overflow: hidden;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: #f5f5f5;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        #map {
            width: 100%;
            height: 100vh;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
        }

        /* 开始导览按钮（iOS 语音激活） */
        #start-guide-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 5000;
            transition: opacity 0.3s ease;
        }

        #start-guide-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .start-guide-content {
            text-align: center;
            padding: 40px;
            background: white;
            border-radius: 24px;
            max-width: 320px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }

        .start-guide-content h2 {
            font-size: 24px;
            color: #333;
            margin-bottom: 16px;
        }

        .start-guide-content p {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 24px;
        }

        #start-guide-btn {
            width: 100%;
            padding: 16px 32px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        #start-guide-btn:active {
            transform: scale(0.98);
        }

        /* 自定义 Leaflet 弹窗样式 */
        .leaflet-popup-content-wrapper {
            border-radius: 16px;
            padding: 0;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        }

        .leaflet-popup-content {
            margin: 0;
            width: 280px !important;
        }

        .popup-content {
            padding: 16px;
        }

        .popup-content h3 {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }

        .popup-content .type-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 12px;
        }

        .popup-content .type-badge.attraction {
            background: #e3f2fd;
            color: #1976d2;
        }

        .popup-content .type-badge.service {
            background: #f3e5f5;
            color: #7b1fa2;
        }

        .popup-content .type-badge.toilet {
            background: #e8f5e9;
            color: #388e3c;
        }

        .popup-content .type-badge.parking {
            background: #fff3e0;
            color: #f57c00;
        }

        .popup-content .type-badge.food {
            background: #fce4ec;
            color: #c2185b;
        }

        .popup-content p {
            font-size: 14px;
            line-height: 1.6;
            color: #666;
            margin-bottom: 12px;
        }

        .popup-content img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            border-radius: 8px;
            margin-top: 8px;
        }

        .poi-marker {
            background: transparent;
            border: 0;
        }

        .poi-pin {
            position: relative;
            width: 30px;
            height: 30px;
            border: 2px solid #fff;
            border-radius: 50% 50% 50% 0;
            background: #c43d2b;
            transform: rotate(-45deg);
            box-shadow: 0 3px 9px rgba(0, 0, 0, 0.28);
        }

        .poi-pin::after {
            content: '';
            position: absolute;
            left: 8px;
            top: 8px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #fff;
        }

        .poi-pin.service {
            background: #2f72c9;
        }

        .poi-pin.toilet {
            background: #2f8f56;
        }

        .poi-pin.parking {
            background: #d68522;
        }

        .poi-pin.food {
            background: #c2185b;
        }

        .poi-category-tabs {
            position: fixed;
            top: calc(env(safe-area-inset-top, 0px) + 14px);
            left: 12px;
            right: 12px;
            z-index: 1000;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
            padding: 8px;
            border: 1px solid rgba(48, 36, 28, 0.08);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        }

        .poi-category-tab {
            min-height: 42px;
            padding: 8px 6px;
            border: 1px solid rgba(80, 52, 36, 0.14);
            border-radius: 8px;
            background: #fff;
            color: #2f2f2f;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.2;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        }

        .poi-category-tab.active {
            border-color: #bd4b2a;
            background: #bd4b2a;
            color: #fff;
        }

        /* 手绘图主要景点标注 */
        .handdrawn-marker {
            background: transparent;
            border: 0;
        }

        .handdrawn-marker-inner {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 128px;
            filter: drop-shadow(0 3px 8px rgba(80, 32, 16, 0.28));
        }

        .handdrawn-pin {
            position: relative;
            width: 24px;
            height: 24px;
            flex: 0 0 24px;
            background: #d72f22;
            border: 2px solid #fff;
            border-radius: 50% 50% 50% 0;
            transform: rotate(-45deg);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        }

        .handdrawn-pin::after {
            content: '';
            position: absolute;
            left: 6px;
            top: 6px;
            width: 8px;
            height: 8px;
            background: #fff;
            border-radius: 50%;
        }

        .handdrawn-label {
            display: inline-flex;
            align-items: center;
            min-height: 26px;
            max-width: 104px;
            padding: 4px 8px;
            border: 1px solid rgba(159, 52, 30, 0.2);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.95);
            color: #5f2619;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.15;
            white-space: normal;
        }

        .map-error {
            position: fixed;
            left: 16px;
            right: 16px;
            top: 50%;
            z-index: 2600;
            transform: translateY(-50%);
            padding: 18px 16px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.96);
            color: #4a2a1c;
            font-size: 15px;
            line-height: 1.6;
            text-align: center;
            box-shadow: 0 10px 32px rgba(70, 45, 30, 0.2);
        }

        /* 用户位置标记 */
        .user-location-marker {
            width: 20px;
            height: 20px;
            background: #4285f4;
            border: 3px solid white;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(66, 133, 244, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
            }
        }

        /* 重新定位按钮 */
        .relocate-btn {
            position: fixed;
            bottom: 120px;
            right: 20px;
            width: 48px;
            height: 48px;
            background: white;
            border: none;
            border-radius: 50%;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #4285f4;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .relocate-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        }

        .relocate-btn:active {
            transform: scale(0.95);
        }

        .map-mode-control {
            position: fixed;
            top: calc(env(safe-area-inset-top, 0px) + 86px);
            right: 16px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            width: 72px;
            padding: 10px 8px;
            border: 1px solid rgba(80, 52, 36, 0.12);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
            color: #4a3328;
            font-size: 13px;
            font-weight: 600;
        }

        .map-mode-control input {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }

        .map-mode-switch {
            position: relative;
            width: 42px;
            height: 24px;
            border-radius: 999px;
            background: #d7d7d7;
            transition: background 0.2s ease;
        }

        .map-mode-switch::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
            transition: transform 0.2s ease;
        }

        .map-mode-control input:checked + .map-mode-switch {
            background: #bd4b2a;
        }

        .map-mode-control input:checked + .map-mode-switch::after {
            transform: translateX(18px);
        }

        .custom-zoom-control {
            position: fixed;
            top: calc(env(safe-area-inset-top, 0px) + 186px);
            right: 16px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            width: 72px;
            overflow: hidden;
            border: 1px solid rgba(80, 52, 36, 0.12);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
        }

        .custom-zoom-control button {
            width: 100%;
            height: 42px;
            border: 0;
            background: #fff;
            color: #3b2d26;
            font-size: 24px;
            font-weight: 700;
            line-height: 1;
            cursor: pointer;
        }

        .custom-zoom-control button + button {
            border-top: 1px solid rgba(80, 52, 36, 0.12);
        }

        .custom-zoom-control button:active {
            background: #f5eee8;
        }

        .ai-guide-avatar {
            position: fixed;
            left: 16px;
            bottom: 84px;
            z-index: 1200;
            width: min(92vw, 420px);
            min-height: 180px;
            pointer-events: none;
            display: none !important; /* 🚀 彻底隐藏左下角浮空人偶及对话气泡，防遮挡防重合 */
        }

        .ai-guide-avatar img {
            position: absolute;
            left: 0;
            bottom: 0;
            z-index: 2;
            width: 144px;
            height: 144px;
            object-fit: contain;
            filter: drop-shadow(0 14px 28px rgba(74, 47, 34, 0.38));
            animation: aiCharacterFloat 3.5s ease-in-out infinite;
        }

        .ai-guide-bubble {
            position: absolute;
            left: 112px;
            right: 0;
            bottom: 96px;
            min-height: 86px;
            max-height: 180px;
            padding: 14px 16px;
            border: 1px solid rgba(255, 122, 70, 0.32) !important;
            border-radius: 20px 20px 20px 6px;
            background: rgba(255, 255, 255, 0.88) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            box-shadow: 0 12px 34px rgba(72, 43, 27, 0.22);
            transform-origin: left bottom;
            animation: bubbleIn 0.24s ease-out;
            overflow-y: auto;
        }

        .ai-guide-bubble::before {
            content: '';
            position: absolute;
            left: -10px;
            bottom: 18px;
            width: 18px;
            height: 18px;
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(10px);
            border-left: 1px solid rgba(255, 122, 70, 0.32);
            border-bottom: 1px solid rgba(255, 122, 70, 0.32);
            transform: rotate(45deg);
        }

        .ai-guide-bubble.hidden {
            display: none;
        }

        .ai-guide-status {
            position: relative;
            z-index: 1;
            color: #3e261d;
            font-size: 15px;
            font-weight: 600;
            line-height: 1.65;
            white-space: pre-wrap;
        }

        .ai-guide-avatar.thinking img,
        .ai-guide-avatar.speaking img,
        .ai-guide-avatar.listening img {
            animation: aiTalk 0.85s ease-in-out infinite;
        }

        .ai-guide-avatar.thinking .ai-guide-bubble,
        .ai-guide-avatar.speaking .ai-guide-bubble,
        .ai-guide-avatar.listening .ai-guide-bubble {
            border-color: rgba(255, 122, 70, 0.48) !important;
        }

        /* ♿ H5 智慧导览 V2.0 终极重置：毛玻璃磨砂交互底栏 */
        .voice-chat-bar-v2 {
            position: fixed;
            left: 16px;
            right: 16px;
            bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
            z-index: 1500;
            padding: 16px;
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 24px;
            background: rgba(255, 255, 255, 0.86) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
            box-shadow: 0 12px 36px rgba(74, 47, 34, 0.18);
            display: flex;
            flex-direction: column;
            gap: 12px;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .voice-chat-bar-v2.hidden {
            transform: translateY(calc(100% + 24px));
            opacity: 0;
            pointer-events: none;
        }

        /* 蓝色音色切换气泡胶囊 */
        .voice-tone-capsule {
            align-self: flex-start;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 99px;
            background: linear-gradient(135deg, #56a2ff 0%, #2b7ef5 100%);
            color: white;
            font-size: 12px;
            font-weight: 700;
            box-shadow: 0 4px 10px rgba(43, 126, 245, 0.3);
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .voice-tone-capsule:active {
            transform: scale(0.95);
        }

        .voice-pulse-dot {
            width: 6px;
            height: 6px;
            background: #ffffff;
            border-radius: 50%;
            position: relative;
        }

        .voice-pulse-dot::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: #ffffff;
            animation: tone-pulse 1.6s infinite ease-out;
        }

        @keyframes tone-pulse {
            0% { transform: scale(1); opacity: 0.8; }
            100% { transform: scale(3.5); opacity: 0; }
        }

        /* 实时逐字滚动字幕视口盒 */
        .voice-subtitle-box {
            width: 100%;
            height: 48px;
            overflow-y: hidden;
            position: relative;
            display: flex;
            align-items: center;
        }

        .voice-subtitle-box p {
            width: 100%;
            color: #3e261d;
            font-size: 15px;
            font-weight: 600;
            line-height: 1.6;
            margin: 0;
            text-align: left;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: all 0.2s ease;
            animation: subtitleScrollIn 0.3s ease-out;
        }

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

        /* 智能语音录制按钮 V2.0 */
        .voice-hold-btn-v2 {
            width: 100%;
            height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            border: 1.5px solid #2f1b13;
            border-radius: 14px;
            background: #ffffff;
            color: #2f1b13;
            font-size: 17px;
            font-weight: 800;
            cursor: pointer;
            user-select: none;
            -webkit-user-select: none;
            touch-action: none;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .voice-hold-btn-v2.recording {
            color: #bd4b2a;
            border-color: #bd4b2a;
            background: #fff8f4;
            transform: scale(0.98);
        }

        .voice-hold-btn-v2.recording .voice-stop-icon {
            animation: recordingPulse 1s ease-in-out infinite;
        }

        /* ♿ H5 智慧导览 V2.0 终极重置：毛玻璃微缩景点悬浮卡片 */
        .explanation-panel {
            position: fixed;
            bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); /* 🌟 终极优化：贴合底部，与AI录音卡片完美互斥滑出 */
            left: 16px;
            right: 16px;
            z-index: 1510; /* 高于大底栏 */
            max-width: 480px;
            border: 1px solid rgba(255, 255, 255, 0.6) !important; /* 🚀 剔透发光白金缕细描边 */
            border-radius: 24px;
            background: rgba(255, 255, 255, 0.68) !important; /* 🚀 高奢重塑：由 0.9 降为 0.68，在淡绿地图底色下折射出极其空灵高贵之磨砂毛玻璃感！ */
            backdrop-filter: blur(25px) !important;
            -webkit-backdrop-filter: blur(25px) !important;
            box-shadow: 0 16px 48px rgba(74, 47, 34, 0.15) !important; /* 🚀 丰满温和的空灵投影 */
            display: flex;
            flex-direction: column;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
            transform-origin: bottom center;
        }

        @keyframes kenBurnsEffect {
            0% { transform: scale(1.06); }
            100% { transform: scale(1.0); }
        }

        /* 高清实景风景大片展示区样式 */
        .explanation-image-v2 {
            width: 100%;
            height: 180px; /* 🚀 拍立得大片极佳黄金比例 */
            object-fit: cover;
            border-radius: 16px !important; /* 🚀 优雅的全包围精致圆角，四周 20px 黄金留白包围，打造如同装进相册里的高端拍立得艺术质感 */
            border: 1px solid rgba(80, 52, 36, 0.06) !important; /* 🚀 超细微相框镶边 */
            margin-bottom: 16px !important; /* 🚀 为下方的文字拉开极致舒缓的过渡空间，消除压迫 */
            box-shadow: 0 8px 24px rgba(74, 47, 34, 0.10) !important; /* 🚀 纸张特有的温暖软阴影 */
            transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
            transform-origin: center center;
            animation: kenBurnsEffect 16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .explanation-image-v2:active {
            transform: scale(1.03); /* 🚀 移动端按压响应 */
        }

        .explanation-image-v2.hidden,
        .loading.hidden {
            display: none !important;
        }

        /* 🚀 莫兰迪轻奢流光骨架占位屏样式 */
        .ai-skeleton-loader {
            margin-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            animation: skeleton-fadeIn 0.3s ease-out;
        }

        .skeleton-line {
            height: 10px;
            border-radius: 5px;
            background: linear-gradient(90deg, rgba(80, 52, 36, 0.04) 25%, rgba(80, 52, 36, 0.1) 37%, rgba(80, 52, 36, 0.04) 63%);
            background-size: 400% 100%;
            animation: skeleton-loading 1.4s ease infinite;
        }

        .skeleton-line.line-1 { width: 90%; }
        .skeleton-line.line-2 { width: 100%; }
        .skeleton-line.line-3 { width: 65%; }

        @keyframes skeleton-fadeIn {
            from { opacity: 0; transform: translateY(4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes skeleton-loading {
            0% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* 优雅平滑滑出 */
        .explanation-panel.hidden {
            transform: translateY(calc(100% + 24px)) scale(0.96);
            opacity: 0;
            pointer-events: none;
        }

        .panel-header-v2 {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px 10px 20px;
            border-bottom: 1px solid rgba(80, 52, 36, 0.08);
        }

        .panel-header-v2 h3 {
            font-size: 17px;
            font-weight: 800;
            color: #3e261d;
            margin: 0;
            max-width: 55%; /* 🚀 终极防御：物理限制大标题最大宽度 55%，为右侧按钮留足绝对安全的舒适容纳宽度 */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* 亮橙色渐变精品路线规划按钮 */
        .guide-route-btn {
            height: 28px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 0 10px;
            border: 1px solid rgba(80, 52, 36, 0.14);
            border-radius: 99px;
            background: rgba(80, 52, 36, 0.03);
            color: #4a2f22;
            font-size: 12px;
            font-weight: 500; /* 🚀 降低字重至轻盈的 500，呈现秀气禅意，告别呆板粗大 */
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .guide-route-btn:hover {
            background: rgba(80, 52, 36, 0.08);
            border-color: rgba(80, 52, 36, 0.30);
            transform: scale(1.04);
        }

        .guide-route-btn:active {
            transform: scale(0.96);
        }

        .close-btn-v2 {
            width: 28px;
            height: 28px;
            border: none;
            background: rgba(80, 52, 36, 0.06);
            border-radius: 50%;
            font-size: 20px;
            color: #4a2f22;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .close-btn-v2:hover {
            background: rgba(80, 52, 36, 0.12);
        }

        .panel-content-v2 {
            padding: 14px 20px 45px 20px; /* 🚀 底部增加 45px 的安全空间，确保文字滚到底部时绝不被悬浮控制胶囊遮挡 */
            min-height: 100px; /* 🚀 为默认短句子保留雅致的禅意留白，消除打字时的高度大跳动 */
            max-height: 280px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }

        .panel-content-v2::-webkit-scrollbar {
            display: none !important; /* 🚀 彻底干掉黑乎乎的滚动条，高贵感拉满 */
        }
 
        .explanation-text-v2 {
            font-size: 14px;
            line-height: 1.76 !important; /* 🚀 极致舒缓行高，带来宣纸般舒适阅读体验 */
            color: #5c443c !important; /* 🚀 改为精细温润的深灰木色，高雅柔和 */
            font-weight: 500 !important; /* 🚀 告别粗重的 600，回归优雅精致的 500 Medium */
            letter-spacing: 0.03em !important; /* 🚀 微微拉开字距，空灵不拥挤 */
            white-space: pre-wrap;
            text-align: left;
        }

        /* 🤖 极其精美局部加载样式 - 保障大图绝不动摇，完美消除突兀跳跃感 */
        .ai-loading-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 16px 0;
            color: #7f00ff;
            font-size: 14px;
            font-weight: 800;
            animation: pulse-loading 1.2s infinite alternate;
        }

        .spinner-mini {
            width: 18px;
            height: 18px;
            border: 2.5px solid rgba(127, 0, 255, 0.15);
            border-top: 2.5px solid #7f00ff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes pulse-loading {
            0% { opacity: 0.6; }
            100% { opacity: 1.0; }
        }

        .panel-intro-actions {
            position: relative; /* 🚀 建立绝对定位基准 */
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 10px 20px 16px 20px;
            border-top: 1px solid rgba(80, 52, 36, 0.08);
        }

        .start-explain-btn {
            width: 100%;
            padding: 12px 20px;
            border: none;
            border-radius: 14px;
            font-size: 15px;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: #ffffff;
            background: linear-gradient(135deg, #5c3e35 0%, #3a221b 100%); /* 🚀 古木玄金尊贵东方美学配色 */
            box-shadow: 0 6px 20px rgba(58, 34, 27, 0.22);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            animation: pulse-explain 2.6s infinite alternate;
        }

        /* 🚀 极智高奢常驻麦克风提问大胶囊：升格为“智慧明珠”高奢白金玄金风格 */
        .panel-voice-btn-luxury {
            width: 100%;
            padding: 13px 20px !important;
            border: 1px solid rgba(184, 138, 83, 0.22) !important; /* 🚀 发光金缕丝浮雕描边 */
            border-radius: 16px !important;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px !important;
            color: #ffffff !important; /* 🚀 文字升级为尊贵的羊脂温润白 */
            background: linear-gradient(135deg, #5c3e35 0%, #3a221b 100%) !important; /* 🚀 重塑为极其尊贵的古木玄金渐变背景 */
            box-shadow: 0 6px 20px rgba(58, 34, 27, 0.22) !important; /* 🚀 丰盈且克制的 3D 微浮雕悬浮阴影 */
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }

        .panel-voice-btn-luxury .panel-mic-icon {
            color: #ff9800 !important; /* 🚀 圆点亮起灵动琥珀橙 */
            font-size: 9px !important;
            transition: transform 0.3s ease;
            position: relative;
            animation: pulse-mic-dot 1.8s infinite ease-in-out;
        }

        @keyframes pulse-mic-dot {
            0% { transform: scale(0.9); opacity: 0.7; filter: drop-shadow(0 0 1px #ff9800); }
            50% { transform: scale(1.3); opacity: 1.0; filter: drop-shadow(0 0 5px #ff9800); }
            100% { transform: scale(0.9); opacity: 0.7; filter: drop-shadow(0 0 1px #ff9800); }
        }

        .panel-voice-btn-luxury:active {
            transform: scale(0.97) translateY(1px) !important;
            background: linear-gradient(135deg, #4b322a 0%, #2e1a14 100%) !important;
            box-shadow: 0 3px 10px rgba(58, 34, 27, 0.15) !important;
        }

        /* 录音状态：温暖珊瑚橙渐变 */
        .panel-voice-btn-luxury.recording {
            background: linear-gradient(135deg, #e06c55 0%, #bd4b2a 100%) !important;
            box-shadow: 0 6px 22px rgba(189, 75, 42, 0.3) !important;
            animation: recordingPulse 1.2s infinite ease-in-out !important;
        }

        /* 思考状态：古木玄金微脉动发光 */
        .panel-voice-btn-luxury.thinking {
            background: linear-gradient(135deg, #442d27 0%, #291712 100%) !important; /* 🚀 保持玄金大胶囊底色，只做略微暗沉 */
            border: 1px solid rgba(184, 138, 83, 0.35) !important; /* 金边发光微凸显 */
            box-shadow: 0 4px 15px rgba(58, 34, 27, 0.15) !important;
            color: rgba(255, 255, 255, 0.70) !important; /* 🚀 优雅温润白 */
            pointer-events: none !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            background-size: initial !important;
            animation: none !important;
        }

        .panel-voice-btn-luxury.thinking .panel-mic-icon {
            color: #ff9800 !important; /* 🚀 圆点琥珀橙 */
            animation: thinking-dot-pulse 1.4s infinite ease-in-out !important;
            display: inline-block;
        }

        @keyframes thinking-dot-pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 0.5;
            }
            50% {
                transform: scale(1.4);
                opacity: 1;
                text-shadow: 0 0 8px rgba(108, 92, 231, 0.6);
            }
        }

        .start-explain-btn:active {
            transform: scale(0.96);
            box-shadow: 0 3px 10px rgba(58, 34, 27, 0.15);
        }

        @keyframes loading-shimmer {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .start-explain-btn.btn-loading {
            background: linear-gradient(90deg, #8a736c, #a8948e, #6e5650, #8a736c) !important;
            background-size: 300% 100% !important;
            box-shadow: 0 4px 15px rgba(58, 34, 27, 0.15) !important;
            pointer-events: none !important; /* 禁用重复点击 */
            animation: loading-shimmer 2.2s infinite linear !important;
        }

        /* 🚀 极其精美：正在语音播报时的【正在讲解】工作态大按钮样式 */
        .start-explain-btn.btn-speaking {
            background: linear-gradient(135deg, #5c3e35 0%, #4e322b 100%) !important;
            box-shadow: 0 4px 15px rgba(58, 34, 27, 0.18) !important;
            animation: pulse-speaking 3s infinite alternate !important;
        }

        @keyframes pulse-speaking {
            0% {
                box-shadow: 0 4px 12px rgba(58, 34, 27, 0.12);
            }
            100% {
                box-shadow: 0 6px 20px rgba(58, 34, 27, 0.28);
            }
        }

        .spinner-mini-white {
            width: 16px;
            height: 16px;
            border: 2.5px solid rgba(255, 255, 255, 0.25);
            border-top: 2.5px solid #ffffff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes pulse-explain {
            0% {
                box-shadow: 0 6px 18px rgba(58, 34, 27, 0.18);
            }
            100% {
                box-shadow: 0 10px 24px rgba(58, 34, 27, 0.35);
            }
        }

        /* 🔊 景点讲解头部极简二合一喇叭控制按钮 */
        .header-speaker-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            height: 28px;
            padding: 0 10px;
            border-radius: 99px;
            font-size: 12px;
            font-weight: 500; /* 🚀 降低字重至轻盈的 500，呈现秀气禅意，告别呆板粗大 */
            cursor: pointer;
            user-select: none;
            transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            /* 🚀 极其精美融合：默认停止态（重播）下与旁边的“路线”按钮色系完全对齐，浑然天成 */
            background: rgba(80, 52, 36, 0.03);
            border: 1px solid rgba(80, 52, 36, 0.14);
            color: #4a2f22;
        }

        .header-speaker-btn.hidden {
            display: none !important;
        }

        .header-speaker-btn:hover {
            background: rgba(80, 52, 36, 0.08);
            border-color: rgba(80, 52, 36, 0.28);
            transform: scale(1.04);
        }

        .header-speaker-btn:active {
            transform: scale(0.94);
        }

        /* 包豪斯极简几何图形点缀样式，完美平替恶俗Emoji */
        .header-speaker-btn .speaker-icon-dot {
            font-size: 9px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-right: 1px;
        }

        .header-speaker-btn .dot-play {
            color: #4a2f22;
            transform: scale(0.85);
        }

        .header-speaker-btn.playing .dot-stop {
            color: #bd4b2a;
            transform: scale(0.8);
        }

        .header-speaker-btn .speaker-label {
            letter-spacing: 0.5px;
        }

        /* 🚀 播放中状态（停止）：柔和的呼吸微动及克制温和的莫兰迪珊瑚红暗示可以一键停止 */
        .header-speaker-btn.playing {
            background: rgba(235, 94, 85, 0.08) !important;
            border-color: rgba(235, 94, 85, 0.2) !important;
            color: #eb5e55 !important;
        }

        .header-speaker-btn.playing .speaker-icon {
            animation: pulse-speaker-bubble 1.4s infinite ease-in-out;
        }

        /* 动画定义 */
        @keyframes pulse-speaker-bubble {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.15);
                opacity: 0.75;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .panel-actions-v2 {
            display: none !important;
        }

        .action-btn-v2 {
            flex: 1;
            padding: 8px 16px;
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s ease;
        }

        .action-btn-v2.secondary {
            background: rgba(80, 52, 36, 0.06);
            color: #4a2f22;
        }

        .action-btn-v2.secondary:hover {
            background: rgba(80, 52, 36, 0.12);
        }

        .action-btn-v2:active {
            transform: scale(0.97);
        }

        /* 🚀 极其精美融合的 AI 面板语音追问主按钮 */
        .panel-voice-btn {
            flex: 1.5;
            padding: 8px 16px;
            border: none;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: #ffffff;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: visible;
        }

        .panel-voice-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
        }

        .panel-voice-btn:active {
            transform: scale(0.97);
        }

        /* 录音状态 */
        .panel-voice-btn.recording {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            box-shadow: 0 4px 16px rgba(245, 87, 108, 0.4);
            animation: pulse-panel-recording 1.5s ease-in-out infinite;
        }

        .panel-voice-btn.recording .panel-mic-icon {
            transform: scale(1.15);
        }

        .panel-voice-wave-ring {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 12px;
            border: 2px solid rgba(245, 87, 108, 0.6);
            opacity: 0;
            pointer-events: none;
            top: 0; left: 0;
        }

        .panel-voice-btn.recording .panel-voice-wave-ring {
            animation: panel-wave-expand 1.5s ease-out infinite;
        }

        @keyframes pulse-panel-recording {
            0%, 100% {
                box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
            }
            50% {
                box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
            }
        }

        @keyframes panel-wave-expand {
            0% {
                transform: scale(1);
                opacity: 0.8;
            }
            100% {
                transform: scale(1.2, 1.4);
                opacity: 0;
            }
        }

        /* 思考状态 */
        .panel-voice-btn.thinking {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
            color: #764ba2;
            box-shadow: 0 4px 12px rgba(168, 237, 234, 0.3);
        }

        .panel-voice-btn.thinking .panel-mic-icon {
            animation: panel-thinking-bounce 0.6s ease-in-out infinite;
        }

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

        /* 加载遮罩 */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.95);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3000;
            transition: opacity 0.3s ease;
        }

        .loading-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .loading-content {
            text-align: center;
        }

        .loading-content p {
            margin-top: 16px;
            font-size: 16px;
            color: #666;
        }

        .status-toast {
            position: fixed;
            left: 16px;
            right: 16px;
            top: calc(env(safe-area-inset-top, 0px) + 16px);
            z-index: 3000;
            padding: 12px 14px;
            border-radius: 12px;
            background: rgba(34, 34, 34, 0.92);
            color: #fff;
            font-size: 14px;
            line-height: 1.5;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
            transform: translateY(-16px);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .status-toast.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .status-toast.warning {
            background: rgba(181, 101, 29, 0.95);
        }

        .calibration-panel {
            position: fixed;
            left: 16px;
            top: calc(env(safe-area-inset-top, 0px) + 72px);
            z-index: 2200;
            width: min(360px, calc(100vw - 32px));
            padding: 12px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.96);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
            color: #1f2933;
            font-size: 13px;
        }

        .calibration-header {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .calibration-field {
            display: grid;
            gap: 6px;
            margin-bottom: 8px;
        }

        .calibration-field span,
        .calibration-mode {
            color: #52606d;
            font-size: 12px;
        }

        .calibration-field select,
        .calibration-panel textarea {
            width: 100%;
            border: 1px solid #d9e2ec;
            border-radius: 6px;
            background: #fff;
            color: #102a43;
            font: inherit;
        }

        .calibration-field select {
            height: 34px;
            padding: 0 8px;
        }

        .calibration-panel textarea {
            min-height: 112px;
            margin-top: 8px;
            padding: 8px;
            resize: vertical;
            font-family: Consolas, Monaco, monospace;
            font-size: 12px;
            line-height: 1.45;
        }

        .calibration-panel button {
            width: 100%;
            min-height: 36px;
            margin-top: 8px;
            border: 0;
            border-radius: 6px;
            background: #1f6feb;
            color: #fff;
            font-weight: 700;
        }

        /* 响应式调整 */
        @media (max-width: 480px) {
            .ai-guide-avatar {
                left: 10px;
                bottom: 100px;
                width: calc(100vw - 20px);
                min-height: 168px;
            }

            .ai-guide-avatar img {
                width: 116px;
                height: 116px;
            }

            .ai-guide-bubble {
                left: 92px;
                bottom: 72px;
                max-height: 150px;
                padding: 12px 14px;
            }

            .ai-guide-status {
                font-size: 14px;
                line-height: 1.55;
            }

            .poi-category-tabs {
                gap: 6px;
                padding: 6px;
            }

            .poi-category-tab {
                min-height: 40px;
                padding: 6px 4px;
                font-size: 13px;
            }

            .leaflet-popup-content {
                width: 260px !important;
            }

            .explanation-panel {
                max-height: 80vh;
            }

            .calibration-panel {
                left: 10px;
                right: 10px;
                top: calc(env(safe-area-inset-top, 0px) + 64px);
                width: auto;
            }
        }

/* AI行程规划专有样式 */

/* 1. Leaflet 发光与流动有向路线样式 */
@keyframes stroke-flow {
    to {
        stroke-dashoffset: -20;
    }
}
.leaflet-ant-path-glow {
    animation: stroke-flow 1.2s linear infinite !important;
    filter: drop-shadow(0 0 3px rgba(0, 184, 148, 0.6));
}

/* 2. 精美发光序号 Marker 样式 */
.travel-route-marker-icon {
    background: transparent !important;
    border: none !important;
}

.route-marker-inner {
    position: relative;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00b894, #00decb);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
    transition: transform 0.2s ease;
}

.route-marker-inner:hover {
    transform: scale(1.15);
}

.route-marker-num {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: bold !important;
    font-family: "Outfit", "Inter", -apple-system, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.route-marker-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0, 184, 148, 0.4);
    animation: marker-pulse 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes marker-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* 3. 毛玻璃 AI 行程规划助手侧边栏 */
.ai-plan-sidebar {
    position: fixed;
    top: 16px;
    right: 16px;
    bottom: 96px; /* 留出底部对话栏的空间 */
    width: min(340px, calc(100vw - 32px));
    z-index: 2500;
    
    /* 极致毛玻璃玻璃拟态 */
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.ai-plan-sidebar.collapsed {
    transform: translateX(calc(100% + 32px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ai-plan-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-plan-header h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
}

.ai-plan-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #2c3e50 !important;
}

.ai-plan-content h3 {
    font-size: 15px !important;
    margin-top: 15px !important;
    margin-bottom: 8px !important;
    color: #00b894 !important;
}

.ai-plan-content strong {
    color: #2e86de !important;
}

.ai-plan-content li {
    margin-bottom: 6px !important;
    list-style-type: none !important;
    position: relative !important;
    padding-left: 14px !important;
}

.ai-plan-content li::before {
    content: "•";
    color: #00b894 !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
}

.ai-plan-actions {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.5) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex;
    gap: 10px;
}

/* 4. 浮动气泡唤起按钮 */
.ai-plan-toggle-btn {
    position: fixed;
    right: 16px;
    bottom: 160px; /* 避开其他定位控件 */
    z-index: 2400;
    
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 30px;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    box-shadow: 0 8px 24px rgba(0, 184, 148, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-plan-toggle-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0, 184, 148, 0.3);
}

.ai-plan-toggle-btn.hidden {
    transform: scale(0.8) translateY(20px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 按钮微动呼吸动画 */
.pulse-ring {
    width: 8px;
    height: 8px;
    background: #00b894;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #00b894;
    animation: btn-pulse 1.8s infinite ease-out;
}

@keyframes btn-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3.2);
        opacity: 0;
    }
}

/* 手机端适配 */
@media (max-width: 480px) {
    .ai-plan-sidebar {
        top: auto !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 90px) !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        height: min(320px, 45vh) !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
    }
    
    .ai-plan-sidebar.collapsed {
        transform: translateY(calc(100% + 100px)) !important;
    }
    
    .ai-plan-toggle-btn {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 160px) !important;
        right: 10px !important;
    }
}

/* ============================================================================
   ♿ H5 智慧导览 V2.0「3D 玩具盲盒小人国」核心 CSS 特效及交互动画
   ============================================================================ */

/* 3D 黏土小房子弹簧交互与上下微动浮动动画 */
.chibi-3d-marker-spring {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: chibiFloat 3.5s ease-in-out infinite;
    transform-origin: bottom center;
}

/* 浮动呼吸特效 */
@keyframes chibiFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* 鼠标 Hover 弹簧膨胀 */
.chibi-3d-marker-spring:hover .chibi-3d-building-img {
    transform: scale(1.18) translateY(-3px) !important;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,0.38)) !important;
}

.chibi-3d-marker-spring:hover .chibi-3d-label {
    transform: scale(1.08) translateY(-1px) !important;
    background: #ffffff !important;
    border-color: #bd4b2a !important;
    color: #bd4b2a !important;
}

/* 鼠标按下/点击 弹性缩回反馈 */
.chibi-3d-marker-spring:active .chibi-3d-building-img {
    transform: scale(0.92) translateY(1px) !important;
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.chibi-3d-marker-spring:active .chibi-3d-label {
    transform: scale(0.95) !important;
}

/* Leaflet 容器包装，消除多余底色与溢出限制 */
.leaflet-chibi-3d-marker-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ♿ 智能水滴定位针 (Tear-drop Pins) 点击/按下果冻弹簧过渡 */
.leaflet-custom-marker-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    /* ⚠️ 绝对不要在 Leaflet 容器本身应用 transform 的 transition 或 scale，这会完全覆盖 Leaflet 的 translate3d 绝对定位，导致路标在拖拽/缩放/点击时满屏幕飘移甚至飞走！ */
}

/* 悬停：只放大内部主体，绝不改变父容器坐标 */
.leaflet-custom-marker-wrapper:hover .custom-map-marker-pin {
    transform: scale(1.15) !important;
}

.leaflet-custom-marker-wrapper:hover .custom-map-marker-pin > svg {
    filter: drop-shadow(0 6px 14px rgba(74, 47, 34, 0.38)) brightness(1.08) !important;
}

/* 点击/按下：内部子元素按压收缩，极佳的果冻反馈，绝对不破坏父容器 Leaflet 定位 */
.leaflet-custom-marker-wrapper:active .custom-map-marker-pin {
    transform: scale(0.9) !important;
    transition: transform 0.1s ease !important;
}

/* ==========================================================================
   🤖 顶级 AI 导览卡片美学升级样式：声波能量图、流光边框、打字机光标、智能追问气泡
   ========================================================================= */

/* 🤖 1. AI 极其震撼的极光流光激活状态 (Radiant Flowing Border & Aurora Shadow) */
.explanation-panel {
    transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease !important;
}

.explanation-panel.ai-active-glow {
    border-color: rgba(255, 122, 70, 0.18) !important;
    background: rgba(255, 255, 255, 0.90) !important;
    box-shadow: 
        0 12px 40px rgba(255, 122, 70, 0.06), 
        0 0 15px rgba(255, 62, 17, 0.03),
        inset 0 0 12px rgba(255, 122, 70, 0.02) !important;
}

/* 霓虹发光呼吸光环 */
.explanation-panel.ai-active-glow::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(90deg, #ff7a46, #ff3e11, #fbbf24, #2eff8b, #ff7a46);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: 20px;
    animation: flowBorder 6s linear infinite;
    filter: blur(6px);
    opacity: 0.25; /* 🚀 调低不透明度，由 0.7 降至 0.25，带来极其优雅低调的微发光质感 */
    pointer-events: none;
}

@keyframes flowBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 🔊 2. AI 能量声波图跳动 (Audio Waveform Equalizer) */
.ai-audio-waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    padding-bottom: 2px;
    margin-left: 12px;
    transition: opacity 0.3s ease;
}

.ai-audio-waveform .bar {
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ff7a46, #e63e20);
    border-radius: 2px;
    animation: bounce 0.8s ease-in-out infinite alternate;
    transform-origin: bottom;
}

.ai-audio-waveform.paused .bar {
    animation-play-state: paused !important;
    transform: scaleY(0.2) !important;
}

.ai-audio-waveform .bar-1 { animation-delay: 0.1s; animation-duration: 0.5s; }
.ai-audio-waveform .bar-2 { animation-delay: 0.3s; animation-duration: 0.7s; }
.ai-audio-waveform .bar-3 { animation-delay: 0.2s; animation-duration: 0.6s; }
.ai-audio-waveform .bar-4 { animation-delay: 0.4s; animation-duration: 0.8s; }
.ai-audio-waveform .bar-5 { animation-delay: 0.15s; animation-duration: 0.65s; }

@keyframes bounce {
    0% { transform: scaleY(0.15); }
    100% { transform: scaleY(1.0); }
}

/* ✍️ 3. 流式打字机闪烁光标与思考闪烁 */
.ai-typing-cursor {
    color: #ff3e11;
    font-weight: 900;
    margin-left: 2px;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* 🔮 峒峒 AI 智能加载板（极其雅致高奢，告别廉价水货感） */
.ai-thinking-plate {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 10px 0;
    border-radius: 16px;
    border: 1px solid rgba(108, 92, 231, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(245, 240, 255, 0.5) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.05);
    animation: plateSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ✦ 两个高亮旋转交织的加载小星星 */
.ai-sparkle-loader {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.ai-sparkle-loader .sparkle {
    position: absolute;
    color: #6c5ce7;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    animation: sparkleRotate 2.5s infinite linear;
}

.ai-sparkle-loader .sp-1 {
    left: 2px;
    top: 2px;
    animation-duration: 2.2s;
}

.ai-sparkle-loader .sp-2 {
    right: 2px;
    bottom: 2px;
    color: #e06c55;
    font-size: 12px;
    animation-direction: reverse;
    animation-duration: 1.8s;
}

@keyframes sparkleRotate {
    0% { transform: rotate(0deg) scale(0.9); opacity: 0.7; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 1; }
    100% { transform: rotate(360deg) scale(0.9); opacity: 0.7; }
}

.ai-thinking-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    text-align: left;
}

.ai-thinking-label {
    font-size: 13px;
    font-weight: 700;
    color: #5345c2;
    letter-spacing: 0.5px;
}

.ai-thinking-quote {
    font-size: 14px;
    font-weight: 600;
    color: #4a2f22;
    line-height: 1.4;
    font-style: italic;
    opacity: 0.85;
}

/* 🔍 4. AI 智能追问气泡容器 (AI Sparkles) */
.ai-followups-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid transparent !important; /* 🚀 变虚线为金沙微光流动实线 */
    border-image: linear-gradient(90deg, rgba(80, 52, 36, 0) 0%, rgba(184, 138, 83, 0.18) 50%, rgba(80, 52, 36, 0) 100%) 1 !important;
    animation: fadeInFollowups 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.ai-followup-spark {
    background: rgba(255, 255, 255, 0.45) !important; /* 🚀 增加微弱磨砂底色，呈现晶莹剔透的水晶药丸感 */
    border: 1px solid rgba(184, 138, 83, 0.16) !important; /* 🚀 发丝级微光金丝细描边 */
    border-radius: 99px !important; /* 🚀 变成更秀气的极圆小胶囊 */
    padding: 6px 14px !important;
    font-size: 13px;
    color: #5c443c !important; /* 🚀 极其温润的深灰木色 */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(80, 52, 36, 0.02) !important; /* 🚀 增加空灵呼吸微阴影 */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInFollowups 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pulse-spark {
    0% { transform: scale(0.8) rotate(-10deg); opacity: 0.6; }
    100% { transform: scale(1.1) rotate(10deg); opacity: 1.0; }
}

/* 🚀 极其精美：用灵感闪烁“✦”星芒取代圆点，科技感与古典文化撞击，质感拉满 */
.ai-followup-spark::before {
    content: '✦' !important;
    display: inline-block;
    color: #b88a53 !important; /* 🚀 优雅金沙色 */
    font-size: 10px !important;
    margin-right: 4px !important;
    flex-shrink: 0;
    background: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    animation: pulse-spark 1.8s infinite alternate !important;
}

.ai-followup-spark:nth-child(2) {
    animation-delay: 0.12s !important; /* 🚀 第二个气泡微调出场延迟，营造灵动的级联律动感 */
}

.ai-followup-spark:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 5px 12px rgba(80, 52, 36, 0.06) !important;
    border-color: rgba(184, 138, 83, 0.4) !important;
    color: #3e261d !important;
}

.ai-followup-spark:active {
    transform: translateY(0) scale(0.97);
}

/* ========================================
   浮动语音按钮 (极简主义设计)
   ======================================== */
.floating-voice-btn {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: none !important; /* 🚀 彻底物理下线隐藏：因为景点卡片内已常驻豪华语音大胶囊，主页麦克风完全多余且遮挡，100% 强力隐藏 */
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
}

.floating-voice-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.floating-voice-btn:active {
    transform: scale(0.95);
}

.floating-voice-btn .mic-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

/* 录音状态 */
.floating-voice-btn.recording {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse-recording 1.5s ease-in-out infinite;
}

.floating-voice-btn.recording .mic-icon {
    transform: scale(1.2);
}

/* 波纹动画 */
.voice-wave-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(102, 126, 234, 0.6);
    opacity: 0;
    pointer-events: none;
}

.floating-voice-btn.recording .voice-wave-ring {
    animation: wave-expand 1.5s ease-out infinite;
}

@keyframes pulse-recording {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(245, 87, 108, 0.4);
    }
    50% {
        box-shadow: 0 12px 36px rgba(245, 87, 108, 0.7);
    }
}

@keyframes wave-expand {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* 思考状态 */
.floating-voice-btn.thinking {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.floating-voice-btn.thinking .mic-icon {
    animation: thinking-bounce 0.6s ease-in-out infinite;
}

@keyframes thinking-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* ========================================
   全局强力隐藏样式 (防遮挡自愈)
   ======================================== */
.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 🚀 物理级强隐防线：利用现代 CSS :has 选择器，在卡片展开时瞬间物理蒸发主页悬浮话筒，彻底避开微信JS缓存或延迟，杜绝重复遮挡 */
body:has(#explanation-panel:not(.hidden)) #floating-voice-btn {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* 🚀 高奢莫兰迪：前瞻介绍文字呼吸渐变加载动效，取代丑陋粗糙的灰色大横条骨架屏 */
.explanation-pre-text {
    font-size: 14px;
    line-height: 1.76 !important;
    color: #5c443c !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    animation: textPulseShimmer 1.8s infinite ease-in-out;
}

@keyframes textPulseShimmer {
    0% { opacity: 0.60; }
    50% { opacity: 0.95; }
    100% { opacity: 0.60; }
}
