/* ================================================
   蜘蛛侠追踪器 - 像素复古游戏风格
   复刻 spideytracker.com 全部设计
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Noto+Sans+SC:wght@400;600;700&display=swap');

/* ===== 设计变量 ===== */
:root {
    --pixel-red: #e2231a;
    --pixel-red-light: #ff4444;
    --pixel-blue: #2e8bc0;
    --pixel-blue-dark: #1a5a7a;
    --pixel-blue-light: #4ecdc4;
    --pixel-cyan: #00d4ff;
    --pixel-yellow: #f4a261;
    --pixel-yellow-bright: #ffd60a;
    --pixel-green: #4caf50;
    --pixel-orange: #e76f51;

    --frame-blue: #2a6f97;
    --frame-blue-light: #4a9fc4;
    --frame-blue-dark: #1a4a67;

    --bg-terminal: #0d1117;
    --bg-screen: #161b22;
    --bg-panel: #1c2330;
    --bg-dark: #0a0e14;

    --text-cyan: #5ecbc4;
    --text-green: #4caf50;
    --text-white: #f0f0f0;
    --text-gray: #8b949e;
    --text-dim: #6a737d;

    --pixel-font: 'Press Start 2P', 'Noto Sans CJK SC', monospace;
    --term-font: 'VT323', 'Noto Sans CJK SC', monospace;

    --border-pixel: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--pixel-font);
    background: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.8;
}

/* ===== CRT扫描线效果 ===== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.06),
        rgba(0, 0, 0, 0.06) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ===== 主框架（模拟CRT显示器） ===== */
.crt-frame {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    border: 6px solid var(--frame-blue);
    border-radius: 12px;
    background: var(--bg-terminal);
    position: relative;
    box-shadow:
        inset 0 0 0 2px var(--frame-blue-dark),
        inset 0 0 0 4px var(--frame-blue-light),
        0 0 40px rgba(46, 139, 192, 0.2);
    overflow: hidden;
}

/* ===== 顶部标题栏 ===== */
.title-bar {
    background: linear-gradient(180deg, var(--frame-blue) 0%, var(--frame-blue-dark) 100%);
    border-bottom: 4px solid var(--frame-blue-light);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}
.title-bar-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.title-bar-text {
    font-family: var(--pixel-font);
    font-size: 20px;
    color: var(--text-white);
    letter-spacing: 3px;
    text-shadow: 2px 2px 0 var(--frame-blue-dark);
}
.title-bar-text .red { color: var(--pixel-red-light); }
.title-bar-spider {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    z-index: 10;
    animation: spiderHang 3s ease-in-out infinite;
}
@keyframes spiderHang {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(4px) rotate(3deg); }
}

/* ===== 左侧边栏 ===== */
.sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}
.sidebar-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid var(--frame-blue-light);
    background: var(--bg-panel);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-white);
    transition: all 0.2s;
    box-shadow: 0 4px 0 var(--frame-blue-dark), 0 0 12px rgba(46, 139, 192, 0.3);
}
.sidebar-btn:hover {
    border-color: var(--pixel-yellow);
    box-shadow: 0 4px 0 var(--frame-blue-dark), 0 0 20px rgba(244, 162, 97, 0.5);
    transform: translateY(-2px);
}
.sidebar-btn.active {
    border-color: var(--pixel-yellow);
    background: rgba(244, 162, 97, 0.15);
    box-shadow: 0 4px 0 var(--frame-blue-dark), 0 0 20px rgba(244, 162, 97, 0.5);
}
.sidebar-spider {
    margin-top: 12px;
    text-align: center;
    font-size: 36px;
    filter: drop-shadow(0 0 8px var(--pixel-red));
}

/* ===== 右上角关闭按钮 ===== */
.close-btn {
    position: fixed;
    right: 30px;
    top: 24px;
    width: 44px;
    height: 44px;
    background: var(--bg-panel);
    border: 3px solid var(--frame-blue-light);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-white);
    z-index: 100;
    transition: all 0.2s;
}
.close-btn:hover {
    border-color: var(--pixel-red-light);
    background: rgba(226, 35, 26, 0.15);
}

/* ===== 终端启动画面 ===== */
.boot-screen {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    text-align: center;
    overflow-y: auto;
}
.boot-welcome {
    font-family: var(--term-font);
    font-size: 20px;
    color: var(--text-cyan);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 600px;
}
.boot-welcome span {
    display: block;
}
.boot-hero-wrap {
    position: relative;
    margin-bottom: 16px;
}
.boot-hero-img {
    max-width: 320px;
    width: 100%;
    border-radius: 8px;
    border: 3px solid var(--frame-blue-light);
    box-shadow: 0 0 24px rgba(46, 139, 192, 0.3);
    margin-bottom: 12px;
}
.boot-pixel-spider {
    font-size: 40px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 16px var(--pixel-red));
    animation: floatPixel 2s ease-in-out infinite;
}
@keyframes floatPixel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 终端日志 */
.terminal-log {
    width: 100%;
    max-width: 640px;
    height: 200px;
    background: var(--bg-dark);
    border: 3px solid var(--frame-blue);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    font-family: var(--term-font);
    font-size: 15px;
    color: var(--text-green);
    text-align: left;
    line-height: 1.4;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.terminal-line {
    opacity: 0;
    animation: termLineIn 0.1s forwards;
}
.terminal-line .ok {
    color: var(--text-green);
    font-weight: bold;
}
.terminal-line .warn {
    color: var(--pixel-yellow);
}
@keyframes termLineIn {
    to { opacity: 1; }
}

/* 进度条 */
.pixel-progress {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 12px 0;
}
.pixel-progress-block {
    width: 16px;
    height: 16px;
    background: var(--frame-blue-dark);
    border: 2px solid var(--frame-blue);
}
.pixel-progress-block.filled {
    background: var(--pixel-cyan);
    box-shadow: 0 0 8px var(--pixel-cyan);
}

/* ===== 声音设置区 ===== */
.settings-section {
    text-align: center;
    margin: 12px 0;
}
.settings-label {
    font-family: var(--pixel-font);
    font-size: 11px;
    color: var(--text-cyan);
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.sound-toggle-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}
.sound-btn {
    padding: 10px 20px;
    background: var(--bg-panel);
    border: 3px solid var(--text-dim);
    border-radius: 6px;
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}
.sound-btn.active {
    border-color: var(--pixel-cyan);
    color: var(--pixel-cyan);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}
.sound-btn:hover {
    border-color: var(--text-gray);
    color: var(--text-white);
}

/* 主操作按钮 */
.enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--bg-panel);
    border: 4px solid var(--frame-blue-light);
    border-radius: 8px;
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 0 var(--frame-blue-dark);
    letter-spacing: 2px;
}
.enter-btn:hover {
    border-color: var(--pixel-cyan);
    box-shadow: 0 6px 0 var(--frame-blue-dark), 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}
