/*
 * 旅行蒙层挂载在 #app 下（与 #couple-space-overlay 同级），须高于私密空间层 z-index 100135（见 couple-space.css）。
 * body.couple-space-travel-front 时抬高全局 .modal.show，便于验票 / 订票等对话框压在旅行渐变之上。
 */

/* 私密空间 · 旅行计划 · 线下旅行约会：旁白描写气泡（.is-narration）专用，与 style.css / 甜蜜日记等 assets 字体路径一致 */
@font-face {
    font-family: 'TravelNarrationFont';
    src: url('assets/汇文明朝体.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TaiWanMingTic';
    src: url('assets/FangZhengKaiTiJianTi-1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body.couple-space-travel-front .modal.show {
    z-index: 100280 !important;
}

/* 线下旅行约会内打开「记忆总结」：隐藏仅适用于微信聊天的「自动总结」项 */
#chat-summary-modal.chat-summary-modal--offline-travel .chat-summary-field:has(#chat-summary-auto-rounds-input) {
    display: none !important;
}

.offline-travel-lm-add-btn .offline-travel-lm-plus {
    display: block;
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    transform: translateY(-1px);
}

/* 与情侣空间主层相同：挂载在 #app 内，随小手机 max-width:480px 与圆角，不铺满桌面浏览器 */
.couple-space-travel-overlay {
    position: absolute;
    inset: 0;
    /* 高于 .couple-space-overlay(100135)，否则从私密空间打开旅行时在蒙层下层「点了没反应」 */
    z-index: 100210;
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, #fff8fb 0%, #fdf2f5 48%, #fffdfc 100%);
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

html[data-appearance="dark"] .couple-space-travel-overlay {
    background: linear-gradient(180deg, #151518 0%, #1f2024 48%, #25262b 100%);
}

html[data-appearance="dark"] .couple-space-travel-shell,
html[data-appearance="dark"] .travel-offline-card,
html[data-appearance="dark"] .travel-replay-card,
html[data-appearance="dark"] .travel-footprints-card,
html[data-appearance="dark"] .travel-offline-tools-wrap,
html[data-appearance="dark"] .travel-offline-composer-wrap {
    color: #f5f5f7;
}

html[data-appearance="dark"] .travel-offline-tools-wrap,
html[data-appearance="dark"] .travel-offline-composer-side,
html[data-appearance="dark"] .travel-offline-input,
html[data-appearance="dark"] .travel-replay-card,
html[data-appearance="dark"] .travel-footprints-card,
html[data-appearance="dark"] .travel-offline-message-bubble,
html[data-appearance="dark"] .travel-offline-card {
    background: rgba(44, 44, 46, 0.94);
    color: #f5f5f7;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-appearance="dark"] .travel-offline-card-address,
html[data-appearance="dark"] .travel-offline-card-weather,
html[data-appearance="dark"] .travel-replay-card-address,
html[data-appearance="dark"] .travel-replay-card-meta,
html[data-appearance="dark"] .travel-offline-message-tip {
    color: rgba(235, 235, 245, 0.66);
}

html[data-appearance="dark"] .travel-offline-card.is-idle-dim {
    background: rgba(36, 30, 34, 0.5);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.couple-space-travel-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.couple-space-travel-shell {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
    color: #6a4c56;
    overflow: hidden;
}

.couple-space-travel-shell.is-offline-date {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.couple-space-travel-shell.is-footprints {
    padding: 0;
    position: relative;
}

.couple-space-travel-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.couple-space-travel-shell.is-footprints .couple-space-travel-header {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 14px;
    right: 14px;
    z-index: 5;
    pointer-events: none;
}

.couple-space-travel-shell.is-footprints .couple-space-travel-header > * {
    pointer-events: auto;
}

.couple-space-travel-header > * {
    flex-shrink: 0;
}

.couple-space-travel-back {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 22px rgba(212, 153, 173, 0.16);
    color: #6a4c56;
    font-size: 24px;
    line-height: 1;
}

.couple-space-travel-footprints {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 18px rgba(212, 153, 173, 0.12);
    color: #8a6875;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.couple-space-travel-title-wrap {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.couple-space-travel-cat-marquee {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.couple-space-travel-cat-track {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: 12px;
    color: #9e6c7d;
    transform-origin: center;
    animation: couple-space-travel-cat-track-roam 9s ease-in-out infinite;
}

.couple-space-travel-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.couple-space-travel-cat--lead {
    animation: couple-space-travel-cat-walk-lead 2.6s ease-in-out infinite;
}

.couple-space-travel-cat--follow {
    animation: couple-space-travel-cat-walk-follow 2.6s ease-in-out infinite;
}

.couple-space-travel-cat-svg {
    width: 56px;
    height: 42px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(222, 129, 153, 0.14));
}

.couple-space-travel-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 10px;
    margin-top: 16px;
}

.couple-space-travel-input,
.couple-space-travel-submit {
    height: 42px;
    border-radius: 14px;
    font-size: 14px;
    box-sizing: border-box;
}

.couple-space-travel-input {
    border: 1px solid rgba(227, 182, 197, 0.72);
    background: rgba(255, 255, 255, 0.88);
    padding: 0 14px;
    color: #6a4c56;
}

.couple-space-travel-input:focus {
    outline: none;
    border-color: #de8199;
    box-shadow: 0 0 0 3px rgba(222, 129, 153, 0.12);
}

.couple-space-travel-submit {
    border: none;
    background: linear-gradient(180deg, #ee9db0 0%, #da7e96 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(222, 129, 153, 0.2);
}

.couple-space-travel-submit:disabled,
.couple-space-travel-input:disabled {
    opacity: 0.72;
}

.couple-space-travel-status {
    min-height: 20px;
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: #9a7c85;
}

.couple-space-travel-view {
    display: none;
    flex: 1;
    min-height: 0;
}

.couple-space-travel-view.is-active {
    display: flex;
    flex-direction: column;
}

.couple-space-travel-view-offline {
    position: relative;
}

.couple-space-travel-footprints.is-hidden {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

.couple-space-travel-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 限定地球/地图占位高度，避免 flex:1 把地图区撑满一屏、推荐卡片被挤到视口外 */
.couple-space-travel-stage-canvas {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    min-height: 268px;
    box-sizing: border-box;
}

.couple-space-travel-globe-wrap,
.couple-space-travel-map-shell {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.couple-space-travel-globe {
    position: relative;
    width: min(60vw, 236px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 243, 243, 0.96) 14%, rgba(255, 220, 234, 0.88) 30%, rgba(245, 184, 213, 0.82) 52%, rgba(203, 224, 255, 0.7) 76%, rgba(240, 170, 206, 0.96) 100%),
        linear-gradient(145deg, #fff3f3 0%, #f7bfd6 52%, #cfe2ff 100%);
    box-shadow:
        0 34px 64px rgba(240, 176, 206, 0.26),
        0 14px 30px rgba(208, 219, 255, 0.2),
        inset -18px -24px 40px rgba(233, 160, 194, 0.24),
        inset 14px 18px 28px rgba(255, 255, 255, 0.84),
        inset 0 0 0 1px rgba(255, 255, 255, 0.52);
    overflow: visible;
    isolation: isolate;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: couple-space-travel-globe-spin 12.5s linear infinite;
}

.couple-space-travel-globe::before,
.couple-space-travel-globe::after,
.globe-ring,
.globe-continent,
.globe-aura,
.globe-shine,
.globe-cloud,
.globe-orbit,
.globe-orbit-logo {
    position: absolute;
    display: block;
}

.couple-space-travel-globe::before {
    content: '';
    inset: 4%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.18) 34%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0.18) 100%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.couple-space-travel-globe::after {
    content: '';
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 68% 74%, rgba(255, 255, 255, 0) 46%, rgba(255, 228, 240, 0.16) 76%, rgba(255, 255, 255, 0.34) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.44),
        inset 0 14px 18px rgba(255, 255, 255, 0.16),
        inset 0 -18px 26px rgba(238, 172, 204, 0.18);
    pointer-events: none;
}

.globe-aura {
    inset: -6%;
    border-radius: 50%;
    pointer-events: none;
}

.globe-aura-a {
    background: radial-gradient(circle, rgba(255, 243, 243, 0.42) 0%, rgba(255, 243, 243, 0.08) 42%, rgba(255, 243, 243, 0) 70%);
}

.globe-aura-b {
    inset: -10%;
    background: radial-gradient(circle, rgba(247, 191, 214, 0.22) 0%, rgba(207, 226, 255, 0.14) 44%, rgba(207, 226, 255, 0) 74%);
}

.globe-shine-main {
    width: 36%;
    height: 26%;
    top: 14%;
    left: 16%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.18) 62%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(-18deg);
    filter: blur(1px);
    pointer-events: none;
}

.globe-ring {
    inset: 8%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 243, 243, 0.06) inset;
}

.globe-ring-a {
    transform: rotate(18deg) scaleX(1.02);
}

.globe-ring-b {
    transform: rotate(-28deg) scaleY(0.76);
}

.globe-ring-c {
    inset: 18% 6%;
    transform: rotate(90deg) scaleY(0.54);
    opacity: 0.56;
}

.globe-continent {
    background: linear-gradient(145deg, rgba(255, 243, 243, 0.78) 0%, rgba(247, 191, 214, 0.84) 52%, rgba(207, 226, 255, 0.72) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 48% 52% 44% 56%;
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.38), 0 2px 6px rgba(236, 182, 206, 0.1);
    filter: blur(0.2px);
}

.globe-continent-a {
    width: 35%;
    height: 22%;
    left: 12%;
    top: 24%;
    transform: rotate(-12deg);
}

.globe-continent-b {
    width: 30%;
    height: 18%;
    right: 12%;
    top: 34%;
    transform: rotate(16deg);
}

.globe-continent-c {
    width: 25%;
    height: 16%;
    left: 36%;
    bottom: 18%;
    transform: rotate(-4deg);
}

.globe-continent-d {
    width: 18%;
    height: 12%;
    right: 26%;
    bottom: 24%;
    transform: rotate(20deg);
    opacity: 0.9;
}

.globe-cloud {
    border-radius: 999px;
    background: rgba(255, 243, 243, 0.68);
    filter: blur(0.2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
    animation: couple-space-travel-globe-cloud-float 5.6s ease-in-out infinite;
}

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

.globe-cloud-a {
    width: 34px;
    height: 14px;
    left: 24%;
    top: 20%;
}

.globe-cloud-a::before {
    width: 14px;
    height: 14px;
    left: 5px;
    top: -5px;
}

.globe-cloud-a::after {
    width: 12px;
    height: 12px;
    right: 6px;
    top: -3px;
}

.globe-cloud-b {
    width: 30px;
    height: 12px;
    right: 22%;
    bottom: 24%;
    animation-delay: -2.3s;
}

.globe-cloud-b::before {
    width: 13px;
    height: 13px;
    left: 4px;
    top: -4px;
}

.globe-cloud-b::after {
    width: 11px;
    height: 11px;
    right: 5px;
    top: -3px;
}

.globe-orbit {
    inset: -1%;
    border-radius: 50%;
    animation: couple-space-travel-logo-orbit 18s linear infinite;
    pointer-events: none;
}

.globe-orbit-logo {
    top: 7%;
    left: 50%;
    width: 16%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateX(-50%) rotate(8deg);
    background-image: url('love-mi-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter:
        drop-shadow(0 5px 10px rgba(255, 243, 243, 0.38))
        saturate(0)
        brightness(1.22)
        sepia(0.18)
        hue-rotate(292deg);
    opacity: 0.98;
    mix-blend-mode: screen;
}

.globe-orbit-logo::before {
    content: '';
    position: absolute;
    inset: -16%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 243, 243, 0.3) 0%, rgba(255, 243, 243, 0) 72%);
}

.globe-orbit-logo::after {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 243, 243, 0.76) 0%, rgba(247, 191, 214, 0.48) 50%, rgba(207, 226, 255, 0.34) 100%);
    mix-blend-mode: multiply;
    opacity: 0.76;
}

.couple-space-travel-map-shell {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    pointer-events: none;
}

.couple-space-travel-map {
    position: relative;
    width: min(100%, 336px);
    min-height: 240px;
    border: none;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 247, 250, 0.94) 100%);
    box-shadow: 0 18px 38px rgba(203, 128, 151, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    overflow: hidden;
    padding: 14px 14px 18px;
}

