/* 教程容器 */
.tutorial-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 头部样式 */
.tutorial-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
    border-bottom: 2px solid #eee;
}

.tutorial-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.meta-info {
    color: #7f8c8d;
    font-size: 0.9em;
}

.meta-info span {
    margin: 0 15px;
}

/* 目录导航 */
.toc {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.toc h2 {
    color: #3498db;
    margin-bottom: 15px;
}

.toc ol {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.toc li {
    counter-increment: step-counter;
    margin: 12px 0;
}

.toc li::before {
    content: counter(step-counter) ". ";
    color: #3498db;
    font-weight: bold;
    margin-right: 8px;
}

.toc a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.toc a:hover {
    color: #3498db;
}

/* 步骤内容 */
.step {
    margin: 50px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: #3498db;
    color: white;
    border-radius: 50%;
    font-size: 1.2em;
    margin-right: 20px;
}




.step-body.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.step-body.reverse > * {
    direction: ltr;
}

.step-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.step-text {
    padding: 20px;
}

.material-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.material-table th,
.material-table td {
    padding: 12px;
    border: 1px solid #eee;
    text-align: left;
}

.material-table th {
    background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .step-body {
        grid-template-columns: 1fr;
    }
    
    .step-body.reverse {
        direction: ltr;
    }
    
    .step-img {
        height: 250px;
    }
    
    .tutorial-header h1 {
        font-size: 2rem;
    }
}

/* 联系按钮 */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}