.enter-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--frame-blue-dark);
}
.enter-arrow {
    width: 28px;
    height: 28px;
    background: var(--frame-blue);
    border: 2px solid var(--frame-blue-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* WATCH TRAILER 按钮 */
.trailer-btn-yellow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--pixel-yellow);
    border: 3px solid #c87f3a;
    border-radius: 6px;
    font-family: var(--pixel-font);
    font-size: 11px;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #a66a2e;
    letter-spacing: 1px;
}
.trailer-btn-yellow:hover {
    background: var(--pixel-yellow-bright);
    box-shadow: 0 4px 0 #a66a2e, 0 0 16px rgba(255, 214, 10, 0.4);
    transform: translateY(-2px);
}
.trailer-btn-yellow:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #a66a2e;
}

/* ===== 底部信息栏 ===== */
.bottom-bar {
    background: linear-gradient(180deg, var(--frame-blue-dark) 0%, var(--bg-dark) 100%);
    border-top: 4px solid var(--frame-blue-light);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.bottom-movie-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bottom-movie-logo .title {
    font-family: var(--pixel-font);
    font-size: 16px;
    color: var(--pixel-red-light);
    letter-spacing: 2px;
}
.bottom-movie-logo .subtitle {
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--pixel-blue-light);
    letter-spacing: 1px;
}
.bottom-movie-logo .status {
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--pixel-yellow);
    letter-spacing: 1px;
}
.bottom-sponsor {
    text-align: right;
}
.bottom-sponsor .powered {
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--text-gray);
}
.bottom-sponsor .brand {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--text-white);
}
.bottom-legal {
    width: 100%;
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.bottom-legal a, .bottom-legal span {
    font-family: var(--pixel-font);
    font-size: 7px;
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 4px;
}
.bottom-legal a:hover {
    color: var(--text-cyan);
}

/* ===== 主内容区（地图模式） ===== */
.main-content {
    padding: 20px;
    min-height: calc(100vh - 140px);
}

/* 地图区域 */
.map-section {
    margin-bottom: 32px;
}
.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.map-title {
    font-family: 'Noto Sans CJK SC', sans-serif;
    font-size: 14px;
    color: #09a4c7;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}
/* map-filters 样式在文件后面定义（简洁风格） */
.filter-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.filter-marker.confirmed { background: #00ff50; }
.filter-marker.rumored { background: #ff4040; }
.filter-marker.event { background: #96e0f7; }
.filter-marker.all { background: var(--pixel-cyan); }

/* 搜索框 */
.pixel-search {
    background: var(--bg-dark);
    border: 3px solid var(--frame-blue);
    border-radius: 6px;
    padding: 8px 14px;
    font-family: var(--term-font);
    font-size: 18px;
    color: var(--text-cyan);
    width: 220px;
    transition: all 0.2s;
}
.pixel-search:focus {
    outline: none;
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}
.pixel-search::placeholder { color: var(--text-dim); }

/* 地图容器 - Google Maps (与官方一致) */
.map-wrapper {
    position: relative;
    border: 2px solid rgba(9, 164, 199, 0.3);
    border-radius: 4px;
    overflow: hidden;
    background: #0a1628;
    isolation: isolate;
}
#map-vector {
    height: 600px;
    width: 100%;
    background: #0a1628;
}
#map-3d {
    height: 600px;
    width: 100%;
    background: #0a1628;
    display: block;
}
.map-wrapper.is-3d { border-color: rgba(9, 164, 199, 0.6); }

/* 地图叠加层 - 与官方一致的蓝色色调 */
.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 26, 77, 0.15);
    pointer-events: none;
    z-index: 3;
}

/* Google Maps 暗色背景覆盖 */
.gm-style-cc, .gmnoprint a, .gmnoprint span { display: none; }
.gm-style .gm-style-iw-c { background: var(--bg-panel) !important; }

/* ===== Leaflet 地图样式覆盖 ===== */
.leaflet-container {
    background: #0a1628 !important;
    font-family: var(--pixel-font) !important;
    outline: none;
}
.leaflet-tile {
    filter: brightness(0.85) contrast(1.1) hue-rotate(-5deg);
}
.leaflet-control-attribution { display: none !important; }
.leaflet-bar { display: none; }
.leaflet-marker-icon { background: transparent; border: none; }
.spidey-leaflet-pin { background: transparent; border: none; }

/* 地图图例 (左下角，简洁风格) */
.map-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(9, 164, 199, 0.3);
    border-radius: 4px;
    padding: 10px 14px;
    z-index: 500;
}
.legend-title {
    font-family: 'Noto Sans CJK SC', sans-serif;
    font-size: 10px;
    color: #09a4c7;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 3px 0;
    font-family: 'Noto Sans CJK SC', sans-serif;
    font-size: 11px;
    color: rgba(240, 240, 240, 0.7);
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.legend-dot.confirmed { background: #00ff50; }
.legend-dot.rumored { background: #ff4040; }
.legend-dot.event { background: #96e0f7; }

/* ===== Spidey Pin 标记 (Google Maps AdvancedMarkerElement) ===== */
.spidey-pin-wrap {
    cursor: pointer;
    transition: transform 0.15s;
}
.spidey-pin-wrap:hover {
    transform: scale(1.15);
    z-index: 1000;
}
.spidey-pin {
    width: 28px;
    height: 36px;
    position: relative;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}
.spidey-pin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
    border: 3px solid #fff;
}
.spidey-pin::after {
    content: '🕷';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    z-index: 2;
}
.spidey-pin.pin-confirmed::before { background: #00ff50; }
.spidey-pin.pin-rumored::before { background: #ff4040; }
.spidey-pin.pin-event::before { background: #96e0f7; }
.spidey-pin.pin-trailer::before { background: #ffffff; }

/* Pin hover pulse */
.spidey-pin-wrap:hover .spidey-pin::before {
    box-shadow: 0 0 12px currentColor;
}

/* ===== Pin 卡片 (点击pin后显示) ===== */
.pin-card-wrap {
    position: absolute;
    z-index: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.16s, transform 0.16s;
    pointer-events: none;
}
.pin-card-wrap.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.pin-card-dyn__pointer {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--bg-panel);
    border-right: 3px solid;
    border-bottom: 3px solid;
    border-color: inherit;
}
.pin-card-dyn {
    background: var(--bg-panel);
    border: 3px solid;
    border-radius: 8px;
    padding: 0;
    width: 240px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s;
}
.pin-card-dyn:hover { transform: scale(1.03); }
.pin-card-dyn__content {
    padding: 12px 14px;
}
.pin-card-dyn__badge {
    display: inline-block;
    font-family: var(--pixel-font);
    font-size: 7px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.pin-card-pano-icon {
    display: inline-block;
    font-family: var(--pixel-font);
    font-size: 7px;
    padding: 2px 6px;
    margin-left: 6px;
    background: rgba(0, 212, 255, 0.2);
    color: var(--pixel-cyan);
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 3px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
.pin-card-dyn__title {
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--text-white);
    line-height: 1.5;
    margin-bottom: 6px;
}
.pin-card-dyn__meta {
    font-family: var(--term-font);
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}
.pin-card-dyn__cta {
    text-align: center;
    font-family: var(--pixel-font);
    font-size: 9px;
    color: #000;
    padding: 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    font-weight: bold;
}

/* ===== Section标题 ===== */
.section-header {
    text-align: center;
    margin: 40px 0 24px;
}
.section-tag {
    display: inline-block;
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--pixel-yellow);
    background: rgba(244, 162, 97, 0.1);
    border: 2px solid rgba(244, 162, 97, 0.3);
    border-radius: 4px;
    padding: 4px 12px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.section-title {
    font-family: var(--pixel-font);
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 var(--frame-blue-dark);
}
.section-desc {
    font-family: var(--term-font);
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Ned视频消息 ===== */
.ned-section {
    text-align: center;
    margin: 40px 0;
}
.ned-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-panel);
    border: 4px solid var(--pixel-yellow);
    border-radius: 8px;
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--pixel-yellow);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 0 #a66a2e;
    letter-spacing: 1px;
}
.ned-btn:hover {
    background: rgba(244, 162, 97, 0.1);
    box-shadow: 0 6px 0 #a66a2e, 0 0 20px rgba(244, 162, 97, 0.4);
    transform: translateY(-2px);
}

/* ===== 活动日志 ===== */
.activity-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.activity-filter {
    padding: 8px 16px;
    background: var(--bg-panel);
    border: 3px solid var(--frame-blue);
    border-radius: 6px;
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}
.activity-filter:hover {
    border-color: var(--frame-blue-light);
    color: var(--text-white);
}
.activity-filter.active {
    border-color: var(--pixel-cyan);
    color: var(--pixel-cyan);
    background: rgba(0, 212, 255, 0.08);
}
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.activity-card {
    background: var(--bg-panel);
    border: 3px solid var(--frame-blue);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}
.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}
.activity-card.type-event::before { background: var(--pixel-yellow); }
.activity-card.type-sighting::before { background: var(--pixel-green); }
.activity-card.type-update::before { background: var(--pixel-cyan); }
.activity-card:hover {
    border-color: var(--frame-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.activity-badge {
    display: inline-block;
    font-family: var(--pixel-font);
    font-size: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.activity-badge.event { background: rgba(244, 162, 97, 0.15); color: var(--pixel-yellow); border: 2px solid rgba(244, 162, 97, 0.3); }
.activity-badge.sighting { background: rgba(76, 175, 80, 0.15); color: var(--pixel-green); border: 2px solid rgba(76, 175, 80, 0.3); }
.activity-badge.update { background: rgba(0, 212, 255, 0.15); color: var(--pixel-cyan); border: 2px solid rgba(0, 212, 255, 0.3); }
.activity-card h4 {
    font-family: var(--pixel-font);
    font-size: 11px;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.6;
}
.activity-card p {
    font-family: var(--term-font);
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.4;
}
.activity-date {
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--text-dim);
}

/* ===== 蛛网观察（反派档案） ===== */
.villains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.villain-card {
    background: var(--bg-panel);
    border: 3px solid var(--frame-blue);
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}
.villain-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(226, 35, 26, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.villain-card:hover {
    border-color: var(--pixel-red-light);
    transform: translateY(-3px);
    box-shadow: 0 0 24px rgba(226, 35, 26, 0.2);
}
.villain-icon-svg {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    color: var(--pixel-red-light);
    filter: drop-shadow(0 0 6px rgba(226, 35, 26, 0.3));
}
.villain-icon-svg svg {
    width: 100%;
    height: 100%;
}
.villain-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.villain-name {
    font-family: var(--pixel-font);
    font-size: 14px;
    color: var(--text-white);
    letter-spacing: 1px;
}
.threat-badge {
    font-family: var(--pixel-font);
    font-size: 7px;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.threat-badge.high { background: rgba(255, 68, 68, 0.2); color: var(--pixel-red-light); border: 2px solid rgba(255, 68, 68, 0.4); }
.threat-badge.medium { background: rgba(244, 162, 97, 0.15); color: var(--pixel-yellow); border: 2px solid rgba(244, 162, 97, 0.4); }
.threat-badge.extreme { background: rgba(226, 35, 26, 0.25); color: #ff6b6b; border: 2px solid rgba(226, 35, 26, 0.5); animation: extremePulse 2s infinite; }
.threat-badge.unknown { background: rgba(139, 148, 158, 0.15); color: var(--text-dim); border: 2px solid var(--frame-blue); }
@keyframes extremePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(226, 35, 26, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(226, 35, 26, 0); }
}
.villain-desc {
    font-family: var(--term-font);
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.5;
}
.villain-abilities {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}
.villain-abilities-label {
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--pixel-cyan);
    margin-bottom: 6px;
    letter-spacing: 2px;
}
.villain-abilities-text {
    font-family: var(--term-font);
    font-size: 16px;
    color: var(--text-gray);
}
.villain-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(226, 35, 26, 0.3));
}
.villain-threat {
    display: inline-block;
    font-family: var(--pixel-font);
    font-size: 8px;
    padding: 4px 10px;
    border: 2px solid;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.ability-tag {
    display: inline-block;
    font-family: var(--term-font);
    font-size: 15px;
    color: var(--text-gray);
    background: rgba(46, 139, 192, 0.1);
    border: 1px solid var(--frame-blue);
    border-radius: 4px;
    padding: 2px 8px;
    margin: 2px;
}
.activity-title {
    font-family: var(--pixel-font);
    font-size: 11px;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.6;
}
.activity-desc {
    font-family: var(--term-font);
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.active {
    display: flex;
    animation: modalFade 0.3s ease;
}
@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-box {
    background: var(--bg-panel);
    border: 4px solid var(--frame-blue-light);
    border-radius: 12px;
    padding: 28px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 40px rgba(46, 139, 192, 0.2);
    animation: modalSlide 0.3s ease;
}
@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border: 3px solid var(--frame-blue);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-gray);
    z-index: 10;
    transition: all 0.2s;
}
.modal-close:hover {
    border-color: var(--pixel-red-light);
    color: var(--pixel-red-light);
    background: rgba(226, 35, 26, 0.1);
}
.modal-title {
    font-family: var(--pixel-font);
    font-size: 16px;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.modal-desc {
    font-family: var(--term-font);
    font-size: 18px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 20px;
}

/* 视频播放器 - YouTube */
.video-modal-box {
    max-width: 900px;
}
.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border: 3px solid var(--frame-blue);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
}
.youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-subtitle {
    font-family: var(--term-font);
    font-size: 17px;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.5;
    padding: 0 20px;
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}
.form-row {
    display: flex;
    gap: 12px;
}
.form-row .form-group { flex: 1; }
.form-group label {
    display: block;
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--text-cyan);
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 3px solid var(--frame-blue);
    border-radius: 6px;
    color: var(--text-white);
    padding: 10px 14px;
    font-family: var(--term-font);
    font-size: 17px;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    background: var(--pixel-red);
    color: #fff;
    border: 3px solid var(--pixel-red-light);
    border-radius: 8px;
    font-family: var(--pixel-font);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 var(--pixel-red-dark, #b01a13);
    letter-spacing: 2px;
}
.submit-btn:hover {
    background: var(--pixel-red-light);
    box-shadow: 0 4px 0 #b01a13, 0 0 16px rgba(255, 68, 68, 0.3);
}
.submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b01a13;
}

/* 详情弹窗 */
.detail-type {
    display: inline-block;
    font-family: var(--pixel-font);
    font-size: 8px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.detail-title {
    font-family: var(--pixel-font);
    font-size: 16px;
    color: var(--text-white);
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.detail-desc {
    font-family: var(--term-font);
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}
.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--frame-blue);
    border-radius: 8px;
}
.detail-meta-item label {
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--pixel-yellow);
    display: block;
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.detail-meta-item span {
    font-family: var(--term-font);
    font-size: 17px;
    color: var(--text-white);
}

/* 成功提示 */
.report-success {
    text-align: center;
    padding: 32px 20px;
}
.success-icon {
    width: 56px;
    height: 56px;
    background: var(--pixel-green);
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 4px solid #2e7d32;
}
.report-success p {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--pixel-green);
    margin-bottom: 8px;
}
.success-sub {
    font-family: var(--term-font) !important;
    font-size: 18px !important;
    color: var(--text-gray) !important;
}

/* 加载 */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-family: var(--pixel-font);
    font-size: 10px;
    grid-column: 1 / -1;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-panel);
    border: 3px solid var(--pixel-green);
    border-radius: 8px;
    padding: 12px 20px;
    z-index: 6000;
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--text-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s ease, toastOut 0.3s 2.7s forwards;
}
@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* 动画 */
.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 声音开关图标 */
.sound-icon {
    width: 44px;
    height: 44px;
    border: 3px solid var(--frame-blue);
    border-radius: 8px;
    background: var(--bg-panel);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-cyan);
    transition: all 0.2s;
}
.sound-icon:hover {
    border-color: var(--pixel-cyan);
}

