/* guide.css - Clash 教程中心专属样式 (紫色基调) */

.guide-hero {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 70px 20px 40px;
}

.guide-hero .badge {
    display: inline-block;
    background-color: #f5f3ff;
    color: #7c3aed;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid #ddd6fe;
    margin-bottom: 22px;
}

.guide-hero h1 {
    font-size: 2.5rem;
    color: #0f0a2e;
    line-height: 1.35;
    margin-bottom: 22px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.guide-hero .hero-desc {
    font-size: 1.06rem;
    color: #475569;
    max-width: 780px;
    margin: 0 auto 32px;
    text-align: justify;
    text-indent: 2em;
    line-height: 1.75;
}

.guide-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* 学习路径卡片 */
.path-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.path-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 22px;
    position: relative;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.path-card:hover {
    border-color: #ddd6fe;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.path-num {
    position: absolute;
    top: -14px;
    left: 20px;
    background: #7c3aed;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

.path-card h3 {
    margin-top: 8px;
    margin-bottom: 16px;
    color: #0f0a2e;
    font-size: 1.2rem;
}

.path-card ul {
    list-style: none;
}

.path-card li {
    margin-bottom: 10px;
}

.path-card li a {
    color: #334155;
    font-size: 0.94rem;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 0.2s, border-color 0.2s;
}

.path-card li a:hover {
    color: #7c3aed;
    border-bottom-color: #c4b5fd;
}

/* 热门教程 */
.hot-tutorials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.tutorial-card {
    background: #faf9ff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tutorial-card:hover {
    border-color: #ddd6fe;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.tutorial-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tutorial-card h4 {
    font-size: 1rem;
    color: #0f0a2e;
    margin-bottom: 6px;
}

.tutorial-card p {
    font-size: 0.88rem;
    color: #475569;
    text-indent: 0;
    margin: 0;
}

/* 互动步骤 */
.interactive-steps {
    margin: 28px 0;
}

.step-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    background: #faf9ff;
    transition: background 0.2s;
}

.step-header:hover {
    background: #f5f3ff;
}

.step-marker {
    width: 28px;
    height: 28px;
    background: #7c3aed;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-header h3 {
    flex: 1;
    font-size: 1.05rem;
    color: #0f0a2e;
    margin: 0;
}

.toggle-icon {
    font-size: 1.4rem;
    font-weight: 700;
    color: #7c3aed;
    width: 24px;
    text-align: center;
}

.step-body {
    padding: 0 20px 20px 62px;
    display: none;
    color: #334155;
    font-size: 0.95rem;
}

.step-body p {
    text-indent: 0;
    margin: 0;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.video-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.video-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.video-thumb {
    background: #f5f3ff;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-icon {
    font-size: 2.5rem;
    color: #7c3aed;
    opacity: 0.8;
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.video-card h4 {
    padding: 14px 16px 4px;
    font-size: 1rem;
    color: #0f0a2e;
}

.video-card p {
    padding: 0 16px 16px;
    font-size: 0.88rem;
    color: #475569;
    text-indent: 0;
    margin: 0;
}

/* 错误清单 */
.error-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.error-item {
    background: #fff;
    border-left: 4px solid #f59e0b;
    padding: 16px 18px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.error-code {
    font-weight: 700;
    color: #b45309;
    display: block;
    margin-bottom: 6px;
}

.error-item p {
    font-size: 0.9rem;
    color: #334155;
    text-indent: 0;
    margin: 0;
}

/* 资源网格 */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.resource-card {
    background: #faf9ff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
    border-color: #ddd6fe;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.resource-card h4 {
    font-size: 1.05rem;
    color: #0f0a2e;
    margin-bottom: 8px;
}

.resource-card p {
    font-size: 0.9rem;
    color: #475569;
    text-indent: 0;
    margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .guide-hero h1 {
        font-size: 1.8rem;
    }
    .path-cards {
        grid-template-columns: 1fr;
    }
    .hot-tutorials {
        grid-template-columns: 1fr;
    }
    .step-body {
        padding-left: 20px;
    }
}