/* 位置消息气泡 / 高德共享弹窗 / 实时位置 / 手绘地图层 — 自 style.css 拆出 */
.location-modal {
    z-index: 2000;
}

.location-modal-content {
    width: 320px;
    max-width: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: hidden;
}

.location-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.location-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.location-modal-body {
    padding: 20px;
}

.location-form-group {
    margin-bottom: 16px;
}

.location-form-group:last-child {
    margin-bottom: 0;
}

.location-form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.location-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.location-input:focus {
    outline: none;
    border-color: #07C160;
}

.location-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.location-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.location-cancel-btn {
    background: #f0f0f0;
    color: #333;
}

.location-confirm-btn {
    background: #07C160;
    color: white;
}

/* 高德位置共享弹窗增强样式 */
.location-modal-content {
    width: 360px;
}
.location-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}
.location-source-group .location-source-options {
    display: flex;
    gap: 8px;
}
.location-source-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    font-size: 13px;
}
.location-source-option:hover {
    border-color: #07C160;
    background: #f3fbf6;
}
.location-source-option input[type="radio"] {
    margin: 0;
    accent-color: #07C160;
    width: 14px;
    height: 14px;
}
.location-source-option input[type="radio"]:checked + .location-source-name {
    color: #07C160;
    font-weight: 600;
}
.location-source-option:has(input[type="radio"]:checked) {
    border-color: #07C160;
    background: #f3fbf6;
}
.location-source-name {
    color: #333;
    font-size: 13px;
    font-weight: 500;
}
.location-source-tag {
    margin-left: auto;
    color: #999;
    font-size: 11.5px;
    background: #fff;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #eee;
}
.location-search-group {
    position: relative;
}
.location-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    z-index: 9;
}
.location-search-row {
    padding: 9px 12px;
    border-bottom: 1px solid #f3f3f3;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.45;
}
.location-search-row:last-child { border-bottom: none; }
.location-search-row:hover { background: #f6fbf6; }
.location-search-row--info {
    cursor: default;
    text-align: center;
    padding: 14px 10px;
    font-size: 12.5px;
}
.location-search-row--info:hover { background: transparent; }
.location-search-row-title {
    color: #222;
    font-weight: 600;
}
.location-search-row-sub {
    color: #888;
    font-size: 12px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.location-map-preview {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f6;
    border: 1px solid #e6e6e6;
}
.location-map-empty-hint {
    font-size: 12.5px;
    color: #999;
    line-height: 1.55;
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
}
.location-coord-hint {
    font-size: 11.5px;
    color: #07C160;
    margin-top: 6px;
    text-align: right;
    font-feature-settings: "tnum";
}

.location-confirm-btn:hover {
    background: #06ad56;
}


/* 位置消息气泡 - 精致可爱手绘地图风 */
.chat-location-bubble {
    display: flex;
    flex-direction: column;
    max-width: 220px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff9f5 0%, #f8f1e7 100%);
    border: 1px solid rgba(181, 156, 143, 0.32);
    box-shadow: 0 10px 24px rgba(166, 136, 123, 0.14), 0 2px 6px rgba(146, 118, 106, 0.1);
}

.chat-location-map {
    width: 100%;
    height: 110px;
    background: linear-gradient(180deg, #fff8f3 0%, #f4ecde 100%);
    position: relative;
    overflow: hidden;
}

.chat-location-map-paper {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 82% 16%, rgba(255, 230, 218, 0.55) 0, rgba(255, 230, 218, 0) 24%),
        radial-gradient(circle at 72% 82%, rgba(214, 235, 213, 0.4) 0, rgba(214, 235, 213, 0) 24%);
    pointer-events: none;
}

.chat-location-map::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
    pointer-events: none;
}

.chat-location-map svg {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.chat-location-map-pin {
    position: absolute;
    left: 53%;
    top: 51%;
    transform: translate(-50%, -54%);
    width: 22px;
    height: 28px;
    color: #e49aa2;
    filter: drop-shadow(0 6px 7px rgba(187, 118, 128, 0.25));
    z-index: 2;
}

.chat-location-map-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 16px;
    height: 8px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(157, 115, 100, 0.26) 0%, rgba(157, 115, 100, 0) 72%);
}

.chat-location-map-pin svg {
    width: 100%;
    height: 100%;
    display: block;
}

.chat-location-map-pin svg path,
.chat-location-map-pin svg circle,
.chat-location-map-pin svg ellipse {
    stroke: currentColor;
    fill: currentColor;
}

