/* 作品页面头部 */
.page-header {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* 作品区域 */
.portfolio-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #667eea;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-marker {
    position: absolute;
    width: 60px;
    height: 60px;
    right: -30px;
    background-color: #667eea;
    border: 4px solid white;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.timeline-item.right .timeline-marker {
    left: -30px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item.left .timeline-content::after {
    content: " ";
    position: absolute;
    top: 20px;
    right: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.timeline-item.right .timeline-content::after {
    content: " ";
    position: absolute;
    top: 20px;
    left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

.portfolio-item {
    margin-bottom: 20px;
}

.portfolio-item:last-child {
    margin-bottom: 0;
}

.portfolio-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.portfolio-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.portfolio-tags span {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
}

.qr-code-container {
    text-align: center;
    margin-top: 15px;
}

.qr-code-image {
    width: 150px;
    height: 150px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    background-color: white;
}

.qr-code-text {
    margin-top: 8px;
    color: #666;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 隐藏 style.css 中的 ::before 竖线 */
    .timeline::before {
        display: none !important;
        content: none !important;
    }

    .timeline::after {
        left: 31px !important;
        margin-left: 0 !important;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-marker {
        left: 6px !important;
        right: auto !important;
        width: 50px;
        height: 50px;
        font-size: 0.9em;
    }

    .timeline-item.left .timeline-content::after,
    .timeline-item.right .timeline-content::after {
        left: -10px;
        border-color: transparent white transparent transparent;
    }

    .page-header h1 {
        font-size: 2em;
    }

    .page-header p {
        font-size: 1em;
    }
}
