/* 页面标题 */
.page-title {
    text-align: center;
    padding: 40px 0;
    background-color: #fff;
    margin-bottom: 30px;
}

.page-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 18px;
    color: #666;
}

/* 时间轴容器 */
.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #c41230;
}

/* 时间轴项目 */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    text-align: right;
}

.timeline-date .year {
    display: block;
    font-size: 24px;
    color: #c41230;
    font-weight: bold;
}

.timeline-date .season {
    display: block;
    font-size: 16px;
    color: #666;
}

.timeline-content {
    margin-left: 160px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* 工匠信息 */
.craftsman-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.craftsman-image {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.craftsman-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.craftsman-image:hover img {
    transform: scale(1.1);
}

.craftsman-text {
    flex: 1;
}

.craftsman-text h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.experience {
    color: #c41230;
    font-size: 16px;
    margin-bottom: 15px;
}

.description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.skills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.skills span {
    padding: 4px 12px;
    background-color: #f5f5f5;
    border-radius: 15px;
    font-size: 14px;
    color: #666;
}

/* 作品展示 */
.works-showcase {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.works-showcase h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.work-item {
    text-align: center;
}

.work-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
}

.work-item:hover img {
    transform: scale(1.05);
}

.work-item p {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin: 40px 0;
}

#loadMoreBtn {
    padding: 12px 30px;
    background-color: #c41230;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#loadMoreBtn:hover {
    background-color: #a00f28;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .timeline-container::before {
        left: 80px;
    }

    .timeline-date {
        width: 60px;
    }

    .timeline-content {
        margin-left: 120px;
    }

    .craftsman-info {
        flex-direction: column;
    }

    .craftsman-image {
        flex: 0 0 auto;
        height: 250px;
    }
}

@media screen and (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-date {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        text-align: left;
        margin-bottom: 15px;
        padding-left: 40px;
    }

    .timeline-content {
        margin-left: 0;
        padding: 20px;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeInUp 0.5s ease forwards;
    animation-play-state: paused;
}

.timeline-item.visible {
    animation-play-state: running;
}

/* 延迟动画 */
.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.4s;
}

/* 图片预览效果 */
.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.preview-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.preview-title {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: #fff;
    text-align: center;
    font-size: 18px;
} 