@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

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

html, body {
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background: #ffffff;
    color: #1d1d1f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    width: 100vw;
    height: 100vh;
}

/* 页面容器 - 横向滚动 */
.page-container {
    display: flex;
    width: max-content;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.page-container::-webkit-scrollbar {
    display: none;
}

/* 主页 */
.hero-section {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #ffffff;
    position: relative;
}

.hero-content {
    text-align: center;
}

.hero-label {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.days-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.days-number {
    font-size: 156px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #d62941;
}

.days-unit {
    font-size: 56px;
    font-weight: 400;
    letter-spacing: 0;
    color: #d62941;
}

.hero-date {
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #1d1d1f;
}

.scroll-indicator {
    position: absolute;
    bottom: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #86868b;
}

.scroll-arrow {
    font-size: 24px;
    font-weight: 300;
}

.scroll-text {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* 时间线区域 */
.timeline-section {
    width: max-content;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    padding: 0 80px;
    background: #fafafa;
}

.timeline-track {
    height: 100%;
    display: flex;
    align-items: center;
}

.timeline-events {
    display: flex;
    gap: 80px;
    align-items: center;
}

/* 时间线事件 */
.timeline-event {
    width: 320px;
}

.event-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.event-image-container {
    width: 320px;
    height: 220px;
    background: #f5f5f7;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    color: #86868b;
    font-size: 24px;
    font-weight: 300;
}

.event-info {
    padding: 24px;
}

.event-date {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #86868b;
    margin-bottom: 10px;
}

.event-title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.event-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #86868b;
    white-space: pre-line;
}

/* 年份分隔标记 */
.year-marker {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.year-marker-year {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #d62941;
    line-height: 1;
}

.year-marker-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #86868b;
    margin-top: 8px;
}

/* 结束标记 */
.end-marker {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.end-marker-text {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #86868b;
    margin-bottom: 8px;
}

.end-marker-date {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #d62941;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-label {
        font-size: 15px;
    }
    
    .days-number {
        font-size: 96px;
    }
    
    .days-unit {
        font-size: 36px;
    }
    
    .hero-date {
        font-size: 17px;
    }
    
    .scroll-indicator {
        bottom: 32px;
    }
    
    .timeline-section {
        padding: 0 40px;
    }
    
    .timeline-events {
        gap: 48px;
    }
    
    .timeline-event {
        width: 260px;
    }
    
    .event-image-container {
        width: 260px;
        height: 180px;
    }
    
    .event-info {
        padding: 18px;
    }
    
    .event-title {
        font-size: 18px;
    }
    
    .event-description {
        font-size: 14px;
    }
    
    .year-marker {
        width: 80px;
    }
    
    .year-marker-year {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .days-number {
        font-size: 72px;
    }
    
    .days-unit {
        font-size: 28px;
    }
    
    .timeline-event {
        width: 240px;
    }
    
    .event-image-container {
        width: 240px;
        height: 160px;
    }
}