/* ========================================
   浏览路线页面样式
   - 状态栏与标题栏完全同色（纯色 #C8120F，无任何色差）
   - 标题栏背景色与状态栏保持完全一致
   - 文字颜色为白色
   ======================================== */
.route-viewer-page {
    background: #f5f5f5;
    position: relative;
    /* 让绝对定位的子元素相对手机容器 */
    overflow: hidden;
    /* flex 列布局，让 .route-viewer-map-wrapper 可以 flex:1 填充剩余空间 */
    display: flex;
    flex-direction: column;
}

/* 浏览线路页状态栏 - 与首页标题栏完全同色（纯红色 #AE100D，无任何色差，严格一致 */
.route-viewer-page .status-bar {
    background: #AE100D !important;
    color: #ffffff !important;
    /* 用户要求：状态栏内容上移，整体高度适当压缩，更接近真实手机比例 */
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 11;
    border-bottom: none;
    flex-shrink: 0;
    /* 强制覆盖其他可能的渐变/混合模式导致的色差 */
    background-image: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
}
.route-viewer-page .status-bar .time {
    color: #fff;
    font-weight: 700;
}
.route-viewer-page .status-bar .icons {
    color: #fff;
    display: flex;
    gap: 6px;
    align-items: center;
}
.route-viewer-page .status-bar .icons i {
    color: #fff;
    font-size: 13px;
}
.route-viewer-header {
    display: flex;
    align-items: center;
    /* 用户要求：标题栏整体高度加大 2px (40px → 42px) */
    padding: 0 16px;
    height: 42px;
    min-height: 42px;
    /* 与状态栏完全一致：纯红色 #AE100D，无渐变，无色差 */
    background: #AE100D !important;
    color: #ffffff;
    border-bottom: none;
    position: relative;
    z-index: 10;
    box-shadow: none;
    flex-shrink: 0;
    /* 强制覆盖其他可能的渐变/混合模式导致的色差 */
    background-image: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
}
.route-viewer-header .nav-back {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #ffffff;
    padding: 0;
    width: 36px;
    height: 36px;
    cursor: pointer;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.route-viewer-header .page-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 0;
    /* 用户要求：标题垂直居中略偏上 */
    line-height: 1;
}
.route-viewer-header .header-actions {
    font-size: 18px;
    color: #ffffff;
    padding: 8px;
    cursor: pointer;
}

.route-viewer-map-wrapper {
    position: relative;
    /* 高度 = 页面总高度 - 状态栏(36) - 标题栏(44) = 812 - 80 = 732px
       不能用 100vh，因为 100vh 是浏览器视口高度（远大于手机容器 812px）
       父容器 .route-viewer-page 已经是 100% 高度（812px） */
    flex: 1;
    width: 100%;
    background: #e8e8e8;
    overflow: hidden;
}
.route-viewer-map {
    width: 100%;
    height: 100%;
}
.route-viewer-map .map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
    text-align: center;
}
.route-viewer-map .map-loading i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

/* ========================================
   自定义缩放按钮（右侧中间位置） - 取代 AMap 自带工具条
   - 严格在手机容器内显示
   - 右侧位置：right: 12px
   - 用户要求：缩放按钮（十一图标）不要碰到 POI 卡片的景点名称，需要有间隔
   ======================================== */