/* 预告片海报 */
.trailer-poster {
    max-width: 680px;
    margin: 0 auto 24px;
    border: 4px solid var(--frame-blue-light);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 30px rgba(46, 139, 192, 0.2);
}
.trailer-poster:hover {
    border-color: var(--pixel-red-light);
    box-shadow: 0 0 30px rgba(226, 35, 26, 0.3);
}
.trailer-poster-bg {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0a14;
    background-image:
        radial-gradient(ellipse at 50% 40%, rgba(226, 35, 26, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(46, 139, 192, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, #0a0a14 0%, #121822 50%, #0a0a14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.trailer-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,12,0.2) 0%, rgba(8,8,12,0.5) 100%);
    z-index: 1;
}
.trailer-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(226, 35, 26, 0.9);
    border: 4px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    z-index: 4;
    box-shadow: 0 0 24px rgba(226, 35, 26, 0.5);
    transition: all 0.2s;
}
.trailer-poster:hover .trailer-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--pixel-red-light);
}
.trailer-info {
    text-align: center;
}
.trailer-info h3 {
    font-family: var(--pixel-font);
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-white);
    letter-spacing: 2px;
}
.trailer-info p {
    font-family: var(--term-font);
    font-size: 18px;
    color: var(--pixel-yellow);
}

