/* 阿里云风格教程页面样式 */

/* 教程页面整体样式 */
.tutorial-page {
    background-color: #f5f5f5;
    padding: 20px 0 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 教程卡片样式 */
.tutorial-card {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.tutorial-card-header {
    background: #fff;
    color: #333;
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
}

.tutorial-card-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
}

.tutorial-card-title i {
    margin-right: 8px;
    font-size: 20px;
    color: #1890ff;
}

.tutorial-card-body {
    padding: 24px;
}

/* 教程部分样式 */
.tutorial-section {
    margin-bottom: 32px;
}

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

.tutorial-section-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
}

.tutorial-section-title i {
    margin-right: 8px;
    color: #1890ff;
}

/* 步骤样式 */
.tutorial-step {
    background: #fff;
    border-radius: 2px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-left: 3px solid #1890ff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

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

.tutorial-step-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.tutorial-step-title i {
    margin-right: 8px;
    color: #1890ff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(24, 144, 255, 0.1);
}

.tutorial-step-content {
    color: #666;
    line-height: 1.6;
}

.tutorial-step-content ul {
    padding-left: 20px;
    margin-top: 8px;
}

.tutorial-step-content li {
    margin-bottom: 4px;
}

/* 资源卡片样式 */
.resource-card {
    background: #fff;
    border-radius: 2px;
    border: 1px solid #e8e8e8;
    box-shadow: none;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.resource-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.resource-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.resource-card-title i {
    margin-right: 8px;
    color: #1890ff;
}

.resource-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-card-footer {
    padding: 12px 20px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

/* 下载链接样式 */
.download-link {
    display: inline-flex;
    align-items: center;
    background: #1890ff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s;
}

.download-link:hover {
    background: #40a9ff;
    color: #fff;
}

.download-link i {
    margin-right: 6px;
}

/* 教程链接样式 */
.tutorial-link {
    display: inline-flex;
    align-items: center;
    background: #1890ff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s;
}

.tutorial-link:hover {
    background: #40a9ff;
    color: #fff;
}

.tutorial-link i {
    margin-right: 6px;
}

/* 提示框样式 */
.tutorial-alert {
    border-radius: 2px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
}

.tutorial-alert i {
    margin-right: 10px;
    font-size: 16px;
    margin-top: 2px;
}

.tutorial-alert-success {
    background-color: #f6ffed;
    border-color: #b7eb8f;
    color: #52c41a;
}

.tutorial-alert-warning {
    background-color: #fffbe6;
    border-color: #ffe58f;
    color: #faad14;
}

.tutorial-alert-info {
    background-color: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
}

.tutorial-alert-danger {
    background-color: #fff2f0;
    border-color: #ffccc7;
    color: #f5222d;
}

/* 技巧卡片样式 */
.tip-card {
    background: #fff;
    border-radius: 2px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-left: 3px solid #1890ff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tip-card:last-child {
    margin-bottom: 0;
}

.tip-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.tip-card-title i {
    margin-right: 8px;
    color: #1890ff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(24, 144, 255, 0.1);
}

.tip-card-content {
    color: #666;
    line-height: 1.6;
}

/* 完成提示样式 */
.completion-alert {
    background: #f6ffed;
    color: #52c41a;
    border-radius: 2px;
    padding: 20px 24px;
    margin-top: 24px;
    border: 1px solid #b7eb8f;
    text-align: left;
}

.completion-alert h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.completion-alert h4 i {
    margin-right: 8px;
    font-size: 20px;
    color: #52c41a;
}

.completion-alert p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.6;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tutorial-card-title {
        font-size: 18px;
    }
    
    .tutorial-section-title {
        font-size: 16px;
    }
    
    .tutorial-step-title {
        font-size: 15px;
    }
    
    .resource-card-title {
        font-size: 15px;
    }
    
    .completion-alert h4 {
        font-size: 16px;
    }
    
    .completion-alert p {
        font-size: 13px;
    }
    
    .tutorial-card-body {
        padding: 16px;
    }
    
    .tutorial-section {
        margin-bottom: 24px;
    }
}

/* 自定义滚动条 */
.tutorial-card-body::-webkit-scrollbar {
    width: 6px;
}

.tutorial-card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0;
}

.tutorial-card-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 0;
}

.tutorial-card-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}