.couple-space-travel-map-bg,
.couple-space-travel-map-markers {
    position: absolute;
    inset: 0;
}

.couple-space-travel-map-title {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #6a4c56;
}

.couple-space-travel-map-hint {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    z-index: 2;
    font-size: 11px;
    line-height: 1.45;
    color: #9a7c85;
    text-align: center;
}

.map-water-layer,
.map-terrain-layer,
.map-building-layer,
.map-cat-layer,
.map-cloud-layer {
    position: absolute;
    inset: 0;
}

.map-waterline,
.map-terrain,
.map-building,
.map-cat-svg,
.map-cloud {
    position: absolute;
    opacity: 0.7;
}

.map-waterline {
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(163, 209, 231, 0.12) 0%, rgba(130, 188, 222, 0.42) 34%, rgba(163, 209, 231, 0.12) 100%);
}

.map-waterline-0 {
    left: 14%;
    right: 12%;
    top: 50%;
    transform: rotate(-12deg);
}

.map-waterline-1 {
    left: 24%;
    right: 18%;
    top: 32%;
    transform: rotate(10deg);
}

.map-waterline-2 {
    left: 18%;
    right: 24%;
    top: 66%;
    transform: rotate(-6deg);
}

.map-terrain {
    width: 74px;
    height: 36px;
    border-radius: 46px 46px 0 0;
    border: 2px solid rgba(205, 154, 171, 0.35);
    border-bottom: none;
}

.map-terrain.is-mountain {
    height: 42px;
    border-color: rgba(181, 139, 163, 0.48);
}

.map-terrain-0 { left: 18%; top: 28%; }
.map-terrain-1 { right: 18%; top: 62%; }
.map-terrain-2 { left: 55%; top: 18%; }
.map-terrain-3 { left: 30%; top: 72%; }

.map-building {
    width: 18px;
    height: 34px;
    border-radius: 8px 8px 3px 3px;
    border: 2px solid rgba(202, 160, 174, 0.34);
    background: rgba(255, 255, 255, 0.32);
}

.map-building-0 { left: 68%; top: 34%; }
.map-building-1 { left: 74%; top: 36%; height: 28px; }
.map-building-2 { left: 60%; top: 62%; }
.map-building-3 { left: 22%; top: 22%; height: 26px; }

.map-cat-svg {
    z-index: 1;
    width: 28px;
    height: 28px;
    color: rgba(195, 124, 146, 0.78);
    filter: drop-shadow(0 3px 8px rgba(255, 255, 255, 0.45));
}

.map-cat-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.map-cat-svg-0 { right: 18%; top: 22%; }
.map-cat-svg-1 { left: 18%; bottom: 20%; }

.map-cloud {
    z-index: 0;
    width: 52px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    filter: blur(0.2px);
}

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

.map-cloud::before {
    width: 22px;
    height: 22px;
    left: 7px;
    top: -8px;
}

.map-cloud::after {
    width: 18px;
    height: 18px;
    right: 9px;
    top: -5px;
}

.map-cloud-0 {
    left: 14%;
    top: 18%;
}

.map-cloud-1 {
    right: 14%;
    bottom: 18%;
}

.map-cloud-2 {
    right: 22%;
    top: 16%;
}

.couple-space-travel-marker {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    animation: couple-space-travel-marker-in 0.45s ease forwards;
}

.marker-icon {
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 16px rgba(196, 136, 155, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #d36f8f;
}

.marker-label {
    max-width: 84px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    font-size: 11px;
    line-height: 1.3;
    color: #7e6470;
    text-align: center;
}

.couple-space-travel-rails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.couple-space-travel-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.couple-space-travel-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 24px rgba(214, 153, 173, 0.12);
    padding: 12px 12px 11px;
    opacity: 0;
    transform: translateY(12px);
    animation: couple-space-travel-card-in 0.48s ease forwards;
}

.couple-space-travel-card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    color: #6a4c56;
}

.couple-space-travel-card-tag {
    margin-top: 4px;
    font-size: 11px;
    color: #d36f8f;
}

.couple-space-travel-card-food {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.45;
    color: #8f7380;
}

.couple-space-travel-stage.is-searching .couple-space-travel-globe,
.couple-space-travel-stage.is-idle .couple-space-travel-globe {
    opacity: 1;
}

.couple-space-travel-stage.is-slowing .couple-space-travel-globe {
    animation-duration: 2.2s;
}

.couple-space-travel-stage.is-unfolding .couple-space-travel-globe,
.couple-space-travel-stage.is-map-ready .couple-space-travel-globe,
.couple-space-travel-stage.is-approximate-ready .couple-space-travel-globe {
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.46s ease, transform 0.52s ease;
}

.couple-space-travel-stage.is-unfolding .couple-space-travel-map-shell,
.couple-space-travel-stage.is-map-ready .couple-space-travel-map-shell,
.couple-space-travel-stage.is-approximate-ready .couple-space-travel-map-shell {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: opacity 0.46s ease, transform 0.52s ease;
}

.couple-space-travel-stage.is-approximate-ready .couple-space-travel-map::after {
    content: '灵感版';
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 237, 242, 0.95);
    color: #d36f8f;
    font-size: 11px;
    font-weight: 700;
}

.couple-space-travel-stage.is-theme-lake .map-waterline {
    opacity: 0.92;
}

.couple-space-travel-stage.is-theme-garden .map-terrain.is-soft {
    border-color: rgba(142, 187, 136, 0.52);
}

.couple-space-travel-stage.is-theme-city .marker-icon {
    color: #c86082;
}

@keyframes couple-space-travel-cat-track-roam {
    0% {
        transform: translateX(-18px) scaleX(1);
    }
    45% {
        transform: translateX(82px) scaleX(1);
    }
    50% {
        transform: translateX(82px) scaleX(-1);
    }
    95% {
        transform: translateX(-18px) scaleX(-1);
    }
    100% {
        transform: translateX(-18px) scaleX(1);
    }
}

@keyframes couple-space-travel-cat-walk-lead {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }
    25% {
        transform: translateY(-2px) rotate(0deg);
    }
    50% {
        transform: translateY(0) rotate(1deg);
    }
    75% {
        transform: translateY(-1px) rotate(0deg);
    }
}

@keyframes couple-space-travel-cat-walk-follow {
    0%,
    100% {
        transform: translateY(0) rotate(1deg);
    }
    25% {
        transform: translateY(-1px) rotate(0deg);
    }
    50% {
        transform: translateY(0) rotate(-1deg);
    }
    75% {
        transform: translateY(-2px) rotate(0deg);
    }
}

@keyframes couple-space-travel-globe-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes couple-space-travel-logo-orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes couple-space-travel-globe-cloud-float {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-3px) translateX(2px);
    }
}

@keyframes couple-space-travel-marker-in {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 10px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes couple-space-travel-card-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.travel-offline-card {
    position: relative;
    flex: 0 0 auto;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 30px rgba(205, 145, 164, 0.16);
    overflow: hidden;
    transition:
        padding 0.28s ease,
        border-radius 0.28s ease,
        background 0.55s ease,
        box-shadow 0.55s ease,
        backdrop-filter 0.55s ease,
        -webkit-backdrop-filter 0.55s ease;
}

/* 线下约会顶部卡片：久无操作后半透明磨砂（blur 4px） */
.travel-offline-card.is-idle-dim {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 12px 26px rgba(205, 145, 164, 0.12);
}

.travel-offline-card-toggle {
    position: absolute;
    inset: 0;
    border: none;
    background: transparent;
    z-index: 3;
}

.travel-offline-card-waterline {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(162, 208, 229, 0.1) 0%, rgba(123, 187, 221, 0.62) 35%, rgba(162, 208, 229, 0.1) 100%);
    transform: translateY(-50%) scaleX(0.86);
    opacity: 0;
    transition: opacity 0.26s ease;
}

.travel-offline-card-expanded,
.travel-offline-card-collapsed {
    position: relative;
    z-index: 4;
}

.travel-offline-card-expanded {
    display: flex;
    align-items: center;
    gap: 10px;
}

.travel-offline-card-collapsed {
    display: none;
    text-align: center;
    font-size: 12px;
    color: #8b6f7c;
}

.travel-offline-card.is-collapsed {
    padding-top: 14px;
    padding-bottom: 14px;
    border-radius: 999px;
}

.travel-offline-card.is-collapsed .travel-offline-card-expanded {
    display: none;
}

.travel-offline-card.is-collapsed .travel-offline-card-collapsed {
    display: block;
}

.travel-offline-card.is-collapsed .travel-offline-card-waterline {
    opacity: 1;
}

.travel-offline-card.is-collapsed .travel-offline-card-ecg-wrap {
    display: none;
}

.travel-offline-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 240, 245, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b96d86;
    font-weight: 700;
}

.travel-offline-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.travel-offline-card-center {
    flex: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

/* 心电图式跳动分隔线（仅展开态可见） */
.travel-offline-card-ecg-wrap {
    width: 100%;
    height: 16px;
    margin: 2px 0 2px;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0.95;
}

.travel-offline-card-ecg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 3px rgba(200, 90, 120, 0.22));
}

.travel-offline-card-ecg-motion {
    will-change: transform;
    animation: travel-offline-ecg-marquee 2.35s linear infinite;
}

.travel-offline-card-ecg-path {
    stroke-dasharray: 16 8 48 20;
    stroke-dashoffset: 0;
    animation: travel-offline-ecg-pulse 1.18s cubic-bezier(0.24, 0, 0.18, 1) infinite;
}