/* ===== Section 基础样式 ===== */
.section {
    margin-bottom: 40px;
    scroll-margin-top: 20px;
}

/* ===== 地图控制右侧区域 ===== */
.map-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.map-layer-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-dark);
    border: 2px solid var(--frame-blue);
    border-radius: 6px;
    padding: 3px;
}
.map-layer-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 4px;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.map-layer-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}
.map-layer-btn.active {
    color: var(--pixel-cyan);
    border-color: var(--pixel-cyan);
    background: rgba(0, 212, 255, 0.1);
}
.map-btn {
    padding: 8px 14px;
    background: var(--bg-panel);
    border: 3px solid var(--frame-blue);
    border-radius: 6px;
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}
.map-btn:hover {
    border-color: var(--frame-blue-light);
    color: var(--text-white);
}
.map-btn.active {
    border-color: var(--pixel-cyan);
    color: var(--pixel-cyan);
    background: rgba(0, 212, 255, 0.08);
}

/* ===== 地图过滤按钮 (简洁风格) ===== */
.map-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.map-filter {
    padding: 6px 12px;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(9, 164, 199, 0.3);
    border-radius: 4px;
    font-family: 'Noto Sans CJK SC', sans-serif;
    font-size: 11px;
    color: rgba(240, 240, 240, 0.6);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    outline: none;
}
.map-filter:hover {
    border-color: rgba(9, 164, 199, 0.6);
    color: rgba(240, 240, 240, 0.9);
}
.map-filter.active {
    border-color: #09a4c7;
    color: #a8e1fe;
    background: rgba(9, 164, 199, 0.1);
}

/* ===== 倒计时 ===== */
.countdown-section {
    text-align: center;
    padding: 32px 20px;
}
.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.countdown-item {
    background: var(--bg-panel);
    border: 3px solid var(--frame-blue);
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 4px 0 var(--frame-blue-dark);
}
.countdown-number {
    font-family: var(--pixel-font);
    font-size: 28px;
    color: var(--pixel-cyan);
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
    line-height: 1.2;
}
.countdown-label {
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--text-gray);
    margin-top: 8px;
    letter-spacing: 1px;
}
.countdown-release {
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--pixel-yellow);
    letter-spacing: 2px;
}

/* ===== 进入按钮未就绪状态 ===== */
.enter-btn:not(.ready) {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== 预告片海报蜘蛛图标 ===== */
.trailer-poster-spider-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: drop-shadow(0 0 20px var(--pixel-red));
    opacity: 0.7;
    animation: floatPixel 2s ease-in-out infinite;
}

/* ===== 主内容区 ===== */
.main-content {
    padding: 20px;
    min-height: calc(100vh - 140px);
}

