/* static/css/search.css - 搜索页样式 */
/* 基础样式统一 */
.profile-section {
    margin-bottom: 40px;
}
.profile-card {
    transition: box-shadow 0.2s ease;
}
.profile-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.stat-card {
    transition: transform 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
}
/* 分页样式（和图库页统一） */
.pagination {
    margin-top: 20px !important;
}
.pagination .page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
    padding: 8px 14px;
}
.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
/* 空数据提示 */
.empty-tip {
    padding: 30px 0;
    text-align: center;
    color: #6c757d;
}
/* 权限标签 */
.permission-tag {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
}
/* 搜索头部样式 */
.search-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.search-keyword {
    color: #0d6efd;
    font-weight: bold;
}
/* 错误提示 */
.error-tip {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin-bottom: 20px;
}
/* 新增：搜索表单样式 */
.search-form-card {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.search-form-input {
    height: 48px;
    font-size: 16px;
}
.search-form-btn {
    height: 48px;
    font-size: 16px;
    padding: 0 30px;
}
/* 新增：图片浮动预览层（和图库页统一，新增缩放相关样式） */
.img-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    touch-action: none; /* 禁用触摸默认行为，避免缩放冲突 */
}
.img-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    transform-origin: center center; /* 以中心为缩放原点 */
    cursor: move; /* 拖拽光标 */
}
.img-preview-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    user-select: none; /* 禁止选中文本 */
}
.img-preview-close {
    position: fixed; /* 改为fixed，避免缩放时位置偏移 */
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
    z-index: 10000; /* 确保关闭按钮在最上层 */
}
.img-preview-close:hover {
    opacity: 0.8;
}
/* 图片缩放提示（可选） */
.img-preview-tip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 10000;
}
/* 图片卡片样式（和图库页统一） */
.gallery-img {
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.gallery-img:hover {
    transform: translateY(-3px);
}
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}