/* 云朵主题足迹地图样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial Rounded MT Bold', 'Segoe UI', 'Microsoft YaHei', sans-serif;
}



.blue-border-icon_{
    border: 1px solid #e0e0e0; /* 浅灰色边框 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 8px rgba(0, 120, 255, 0.15), /* 蓝色阴影 */
                0 1px 3px rgba(0, 0, 0, 0.1); /* 深色阴影增强立体感 */
    background-color: white; /* 白色背景 */
    padding: 4px; /* 内边距 */
    box-sizing: content-box; /* 确保padding不影响图标尺寸 */
}

body {
    background: linear-gradient(135deg, #87CEEB 0%, #B0E2FF 50%, #E6F3FF 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 云朵背景装饰 */
.cloud-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.cloud {
    position: absolute;
    background-image: url('./assets/bg_cloud.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float 20s infinite linear;
    opacity: 1;
}

.cloud-1 {
    width: 180px;
    height: 120px;
    top: 10%;
    left: 2%;
    animation-delay: 0s;
}

.cloud-2 {
    width: 200px;
    height: 130px;
    top: 15%;
    right: 1%;
    animation-delay: -8s;
}

.cloud-3 {
    width: 160px;
    height: 110px;
    bottom: 8%;
    left: 3%;
    animation-delay: -15s;
}

.cloud-4 {
    width: 140px;
    height: 90px;
    top: 70%;
    right: 2%;
    animation-delay: -12s;
}

.cloud-5 {
    width: 170px;
    height: 115px;
    bottom: 3%;
    right: 8%;
    animation-delay: -20s;
}

.cloud-6 {
    width: 120px;
    height: 80px;
    top: 2%;
    left: 10%;
    animation-delay: -25s;
}

.cloud-7 {
    width: 150px;
    height: 100px;
    top: 30%;
    left: 1%;
    animation-delay: -30s;
}

.cloud-8 {
    width: 130px;
    height: 85px;
    bottom: 2%;
    right: 1%;
    animation-delay: -35s;
}

.cloud-9 {
    width: 110px;
    height: 75px;
    top: 80%;
    left: 1%;
    animation-delay: -40s;
}

.cloud-10 {
    width: 160px;
    height: 105px;
    top: 40%;
    right: 5%;
    animation-delay: -45s;
}

@keyframes float {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(80px) translateY(-30px);
    }
    50% {
        transform: translateX(0) translateY(-60px);
    }
    75% {
        transform: translateX(-80px) translateY(-30px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 255, 0.9) 100%);
    border-radius: 25px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid rgba(135, 206, 235, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: sparkle 3s infinite linear;
}

@keyframes sparkle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

h1 {
    color: #1E90FF;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.5);
    background: linear-gradient(45deg, #1E90FF, #00BFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #4682B4;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.description {
    color: #708090;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 地图容器 */
.map-container {
    position: relative;
    height: 600px; /* 扩大地图容器高度 */
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 6px solid white;
    background: white;
    margin-bottom: 30px;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 20px;
}



@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 弹窗样式 */
.cloud-popup .leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.98) 100%);
    border-radius: 25px;
    box-shadow:
        0 15px 35px rgba(30, 144, 255, 0.15),
        0 10px 25px rgba(135, 206, 235, 0.12),
        0 5px 15px rgba(173, 216, 230, 0.08),
        inset 0 3px 8px rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(173, 216, 230, 0.95);
    backdrop-filter: blur(15px);
    animation: popupFloatIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    transform-origin: bottom center;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(135, 206, 235, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 75%, rgba(173, 216, 230, 0.18) 0%, transparent 25%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B0E2FF' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    transition: all 0.3s ease;
}

.cloud-popup .leaflet-popup-content-wrapper:hover {
    box-shadow:
        0 18px 40px rgba(30, 144, 255, 0.18),
        0 12px 30px rgba(135, 206, 235, 0.15),
        0 6px 20px rgba(173, 216, 230, 0.1),
        inset 0 3px 8px rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
}

/* 修复CSS语法错误，确保选择器结构正确 */
.cloud-popup .leaflet-popup-tip-container {
    display: none;
}

.cloud-popup .leaflet-popup-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #87CEEB, #1E90FF, #87CEEB);
    border-radius: 25px 25px 0 0;
}

.cloud-popup .leaflet-popup-content-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 6px;
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.2), transparent);
    border-radius: 3px;
}

