#gallery_container a {
    text-decoration: none;
    border-bottom: 0;
}

#gallery_container {
    background-color: black;
}

.gallery_icon {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 4rem;
    height: 4rem;
    cursor: pointer;
    text-indent: 4rem;
    overflow: hidden;
    white-space: nowrap;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.gallery_icon:before {
    -moz-transition: background-color 0.2s ease-in-out;
    -webkit-transition: background-color 0.2s ease-in-out;
    -ms-transition: background-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
    content: '';
    display: block;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 100%;
    background-color: var(--background-color);
}

.gallery_icon:hover:before {
    background-color: rgba(255, 255, 255, 0.15);
}

.gallery_icon:active:before {
    background-color: rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 736px) {

    .gallery_icon:before {
        top: 0.875rem;
        left: 0.875rem;
        width: 2.25rem;
        height: 2.25rem;
        background-size: 14px 14px;
    }

}

/* Image Modal (Lightbox) */
.image-modal-lightbox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(17, 24, 39, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease-in-out, visibility 300ms ease-in-out;
}

.image-modal-lightbox.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.modal-content-wrapper {
    position: relative;
    max-width: 64rem;
    max-height: 100%;
    margin: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2.25rem;
    font-weight: 300;
    opacity: 0.7;
    transition: opacity 150ms ease-in-out;
    z-index: 10;
    background: none;
    border: none !important;
    cursor: pointer;
}

.modal-close-btn:hover {
    opacity: 1;
}

.modal-image-display {
    display: block;
    width: auto;
    max-height: 90vh;
    max-width: 100%;
    border-radius: 0.5rem;
    object-fit: contain;
    cursor: zoom-out;
}

#image-modal:not(.is-visible) {
    display: none;
}

.gallery_icon_right {
    right: 3rem;
}

.no-photos {
    text-align: left;
    color: #FFF;
    font-size: 16px;
}

.image-display.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-display.loaded {
    opacity: 1;
}

.loading-more {
    color: rgb(156, 163, 175);
    font-size: 0.95rem;
    width: 100%;
}

#photo-list {
    position: fixed;
    width: 40vw;
    min-width: 20rem;
    right: 1rem;
    overflow-y: auto;
    background-color: rgba(27, 31, 34, 0.85);
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    border-radius: 4px;
    z-index: 100;
    margin-top: 5rem;
    height: 85%;

    visibility: hidden;
    opacity: 0;

    -webkit-transition: all 0.5s linear;
    -moz-transition: all 0.5s linear;
    -ms-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
    transition: all 0.5s linear;

    overflow: auto;
    display: inline;
}

#photo-list::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}

#photo-list::-webkit-scrollbar-track {
    background-color: #1b1f22;
}

#photo-list::-webkit-scrollbar-thumb {
    background: #4e4e4e;
    border-radius: 2px
}

.photo-list-title,
.indicator-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* === 瀑布流布局相关样式 === */
#waterfall-grid {
    position: relative;
    width: 100%;
    margin: 0 auto;
    transition: height 0.3s ease;
}

/* 瀑布流卡片容器 */
.waterfall-grid-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    width: 100%;
    min-height: 200px; /* 确保容器有最小高度 */
}

/* 图片卡片样式 - 瀑布流优化 */
.image-card {
    background-color: rgb(31, 41, 55);
    padding: 0.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 0; /* 瀑布流中由JS控制间距 */
    width: 100%; /* 宽度由JS控制 */
    will-change: transform, opacity;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.image-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.image-card-content {
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    min-height: 100px; /* 防止图片加载时高度塌陷 */
}

.image-display {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: zoom-in;
    border-radius: 0.375rem;
    max-width: 100%;
    vertical-align: middle;
}

.image-display:hover {
    transform: scale(1.05);
}

.card-meta-container {
    margin-top: 0.75rem;
    padding: 0 0.25rem;
    color: rgb(209, 213, 219);
    font-size: 0.875rem;
    line-height: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-meta-container span:first-of-type {
    font-weight: 600;
    color: rgb(229, 231, 235);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta-container span:last-of-type {
    font-size: 0.8rem;
    color: rgb(156, 163, 175);
    font-style: italic;
}

/* 响应式列数设置 */
@media (max-width: 640px) {
    .waterfall-grid-container {
        padding: 0 0.5rem;
    }
    
    .image-card {
        padding: 0.5rem;
    }
}

/* 旋转地球进度条样式 */
#earth-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0a192f 0%, #020c1b 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.earth-container {
    position: relative;
    width: 240px;
    height: 240px;
    margin-bottom: 20px;
}

/* 基础地球球体 */
.earth-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
    radial-gradient(circle at 30% 30%, 
        rgba(0, 100, 255, 0.9) 0%,
        rgba(0, 80, 200, 0.8) 20%,
        rgba(0, 60, 150, 0.7) 100%);
    box-shadow: 
    inset 0 0 100px rgba(255, 255, 255, 0.1),
    inset 0 0 60px rgba(0, 150, 255, 0.3),
    0 0 80px rgba(0, 100, 255, 0.5);
}

/* 地球大陆纹理 - 改进版 */
.earth-landmask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: 
    /* 亚洲 */
    radial-gradient(circle at 70% 40%, 
        rgba(34, 139, 34, 0.8) 0px,
        rgba(34, 139, 34, 0.6) 40px,
        transparent 80px),
    /* 非洲 */
    radial-gradient(circle at 45% 50%, 
        rgba(85, 107, 47, 0.8) 0px,
        rgba(85, 107, 47, 0.6) 35px,
        transparent 70px),
    /* 欧洲 */
    radial-gradient(circle at 55% 30%, 
        rgba(107, 142, 35, 0.7) 0px,
        rgba(107, 142, 35, 0.5) 20px,
        transparent 40px),
    /* 北美洲 */
    radial-gradient(circle at 20% 40%, 
        rgba(60, 179, 113, 0.8) 0px,
        rgba(60, 179, 113, 0.6) 30px,
        transparent 60px),
    /* 南美洲 */
    radial-gradient(circle at 30% 60%, 
        rgba(46, 139, 87, 0.8) 0px,
        rgba(46, 139, 87, 0.6) 25px,
        transparent 50px),
    /* 澳大利亚 */
    radial-gradient(circle at 80% 70%, 
        rgba(154, 205, 50, 0.7) 0px,
        rgba(154, 205, 50, 0.5) 20px,
        transparent 40px);
    opacity: 0.9;
    animation: rotateEarth 20s linear infinite;
    mix-blend-mode: overlay;
}

