/* ==========================================================================
   our-history.css - 公司历史页面样式
   ========================================================================== */

/* 主要内容区域 */
.history-content {
    padding: 60px 0;
    background-color: var(--background-primary);
}

.content-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题样式 - 匹配首页模块标题 */
.main-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.main-section-title h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark, #333);
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

/* 时间轴容器 */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

/* 时间轴中心线 */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--primary-blue);
    transform: translateX(-50%);
}

/* 时间轴项目 */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    display: flex;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

/* 左侧项目 */
.timeline-item.left {
    justify-content: flex-start;
    padding-right: calc(50% + 20px);
}

/* 右侧项目 */
.timeline-item.right {
    justify-content: flex-end;
    padding-left: calc(50% + 20px);
}

/* 日期气泡 */
.timeline-date-bubble {
    position: absolute;
    top: 15px;
    width: 80px;
    height: 40px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item.left .timeline-date-bubble {
    right: calc(50% - 40px);
}

.timeline-item.right .timeline-date-bubble {
    left: calc(50% - 40px);
}

.timeline-date {
    font-weight: 600;
    font-size: 14px;
}

/* 时间轴卡片 - 修改为直角并加深阴影 */
.timeline-card {
    background-color: white;
    padding: 25px 30px;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    width: calc(100% - 40px);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.left .timeline-card {
    margin-right: 0;
}

.timeline-item.right .timeline-card {
    margin-left: 0;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* 卡片内容 */
.timeline-card h3 {
    color: var(--primary-blue);
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.timeline-card p {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive adjustments */

/* Tablet */
@media (max-width: 991px) {
    .content-wrapper {
        padding: 0 10px;
    }
    .history-content {
        padding: 50px 0;
    }
    .main-section-title {
        margin-bottom: 50px;
    }
    .main-section-title h2 {
        font-size: 32px;
    }
    .timeline-container {
        padding-bottom: 50px;
    }
    .timeline-item {
        margin-bottom: 50px;
    }

    .timeline-item.left {
        padding-right: calc(50% + 15px);
    }
    .timeline-item.right {
        padding-left: calc(50% + 15px);
    }
    .timeline-card {
        width: calc(100% - 30px);
        padding: 20px 25px;
    }
    .timeline-card h3 {
        font-size: 19px;
    }
    .timeline-card p {
        font-size: 14px;
    }
}

/* Mobile - Switch to single-sided layout (refining your existing rules) */
@media (max-width: 767px) {
    .history-content {
        padding: 40px 0;
    }
    .main-section-title {
        margin-bottom: 40px;
    }
    .main-section-title h2 {
        font-size: 28px;
    }
    .timeline-container {
        padding: 15px 0 40px;
    }

    .timeline-line {
        left: 25px;
        width: 2px;
    }
    
    .timeline-item {
        margin-bottom: 40px;
    }

    .timeline-item.left, 
    .timeline-item.right {
        justify-content: flex-start;
        padding-left: 65px;
        padding-right: 0;
    }
    
    .timeline-date-bubble {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
    }
    .timeline-item.left .timeline-date-bubble,
    .timeline-item.right .timeline-date-bubble {
        right: auto;
    }

    .timeline-date {
        font-size: 12px;
    }
    
    .timeline-card {
        width: 100%;
        margin-left: 15px;
        margin-right: 0;
        padding: 18px 20px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    .timeline-item.left .timeline-card,
    .timeline-item.right .timeline-card {
    }
    .timeline-card:hover {
        transform: none;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

    .timeline-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    .timeline-card p {
        font-size: 14px;
        line-height: 1.55;
    }
}

/* Smaller Mobile */
@media (max-width: 576px) {
    .content-wrapper {
        padding: 0 5px;
    }
    .history-content {
        padding: 30px 0;
    }
    .main-section-title {
        margin-bottom: 30px;
    }
    .main-section-title h2 {
        font-size: 24px;
    }
    .timeline-container {
        padding-bottom: 30px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        margin-bottom: 30px;
        padding-left: 55px;
    }

    .timeline-card {
        margin-left: 10px;
        padding: 15px;
    }
    .timeline-card h3 {
        font-size: 16px;
    }
    .timeline-card p {
        font-size: 13px;
    }
}