.cloud-popup .leaflet-popup-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E90FF, #87CEEB, #B0E2FF);
    border-radius: 25px 25px 0 0;
}

.cloud-popup .leaflet-popup-content {
    margin: 25px;
    font-size: 14px;
    color: #2F4F4F;
    min-width: 420px;
    position: relative;
    z-index: 1;
}

.cloud-popup .leaflet-popup-tip {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.98) 100%);
    border: 2px solid rgba(135, 206, 235, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.popup-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(135, 206, 235, 0.3);
}

.popup-close-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(135, 206, 235, 0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #1E90FF;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.2);
}

.popup-close-btn:hover {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
    transform: scale(1.1);
}

.popup-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.popup-image-section {
    flex: 0 0 160px;
    position: relative;
}

.popup-image-section::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #1E90FF, #87CEEB, #B0E2FF);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

.popup-image {
    width: 160px;
    height: 160px;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 25px rgba(30, 144, 255, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    object-fit: cover;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.popup-image:hover {
    transform: scale(1.02);
    box-shadow:
        0 12px 35px rgba(30, 144, 255, 0.3),
        0 6px 18px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.popup-text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popup-header h3 {
    color: #1E90FF;
    margin-bottom: 0;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.popup-message {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.08), rgba(176, 226, 255, 0.12));
    padding: 16px;
    border-radius: 16px;
    margin: 0;
    border-left: 5px solid #1E90FF;
    font-style: italic;
    line-height: 1.6;
    font-size: 1rem;
    color: #2F4F4F;
    box-shadow:
        0 4px 12px rgba(135, 206, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    transition: all 0.3s ease;
}

.popup-message:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(135, 206, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.popup-message::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 2rem;
    color: rgba(30, 144, 255, 0.2);
    font-family: serif;
    line-height: 1;
}

.popup-time {
    color: #708090;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 12px;
    border-top: 2px solid rgba(135, 206, 235, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-time::before {
    content: '🕒';
    font-size: 1rem;
}

/* 动画效果 */
@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0% {
        opacity: 0.2;
        transform: scale(1);
    }
    100% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .map-container {
        height: 500px; /* 扩大移动端地图容器高度 */
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .map-container {
        height: 450px; /* 扩大小屏幕地图容器高度 */
    }
    
    .cloud-popup .leaflet-popup-content {
        min-width: 250px;
    }
}

/* 图片放大模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 10001;
    animation: modalScaleIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.1);
}

.modal-image {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    display: block;
    object-fit: contain;
}

.modal-caption {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
    color: #495057;
    font-weight: 500;
    font-size: 1rem;
}

/* 图片放大提示 */
.image-zoom-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.popup-image-section:hover .image-zoom-hint {
    opacity: 1;
}

/* 模态框动画 */
@keyframes modalFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes modalScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 优化弹出框布局 */
.popup-image-section {
    flex: 0 0 160px;
    position: relative;
    cursor: pointer;
}

.popup-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-image:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 35px rgba(30, 144, 255, 0.4),
        0 6px 18px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 移除不必要的装饰效果 */
.popup-image-section::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #1E90FF, #87CEEB, #B0E2FF);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.2;
    animation: none; /* 移除动画 */
}

/* 简化消息框样式 */
.popup-message {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.08), rgba(176, 226, 255, 0.12));
    padding: 16px;
    border-radius: 16px;
    margin: 0;
    border-left: 5px solid #1E90FF;
    font-style: italic;
    line-height: 1.6;
    font-size: 1rem;
    color: #2F4F4F;
    box-shadow:
        0 4px 12px rgba(135, 206, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    transition: all 0.3s ease;
}

.popup-message:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(135, 206, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-caption {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .image-zoom-hint {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}