.rv-zoom-controls {
    position: absolute;
    right: 12px;
    /* 用户最新要求：缩放按钮下移，避免碰到 POI 卡片的景点名称
       POI 卡片是绝对定位在底部 bottom: 20px，
       当 POI 卡片显示时（特别是点击 POI 标记后），
       缩放按钮会压在卡片标题上，所以向下移动 */
    top: 100px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 36px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.rv-zoom-btn {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.rv-zoom-btn:active {
    background: #f5f5f5;
}
.rv-zoom-btn i {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}
.rv-zoom-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0 4px;
}

/* ========================================
   完全隐藏 AMap logo 和版权信息
   - 高德地图默认在右下角显示 logo + 比例尺版权
   - 必须通过 CSS 多重选择器强力隐藏
   ======================================== */
.amap-logo,
.amap-copyright,
.amap-logo-content,
[class*="amap-logo"],
[class*="amap-copyright"],
[class*="amap-scale"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}
/* 比例尺容器整体隐藏 */
.amap-scale-control,
.amap-toolbar {
    display: none !important;
    visibility: hidden !important;
}

/* 顶部信息栏 - 严格显示在标题栏下方，绝对不可以重叠到标题栏 */
.route-viewer-top-info {
    position: absolute;
    /* 状态栏 44px + 标题栏 44px = 88px，再加 12px 间距 = 100px */
    top: 100px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5; /* 比标题栏(z-index:10)低，确保不会重叠到标题栏上方 */
    pointer-events: auto;
}
.top-info-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}
.top-info-addr {
    font-size: 12px;
    color: #999;
}

/* 红色定位标识（与红色地图一致） */
.red-map-pin {
    position: relative;
    width: 40px;
    height: 40px;
}
.red-map-pin .pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.3);
    animation: pinPulse 2s infinite;
}
.red-map-pin .pin-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: #DC2626;
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -50%) rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    border: 2px solid #fff;
}
.red-map-pin .pin-icon i {
    color: #fff;
    font-size: 14px;
    transform: rotate(45deg);
}
@keyframes pinPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* ========================================
   主景点标记 - 圆形红点样式（用户要求）
   - 景点名称位置用圆形红点表示
   ======================================== */
.main-spot-red-dot {
    position: relative;
    width: 40px;
    height: 40px;
}
.main-spot-red-dot .dot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.35);
    animation: dotPulse 2s infinite;
}
.main-spot-red-dot .dot-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #DC2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
}
.main-spot-red-dot .dot-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}
@keyframes dotPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* 兴趣点标记 - 景点内特色POI标记（山、湖、寺、建筑等）
   用户要求：改成红色定位水滴图标（与红色地图界面定位图标一致） */
.route-viewer-marker {
    position: relative;
    width: 32px;
    height: 42px;
    cursor: pointer;
}
.route-viewer-marker .marker-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    width: 28px;
    height: 28px;
    background: #DC2626;
    border-radius: 50% 50% 50% 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
    border: 2px solid #fff;
}
.route-viewer-marker .marker-icon i {
    color: #fff;
    font-size: 13px;
    transform: rotate(45deg);
}

/* 备用地图样式 */
.map-fallback {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f0 50%, #b8dde5 100%);
    overflow: hidden;
}
.map-fallback-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}
.map-fallback-content {
    position: relative;
    width: 100%;
    height: 100%;
}
.map-pin-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    z-index: 10;
}
.map-pin-main .pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.3);
    animation: pinPulse 2s infinite;
}
.map-pin-main .pin-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 28px;
    height: 28px;
    background: #DC2626;
    border-radius: 50% 50% 50% 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    border: 2px solid #fff;
}
.map-pin-main .pin-icon i {
    color: #fff;
    font-size: 14px;
    transform: rotate(45deg);
}
.map-fallback-tip {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}
.map-fallback-coords {
    position: absolute;
    top: calc(60% + 28px);
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 10px;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 3px;
}
.map-fallback-poi {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
}
.poi-icon-small {
    width: 28px;
    height: 28px;
    background: #DC2626;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
}
.poi-icon-small i {
    color: #fff;
    font-size: 12px;
    transform: rotate(45deg);
}
.map-fallback-poi:active .poi-icon-small {
    transform: rotate(-45deg) scale(1.1);
}

