#choseButton {
    display: none;
}

#nav-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#nav-container a {
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    padding: 12px 35px;
    border-radius: 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--line-color);
    cursor: pointer !important;
    pointer-events: auto;
}

#nav-container a:hover {
    background-color: var(--link-hover-color);
    color: var(--footer-bg);
}

#nav-container a.active {
    background-color: var(--link-hover-color);
    color: var(--footer-bg);
    border-color: var(--link-hover-color);
}

#nav-container p {
    font-size: 1.2rem;
    color: var(--title-color);
    font-weight: 500;
    pointer-events: none;
}

.mov-items {
    margin-bottom: 30px;
}

/* 加载状态指示器 */
.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
}

/* 统一图片和视频的预览样式 */
.mov-v .video-preview-img,
.mov-v .video-preview-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 确保填满容器不拉伸 */
    display: block;
}

.mov-v .video-preview-img[data-src] {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.14) 37%, rgba(255, 255, 255, 0.06) 63%);
    background-size: 400% 100%;
    animation: videoPreviewShimmer 1.2s ease-in-out infinite;
}

@keyframes videoPreviewShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* 预览容器样式 */
.preview-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 网络图片加载失败时的回退样式 */
.preview-container .video-preview-vid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 1. 列表容器：使用网格布局 (Grid) */
.mov-list {
    width: 100%;
    padding: 0;
    margin: 0;
    display: grid;
    /* 电脑版：一行显示 4 个 */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    /* 格子之间的间距：20像素 */
    gap: 20px;
    list-style: none;
}



/* 2. 单个格子：强制 1:1 正方形 */
.mov-v {
    position: relative;
    /* 核心代码：强制宽高比为 1:1 */
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    /* 圆角，稍微好看一点 */
    overflow: hidden;
    /* 超出格子的内容切掉 */
    /* background-color: #000; */
    /* 背景黑底，防闪烁 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    /* 加一点阴影 */
    cursor: pointer;
    transition: transform 0.3s ease;
    /* 鼠标放上去的动效 */
}

/* 隐藏视频下载插件 */
/* 针对常见的下载插件选择器 */
.mov-v [class*="download"],
.mov-v [class*="plugin"],
.mov-v [class*="extension"],
.mov-v [id*="download"],
.mov-v [data-*="download"],
.mov-v [aria-label*="下载"],
.mov-v [title*="下载"],
.mov-v .video-download-btn,
.mov-v .download-overlay,
/* 针对可能的第三方插件 */
.mov-v div[style*="position: absolute"][style*="z-index: 9999"],
.mov-v div[style*="position: fixed"][style*="z-index: 9999"],
.mov-v div[style*="bottom:"][style*="right:"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 鼠标悬停时轻微放大 */
.mov-v:hover {
    transform: scale(1.02);
    z-index: 2;
}

/* 鼠标悬停时的效果 */
.mov-v:hover .video-overlay {
    background-color: rgba(0, 0, 0, 0.2);
    /* 悬停时浮层变透明一点 */
}

.mov-v .video-overlay .iconfont {
    display: none;
    /* font-size: 2.5rem;
    margin-bottom: 10px; */
}

.mov-v .video-overlay .video-label {
    display: none;
    /* font-size: 1rem; */
}

/* 模态框背景 */
#myModal {
    background-color: rgba(0, 0, 0, 0.8);
    /* 加强半透明底，确保一直可见 */
    transition: none;
    /* 模态框本身不加过渡，避免整体闪烁 */
    cursor: default;
    /* 空白区默认指针，不像可拖 */
}

#myModal:active {
    cursor: grabbing;
    /* 按住时变紧握指针 */
}

@media (max-width: 700px) {
    #choseButton {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        height: auto;
        padding: 10px 0px;
        margin: 0px;
        color: var(--title-color);
        background-color: var(--link-hover-color);
        border-radius: 30px;
    }

    #choseButton p {
        font-size: 1.2rem;
        font-weight: 500;
        color: var(--title-color);
    }

    #nav-container {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    #nav-container.active {
        display: flex;
    }

    #nav-container a {
        padding: 15px 35px;
        text-align: center;
    }
}

