/* 相册样式 */
.gallery {
    margin-bottom: 30px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

/* 标题容器 */
.gallery h2 {
    font-size: 18px;
    margin-bottom: 8px;
    position: relative;
    text-align: center;
    padding-bottom: 8px;
    display: block;
}

/* 下划线装饰 */
.gallery h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* 统计信息栏 */
.moment-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--light-text);
}

.total-count, .image-count, .video-count {
    display: flex;
    align-items: center;
}

.total-count:before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    margin-right: 5px;
    font-weight: 900;
}

.image-count:before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    margin-right: 5px;
    font-weight: 900;
}

.video-count:before {
    content: '\f03d';
    font-family: 'Font Awesome 6 Free';
    margin-right: 5px;
    font-weight: 900;
}

/* 动态容器 - 垂直滚动 */
.moments-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0;
    background-color: var(--bg-color);
}

/* 动态卡片样式 - 全宽显示 */
.moment-card {
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 1px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 媒体容器 - 严格3:4比例 */
.media-container {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 严格3:4比例 */
    overflow: hidden;
    background-color: #000;
}

/* 轮播容器 */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
    /* 防止意外的滚动行为 */
    overflow: hidden;
    /* 允许所有触摸事件，不再阻止滚动 */
    touch-action: auto;
    /* 确保在移动设备上正常工作 */
    -webkit-overflow-scrolling: touch;
    /* 防止文本选择 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* 确保轮播正常工作 */
    transform: translateX(0);
    /* 添加点击提示 */
    cursor: pointer;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    /* 防止内容溢出 */
    overflow: hidden;
    /* 确保图片正确显示 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片和视频样式 */
.lazy-image, .lazy-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
    /* 允许图片交互 */
    pointer-events: auto;
    /* 允许所有触摸事件 */
    touch-action: auto;
    /* 确保图片正确显示 */
    display: block;
    /* 添加点击提示 */
    cursor: pointer;
}

/* 视频容器 */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    /* 允许所有触摸事件 */
    touch-action: auto;
}

/* 视频播放按钮 */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    /* 允许所有触摸事件 */
    touch-action: auto;
}

.video-play-button:before {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #fff;
    margin-left: 5px;
}

/* 轮播指示器 - 底部中间圆点 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    /* 允许所有触摸事件 */
    touch-action: auto;
    /* 确保指示器不会阻止触摸事件 */
    pointer-events: auto;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    /* 允许所有触摸事件 */
    touch-action: auto;
    /* 确保指示器可以接收点击事件 */
    pointer-events: auto;
}

.carousel-dot.active {
    background-color: #fff;
    width: 10px;
    height: 10px;
}

/* 轮播计数器 - 右下角数字 */
.carousel-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 10;
    /* 允许所有触摸事件 */
    touch-action: auto;
    /* 防止文本选择 */
    user-select: none;
    -webkit-user-select: none;
    /* 确保计数器不会阻止触摸事件 */
    pointer-events: auto;
}

/* 用户信息 - 左上角 */
.user-info {
    display: none; /* Hide the entire user info section */
}

/* 类别标签 */
.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 10;
}

/* 翻译按钮 */
.translate-button {
    position: relative;
    background-color: #000;
    color: #fff;
    width: auto;
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
    border: none;
    font-size: 13px;
    padding: 8px 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.translate-button:hover {
    background-color: #222;
}

.translate-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.translate-loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    border: 2px solid #666;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: translate-spin 1s linear infinite;
}

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

/* 内容区域（白色背景） */
.content-area {
    padding: 15px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* 动态内容文字 */
.content-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* 发布时间和位置 */
.time-info {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.time-icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.time-text {
    display: inline-block;
}

.location-info {
    display: flex;
    align-items: center;
}

.location-icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.location-text {
    display: inline-block;
}

/* 社交互动栏 */
.social-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* 左侧按钮组 */
.left-buttons {
    display: flex;
    gap: 20px;
}

/* 社交按钮 */
.social-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

/* 社交图标 */
.social-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 社交计数 */
.social-count {
    font-size: 12px;
    margin-left: 4px;
    color: #666;
}

.like-button.active .social-count {
    color: #ff4d4d;
}

/* 各类社交图标 */
.like-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
}

.like-button.active .like-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff4d4d' stroke='%23ff4d4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
}

.comment-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
}

.share-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'%3E%3C/path%3E%3Cpolyline points='16 6 12 2 8 6'%3E%3C/polyline%3E%3Cline x1='12' y1='2' x2='12' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

.bookmark-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
}

/* 微信跳转提示 */
.weixin-tip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.weixin-tip-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    /*max-width: 80%;*/
}

/* 骨架屏样式 */
.skeleton-card {
    width: 100%;
    margin-bottom: 1px;
    overflow: hidden;
    background-color: #fff;
}

.skeleton-media {
    width: 100%;
    padding-bottom: 133.33%; /* 3:4比例 */
    background-color: #eee;
    position: relative;
}

.skeleton-content {
    padding: 15px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 15px;
    background-color: #eee;
    border-radius: 4px;
}

.skeleton-social {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.skeleton-button {
    width: 24px;
    height: 24px;
    background-color: #eee;
    border-radius: 50%;
}

.skeleton-animation {
    animation: skeleton-pulse 1.5s infinite;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.6;
    }
}

