/* 更新记录页面样式 */
.changelog-main {
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, #3a6073 0%, #16222a 100%);
    color: white;
    padding: 60px 0 40px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* 内容区域样式 */
.changelog-content {
    padding-bottom: 60px;
}

/* 版本导航样式 */
.version-nav {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.version-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.version-tab {
    padding: 8px 20px;
    border: 1px solid #dee2e6;
    background-color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.version-tab:hover {
    background-color: #f8f9fa;
    border-color: #3a6073;
}

.version-tab.active {
    background-color: #3a6073;
    color: white;
    border-color: #3a6073;
}

.version-search {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    border-radius: 25px;
    border: 1px solid #dee2e6;
    padding: 8px 20px;
    font-size: 14px;
}

.search-btn {
    background-color: #3a6073;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #16222a;
}

/* 更新记录时间线样式 */
.changelog-timeline {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

/* 时间线竖线 */
.changelog-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background-color: #dee2e6;
}

/* 时间线项样式 */
.timeline-item {
    position: relative;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-out;
}

.timeline-item.major {
    animation-delay: 0.1s;
}

.timeline-item.minor {
    animation-delay: 0.2s;
}

.timeline-item.patch {
    animation-delay: 0.3s;
}

/* 时间线点样式 */
.timeline-dot {
    position: absolute;
    left: -35px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #6c757d;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #dee2e6;
    transition: all 0.3s ease;
}

.timeline-item.major .timeline-dot {
    background-color: #dc3545;
    box-shadow: 0 0 0 2px #f8d7da;
}

.timeline-item.minor .timeline-dot {
    background-color: #ffc107;
    box-shadow: 0 0 0 2px #fff3cd;
}

.timeline-item.patch .timeline-dot {
    background-color: #28a745;
    box-shadow: 0 0 0 2px #d4edda;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
}

/* 时间线内容样式 */
.timeline-content {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* 时间线头部样式 */
.timeline-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.app-name{
    font-size: 1.5rem;
    font-weight: 700;
    color: #3a6073;
    margin: 0;
}
.version-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3a6073;
    margin: 0;
}

.build-type {
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
}

.release-type {
    background-color: #28a745;
    color: white;
}

.beta-type {
    background-color: #ffc107;
    color: #212529;
}

.dev-type {
    background-color: #6c757d;
    color: white;
}

.version-date {
    font-size: 14px;
    color: #6c757d;
    margin-left: auto;
}

.version-type {
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.major-type {
    background-color: #f8d7da;
    color: #721c24;
}

.minor-type {
    background-color: #fff3cd;
    color: #856404;
}

.patch-type {
    background-color: #d4edda;
    color: #155724;
}

/* 时间线主体样式 */
.timeline-body {
    margin-bottom: 20px;
}

.update-section {
    margin-bottom: 25px;
}

.update-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #3a6073;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.2rem;
}

.update-list {
    margin: 0;
    padding-left: 20px;
}

.update-list li {
    margin-bottom: 8px;
    color: #495057;
    position: relative;
    line-height: 1.6;
}

.update-list li::before {
    content: "•";
    color: #3a6073;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* 时间线底部样式 */
.timeline-footer {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 20px;
}

.timeline-footer .btn-link {
    color: #3a6073;
    font-size: 14px;
    padding: 0;
}

.timeline-footer .btn-link:hover {
    color: #16222a;
    text-decoration: underline;
}

/* 分页控件样式 */
.pagination-controls {
    margin: 40px 0;
}

.pagination .page-link {
    color: #3a6073;
    border-radius: 25px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #3a6073;
    border-color: #3a6073;
    border-radius: 25px;
}

/* 更新类型说明样式 */
.update-type-info {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.update-type-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3a6073;
    margin-bottom: 20px;
}

.update-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.update-type-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.update-type-item:hover {
    background-color: #e9ecef;
}

.update-type-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.update-type-item p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .changelog-timeline {
        padding-left: 20px;
    }
    
    .timeline-dot {
        left: -25px;
    }
    
    .timeline-header {
        flex-wrap: wrap;
    }
    
    .version-date {
        margin-left: 0;
        order: 3;
        width: 100%;
    }
    
    .update-types {
        grid-template-columns: 1fr;
    }
    
    .version-search {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .version-nav {
        padding: 15px;
    }
    
    .version-tabs {
        gap: 8px;
    }
    
    .version-tab {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .timeline-item {
        margin-bottom: 25px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .version-number {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .update-type-info {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3a6073;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #495057;
}

.empty-state p {
    margin-bottom: 20px;
}

/* 筛选结果计数器 */
.results-count {
    margin-bottom: 20px;
    padding: 10px 0;
    color: #6c757d;
    font-size: 14px;
    border-bottom: 1px solid #dee2e6;
}

/* 排序选项 */
.sort-options {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-size: 14px;
    color: #495057;
    margin: 0;
}

.sort-select {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background-color: white;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}