/* 地球云层 */
.earth-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: 
    radial-gradient(circle at 40% 40%, 
        rgba(255, 255, 255, 0.4) 0px,
        rgba(255, 255, 255, 0.2) 30px,
        transparent 60px),
    radial-gradient(circle at 60% 60%, 
        rgba(255, 255, 255, 0.3) 0px,
        rgba(255, 255, 255, 0.1) 25px,
        transparent 50px);
    animation: rotateEarth 15s linear infinite reverse;
    opacity: 0.6;
    mix-blend-mode: screen;
}

/* 地球高光 */
.earth-highlight {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.2) 30%, 
    transparent 70%);
    filter: blur(8px);
    animation: pulseHighlight 6s ease-in-out infinite alternate;
}

/* 地球大气层光晕 */
.earth-atmosphere {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border-radius: 50%;
    border: 2px solid rgba(0, 150, 255, 0.3);
    box-shadow: 
    0 0 100px rgba(0, 150, 255, 0.5),
    inset 0 0 100px rgba(0, 150, 255, 0.3);
    animation: pulseAtmosphere 4s ease-in-out infinite;
}

/* 地球轨道环 */
.earth-orbit {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border-radius: 50%;
    border: 1px solid rgba(0, 200, 255, 0.1);
}

.earth-orbit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, 
    rgba(255, 255, 200, 0.8) 0%, 
    rgba(255, 255, 200, 0.2) 50%, 
    transparent 100%);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: orbitRotation 3s linear infinite;
}

/* 进度信息 */
.progress-info {
    margin-top: 30px;
    text-align: center;
}

.progress-text {
    color: #a0d2ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1em;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
}

.progress-percentage {
    font-size: 2.5em;
    font-weight: 300;
    color: #00e0ff;
    text-shadow: 
    0 0 20px rgba(0, 224, 255, 0.8),
    0 0 40px rgba(0, 224, 255, 0.4);
    font-family: 'Arial', sans-serif;
}

/* 进度条 */
.progress-bar-container {
    width: 300px;
    height: 6px;
    background: rgba(0, 60, 120, 0.3);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, 
    rgba(0, 200, 255, 0.2) 0%,
    rgba(0, 224, 255, 0.8) 50%,
    rgba(0, 150, 255, 1) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
    animation: progressShine 1.5s infinite;
}

/* 加载点 */
.loading-dots {
    display: inline-block;
    margin-left: 5px;
}

.loading-dots span {
    animation: dotPulse 1.5s infinite;
    opacity: 0;
    display: inline-block;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* 动画定义 */
@keyframes rotateEarth {
    0% {
    transform: rotate(0deg);
    }
    100% {
    transform: rotate(360deg);
    }
}

@keyframes pulseHighlight {
    0%, 100% {
    transform: translate(-10%, -10%) scale(1);
    opacity: 0.8;
    }
    50% {
    transform: translate(10%, 10%) scale(1.2);
    opacity: 0.4;
    }
}

@keyframes pulseAtmosphere {
    0%, 100% {
    box-shadow: 
        0 0 100px rgba(0, 150, 255, 0.5),
        inset 0 0 100px rgba(0, 150, 255, 0.3);
    transform: scale(1);
    }
    50% {
    box-shadow: 
        0 0 150px rgba(0, 200, 255, 0.7),
        inset 0 0 150px rgba(0, 200, 255, 0.5);
    transform: scale(1.02);
    }
}

@keyframes orbitRotation {
    0% {
    transform: translateY(-50%) rotate(0deg) translateX(calc(150px + 20px)) rotate(0deg);
    }
    100% {
    transform: translateY(-50%) rotate(360deg) translateX(calc(150px + 20px)) rotate(-360deg);
    }
}

@keyframes progressShine {
    0% {
    transform: translateX(-100%);
    }
    100% {
    transform: translateX(100%);
    }
}

@keyframes dotPulse {
    0%, 100% {
    opacity: 0.2;
    transform: translateY(0px);
    }
    50% {
    opacity: 1;
    transform: translateY(-2px);
    }
}

/* 背景星星 */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}