/* style.css */

html {
    scroll-behavior: smooth;
    /* 为单个粘性分类导航栏预留空间 */
    scroll-padding-top: 70px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.card img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.card {
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
    overflow: hidden;
    /* 确保下载按钮不会溢出卡片圆角 */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#gallery-nav .nav-link {
    color: #6c757d;
}

#gallery-nav .nav-link:hover {
    color: #0d6efd;
}

/* 图片卡片样式 */
.image-card {
    position: relative;
}

.image-card .download-container {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .download-container {
    opacity: 1;
}

.image-card .dropdown-toggle::after {
    display: none;
    /* 隐藏下拉菜单的小箭头 */
}

.image-card .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* 预览弹窗样式 */
.modal-body img {
    max-height: 80vh;
    width: auto;
}

/* 粘性分类导航栏样式 */
#gallery-nav.sticky-top {
    top: 0;
    /* 直接贴在页面顶部 */
    z-index: 1020;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}