/* 教程页面特定样式 */





/* 教程页面英雄区域 */
.tutorial-hero {
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.tutorial-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.15), rgba(0, 180, 216, 0.15));
    z-index: -1;
    animation: gradientShift 8s infinite alternate;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.tutorial-hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px var(--glow-color);
    letter-spacing: 1px;
}

.tutorial-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* 教程内容布局 */
.tutorial-content {
    display: flex;
    gap: 30px;
    padding: 40px 0 80px;
}

/* 侧边栏样式 */
.tutorial-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.tutorial-sidebar h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    letter-spacing: 0.5px;
    text-align: center;
}

.tutorial-sidebar ul {
    list-style: none;
}

.tutorial-sidebar ul li {
    margin-bottom: 15px;
}

.tutorial-sidebar ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    background: rgba(20, 20, 40, 0.4);
}

.tutorial-sidebar ul li a:hover {
    color: var(--text-color);
    background-color: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tutorial-sidebar ul li a.active {
    color: var(--text-color);
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.2), rgba(0, 180, 216, 0.2));
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

/* 主内容区域 */
.tutorial-main {
    flex: 1;
}

/* 教程卡片样式 */
.tutorial-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.tutorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.05), rgba(0, 180, 216, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.tutorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(138, 43, 226, 0.3);
}

.tutorial-card:hover::before {
    opacity: 1;
}

.tutorial-header {
    padding: 25px 30px;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.15), rgba(0, 180, 216, 0.15));
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tutorial-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 128, 0.1), rgba(255, 140, 0, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tutorial-card:hover .tutorial-header::after {
    opacity: 1;
}

.tutorial-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.2), rgba(0, 180, 216, 0.2));
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--shadow-color);
    border: 2px solid rgba(138, 43, 226, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.tutorial-card:hover .tutorial-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px var(--glow-color);
    color: var(--text-color);
    background: var(--gradient-primary);
}

.tutorial-header h2 {
    font-size: 2rem;
    margin: 0;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.tutorial-card:hover .tutorial-header h2 {
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.tutorial-body {
    padding: 30px;
    position: relative;
    z-index: 2;
}

/* 教程笔记样式 */
.tutorial-note {
    background: linear-gradient(to right, rgba(138, 43, 226, 0.1), rgba(0, 180, 216, 0.05));
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 0 16px 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tutorial-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.05), rgba(0, 180, 216, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.tutorial-note:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-left-width: 6px;
}

.tutorial-note:hover::before {
    opacity: 1;
}

.tutorial-note i {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 3px;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.2), rgba(0, 180, 216, 0.2));
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.tutorial-note:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--text-color);
    background: var(--gradient-primary);
    box-shadow: 0 0 15px var(--glow-color);
}

.tutorial-note p {
    margin: 0;
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
    color: var(--text-color);
}

/* 教程步骤样式 */
.tutorial-steps {
    margin-bottom: 25px;
}

.tutorial-steps h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.tutorial-steps ol {
    padding-left: 20px;
}

.tutorial-steps ol li {
    margin-bottom: 10px;
    padding-left: 10px;
    position: relative;
}

.tutorial-steps ol li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* 教程图片样式 */
.tutorial-image {
    margin-top: 25px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tutorial-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .tutorial-content {
        flex-direction: column;
    }
    
    .tutorial-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }
    
    .tutorial-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tutorial-sidebar ul li {
        margin-bottom: 0;
    }
    
    .tutorial-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .tutorial-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tutorial-hero h1 {
        font-size: 2.2rem;
    }
}

/* 激活状态的导航链接 */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* 滚动到锚点时的平滑过渡 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* 确保锚点滚动时不被导航栏遮挡 */
}

/* 教程卡片锚点高亮效果 */
.tutorial-card:target {
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* 教程图片占位符 */
.tutorial-image svg {
    width: 100%;
    height: 300px;
    background-color: rgba(108, 92, 231, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}