.chat-location-info {
    padding: 10px 12px 8px;
    background: linear-gradient(180deg, #fffaf6 0%, #f8f1ea 100%);
    border-top: 1px solid rgba(181, 156, 143, 0.28);
}

.chat-location-place {
    font-size: 15px;
    font-weight: 700;
    color: #69574d;
    margin-bottom: 3px;
    letter-spacing: 0.2px;
}

.chat-location-address {
    font-size: 12px;
    color: #9c8679;
    line-height: 1.4;
}

.chat-location-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: linear-gradient(180deg, #b99587 0%, #a88379 100%);
    color: #f8f2e9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 0 0 13px 13px;
}

.chat-location-footer-icon {
    width: 12px;
    height: 15px;
    flex-shrink: 0;
}

.chat-location-footer-icon path {
    fill: none;
    stroke: #f8f2e9;
    stroke-width: 1.2;
}

.chat-location-map-pin {
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 250, 248, 0.72);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.chat-location-map-pin .chat-location-scene-pin,
.chat-location-map-pin svg {
    width: 100%;
    height: 100%;
}

.chat-location-map-pin--home { color: #eaa0a8; }
.chat-location-map-pin--cafe { color: #c78f69; }
.chat-location-map-pin--hospital { color: #d97784; }
.chat-location-map-pin--park { color: #7ba97b; }
.chat-location-map-pin--school { color: #8b95d6; }
.chat-location-map-pin--mall { color: #bf8bc8; }
.chat-location-map-pin--street,
.chat-location-map-pin--spot { color: #e49aa2; }

.chat-location-live-modal {
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(24, 20, 18, 0.36);
}

/* 实时位置：挂在 #app 内，覆盖小手机区域而非浏览器视口（避免全屏地图相对 100dvh 错位） */
#chat-location-live-modal.chat-location-live-modal {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    z-index: 100220;
    box-sizing: border-box;
}

.chat-location-live-content {
    width: min(100%, 420px);
    max-height: calc(100dvh - 40px);
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff9f7 0%, #fff3eb 48%, #fdf7f1 100%);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 40px rgba(24, 18, 14, 0.18);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 实时位置弹层带 .modal-content，须取消全局 max-width:400px，否则内容窄一截 */
.chat-location-live-modal .chat-location-live-content {
    max-width: none;
}

.chat-location-live-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 14px;
    color: #5e4d44;
}

.chat-location-live-more {
    min-width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.6);
    color: #7f685d;
    font-size: 18px;
    letter-spacing: 1px;
}

.chat-location-live-menu-wrap {
    position: relative;
    margin-left: auto;
}

.chat-location-live-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    width: 168px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(255, 252, 248, 0.96);
    border: 1px solid rgba(201, 172, 154, 0.42);
    box-shadow: 0 14px 32px rgba(102, 76, 64, 0.18);
}

.chat-location-live-menu[hidden] {
    display: none;
}

.chat-location-live-menu button {
    width: 100%;
    border: none;
    background: transparent;
    color: #6d584e;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
}

.chat-location-live-menu button:hover {
    background: rgba(237, 210, 193, 0.42);
}

.chat-location-live-back {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.6);
    border-radius: 999px;
    color: #7f685d;
    font-size: 24px;
    line-height: 1;
}

.chat-location-live-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-location-live-header-sub {
    font-size: 12px;
    color: #a18677;
}

.chat-location-live-map-wrap {
    position: relative;
    padding: 8px 16px 0;
    touch-action: none;
}

.chat-location-live-map {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    height: min(360px, 40vh);
    min-height: 200px;
    max-height: min(400px, 45vh);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff8f7 0%, #fff0e7 56%, #eef8ee 100%);
    border: 1px solid rgba(208, 181, 165, 0.36);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 14px 34px rgba(179, 146, 132, 0.16);
}

.chat-location-live-zoom {
    position: absolute;
    right: 26px;
    top: 18px;
    z-index: 8;
    display: grid;
    grid-template-columns: 32px;
    gap: 4px;
    justify-items: center;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(203, 176, 160, 0.36);
    box-shadow: 0 8px 18px rgba(151, 119, 105, 0.12);
}

.chat-location-live-zoom button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: #fff7f0;
    color: #725d52;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
}

.chat-location-live-zoom-value {
    min-width: 24px;
    height: 18px;
    border-radius: 999px;
    background: rgba(235, 211, 196, 0.46);
    color: #80685e;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
}

.chat-location-live-map[data-layout-level="world"] {
    background: linear-gradient(180deg, #fdf8fb 0%, #f8eff6 32%, #eef6fb 68%, #edf8f1 100%);
}

.chat-location-live-map[data-layout-level="street"] {
    background: linear-gradient(180deg, #fff9f6 0%, #fff1e7 54%, #f1f8ef 100%);
}

.location-live-map-surface {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    box-sizing: border-box;
}

.chat-location-live-modal.is-fullscreen .location-live-map-surface {
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    will-change: transform;
}

.chat-location-live-modal.is-fullscreen .location-live-map-surface:active {
    cursor: grabbing;
}

.chat-location-live-map .location-live-map-surface {
    background: linear-gradient(180deg, #fff8f7 0%, #fff0e7 56%, #eef8ee 100%);
}

.chat-location-live-map[data-layout-level="world"] .location-live-map-surface {
    background: linear-gradient(180deg, #fdf8fb 0%, #f8eff6 32%, #eef6fb 68%, #edf8f1 100%);
}

.chat-location-live-map[data-layout-level="street"] .location-live-map-surface {
    background: linear-gradient(180deg, #fff9f6 0%, #fff1e7 54%, #f1f8ef 100%);
}

.chat-location-live-modal.is-fullscreen .location-live-road,
.chat-location-live-modal.is-fullscreen .location-live-park,
.chat-location-live-modal.is-fullscreen .location-live-building,
.chat-location-live-modal.is-fullscreen .location-live-route,
.chat-location-live-modal.is-fullscreen .location-live-route-dots {
    display: none;
}

/* ==== 共享位置·大地图（手绘可爱风装饰层，随 surface 平移铺满大画布） ==== */
.location-live-map-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cellipse cx='8' cy='10' rx='6' ry='5' fill='%23ffffff' opacity='.85'/%3E%3Cellipse cx='16' cy='8' rx='8' ry='6' fill='%23ffffff' opacity='.85'/%3E%3Cellipse cx='24' cy='10' rx='6' ry='5' fill='%23ffffff' opacity='.85'/%3E%3C/svg%3E") 6% 5% / 56px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cellipse cx='8' cy='10' rx='6' ry='5' fill='%23ffffff' opacity='.7'/%3E%3Cellipse cx='16' cy='8' rx='8' ry='6' fill='%23ffffff' opacity='.7'/%3E%3Cellipse cx='24' cy='10' rx='6' ry='5' fill='%23ffffff' opacity='.7'/%3E%3C/svg%3E") 72% 3% / 44px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Crect x='10' y='20' width='4' height='10' fill='%237d553e' stroke='%235b7558' stroke-width='.7'/%3E%3Ccircle cx='12' cy='14' r='10' fill='%23a8c8b0' stroke='%235b7558' stroke-width='1'/%3E%3Ccircle cx='8' cy='10' r='6' fill='%23bbd6c0' stroke='%235b7558' stroke-width='.7'/%3E%3Ccircle cx='17' cy='12' r='5' fill='%23bbd6c0' stroke='%235b7558' stroke-width='.7'/%3E%3C/svg%3E") 4% 52% / 26px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Crect x='10.5' y='24' width='3' height='8' fill='%237d553e' stroke='%235b7558' stroke-width='.6'/%3E%3Cpolygon points='12,4 5,16 19,16' fill='%23a8c8b0' stroke='%235b7558' stroke-width='.9'/%3E%3Cpolygon points='12,10 5,22 19,22' fill='%23bbd6c0' stroke='%235b7558' stroke-width='.9'/%3E%3Cpolygon points='12,16 6,26 18,26' fill='%23a8c8b0' stroke='%235b7558' stroke-width='.9'/%3E%3C/svg%3E") 32% 90% / 22px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Crect x='10' y='20' width='4' height='10' fill='%237d553e' stroke='%235b7558' stroke-width='.7'/%3E%3Ccircle cx='12' cy='14' r='10' fill='%23a8c8b0' stroke='%235b7558' stroke-width='1'/%3E%3Ccircle cx='8' cy='10' r='6' fill='%23bbd6c0' stroke='%235b7558' stroke-width='.7'/%3E%3Ccircle cx='17' cy='12' r='5' fill='%23bbd6c0' stroke='%235b7558' stroke-width='.7'/%3E%3C/svg%3E") 90% 38% / 24px no-repeat,
        radial-gradient(circle at 18% 20%, rgba(255,255,255,0.9) 0, rgba(255,255,255,0) 22%),
        radial-gradient(circle at 80% 16%, rgba(255,228,220,0.55) 0, rgba(255,228,220,0) 24%),
        radial-gradient(circle at 76% 84%, rgba(217,239,216,0.55) 0, rgba(217,239,216,0) 22%);
}

.location-live-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(165, 138, 110, 0.32) 1px, transparent 1.4px),
        linear-gradient(rgba(195, 165, 140, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(195, 165, 140, 0.18) 1px, transparent 1px);
    background-size: 38px 38px, 38px 38px, 38px 38px;
    background-position: 0 0, 0 0, 0 0;
    opacity: 0.55;
}

.location-live-water {
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50' preserveAspectRatio='none'%3E%3Cpath d='M0 14 q12 -8 24 0 t24 0 t24 0 t24 0 t24 0 t24 0 t24 0 t24 0' stroke='%23ffffff' stroke-width='1.6' fill='none' opacity='.75'/%3E%3Cpath d='M0 26 q12 -8 24 0 t24 0 t24 0 t24 0 t24 0 t24 0 t24 0 t24 0' stroke='%23ffffff' stroke-width='1.2' fill='none' opacity='.55'/%3E%3Cpath d='M0 38 q12 -8 24 0 t24 0 t24 0 t24 0 t24 0 t24 0 t24 0 t24 0' stroke='%23ffffff' stroke-width='1' fill='none' opacity='.4'/%3E%3C/svg%3E"),
        linear-gradient(135deg, transparent 0 44%, rgba(139, 207, 231, 0.55) 44% 56%, transparent 56% 100%);
    background-size: 100% 100%, 100% 100%;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.85;
}

.location-live-road {
    position: absolute;
    border-radius: 999px;
    background: rgba(180, 142, 110, 0.55);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.location-live-road::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(140, 95, 60, 0.5) 50%, transparent 50%) repeat-x center / 8px 1.5px,
        linear-gradient(180deg, rgba(255, 247, 233, 0.96), rgba(252, 240, 222, 0.96));
}

.location-live-road--a { left: 4%; top: 70%; width: 74%; height: 12px; transform: rotate(-12deg); }
.location-live-road--b { left: 16%; top: 12%; width: 12px; height: 70%; transform: rotate(18deg); }
.location-live-road--c { right: 12%; top: 22%; width: 12px; height: 48%; transform: rotate(8deg); }

.location-live-park {
    position: absolute;
    right: 9%;
    bottom: 11%;
    width: 104px;
    height: 104px;
    border-radius: 0;
    border: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='80' rx='45' ry='15' fill='%23dcefd7' stroke='%237da878' stroke-width='1' stroke-dasharray='3 2' opacity='.7'/%3E%3Cellipse cx='50' cy='75' rx='42' ry='10' fill='%23cce4cf' opacity='.6'/%3E%3Crect x='28' y='40' width='4' height='12' fill='%237d553e' stroke='%235b7558' stroke-width='.9'/%3E%3Ccircle cx='30' cy='34' r='12' fill='%23a8c8b0' stroke='%235b7558' stroke-width='1.2'/%3E%3Ccircle cx='24' cy='30' r='7' fill='%23bbd6c0' stroke='%235b7558' stroke-width='1'/%3E%3Ccircle cx='37' cy='32' r='8' fill='%23bbd6c0' stroke='%235b7558' stroke-width='1'/%3E%3Crect x='70' y='58' width='4' height='8' fill='%237d553e' stroke='%235b7558' stroke-width='.7'/%3E%3Cpolygon points='72,28 62,48 82,48' fill='%23a8c8b0' stroke='%235b7558' stroke-width='1.1'/%3E%3Cpolygon points='72,38 64,52 80,52' fill='%23bbd6c0' stroke='%235b7558' stroke-width='1'/%3E%3Cpolygon points='72,46 66,60 78,60' fill='%23a8c8b0' stroke='%235b7558' stroke-width='1'/%3E%3Cellipse cx='12' cy='68' rx='8' ry='4' fill='%23bbd6c0' stroke='%235b7558' stroke-width='.9'/%3E%3Ccircle cx='9' cy='66' r='2.5' fill='%23a8c8b0' stroke='%235b7558' stroke-width='.7'/%3E%3Ccircle cx='15' cy='66' r='2.5' fill='%23a8c8b0' stroke='%235b7558' stroke-width='.7'/%3E%3Cellipse cx='88' cy='72' rx='8' ry='4' fill='%23bbd6c0' stroke='%235b7558' stroke-width='.9'/%3E%3Ccircle cx='85' cy='70' r='2.5' fill='%23a8c8b0' stroke='%235b7558' stroke-width='.7'/%3E%3Ccircle cx='91' cy='70' r='2.5' fill='%23a8c8b0' stroke='%235b7558' stroke-width='.7'/%3E%3Crect x='40' y='60' width='20' height='2.5' rx='1' fill='%237d553e' stroke='%235b7558' stroke-width='.7'/%3E%3Crect x='42' y='62.5' width='1.5' height='5' fill='%237d553e'/%3E%3Crect x='56.5' y='62.5' width='1.5' height='5' fill='%237d553e'/%3E%3Ccircle cx='6' cy='82' r='1.5' fill='%23ee9c8e'/%3E%3Ccircle cx='94' cy='86' r='1.5' fill='%23ffe28a'/%3E%3Ccircle cx='20' cy='84' r='1.5' fill='%23ffe28a'/%3E%3Ccircle cx='80' cy='88' r='1.5' fill='%23ee9c8e'/%3E%3Ccircle cx='45' cy='80' r='1.3' fill='%23ee9c8e'/%3E%3Ccircle cx='60' cy='82' r='1.3' fill='%23ffe28a'/%3E%3Cpath d='M50 70 q-15 4 -22 18' stroke='%23d6c0ad' stroke-width='2.5' fill='none' stroke-linecap='round' opacity='.55'/%3E%3Cpath d='M50 70 q15 4 22 18' stroke='%23d6c0ad' stroke-width='2.5' fill='none' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") no-repeat center/contain;
    filter: drop-shadow(0 4px 6px rgba(110, 130, 105, 0.18));
}

.location-live-building {
    position: absolute;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    filter: drop-shadow(0 4px 6px rgba(110, 80, 60, 0.2));
}

.location-live-building--a {
    left: 10%;
    top: 16%;
    width: 76px;
    height: 56px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 52'%3E%3Cellipse cx='35' cy='49' rx='28' ry='1.5' fill='%23000' opacity='.12'/%3E%3Crect x='48' y='8' width='5' height='12' rx='1' fill='%23d68a7a' stroke='%236b4836' stroke-width='1.1'/%3E%3Crect x='47' y='6' width='7' height='3' rx='.5' fill='%23b8695b' stroke='%236b4836' stroke-width='1'/%3E%3Cpath d='M5 24 L35 6 L65 24 Z' fill='%23ee9c8e' stroke='%236b4836' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M14 21 q3 -1 5 0 M24 17 q3 -1 5 0 M36 13 q3 -1 5 0 M46 17 q3 -1 5 0' stroke='%23b8695b' stroke-width='.7' fill='none' stroke-linecap='round'/%3E%3Cpath d='M9 24 L9 46 L61 46 L61 24 Z' fill='%23fff5ec' stroke='%236b4836' stroke-width='1.3' stroke-linejoin='round'/%3E%3Crect x='14' y='28' width='10' height='10' rx='1' fill='%23ffe28a' stroke='%236b4836' stroke-width='1'/%3E%3Cpath d='M19 28 V38 M14 33 H24' stroke='%236b4836' stroke-width='.6'/%3E%3Crect x='12' y='26.5' width='14' height='2.5' rx='.4' fill='%23b8695b' stroke='%236b4836' stroke-width='.8'/%3E%3Crect x='46' y='28' width='10' height='10' rx='1' fill='%23ffe28a' stroke='%236b4836' stroke-width='1'/%3E%3Cpath d='M51 28 V38 M46 33 H56' stroke='%236b4836' stroke-width='.6'/%3E%3Crect x='44' y='26.5' width='14' height='2.5' rx='.4' fill='%23b8695b' stroke='%236b4836' stroke-width='.8'/%3E%3Cpath d='M30 46 V38 Q30 33 35 33 Q40 33 40 38 V46 Z' fill='%23c08868' stroke='%236b4836' stroke-width='1.1'/%3E%3Ccircle cx='38' cy='40' r='.7' fill='%236b4836'/%3E%3Cellipse cx='4' cy='48' rx='4' ry='1.5' fill='%23bbd6c0'/%3E%3Cellipse cx='66' cy='48' rx='4' ry='1.5' fill='%23bbd6c0'/%3E%3Ccircle cx='3' cy='46' r='2' fill='%23a8c8b0' stroke='%235b7558' stroke-width='.6'/%3E%3Ccircle cx='67' cy='46' r='2' fill='%23a8c8b0' stroke='%235b7558' stroke-width='.6'/%3E%3C/svg%3E");
}

.location-live-building--b {
    right: 13%;
    top: 14%;
    width: 80px;
    height: 62px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 58'%3E%3Cellipse cx='37' cy='55' rx='30' ry='1.5' fill='%23000' opacity='.12'/%3E%3Crect x='10' y='10' width='54' height='42' rx='2' fill='%23fff5ec' stroke='%236b4836' stroke-width='1.4'/%3E%3Crect x='10' y='10' width='54' height='8' fill='%23c08a64' stroke='%236b4836' stroke-width='1.4'/%3E%3Crect x='27' y='12' width='20' height='5' rx='.7' fill='%23fff5ec'/%3E%3Cpath d='M34 14 q.7 -1.2 1.8 -.3 q.7 -1.2 1.8 -.3 q0 1.5 -1.8 2.7 q-2 -1.2 -1.8 -2.1z' fill='%23ee9c8e'/%3E%3Cpath d='M6 18 L68 18 L64 26 L10 26 Z' fill='%23ee9c8e' stroke='%236b4836' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M16 18 L14 26 M24 18 L22 26 M32 18 L30 26 M40 18 L38 26 M48 18 L46 26 M56 18 L54 26' stroke='%23fff5ec' stroke-width='1.2'/%3E%3Crect x='14' y='30' width='24' height='14' rx='1' fill='%23cae7f0' stroke='%236b4836' stroke-width='1.2'/%3E%3Cpath d='M26 30 V44 M14 37 H38' stroke='%236b4836' stroke-width='.7'/%3E%3Crect x='22' y='34' width='6' height='5' rx='1' fill='%23fff5ec' stroke='%236b4836' stroke-width='.6'/%3E%3Cpath d='M28 35 q1.5 0 1.5 1.2 q0 1.2 -1.5 1.2' fill='none' stroke='%236b4836' stroke-width='.6'/%3E%3Crect x='44' y='30' width='14' height='22' rx='1' fill='%23a17859' stroke='%236b4836' stroke-width='1.2'/%3E%3Crect x='45' y='32' width='12' height='6' rx='.5' fill='%23cae7f0' stroke='%236b4836' stroke-width='.6'/%3E%3Ccircle cx='54' cy='44' r='.8' fill='%23ffe28a'/%3E%3Crect x='3' y='48' width='10' height='5' rx='1' fill='%23a8c8b0' stroke='%235b7558' stroke-width='.8'/%3E%3Ccircle cx='6' cy='46' r='1.8' fill='%23bbd6c0' stroke='%235b7558' stroke-width='.6'/%3E%3Ccircle cx='10' cy='46' r='1.8' fill='%23bbd6c0' stroke='%235b7558' stroke-width='.6'/%3E%3Ccircle cx='8' cy='44' r='1' fill='%23ee9c8e'/%3E%3Cellipse cx='68' cy='52' rx='4' ry='2' fill='%23bbd6c0' stroke='%235b7558' stroke-width='.6'/%3E%3Ccircle cx='68' cy='50' r='1.3' fill='%23a8c8b0'/%3E%3C/svg%3E");
}

.location-live-building--c {
    left: 42%;
    bottom: 14%;
    width: 72px;
    height: 54px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 48'%3E%3Cellipse cx='33' cy='45' rx='26' ry='1.5' fill='%23000' opacity='.12'/%3E%3Cline x1='33' y1='1' x2='33' y2='8' stroke='%236b4836' stroke-width='1'/%3E%3Cpath d='M33 1 L42 4 L33 7 Z' fill='%23ee9c8e' stroke='%236b4836' stroke-width='1'/%3E%3Cpath d='M6 18 L33 7 L60 18 Z' fill='%239bc4d8' stroke='%236b4836' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M14 15 q3 -1 5 0 M24 12 q3 -1 5 0 M36 12 q3 -1 5 0 M46 15 q3 -1 5 0' stroke='%236b4836' stroke-width='.6' fill='none' stroke-linecap='round'/%3E%3Cpath d='M9 18 L9 42 L57 42 L57 18 Z' fill='%23fef3e6' stroke='%236b4836' stroke-width='1.3' stroke-linejoin='round'/%3E%3Ccircle cx='33' cy='25' r='4.5' fill='%23a7d8e8' stroke='%236b4836' stroke-width='1.1'/%3E%3Cpath d='M28.5 25 H37.5 M33 20.5 V29.5' stroke='%236b4836' stroke-width='.7'/%3E%3Crect x='14' y='23' width='7' height='7' rx='1' fill='%23ffe28a' stroke='%236b4836' stroke-width='1'/%3E%3Cpath d='M17.5 23 V30 M14 26.5 H21' stroke='%236b4836' stroke-width='.6'/%3E%3Crect x='45' y='23' width='7' height='7' rx='1' fill='%23ffe28a' stroke='%236b4836' stroke-width='1'/%3E%3Cpath d='M48.5 23 V30 M45 26.5 H52' stroke='%236b4836' stroke-width='.6'/%3E%3Cpath d='M27 42 V35 Q27 31 33 31 Q39 31 39 35 V42 Z' fill='%23c08868' stroke='%236b4836' stroke-width='1.2'/%3E%3Ccircle cx='36' cy='38' r='.7' fill='%236b4836'/%3E%3Crect x='3' y='42' width='60' height='3' rx='1' fill='%23d6c0ad' stroke='%236b4836' stroke-width='1'/%3E%3Ccircle cx='5' cy='42' r='2.5' fill='%23a8c8b0' stroke='%235b7558' stroke-width='.7'/%3E%3Ccircle cx='61' cy='42' r='2.5' fill='%23a8c8b0' stroke='%235b7558' stroke-width='.7'/%3E%3C/svg%3E");
}

.location-live-route {
    position: absolute;
    left: 31%;
    top: 43%;
    width: 40%;
    height: 16px;
    border-top: 3px dashed #e59ca3;
    transform: rotate(-24deg);
    transform-origin: left center;
    opacity: 0.95;
}

.location-live-route::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -10%;
    width: 28%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.9), rgba(255,255,255,0));
    filter: blur(1px);
    animation: location-route-sheen 2.8s linear infinite;
}

