.leaflet-popup-close-button {
    display: none !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 12px 16px !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    color: #333 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.leaflet-popup-content div {
    margin: 2px 0 !important;
    font-weight: 500 !important;
}

.leaflet-popup-content div:first-child {
    color: #666 !important;
    font-size: 13px !important;
}

.leaflet-popup-content div:last-child {
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.custom-marker {
    background: transparent !important;
    border: none !important;
}

.marker-dot {
    width: 8px;
    height: 8px;
    background-color: #666666;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marker-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.leaflet-control-zoom a {
    background-color: #ffffff !important;
    border: none !important;
    color: #333333 !important;
    font-size: 18px !important;
    font-weight: normal !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    text-align: center !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
    display: block !important;
    position: relative !important;
}

.leaflet-control-zoom a:hover {
    background-color: #f0f0f0 !important;
}

.leaflet-control-zoom a:active {
    background-color: #e0e0e0 !important;
}

.leaflet-control-zoom-in {
    border-radius: 8px 8px 0 0 !important;
}

.leaflet-control-zoom-in::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 6px !important;
    right: 6px !important;
    height: 1px !important;
    background-color: #cccccc !important;
}

.leaflet-control-zoom-out {
    border-radius: 0 0 8px 8px !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: scroll;
}

@media print {
    img { display: none !important; }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.gallery {
    column-count: 3;
    column-gap: 20px;
    padding: 0 20px;
}

.gallery-item {
    margin-bottom: 20px;
    break-inside: avoid;
    position: relative;
    overflow: visible;
    perspective: 1000px;
}

@media (min-width: 1201px) {
    .gallery { column-gap: 25px; }
    .gallery-item { margin-bottom: 25px; }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .gallery { column-gap: 20px; }
    .gallery-item { margin-bottom: 20px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .gallery { column-gap: 18px; padding: 0 15px; }
    .gallery-item { margin-bottom: 18px; }
    .container { padding: 15px; }
    .intro-card { padding: 25px; font-size: 15px; }
    .intro-card h2 { font-size: 22px; }
}

@media (max-width: 768px) and (min-width: 601px) {
    .gallery {
        column-count: 2;
        column-gap: 15px;
        padding: 0 10px;
    }
    .gallery-item {
        margin-bottom: 15px;
    }
    .container {
        padding: 10px;
    }
    .intro-card {
        padding: 20px;
        font-size: 14px;
    }
    .intro-card h2 {
        font-size: 20px;
    }
    .intro-stats {
        flex-direction: column;
        gap: 10px;
    }
    .stat-item {
        padding: 5px;
    }
}

@media (max-width: 600px) and (min-width: 501px) {
    .gallery {
        column-count: 2;
        column-gap: 12px;
        padding: 0 8px;
    }
    .gallery-item {
        margin-bottom: 12px;
    }
    .container {
        padding: 8px;
    }
    .intro-card {
        padding: 18px;
        font-size: 14px;
    }
    .intro-card h2 {
        font-size: 20px;
    }
}

@media (max-width: 500px) {
    .gallery {
        column-count: 1;
        column-gap: 0;
        padding: 0 5px;
    }
    .gallery-item {
        margin-bottom: 12px;
    }
    .container {
        padding: 5px;
    }
    .intro-card {
        padding: 15px;
        font-size: 13px;
    }
    .intro-card h2 {
        font-size: 18px;
    }
    .intro-stats {
        flex-direction: column;
        gap: 8px;
    }
    .stat-number {
        font-size: 20px;
    }
    .stat-label {
        font-size: 12px;
    }
}

@keyframes gentle-wave {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-5px) rotate(-1deg); }
    75% { transform: translateX(5px) rotate(1deg); }
}

.intro-card {
    background: #4682b4;
    color: white;
    padding: 30px;
    border-radius: 12px;
    break-inside: avoid;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.intro-card:hover {
    animation: gentle-wave 3s ease-in-out infinite;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.intro-card h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.intro-card p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.intro-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    text-align: center;
}

.stat-item {
    padding: 10px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border-radius: 12px;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform-origin: center center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    opacity: 0;
}

.gallery-item img:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img.loaded {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-container {
    position: absolute;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.modal-content {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease-out;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-width: none;
        padding: 10px;
    }
    
    .modal-content {
        max-height: 90vh;
        width: 100%;
        border-radius: 4px;
    }
    
    .modal-content:hover {
        transform: none;
    }
    
    .close {
        right: 15px;
        top: 15px;
        font-size: 35px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 0; /* 移除内边距以最大化显示区域 */
    }
    
    .modal-container {
        width: 100%;
        padding: 0;
        border-radius: 0;
    }
    
    .modal-content {
        max-height: 100vh;
        border-radius: 0;
        object-fit: contain;
    }
    
    .close {
        right: 10px;
        top: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
        z-index: 1001;
    }
}

.modal-content:hover {
    transform: scale(1.02);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.error-message {
    background-color: #fee;
    color: #c00;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 200px;
    width: 100%;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #ddd;
    border-top: 3px solid #8ba3a3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.image-error {
    background: #f8f8f8;
    border: 2px dashed #ddd;
    border-radius: 12px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #999;
    font-size: 14px;
}

.image-error::before {
    content: '📷';
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

#mapModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-in-out;
}

.map-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    animation: mapZoomIn 0.3s ease-out;
    transition: transform 0.3s ease;
}

.map-modal-container:hover {
    transform: translate(-50%, -50%) scale(1.01);
}

@keyframes mapZoomIn {
    from { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

#map {
    width: 100%;
    height: 100%;
}

.intro-actions {
    margin-top: 20px;
    text-align: center;
}

.blog-button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.blog-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.6s ease;
}

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

.blog-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #f8f4e6;
    text-decoration: none;
}

.blog-button:active {
    transform: translateY(-1px) scale(1.02);
    transition: transform 0.1s ease;
}

.leaflet-control-attribution a {
    color: black !important;
}

.leaflet-control-attribution a:hover {
    color: #333 !important;
}

.close-map {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border: none;
    line-height: 0.8;
}

.close-map:hover,
.close-map:focus {
    background-color: rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
}

.map-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #2e5a87;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.map-button:hover {
    background-color: #1e3a5f;
    transform: scale(1.1);
}

.map-button::before {
    content: "🗺️";
    display: block;
}

.map-label {
    background-color: rgba(139, 163, 163, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Microsoft YaHei', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