/*响应适配*/
@media (max-width: 576px) {
    .mov-list {
        /* 手机版：一行显示 2 个 */
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        /* 手机间距小一点 */
    }
}

/* ========== 组图样式 ========== */

/* 组图容器 */
.mov-group {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--card-bg);
    /* 确保组图容器有正确的尺寸 */
    width: 100%;
    height: auto;
}

/* 组图头部圆角 */
.mov-group>.group-header {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

/* 组图信息区域圆角 */
.mov-group>.group-info {
    border-radius: 0 0 8px 8px;
    padding: 12px;
    background-color: #fff;
}

/* 组图卡片hover浮起效果 */
.mov-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 组图卡片点击反馈效果 */
.mov-group:active {
    transform: scale(0.98);
}

/* 组图展开时的高亮效果 - 保留原有阴影 */
.mov-group.group-expanded {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 0 0 3px #4a90d9;
}

/* 组图头部 */
.group-header {
    position: relative;
    aspect-ratio: 1 / 1;
}

/* 组图预览图 */
.group-header .group-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.group-header .group-preview-img[data-src] {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.14) 37%, rgba(255, 255, 255, 0.06) 63%);
    background-size: 400% 100%;
    animation: videoPreviewShimmer 1.2s ease-in-out infinite;
}

/* 组图展开图标 */
.group-expand-icon {
    font-size: 1.44rem;
    /* 1.2rem * 1.2 = 放大20% */
    color: #666;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 18px;
    /* 往下移动8px */
}

/* 组图信息区域 */
.group-info {
    position: relative;
    border-radius: 0 0 8px 8px;
    padding: 12px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 组图左侧内容 */
.group-left {
    flex: 1;
}

/* 组图标题 */
.group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

/* 组图数量 */
.group-count {
    font-size: 0.8rem;
    color: #999;
}

/* 组图展开内容区域 - 占据整行宽度 */
.group-items {
    margin-top: 15px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
}

/* 箭头指向左侧的组图卡片 */
.group-items-arrow {
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #f8f8f8;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    to {
        opacity: 1;
        max-height: 2000px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* 组图内作品列表 - 一行五列布局 */
.group-items-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 响应式：小屏幕时减少列数 */
@media (max-width: 1200px) {
    .group-items-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .group-items-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .group-items-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 组图内单个作品 - 使用与主作品相同的样式 */
.group-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.group-item:hover {
    transform: scale(1.02);
    z-index: 2;
}

/* 组图内作品预览图 */
.group-item-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.group-item-preview[data-src] {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.14) 37%, rgba(255, 255, 255, 0.06) 63%);
    background-size: 400% 100%;
    animation: videoPreviewShimmer 1.2s ease-in-out infinite;
}

/* 组图内作品覆盖层 - 与普通作品一致 */
.group-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    transition: background-color 0.3s ease;
}

.group-item:hover .group-item-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

/* 组图内作品标签 - 与普通作品一致 */
.group-item-label {
    display: none;
}

/* 组图响应式样式 */
@media (max-width: 768px) {
    .group-items-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .group-items-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* 组图展开行 - 占据整行，放在被点击组图所在行的下面 */
.group-items-row {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* 组图展开内容区域 */
.group-items-row .group-items {
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
}

/* 箭头指向上方的组图 */
.group-items-row .group-items-arrow {
    position: absolute !important;
    top: -26px !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 16px solid transparent !important;
    border-right: 16px solid transparent !important;
    border-bottom: 16px solid #e0e0e0 !important;
    z-index: 100 !important;
    display: block !important;
    /* 添加边框效果 */
    border-bottom-color: #e0e0e0 !important;
}

/* 箭头内部白色填充 */
.group-items-row .group-items-arrow::after {
    content: '';
    position: absolute;
    top: 2px;
    left: -14px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 14px solid #f8f8f8;
}