/* 作品集页面样式 */

/* 作品集页面标题 */
.works-hero {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    position: relative;
    margin-top: 80px;
    text-align: center;
}

.works-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.works-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    background-color: rgba(0, 0, 0, 0.3); /* 添加半透明背景 */
    padding: 30px;
    border-radius: 5px;
    backdrop-filter: blur(5px); /* 添加模糊效果 */
}

.works-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.9); /* 增强文字阴影 */
}

.works-hero p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.9); /* 增强文字阴影 */
}

/* 作品分类过滤器 */
.works-filter {
    padding: 30px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* 改为半透明黑色背景 */
}

.works-filter ul {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.works-filter li {
    margin: 0 15px;
    padding: 5px 0;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8); /* 改为半透明白色 */
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
}

.works-filter li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff; /* 改为白色 */
    transition: width 0.3s ease;
}

.works-filter li:hover::after,
.works-filter li.active::after {
    width: 100%;
}

.works-filter li.active {
    font-weight: 500;
    color: #fff; /* 激活状态为纯白色 */
}

/* 作品集容器 */
.works-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
    padding: 50px;
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.3); /* 添加半透明背景 */
}

/* 作品项目样式 */
.work-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* 添加阴影 */
}

.work-item:nth-child(2) {
    animation-delay: 0.1s;
}

.work-item:nth-child(3) {
    animation-delay: 0.2s;
}

.work-item:nth-child(4) {
    animation-delay: 0.3s;
}

.work-item:nth-child(5) {
    animation-delay: 0.4s;
}

.work-item:nth-child(6) {
    animation-delay: 0.5s;
}

.work-item:nth-child(7) {
    animation-delay: 0.6s;
}

.work-item:nth-child(8) {
    animation-delay: 0.7s;
}

.work-item:nth-child(9) {
    animation-delay: 0.8s;
}

.work-item:nth-child(10) {
    animation-delay: 0.9s;
}

.work-item:nth-child(11) {
    animation-delay: 1s;
}

.work-item:nth-child(12) {
    animation-delay: 1.1s;
}

.work-item.hide {
    display: none;
}

.work-item.show {
    display: block;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 改为半透明黑色背景 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.work-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.5s ease;
    color: #fff; /* 确保文字为白色 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); /* 添加文字阴影 */
}

.work-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8); /* 改为半透明白色 */
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .works-container {
        padding: 40px;
    }
    
    .works-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .works-container {
        padding: 30px;
    }
    
    .works-hero {
        height: 30vh;
    }
    
    .works-hero h1 {
        font-size: 2rem;
    }
    
    .works-filter li {
        margin: 0 10px 10px;
    }
}

@media (max-width: 480px) {
    .works-container {
        padding: 20px;
    }
    
    .works-hero h1 {
        font-size: 1.8rem;
    }
} 