/* Changelog Page Styling - 符合网站主题的更新日志页面 */

.changelog-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--white) 50%, var(--background-color) 100%);
    padding-top: 80px;
    padding-bottom: 60px;
}

.changelog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.changelog-header {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-bottom: 3rem;
}

.changelog-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.changelog-header .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, #27ae60 50%, var(--primary-color) 100%);
    border-radius: 2px;
}

/* Version Card */
.version-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.version-card::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--white);
}

.version-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(44, 150, 120, 0.15);
    border-color: var(--primary-color);
}

/* Latest Version Highlight */
.version-card.latest {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(44, 150, 120, 0.2);
}

.version-card.latest::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(44, 150, 120, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(44, 150, 120, 0);
    }
}

/* Milestone Version */
.version-card.milestone {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
    border-color: #F39C12;
}

.version-card.milestone::before {
    background: #F39C12;
    border-color: #F39C12;
}

/* Version Badge */
.version-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.version-badge .badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.latest-badge {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3);
}

.milestone-badge {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.version-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.version-date {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.version-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}

/* Changes Section */
.changes-section {
    margin-bottom: 2rem;
}

.changes-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.changes-section .icon {
    font-size: 1.3rem;
}

.changes-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changes-section li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.6;
}

.changes-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.changes-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tech Details */
.tech-details {
    background: var(--background-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.tech-details h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tech-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.tech-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.tech-details strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Download Links */
.download-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: #1E7D68;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 150, 120, 0.3);
}

.download-link span {
    font-size: 1.2rem;
}

/* Footer */
.changelog-footer {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-light);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.more-info {
    color: var(--text-light);
    font-size: 1rem;
}

.more-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.more-info a:hover {
    border-bottom-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .changelog-page {
        padding-top: 70px;
    }

    .changelog-container {
        padding: 0 1rem;
    }

    .changelog-header h1 {
        font-size: 2rem;
    }

    .changelog-header .subtitle {
        font-size: 1rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 8px;
    }

    .version-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .version-card::before {
        left: -26px;
        top: 20px;
        width: 12px;
        height: 12px;
        border-width: 3px;
    }

    .version-card:hover {
        transform: none;
    }

    .version-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .version-number {
        font-size: 1.5rem;
    }

    .version-title {
        font-size: 1.25rem;
    }

    .changes-section h3 {
        font-size: 1.1rem;
    }

    .stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .download-links {
        flex-direction: column;
    }

    .download-link {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .download-links {
        display: none;
    }

    .changelog-page {
        background: white;
        padding-top: 0;
    }

    .version-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .timeline::before {
        display: none;
    }

    .version-card::before {
        display: none;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.version-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.version-card:nth-child(1) { animation-delay: 0.1s; }
.version-card:nth-child(2) { animation-delay: 0.2s; }
.version-card:nth-child(3) { animation-delay: 0.3s; }
.version-card:nth-child(4) { animation-delay: 0.4s; }
.version-card:nth-child(5) { animation-delay: 0.5s; }
.version-card:nth-child(6) { animation-delay: 0.6s; }

