/* 攻略页面特定样式 */

/* 粒子背景 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* 模块卡片样式 */
.module-card {
    transition: all 0.3s ease;
    border-color: transparent;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.module-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.module-card.completed {
    border-color: #7FB069;
}

/* 学习内容区域 */
.learning-content {
    display: none;
}

.learning-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 视频播放按钮 */
.video-play-btn {
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.video-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.video-play-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 视频播放区域 */
.video-container {
    margin: 1.5rem 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video,
.video-container iframe {
    width: 100%;
    height: auto;
    min-height: 300px;
}

/* 进度环样式 */
.progress-ring {
    transition: stroke-dashoffset 0.5s ease;
}

/* 快速提示卡片 */
.tip-card {
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateX(5px);
}

/* 侧边栏样式 */
.sidebar-section {
    margin-bottom: 1.5rem;
}

/* 学习成就板块 - 确保不被遮挡 */
.achievement-section {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

/* 按钮状态样式 */
.module-card button.bg-warm-orange {
    background-color: #FF6B35 !important;
}

.module-card button.bg-gray-300 {
    background-color: #d1d5db !important;
}

.module-card button:disabled {
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar-section {
        position: relative !important;
        top: auto !important;
    }

    .video-container,
    .video-container video,
    .video-container iframe {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .module-card {
        text-align: center;
    }

    .video-container {
        margin: 1rem 0;
    }

    .tip-card {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .module-card {
        padding: 1rem;
    }

    .video-container,
    .video-container video,
    .video-container iframe {
        min-height: 220px;
    }

    .video-play-btn {
        width: 100%;
        justify-content: center;
    }

    .tip-card {
        text-align: left;
    }

    .achievement-section {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .video-container,
    .video-container video,
    .video-container iframe {
        min-height: 200px;
    }

    .module-card button {
        width: 100%;
    }
}

