/* ==================== Base (migrated from index.css) ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
}

body {
    font-family: 微软雅黑;
    background-color: #f6f6f6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    max-width: 100%;
}

@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }
    body {
        min-width: 320px;
        max-width: 100vw;
        width: 100%;
        overflow-x: hidden;
    }
    body * {
        max-width: 100vw;
    }
}

@media (min-width: 769px) {
    body {
        min-width: 1200px;
        overflow-x: auto;
    }
}

/* Hero base styles (migrated from index.css) */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
}

.hero-title {
    font-size: 56px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 20px;
}

/* ==================== About Page - Hero Section ==================== */
.about-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2137 100%);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Override hero-overlay - remove background gradient */
.about-hero .hero-overlay {
    background: none;
}

/* Override hero-content alignment for about page - align left with navbar logo */
.about-hero .hero-content {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    max-width: 1100px;
    padding: 0 50px;
}

.about-hero .hero-title {
    color: inherit;
    text-shadow: none;
    max-width: 700px;
    margin-bottom: 40px;
}

.about-hero .hero-subtitle {
    color: inherit;
    max-width: 700px;
    font-weight: bold;
    margin-bottom: 40px;
}

.hero-desc {
    font-size: 20px;
    color: inherit;
    line-height: 1.6;
    max-width: 710px;
}

/* ==================== Timeline Section ==================== */
.timeline-section {
    background: url('../images/about/bg2.jpg') center/cover no-repeat;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: inherit;
    margin-bottom: 50px;
}

.timeline-wrapper {
    position: relative;
    padding: 40px 0 40px;
}

/* 中轴线 */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #aa2331;
    transform: translateX(-50%);
}

/* 时间线节点通用样式 */
.timeline-item {
    position: relative;
    display: flex;
    width: calc(50% + 8px);
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: auto;
    height: 16px;
    background: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    z-index: 2;
}

.timeline-item-inner {
    margin-top: -13px;
}

.timeline-year {
    font-size: 22px;
    font-weight: 700;
    color: #c62828;
    white-space: nowrap;
    line-height: 1.9;
}

.timeline-year-future {
    font-style: italic;
}

.timeline-content {
    background: transparent;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.9;
    margin-bottom: 4px;
}

/* 左侧节点：文字右侧靠近中线的红点（排除含图片的行） */
.timeline-left .timeline-list li:not(:has(img))::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #aa2331;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 6px;
}

/* 右侧节点：文字左侧靠近中线的红点（排除含图片的行） */
.timeline-right .timeline-list li:not(:has(img))::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #aa2331;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
}

.timeline-list li img {
    height: 22px;
    vertical-align: middle;
    margin-right: 4px;
    object-fit: contain;
}

.timeline-tag {
    display: inline-block;
    background: #1976d2;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    vertical-align: middle;
}

/* 右侧节点 - 箭头指向左 */
.timeline-right {
    margin-left: calc(50% - 8px);
    width: calc(50% + 8px);
    display: flex;
    align-items: flex-start;
}

.timeline-right .timeline-dot {
    transform: scaleX(-1);
}

.timeline-right .timeline-item-inner {
    margin-left: 10px;
}

.timeline-right .timeline-year {
    margin-right: 10px;
    text-align: left;
}

.timeline-right .timeline-content {
    text-align: left;
}

/* 左侧节点 - 箭头指向右 */
.timeline-left {
    justify-content: flex-end;
}

.timeline-left .timeline-dot {
    right: -53px;
}

.timeline-left .timeline-item-inner {
    margin-right: 10px;
}

.timeline-left .timeline-year {
    order: 2;
    margin-left: 10px;
    text-align: right;
}

.timeline-left .timeline-content {
    order: 1;
    text-align: right;
}

/* 底部"未来"节点 */
.timeline-bottom {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
    clear: both;
}

.timeline-bottom .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
    top: -8px;
}

.timeline-bottom .timeline-year {
    text-align: center;
}

.timeline-bottom .timeline-content {
    padding-left: 0;
    text-align: left;
    display: inline-block;
}

/* ==================== Responsive - Tablet ==================== */
@media (max-width: 768px) {
    .about-hero {
        height: 480px;
    }

    .about-hero .hero-content {
        padding: 40px 20px 0;
    }

    .about-hero .hero-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .about-hero .hero-subtitle {
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .timeline-section {
        padding: 40px 15px 70px;
    }

    .timeline-title {
        font-size: 22px;
        margin-bottom: 35px;
    }

    .timeline-year {
        font-size: 18px;
    }

    .timeline-list li {
        font-size: 13px;
    }

    .timeline-list li img {
        height: 18px;
    }

    /* 手机端时间线调整 */
    .timeline-left .timeline-item-inner {
        margin-right: 5px;
    }

    .timeline-item-inner {
        margin-top: -11px;
    }

    .timeline-left .timeline-list li:not(:has(img)) {
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .timeline-left .timeline-list li:not(:has(img))::after {
        order: 1;
        width: 5px;
        height: 5px;
        flex-shrink: 0;
        margin-top: 0.76em;
    }

    .timeline-right .timeline-list li:not(:has(img)) {
        display: flex;
        align-items: flex-start;
    }

    .timeline-right .timeline-list li:not(:has(img))::before {
        width: 5px;
        height: 5px;
        flex-shrink: 0;
        margin-top: 0.76em;
    }

    .timeline-dot {
        height: 10px;
    }

    .timeline-item {
        width: calc(50% + 5px);
    }

    .timeline-right {
        width: auto;
        margin-left: calc(50% - 5px);
    }

    .timeline-right .timeline-item-inner {
        margin-left: 5px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        height: 350px;
    }

    .about-hero .hero-content {
        padding: 40px 20px 0;
    }

    .about-hero .hero-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .about-hero .hero-subtitle {
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    .timeline-section {
        padding: 30px 10px 50px;
    }

    .timeline-title {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .timeline-year {
        font-size: 16px;
    }

    .timeline-list li {
        font-size: 12px;
        line-height: 1.8;
    }

    .timeline-list li img {
        height: 16px;
    }
}
