/* 我的故事页面样式 */
.story-page {
    min-height: 100vh;
    padding: 2rem 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.story-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.story-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.story-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.story-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 时间轴容器 */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* 时间轴中线 */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 2px;
}

/* 时间轴项目 */
.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 50%;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

/* 时间节点圆点 */
.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #667eea;
    border-radius: 50%;
    top: 0;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    border-color: #764ba2;
    box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.2);
}

/* 时间卡片 */
.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.8rem;
}

.timeline-desc {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

.timeline-tags {
    margin-top: 1rem;
}

.timeline-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.timeline-item:nth-child(odd) .timeline-tag {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* 连接线 */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 30px;
    height: 2px;
    background: #667eea;
}

.timeline-item:nth-child(odd)::before {
    right: 0;
}

.timeline-item:nth-child(even)::before {
    left: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 5rem !important;
        padding-right: 1rem !important;
        text-align: left !important;
    }
    
    .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }
    
    .timeline-item::before {
        left: 30px !important;
        right: auto !important;
        width: 20px;
    }
    
    .story-header h1 {
        font-size: 2rem;
    }
    
    .timeline-tag {
        margin-left: 0 !important;
        margin-right: 0.5rem !important;
    }
}