.location-live-route-dots {
    position: absolute;
    left: 40%;
    top: 48%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #e59ca3;
    box-shadow: 18px -8px 0 #e59ca3, 36px -17px 0 #e59ca3, 54px -25px 0 #e59ca3;
    opacity: 0.9;
}

.location-live-feature-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.location-live-real-road {
    position: absolute;
    height: 18px;
    transform: translate(-50%, -50%) rotate(var(--road-rot, 0deg));
    transform-origin: center;
    border-radius: 999px;
    background: rgba(248, 239, 223, 0.9);
    border: 2px solid rgba(170, 132, 96, 0.42);
    box-shadow: 0 2px 0 rgba(255,255,255,0.55), inset 0 0 0 1px rgba(255,255,255,0.5);
}

.location-live-real-road::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(128, 91, 63, 0.55) 0 7px, transparent 7px 12px);
}

.location-live-real-road span {
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%) rotate(calc(var(--road-rot, 0deg) * -1));
    max-width: 104px;
    padding: 3px 6px;
    border-radius: 8px;
    background: rgba(255, 252, 248, 0.9);
    color: #6a574c;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 10px rgba(129, 99, 84, 0.1);
}

.location-live-real-road.is-synthetic {
    opacity: 0.72;
    background: rgba(248, 239, 223, 0.72);
    border-color: rgba(170, 132, 96, 0.3);
}