/* ===== Ned 区域 ===== */
.ned-section {
    text-align: center;
    margin: 40px 0 20px;
}
.ned-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-panel);
    border: 4px solid var(--pixel-yellow);
    border-radius: 8px;
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--pixel-yellow);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 0 #a66a2e;
    letter-spacing: 1px;
}
.ned-btn:hover {
    background: rgba(244, 162, 97, 0.1);
    box-shadow: 0 6px 0 #a66a2e, 0 0 20px rgba(244, 162, 97, 0.4);
    transform: translateY(-2px);
}
.ned-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #a66a2e;
}

/* ===== 预告片信息 ===== */
.trailer-info {
    text-align: center;
    margin-bottom: 20px;
}
.trailer-info h3 {
    font-family: var(--pixel-font);
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-white);
    letter-spacing: 2px;
}
.trailer-info p {
    font-family: var(--term-font);
    font-size: 18px;
    color: var(--pixel-yellow);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--frame-blue);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--frame-blue-light);
}

/* ===== 雷达控件 (右下角，与官方一致) ===== */
.radar-widget {
    position: absolute;
    bottom: 35px;
    right: 30px;
    z-index: 600;
    width: 100px;
    height: 100px;
    pointer-events: none;
}
.radar-widget canvas {
    position: relative;
    display: block;
    border-radius: 50%;
}
.radar-center-btn {
    position: absolute;
    bottom: -6px;
    right: 13px;
    width: 24px;
    height: 24px;
    padding: 0;
    background: rgba(10, 22, 40, 0.85);
    border: 1px solid rgba(9, 164, 199, 0.5);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    outline: none;
    color: #09a4c7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.radar-center-btn:hover {
    background: rgba(10, 22, 40, 0.95);
    border-color: #09a4c7;
}
.radar-zoom-out-btn {
    position: absolute;
    bottom: 38px;
    right: -14px;
    width: 24px;
    height: 24px;
    padding: 0;
    background: rgba(10, 22, 40, 0.85);
    border: 1px solid rgba(9, 164, 199, 0.5);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    outline: none;
    color: #09a4c7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.radar-zoom-out-btn:hover {
    background: rgba(10, 22, 40, 0.95);
    border-color: #09a4c7;
}
.radar-zoom-out-btn:active, .radar-center-btn:active {
    opacity: 0.7;
}

/* ===== 3D 地图控制按钮 (左下角，与官方一致) ===== */
.map-3d-controls {
    position: absolute;
    bottom: 45px;
    left: 16px;
    z-index: 600;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ctrl-btn {
    width: 32px;
    height: 32px;
    background: rgba(10, 22, 40, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(9, 164, 199, 0.5);
    border-radius: 4px;
    color: #09a4c7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    outline: none;
    user-select: none;
}
.ctrl-btn:hover {
    background: rgba(10, 22, 40, 0.95);
    border-color: #09a4c7;
}
.ctrl-btn:active {
    background: rgba(9, 164, 199, 0.2);
}

/* ===== 返回2D按钮 (左上角，与官方一致) ===== */
.map-3d-exit-btn {
    position: absolute;
    top: 50px;
    left: 30px;
    z-index: 600;
    height: 30px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid rgba(168, 225, 254, 0.4);
    border-radius: 4px;
    color: #a8e1fe;
    font-family: 'Noto Sans CJK SC', sans-serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    user-select: none;
    transition: all 0.16s ease;
}
.map-3d-exit-btn:hover {
    color: #b8edff;
    border-color: rgba(168, 225, 254, 0.7);
    background: rgba(168, 225, 254, 0.08);
}
.map-3d-exit-btn:active {
    transform: translateY(1px);
}

/* ===== 进入3D按钮 (右下角上方，简洁风格) ===== */
.enter-3d-btn {
    position: absolute;
    bottom: 150px;
    right: 30px;
    z-index: 600;
    width: 36px;
    height: 36px;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(9, 164, 199, 0.5);
    border-radius: 4px;
    color: #09a4c7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans CJK SC', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background 0.15s, border-color 0.15s;
    outline: none;
}
.enter-3d-btn:hover {
    background: rgba(10, 22, 40, 0.95);
    border-color: #09a4c7;
    color: #a8e1fe;
}
.enter-3d-btn:active {
    background: rgba(9, 164, 199, 0.2);
}

/* Leaflet 控件隐藏 */
.leaflet-control-attribution, .leaflet-control-zoom { display: none !important; }
.leaflet-popup-content-wrapper { background: rgba(10, 22, 40, 0.95) !important; border: 1px solid rgba(9, 164, 199, 0.3) !important; border-radius: 4px !important; color: var(--text-white) !important; }
.leaflet-popup-tip { background: rgba(10, 22, 40, 0.95) !important; }

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .close-btn {
        right: 16px;
        top: 16px;
    }
    .title-bar-text {
        font-size: 14px;
    }
    .boot-welcome {
        font-size: 18px;
    }
    .terminal-log {
        height: 200px;
        font-size: 14px;
    }
    #map-vector, #map-3d {
        height: 400px;
    }
    .activity-grid {
        grid-template-columns: 1fr;
    }
    .villains-grid {
        grid-template-columns: 1fr;
    }
    .detail-meta {
        grid-template-columns: 1fr;
    }
    .bottom-bar {
        flex-direction: column;
        text-align: center;
    }
    .map-header {
        flex-direction: column;
        align-items: stretch;
    }
    .pixel-search {
        width: 100%;
    }
    /* 地图控件移动端适配 */
    .radar-widget {
        right: 16px;
        bottom: 26px;
        transform: scale(0.7);
        transform-origin: bottom right;
    }
    .map-3d-controls {
        bottom: 30px;
        left: 10px;
    }
    .map-3d-exit-btn {
        top: 40px;
        left: 10px;
    }
    .enter-3d-btn {
        bottom: 120px;
        right: 16px;
    }
    .map-legend {
        display: none;
    }
}