/* 错误消息 */
.error-message {
    text-align: center;
    padding: 30px;
    color: #666;
}

.no-moments {
    text-align: center;
    padding: 30px;
    color: #666;
}

/* 加载指示器 */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    width: 100%;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #666;
    border-radius: 50%;
    margin-bottom: 10px;
    animation: loading-spin 1s linear infinite;
}

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

/* 没有更多内容提示 */
.no-more-content {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
    width: 100%;
    border-top: 1px solid #f0f0f0;
}

/* 适配暗黑模式 */
@media (prefers-color-scheme: dark) {
    .content-area {
        background-color: #1e1e1e;
    }
    
    .content-text {
        color: #e0e0e0;
    }
    
    .time-info {
        color: #999;
    }
    
    .location-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
    }
    
    .social-bar {
        border-top-color: #333;
    }
    
    .social-button {
        color: #999;
    }
    
    .like-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
    }
    
    .comment-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
    }
    
    .share-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'%3E%3C/path%3E%3Cpolyline points='16 6 12 2 8 6'%3E%3C/polyline%3E%3Cline x1='12' y1='2' x2='12' y2='15'%3E%3C/line%3E%3C/svg%3E");
    }
    
    .bookmark-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
    }
    
    .skeleton-media, .skeleton-text, .skeleton-button {
        background-color: #333;
    }
    
    .error-message, .no-moments {
        color: #999;
    }
    
    .weixin-tip-content {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
    
    .translate-button {
        background-color: #000;
        color: #fff;
    }
    
    .translate-button:hover {
        background-color: #222;
    }
    
    .translate-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z'/%3E%3C/svg%3E");
    }
    
    .translate-loading {
        border: 2px solid #666;
        border-top: 2px solid #ffffff;
    }
    
    .loading-spinner {
        border: 3px solid #333;
        border-top: 3px solid #ccc;
    }
    
    .loading-indicator {
        color: #ccc;
    }
    
    .no-more-content {
        color: #777;
        border-top-color: #333;
    }
}

/* 分享弹窗 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.share-container {
    width: 90%;
    max-width: 360px;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.share-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.share-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    color: #999;
}

.share-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.share-qrcode img {
    max-width: 100%;
    max-height: 100%;
}

.share-url-container {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.share-url {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    color: #666;
    background-color: #f9f9f9;
    border: none;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 14px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.copy-btn:hover {
    background-color: #e0e0e0;
}

/* 适配暗黑模式 */
@media (prefers-color-scheme: dark) {
    .share-container {
        background-color: #1e1e1e;
    }
    
    .share-title {
        color: #e0e0e0;
    }
    
    .share-qrcode {
        background-color: #333;
    }
    
    .share-url {
        background-color: #2a2a2a;
        color: #ccc;
    }
    
    .copy-btn {
        background-color: #333;
        color: #ccc;
    }
    
    .copy-btn:hover {
        background-color: #444;
    }
} 

/* 图片预览/灯箱样式 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    touch-action: none; /* 防止移动设备上的默认触摸行为 */
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

/* 图片切换动画 */
@keyframes slide-in-right {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-left {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-right {
    animation: slide-in-right 0.3s forwards;
}

.slide-in-left {
    animation: slide-in-left 0.3s forwards;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    user-select: none;
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 3001;
}

.lightbox-close:before,
.lightbox-close:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #fff;
}

.lightbox-close:before {
    transform: rotate(45deg);
}

.lightbox-close:after {
    transform: rotate(-45deg);
}

.lightbox-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox:hover .lightbox-nav {
    opacity: 1;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

.lightbox-nav:before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
}

.lightbox-prev:before {
    transform: rotate(-45deg);
}

.lightbox-next:before {
    transform: rotate(135deg);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

/* 添加图片可点击的视觉提示 */
.carousel-item img {
    cursor: zoom-in;
} 

/* 触摸事件优化 - 确保指示器不会阻止页面滚动 */
.carousel-indicators,
.carousel-dot,
.carousel-counter {
    /* 确保触摸事件正常工作 */
    touch-action: auto;
    /* 允许事件冒泡 */
    pointer-events: auto;
    /* 防止文本选择 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 轮播容器触摸优化 */
.carousel-container {
    /* 确保触摸事件正常工作 */
    touch-action: auto;
    /* 允许事件冒泡 */
    pointer-events: auto;
}

/* 媒体容器触摸优化 */
.media-container {
    /* 确保触摸事件正常工作 */
    touch-action: auto;
    /* 允许事件冒泡 */
    pointer-events: auto;
}

/* 动态卡片触摸优化 */
.moment-card {
    /* 确保触摸事件正常工作 */
    touch-action: auto;
    /* 允许事件冒泡 */
    pointer-events: auto;
}

/* 移动设备触摸优化 */
@media (max-width: 768px) {
    .carousel-indicators,
    .carousel-dot,
    .carousel-counter {
        /* 移动设备上确保触摸事件正常工作 */
        touch-action: auto;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .carousel-container {
        /* 移动设备上确保触摸事件正常工作 */
        touch-action: auto;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
} 