/* 更新日志页面特有样式 */

/* 应用标签 */
.app-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    border-bottom: 1px solid #30363d;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.app-tab {
    padding: 12px 24px;
    color: #8b949e;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.app-tab:hover {
    color: #efc49b;
}

.app-tab.active {
    color: #efc49b;
    border-bottom-color: #efc49b;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #30363d;
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 6px;
    width: 15px;
    height: 15px;
    background: #0d1117;
    border: 2px solid #efc49b;
    border-radius: 50%;
}

.timeline-date {
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 16px;
}

.update-card {
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.update-card:hover {
    border-color: #efc49b;
    box-shadow: 0 0 20px rgba(239, 196, 155, 0.15);
}

.update-header {
    padding: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.update-title-group {
    flex: 1;
}

.update-title {
    font-size: 22px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 8px;
}

.version-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(239, 196, 155, 0.2);
    color: #efc49b;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 12px;
}

.format-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(239, 196, 155, 0.16);
    color: #efc49b;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
}

.expand-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
    color: #8b949e;
}

.update-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.update-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.update-card.expanded .update-content {
    max-height: 5000px;
}

.update-body {
    padding: 0 24px 24px;
    color: #c9d1d9;
    font-size: 15px;
    line-height: 1.8;
}

.update-body h1,
.update-body h2,
.update-body h3 {
    color: #e6edf3;
    margin: 24px 0 16px;
}

.update-body h2 {
    font-size: 20px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 8px;
}

.update-body h3 {
    font-size: 18px;
}

.update-body ul,
.update-body ol {
    margin: 12px 0;
    padding-left: 24px;
}

.update-body li {
    margin: 8px 0;
}

.update-body p {
    margin: 12px 0;
}

.update-body code {
    background: #0b0b0b;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: #79c0ff;
}

.update-body pre {
    background: #0b0b0b;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.update-body pre code {
    background: none;
    padding: 0;
    color: #c9d1d9;
}

.update-body strong {
    color: #e6edf3;
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
    .timeline {
        padding-left: 24px;
    }

    .timeline-dot {
        left: -20px;
        width: 14px;
        height: 14px;
    }

    .update-header {
        padding: 16px;
    }

    .update-title {
        font-size: 18px;
    }

    .update-body {
        padding: 0 16px 16px;
    }
}

@media (max-width: 480px) {
    .app-tabs {
        gap: 4px;
    }

    .app-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
}
