/**
 * 动态详情页样式
 * 网约向导静态页面生成系统
 */

/* ========== 动态页面容器 ========== */
.moment-page {
    background-color: #f5f5f5;
}

/* ========== 动态内容 ========== */
.moment-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.moment-content p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin: 0;
    word-wrap: break-word;
}

/* ========== 图片展示 ========== */
.moment-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.moment-images .image-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
}

.moment-images .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.moment-images .image-item:hover img {
    transform: scale(1.05);
}

/* 单图模式 */
.moment-images .image-item.single {
    grid-column: span 3;
    aspect-ratio: auto;
    max-height: 500px;
}

.moment-images .image-item.single img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #f5f5f5;
}

/* 两图模式 */
.moment-images:has(.image-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* 四图模式 */
.moment-images:has(.image-item:nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* ========== 视频展示 ========== */
.moment-video {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.moment-video video {
    width: 100%;
    max-height: 500px;
    display: block;
}

/* ========== 位置信息 ========== */
.moment-location {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.moment-location .location-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* ========== 统计图标 ========== */
.moment-page .stat-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* ========== 查看更多按钮 ========== */
.detail-comments .view-more {
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .moment-content {
        padding: 16px;
        border-radius: 12px;
    }
    
    .moment-content p {
        font-size: 15px;
    }
    
    .moment-images {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .moment-images .image-item {
        border-radius: 8px;
    }
    
    .moment-images .image-item.single {
        max-height: 350px;
    }
    
    .moment-images .image-item.single img {
        max-height: 350px;
    }
    
    .moment-video {
        border-radius: 12px;
    }
    
    .moment-video video {
        max-height: 350px;
    }
    
    .moment-location {
        padding: 10px 14px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .moment-images {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .moment-images:has(.image-item:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }
}
