/* 我的图库 - 独立页面样式 */
/* YMG_ 前缀，避免与 GGTK_ 等已有样式冲突 */

/* ========== 列表卡片 ========== */
.YMG_gallery_card {
    background: #fff;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s;
}
.YMG_gallery_card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* ========== 卡片头部 ========== */
.YMG_gallery_item_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.YMG_gallery_item_header_left {
    flex: 1;
    min-width: 0;
}
.YMG_gallery_item_title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.YMG_gallery_item_tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.YMG_gallery_item_header_right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding-top: 4px;
    font-size: 13px;
    color: #999;
}

/* ========== 标签 ========== */
.YMG_tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.YMG_tag_orange {
    background: #fff3e0;
    color: #e65100;
}
.YMG_tag_pink {
    background: #fce4ec;
    color: #c2185b;
}
.YMG_tag_cyan {
    background: #e0f7fa;
    color: #00838f;
}
.YMG_tag_purple {
    background: #f3e5f5;
    color: #7b1fa2;
}
.YMG_tag_green {
    background: #e8f5e9;
    color: #388e3c;
}
.YMG_tag_blue {
    background: #e3f2fd;
    color: #1976d2;
}

/* ========== 链接按钮 ========== */
.YMG_link {
    color: #1976d2;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.YMG_link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* ========== 全选/取消全选（本组） ========== */
.YMG_select_all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #7c6dd8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.YMG_select_all:hover {
    color: #5b4bc0;
    text-decoration: underline;
}
.YMG_select_all input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #7c6dd8;
    vertical-align: middle;
}

/* ========== 图片网格 ========== */
.YMG_gallery_imgs_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ========== 单图卡片 ========== */
.YMG_gallery_img_card {
    width: 175px !important;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.YMG_gallery_img_card:hover {
    border-color: #1976d2;
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.12);
    transform: translateY(-2px);
}

.YMG_gallery_img_box {
    width: 175px !important;
    height: 175px !important;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    cursor: pointer;
    position: relative;
}

/* 视频播放图标 - 居中叠加，始终显示 */
.YMG_video_play_overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.12);
    pointer-events: none;
}
.YMG_video_play_overlay img {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

.YMG_gallery_img_info {
    padding: 10px 12px 12px;
}
.YMG_gallery_img_title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.YMG_gallery_img_date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.4;
}
.YMG_gallery_img_actions {
    display: flex !important;
    gap: 8px !important;
}
.YMG_gallery_action {
    color: #1976d2;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.YMG_gallery_action:hover {
    color: #1565c0;
    text-decoration: underline;
}
.YMG_gallery_action_danger {
    color: #e53935;
}
.YMG_gallery_action_danger:hover {
    color: #c62828;
}

/* ========== 响应式 ========== */
@media (max-width: 1400px) {
    .YMG_gallery_img_card {
        width: 150px;
    }
    .YMG_gallery_img_box {
        width: 150px;
        height: 150px;
    }
}
@media (max-width: 768px) {
    .YMG_gallery_img_card {
        width: 130px;
    }
    .YMG_gallery_img_box {
        width: 130px;
        height: 130px;
    }
    .YMG_gallery_item_header {
        flex-direction: column;
        gap: 10px;
    }
    .YMG_gallery_item_header_right {
        padding-top: 0;
    }
}
