/* wwwroot/assets/css/modules/remote-view.css */
/* 产地实时快照页样式 */

.snapshot-page {
    padding: 12px;
    max-width: 960px;
    margin: 0 auto;
}

/* 页面头部 */
.snapshot-header {
    text-align: center;
    padding: 20px 0 16px;
}

.snapshot-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}

.snapshot-header p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* 列表容器 */
.snapshot-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 农场卡片 */
.snapshot-farm-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 农场信息头 */
.snapshot-farm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.snapshot-farm-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #198754;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.snapshot-farm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.snapshot-farm-info {
    flex: 1;
    min-width: 0;
}

.snapshot-farm-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.snapshot-farm-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #999;
}

.snapshot-farm-type {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 8px;
    background: #e8f5e9;
    color: #198754;
    font-size: 11px;
}

.snapshot-farm-status.online {
    color: #198754;
}

.snapshot-farm-status.offline {
    color: #999;
}

/* 快照网格 */
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 14px 14px;
}

.snapshot-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

.snapshot-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.snapshot-grid-item .time {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 1px 4px;
    border-radius: 3px;
}

/* 底部 */
.snapshot-footer {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #198754;
    border-top: 1px solid #f5f5f5;
}

.snapshot-footer .updated {
    color: #999;
    font-size: 12px;
}

.snapshot-footer .enter {
    font-weight: 500;
}

/* 空状态 */
.snapshot-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.snapshot-empty i {
    font-size: 48px;
    color: #ddd;
}

/* 分页 */
.snapshot-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 24px 0;
}

.snapshot-pagination a {
    padding: 6px 12px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.snapshot-pagination a.active {
    background: #198754;
    color: #fff;
}

/* 桌面端响应式 */
@media (min-width: 768px) {
    .snapshot-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .snapshot-farm-avatar {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .snapshot-header h1 {
        font-size: 26px;
    }
}