/* GTA6 攻略网站样式 - 真实数据版 */

:root {
    --primary: #ff6b00;
    --primary-dark: #cc5500;
    --secondary: #00d4ff;
    --accent: #ff00ff;
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #ffffff;
    --gray: #888888;
    --card-bg: #1a1a1a;
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* 粒子背景 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
}

.logo-gta {
    color: var(--primary);
}

.logo-vi {
    color: var(--secondary);
    text-shadow: 0 0 20px var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--light);
    transition: all 0.3s ease;
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-logo {
    margin-bottom: 20px;
}

.logo-img {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 107, 0, 0.5));
    animation: logo-glow 3s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    from { filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.3)); }
    to { filter: drop-shadow(0 0 40px rgba(255, 107, 0, 0.7)); }
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
}

/* 故障效果 */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-2px, -2px);
    opacity: 0.8;
}

.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    opacity: 0.8;
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
    100% { transform: translate(0); }
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    text-shadow: 0 0 30px var(--secondary);
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-block;
    padding: 15px 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--light);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

/* 通用部分样式 */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--darker);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 剧情介绍 */
.story-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.story-text {
    padding-right: 20px;
}

.story-lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* 剧情时间线 */
.story-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 30px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--dark);
    z-index: 1;
}

.timeline-content {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}

.timeline-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.timeline-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-content p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.chapter-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    width: fit-content;
}

/* 角色档案 */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.character-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2);
}

.character-image {
    height: 300px;
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.character-card:hover .character-image img {
    transform: scale(1.05);
}

.character-info {
    padding: 25px;
}

.character-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.character-role {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.character-desc {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 15px;
}

.character-quote {
    font-style: italic;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    font-size: 0.95rem;
}

/* 地图探索 */
.map-intro {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.map-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2);
}

.map-card-image {
    height: 250px;
    overflow: hidden;
}

.map-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.map-card:hover .map-card-image img {
    transform: scale(1.05);
}

.map-card-info {
    padding: 25px;
}

.map-card-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.map-card-info p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.map-card-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.map-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,107,0,0.4);
}

.map-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    margin: 60px 0 30px;
    color: var(--secondary);
}

/* === 交互式全景地图 === */
.map-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.map-ctrl-btn {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--light);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-ctrl-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.map-zoom-level {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--secondary);
    min-width: 50px;
}

