/* 更新日志页面 */
.update-page {
    min-height: calc(100vh - 64px);
    background-color: #f8fafc;
}

.update-hero {
    padding: 60px 0 48px;
    text-align: center;
}

.update-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 10px;
}

.update-hero-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.update-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 48px 80px;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #1a73e8;
    border: 4px solid #e8f0fe;
    z-index: 1;
}

.timeline-dot.old {
    background-color: #94a3b8;
    border-color: #e8ecf1;
}

.timeline-card {
    background-color: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s ease;
}

.timeline-card:hover {
    border-color: #c8d4e0;
}

.timeline-version {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.timeline-version-tag {
    display: inline-block;
    padding: 2px 10px;
    background-color: #e8f0fe;
    color: #1a73e8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.timeline-version-tag.old {
    background-color: #f1f5f9;
    color: #94a3b8;
}

.timeline-date {
    font-size: 13px;
    color: #94a3b8;
}

.timeline-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a2332;
    margin: 0 0 12px;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-list li {
    font-size: 14px;
    line-height: 1.7;
    color: #5a6a7a;
    padding: 3px 0;
    padding-left: 18px;
    position: relative;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.timeline-list li.add::before {
    background-color: #22c55e;
}

.timeline-list li.fix::before {
    background-color: #f59e0b;
}

.timeline-list li.change::before {
    background-color: #6366f1;
}

.timeline-list li.remove::before {
    background-color: #ef4444;
}

/* 暗色模式 */
body.dark-mode .update-page {
    background-color: #0d1117;
}

body.dark-mode .update-hero-title {
    color: #e2e8f0;
}

body.dark-mode .update-hero-subtitle {
    color: #8896a6;
}

body.dark-mode .timeline::before {
    background-color: #2a3140;
}

body.dark-mode .timeline-dot {
    border-color: #1a2744;
}

body.dark-mode .timeline-dot.old {
    border-color: #2a3140;
    background-color: #4a5568;
}

body.dark-mode .timeline-card {
    background-color: #161b22;
    border-color: #2a3140;
}

body.dark-mode .timeline-card:hover {
    border-color: #3a4563;
}

body.dark-mode .timeline-version-tag {
    background-color: #1a2744;
    color: #4da3ff;
}

body.dark-mode .timeline-version-tag.old {
    background-color: #1e2530;
    color: #64748b;
}

body.dark-mode .timeline-title {
    color: #e2e8f0;
}

body.dark-mode .timeline-list li {
    color: #8896a6;
}

/* 响应式 */
@media (max-width: 768px) {
    .update-hero {
        padding: 40px 0 32px;
    }

    .update-hero-title {
        font-size: 26px;
    }

    .update-container {
        padding: 0 20px 60px;
    }

    .timeline-card {
        padding: 18px;
    }

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

@media (max-width: 480px) {
    .update-hero {
        padding: 32px 0 24px;
    }

    .update-hero-title {
        font-size: 22px;
    }

    .update-container {
        padding: 0 16px 48px;
    }

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