/* ===== 平板适配 (769px - 1024px) ===== */
@media (max-width: 1024px) {
    .crt-frame {
        max-width: 100%;
        border-width: 4px;
        border-radius: 8px;
    }
    .sidebar {
        left: 10px;
        gap: 10px;
    }
    .sidebar-btn {
        width: 44px;
        height: 44px;
    }
    .main-content {
        padding: 16px;
    }
    .pano-fullscreen-sidebar {
        width: 280px;
        padding: 16px;
    }
    .events-panel-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    .wallpaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ===== 手机适配 (≤768px) ===== */
@media (max-width: 768px) {
    .crt-frame {
        border-width: 3px;
        border-radius: 6px;
    }
    .sidebar {
        display: none;
    }
    /* 手机版底部导航栏 */
    .mobile-nav {
        display: flex !important;
    }
    .close-btn {
        right: 12px;
        top: 12px;
        width: 36px;
        height: 36px;
    }
    .title-bar {
        padding: 10px 12px;
    }
    .title-bar-text {
        font-size: 14px;
        letter-spacing: 2px;
    }
    .title-bar-icon {
        width: 24px;
        height: 24px;
    }
    .boot-screen {
        padding: 12px;
    }
    .boot-welcome {
        font-size: 16px;
    }
    .boot-hero-img {
        max-width: 240px;
    }
    .terminal-log {
        height: 160px;
        font-size: 13px;
    }
    .pixel-progress-block {
        width: 12px;
        height: 12px;
    }
    .main-content {
        padding: 12px;
        padding-bottom: 80px;
    }
    .map-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .map-title {
        font-size: 12px;
    }
    .map-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .map-filter {
        padding: 6px 10px;
        font-size: 8px;
    }
    .pixel-search {
        width: 100%;
        font-size: 16px;
    }
    #map-vector, #map-3d {
        height: 350px;
    }
    .radar-widget {
        right: 12px;
        bottom: 20px;
        transform: scale(0.65);
        transform-origin: bottom right;
    }
    .map-3d-controls {
        bottom: 24px;
        left: 8px;
    }
    .map-view-controls {
        flex-direction: column;
        gap: 6px;
    }
    .map-view-btn {
        padding: 6px 10px;
        font-size: 8px;
    }
    .map-legend {
        display: none;
    }
    
    /* 全屏街景手机适配 */
    .pano-fullscreen-overlay {
        flex-direction: column;
    }
    .pano-fullscreen-header {
        padding: 10px 12px;
    }
    .pano-fullscreen-title {
        font-size: 11px;
    }
    .pano-fullscreen-body {
        flex-direction: column;
    }
    .pano-fullscreen-viewer {
        flex: 1;
        min-height: 250px;
    }
    .pano-fullscreen-sidebar {
        width: 100%;
        max-height: 40vh;
        border-left: none;
        border-top: 3px solid var(--frame-blue);
        padding: 12px;
    }
    .pano-fullscreen-close {
        width: 36px;
        height: 36px;
    }
    
    /* 活动事件面板手机适配 */
    .events-panel-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .event-panel-card {
        max-width: 100%;
    }
    
    /* 活动日志手机适配 */
    .activity-grid {
        grid-template-columns: 1fr;
    }
    .activity-filters {
        flex-wrap: wrap;
        gap: 6px;
    }
    .activity-filter {
        padding: 6px 12px;
        font-size: 9px;
    }
    
    /* 反派档案手机适配 */
    .villains-grid {
        grid-template-columns: 1fr;
    }
    
    /* Samsung内容手机适配 */
    .wallpaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    .sticker-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    
    /* 视频画廊手机适配 */
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* 详情弹窗手机适配 */
    .modal-box {
        max-width: 95% !important;
        max-height: 90vh !important;
        margin: 10px;
    }
    .detail-meta {
        grid-template-columns: 1fr !important;
    }
    .youtube-wrapper {
        aspect-ratio: 16/9;
    }
    
    /* 倒计时手机适配 */
    .countdown {
        flex-wrap: wrap;
        gap: 8px;
    }
    .countdown-item {
        min-width: 60px;
    }
    .countdown-number {
        font-size: 28px !important;
    }
    .countdown-label {
        font-size: 8px !important;
    }
    
    /* 底部栏手机适配 */
    .bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 12px;
    }
    .bottom-legal a, .bottom-legal span {
        font-size: 6px;
    }
    
    /* 视频播放器手机适配 */
    .detail-video-player, .detail-video-iframe {
        max-height: 250px;
    }
    
    /* section header 手机适配 */
    .section-header {
        margin-bottom: 16px;
    }
    .section-title {
        font-size: 18px !important;
    }
    .section-desc {
        font-size: 13px !important;
    }
}

/* ===== 大屏桌面优化 (≥1440px) ===== */
@media (min-width: 1440px) {
    .crt-frame {
        max-width: 1400px;
    }
    .pano-fullscreen-sidebar {
        width: 400px;
    }
    .events-panel-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

/* ===== 超小屏幕适配 (≤380px) ===== */
@media (max-width: 380px) {
    .title-bar-text {
        font-size: 12px;
        letter-spacing: 1px;
    }
    .boot-hero-img {
        max-width: 200px;
    }
    .pixel-progress-block {
        width: 10px;
        height: 10px;
    }
    #map-vector {
        height: 300px;
    }
    .pano-fullscreen-viewer {
        min-height: 200px;
    }
    .pano-fullscreen-sidebar {
        max-height: 35vh;
    }
}

/* ===== 手机版底部导航栏 ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-top: 3px solid var(--frame-blue);
    padding: 8px 4px;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}
.mobile-nav-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}
.mobile-nav-btn:active,
.mobile-nav-btn.active {
    color: var(--pixel-cyan);
    background: rgba(0, 212, 255, 0.1);
}

/* ===== Samsung独家内容区域 ===== */
.samsung-subsection {
    margin-bottom: 32px;
}
.samsung-subtitle {
    font-family: var(--pixel-font);
    font-size: 14px;
    color: var(--pixel-cyan);
    margin-bottom: 16px;
    text-align: left;
    letter-spacing: 1px;
}
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.wallpaper-grid img {
    width: 100%;
    border-radius: 8px;
    border: 3px solid var(--frame-blue);
    cursor: pointer;
    transition: all 0.2s;
}
.wallpaper-grid img:hover {
    border-color: var(--pixel-yellow);
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(244, 162, 97, 0.4);
}
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}
.sticker-grid img {
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    filter: drop-shadow(0 0 6px rgba(46, 139, 192, 0.3));
}
.sticker-grid img:hover {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(244, 162, 97, 0.5));
}
.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.emoji-grid img {
    width: 64px;
    height: 64px;
    cursor: pointer;
    transition: all 0.2s;
}
.emoji-grid img:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px var(--pixel-cyan));
}

/* ===== 地图视角控制按钮 ===== */
.map-view-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 500;
}
.map-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(10, 14, 20, 0.85);
    border: 2px solid var(--frame-blue-light);
    border-radius: 6px;
    color: var(--text-cyan);
    font-family: var(--pixel-font);
    font-size: 9px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.map-view-btn:hover {
    border-color: var(--pixel-yellow);
    color: var(--pixel-yellow);
    background: rgba(244, 162, 97, 0.1);
    box-shadow: 0 0 12px rgba(244, 162, 97, 0.3);
}
.map-view-btn svg {
    flex-shrink: 0;
}

