/* M3D Page Styles */

/* 主体内容区样式 */
#main-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 77px;
}

/* 页面标题样式 */
.page-title {
    font-size: 36px;
    font-weight: 300;
    color: #333;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* 筛选器容器 */
.filter-container {
    margin-bottom: 40px;
    position: relative;
    max-width: 200px;
}

/* 自定义Select样式 */
.custom-select {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: none;
    border-bottom: 1px solid #333;
    background-color: transparent;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

/* 自定义Select箭头 - 使用Font Awesome */
.filter-container::after {
    font-family: 'FontAwesome';
    content: '\f078'; /* Font Awesome向下箭头图标 */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #333;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* 分类容器样式 - 左下角 */
.category-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* 标签容器样式 - 右下角 */
.tags-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 10;
    justify-content: flex-end;
}

/* 标签样式 */
.tag {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* 作品瀑布流布局 */
.works-grid {
    /* 使用CSS columns实现瀑布流 */
    column-count: 3;
    column-gap: 20px;
    margin: 0 -10px;
}

/* 作品项目样式 */
.work-item {
    break-inside: avoid;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 作品项目悬停效果 */
.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* 作品链接样式 */
.work-link {
    display: block;
    position: relative;
    text-decoration: none;
}

/* 图片容器样式 */
.work-image-container {
    width: 100%;
    display: block;
    overflow: hidden;
}

/* 作品图片样式 */
.work-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 6px 6px 0 0;
}

/* 图片悬停效果 */
.work-item:hover .work-image {
    transform: scale(1.05);
}

/* 悬停效果 */
.work-item:hover .work-image {
    transform: scale(1.05);
}

/* 无作品提示样式 */
.no-works {
    text-align: center;
    font-size: 18px;
    color: #999;
    padding: 60px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端主体内容区边距调整 */
    #main-content {
        padding: 20px 10px;
    }
    
    /* 移动端标题样式 */
    .page-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* 移动端瀑布流 - 调整为2列布局 */
    .works-grid {
        column-count: 2;
        column-gap: 10px;
    }
    
    /* 移动端项目间距 */
    .work-item {
        margin-bottom: 10px;
    }
    
    /* 移动端筛选器 */
    .filter-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕设备 - 调整为单列布局 */
    .works-grid {
        column-count: 1;
        column-gap: 10px;
    }
}