/**
 * 时间轴部分样式 - 仅用于"我们的旅程"部分
 */

.journey-timeline {
    position: relative;
    max-width: 1000px;
    margin: 25px auto;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #0056b3, #00a0e9);
    top: 0;
    bottom: 0;
    left: 30px;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-year {
    margin: 0 0 12px 50px;
    font-size: 1.6rem;
    color: #0056b3;
    font-weight: bold;
    position: relative;
    z-index: 2;
    background: #fff;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 86, 179, 0.15);
    border: 2px solid rgba(0, 86, 179, 0.1);
}

.timeline-year::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: -38px;
    background-color: white;
    border: 3px solid #0056b3;
    top: 0;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.timeline-event {
    position: relative;
    margin-bottom: 15px;
    margin-left: 50px;
    background: white;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 3px solid #0056b3;
}

.timeline-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-event::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: -6px;
    background-color: white;
    box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.05);
    top: 12px;
    transform: rotate(45deg);
    border-radius: 2px;
}

.timeline-event p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.95rem;
    color: #333;
}

/* 多语言支持样式 */
.lang-content {
    display: none;
}

/* 默认显示德语内容（适合德国市场） */
.lang-content.de {
    display: inline;
}

/* 英语环境下显示英语内容 */
html[lang="en-US"] .lang-content.en,
html[lang="en"] .lang-content.en {
    display: inline;
}

html[lang="en-US"] .lang-content.de,
html[lang="en"] .lang-content.de {
    display: none;
}

/* 德语环境下显示德语内容 */
html[lang="de-DE"] .lang-content.de,
html[lang="de"] .lang-content.de {
    display: inline;
}

html[lang="de-DE"] .lang-content.en,
html[lang="de"] .lang-content.en {
    display: none;
}

/* 中文环境下显示中文内容 */
html[lang="zh-CN"] .lang-content.zh,
html[lang="zh"] .lang-content.zh {
    display: inline;
}

html[lang="zh-CN"] .lang-content.de,
html[lang="zh"] .lang-content.de {
    display: none;
}

/* JavaScript语言切换支持 */
body.lang-de .lang-content.de {
    display: inline;
}

body.lang-de .lang-content.en,
body.lang-de .lang-content.zh {
    display: none;
}

body.lang-en .lang-content.en {
    display: inline;
}

body.lang-en .lang-content.de,
body.lang-en .lang-content.zh {
    display: none;
}

body.lang-zh .lang-content.zh {
    display: inline;
}

body.lang-zh .lang-content.de,
body.lang-zh .lang-content.en {
    display: none;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .journey-timeline::before {
        left: 50%;
        width: 4px;
    }
    
    .timeline-year {
        width: auto;
        text-align: center;
        margin: 0 auto 25px;
        transform: translateX(-50%);
        left: 50%;
        position: relative;
    }
    
    .timeline-year::before {
        left: 50%;
        margin-left: -11px;
        top: -30px;
    }
    
    .timeline-events-container {
        position: relative;
        margin-bottom: 15px;
    }
    
    .timeline-event {
        width: 44%;
        margin-bottom: 20px;
        border-left: none;
    }
    
    .timeline-event:nth-child(odd) {
        float: left;
        clear: both;
        margin-left: 0;
        margin-right: 0;
        border-right: 3px solid #0056b3;
    }
    
    .timeline-event:nth-child(odd)::before {
        right: -6px;
        left: auto;
    }
    
    .timeline-event:nth-child(even) {
        float: right;
        clear: both;
        margin-left: 0;
        margin-right: 0;
        border-left: 3px solid #0056b3;
    }
    
    .timeline-event:nth-child(even)::before {
        left: -6px;
    }
    
    .timeline-event:nth-child(odd)::after,
    .timeline-event:nth-child(even)::after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        background: #0056b3;
        border-radius: 50%;
        top: 12px;
        z-index: 1;
        box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
    }
    
    .timeline-event:nth-child(odd)::after {
        right: -32px;
    }
    
    .timeline-event:nth-child(even)::after {
        left: -32px;
    }
    
    /* 清除浮动 */
    .timeline-events-container::after {
        content: "";
        display: table;
        clear: both;
    }
} 