.location-live-real-building-block {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%) rotate(var(--building-rot, 0deg));
    border-radius: 3px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 42%),
        #e0b28d;
    border: 1px solid rgba(134, 98, 72, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.38), 0 3px 8px rgba(128, 96, 76, 0.1);
    pointer-events: none;
}

.location-live-real-building-block.is-synthetic {
    opacity: 0.62;
}

.location-live-real-poi {
    position: absolute;
    transform: translate(-50%, -50%);
    max-width: 116px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 8px;
    background: rgba(255, 252, 248, 0.9);
    border: 1px solid rgba(190, 161, 142, 0.34);
    color: #715e54;
    font-size: 10px;
    line-height: 1.15;
    box-shadow: 0 5px 12px rgba(130, 98, 84, 0.12);
}

.location-live-real-poi::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #e7a1a8;
    flex: 0 0 auto;
}

.location-live-real-poi span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-live-real-poi--building::before { background: #c98f6b; }
.location-live-real-poi--park::before { background: #82ad7e; }
.location-live-real-poi--water::before { background: #72b8d6; }
.location-live-real-poi--hospital::before { background: #d87584; }
.location-live-real-poi--school::before { background: #8794d7; }
.location-live-real-poi--food::before { background: #d59b6c; }
.location-live-real-poi--shop::before { background: #d8a55a; }
.location-live-real-poi--hotel::before { background: #b58aa8; }
.location-live-real-poi--scenic::before { background: #6fb091; }
.location-live-real-poi--transit::before { background: #7a9bd0; }
.location-live-real-poi--bank::before { background: #b08d6b; }
.location-live-real-poi--leisure::before { background: #cf9bbb; }
.location-live-real-poi--gov::before { background: #9aa1ac; }

.location-live-feature-source {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    max-width: 132px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.86);
    color: #8b7165;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(163, 128, 113, 0.12);
}

.location-live-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 6;
    animation: location-marker-float 4.2s ease-in-out infinite;
}

.location-live-marker::before {
    content: '';
    position: absolute;
    top: 12px;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 2px solid rgba(230, 156, 165, 0.28);
    animation: location-marker-pulse 2.4s ease-out infinite;
}

.location-live-marker.is-friend {
    animation-delay: 0.6s;
}

.location-live-marker.is-friend::before {
    border-color: rgba(141, 188, 218, 0.26);
    animation-delay: 0.8s;
}

.location-live-marker.is-extra::before {
    border-color: rgba(138, 179, 130, 0.26);
    animation-delay: 0.4s;
}

.location-live-marker.is-extra .location-live-scene-icon {
    color: #7ca578;
}

.location-live-scene-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 6px 18px rgba(155, 120, 106, 0.14);
    color: #b67d74;
}

.location-live-scene-icon svg {
    width: 18px;
    height: 18px;
}

.location-live-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(180deg, #fffefc 0%, #f4e2d9 100%);
    box-shadow: 0 10px 20px rgba(164, 126, 110, 0.2);
    animation: location-avatar-breathe 3.4s ease-in-out infinite;
}

.location-live-avatar-image,
.location-live-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background-size: cover;
    background-position: center;
    color: #8c6d61;
    background-color: #fff6f1;
    font-size: 15px;
    font-weight: 700;
}

.location-live-marker-label {
    max-width: 84px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    color: #7c655a;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 5px 12px rgba(151, 119, 105, 0.1);
}

.chat-location-live-distance {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #8d6b63;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(163, 128, 113, 0.12);
    z-index: 3;
}

.chat-location-live-status-chip {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    color: #8c6d61;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(163, 128, 113, 0.12);
    z-index: 3;
}

.chat-location-live-sheet {
    padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    color: #5f4e46;
}

.chat-location-live-place {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.chat-location-live-address {
    font-size: 13px;
    line-height: 1.5;
    color: #9b8376;
    margin-bottom: 16px;
}

.chat-location-live-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #8f786d;
    font-size: 12px;
}

.chat-location-live-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(165, 139, 126, 0.55);
}

.chat-location-live-meta-item {
    white-space: nowrap;
}

.chat-location-live-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-location-live-legend-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(217, 192, 177, 0.34);
}

.chat-location-live-legend-name {
    font-size: 13px;
    font-weight: 700;
    color: #7a6358;
    white-space: nowrap;
}

.chat-location-live-legend-text {
    font-size: 13px;
    color: #9a8377;
    text-align: right;
}

.chat-location-live-friend-picker {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 30;
    max-height: min(430px, 62dvh);
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 252, 248, 0.97);
    border: 1px solid rgba(201, 172, 154, 0.44);
    box-shadow: 0 18px 42px rgba(84, 62, 52, 0.22);
    color: #5f4e46;
}

.chat-location-live-friend-picker[hidden] {
    display: none;
}

.chat-location-live-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(214, 187, 170, 0.42);
}

.chat-location-live-picker-head div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-location-live-picker-head strong {
    font-size: 14px;
}

.chat-location-live-picker-head span {
    font-size: 11px;
    color: #9a8174;
}

.chat-location-live-picker-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: rgba(237, 216, 202, 0.6);
    color: #735f55;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}

.chat-location-live-picker-loading,
.chat-location-live-picker-empty {
    padding: 24px 14px;
    text-align: center;
    color: #9a8174;
    font-size: 13px;
}

.chat-location-live-picker-list {
    max-height: min(350px, 50dvh);
    overflow: auto;
    padding: 6px;
}

.chat-location-live-picker-row {
    display: grid;
    grid-template-columns: 24px 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 10px;
}

.chat-location-live-picker-row:hover {
    background: rgba(237, 216, 202, 0.36);
}

.chat-location-live-picker-row.is-disabled {
    opacity: 0.52;
}

.chat-location-live-picker-row input {
    width: 18px;
    height: 18px;
    accent-color: #b9897c;
}

.chat-location-live-picker-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background-size: cover;
    background-position: center;
    background-color: #fff3ec;
    box-shadow: 0 4px 10px rgba(151, 119, 105, 0.12);
}

.chat-location-live-picker-avatar--text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a6d61;
    font-size: 14px;
    font-weight: 700;
}

.chat-location-live-picker-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chat-location-live-picker-name {
    font-size: 13px;
    font-weight: 700;
    color: #6b554c;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chat-location-live-picker-place {
    font-size: 11px;
    color: #9a8174;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chat-location-live-picker-state {
    max-width: 72px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(236, 216, 202, 0.52);
    color: #856a5f;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-location-live-modal.is-fullscreen {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background: #fff9f7;
}

.chat-location-live-modal.is-fullscreen .chat-location-live-content {
    /* 覆盖全局 .modal-content 的 width:80% / max-width:400px，否则会窄一截并靠左，右侧留出白条 */
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    box-shadow: none;
    box-sizing: border-box;
}

.chat-location-live-modal.is-fullscreen .chat-location-live-header {
    flex: 0 0 auto;
    padding-left: 14px;
    padding-right: 14px;
    background: rgba(255, 249, 247, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 12;
}

.chat-location-live-modal.is-fullscreen .chat-location-live-map-wrap {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
}

.chat-location-live-modal.is-fullscreen .chat-location-live-map {
    height: 100%;
    width: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-sizing: border-box;
    overflow: hidden;
}

.chat-location-live-modal.is-fullscreen .chat-location-live-sheet {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-height: 32dvh;
    overflow: auto;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 252, 248, 0.88);
    border: 1px solid rgba(213, 186, 170, 0.38);
    box-shadow: 0 12px 28px rgba(93, 70, 60, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.chat-location-live-modal.is-fullscreen .chat-location-live-place {
    font-size: 16px;
}

.chat-location-live-modal.is-fullscreen .chat-location-live-address,
.chat-location-live-modal.is-fullscreen .chat-location-live-meta,
.chat-location-live-modal.is-fullscreen .chat-location-live-legend-row {
    font-size: 12px;
}

.chat-location-live-modal.is-fullscreen .chat-location-live-friend-picker {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

@keyframes location-marker-pulse {
    0% { transform: scale(0.68); opacity: 0.7; }
    70% { transform: scale(1.28); opacity: 0; }
    100% { transform: scale(1.32); opacity: 0; }
}

@keyframes location-marker-float {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 4px)); }
}

@keyframes location-avatar-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes location-route-sheen {
    0% { transform: translateX(0%); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translateX(420%); opacity: 0; }
}

/* ----- #chat-page 内位置模块（自 style.css 逗号选择符列表拆出） ----- */
#chat-page .location-modal {
    background: transparent;
}

/* 合并原 29495 / 29989 / 30183 三段中对 .location-modal-content 的最终叠层效果 */
#chat-page .location-modal-content {
    background: rgba(246, 248, 252, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(116, 128, 152, 0.22) !important;
    box-shadow: 0 16px 38px rgba(57, 69, 92, 0.14) !important;
    border-radius: 24px !important;
    color: var(--chat-text);
}

#chat-page .location-modal-header h3 {
    color: var(--chat-text) !important;
}

#chat-page .location-modal-body {
    color: var(--chat-text-soft) !important;
}

