/* 微观战术卡光学与障碍识别交互组件样式 (CSP-compliant, 无内联样式) */
@keyframes mv-spin {
    to { transform: rotate(360deg); }
}

.mv-preset-btn:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
}

#mv-btn-camera:hover {
    background: #1d4ed8 !important;
}

#mv-btn-upload:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* ── 实景战术找标点视口与覆盖图层 (Visual Tactical Pinpoint Overlay) ── */
.mv-photo-overlay-stage {
    position: relative;
    width: 100%;
    min-height: 240px;
    max-height: 380px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    margin-bottom: 20px;
}

.mv-photo-overlay-stage img.mv-stage-img {
    width: 100%;
    height: auto;
    min-height: 240px;
    max-height: 380px;
    object-fit: cover;
    display: block;
    filter: brightness(0.92);
}

.mv-photo-overlay-stage img.mv-stage-img:not([src]),
.mv-photo-overlay-stage img.mv-stage-img[src=""] {
    display: none;
}

.mv-tactical-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Observed positions refer to the full image, so this view never crops it. */
.mv-photo-overlay-stage.mv-scene-observed,
.mv-photo-overlay-stage.mv-scene-observed img.mv-stage-img {
    min-height: 0;
    max-height: none;
}

.mv-photo-overlay-stage.mv-scene-observed img.mv-stage-img {
    object-fit: contain;
}

/* 准星雷达脉冲标点 */
.mv-target-crosshair {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

.mv-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;
    border-radius: 50%;
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.25);
    animation: mv-radar-pulse 2s infinite ease-out;
}

@keyframes mv-radar-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.mv-target-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.8), 0 2px 6px rgba(0,0,0,0.4);
    border: 2.5px solid white;
}

.mv-target-callout {
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
    min-width: 160px;
    max-width: 260px;
    border-left: 3px solid #ef4444;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    pointer-events: none;
    z-index: 12;
}

.mv-target-crosshair.callout-flip-left .mv-target-callout {
    left: auto;
    right: 42px;
    border-left: none;
    border-right: 3px solid #ef4444;
}

/* 浮动微结构标签 (Glassmorphism Tag) */
.mv-floating-tag {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f8fafc;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 5;
}

/* 底部 HUD 战术条 */
.mv-hud-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.6) 70%, transparent 100%);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: white;
    z-index: 6;
}

/* 法定禁钓或污染防护遮罩 */
.mv-status-shield {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 24px;
    text-align: center;
    z-index: 12;
}
.mv-status-shield.shield-banned {
    background: rgba(127, 29, 29, 0.88);
    color: #fef2f2;
}
.mv-status-shield.shield-odor {
    background: rgba(120, 53, 15, 0.88);
    color: #fffbeb;
}
.mv-status-shield.shield-unknown {
    background: rgba(30, 41, 59, 0.88);
    color: #f8fafc;
}

/* ── 发现页轻量抽屉折叠容器 ── */
.discover-micro-vision-drawer summary {
    list-style: none;
}
.discover-micro-vision-drawer summary::-webkit-details-marker {
    display: none;
}
.discover-micro-vision-summary:hover {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
}
.discover-micro-vision-drawer[open] .mv-drawer-cta {
    transform: rotate(180deg);
}
.discover-micro-vision-drawer .mv-drawer-cta {
    display: inline-block;
    transition: transform 0.25s ease;
}

@media (max-width: 640px) {
    .discover-micro-vision-summary .mv-summary-hint {
        display: none;
    }
}


