.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.download-btn {
    transition: all 0.3s ease;
}
.download-btn:hover {
    transform: scale(1.05);
}
.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    margin-right: 15px;
    line-height: 1.2;
    font-size: 20px;
    flex-shrink: 0;
}
.tutorial-container {
    max-width: 1200px;
    margin: 0 auto;
}
.file-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.floating-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 50;
    transition: all 0.3s ease;
    gap: 0.5rem;
}
.floating-controls:hover {
    right: 0;
}
.floating-controls:hover .qq-group-btn {
    opacity: 1;
    transform: translateX(0);
}
.floating-controls:hover .language-switch {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.qq-group-btn {
    background: #12B7F5;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.download-btn {
    transition: all 0.3s ease;
}
.download-btn:hover {
    transform: scale(1.05);
}
/* 文件卡片悬停动画 */
.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.qq-group-btn:hover {
    background: #0E9BD5;
    transform: scale(1.05);
}
.qq-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}
.language-switch {
    background: white;
    color: #4B5563;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    pointer-events: none;
}
header:hover .language-switch,
header:focus-within .language-switch {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.language-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* 下载进度条动画 */
#downloadProgress {
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .floating-controls .language-switch {
        display: flex;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        padding: 0.5rem;
        width: 40px;
        justify-content: center;
    }
    .floating-controls .language-switch span {
        display: none;
    }
    .floating-controls .qq-group-btn {
        padding: 0.5rem;
        width: 40px;
        justify-content: center;
    }
    .floating-controls .qq-group-btn span {
        display: none;
    }
    .file-icon {
        font-size: 2rem;
    }
    .file-card {
        margin-bottom: 1.5rem;
    }
    .step-number {
        width: 32px;
        height: 32px;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    .step-container {
        flex-direction: column !important;
    }
    .step-content {
        width: 100% !important;
    }
    h1 {
        font-size: 2rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    h3 {
        font-size: 1.2rem !important;
    }
    button, .download-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    .floating-controls {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    /* 社交媒体图标移动端适配 */
    @media (max-width: 767px) {
        .container .flex.space-x-4 {
            flex-direction: row;
            justify-content: center;
            margin-top: 1rem;
        }
        .container .flex.space-x-4 a {
            font-size: 1.2rem;
            padding: 0.5rem;
        }
    }
    .qq-group-btn, .language-switch {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .tutorial-container, .bg-white {
        padding: 1.5rem !important;
    }
    .grid {
        gap: 1rem !important;
    }
    .faq-toggle {
        padding: 1rem !important;
    }
    footer .flex {
        flex-direction: column;
        text-align: center;
    }
    footer .flex > div {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem !important;
    }
    h2 {
        font-size: 1.3rem !important;
    }
    .file-icon {
        font-size: 1.5rem;
    }
}
.invisible-link {
    color: #2563eb !important;
    transition: color 0.2s ease;
}

.invisible-link:hover {
    color: #1d4ed8 !important;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .invisible-link {
        display: inline-block;
        padding: 8px 16px;
        background-color: #2563eb;
        border-radius: 6px;
        color: white !important;
    }
    
    .invisible-link:hover {
        background-color: #1d4ed8;
        text-decoration: none;
    }
}


@media (max-width: 640px) {
    .text-4xl { font-size: 2rem !important; }
    .text-xl { font-size: 1.125rem !important; }
    .text-2xl { font-size: 1.5rem !important; }
}