#chat-page .location-option {
    background: rgba(255, 255, 255, 0.54) !important;
    border: 1px solid var(--chat-line) !important;
    border-radius: var(--chat-radius-md) !important;
}

/* ===== 「当前世界地图」位置数据源（if-line 源） ===== */
.location-if-map-preview {
    margin-top: 8px;
    background: #f7faf6;
    border: 1px solid rgba(46, 92, 76, 0.14);
    border-radius: 10px;
    padding: 10px;
    color: #25453d;
}
.location-if-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #dcefd0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(46, 92, 76, 0.1);
}
.location-if-thumb svg {
    display: block;
    width: 100%;
    height: 100%;
}
.location-if-meta {
    font-size: 11px;
    color: rgba(40, 70, 60, 0.7);
    margin-bottom: 6px;
}
.location-if-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
}
.location-if-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(50, 92, 82, 0.14);
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.location-if-row:hover {
    background: #eff7ec;
    border-color: rgba(50, 130, 100, 0.32);
}
.location-if-row-name {
    font-size: 13px;
    font-weight: 700;
    color: #20453a;
}
.location-if-row-sub {
    font-size: 11px;
    color: rgba(40, 70, 60, 0.7);
}
.location-if-empty {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: rgba(40, 70, 60, 0.65);
}
html[data-appearance="dark"] .location-if-map-preview {
    background: #1f2f2a;
    color: #edf8f4;
    border-color: rgba(255, 255, 255, 0.1);
}
html[data-appearance="dark"] .location-if-row {
    background: #233832;
    border-color: rgba(255, 255, 255, 0.12);
    color: #edf8f4;
}
html[data-appearance="dark"] .location-if-row-name {
    color: #f3fbf6;
}

/* ===== 「当前世界地图」实时位置共享层（chat-location-live-modal--if-line） ===== */
.chat-location-live-map.chat-location-live-map--if-line {
    background: #dcefd0;
}
.location-live-if-surface {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #e9f6dc 0%, #d4ead0 100%);
}
.location-live-if-svg-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.location-live-if-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.location-live-if-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.location-live-if-overlay > * {
    pointer-events: auto;
}
.location-live-if-source {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 11px;
    color: rgba(33, 68, 56, 0.78);
    background: rgba(255, 255, 255, 0.78);
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(33, 68, 56, 0.14);
}
.location-live-if-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(40, 70, 60, 0.72);
    font-size: 13px;
}
html[data-appearance="dark"] .chat-location-live-map.chat-location-live-map--if-line {
    background: #2c3a30;
}
html[data-appearance="dark"] .location-live-if-surface {
    background: linear-gradient(180deg, #2d3d31 0%, #243325 100%);
}
html[data-appearance="dark"] .location-live-if-source {
    background: rgba(35, 50, 42, 0.78);
    color: #e8f4ea;
    border-color: rgba(255, 255, 255, 0.12);
}