.map-legend {
    display: flex;
    gap: 20px;
    margin-left: auto;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-main { background: #ff4444; box-shadow: 0 0 6px #ff4444; }
.legend-side { background: #ffcc00; box-shadow: 0 0 6px #ffcc00; }
.legend-heist { background: #00ff88; box-shadow: 0 0 6px #00ff88; }
.legend-region { background: #4488ff; box-shadow: 0 0 6px #4488ff; }

/* 全景地图容器 */
.map-panorama-wrapper {
    width: 100%;
    height: 550px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    background: #0d1117;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 60px rgba(0,0,0,0.5), inset 0 0 100px rgba(0,20,40,0.3);
}

.map-panorama-wrapper:active {
    cursor: grabbing;
}

.map-panorama {
    width: 1600px;
    height: 1000px;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    transition: transform 0.05s linear;
}

/* 地图底图层 */
.map-base-layer {
    width: 100%;
    height: 100%;
    position: relative;
    background:
        radial-gradient(ellipse at 40% 55%, rgba(30,60,30,0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 40%, rgba(40,30,20,0.5) 0%, transparent 40%),
        radial-gradient(ellipse at 25% 70%, rgba(20,50,60,0.5) 0%, transparent 35%),
        radial-gradient(ellipse at 60% 25%, rgba(50,40,30,0.4) 0%, transparent 30%),
        linear-gradient(180deg, #0d1a0d 0%, #1a1a0d 30%, #0d1a1a 60%, #0d0d1a 100%);
}

/* 区域色块 */
.map-region {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.map-region:hover {
    opacity: 0.4;
}

.region-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
}

.region-vice-city {
    left: 25%; top: 48%; width: 25%; height: 25%;
    background: radial-gradient(circle, rgba(255,100,50,0.4) 0%, rgba(255,50,50,0.1) 70%, transparent 100%);
}

.region-grassrivers {
    left: 30%; top: 62%; width: 25%; height: 20%;
    background: radial-gradient(circle, rgba(50,120,50,0.4) 0%, rgba(30,80,30,0.1) 70%, transparent 100%);
}

.region-keys {
    left: 10%; top: 68%; width: 22%; height: 18%;
    background: radial-gradient(circle, rgba(50,150,200,0.3) 0%, rgba(30,100,150,0.1) 70%, transparent 100%);
}

.region-port {
    left: 55%; top: 48%; width: 20%; height: 18%;
    background: radial-gradient(circle, rgba(150,100,50,0.3) 0%, rgba(100,70,30,0.1) 70%, transparent 100%);
}

.region-ambrosia {
    left: 62%; top: 32%; width: 20%; height: 18%;
    background: radial-gradient(circle, rgba(180,140,50,0.3) 0%, rgba(120,90,30,0.1) 70%, transparent 100%);
}

.region-kalaga {
    left: 55%; top: 12%; width: 25%; height: 22%;
    background: radial-gradient(circle, rgba(80,120,80,0.3) 0%, rgba(50,80,50,0.1) 70%, transparent 100%);
}

/* 道路线 */
.map-roads {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

/* 水域 */
.map-water {
    position: absolute;
    pointer-events: none;
}

.water-ocean {
    right: 0; top: 0;
    width: 15%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0,30,60,0.3) 50%, rgba(0,40,80,0.4) 100%);
}

.water-bay {
    left: 15%; bottom: 10%;
    width: 30%; height: 25%;
    background: radial-gradient(ellipse, rgba(0,40,80,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

/* === 任务标记点 === */
.mission-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, z-index 0s;
}

.mission-marker:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 20;
}

.marker-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    animation: markerPulse 2s ease-out infinite;
    pointer-events: none;
}

.marker-main .marker-pulse { background: rgba(255,68,68,0.3); }
.marker-side .marker-pulse { background: rgba(255,204,0,0.3); }
.marker-heist .marker-pulse { background: rgba(0,255,136,0.3); }
.marker-region .marker-pulse { background: rgba(68,136,255,0.3); }

@keyframes markerPulse {
    0% { transform: translate(-50%,-50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%,-50%) scale(2.5); opacity: 0; }
}

.marker-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.marker-main .marker-icon { background: linear-gradient(135deg, #ff4444, #cc2222); color: #fff; }
.marker-side .marker-icon { background: linear-gradient(135deg, #ffcc00, #cc9900); color: #1a1a1a; }
.marker-heist .marker-icon { background: linear-gradient(135deg, #00ff88, #00cc66); color: #1a1a1a; }
.marker-region .marker-icon { background: linear-gradient(135deg, #4488ff, #2266cc); color: #fff; }

.mission-marker:hover .marker-icon {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.8);
}

.marker-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.7);
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

.mission-marker:hover .marker-label {
    opacity: 1;
}

/* 缩略图 */
.map-minimap {
    width: 180px;
    height: 120px;
    position: relative;
    margin-top: 15px;
    margin-left: auto;
    background: rgba(13,17,23,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.minimap-viewport {
    position: absolute;
    border: 2px solid var(--primary);
    background: rgba(255,107,0,0.1);
    border-radius: 3px;
    pointer-events: none;
    transition: all 0.1s linear;
}

/* === 任务详情弹窗 === */
.mission-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mission-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mission-modal {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(255,107,0,0.1);
}

.mission-modal-overlay.active .mission-modal {
    transform: translateY(0) scale(1);
}

.mission-modal::-webkit-scrollbar {
    width: 6px;
}

.mission-modal::-webkit-scrollbar-track {
    background: transparent;
}

.mission-modal::-webkit-scrollbar-thumb {
    background: rgba(255,107,0,0.3);
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255,68,68,0.5);
    border-color: #ff4444;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-type-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.modal-type-badge.badge-main { background: rgba(255,68,68,0.2); color: #ff6666; border: 1px solid rgba(255,68,68,0.4); }
.modal-type-badge.badge-side { background: rgba(255,204,0,0.2); color: #ffcc00; border: 1px solid rgba(255,204,0,0.4); }
.modal-type-badge.badge-heist { background: rgba(0,255,136,0.2); color: #00ff88; border: 1px solid rgba(0,255,136,0.4); }
.modal-type-badge.badge-region { background: rgba(68,136,255,0.2); color: #6699ff; border: 1px solid rgba(68,136,255,0.4); }

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.modal-location {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
}

.modal-body {
    padding: 20px 30px 30px;
}

.modal-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(26,26,46,0.8));
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.modal-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    font-size: 1.05rem;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section ul li {
    color: rgba(255,255,255,0.8);
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1rem;
}

.modal-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.modal-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tip-tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.modal-rewards {
    margin-bottom: 20px;
}

.modal-rewards h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #00ff88;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.reward-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reward-item {
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.2);
    padding: 8px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reward-item .reward-icon {
    font-size: 1.2rem;
}

.reward-item .reward-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.modal-difficulty {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.modal-difficulty > span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

.difficulty-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.difficulty-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
    background: linear-gradient(90deg, #00ff88, #ffcc00, #ff4444);
}

.difficulty-stars {
    font-size: 0.9rem;
    color: var(--primary);
    white-space: nowrap;
}

/* 预告片 */
.trailer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.trailer-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trailer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2);
}

.trailer-thumbnail {
    position: relative;
    overflow: hidden;
}

.trailer-thumbnail img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.trailer-card:hover .trailer-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trailer-card:hover .play-button {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
}

.trailer-info {
    padding: 25px;
}

.trailer-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.trailer-info p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* 截图画廊 */
.gallery-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.screenshot-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 攻略技巧 */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tip-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tip-icon {
    font-size: 2.5rem;
}

.tip-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
}

.tip-content p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tip-content p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* 页脚 */
.footer {
    background: var(--darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--gray);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--primary);
}

.footer-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* === 3D地图 === */
.map-3d-container {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #080818;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 60px rgba(0,0,0,0.5), inset 0 0 100px rgba(0,10,30,0.5);
    margin-bottom: 20px;
    cursor: grab;
}

.map-3d-container:active {
    cursor: grabbing;
}

.map-3d-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.map-3d-toggle {
    font-size: 0.9rem !important;
    padding: 0 14px !important;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(255,107,0,0.15)) !important;
    border-color: rgba(0,212,255,0.4) !important;
    animation: pulse-3d-btn 2s ease-in-out infinite;
}

@keyframes pulse-3d-btn {
    0%, 100% { box-shadow: 0 0 5px rgba(0,212,255,0.2); }
    50% { box-shadow: 0 0 20px rgba(0,212,255,0.5), 0 0 40px rgba(0,212,255,0.2); }
}

.map-3d-toggle:hover {
    background: linear-gradient(135deg, rgba(0,212,255,0.3), rgba(255,107,0,0.3)) !important;
    box-shadow: 0 0 15px rgba(0,212,255,0.3);
}

.map-3d-toggle.active {
    background: linear-gradient(135deg, var(--secondary), #0099cc) !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 20px rgba(0,212,255,0.5);
    color: var(--dark) !important;
    font-weight: 700;
}

.map-3d-hint {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    margin-top: 10px;
    font-style: italic;
    letter-spacing: 1px;
}

.map-3d-hint span {
    color: var(--secondary);
    font-style: normal;
}

/* 任务计数器 */
.mission-counter {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mission-count-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.mission-count-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255,107,0,0.3);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.mission-count-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mission-count-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
}

.mission-count-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}


/* === 地图标签页系统 === */
.map-tabs {
    margin-top: 20px;
}

.map-tab-buttons {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.08);
}

.map-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.map-tab-btn:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.05);
}

.map-tab-btn.active {
    background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(0,212,255,0.2));
    color: #fff;
    border: 1px solid rgba(255,107,0,0.3);
    box-shadow: 0 0 20px rgba(255,107,0,0.15);
}

.map-tab-panel {
    display: none;
}

.map-tab-panel.active {
    display: block;
}

/* === 互动地图启动面板 === */
.map-launch-panel {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(26,26,26,0.9), rgba(10,10,10,0.95));
    border-radius: 20px;
    border: 1px solid rgba(255,107,0,0.15);
    position: relative;
    overflow: hidden;
}
.map-launch-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,107,0,0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(0,212,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}
.map-launch-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255,107,0,0.4);
    position: relative;
}
.map-launch-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    position: relative;
}
.map-launch-desc {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    margin-bottom: 28px;
    position: relative;
}
.map-launch-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    position: relative;
}
.map-launch-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}
.map-launch-feature i {
    color: var(--primary);
}
.map-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}
.map-launch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(255,107,0,0.35);
}
.map-launch-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.map-launch-btn:hover::before { left: 100%; }

