/* 教程页面样式 */
.tutorial-container {
    display: flex;
    min-height: calc(100vh - 100px);
    background-color: #f5f5f5;
}

.sidebar {
    width: 280px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.search-box {
    padding: 0 15px 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.search-box button {
    position: absolute;
    right: 25px;
    top: 9px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.menu-list {
    padding: 0 15px;
}

.menu-category {
    margin-bottom: 20px;
}

.menu-category h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.menu-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-category li {
    margin-bottom: 5px;
}

.menu-category a {
    display: block;
    padding: 8px 10px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.menu-category a:hover {
    background-color: #f5f5f5;
    color: #4CAF50;
}

.menu-category a.active {
    background-color: #4CAF50;
    color: white;
}

.main-content {
    flex: 1;
    padding: 30px;
}

.header {
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    color: #856404;
    margin-bottom: 20px;
}

.welcome-image {
    margin-bottom: 30px;
}

.welcome-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recent-updates {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-updates h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.recent-updates ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-updates li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.recent-updates li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-updates a {
    color: #333;
    text-decoration: none;
}

.recent-updates a:hover {
    color: #4CAF50;
}

.date {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}

.tutorial-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.7;
}

.tutorial-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.tutorial-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.tutorial-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
}

.tutorial-content p {
    margin-bottom: 15px;
}

.tutorial-content pre {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 15px 0;
}

.tutorial-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.tutorial-content table th,
.tutorial-content table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.tutorial-content table th {
    background-color: #f5f5f5;
    text-align: left;
}

.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tutorial-navigation a {
    color: #4CAF50;
    text-decoration: none;
}

.tutorial-navigation a:hover {
    text-decoration: underline;
}

.tutorial-navigation span {
    color: #999;
}

.meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

.meta span {
    margin-right: 15px;
}

@media (max-width: 768px) {
    .tutorial-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        padding: 15px;
    }
}

/* 教程系统样式 */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.main-container {
    min-height: calc(100vh - 200px);
}

.footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid #e9ecef;
}

.tutorial-content {
    line-height: 1.8;
}

.tutorial-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.tutorial-content h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

.tutorial-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

.tutorial-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow: auto;
}

.tutorial-content code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
}

.tutorial-content blockquote {
    border-left: 4px solid #eee;
    padding-left: 1rem;
    color: #6c757d;
}

.notice {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
}

.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
} 