/* 作品列表部分 */
.works-list {
    padding: 60px 0;
    background: #fff;
}

/* 作品网格样式 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* 作品卡片样式 */
.work-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.work-card-image {
    position: relative;
    padding-top: 75%; /* 4:3 比例 */
    overflow: hidden;
}

.work-card-image .work-cover-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.work-card-image .work-cover-link:hover {
    opacity: 0.95;
}

.work-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none; /* 确保不会阻挡点击事件 */
}

.work-card:hover .work-card-image::before {
    opacity: 1;
}

.work-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-top: 8px;;
    transition: transform 0.3s ease;
}

.work-card:hover img {
    transform: scale(1.05);
}

.work-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    display: -moz-box;
    display: box;
    -moz-box-orient: vertical;
    box-orient: vertical;
}

.work-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -moz-box;
    display: box;
    -moz-box-orient: vertical;
    box-orient: vertical;
}

.work-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid #eee;
    margin-top: auto;
    position: relative;
    z-index: 2; /* 确保按钮在最上层 */
}

.work-card-footer .author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-left: 20px;
}

.work-card-footer .author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.work-card-footer .view-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 3; /* 确保链接可点击 */
}

.work-card-footer .view-more:hover {
    color: #1976d2;
}

/* 作品信息样式 */
.work-info {
    padding: 20px;
}

.work-info h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
    font-weight: 600;
}

.work-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.work-info h3 a:hover {
    color: #007bff;
}

.work-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.view-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-detail-btn:hover {
    background: #1976d2;
}

/* 作品内容 */
.work-content {
    display: flex;
    flex-direction: column;
}

.work-title {
    padding: 20px 20px 0;
}

.work-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.work-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 作品图片 */
.work-images {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.work-image-main {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
}

.work-image-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-images:hover .work-actions {
    opacity: 1;
}

.work-images::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.work-images:hover::before {
    opacity: 1;
}

/* 作品信息栏 */
.work-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.work-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.work-meta i {
    font-size: 12px;
    color: #999;
}

/* 作品悬浮效果 */
.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.action-btn {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-info {
        padding: 15px;
    }

    .work-info h3 {
        font-size: 16px;
    }

    .work-meta {
        font-size: 13px;
    }

    .action-btn {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Banner样式 */
.works-banner {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.8));
    min-height: 400px;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.works-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1561998338-13ad7883b20f?auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.3;
    z-index: -1;
}

.banner-content {
    text-align: center;
    width: 100%;
}

.banner-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

.banner-desc {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
    text-align: center;
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.banner-stats .stat-item {
    text-align: center;
}

.banner-stats .stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.banner-stats .stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 作品搜索筛选区域 */
.works-filters {
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* 搜索栏样式 */
.search-bar {
    margin-bottom: 20px;
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-bar input {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    border: 2px solid #eee;
    border-right: none;
    border-radius: 24px 0 0 24px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #007bff;
}

.search-bar button {
    width: 60px;
    height: 48px;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 0 24px 24px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: #0056b3;
}

/* 筛选标签样式 */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.filter-tag {
    padding: 8px 16px;
    border-radius: 20px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-tag:hover {
    background: #e9ecef;
    color: #333;
    text-decoration: none;
}

.filter-tag.active {
    background: #007bff;
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .works-filters {
        padding: 20px 0;
    }

    .search-bar {
        margin-bottom: 15px;
    }

    .search-bar input {
        height: 40px;
        font-size: 14px;
    }

    .search-bar button {
        width: 50px;
        height: 40px;
    }

    .filter-tags {
        gap: 8px;
    }

    .filter-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 列表头部样式 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.total-count {
    font-size: 16px;
    color: #666;
}

.total-count .count {
    color: #007bff;
    font-weight: 600;
}

.sort-options {
    display: flex;
    gap: 15px;
}

.sort-options a {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-decoration: none;
}

.sort-options a:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    text-decoration: none;
}

.sort-options a.active {
    color: #007bff;
    font-weight: 500;
    background: rgba(0, 123, 255, 0.1);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-number:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-number.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 移动端响应式调整 */
@media screen and (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tag-list {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .tag-list::-webkit-scrollbar {
        display: none;
    }

    .tag {
        flex: 0 0 auto;
    }

    .list-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .sort-options {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sort-options::-webkit-scrollbar {
        display: none;
    }

    .sort-options a {
        white-space: nowrap;
        padding: 6px 12px;
        font-size: 14px;
    }

    .desktop-only {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .banner-stats {
        gap: 20px;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 15px;
    }

    .banner-stats .stat-value {
        font-size: 24px;
    }

    .banner-stats .stat-label {
        font-size: 12px;
        white-space: nowrap;
    }
}

.work-actions {
    padding: 0 20px 20px;
    margin-top: auto;
}

.view-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-detail-btn:hover {
    background: #1976d2;
}

.view-detail-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.view-detail-btn:hover i {
    transform: translateX(4px);
}

/* 移动端加载状态 */
.loading-more,
.no-more {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 14px;
    display: none;
}

.loading-more .spinner {
    margin-bottom: 8px;
}

.loading-more i,
.no-more i {
    margin-right: 5px;
}

.mobile-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

/* 作品标签 */
.work-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.work-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
}

/* 无数据和错误提示 */
.no-data,
.error-message {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 14px;
}

.error-message {
    color: #ff4d4f;
}

/* 确保所有可点击元素都在上层 */
.work-card a,
.work-card button,
.work-card .work-card-footer {
    position: relative;
    z-index: 2;
}

/* 移除任何可能阻挡点击的透明覆盖层 */
.work-card::after {
    display: none;
}

.work-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    display: -ms-flexbox;
    display: box;
    -webkit-line-clamp: 2;
    -ms-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    display: -ms-flexbox;
    display: box;
    -webkit-line-clamp: 2;
    -ms-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
 