/* 霓虹玻璃风格卡片样式 */

/* 动态卡片容器 - 三列布局 */
.moments-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    column-count: 3;
    column-gap: 20px;
}

/* 单个动态卡片 */
.moment-card {
    break-inside: avoid;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

/* 卡片背景颜色点缀 */
.moment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 182, 193, 0.08) 0%, 
        rgba(188, 19, 254, 0.05) 50%, 
        rgba(15, 240, 252, 0.06) 100%);
    pointer-events: none;
    z-index: 0;
}

.moment-card > * {
    position: relative;
    z-index: 1;
}

.moment-card:hover {
    box-shadow: 
        0 8px 30px rgba(255, 182, 193, 0.25),
        0 0 0 1px rgba(255, 182, 193, 0.3);
    transform: translateY(-3px);
    border-color: rgba(255, 182, 193, 0.35);
}

/* 头部信息区 */
.moment-header {
    padding: 18px 18px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.moment-time {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.moment-time .full-time {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #333, #555);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Noto Serif SC', serif;
}

.moment-time .short-time {
    font-size: 13px;
    color: #888;
    font-family: 'Noto Sans SC', sans-serif;
}

.moment-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.moment-weather {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #444;
}

.moment-weather .weather-icon {
    font-size: 18px;
}

.moment-location {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.moment-location::before {
    content: '📍';
    font-size: 11px;
}

/* 图片区 */
.moment-images {
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.3) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.moment-images-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

/* 根据图片数量调整布局 */
.moment-images-grid.count-1 {
    grid-template-columns: 1fr;
}

.moment-images-grid.count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.moment-images-grid.count-3 {
    grid-template-columns: repeat(3, 1fr);
}

.moment-images-grid.count-4 {
    grid-template-columns: repeat(2, 1fr);
}

.moment-images-grid.count-5 {
    grid-template-columns: repeat(3, 1fr);
}

.moment-images-grid.count-6 {
    grid-template-columns: repeat(3, 1fr);
}

.moment-images-grid.count-7,
.moment-images-grid.count-8,
.moment-images-grid.count-9 {
    grid-template-columns: repeat(3, 1fr);
}

.moment-images-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(15, 240, 252, 0.1);
}

.moment-images-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(15, 240, 252, 0.2);
}

/* 单张图片特殊处理 - 适应卡片宽度 */
.moment-images-grid.count-1 img {
    aspect-ratio: 1;
    width: 100%;
    margin: 0 auto;
    display: block;
    border-radius: 14px;
    object-fit: cover;
}

/* 文案描述区 */
.moment-content {
    padding: 14px 18px;
}

.moment-text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    font-family: 'Noto Serif SC', serif;
    margin: 0;
}

/* 底部交互区 */
.moment-footer {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.moment-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.moment-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.moment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.moment-gender {
    font-size: 14px;
}

.moment-gender.male {
    color: #5DADE2;
}

.moment-gender.female {
    color: #F8BBD9;
}

/* 极简平板风格按钮 */
.moment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 16px;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 12px;
    color: #888;
}

.moment-like-btn:hover {
    background: rgba(248, 187, 217, 0.15);
    border-color: rgba(248, 187, 217, 0.3);
    color: #E91E63;
}

.moment-like-btn.liked {
    color: #E91E63;
    background: rgba(248, 187, 217, 0.2);
    border-color: rgba(233, 30, 99, 0.25);
}

.moment-like-btn .like-icon {
    font-size: 14px;
}

.moment-like-btn .like-count {
    font-size: 11px;
    font-weight: 500;
}

.moment-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: #888;
}

.moment-comment-btn:hover {
    background: rgba(200, 200, 200, 0.15);
    border-color: rgba(0, 0, 0, 0.12);
    color: #666;
}

.moment-comment-btn .comment-icon {
    font-size: 13px;
}

/* 响应式布局 - 手机端单列 */
@media (max-width: 768px) {
    .moments-container {
        column-count: 1;
        padding: 12px;
    }

    .moment-card {
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .moment-header {
        padding: 14px 14px 12px;
    }

    .moment-time .full-time {
        font-size: 15px;
    }

    .moment-time .short-time {
        font-size: 12px;
    }

    .moment-weather {
        font-size: 13px;
    }

    .moment-location {
        font-size: 11px;
    }

    .moment-images {
        padding: 12px 14px;
    }

    .moment-images-grid {
        gap: 4px;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .moment-images-grid img {
        border-radius: 10px;
    }

    .moment-content {
        padding: 12px 14px;
    }

    .moment-text {
        font-size: 14px;
    }

    .moment-footer {
        padding: 10px 12px;
        gap: 6px;
    }

    .moment-avatar {
        width: 24px;
        height: 24px;
    }

    .moment-like-btn,
    .moment-comment-btn {
        font-size: 11px;
        padding: 4px 8px;
    }

    .moment-like-btn .like-icon,
    .moment-comment-btn .comment-icon {
        font-size: 12px;
    }
}

/* 平板端 */
@media (min-width: 769px) and (max-width: 1024px) {
    .moments-container {
        column-count: 2;
        padding: 16px;
    }
}

/* 大屏幕 */
@media (min-width: 1025px) {
    .moments-container {
        column-count: 3;
    }
}

/* 评论区样式 */
.moment-comments {
    padding: 0 16px 12px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.comment-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-name {
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.comment-name.male {
    color: #5DADE2;
}

.comment-name.female {
    color: #F8BBD9;
}

.comment-text {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.comment-action {
    font-size: 11px;
    color: #999;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: color 0.2s;
}

.comment-action:hover {
    color: #666;
}

.comment-action.like.liked {
    color: #E91E63;
}