/* 兴趣点卡片（与红色地图一致） - 在手机容器内显示 */
.route-viewer-poi-panel {
    position: absolute;
    bottom: 20px;
    left: 12px;
    right: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    /* POI 卡片层级提升，确保不会被缩放按钮遮挡 */
    z-index: 60;
    overflow: hidden;
    padding-top: 0;
}
.route-viewer-poi-panel .spot-card-content {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
    padding-right: 44px;  /* 留出空间给关闭按钮 */
}
.route-viewer-poi-panel .spot-card-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #999 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5;
    padding: 0 !important;
}
.route-viewer-poi-panel .spot-card-close:active {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: scale(0.92);
}
.route-viewer-poi-panel .spot-card-left-bar {
    width: 4px;
    height: 40px;
    background: #DC2626;
    border-radius: 2px;
    flex-shrink: 0;
}
.route-viewer-poi-panel .spot-card-info {
    flex: 1;
    min-width: 0;
}
.route-viewer-poi-panel .spot-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.route-viewer-poi-panel .spot-card-tags {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}
.route-viewer-poi-panel .spot-card-tags .spot-tag {
    display: inline-block;
    background: #FEE2E2;
    color: #DC2626;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-right: 4px;
}
.route-viewer-poi-panel .spot-card-address {
    font-size: 12px;
    color: #999;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.route-viewer-poi-panel .spot-card-btn {
    background: #DC2626;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.route-viewer-poi-panel .spot-card-btn:active {
    background: #B91C1C;
}

/* ========================================
   兴趣点列表弹窗（点击定位标识后弹出）
   - 在手机容器 (#app) 内显示，严格限制在 .app-container 内部
   - 显示所有兴趣点的列表
   ======================================== */
.rv-poi-list-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99997;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    box-sizing: border-box;
}
.rv-poi-list-modal.show {
    opacity: 1;
    pointer-events: auto;
}
.rv-poi-list-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.rv-poi-list-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 8px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 65vh;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.rv-poi-list-modal.show .rv-poi-list-panel {
    transform: translateY(0);
}
.rv-poi-list-handle {
    width: 36px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 0 auto 8px;
    flex-shrink: 0;
}
.rv-poi-list-header {
    display: flex;
    align-items: center;
    /* 用户要求：标题在左侧，"共XX个"在中右侧，X关闭按钮在末尾；
       全部使用同一行 flex 布局，确保 X 与"共XX个"水平基线平行 */
    padding: 12px 12px 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    position: relative;
    min-height: 24px;
}
.rv-poi-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex-shrink: 0;
    line-height: 1.2;
}
.rv-poi-list-count {
    font-size: 12px;
    color: #999;
    /* 用户要求：把"共XX个"文字向右平移，显示在 X 关闭图标左边一点 */
    margin-left: auto;
    margin-right: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.2;
}
.rv-poi-list-close {
    /* X 关闭按钮与"共XX个"在同一行 flex 布局，垂直居中与文字基线平行 */
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    color: #999;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.rv-poi-list-close:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(0.92);
}
.rv-poi-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    max-height: 50vh;
}
.rv-poi-list-loading {
    text-align: center;
    color: #999;
    padding: 30px 16px;
}
.rv-poi-list-loading i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}
.rv-poi-list-empty {
    text-align: center;
    color: #999;
    padding: 30px 16px;
}
.rv-poi-list-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}
.rv-poi-list-item:last-child {
    border-bottom: none;
}
.rv-poi-list-item:active {
    background: #f5f5f5;
}
.rv-poi-list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FEE2E2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}
.rv-poi-list-item-icon i {
    color: #DC2626;
    font-size: 18px;
}
.rv-poi-list-item-info {
    flex: 1;
    min-width: 0;
}
.rv-poi-list-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rv-poi-list-item-meta {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rv-poi-list-item-action {
    background: #DC2626;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
}
.rv-poi-list-item-action:active {
    transform: scale(0.95);
}
.rv-poi-list-cancel {
    text-align: center;
    padding: 14px;
    border-top: 1px solid #f0f0f0;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
}
.rv-poi-list-cancel:active {
    background: #f5f5f5;
}

/* ========================================
   语音播放弹窗
   - 严格限制在 .app-container (手机壳) 内部
   - 使用 position:absolute 而非 fixed，
     这样 modal 会严格限制在 .app-container (手机壳) 内部
   ======================================== */
.voice-play-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    box-sizing: border-box;
}
.voice-play-modal.show {
    opacity: 1;
    pointer-events: auto;
}
.voice-play-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.voice-play-panel {
    position: relative;
    width: 280px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s;
}
.voice-play-modal.show .voice-play-panel {
    transform: scale(1);
}
.voice-play-header {
    text-align: center;
    margin-bottom: 20px;
}
.voice-play-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #FCA5A5 0%, #DC2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    animation: voicePulse 2s infinite;
}
.voice-play-icon i {
    color: #fff;
    font-size: 28px;
}
@keyframes voicePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.voice-play-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.voice-play-subtitle {
    font-size: 12px;
    color: #999;
}
.voice-play-content {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
}
.voice-play-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.voice-play-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.voice-play-btn {
    background: #DC2626;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}
.voice-play-btn:active {
    background: #B91C1C;
}
.voice-play-btn-secondary {
    background: #f0f0f0;
    color: #666;
}
.voice-play-btn-secondary:active {
    background: #e0e0e0;
}
.voice-play-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
}