/* === OpenLayers 互动地图嵌入样式 === */
.ol-embed-wrapper {
    margin-top: 10px;
}

.ol-controls-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.ol-search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.ol-search-box > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.ol-search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.ol-search-box input::placeholder {
    color: rgba(255,255,255,0.4);
}

.ol-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(255,107,0,0.3);
    background: rgba(255,255,255,0.1);
}

.ol-search-results-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26,26,26,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    list-style: none;
    padding: 0;
}

.ol-search-results-list.show {
    display: block;
}

.ol-search-result-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ol-search-result-item:last-child {
    border-bottom: none;
}

.ol-search-result-item:hover {
    background: rgba(255,107,53,0.15);
}

.ol-search-result-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ol-search-result-info {
    flex: 1;
}

.ol-search-result-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.ol-search-result-region {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.ol-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ol-filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.ol-filter-chip:hover {
    background: rgba(255,255,255,0.1);
}

.ol-filter-chip input {
    display: none;
}

.ol-filter-chip input:checked + .ol-chip-dot {
    opacity: 1;
}

.ol-chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.ol-style-toggle {
    display: flex;
    gap: 0;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.ol-style-btn {
    padding: 6px 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ol-style-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(255,107,0,0.4);
}

.ol-map-container {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #0d1117;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 60px rgba(0,0,0,0.5), inset 0 0 100px rgba(0,20,40,0.3);
}

.ol-map-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 50;
}

.ol-map-ctrl-btn {
    width: 40px;
    height: 40px;
    background: rgba(26,26,26,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(16px);
}

.ol-map-ctrl-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(255,107,0,0.4);
}

.ol-coords-display {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26,26,26,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--secondary);
    pointer-events: none;
    z-index: 50;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.ol-marker-tooltip {
    position: absolute;
    background: rgba(26,26,26,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2000;
    display: none;
    transform: translate(-50%, -100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.ol-map-legend {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(26,26,26,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    z-index: 50;
    backdrop-filter: blur(16px);
}

.ol-legend-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.ol-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.ol-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ol-map-hint {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    margin-top: 10px;
    font-style: italic;
    letter-spacing: 1px;
}

.ol-map-hint i {
    color: var(--secondary);
    font-style: normal;
}

/* === OL Popup (inside map section) === */
.ol-popup {
    position: absolute;
    background: rgba(26,26,26,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 0;
    min-width: 300px;
    max-width: 380px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    z-index: 1000;
    overflow: hidden;
}

.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-color: transparent;
    border-top-color: rgba(26,26,26,0.98);
    border-width: 10px;
    left: 50%;
    margin-left: -10px;
}

.ol-popup:before {
    border-color: transparent;
    border-top-color: rgba(255,255,255,0.1);
    border-width: 11px;
    left: 50%;
    margin-left: -11px;
}

.popup-header {
    padding: 20px 20px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.popup-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.popup-type-badge.landscape { background: rgba(255,68,68,0.2); color: #ff4444; border: 1px solid rgba(255,68,68,0.3); }
.popup-type-badge.trailer { background: rgba(181,56,183,0.2); color: #b538b7; border: 1px solid rgba(181,56,183,0.3); }
.popup-type-badge.leak { background: rgba(0,180,255,0.2); color: #00b4ff; border: 1px solid rgba(0,180,255,0.3); }
.popup-type-badge.screenshot { background: rgba(255,215,0,0.2); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }

.popup-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.popup-close:hover {
    background: #ff1744;
    border-color: #ff1744;
    color: white;
}

.popup-title {
    padding: 0 20px 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.popup-body {
    padding: 0 20px 16px;
}

.popup-description {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 12px;
}

.popup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popup-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 6px;
}

.popup-meta-item i {
    font-size: 11px;
    color: var(--secondary);
}

.popup-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup-coords {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

/* Hide default OL controls */
#ol-map .ol-zoom,
#ol-map .ol-attribution,
#ol-map .ol-control {
    display: none !important;
}

/* === Responsive for OL map === */
@media (max-width: 768px) {
    .ol-map-container {
        height: 400px;
    }
    .ol-controls-row {
        flex-direction: column;
        gap: 10px;
    }
    .ol-filter-bar {
        gap: 6px;
    }
    .ol-filter-chip {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    .map-tab-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    .ol-map-legend {
        display: none;
    }
}

/* 响应式设计 */
/* 响应式设计 */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 1.8rem;
    }
    
    .characters-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .map-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .screenshot-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .story-intro {
        grid-template-columns: 1fr;
    }
    
    .story-text {
        padding-right: 0;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
    }
    
    .map-grid {
        grid-template-columns: 1fr;
    }
    
    .trailer-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
}

/* === 2026 Intel Homepage Overrides === */
.intelligence-hero .hero-content {
    max-width: 960px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.35);
    color: rgba(255,255,255,0.74);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
    transition: all 0.2s ease;
}

.ghost-button:hover {
    border-color: rgba(0,212,255,0.5);
    transform: translateY(-2px);
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-heading-row .section-title {
    text-align: left;
    margin-bottom: 14px;
}

.section-note {
    color: rgba(255,255,255,0.68);
    line-height: 1.7;
    max-width: 760px;
    font-size: 1.05rem;
}

.section-note.centered {
    text-align: center;
    margin: -30px auto 42px;
}

.filter-controls,
.story-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn,
.story-tab {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.76);
    border-radius: 999px;
    min-height: 38px;
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active,
.story-tab.active,
.filter-btn:hover,
.story-tab:hover {
    color: #fff;
    border-color: rgba(255,107,0,0.52);
    background: linear-gradient(135deg, rgba(255,107,0,0.30), rgba(0,212,255,0.16));
}

.source-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    width: fit-content;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.source-pill.confirmed {
    color: #b9ffe1;
    background: rgba(0,255,136,0.12);
    border: 1px solid rgba(0,255,136,0.22);
}

.source-pill.mentioned {
    color: #9fe2ff;
    background: rgba(0,180,255,0.12);
    border: 1px solid rgba(0,180,255,0.24);
}

.source-pill.rumor {
    color: #ffd980;
    background: rgba(255,204,0,0.12);
    border: 1px solid rgba(255,204,0,0.24);
}

.map-first-section {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,107,0,0.12), transparent 34%),
        radial-gradient(circle at 80% 70%, rgba(0,212,255,0.10), transparent 36%);
}

.full-map-only {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: stretch;
    text-align: left;
    padding: 24px;
}

.map-preview-frame {
    min-height: 360px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.10);
    background: #0d1117;
}

.map-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-preview-overlay {
    position: absolute;
    inset: auto 18px 18px 18px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(0,0,0,0.58);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
}

.map-preview-overlay span,
.map-preview-overlay strong {
    display: block;
}

.map-preview-overlay span {
    color: rgba(255,255,255,0.62);
    font-weight: 700;
    margin-bottom: 6px;
}

.map-preview-overlay strong {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
}

.map-launch-copy {
    padding: 18px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-launch-copy h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.map-launch-copy p {
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    margin-bottom: 22px;
}

.expanded-characters {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.intel-card,
.analysis-card,
.source-card,
.map-launch-panel {
    opacity: 0;
    transform: translateY(18px);
}

.intel-card.is-visible,
.analysis-card.is-visible,
.source-card.is-visible,
.map-launch-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease;
}

.compact-character {
    min-height: 0;
}

.compact-character .character-info {
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.detail-toggle {
    margin-top: 4px;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.detail-panel {
    display: none;
    margin-top: 12px;
    padding: 14px;
    border-left: 3px solid var(--secondary);
    background: rgba(0,212,255,0.06);
    color: rgba(255,255,255,0.74);
    line-height: 1.7;
}

.detail-panel.open {
    display: block;
}

.story-intel {
    margin-bottom: 34px;
}

.intel-metrics {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.intel-metrics span {
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.78);
}

.story-tabs {
    justify-content: center;
    margin-bottom: 28px;
}

.story-panel {
    display: none;
}

.story-panel.active {
    display: block;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.analysis-card {
    padding: 24px;
    border-radius: 14px;
    background: rgba(26,26,26,0.92);
    border: 1px solid rgba(255,255,255,0.10);
}

.analysis-card h3 {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.analysis-card p {
    color: rgba(255,255,255,0.72);
    line-height: 1.72;
}

.warning-card {
    border-color: rgba(255,204,0,0.22);
    background: rgba(45,35,12,0.55);
}

.practical-tips {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tip-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,107,0,0.14);
    color: var(--primary);
    font-size: 1.3rem;
}

.accordion-list {
    margin: 34px auto 0;
    max-width: 980px;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.accordion-trigger {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    background: transparent;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.accordion-trigger::after {
    content: '+';
    float: right;
    color: var(--secondary);
}

.accordion-trigger.active::after {
    content: '-';
}

.accordion-panel {
    display: none;
    padding: 0 18px 20px;
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
}

.accordion-panel.open {
    display: block;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.source-card {
    display: block;
    padding: 24px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.10);
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.source-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,212,255,0.36);
}

.source-card h3 {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 10px;
}

.source-card p {
    color: rgba(255,255,255,0.66);
    line-height: 1.65;
}

@media (max-width: 900px) {
    .section-heading-row,
    .full-map-only {
        grid-template-columns: 1fr;
        display: grid;
    }

    .section-heading-row .section-title {
        text-align: center;
    }

    .section-note {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .filter-controls {
        justify-content: center;
    }

    .full-map-only {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-actions,
    .filter-controls,
    .story-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button,
    .ghost-button,
    .filter-btn,
    .story-tab {
        width: 100%;
    }

    .map-preview-frame {
        min-height: 240px;
    }
}