/* ===== 引导弹窗样式 ===== */
.guide-modal-box {
    max-width: 520px;
    text-align: center;
}
.guide-content {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.guide-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(46, 139, 192, 0.05);
    border: 2px solid var(--frame-blue);
    border-radius: 8px;
    text-align: left;
}
.guide-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.guide-text {
    flex: 1;
}
.guide-label {
    font-family: var(--pixel-font);
    font-size: 11px;
    color: var(--pixel-cyan);
    margin-bottom: 4px;
}
.guide-desc {
    font-family: var(--term-font);
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.4;
}
.guide-map-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}
.guide-map-btn-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(10, 14, 20, 0.5);
    border: 2px solid var(--frame-blue-dark);
    border-radius: 6px;
    color: var(--text-cyan);
    font-family: var(--term-font);
    font-size: 16px;
    text-align: left;
}
.guide-map-btn-info svg {
    color: var(--pixel-yellow);
    flex-shrink: 0;
}
.guide-start-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 36px;
    background: var(--bg-panel);
    border: 4px solid var(--pixel-yellow);
    border-radius: 8px;
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--pixel-yellow);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 0 var(--frame-blue-dark), 0 0 16px rgba(244, 162, 97, 0.3);
}
.guide-start-btn:hover {
    background: rgba(244, 162, 97, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--frame-blue-dark), 0 0 24px rgba(244, 162, 97, 0.5);
}
.guide-start-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--frame-blue-dark);
}

/* ===== 本地视频播放器样式 ===== */
.local-video-player {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    border: 4px solid var(--frame-blue-light);
    border-radius: 8px;
    background: #000;
    box-shadow: 0 0 30px rgba(46, 139, 192, 0.3);
}
.local-video-player video {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* ===== 目击详情视频 ===== */
.detail-video-wrap {
    margin: 16px 0;
    border: 3px solid var(--frame-blue-light);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
}
.detail-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.detail-video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-video-play-btn {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    background: rgba(226, 35, 26, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(226, 35, 26, 0.6);
    transition: all 0.2s;
}
.detail-video-preview:hover .detail-video-play-btn {
    background: rgba(255, 68, 68, 0.95);
    transform: scale(1.1);
}
.detail-video-label {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: var(--pixel-font);
    font-size: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 14px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* ===== 目击详情飞行按钮 ===== */
.detail-fly-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-panel);
    border: 3px solid var(--pixel-cyan);
    border-radius: 8px;
    color: var(--pixel-cyan);
    font-family: var(--pixel-font);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}
.detail-fly-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
}

/* ===== 活动卡片可点击 ===== */
.activity-card {
    cursor: pointer;
    transition: all 0.2s;
}
.activity-card:hover {
    transform: translateY(-3px);
    border-color: var(--pixel-yellow);
    box-shadow: 0 4px 16px rgba(244, 162, 97, 0.2);
}

/* ===== 目击详情官方图片 ===== */
.detail-image-wrap {
    margin: 16px 0;
    border: 3px solid var(--frame-blue-light);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    max-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* ===== 视频画廊 ===== */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.video-gallery-card {
    background: var(--bg-panel);
    border: 3px solid var(--frame-blue);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 var(--frame-blue-dark);
}
.video-gallery-card:hover {
    border-color: var(--pixel-cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 0 var(--frame-blue-dark), 0 0 20px rgba(0, 212, 255, 0.3);
}
.video-gallery-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-dark);
}
.video-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.video-gallery-card:hover .video-gallery-thumb img {
    transform: scale(1.05);
}
.video-gallery-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.2s;
}
.video-gallery-card:hover .video-gallery-play-overlay {
    background: rgba(0, 0, 0, 0.2);
}
.video-gallery-play-overlay svg {
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
    transition: transform 0.2s;
}
.video-gallery-card:hover .video-gallery-play-overlay svg {
    transform: scale(1.2);
}
.video-gallery-title {
    padding: 12px 16px;
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--text-cyan);
    letter-spacing: 1px;
    text-align: center;
}

/* ===== 图片Lightbox ===== */
.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.image-lightbox-overlay.active {
    display: flex;
}
.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}
.image-lightbox-box {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    z-index: 1;
}
.image-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border: 3px solid var(--frame-blue-light);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(46, 139, 192, 0.4);
}
.image-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: var(--bg-dark);
    border: 3px solid var(--pixel-red-light);
    color: var(--pixel-red-light);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--pixel-font);
    transition: all 0.2s;
}
.image-lightbox-close:hover {
    background: var(--pixel-red-light);
    color: var(--bg-dark);
}
.image-lightbox-header {
    color: var(--text-cyan);
    font-family: var(--pixel-font);
    text-align: center;
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 1px;
}

/* ===== 360°街景 ===== */
.detail-pano-wrap {
    margin: 16px 0;
    border: 3px solid var(--frame-blue-light);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-dark);
    box-shadow: 0 0 16px rgba(46, 139, 192, 0.2);
    position: relative;
}
.detail-pano-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Pannellum容器 */
.detail-pano-wrap .pnlm-container {
    width: 100% !important;
    height: 100% !important;
    background: var(--bg-dark) !important;
}

/* 街景加载动画 */
.pano-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-dark);
    z-index: 5;
}
.pano-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--frame-blue-dark);
    border-top-color: var(--pixel-cyan);
    border-radius: 50%;
    animation: panoSpin 0.8s linear infinite;
}
@keyframes panoSpin {
    to { transform: rotate(360deg); }
}
.pano-loading-text {
    font-family: var(--term-font);
    font-size: 16px;
    color: var(--text-cyan);
    animation: panoPulse 1.5s ease-in-out infinite;
}
@keyframes panoPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 街景降级方案 - Leaflet卫星地图 */
.pano-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
}
.pano-fallback-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-panel);
    border-bottom: 2px solid var(--frame-blue);
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--text-cyan);
    letter-spacing: 1px;
}
.pano-fallback-icon {
    font-size: 16px;
}
.pano-fallback-map {
    flex: 1;
    min-height: 200px;
    background: #1a1a2e;
}
.pano-fallback-info {
    padding: 8px 12px;
    background: var(--bg-panel);
    border-top: 2px solid var(--frame-blue);
}
.pano-fallback-coords {
    font-family: var(--term-font);
    font-size: 16px;
    color: var(--text-green);
    margin-bottom: 4px;
}
.pano-fallback-hint {
    font-family: var(--term-font);
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.4;
}

.detail-pano-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}
.pano-nav-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--frame-blue-light);
    background: var(--bg-panel);
    color: var(--text-white);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--pixel-font);
    font-size: 10px;
    transition: all 0.2s;
}
.pano-nav-btn:hover {
    border-color: var(--pixel-cyan);
    color: var(--pixel-cyan);
}
.pano-nav-btn.active {
    background: var(--frame-blue-light);
    color: var(--bg-dark);
    border-color: var(--pixel-cyan);
}

/* 地图标记上的360°街景指示器 */
.marker-pano-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: var(--pixel-cyan);
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: var(--bg-dark);
    font-weight: bold;
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.6);
    z-index: 10;
}