.travel-offline-card-ecg-path:nth-child(2) {
    animation-delay: 0.16s;
}

@keyframes travel-offline-ecg-marquee {
    from {
        transform: translate3d(-50%, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes travel-offline-ecg-pulse {
    0% {
        stroke-opacity: 0.52;
        stroke-width: 1.12;
        stroke-dashoffset: 14;
    }
    14% {
        stroke-opacity: 0.72;
    }
    28% {
        stroke-opacity: 1;
        stroke-width: 1.62;
        stroke-dashoffset: 0;
    }
    38% {
        stroke-opacity: 0.9;
        stroke-width: 1.34;
    }
    52% {
        stroke-opacity: 0.6;
        stroke-width: 1.12;
        stroke-dashoffset: -12;
    }
    72% {
        stroke-opacity: 0.86;
        stroke-width: 1.44;
    }
    100% {
        stroke-opacity: 0.52;
        stroke-width: 1.12;
        stroke-dashoffset: -28;
    }
}

@media (prefers-reduced-motion: reduce) {
    .travel-offline-card-ecg-motion {
        animation: none;
    }

    .travel-offline-card-ecg-path {
        animation: none;
        stroke-opacity: 0.92;
    }
}

.travel-offline-newspaper-row-1,
.travel-offline-newspaper-row-2 {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    line-height: 1.6;
}

.travel-offline-newspaper-row-1 {
    font-family: 'TravelNarrationFont', serif;
    font-size: 12px;
    color: #4a3040;
    letter-spacing: 0.06em;
    padding-bottom: 0;
    border-bottom: none;
}

.travel-offline-newspaper-row-2 {
    margin-top: 3px;
    font-size: 12px;
}

.travel-offline-card-datetime,
.travel-offline-card-weather {
    font-family: 'TravelNarrationFont', serif;
    color: #4a3040;
    letter-spacing: 0.04em;
}

.travel-offline-card-week {
    font-family: 'TravelNarrationFont', serif;
    color: #5a3d48;
    letter-spacing: 0.04em;
}

.travel-offline-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    font-size: 12px;
    color: #8c7080;
}

.travel-offline-card-address {
    font-family: 'TaiWanMingTic', serif;
    color: #3a2030;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.travel-offline-chat {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 14px 2px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.travel-offline-chat::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.travel-offline-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.travel-offline-message.is-user {
    justify-content: flex-end;
}

.travel-offline-message.is-narration,
.travel-offline-message.is-tip {
    justify-content: center;
}

/* 同一轮消息：纯文字气泡与 HTML 卡片气泡纵向排列，data-offline-message-id 挂在容器上 */
.travel-offline-message-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 72%;
    min-width: 0;
    align-items: flex-start;
}

.travel-offline-message.is-user .travel-offline-message-stack {
    align-items: flex-end;
}

.travel-offline-message.is-narration .travel-offline-message-stack {
    max-width: 92%;
    align-items: center;
    width: 92%;
}

.travel-offline-message-stack > .travel-offline-message-bubble {
    max-width: 100%;
}

.travel-offline-message-stack > .travel-offline-message-bubble--rich {
    width: 100%;
}

.travel-offline-message-bubble.is-narration.travel-offline-message-bubble--rich {
    max-width: min(96%, 100vw);
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
}

.travel-offline-message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 243, 246, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ba6f88;
    font-weight: 700;
    flex-shrink: 0;
}

.travel-offline-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.travel-offline-message-bubble {
    max-width: 72%;
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: 0 10px 20px rgba(214, 153, 173, 0.1);
    column-count: 1 !important;
    columns: auto !important;
}

.travel-offline-message-bubble * {
    column-count: 1 !important;
    columns: auto !important;
}

.travel-offline-message-bubble.is-dialogue {
    background: rgba(255, 255, 255, 0.9);
    color: #6b515b;
    font-family: 'TravelDialogueFont', serif;
    font-size: 14px;
    line-height: 1.7;
}

