/* 更新日志页面样式 */

.changelog-main {
    min-height: 70vh;
    padding: clamp(20px, 5vw, 60px) 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(18, 18, 18, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.changelog-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/back.png') center/cover no-repeat fixed;
    opacity: 0.1;
    z-index: -1;
}

.changelog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 40px);
    position: relative;
    z-index: 1;
}

/* 页面标题区域 */
.changelog-header {
    text-align: center;
    margin-bottom: clamp(30px, 6vw, 60px);
    padding: clamp(20px, 4vw, 40px) 0;
    position: relative;
}

.changelog-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(80px, 15vw, 120px);
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    border-radius: 3px;
}

.changelog-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: clamp(10px, 2vw, 20px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.changelog-title i {
    color: #3498db;
    font-size: 0.9em;
}

.changelog-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
}

/* 更新日志内容区域 */
.changelog-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: clamp(20px, 4vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    min-height: 400px;
    position: relative;
}

/* 加载指示器 */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: rgba(255, 255, 255, 0.7);
}

.loading-indicator i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #3498db;
}

.loading-indicator p {
    font-size: 1rem;
}

/* Markdown内容样式 */
.changelog-content h1 {
    font-size: 2rem;
    color: #fff;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.5);
}

.changelog-content h2 {
    font-size: 1.5rem;
    color: #3498db;
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 3px solid #3498db;
}

.changelog-content h3 {
    font-size: 1.2rem;
    color: #74c0fc;
    margin: 20px 0 10px;
}

.changelog-content h4, 
.changelog-content h5, 
.changelog-content h6 {
    color: #a5d8ff;
    margin: 15px 0 8px;
}

.changelog-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
}

.changelog-content ul, 
.changelog-content ol {
    margin: 15px 0 15px 25px;
}

.changelog-content li {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    line-height: 1.5;
}

.changelog-content li::marker {
    color: #3498db;
}

.changelog-content a {
    color: #74c0fc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.changelog-content a:hover {
    color: #3498db;
    text-decoration: underline;
}

.changelog-content code {
    background: rgba(52, 152, 219, 0.2);
    color: #a5d8ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.changelog-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.changelog-content pre code {
    background: none;
    padding: 0;
    color: #e9ecef;
}

.changelog-content blockquote {
    border-left: 3px solid #3498db;
    padding-left: 15px;
    margin: 15px 0;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.changelog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(0, 0, 0, 0.2);
}

.changelog-content th,
.changelog-content td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.changelog-content th {
    background: rgba(52, 152, 219, 0.2);
    color: #fff;
    font-weight: 600;
}

.changelog-content td {
    color: rgba(255, 255, 255, 0.8);
}

.changelog-content tr:hover td {
    background: rgba(52, 152, 219, 0.1);
}

/* 版本标签样式 */
.version-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 10px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.version-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

/* 功能分类标签 */
.feature-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 8px;
    font-weight: 500;
}

.feature-tag.new {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.feature-tag.improve {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.feature-tag.fix {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* 页面底部信息 */
.changelog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.version-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.current-version {
    color: #3498db;
    font-weight: 600;
}

.last-updated {
    color: rgba(255, 255, 255, 0.6);
}

.changelog-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(52, 152, 219, 0.2);
    color: #74c0fc;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(52, 152, 219, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* 返回顶部按钮 */
.back-to-top-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .changelog-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .changelog-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .changelog-title {
        font-size: 1.8rem;
    }
    
    .changelog-content {
        padding: 20px 15px;
    }
    
    .changelog-content h1 {
        font-size: 1.5rem;
    }
    
    .changelog-content h2 {
        font-size: 1.2rem;
    }
}

/* 暗色模式适配 */
.dark-mode .changelog-main {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
}

.dark-mode .changelog-content {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .changelog-content h1 {
    color: #e0e0e0;
}

.dark-mode .changelog-content h2 {
    color: #74c0fc;
}

.dark-mode .changelog-content h3,
.dark-mode .changelog-content h4,
.dark-mode .changelog-content h5,
.dark-mode .changelog-content h6 {
    color: #a5d8ff;
}

.dark-mode .changelog-content p {
    color: rgba(224, 224, 224, 0.9);
}

.dark-mode .changelog-content li {
    color: rgba(224, 224, 224, 0.85);
}

.dark-mode .changelog-content a {
    color: #74c0fc;
}

.dark-mode .changelog-content code {
    background: rgba(116, 192, 252, 0.2);
    color: #a5d8ff;
}

.dark-mode .changelog-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .changelog-content blockquote {
    color: rgba(224, 224, 224, 0.7);
}

.dark-mode .changelog-content table {
    background: rgba(0, 0, 0, 0.3);
}

.dark-mode .changelog-content th {
    background: rgba(116, 192, 252, 0.2);
    color: #e0e0e0;
}

.dark-mode .changelog-content td {
    color: rgba(224, 224, 224, 0.8);
}

.dark-mode .changelog-content tr:hover td {
    background: rgba(116, 192, 252, 0.1);
}

.dark-mode .version-info p {
    color: rgba(224, 224, 224, 0.7);
}

.dark-mode .action-btn {
    background: rgba(116, 192, 252, 0.2);
    color: #a5d8ff;
    border: 1px solid rgba(116, 192, 252, 0.3);
}

.dark-mode .action-btn:hover {
    background: rgba(116, 192, 252, 0.3);
    color: #fff;
}

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

.changelog-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.changelog-content > *:nth-child(1) { animation-delay: 0.1s; }
.changelog-content > *:nth-child(2) { animation-delay: 0.2s; }
.changelog-content > *:nth-child(3) { animation-delay: 0.3s; }
.changelog-content > *:nth-child(4) { animation-delay: 0.4s; }
.changelog-content > *:nth-child(5) { animation-delay: 0.5s; }