/* Scrollytelling 滚动故事样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* 顶部导航 */
.project-nav {
    background-color: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 1001;
    transition: width 0.1s ease;
}

.back-btn {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #667eea;
}

.project-nav h1 {
    font-size: 20px;
    color: #333;
}

/* 项目标题区 */
.project-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 30px;
    text-align: center;
    color: #fff;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

/* 滚动故事容器 */
.scrolly-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 故事区域 */
.story-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.story-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 故事行 */
.story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    padding: 40px 0;
}

.story-row.reverse {
    direction: rtl;
}

.story-row.reverse > * {
    direction: ltr;
}

/* 故事图片 */
.story-image {
    position: relative;
    overflow: visible;
    transition: transform 0.3s ease;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    transform: scale(1.5);
    transform-origin: center center;
}

.story-image:hover {
    transform: scale(1.53);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
    border: none;
}

/* 故事文字 */
.story-text {
    padding: 30px;
    z-index: 10;
    position: relative;
    margin-top: -60px;
    margin-right: -40px;
}

.story-text h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.story-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.story-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

/* 功能列表 */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: #667eea;
    font-size: 14px;
}

/* 底部 */
.project-footer {
    background-color: #fff;
    padding: 40px 30px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

.project-footer p {
    color: #888;
    font-size: 14px;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .story-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .story-row.reverse {
        direction: ltr;
    }
    
    .story-section {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .story-text h3 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .project-nav {
        padding: 15px 20px;
    }
    
    .project-hero {
        padding: 50px 20px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .scrolly-container {
        padding: 0 20px;
    }
    
    .story-text h3 {
        font-size: 22px;
    }
    
    .story-text p {
        font-size: 14px;
    }
}