.travel-offline-message-bubble.is-dialogue.is-emoji {
    padding: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.travel-offline-emoji {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.travel-offline-message-bubble.is-narration {
    max-width: 92%;
    background: rgba(255, 250, 252, 0.92);
    color: #7f6871;
    /* 汇文明朝体为主；后续字体用于单字回退，减轻缺字留白 */
    font-family: 'TravelNarrationFont', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC',
        'Source Han Sans SC', serif;
    font-size: 15px;
    line-height: 1.9;
}

.travel-offline-message-bubble--rich {
    word-break: break-word;
}

.travel-offline-message-bubble--rich img {
    max-width: 100%;
    height: auto;
    display: block;
}

.travel-offline-message-bubble--rich table {
    max-width: 100%;
    border-collapse: collapse;
}

/* 对白里挂卡片 / 直播壳 / 弹幕层：放宽宽度并隔离层叠，避免动画溢出把整条消息撑破 */
.travel-offline-message-bubble.is-dialogue.travel-offline-message-bubble--rich {
    max-width: min(96%, 100vw);
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
}

.travel-offline-message-bubble--rich video,
.travel-offline-message-bubble--rich iframe {
    max-width: 100%;
    vertical-align: middle;
}

.travel-offline-message-bubble--rich svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.travel-offline-message-tip {
    font-size: 11px;
    color: #9a7c85;
    background: rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    padding: 6px 10px;
}

/* 线下旅行约会加载提示 */
.travel-offline-loading-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100150;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(157, 78, 221, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.travel-offline-loading-hint.is-visible {
    opacity: 1;
    visibility: visible;
}

.travel-offline-loading-hint-text {
    font-size: 15px;
    color: #6a4c56;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.travel-offline-loading-hint-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(157, 78, 221, 0.2);
    border-top-color: #9d4edd;
    border-radius: 50%;
    animation: travel-loading-spin 0.8s linear infinite;
}

@keyframes travel-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

html[data-appearance="dark"] .travel-offline-loading-hint {
    background: rgba(44, 44, 46, 0.96);
}

html[data-appearance="dark"] .travel-offline-loading-hint-text {
    color: #f5f5f7;
}

html[data-appearance="dark"] .travel-offline-loading-hint-spinner {
    border-color: rgba(191, 148, 228, 0.3);
    border-top-color: #bf94e4;
}

.travel-offline-composer-wrap {
    flex: 0 0 auto;
    padding-top: 6px;
    position: relative;
    z-index: 131;
    padding-bottom: 0;
    background: transparent;
}

.travel-offline-tools-wrap {
    position: relative;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(212, 153, 173, 0.1);
    padding: 6px 10px 8px;
    transform: translateZ(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.travel-offline-tools-wrap.is-pressed {
    transform: translateY(1px) scale(0.992);
    box-shadow: 0 4px 14px rgba(212, 153, 173, 0.14);
    background: rgba(255, 255, 255, 0.9);
}

.travel-offline-tools {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    scrollbar-width: none;
    touch-action: pan-x;
    cursor: grab;
    user-select: none;
}

.travel-offline-tools::-webkit-scrollbar {
    display: none;
}

.travel-offline-tools.is-drag-ready {
    cursor: grabbing;
}

.travel-offline-tools-fade {
    position: absolute;
    top: 6px;
    bottom: 8px;
    width: 52px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
    z-index: 2;
    transform: scaleX(0.92);
    filter: blur(0.4px);
}

.travel-offline-tools-fade-left {
    left: 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 24%, rgba(255, 255, 255, 0.66) 52%, rgba(255, 255, 255, 0.2) 78%, rgba(255, 255, 255, 0) 100%);
}

.travel-offline-tools-fade-right {
    right: 10px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.92) 24%, rgba(255, 255, 255, 0.7) 52%, rgba(255, 255, 255, 0.22) 78%, rgba(255, 255, 255, 0) 100%);
}

.travel-offline-tools-wrap.show-left-fade .travel-offline-tools-fade-left,
.travel-offline-tools-wrap.show-right-fade .travel-offline-tools-fade-right {
    opacity: 1;
    transform: scaleX(1);
}

.travel-offline-tools-wrap.show-left-fade .travel-offline-tools-fade-left,
.travel-offline-tools-wrap.show-right-fade .travel-offline-tools-fade-right {
    animation: travel-offline-fade-breathe 2.4s ease-in-out infinite;
}

.travel-offline-tools-wrap.is-right-fade-emphasis.show-right-fade .travel-offline-tools-fade-right {
    opacity: 1;
    transform: scaleX(1.08);
    animation: travel-offline-fade-breathe 1.6s ease-in-out infinite;
}

@keyframes travel-offline-fade-breathe {
    0%,
    100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.travel-offline-tool {
    flex: 0 0 auto;
    min-width: 54px;
    height: 31px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #8d6f7c;
    font-size: 12px;
}

/* 旅行时间校准相关提示样式：同步旅行地点当地时间；深夜未入住会提示办理酒店入住 */
@keyframes travel-offline-hotel-rest-glow {
    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(234, 124, 149, 0.32);
    }
    50% {
        box-shadow:
            0 0 0 3px rgba(234, 124, 149, 0.78),
            0 0 14px rgba(229, 116, 145, 0.42);
    }
}

.travel-offline-tool.travel-offline-tool--hotel-rest-hint {
    animation: travel-offline-hotel-rest-glow 1.35s ease-in-out infinite;
}

.travel-offline-composer {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 7px;
    /* 输入框可随内容自动撑高，按钮停靠底部以保持视觉一致 */
    align-items: end;
    margin-top: 6px;
}

.travel-offline-composer-side,
.travel-offline-input {
    height: 38px;
    border-radius: 15px;
    box-sizing: border-box;
}

.travel-offline-composer-side {
    /* 防止输入框撑高时按钮被拉伸 */
    align-self: end;
}

.travel-offline-composer-side {
    border: none;
    background: rgba(255, 255, 255, 0.84);
    color: #8b6d79;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

.travel-offline-composer-side:disabled {
    cursor: wait;
}

.travel-offline-composer-side-left.is-loading {
    color: transparent;
}

.travel-offline-composer-side-left.is-loading::before,
.travel-offline-composer-side-left.is-loading::after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.travel-offline-composer-side-left.is-loading::before {
    content: '⌛';
    color: #8b6d79;
    font-size: 17px;
    animation: travel-offline-hourglass-flip 1s steps(2, end) infinite;
    transform-origin: 50% 50%;
}

.travel-offline-composer-side-left.is-loading::after {
    content: attr(data-loading-label);
    inset: auto 0 4px;
    font-size: 8px;
    line-height: 1;
    color: rgba(139, 109, 121, 0.72);
    letter-spacing: 0.04em;
}

@keyframes travel-offline-hourglass-flip {
    0% {
        transform: rotate(0deg);
    }
    49.999% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(180deg);
    }
}

.travel-offline-input {
    border: 1px solid rgba(228, 184, 198, 0.72);
    background: rgba(255, 255, 255, 0.92);
    /* textarea：垂直内边距让单行文字居中显示；多行时自动撑高 */
    padding: 8px 12px;
    color: #6a4c56;
    /* 取消用户拖拽 resize，由 JS 根据内容自动调整高度 */
    resize: none;
    /* 多行时内部滚动，外观不超过 120px */
    overflow-y: auto;
    min-height: 38px;
    max-height: 120px;
    line-height: 1.4;
    font-family: inherit;
    font-size: 14px;
    /* 与按钮组对齐底部，使输入框撑高时基线保持一致 */
    align-self: end;
    /* 兼容 textarea 在某些浏览器下默认带不必要的水平滚动条 */
    overflow-x: hidden;
    /* 默认换行行为，保留用户回车 */
    white-space: pre-wrap;
    word-break: break-word;
}

.travel-offline-message-bubble.is-dialogue.is-image {
    padding: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.travel-offline-photo {
    width: 112px;
    max-width: 100%;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* ============================ 消息气泡互动菜单 ============================ */
.travel-offline-bubble-menu {
    position: fixed;
    z-index: 1900;
    display: none;
    flex-direction: column;
    min-width: 124px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(255, 248, 250, 0.98);
    border: 1px solid rgba(218, 156, 178, 0.42);
    box-shadow: 0 14px 30px rgba(140, 70, 100, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.travel-offline-bubble-menu.show {
    display: flex;
}

.travel-offline-bubble-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #4d2a3a;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.1s ease;
}

.travel-offline-bubble-menu-item:hover {
    background: linear-gradient(180deg, rgba(255, 226, 232, 0.8) 0%, rgba(253, 213, 226, 0.55) 100%);
}

.travel-offline-bubble-menu-item:active {
    transform: scale(0.98);
}

.travel-offline-bubble-menu-ico {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c44d6a;
    font-size: 14px;
}

.travel-offline-bubble-menu-text {
    flex: 1;
    text-align: left;
    line-height: 1;
}

/* ============================== 多选模式 ============================== */
.travel-offline-chat.is-multi-select .travel-offline-message {
    cursor: pointer;
}

.travel-offline-chat.is-multi-select .travel-offline-message-bubble,
.travel-offline-chat.is-multi-select .travel-offline-message-tip {
    pointer-events: auto;
}

.travel-offline-message.is-multi-selected .travel-offline-message-bubble,
.travel-offline-message.is-multi-selected .travel-offline-message-tip,
.travel-offline-message.is-multi-selected .travel-offline-message-stack {
    box-shadow: 0 0 0 2px rgba(196, 77, 106, 0.55), 0 4px 14px rgba(196, 77, 106, 0.18);
    border-radius: 12px;
}

.travel-offline-message.is-multi-selected::before {
    content: '✓';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb1c5 0%, #c44d6a 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(196, 77, 106, 0.4);
    z-index: 5;
    pointer-events: none;
}

.travel-offline-message {
    position: relative;
}

/* 多选操作条：浮在 composer-wrap（工具栏 + 输入区）正上方 8px */
.travel-offline-multi-actionbar {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(100% + 8px);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border-radius: 14px;
    background: rgba(255, 248, 250, 0.98);
    border: 1px solid rgba(218, 156, 178, 0.45);
    box-shadow: 0 10px 24px rgba(140, 70, 100, 0.22);
    z-index: 132;
}

.travel-offline-multi-actionbar.show {
    display: flex;
}

.travel-offline-multi-count {
    font-size: 13px;
    color: #6f4250;
    font-weight: 600;
}

.travel-offline-multi-actions {
    display: flex;
    gap: 8px;
}

.travel-offline-multi-btn {
    border: 1px solid #f3d8e2;
    background: #fff7fa;
    color: #6f4250;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.travel-offline-multi-btn:hover {
    background: #ffe8f0;
}

.travel-offline-multi-btn:active {
    transform: scale(0.97);
}

.travel-offline-multi-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.travel-offline-multi-btn--danger {
    background: linear-gradient(135deg, #ffb1c5 0%, #c44d6a 100%);
    color: #fff;
    border-color: rgba(196, 77, 106, 0.6);
    font-weight: 600;
}

.travel-offline-multi-btn--danger:hover {
    background: linear-gradient(135deg, #ff97b3 0%, #b73d5c 100%);
}

.travel-offline-emoji-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(48vh, 320px);
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    z-index: 125;
    display: none;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}

.travel-offline-emoji-panel.show {
    display: block;
}

.travel-offline-emoji-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.travel-offline-emoji-category {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.travel-offline-emoji-category-item,
.travel-offline-emoji-category-add {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
}

.travel-offline-emoji-category-item.active {
    background: #000;
    color: #fff;
}

.travel-offline-emoji-category-add {
    border: 1px solid #e0e0e0;
    color: #666;
}

.travel-offline-emoji-panel-actions {
    display: flex;
    gap: 8px;
}

.travel-offline-emoji-panel-manage,
.travel-offline-emoji-panel-delete {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.travel-offline-emoji-panel-manage {
    border: none;
    background: none;
    color: #666;
}

.travel-offline-emoji-panel-delete {
    border: 1px solid #ff4d4f;
    background: #fff;
    color: #ff4d4f;
}

.travel-offline-emoji-panel-content {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
}

.travel-offline-emoji-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
}

.travel-offline-emoji-item {
    min-height: 72px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 2px;
}

.travel-offline-emoji-item.manage-mode-item.selected {
    outline: 2px solid #de8199;
}

.travel-offline-emoji-item-thumb {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.travel-offline-emoji-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.travel-offline-emoji-item-label {
    font-size: 12px;
    text-align: center;
    color: #666;
}

.travel-offline-emoji-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.travel-offline-emoji-add-button {
    width: 100px;
    height: 100px;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.travel-offline-emoji-add-icon,
.travel-offline-emoji-add-inline {
    font-size: 32px;
    color: #e0e0e0;
}

.travel-offline-emoji-empty-text {
    font-size: 14px;
    color: #999;
}

.travel-offline-add-emoji-modal,
.travel-offline-create-emoji-category-modal {
    width: 320px;
    min-height: 250px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
}

.travel-offline-add-emoji-content {
    padding: 20px;
}

.travel-offline-add-emoji-tip {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.travel-offline-add-emoji-content textarea,
.travel-offline-create-emoji-category-content input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.travel-offline-emoji-upload-row {
    margin-top: 12px;
}

.travel-offline-camera-modal {
    z-index: 140;
    background-color: rgba(38, 38, 38, 0.55);
    backdrop-filter: blur(6px);
}

.travel-offline-camera-modal-inner {
    width: min(94vw, 392px);
    max-height: 90vh;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
}

.travel-offline-camera-stage {
    padding: 8px 6px 6px;
}

.travel-offline-camera-frame-wrap {
    position: relative;
    width: 100%;
    /* 取景框整体等比例放大 12px（原 360px → 372px），由 aspect-ratio 自动等比缩放高度 */
    max-width: 372px;
    margin: 0 auto;
    aspect-ratio: 1081 / 760;
    border-radius: 18px;
    overflow: visible;
    background: transparent;
    /* 用 drop-shadow 沿 PNG 不透明轮廓（粉色顶部条 + 圆角外形）画阴影，
       不会把中央透明的取景孔再画一遍轮廓，整体悬浮感更自然 */
    filter: drop-shadow(0 12px 24px rgba(120, 60, 80, 0.22));
}

/* 取景孔位置：精确对应 -frame.png 中央透明矩形（top 16.05%, left 0.28%, right 0.46%, bottom 0.53%），
   让 video 紧贴 PNG 中央透明区，外圈粉色条 + 圆角白边由 PNG 自身呈现，框架不被破坏 */
.travel-offline-camera-video-shell {
    position: absolute;
    top: 16.05%;
    left: 0.3%;
    right: 0.5%;
    bottom: 0.5%;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    z-index: 1;
    background: #000;
}

.travel-offline-camera-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.travel-offline-camera-video.travel-offline-camera-mirror {
    transform: scaleX(-1);
}

.travel-offline-camera-frame-deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}

.travel-offline-camera-frame-controls {
    position: absolute;
    top: 1.6%;
    right: 3.4%;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

.travel-offline-camera-mini-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.92);
    color: #d96a86;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(120, 60, 80, 0.18);
    transition: transform 0.15s ease, background 0.15s ease;
}

.travel-offline-camera-mini-btn:hover {
    background: #fff;
    transform: scale(1.06);
}

.travel-offline-camera-mini-btn:active {
    transform: scale(0.94);
}

.travel-offline-camera-mini-shutter {
    background: linear-gradient(135deg, #ffd1de 0%, #ff9bbb 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.95);
}

.travel-offline-camera-mini-shutter-dot {
    display: block;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px #ff7da6;
}

.travel-offline-camera-hint {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: #6f4250;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* 「拍摄」来源选择弹层：本地上传 / 相机拍摄 */
.travel-offline-photo-source-modal {
    z-index: 145;
    background-color: rgba(38, 38, 38, 0.45);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.travel-offline-photo-source-sheet {
    width: min(86vw, 320px);
    background: #fff;
    border-radius: 18px;
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(243, 216, 226, 0.7);
}

.travel-offline-photo-source-title {
    font-size: 16px;
    font-weight: 600;
    color: #6f4250;
    text-align: center;
}

.travel-offline-photo-source-sub {
    font-size: 12px;
    color: #a07686;
    text-align: center;
    margin-bottom: 6px;
}

.travel-offline-photo-source-btn {
    width: 100%;
    border: 1px solid #f3d8e2;
    background: #fff7fa;
    color: #6f4250;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.travel-offline-photo-source-btn:hover {
    background: #ffe8f0;
}

.travel-offline-photo-source-btn:active {
    transform: scale(0.98);
}

.travel-offline-photo-source-cancel {
    background: #f5f5f5;
    border-color: #e8e8e8;
    color: #555;
    margin-top: 4px;
}

.travel-footprints-board {
    flex: 1;
    min-height: 0;
    margin-top: 10px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.62) 0 14%, transparent 15%),
        linear-gradient(180deg, #f7ced7 0%, #f5dadf 48%, #fff3f3 100%);
    padding: 18px 16px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: auto;
}

.couple-space-travel-shell.is-footprints .couple-space-travel-view-footprints {
    min-height: 100%;
}

.couple-space-travel-shell.is-footprints .travel-footprints-board {
    min-height: 100%;
    margin-top: 0;
    border-radius: inherit;
    padding:
        calc(84px + env(safe-area-inset-top, 0px))
        18px
        calc(22px + env(safe-area-inset-bottom, 0px));
}


.travel-footprints-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.26), transparent 36%),
        radial-gradient(rgba(154, 113, 128, 0.12) 1px, transparent 1px);
    background-size: auto, 16px 16px;
    opacity: 0.72;
    pointer-events: none;
}

.travel-footprints-board-head,
.travel-footprints-board-sub,
.travel-footprints-slots {
    position: relative;
    z-index: 1;
}

.travel-footprints-board-head {
    font-size: 22px;
    font-weight: 800;
    color: #8d6473;
    text-align: center;
}

.travel-footprints-board-sub {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
    color: #9a7c85;
}

.travel-footprints-slots {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.travel-footprints-slot {
    border: none;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.travel-footprints-ticket {
    position: relative;
    min-height: 108px;
    border-radius: 12px;
    color: #4f5960;
    background:
        linear-gradient(90deg, rgba(246, 232, 231, 0.92) 0 27%, transparent 27%),
        linear-gradient(135deg, #f6e8e7 0%, #f0e8ef 48%, #e9e7f5 100%);
    box-shadow: 0 16px 28px rgba(148, 107, 126, 0.16);
    overflow: hidden;
    isolation: isolate;
    transform: rotate(-0.8deg);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.travel-footprints-ticket:nth-child(even) {
    transform: rotate(0.7deg);
}

.travel-footprints-ticket::before,
.travel-footprints-ticket::after {
    content: '';
    position: absolute;
    left: 27%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f7ced7;
    z-index: 3;
    transform: translateX(-50%);
}

.travel-footprints-ticket::before {
    top: -9px;
}

.travel-footprints-ticket::after {
    bottom: -9px;
}

.travel-footprints-ticket:hover {
    transform: translateY(-2px) rotate(0deg);
    box-shadow: 0 20px 34px rgba(148, 107, 126, 0.22);
}

.travel-footprints-ticket:active {
    transform: translateY(1px) scale(0.99);
}

.travel-ticket-stub,
.travel-ticket-main {
    position: relative;
    z-index: 2;
}

.travel-ticket-stub {
    width: 27%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px dashed rgba(160, 124, 139, 0.34);
}

.travel-ticket-barcode {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background:
        repeating-linear-gradient(90deg, #3f4a4f 0 2px, transparent 2px 4px, #3f4a4f 4px 5px, transparent 5px 8px),
        linear-gradient(#fff, #fff);
    opacity: 0.76;
}

.travel-ticket-stub-code {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    color: #8e6b79;
}

.travel-ticket-main {
    flex: 1;
    min-width: 0;
    padding: 12px 13px 11px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.travel-ticket-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    font-weight: 800;
    color: #8e6b79;
    text-transform: uppercase;
}

.travel-ticket-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}

.travel-ticket-flight {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 10px;
    color: #a58c98;
}

.travel-ticket-route {
    display: grid;
    grid-template-columns: minmax(42px, auto) 22px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.travel-ticket-route-from,
.travel-ticket-route-to {
    display: block;
    min-width: 0;
    font-size: 19px;
    line-height: 1.08;
    font-weight: 900;
    color: #5f4d5b;
}

.travel-ticket-route-to {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.travel-ticket-plane {
    color: #b88798;
    font-size: 17px;
    line-height: 1;
    text-align: center;
}

.travel-ticket-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    font-size: 11px;
    line-height: 1.3;
    color: #75646f;
}

.travel-ticket-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.travel-ticket-meta b {
    display: block;
    margin-bottom: 2px;
    font-size: 9px;
    color: #aa919d;
}

.travel-footprints-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #9a7c85;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.46);
}

html[data-appearance="dark"] .travel-footprints-board {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.07) 0 14%, transparent 15%),
        linear-gradient(180deg, #4a3038 0%, #44333a 48%, #3f3338 100%);
}

html[data-appearance="dark"] .travel-footprints-ticket {
    color: #eef4ed;
    background:
        linear-gradient(90deg, #4a383d 0 27%, transparent 27%),
        linear-gradient(135deg, #4a383d 0%, #40394b 100%);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.34);
}

html[data-appearance="dark"] .travel-footprints-ticket::before,
html[data-appearance="dark"] .travel-footprints-ticket::after {
    background: #4a3038;
}

html[data-appearance="dark"] .travel-ticket-route-from,
html[data-appearance="dark"] .travel-ticket-route-to {
    color: #f5f5f7;
}

html[data-appearance="dark"] .travel-ticket-brand,
html[data-appearance="dark"] .travel-ticket-plane {
    color: #f7ced7;
}

html[data-appearance="dark"] .travel-ticket-meta,
html[data-appearance="dark"] .travel-ticket-stub-code {
    color: rgba(235, 235, 245, 0.72);
}

html[data-appearance="dark"] .travel-ticket-meta b,
html[data-appearance="dark"] .travel-ticket-flight {
    color: rgba(235, 235, 245, 0.48);
}

html[data-appearance="dark"] .travel-footprints-empty {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(235, 235, 245, 0.72);
}

.travel-replay-card {
    margin-top: 10px;
    padding: 16px 18px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
}

.travel-replay-card-title {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    color: #7b6472;
}

.travel-replay-card-meta {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #9a7c85;
}

.travel-replay-card-address {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    color: #6a4c56;
}

.travel-replay-toolbar {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.travel-replay-tool {
    min-width: 86px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6bec9 0%, #e39bb4 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 22px rgba(227, 155, 180, 0.22);
}

/* 挂在 .couple-space-travel-view-offline 下，覆盖整页约会区（含聊天与底栏），避免被 composer-wrap 裁切 */
.travel-offline-settings-modal {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 520;
    background: rgba(62, 44, 52, 0.38);
    padding: max(12px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    /* 防止内部滚动/子项溢出向上延伸时被 .couple-space-travel-shell { overflow:hidden } 裁成「半截卡片」 */
    overflow: hidden;
}

.travel-offline-settings-modal.show {
    display: flex;
}

.travel-offline-settings-panel {
    width: 100%;
    max-width: 400px;
    min-height: 0;
    /* 100% 相对弹层内容区，避免仅用 vh 时高于约会页实际高度、画出 shell 被裁切 */
    max-height: min(560px, 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 24px 56px rgba(101, 70, 83, 0.32);
    padding: 18px 16px 16px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.travel-offline-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 800;
    color: #7b6472;
}

.travel-offline-settings-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(233, 190, 204, 0.32);
    color: #8a6875;
    font-size: 22px;
    line-height: 1;
}

.travel-offline-settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    color: #7b6472;
}

.travel-offline-settings-field input {
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(227, 182, 197, 0.72);
    background: rgba(255, 255, 255, 0.78);
    padding: 0 12px;
    font-size: 14px;
    color: #6a4c56;
    box-sizing: border-box;
}

.travel-offline-settings-field select {
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(227, 182, 197, 0.72);
    background: rgba(255, 255, 255, 0.78);
    padding: 0 12px;
    font-size: 14px;
    color: #6a4c56;
    box-sizing: border-box;
}

.travel-offline-worldbook-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.travel-offline-worldbook-toggle {
    align-self: flex-start;
    min-width: 96px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(233, 190, 204, 0.52);
    color: #7b6472;
    font-size: 13px;
    font-weight: 700;
}

.travel-offline-worldbook-options {
    max-height: 168px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(227, 182, 197, 0.45);
}

.travel-offline-worldbook-options.is-hidden {
    display: none;
}

.travel-offline-worldbook-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 2px;
    font-size: 13px;
    color: #6a4c56;
}

.travel-offline-worldbook-option + .travel-offline-worldbook-option {
    border-top: 1px solid rgba(227, 182, 197, 0.25);
}

.travel-offline-worldbook-option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.travel-offline-worldbook-option-text small {
    font-size: 11px;
    color: #a68591;
}

.travel-offline-worldbook-empty {
    font-size: 12px;
    color: #a68591;
    text-align: center;
    padding: 8px 0;
}

.travel-offline-settings-field input:focus,
.travel-offline-settings-field select:focus {
    outline: none;
    border-color: rgba(218, 126, 150, 0.85);
    box-shadow: 0 0 0 3px rgba(238, 157, 176, 0.16);
}

.travel-offline-settings-field input:disabled {
    opacity: 0.55;
}

.travel-offline-settings-check {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
    color: #7b6472;
}

.travel-offline-settings-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.travel-offline-settings-btn {
    min-width: 82px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #ee9db0 0%, #da7e96 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.travel-offline-settings-btn.is-ghost {
    background: rgba(233, 190, 204, 0.3);
    color: #8a6875;
}

@media (max-height: 640px) {
    .travel-offline-settings-panel {
        max-height: min(480px, 100%);
    }
}

@media (max-width: 390px) {
    .travel-offline-settings-modal {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.travel-replay-chat {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-top: 12px;
    padding-right: 2px;
}

@media (max-width: 360px) {
    .couple-space-travel-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .couple-space-travel-stage-canvas {
        min-height: 248px;
    }

    .couple-space-travel-map {
        min-height: 220px;
    }

    .couple-space-travel-rails {
        gap: 8px;
    }

    .couple-space-travel-card {
        padding-left: 10px;
        padding-right: 10px;
    }

    .travel-footprints-slots {
        gap: 14px 12px;
    }
}

/* ── Char 头像点击交互 ── */
.travel-offline-char-clickable {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
}

.travel-offline-char-clickable:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 16px rgba(180, 100, 140, 0.30);
}

.travel-offline-char-clickable:active {
    transform: scale(0.94);
}

/* ── Char 心情弹窗 ── */
.travel-offline-char-mood-popup {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.44s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.32s ease,
                margin-top 0.30s ease;
}

.travel-offline-char-mood-popup.is-visible {
    max-height: 640px;
    opacity: 1;
    margin-top: 10px;
}

.travel-offline-char-mood-popup-inner {
    border-radius: 16px;
    background: linear-gradient(135deg,
        rgba(255, 200, 220, 0.85) 0%,
        rgba(200, 220, 255, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 14px 14px;
    margin-bottom: 2px;
}

.travel-offline-char-mood-section {
    margin-bottom: 8px;
}

.travel-offline-char-mood-section:last-child {
    margin-bottom: 0;
}

.travel-offline-char-mood-label {
    font-family: 'TravelNarrationFont', serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: rgba(80, 40, 60, 0.55);
    margin-bottom: 3px;
}

.travel-offline-char-mood-env-text {
    font-family: 'TravelNarrationFont', serif;
    font-size: 12px;
    line-height: 1.75;
    color: #3a2535;
    white-space: pre-wrap;
}

.travel-offline-char-mood-emotion-text {
    font-family: 'TravelNarrationFont', serif;
    font-size: 13px;
    line-height: 1.85;
    color: #2e1a28;
    white-space: pre-wrap;
}

.travel-offline-char-mood-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'TravelNarrationFont', serif;
    font-size: 12px;
    color: rgba(80, 40, 60, 0.65);
    padding: 10px 0;
}

.travel-offline-char-mood-loading::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(180, 100, 140, 0.3);
    border-top-color: rgba(180, 100, 140, 0.85);
    border-radius: 50%;
    animation: travel-mood-spin 0.8s linear infinite;
}

@keyframes travel-mood-spin {
    to { transform: rotate(360deg); }
}

html[data-appearance="dark"] .travel-offline-char-mood-popup-inner {
    background: linear-gradient(135deg,
        rgba(120, 60, 90, 0.85) 0%,
        rgba(60, 80, 140, 0.85) 100%);
}

html[data-appearance="dark"] .travel-offline-char-mood-env-text,
html[data-appearance="dark"] .travel-offline-char-mood-emotion-text {
    color: rgba(245, 235, 240, 0.92);
}

html[data-appearance="dark"] .travel-offline-char-mood-label {
    color: rgba(220, 200, 210, 0.55);
}

/* =========================================================
 * 旅行出发验票弹窗
 *   - 点击小地图前先出的"车票验票 / 未购票"弹窗
 *   - 玻璃拟态卡片 + 居中打开动画，遵循情侣空间整体粉色基调
 * ========================================================= */
.couple-space-travel-map {
    cursor: pointer;
}

.couple-travel-ticket-modal {
    position: fixed;
    inset: 0;
    z-index: 100260;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.couple-travel-ticket-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.couple-travel-ticket-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(48, 24, 40, 0.44);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.couple-travel-ticket-modal-panel {
    position: relative;
    width: min(420px, 100%);
    max-width: 100%;
    padding: 22px 22px 18px;
    border-radius: 22px;
    background: linear-gradient(170deg, #fff6f1 0%, #fff0f6 55%, #f4e8ff 100%);
    border: 1px solid rgba(255, 190, 210, 0.7);
    box-shadow: 0 16px 42px rgba(180, 90, 130, 0.28);
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.2, 0.75, 0.25, 1), opacity 0.22s ease;
    font-family: 'TaiWanMingTic', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    color: #3f1f35;
}

.couple-travel-ticket-modal.is-open .couple-travel-ticket-modal-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.couple-travel-ticket-modal-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 14px;
}

.couple-travel-ticket-modal-tag {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(225, 110, 150, 0.16);
    color: #c14575;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.couple-travel-ticket-modal-tag.is-warn {
    background: rgba(255, 186, 120, 0.2);
    color: #b0611a;
}

.couple-travel-ticket-modal-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.32;
    font-weight: 600;
    color: #4a1f36;
}

.couple-travel-ticket-modal-sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(74, 31, 54, 0.78);
}

.couple-travel-ticket-modal-sub strong {
    color: #b3305e;
    font-weight: 600;
}

.couple-travel-ticket-modal-multi {
    margin: 0 0 10px;
    padding: 7px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    color: #69364c;
    font-size: 12px;
    line-height: 1.5;
}

.couple-travel-ticket-modal-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px dashed rgba(225, 120, 160, 0.55);
}

.couple-travel-ticket-modal-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    line-height: 1.55;
}

.couple-travel-ticket-modal-card-row span {
    color: rgba(74, 31, 54, 0.55);
    letter-spacing: 0.04em;
    min-width: 48px;
}

.couple-travel-ticket-modal-card-row strong {
    font-weight: 600;
    color: #3c1831;
    text-align: right;
    flex: 1;
    word-break: break-all;
}

.couple-travel-ticket-modal-card-row.is-serial strong {
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    color: #85405d;
    letter-spacing: 0.06em;
}

.couple-travel-ticket-modal-required-hint {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 230, 200, 0.55);
    color: #8a4a1e;
    font-size: 12px;
    line-height: 1.65;
}

.couple-travel-ticket-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.couple-travel-ticket-modal-btn {
    appearance: none;
    border: 0;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-family: inherit;
}

.couple-travel-ticket-modal-btn.is-ghost {
    background: rgba(255, 255, 255, 0.72);
    color: #6a344d;
    border: 1px solid rgba(194, 110, 140, 0.35);
}

.couple-travel-ticket-modal-btn.is-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff94b6 0%, #ff6a99 55%, #c64a87 100%);
    box-shadow: 0 6px 16px rgba(210, 80, 130, 0.32);
}

.couple-travel-ticket-modal-btn:active {
    transform: translateY(1px);
}

/* 深色模式适配 */
html[data-appearance="dark"] .couple-travel-ticket-modal-mask {
    background: rgba(20, 8, 16, 0.6);
}

html[data-appearance="dark"] .couple-travel-ticket-modal-panel {
    background: linear-gradient(170deg, #321e2d 0%, #2a1426 55%, #20162c 100%);
    border-color: rgba(200, 130, 160, 0.25);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    color: #f5e4ee;
}

html[data-appearance="dark"] .couple-travel-ticket-modal-title {
    color: #f8dfea;
}

html[data-appearance="dark"] .couple-travel-ticket-modal-sub {
    color: rgba(245, 220, 232, 0.74);
}

html[data-appearance="dark"] .couple-travel-ticket-modal-sub strong {
    color: #ff9dbd;
}

html[data-appearance="dark"] .couple-travel-ticket-modal-card {
    background: rgba(40, 20, 32, 0.6);
    border-color: rgba(200, 110, 150, 0.45);
}

html[data-appearance="dark"] .couple-travel-ticket-modal-card-row span {
    color: rgba(235, 205, 220, 0.6);
}

html[data-appearance="dark"] .couple-travel-ticket-modal-card-row strong {
    color: #f8e2ee;
}

html[data-appearance="dark"] .couple-travel-ticket-modal-card-row.is-serial strong {
    color: #ffb3cc;
}

html[data-appearance="dark"] .couple-travel-ticket-modal-multi {
    background: rgba(90, 40, 62, 0.45);
    color: #f5c8d8;
}

html[data-appearance="dark"] .couple-travel-ticket-modal-required-hint {
    background: rgba(120, 66, 26, 0.32);
    color: #ffc99b;
}

html[data-appearance="dark"] .couple-travel-ticket-modal-btn.is-ghost {
    background: rgba(60, 32, 48, 0.7);
    color: #f3d6e2;
    border-color: rgba(210, 130, 170, 0.35);
}

/* ============================================================
 * 线下旅行约会扩展（couple-space-travel-extras.js）
 *   - 餐饮搜索 / 推荐 / 小地图导航
 *   - 酒店验房 / 提示
 *   - 美化 JSON 编辑器
 *   - 通用 Modal 容器
 * ============================================================ */

/* 旅行浮层 + 扩展弹层：滚动条统一隐形（仍可滑动/滚轮滚动） */
.couple-space-travel-overlay *,
.travel-extras-modal * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.couple-space-travel-overlay *::-webkit-scrollbar,
.travel-extras-modal *::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none;
}

.travel-extras-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vw;
}

.travel-extras-modal.show {
    display: flex;
}

.travel-extras-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(34, 18, 28, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.travel-extras-modal-panel {
    position: relative;
    width: min(420px, 92vw);
    max-height: 86vh;
    overflow: hidden;
    background: #fff7f3;
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(168, 90, 120, 0.32);
    display: flex;
    flex-direction: column;
}

.travel-extras-modal-panel--small {
    width: min(360px, 90vw);
}

.travel-extras-modal-panel--wide {
    width: min(560px, 94vw);
    max-height: 88vh;
}

.travel-extras-modal-head {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(213, 156, 178, 0.22);
}

.travel-extras-modal-head h3 {
    margin: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #5b3140;
}

.travel-extras-modal-back,
.travel-extras-modal-spacer {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #b06880;
    font-size: 22px;
    line-height: 1;
}

.travel-extras-modal-body {
    padding: 14px 16px 6px;
    overflow-y: auto;
    flex: 1 1 auto;
    color: #4d2a3a;
    font-size: 13.5px;
    line-height: 1.6;
}

.travel-extras-modal-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(213, 156, 178, 0.22);
}

.travel-extras-btn {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(214, 138, 168, 0.45);
    background: rgba(255, 255, 255, 0.7);
    color: #6d3f55;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.travel-extras-btn:active {
    transform: scale(0.97);
}

.travel-extras-btn--primary {
    background: linear-gradient(135deg, #ea7c95, #d36681);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 14px rgba(229, 116, 145, 0.32);
}

.travel-extras-input {
    flex: 1 1 0;
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(217, 153, 178, 0.44);
    background: #fff;
    color: #4d2a3a;
    font-size: 13.5px;
    outline: none;
}

.travel-extras-input:focus {
    border-color: #d36681;
    box-shadow: 0 0 0 3px rgba(231, 138, 166, 0.18);
}

/* --- 餐饮 --- */
.travel-extras-modal--restaurant .travel-extras-modal-panel {
    height: min(72vh, 660px);
}

.travel-extras-restaurant-search {
    display: flex;
    gap: 8px;
    padding: 12px 16px 8px;
}

.travel-extras-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 10px;
}

.travel-extras-chip {
    flex: 0 0 auto;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(217, 153, 178, 0.4);
    background: rgba(255, 240, 235, 0.6);
    color: #6d3f55;
    font-size: 12px;
    cursor: pointer;
}

.travel-extras-restaurant-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.travel-extras-restaurant-loading,
.travel-extras-empty {
    text-align: center;
    color: #9a6b7d;
    padding: 24px 12px;
    font-size: 13px;
}

.travel-extras-restaurant-card {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;
    padding: 12px;
    align-items: flex-start;
    border-radius: 16px;
    border: 1px solid rgba(217, 153, 178, 0.32);
    background: #fff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(218, 153, 175, 0.12);
}

.travel-extras-restaurant-card:active {
    transform: scale(0.99);
}

.travel-extras-restaurant-thumb {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffd1d8, #f5b1c2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6d3f55;
    font-weight: 600;
}

.travel-extras-restaurant-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #4d2a3a;
}

.travel-extras-restaurant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    color: #8a566c;
    font-size: 12px;
}

.travel-extras-restaurant-tags span {
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(255, 226, 232, 0.66);
}

.travel-extras-restaurant-address {
    margin-top: 4px;
    font-size: 12px;
    color: #9a6b7d;
    line-height: 1.5;
}

.travel-extras-restaurant-extra-tags {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.travel-extras-restaurant-extra-tags span {
    font-size: 11px;
    color: #8a566c;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(229, 196, 207, 0.45);
}

/* --- 餐厅小地图导航 --- */
.travel-extras-mini-map {
    position: fixed;
    z-index: 1700;
    width: 240px;
    border-radius: 18px;
    background: rgba(255, 247, 243, 0.96);
    box-shadow: 0 16px 40px rgba(168, 90, 120, 0.34);
    border: 1px solid rgba(218, 156, 178, 0.4);
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: width 0.24s ease, opacity 0.24s ease, transform 0.18s ease;
    user-select: none;
    touch-action: none;
}

.travel-extras-mini-map.is-shrunken {
    width: 96px;
    opacity: 0.78;
}

.travel-extras-mini-map.is-shrunken .travel-extras-mini-map-name,
.travel-extras-mini-map.is-shrunken .travel-extras-mini-map-distance,
.travel-extras-mini-map.is-shrunken .travel-extras-mini-map-actions {
    display: none;
}

.travel-extras-mini-map.is-shrunken .travel-extras-mini-map-svg {
    width: 100%;
    height: 60px;
}

.travel-extras-mini-map.is-dragging {
    cursor: grabbing;
    opacity: 0.92;
}

.travel-extras-mini-map-handle {
    width: 32px;
    height: 4px;
    margin: 0 auto;
    border-radius: 2px;
    background: rgba(218, 156, 178, 0.6);
    cursor: grab;
}

.travel-extras-mini-map-name {
    font-size: 13px;
    font-weight: 600;
    color: #4d2a3a;
}

.travel-extras-mini-map-distance {
    font-size: 11.5px;
    color: #8a566c;
}

.travel-extras-mini-map-svg {
    width: 100%;
    height: 80px;
    border-radius: 12px;
    background: rgba(255, 233, 232, 0.62);
}

.travel-extras-mini-map-actions {
    display: flex;
    gap: 6px;
    justify-content: space-between;
}

.travel-extras-mini-map-actions .travel-extras-btn {
    flex: 1 1 0;
    padding: 6px 8px;
    font-size: 12px;
}

/* --- 餐厅电子菜单（独立浮层，不在导航地图上） --- */
.travel-extras-restaurant-menu-sheet {
    display: none;
    position: fixed;
    z-index: 1720;
    left: 14px;
    right: 14px;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    max-width: 380px;
    margin: 0 auto;
    max-height: min(72vh, 520px);
    flex-direction: column;
    border-radius: 18px;
    background: rgba(255, 251, 248, 0.98);
    box-shadow: 0 18px 44px rgba(140, 70, 100, 0.28);
    border: 1px solid rgba(218, 156, 178, 0.38);
    overflow: hidden;
}

.travel-extras-restaurant-menu-sheet.show {
    display: flex;
}

.travel-extras-menu-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px 8px;
    border-bottom: 1px solid rgba(235, 196, 208, 0.5);
}

.travel-extras-menu-sheet-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #4d2a3a;
    flex: 1;
    min-width: 0;
}

.travel-extras-menu-sheet-close {
    border: none;
    background: rgba(255, 226, 232, 0.8);
    color: #8a566c;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.travel-extras-menu-sheet-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 14px 12px;
    -webkit-overflow-scrolling: touch;
    /* 滚动条透明隐形（保留滚动功能；适配 Firefox / IE / WebKit / Chromium） */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.travel-extras-menu-sheet-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.travel-extras-menu-sheet-body::-webkit-scrollbar-thumb,
.travel-extras-menu-sheet-body::-webkit-scrollbar-track {
    background: transparent;
}

.travel-extras-menu-loading {
    padding: 24px 12px;
    text-align: center;
    color: #8a566c;
    font-size: 13px;
}

.travel-extras-menu-section h4 {
    margin: 12px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #9a3d57;
}

.travel-extras-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.travel-extras-menu-dish {
    margin: 0 -6px 8px;
    padding: 8px 8px 10px;
    border-radius: 10px;
    border-bottom: 1px dashed rgba(218, 156, 178, 0.28);
    cursor: default;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.travel-extras-menu-dish:hover {
    background: rgba(255, 226, 232, 0.35);
}

.travel-extras-menu-dish:active {
    transform: none;
}

.travel-extras-menu-dish.is-draft {
    box-shadow: inset 0 0 0 1.5px rgba(196, 77, 106, 0.35);
    background: rgba(255, 236, 241, 0.55);
}

.travel-extras-menu-dish.has-char-order {
    box-shadow: inset 0 0 0 1px rgba(74, 122, 180, 0.4);
}

.travel-extras-menu-dish-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.travel-extras-menu-dish-qty-label {
    font-size: 11px;
    color: #8a5a6c;
    flex-shrink: 0;
}

.travel-extras-menu-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 4px;
}

.travel-extras-menu-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(196, 77, 106, 0.45);
    background: linear-gradient(180deg, #fff 0%, #ffeef3 100%);
    color: #c44d6a;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.travel-extras-menu-qty-btn:hover {
    background: #fff;
}

.travel-extras-menu-qty-input {
    width: 44px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(196, 77, 106, 0.35);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #4d2a3a;
    background: #fff;
    -moz-appearance: textfield;
}

.travel-extras-menu-qty-input::-webkit-outer-spin-button,
.travel-extras-menu-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.travel-extras-menu-dish-tag small {
    display: inline;
    font-size: 10px;
    font-weight: 500;
    margin-left: 4px;
    opacity: 0.9;
}

.travel-extras-menu-dish.is-selected {
    background: linear-gradient(180deg, rgba(255, 226, 232, 0.92) 0%, rgba(253, 213, 226, 0.7) 100%);
    box-shadow: inset 0 0 0 1.5px rgba(196, 77, 106, 0.45);
    border-bottom-color: transparent;
}

.travel-extras-menu-dish.is-selected .travel-extras-menu-dish-name::before {
    content: '✓ ';
    color: #c44d6a;
    font-weight: 700;
}

/* 已点菜品（不可再次勾选，名称右侧标小角标「已点」） */
.travel-extras-menu-dish.is-ordered {
    background: linear-gradient(180deg, rgba(238, 248, 232, 0.7) 0%, rgba(220, 240, 215, 0.45) 100%);
    box-shadow: inset 0 0 0 1px rgba(120, 168, 110, 0.45);
    cursor: default;
    opacity: 0.95;
}

.travel-extras-menu-dish.is-ordered:hover {
    background: linear-gradient(180deg, rgba(238, 248, 232, 0.7) 0%, rgba(220, 240, 215, 0.45) 100%);
}

.travel-extras-menu-dish.is-ordered .travel-extras-menu-dish-name::before {
    content: '✓ ';
    color: #5a8a4f;
    font-weight: 700;
}

.travel-extras-menu-dish-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #b6dca6 0%, #5a8a4f 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    vertical-align: 1px;
    letter-spacing: 0.5px;
}

.travel-extras-menu-dish:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.travel-extras-menu-dish-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.travel-extras-menu-dish-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #4d2a3a;
}

.travel-extras-menu-dish-price {
    font-size: 13px;
    color: #c44d6a;
    font-weight: 600;
    white-space: nowrap;
}

.travel-extras-menu-dish-blurb {
    margin: 6px 0 0;
    font-size: 11.5px;
    line-height: 1.55;
    color: #7a5a68;
}

.travel-extras-menu-sheet-foot {
    padding: 10px 14px 14px;
    border-top: 1px solid rgba(235, 196, 208, 0.5);
}

/* 折叠态贴边小标签：默认隐藏，仅在 .is-collapsed 时显形 */
.travel-extras-menu-sheet-collapsed-tab {
    display: none;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1721;
    writing-mode: vertical-rl;
    padding: 14px 6px;
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ffb1c5 0%, #c44d6a 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-left: none;
    border-radius: 0 14px 14px 0;
    box-shadow: 2px 4px 12px rgba(140, 70, 100, 0.28);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.travel-extras-menu-sheet-collapsed-tab:hover {
    background: linear-gradient(135deg, #ff97b3 0%, #b73d5c 100%);
}

/* 折叠状态下：原 sheet 整体不可见，只露出左侧小标签 */
.travel-extras-restaurant-menu-sheet.is-collapsed {
    /* 关键：去掉本体所有可视框，让 sheet 容器自身不再占据视觉位置；
       而 .collapsed-tab 是 fixed 定位，独立于 sheet 容器渲染 */
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
    /* 只让标签可点击 */
}

.travel-extras-restaurant-menu-sheet.is-collapsed .travel-extras-menu-sheet-head,
.travel-extras-restaurant-menu-sheet.is-collapsed .travel-extras-menu-sheet-body,
.travel-extras-restaurant-menu-sheet.is-collapsed .travel-extras-menu-sheet-foot {
    display: none;
}

.travel-extras-restaurant-menu-sheet.is-collapsed .travel-extras-menu-sheet-collapsed-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.travel-extras-checkout-hint {
    margin: 0;
    font-size: 12px;
    color: #8a566c;
    line-height: 1.45;
}

/* --- 选择付款人 / 酒店通用确认 --- */
.travel-extras-payer-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid rgba(217, 153, 178, 0.4);
    background: rgba(255, 244, 240, 0.84);
    color: #4d2a3a;
    text-align: left;
    cursor: pointer;
}

.travel-extras-payer-btn:last-child {
    margin-bottom: 0;
}

.travel-extras-payer-btn.is-readonly {
    cursor: default;
    background: rgba(255, 244, 240, 0.6);
}

.travel-extras-payer-name {
    font-size: 14.5px;
    font-weight: 600;
}

.travel-extras-payer-btn small {
    font-size: 11.5px;
    color: #8a566c;
}

/* --- 美化 JSON 编辑器 --- */
.travel-extras-modal--beautify .travel-extras-modal-panel {
    height: min(82vh, 760px);
}

.travel-extras-beautify-tip {
    font-size: 12.5px;
    color: #8a566c;
    line-height: 1.55;
    margin: 0 0 10px;
}

.travel-extras-beautify-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.travel-extras-beautify-textarea {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    border: 1px solid rgba(218, 156, 178, 0.46);
    background: #fff;
    color: #4d2a3a;
    padding: 12px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.5;
    resize: vertical;
}

.travel-extras-beautify-status {
    margin-top: 8px;
    font-size: 12px;
    min-height: 16px;
    color: #8a566c;
}

.travel-extras-beautify-status.is-ok {
    color: #277a4f;
}

.travel-extras-beautify-status.is-err {
    color: #c0394e;
}

/* --- 设置面板 · 美化按钮行 --- */
.travel-offline-settings-field--beautify .travel-offline-beautify-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.travel-offline-beautify-btn {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(218, 156, 178, 0.55);
    background: rgba(255, 244, 240, 0.86);
    color: #6d3f55;
    font-size: 12.5px;
    cursor: pointer;
}

.travel-offline-beautify-hint {
    font-size: 11.5px;
    color: #9a6b7d;
}

/* 暗色主题适配 */
html[data-appearance="dark"] .travel-extras-modal-panel {
    background: #2a1822;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

html[data-appearance="dark"] .travel-extras-modal-head {
    border-bottom-color: rgba(220, 150, 175, 0.25);
}

html[data-appearance="dark"] .travel-extras-modal-head h3 {
    color: #f3cdd9;
}

html[data-appearance="dark"] .travel-extras-modal-foot {
    border-top-color: rgba(220, 150, 175, 0.22);
}

html[data-appearance="dark"] .travel-extras-modal-body {
    color: #f3cdd9;
}

html[data-appearance="dark"] .travel-extras-btn {
    background: rgba(64, 36, 48, 0.7);
    color: #f3cdd9;
    border-color: rgba(220, 150, 175, 0.32);
}

html[data-appearance="dark"] .travel-extras-input {
    background: #3a2230;
    border-color: rgba(220, 150, 175, 0.32);
    color: #f3cdd9;
}

html[data-appearance="dark"] .travel-extras-restaurant-card {
    background: #38202c;
    border-color: rgba(220, 150, 175, 0.28);
}

html[data-appearance="dark"] .travel-extras-restaurant-name {
    color: #f8d8e2;
}

html[data-appearance="dark"] .travel-extras-mini-map {
    background: rgba(50, 28, 40, 0.96);
    border-color: rgba(220, 150, 175, 0.34);
}

html[data-appearance="dark"] .travel-extras-mini-map-name {
    color: #f8d8e2;
}

html[data-appearance="dark"] .travel-extras-payer-btn {
    background: rgba(60, 36, 48, 0.7);
    color: #f3cdd9;
    border-color: rgba(220, 150, 175, 0.3);
}

html[data-appearance="dark"] .travel-extras-beautify-textarea {
    background: #1f1218;
    color: #f3cdd9;
    border-color: rgba(220, 150, 175, 0.28);
}

/* ============================================================
 * 线下旅行约会 · 旅行设定 · 预设管理
 * ------------------------------------------------------------
 * 视觉与「微信多人群组线下聊天预设」一致，但完全独立的命名空间：
 *   `.travel-offline-preset-*` 与 `.offline-group-preset-*` 不互相复用
 * 长按拖动手感与排序逻辑由 couple-space-travel.js 内部实现
 * 模态会被挂在 document.body 末尾，故 z-index 取较高值，避免被旅行主蒙层遮挡
 * ============================================================ */

.travel-offline-settings-field--preset {
    align-items: flex-start;
}
.travel-offline-preset-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.travel-offline-preset-entry-btn {
    align-self: flex-start;
    appearance: none;
    -webkit-appearance: none;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, #fff 0%, #f5eef2 100%);
    color: #4a3540;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.travel-offline-preset-entry-btn:hover {
    background: linear-gradient(180deg, #fff 0%, #f0e3ea 100%);
    box-shadow: 0 4px 12px rgba(120, 70, 95, 0.12);
}
.travel-offline-preset-entry-btn:active {
    transform: translateY(1px);
}
.travel-offline-preset-entry-hint {
    font-size: 11px;
    color: #9a818d;
    line-height: 1.4;
}

.travel-offline-preset-picker-modal,
.travel-offline-preset-edit-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3200;
    background: rgba(20, 12, 18, 0.42);
    align-items: center;
    justify-content: center;
}
.travel-offline-preset-picker-modal.show,
.travel-offline-preset-edit-modal.show {
    display: flex;
}

.travel-offline-preset-picker-content,
.travel-offline-preset-edit-content {
    background: #fff;
    border-radius: 14px;
    width: min(420px, 92vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.travel-offline-preset-picker-header,
.travel-offline-preset-edit-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f1e8ee;
}
.travel-offline-preset-picker-title,
.travel-offline-preset-edit-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: #4a3540;
    margin: 0;
}
.travel-offline-preset-picker-add {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: linear-gradient(135deg, #f4b6c8 0%, #d18aa3 100%);
    color: #fff;
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(190, 130, 155, 0.28);
}
.travel-offline-preset-picker-add:active { transform: scale(0.95); }

.travel-offline-preset-picker-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 14px 4px;
}
.travel-offline-preset-picker-hint {
    font-size: 11px;
    color: #927a86;
    margin: 0 0 10px;
    line-height: 1.5;
}
.travel-offline-preset-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.travel-offline-preset-empty {
    text-align: center;
    color: #b29ca8;
    font-size: 12px;
    padding: 20px 8px;
}

.travel-offline-preset-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #f1e3eb;
    background: #fffbfd;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.travel-offline-preset-item.enabled {
    border-color: rgba(218, 132, 162, 0.55);
    box-shadow: 0 6px 18px rgba(218, 132, 162, 0.15);
}
.travel-offline-preset-item.is-system {
    background: #fff7fa;
}
.travel-offline-preset-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: grab;
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: none;
}
.travel-offline-preset-item-main * {
    touch-action: none;
}
.travel-offline-preset-item-title {
    font-size: 14px;
    font-weight: 800;
    color: #4a3540;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.travel-offline-preset-item.is-system .travel-offline-preset-item-title::before {
    content: '★ ';
    color: #d18aa3;
    font-size: 11px;
}
.travel-offline-preset-item-sub {
    font-size: 11px;
    color: #a98c98;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.travel-offline-preset-item-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    user-select: auto;
}

.travel-offline-preset-toggle {
    position: relative;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
    display: inline-block;
    cursor: pointer;
}
.travel-offline-preset-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.travel-offline-preset-toggle-slider {
    position: absolute;
    inset: 0;
    background: #e0d3da;
    border-radius: 999px;
    transition: background 0.18s ease;
}
.travel-offline-preset-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease;
}
.travel-offline-preset-toggle input:checked + .travel-offline-preset-toggle-slider {
    background: linear-gradient(135deg, #f4b6c8 0%, #d18aa3 100%);
}
.travel-offline-preset-toggle input:checked + .travel-offline-preset-toggle-slider::before {
    transform: translateX(16px);
}

.travel-offline-preset-action {
    appearance: none;
    -webkit-appearance: none;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #ecdce5;
    background: #fff;
    font-size: 12px;
    color: #4a3540;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.travel-offline-preset-action:hover {
    background: #fdf3f7;
}
.travel-offline-preset-action--del {
    color: #c4576e;
    border-color: #f3c4cf;
}
.travel-offline-preset-action--locked {
    color: #b89aa6;
    background: #f8eef3;
    cursor: not-allowed;
}

.travel-offline-preset-item.travel-offline-preset-item--drag-ghost-src {
    opacity: 0.38;
}
.travel-offline-preset-item.travel-offline-preset-item--drag-floating {
    position: fixed;
    z-index: 3300;
    margin: 0;
    pointer-events: none;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    opacity: 0.96;
    cursor: grabbing;
    border-radius: 12px;
    background: #fffbfd;
}
.travel-offline-preset-list.travel-offline-preset-list--dragging {
    user-select: none;
}
body.travel-offline-preset-dragging {
    cursor: grabbing;
    touch-action: none;
}

.travel-offline-preset-picker-footer,
.travel-offline-preset-edit-footer {
    flex: 0 0 auto;
    padding: 10px 14px 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #f1e8ee;
    background: #fffbfd;
}

.travel-offline-preset-edit-content {
    width: min(460px, 94vw);
}
.travel-offline-preset-edit-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 16px;
}
.travel-offline-preset-edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.travel-offline-preset-edit-label {
    font-size: 12px;
    color: #6b4a59;
    font-weight: 700;
}
.travel-offline-preset-edit-input {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ecd9e3;
    background: #fffbfd;
    font-size: 13px;
    color: #4a3540;
    outline: none;
}
.travel-offline-preset-edit-input:focus {
    border-color: #d18aa3;
}
.travel-offline-preset-edit-textarea {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ecd9e3;
    background: #fffbfd;
    font-size: 12px;
    color: #4a3540;
    outline: none;
    line-height: 1.55;
    resize: vertical;
    min-height: 220px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.travel-offline-preset-edit-textarea:focus {
    border-color: #d18aa3;
}
.travel-offline-preset-edit-hint {
    font-size: 11px;
    color: #927a86;
    line-height: 1.55;
    margin-top: 4px;
}
.travel-offline-preset-edit-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.travel-offline-preset-btn {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.travel-offline-preset-btn.cancel {
    background: #fff;
    border-color: #ecd9e3;
    color: #6b4a59;
}
.travel-offline-preset-btn.cancel:hover {
    background: #fdf3f7;
}
.travel-offline-preset-btn.confirm {
    background: linear-gradient(135deg, #f4b6c8 0%, #d18aa3 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(190, 130, 155, 0.28);
}
.travel-offline-preset-btn.confirm:hover {
    box-shadow: 0 8px 22px rgba(190, 130, 155, 0.36);
}
.travel-offline-preset-btn:active {
    transform: translateY(1px);
}

html[data-appearance="dark"] .travel-offline-preset-picker-content,
html[data-appearance="dark"] .travel-offline-preset-edit-content {
    background: #221720;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
}
html[data-appearance="dark"] .travel-offline-preset-picker-header,
html[data-appearance="dark"] .travel-offline-preset-edit-header,
html[data-appearance="dark"] .travel-offline-preset-picker-footer,
html[data-appearance="dark"] .travel-offline-preset-edit-footer {
    border-color: rgba(220, 150, 175, 0.18);
    background: #221720;
}
html[data-appearance="dark"] .travel-offline-preset-picker-title,
html[data-appearance="dark"] .travel-offline-preset-edit-header h3 {
    color: #f3cdd9;
}
html[data-appearance="dark"] .travel-offline-preset-picker-hint,
html[data-appearance="dark"] .travel-offline-preset-edit-hint,
html[data-appearance="dark"] .travel-offline-preset-empty,
html[data-appearance="dark"] .travel-offline-preset-entry-hint {
    color: #b59aa6;
}
html[data-appearance="dark"] .travel-offline-preset-item {
    background: #2a1d27;
    border-color: rgba(220, 150, 175, 0.22);
}
html[data-appearance="dark"] .travel-offline-preset-item.is-system {
    background: #2c1f29;
}
html[data-appearance="dark"] .travel-offline-preset-item-title {
    color: #f3cdd9;
}
html[data-appearance="dark"] .travel-offline-preset-item-sub {
    color: #a98c98;
}
html[data-appearance="dark"] .travel-offline-preset-action {
    background: #2a1d27;
    color: #f3cdd9;
    border-color: rgba(220, 150, 175, 0.22);
}
html[data-appearance="dark"] .travel-offline-preset-action:hover {
    background: #341f2c;
}
html[data-appearance="dark"] .travel-offline-preset-action--del {
    color: #f3a3b5;
    border-color: rgba(243, 163, 181, 0.32);
}
html[data-appearance="dark"] .travel-offline-preset-action--locked {
    color: #8e7282;
    background: #2a1d27;
}
html[data-appearance="dark"] .travel-offline-preset-edit-input,
html[data-appearance="dark"] .travel-offline-preset-edit-textarea {
    background: #2a1d27;
    color: #f3cdd9;
    border-color: rgba(220, 150, 175, 0.22);
}
html[data-appearance="dark"] .travel-offline-preset-btn.cancel {
    background: #2a1d27;
    color: #f3cdd9;
    border-color: rgba(220, 150, 175, 0.22);
}
html[data-appearance="dark"] .travel-offline-preset-btn.cancel:hover {
    background: #341f2c;
}
html[data-appearance="dark"] .travel-offline-preset-entry-btn {
    background: linear-gradient(180deg, #2a1d27 0%, #221720 100%);
    color: #f3cdd9;
    border-color: rgba(220, 150, 175, 0.22);
}
html[data-appearance="dark"] .travel-offline-preset-entry-btn:hover {
    background: linear-gradient(180deg, #341f2c 0%, #2a1d27 100%);
}

