/* ============================================
   Timeline / 轨迹页面样式
   ============================================ */

/* 标题区域 */
.timeline-subtitle {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* 时间线容器 */
.timeline-wrap {
    position: relative;
    padding: 40px 0;
    max-width: 900px;
    margin: 0 auto;
}

/* 中间竖线 */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(152, 111, 238, 0.3) 5%, rgba(152, 111, 238, 0.3) 95%, transparent);
    transform: translateX(-50%);
}

/* 单个时间线条目 */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 50px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 左侧条目 */
.timeline-left {
    left: 0;
    text-align: right;
    padding-right: 50px;
    padding-left: 20px;
}

.timeline-left .timeline-card {
    transform-origin: right center;
}

.timeline-left .timeline-card-inner {
    text-align: left;
}

.timeline-left .timeline-date {
    justify-content: flex-start;
}

.timeline-left .timeline-author {
    justify-content: flex-start;
}

/* 右侧条目 */
.timeline-right {
    left: 50%;
    text-align: left;
    padding-left: 50px;
    padding-right: 20px;
}

.timeline-right .timeline-card {
    transform-origin: left center;
}

/* 时间线圆点 */
.timeline-dot {
    position: absolute;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid #986fee;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(152, 111, 238, 0.15);
    transition: all 0.3s ease;
}

.timeline-left .timeline-dot {
    right: -7px;
}

.timeline-right .timeline-dot {
    left: -7px;
}

.timeline-item:hover .timeline-dot {
    background: #986fee;
    box-shadow: 0 0 0 6px rgba(152, 111, 238, 0.25);
    transform: scale(1.2);
}

/* 卡片 - 毛玻璃效果 */
.timeline-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(152, 111, 238, 0.12);
}

.timeline-card-inner {
    padding: 20px 24px;
}

/* 日期行 */
.timeline-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.date-text {
    font-size: 13px;
    color: #888;
    letter-spacing: 0.5px;
}

.day-badge {
    display: inline-block;
    background: linear-gradient(135deg, #986fee, #8695e6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* 标题 */
.timeline-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.timeline-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.timeline-title a:hover {
    color: #986fee;
}

/* 内容摘要 */
.timeline-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 作者 */
.timeline-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-name {
    font-size: 13px;
    color: #999;
}

/* 空状态 */
.timeline-empty {
    text-align: center;
    padding: 80px 20px;
    color: #bbb;
    font-size: 15px;
}

/* ============================================
   响应式 - 移动端
   ============================================ */
@media screen and (max-width: 768px) {

    .timeline-line {
        left: 20px;
    }

    /* 移动端所有卡片靠右 */
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 50px !important;
        padding-right: 15px !important;
    }

    .timeline-left .timeline-dot,
    .timeline-right .timeline-dot {
        left: 13px !important;
        right: auto !important;
    }

    .timeline-left .timeline-card-inner {
        text-align: left;
    }

    .timeline-left .timeline-date {
        justify-content: flex-start;
    }

    .timeline-left .timeline-author {
        justify-content: flex-start;
    }

    .timeline-left .timeline-card {
        transform-origin: left center;
    }

    .timeline-card-inner {
        padding: 16px 18px;
    }

    .timeline-title {
        font-size: 16px;
    }

    .timeline-summary {
        font-size: 13px;
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
    }

    .timeline-left .timeline-dot,
    .timeline-right .timeline-dot {
        left: 14px !important;
    }
}

@media screen and (max-width: 480px) {
    .timeline-wrap {
        padding: 20px 0;
    }

    .timeline-item {
        padding-bottom: 35px;
        padding-left: 45px !important;
    }

    .timeline-card-inner {
        padding: 14px 15px;
    }

    .timeline-title {
        font-size: 15px;
    }
}
