/* ========== 教程网格 ========== */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 5%;
}

.tutorial-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    transition: all 0.35s ease;
}

.tutorial-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.tutorial-img {
    width: 42%;
    min-height: 280px;
    object-fit: cover;
}

.tutorial-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tutorial-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 15px;
    font-size: 0.82rem;
    margin-bottom: 14px;
    width: fit-content;
}

.tutorial-badge.advanced {
    background: #F5E6D8;
    color: #B5865B;
}

.tutorial-title {
    font-size: 1.18rem;
    color: var(--text-dark);
    margin-bottom: 14px;
    font-weight: 500;
}

.tutorial-steps {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.tutorial-detail {
    display: none;
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.7;
    padding: 0;
    margin-top: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.tutorial-detail.show {
    display: block;
    max-height: 500px;
    padding-top: 5px;
}

.tutorial-detail-header {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.92rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutorial-detail-header::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: var(--gray-light);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-item:hover {
    background: var(--primary-light);
}

.step-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.step-text {
    flex: 1;
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
    padding-top: 2px;
}

/* 按钮展开状态 */
.toggle-detail.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ========== 小贴士区域 ========== */
.tips-section {
    background: var(--primary-light);
    padding: 55px 5%;
    margin-top: 55px;
}

.tips-container {
    max-width: 1050px;
    margin: 0 auto;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 35px;
}

.tip-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.tip-icon {
    width: 55px;
    height: 55px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.tip-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
}

.tip-title {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
}

.tip-text {
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .tutorials-grid {
        grid-template-columns: 1fr;
    }
    
    .tutorial-card {
        flex-direction: column;
    }
    
    .tutorial-img {
        width: 100%;
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}