/* ========================================
   打卡拍照弹窗
   - 相机界面显示在手机容器 (#app, 375x812) 内
   - 闪光灯/翻转镜头按钮在底部快门左右两侧
   - 使用 position:absolute 而非 fixed，
     这样 modal 会严格限制在 .app-container (手机壳) 内部
   ======================================== */
.checkin-camera-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: #000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-sizing: border-box;
}
.checkin-camera-modal.show {
    opacity: 1;
    pointer-events: auto;
}
.checkin-camera-header {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}
.checkin-camera-header .nav-back {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
}
.checkin-camera-header .title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}
.checkin-camera-header .spacer {
    width: 34px;
}
.checkin-camera-preview {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #999;
    font-size: 14px;
    overflow: hidden;
}
.checkin-camera-preview video,
.checkin-camera-preview img,
.checkin-camera-preview canvas {
    max-width: 100%;
    max-height: 100%;
}

/* ========================================
   隐藏浏览器原生的视频控制层
   - 防止触摸 video 时显示：全屏/画中画/下载/播放速率 等按钮
   - iOS Safari / Android Chrome 均生效
   ======================================== */
.checkin-camera-preview video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.checkin-camera-preview video::-webkit-media-controls-enclosure {
    display: none !important;
}
.checkin-camera-preview video::-webkit-media-controls-playback-rate-button,
.checkin-camera-preview video::-webkit-media-controls-fullscreen-button,
.checkin-camera-preview video::-webkit-media-controls-toggle-closed-captions-button,
.checkin-camera-preview video::-webkit-media-controls-pip-button,
.checkin-camera-preview video::-webkit-media-controls-picture-in-picture-button,
.checkin-camera-preview video::-webkit-media-controls-download-button,
.checkin-camera-preview video::-webkit-media-controls-mute-button,
.checkin-camera-preview video::-webkit-media-controls-volume-slider,
.checkin-camera-preview video::-webkit-media-controls-timeline,
.checkin-camera-preview video::-webkit-media-controls-current-time-display,
.checkin-camera-preview video::-webkit-media-controls-time-remaining-display {
    display: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.checkin-camera-preview video {
    pointer-events: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}
.checkin-camera-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.7);
    flex-shrink: 0;
}
.checkin-camera-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.checkin-camera-btn:active {
    background: rgba(255, 255, 255, 0.3);
}
.checkin-camera-shutter {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    border: 4px solid #DC2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #DC2626;
}
.checkin-camera-shutter:active {
    background: #fee;
}
.checkin-camera-tip {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-align: center;
    padding: 4px 16px;
    background: rgba(0, 0, 0, 0.7);
    flex-shrink: 0;
}
