/* 微观战术卡光学与障碍识别交互组件样式 (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;
    }
}



/* ── 拍照探点（/fish-id/?mode=spot，2026-10-21） ── */
.photo-spot-widget { background: #fff; border: 1px solid #cbd5e1; border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.photo-spot-widget-head h2 { margin: 0 0 6px; font-size: 1.15rem; color: #0f172a; }
.photo-spot-widget-head p { margin: 0 0 6px; font-size: .9rem; color: #475569; line-height: 1.6; }
.photo-spot-principle a, .photo-spot-ban-link a { color: #1d4ed8; font-weight: 600; }
.photo-spot-location { margin: 10px 0; padding: 8px 12px; background: #f1f5f9; border-radius: 8px; font-size: .875rem; color: #334155; }
.photo-spot-quota { margin: 0 0 10px; font-size: .85rem; color: #0369a1; }
.photo-spot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.photo-spot-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #334155; font-size: .9rem; font-weight: 600; cursor: pointer; }
.photo-spot-btn.is-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.photo-spot-btn.is-link { border-style: dashed; color: #475569; }
.photo-spot-loading { display: flex; align-items: center; gap: 12px; padding: 12px; background: #eff6ff; border-radius: 10px; color: #1d4ed8; font-size: .875rem; }
.photo-spot-loading[hidden], .photo-spot-preview[hidden] { display: none; }
.photo-spot-loading .mv-spinner { width: 20px; height: 20px; border: 3px solid #93c5fd; border-top-color: #2563eb; border-radius: 50%; animation: mv-spin .8s linear infinite; }
.photo-spot-preview { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: .8rem; color: #64748b; }
.photo-spot-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #cbd5e1; }
.photo-spot-result { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; margin-top: 16px; }
.photo-spot-result h3 { margin: 0; font-size: 1.05rem; color: #0f172a; }
.photo-spot-result h4 { margin: 16px 0 6px; font-size: .95rem; color: #0f172a; }
.photo-spot-place { margin: 4px 0 0; color: #475569; font-size: .875rem; }
.photo-spot-note, .photo-spot-visible-note { margin: 4px 0 8px; font-size: .82rem; color: #64748b; line-height: 1.6; }
.photo-spot-example-banner { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; margin-bottom: 12px; background: #fff7ed; border: 1.5px dashed #f97316; border-radius: 10px; color: #9a3412; font-size: .85rem; }
.photo-spot-example-stamp { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; background: rgba(234, 88, 12, .92); color: #fff; font-weight: 700; font-size: .8rem; }
.photo-spot-species-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.photo-spot-species { padding: 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; text-align: center; }
.photo-spot-species-name { font-weight: 700; color: #0f172a; }
.photo-spot-species-warning { font-size: .75rem; color: #9a3412; }
.photo-spot-species-muted { display: block; font-size: .75rem; color: #64748b; }
.photo-spot-species-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.photo-spot-evidence { font-size: .7rem; padding: 1px 6px; border-radius: 4px; background: #eff6ff; color: #1d4ed8; }
.photo-spot-evidence.is-report { background: #dcfce7; color: #15803d; }
.photo-spot-tackle ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.photo-spot-tackle li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 12px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; font-size: .85rem; color: #334155; }
.photo-spot-ban-link { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #f1f5f9; font-size: .9rem; }
.micro-tactics-error { padding: 12px 14px; margin-top: 12px; background: #fef2f2; color: #b91c1c; border-radius: 10px; font-size: .875rem; }
.micro-tactics-login { display: inline-block; margin-top: 8px; color: #1d4ed8; font-weight: 600; }
.discover-photo-spot-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%); border: 1px solid #bfdbfe; border-radius: 12px; text-decoration: none; color: #1e3a8a; }
.discover-photo-spot-entry span { font-size: .82rem; color: #64748b; }
.photo-spot-entry-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; margin: 0 0 20px; border-radius: 999px; background: #2563eb; color: #fff; font-weight: 700; text-decoration: none; }
/* ── 拍一张研判（P1，2026-10-21）：罗盘条、可见水面方向区间、真实数据叠加 ── */
.photo-spot-compass { position: absolute; top: 0; left: 0; right: 0; height: 30px; background: linear-gradient(180deg, rgba(15, 23, 42, .72), rgba(15, 23, 42, 0)); pointer-events: none; }
.photo-spot-compass-tick, .photo-spot-compass-mark { position: absolute; top: 4px; transform: translateX(-50%); font-size: .72rem; font-weight: 700; color: #fff; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.photo-spot-compass-mark { top: 32px; padding: 1px 6px; border-radius: 6px; background: rgba(15, 23, 42, .78); }
.photo-spot-compass-mark.is-sun { background: rgba(217, 119, 6, .9); }
.photo-spot-compass-mark.is-ban_boundary, .photo-spot-compass-mark.is-protected_area { background: rgba(185, 28, 28, .88); }
.photo-spot-water-span { position: absolute; bottom: 6px; height: 6px; border-radius: 3px; background: rgba(56, 189, 248, .85); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); }
.photo-spot-view { margin-top: 14px; padding: 12px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.photo-spot-view h4 { margin-top: 0; }
.photo-spot-view-main { margin: 6px 0 2px; font-size: .95rem; font-weight: 700; color: #0f172a; }
.photo-spot-overlays { margin: 8px 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.photo-spot-overlays li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; font-size: .84rem; color: #334155; line-height: 1.55; }
.photo-spot-overlays li.is-ban_boundary, .photo-spot-overlays li.is-protected_area { border-left: 3px solid #b91c1c; }
.photo-spot-source { display: block; font-size: .74rem; color: #64748b; }
.photo-spot-safety { margin: 8px 0 4px; padding: 8px 10px; background: #fffbeb; border-radius: 8px; font-size: .82rem; color: #92400e; }
.photo-spot-camera { position: relative; margin: 12px 0; border-radius: 12px; overflow: hidden; background: #0f172a; }
.photo-spot-camera[hidden] { display: none; }
.photo-spot-camera video { display: block; width: 100%; max-height: 70vh; object-fit: cover; }
.photo-spot-camera-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: linear-gradient(0deg, rgba(15, 23, 42, .8), rgba(15, 23, 42, 0)); color: #fff; font-size: .78rem; }
.photo-spot-shutter { width: 58px; height: 58px; border-radius: 50%; border: 4px solid #fff; background: #2563eb; color: #fff; font-weight: 700; cursor: pointer; flex: none; }
.photo-spot-camera-close { padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; cursor: pointer; }
.photo-spot-sensor-status { margin: 0 0 8px; font-size: .82rem; color: #475569; }
@media (max-width: 480px) {
    .photo-spot-widget { padding: 16px; }
    .photo-spot-btn { flex: 1 1 auto; justify-content: center; }
}
