/* 买U教程页面样式 */

.tutorial-main {
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    background: #f5f5f5;
}

.tutorial-container {
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 标签页切换 */
.tutorial-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background: #fafafa;
}

.tutorial-tab {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.tutorial-tab:hover {
    background: #f0f0f0;
    color: #409eff;
}

.tutorial-tab.active {
    color: #409eff;
    border-bottom-color: #409eff;
    background: #fff;
}

.tutorial-tab svg {
    width: 18px;
    height: 18px;
}

/* 教程内容区域 */
.tutorial-content {
    padding: 40px 20px;
}

.tutorial-content.hidden {
    display: none;
}

/* 教程说明文字 */
.tutorial-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #333;
}

.tutorial-description p {
    margin-bottom: 12px;
    font-size: 15px;
}

.tutorial-description p:last-child {
    margin-bottom: 0;
}

.tutorial-note {
    color: #ff6600;
    font-weight: 500;
}

/* 视频播放器容器 */
.video-wrapper {
    width: 100%;
    max-width: 1040px;
    height: 320px;
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#tutorialVideo {
    width: 100%;
    height: 320px;
    display: block;
    outline: none;
    object-fit: contain;
}

/* 图文教程内容 */
.graphic-tutorial {
    padding: 0;
}

.tutorial-step {
    margin-bottom: 40px;
}

.tutorial-step-text {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333;
}

.tutorial-step-text p {
    margin-bottom: 10px;
    font-size: 15px;
}

.tutorial-step-text p:last-child {
    margin-bottom: 0;
}

.tutorial-step-note {
    margin: 20px 0;
    padding: 15px;
    background: #fff7e6;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    line-height: 1.8;
    color: #666;
}

.tutorial-step-note p {
    margin: 0;
    font-size: 14px;
}

.tutorial-step-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px;
    padding: 14px 24px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}

.tutorial-step-btn:hover {
    background: #66b1ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.4);
}

.tutorial-images {
    width: 100%;
    max-width: 1040px;
    height: 406px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

.tutorial-image {
    width: calc(50% - 10px);
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tutorial-main {
        padding: 20px 10px;
    }

    .tutorial-content {
        padding: 20px;
    }

    .tutorial-tab {
        padding: 12px 16px;
        font-size: 14px;
    }

    .tutorial-description p {
        font-size: 14px;
    }
}

