/**
 * @file history.css
 * @purpose 历史沿革
 * @author 重庆嘉华医院
 * @datetime 2026-11-09 10:27:00
 * @description 医院历史沿革样式。
 */

/* 锚点平滑 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.history-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.history-intro__lead {
    font-size: 16px;
    line-height: 1.9;
    color: #475569;
    margin: 0;
}

/* 时间线 */
.history-timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 44px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: linear-gradient(to bottom, #00B4D8, #0077A8);
    border-radius: 2px;
}

.history-item {
    position: relative;
    padding: 22px 26px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 22px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.history-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 30px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid #00B4D8;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.history-item__year {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #00B4D8 0%, #0096C7 100%);
    border-radius: 20px;
    padding: 3px 16px;
    margin-bottom: 10px;
}

.history-item__title {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.history-item__desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .page-banner__title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .history-timeline {
        padding-left: 36px;
    }

    .history-item::before {
        left: -27px;
    }
}
