/* 教程页面专属样式 */
    max-width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    box-sizing: border-box;

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #ff6b9d, #ff3d7f);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 100%;
    box-sizing: border-box;
    opacity: 0.9;
}

/* 筛选和搜索区域 */
.filter-section {
    background: #fff5f8;
    padding: 30px 0;
    border-bottom: 1px solid #ffe0eb;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #ff6b9d;
    background: white;
    color: #ff6b9d;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: 600;
}

.filter-btn:hover {
    background: #ff6b9d;
    color: white;
}

.filter-btn.active {
    background: #ff6b9d;
    color: white;
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ff6b9d;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
}

.search-box i {
    position: absolute;
    right: 15px;
    max-width: 100%;
    box-sizing: border-box;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6b9d;
}

/* 教程列表 */
.tutorials-list {
    padding: 80px 0;
    background: white;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tutorial-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.tutorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.tutorial-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.tutorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tutorial-card:hover .tutorial-image img {
    transform: scale(1.1);
}

.difficulty {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 18px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.difficulty.beginner {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.difficulty.basic {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.difficulty.intermediate {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.difficulty.advanced {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.tutorial-content {
    padding: 20px;
}

.tutorial-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    background: #fff5f8;
    color: #ff6b9d;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tutorial-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.tutorial-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.tutorial-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #999;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.tutorial-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tutorial-meta i {
    color: #ff6b9d;
}

.btn-link {
    color: #ff6b9d;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-link:hover {
    color: #ff3d7f;
    gap: 8px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #ff6b9d;
    color: #ff6b9d;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 600;
}

.pagination a:hover,
.pagination a.active {
    background: #ff6b9d;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        justify-content: center;
    }

    .search-box {
        min-width: 100%;
    }

    .tutorials-grid {
        grid-template-columns: 1fr;
    }
}