/* 下载页面特定样式 */
.download-page {
    padding-top: 100px;
    min-height: calc(100vh - 200px);
}

.download-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out;
}

.download-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.download-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.version-list {
    margin-top: 40px;
}

.version-item {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

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

.version-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4f46e5;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    position: relative;
}

.version-header:after {
    content: '+';
    font-size: 1.5rem;
    color: #4f46e5;
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s ease;
}

.version-item.expanded .version-header:after {
    transform: rotate(45deg);
}

.version-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
}

.version-date {
    font-size: 1rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 30px;
}

.version-changes {
    margin-bottom: 20px;
    overflow: hidden;
    max-height: none;
    transition: max-height 0.5s ease;
}

.version-changes ul {
    padding-left: 20px;
}

.version-changes li {
    margin-bottom: 8px;
    line-height: 1.6;
    position: relative;
}

.version-changes li::before {
    content: '•';
    color: #4f46e5;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #4f46e5;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-button:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.download-button svg {
    width: 20px;
    height: 20px;
}

.supported-models-banner {
    background: #f1f5f9;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 4px solid #4f46e5;
    animation: fadeIn 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.supported-models-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.supported-models-banner p {
    color: #6b7280;
    line-height: 1.6;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

.back-to-home:hover {
    color: #4338ca;
    transform: translateX(-5px);
}

.back-to-home svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-home:hover svg {
    transform: translateX(-3px);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .download-title {
        font-size: 2rem;
    }
    
    .download-subtitle {
        font-size: 1.1rem;
    }
    
    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .version-item {
        padding: 20px;
    }
    
    .download-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .download-title {
        font-size: 1.75rem;
    }
    
    .download-subtitle {
        font-size: 1rem;
    }
    
    .version-name {
        font-size: 1.25rem;
    }
    
    .supported-models-banner {
        padding: 20px;
    }
    
    .supported-models-banner h3 {
        font-size: 1.25rem;
    }
}

/* 波纹效果 */
.download-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.download-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}