/* ===== 360°街景全屏覆盖层 (在主地图上显示) ===== */
.pano-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: var(--bg-dark);
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pano-fullscreen-overlay.active {
    display: flex;
    opacity: 1;
}
.pano-fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-panel);
    border-bottom: 3px solid var(--frame-blue);
    flex-shrink: 0;
}
.pano-fullscreen-title {
    font-family: var(--pixel-font);
    font-size: 14px;
    color: var(--text-cyan);
    letter-spacing: 1px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pano-fullscreen-close {
    width: 40px;
    height: 40px;
    border: 3px solid var(--pixel-red-light);
    background: rgba(226, 35, 26, 0.15);
    color: var(--pixel-red-light);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.pano-fullscreen-close:hover {
    background: var(--pixel-red);
    color: white;
    transform: scale(1.05);
}
.pano-fullscreen-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}
.pano-fullscreen-viewer {
    flex: 1;
    position: relative;
    background: var(--bg-dark);
    min-height: 300px;
}
.pano-fullscreen-viewer .pnlm-container {
    width: 100% !important;
    height: 100% !important;
}
.pano-fullscreen-viewer .detail-pano-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.pano-fullscreen-viewer .pano-fallback {
    width: 100%;
    height: 100%;
}
.pano-fullscreen-viewer .pano-fallback-map {
    flex: 1;
    min-height: 300px;
}
.pano-fullscreen-sidebar {
    width: 340px;
    background: var(--bg-panel);
    border-left: 3px solid var(--frame-blue);
    overflow-y: auto;
    padding: 20px;
    flex-shrink: 0;
}
.pano-fullscreen-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 10px;
    background: var(--bg-panel);
    border-top: 2px solid var(--frame-blue);
    flex-shrink: 0;
}

/* ===== 官方视频播放器 ===== */
.detail-video-wrap {
    margin: 16px 0;
    border: 3px solid var(--frame-blue-light);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-dark);
    box-shadow: 0 0 16px rgba(46, 139, 192, 0.2);
}
.detail-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.detail-video-player {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border: none;
}
.detail-video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(226, 35, 26, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 0 24px rgba(226, 35, 26, 0.5);
}
.detail-video-preview:hover .detail-video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--pixel-red-light);
}
.detail-video-label {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-white);
    font-family: var(--pixel-font);
    font-size: 10px;
    padding: 6px 16px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* ===== 详情图片 ===== */
.detail-image-wrap {
    position: relative;
    margin: 16px 0;
    border: 3px solid var(--frame-blue-light);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-dark);
    box-shadow: 0 0 16px rgba(46, 139, 192, 0.2);
    transition: all 0.2s;
}
.detail-image-wrap:hover {
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}
.detail-image {
    width: 100%;
    display: block;
    max-height: 400px;
    object-fit: contain;
    background: var(--bg-dark);
}
.detail-image-zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--pixel-cyan);
    font-size: 9px;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--pixel-font);
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.detail-image-wrap:hover .detail-image-zoom-hint {
    opacity: 1;
}

/* ===== 事件日期时间 ===== */
.detail-datetime {
    font-family: var(--term-font);
    font-size: 16px;
    color: var(--pixel-yellow);
    margin: 8px 0;
    padding: 4px 12px;
    background: rgba(244, 162, 97, 0.1);
    border-left: 3px solid var(--pixel-yellow);
    border-radius: 4px;
}

/* ===== CTA外链按钮 ===== */
.detail-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--pixel-red);
    color: white;
    border: 3px solid var(--pixel-red-light);
    border-radius: 6px;
    font-family: var(--pixel-font);
    font-size: 11px;
    text-decoration: none;
    letter-spacing: 1px;
    margin: 12px 0;
    transition: all 0.2s;
    box-shadow: 0 4px 0 var(--pixel-red-light);
    cursor: pointer;
}
.detail-cta-btn:hover {
    background: var(--pixel-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--pixel-red-light), 0 0 16px rgba(255, 68, 68, 0.4);
}
.detail-cta-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--pixel-red-light);
}

/* ===== 图片画廊 (详情弹窗内) ===== */
.detail-gallery-wrap {
    margin: 16px 0;
}
.detail-gallery-main {
    position: relative;
    border: 3px solid var(--frame-blue-light);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-dark);
    box-shadow: 0 0 16px rgba(46, 139, 192, 0.2);
    transition: all 0.2s;
}
.detail-gallery-main:hover {
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}
.detail-gallery-img {
    width: 100%;
    display: block;
    max-height: 400px;
    object-fit: contain;
    background: var(--bg-dark);
}
.detail-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.detail-gallery-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border: 2px solid var(--frame-blue-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.detail-gallery-thumb:hover {
    border-color: var(--pixel-cyan);
}
.detail-gallery-thumb.active {
    border-color: var(--pixel-yellow);
    box-shadow: 0 0 8px rgba(244, 162, 97, 0.5);
}

/* ===== 图片画廊 Lightbox (多图翻页) ===== */
.gallery-lightbox-box {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border: 3px solid var(--frame-blue-light);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(46, 139, 192, 0.4);
}
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--frame-blue-light);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}
.gallery-nav-btn:hover {
    background: var(--frame-blue-light);
    border-color: var(--pixel-cyan);
}
.gallery-nav-prev { left: -60px; }
.gallery-nav-next { right: -60px; }
.gallery-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}
.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--frame-blue-dark);
    border: 2px solid var(--frame-blue);
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-dot.active {
    background: var(--pixel-cyan);
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 8px var(--pixel-cyan);
}

/* ===== 事件面板 (复刻官方 EventsPanel) ===== */
.events-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.event-panel-card {
    background: var(--bg-panel);
    border: 3px solid var(--frame-blue);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 var(--frame-blue-dark);
}
.event-panel-card:hover {
    border-color: var(--pixel-cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 0 var(--frame-blue-dark), 0 0 20px rgba(0, 212, 255, 0.3);
}
.event-panel-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-dark);
}
.event-panel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.event-panel-card:hover .event-panel-thumb img {
    transform: scale(1.05);
}
.event-panel-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    font-family: var(--pixel-font);
    font-size: 8px;
    color: white;
    letter-spacing: 1px;
}
.event-panel-badge.video {
    background: rgba(226, 35, 26, 0.85);
}
.event-panel-badge.image {
    background: rgba(0, 212, 255, 0.85);
}
.event-panel-info {
    padding: 16px;
}
.event-panel-title {
    font-family: var(--pixel-font);
    font-size: 11px;
    color: var(--text-cyan);
    margin-bottom: 8px;
    line-height: 1.4;
}
.event-panel-datetime {
    font-family: var(--term-font);
    font-size: 14px;
    color: var(--pixel-yellow);
    margin-bottom: 8px;
}
.event-panel-desc {
    font-family: var(--term-font);
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 8px;
}
.event-panel-location {
    font-family: var(--term-font);
    font-size: 14px;
    color: var(--text-dim);
}
