/* 动画教学视频样式 */
.animation-videos-main {
    background: #f5f7fa;
    min-height: 100vh;
}

.anim-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.anim-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='2' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='80' cy='30' r='1.5' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='50' cy='60' r='2.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='10' cy='80' r='1' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='90' cy='85' r='2' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.anim-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.anim-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    position: relative;
}

.anim-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
    flex-wrap: wrap;
}

.anim-stat {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255,255,255,0.15);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.anim-stat i {
    font-size: 2rem;
}

.anim-stat strong {
    display: block;
    font-size: 1.5rem;
}

.anim-stat span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.anim-categories {
    background: white;
    padding: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.anim-cat-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.anim-cat-tab {
    padding: 0.6rem 1.2rem;
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    color: #4b5563;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.anim-cat-tab:hover {
    background: #e5e7eb;
}

.anim-cat-tab.active {
    background: #3b82f6;
    color: white;
}

.anim-list-section {
    padding: 3rem 0;
}

.anim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.anim-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.anim-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
}

.anim-preview {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1e3a8a, #0c4a6e);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.anim-preview svg {
    width: 100%;
    height: 100%;
}

.anim-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.anim-card:hover .anim-preview-overlay {
    opacity: 1;
}

.anim-play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.anim-duration-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.anim-info {
    padding: 1.5rem;
}

.anim-info h3 {
    font-size: 1.1rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.anim-info p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.anim-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f3f7;
    font-size: 0.85rem;
    color: #6b7280;
}

.anim-meta-row .level {
    padding: 0.2rem 0.6rem;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.anim-meta-row .level.intermediate {
    background: #fef3c7;
    color: #92400e;
}

.anim-meta-row .level.advanced {
    background: #fee2e2;
    color: #991b1b;
}

/* 播放器 */
.anim-player-modal {
    max-width: 1000px;
    width: 95%;
}

.anim-stage {
    width: 100%;
    height: 500px;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.anim-stage svg {
    width: 100%;
    height: 100%;
}

.anim-controls {
    background: #1e293b;
    color: white;
    padding: 1rem 1.5rem;
}

.anim-progress {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 1rem;
    cursor: pointer;
    overflow: hidden;
}

.anim-progress-bar {
    height: 100%;
    background: #3b82f6;
    width: 0%;
    transition: width 0.3s ease;
}

.anim-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.anim-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.anim-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

#animPlayBtn {
    background: #3b82f6;
    width: 44px;
    height: 44px;
}

#animPlayBtn:hover {
    background: #1d4ed8;
}

.anim-step-info {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.anim-description {
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.anim-description h4 {
    color: #111827;
    margin-bottom: 0.5rem;
}

.anim-description p {
    color: #4b5563;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .anim-hero h1 {
        font-size: 1.8rem;
    }

    .anim-stats {
        gap: 0.8rem;
    }

    .anim-stat {
        padding: 0.6rem 1rem;
    }

    .anim-stat strong {
        font-size: 1.2rem;
    }

    .anim-grid {
        grid-template-columns: 1fr;
    }

    .anim-stage {
        height: 300px;
    }
}
