/* 导航菜单活动项样式 */
.help-navigation ul li.active-nav a {
    font-weight: bold;
    color: #4a6fa5;
    text-decoration: underline;
}

/* 确保部分的显示/隐藏有平滑过渡 */
.help-section {
    transition: opacity 0.3s ease;
}

/* 帮助页面样式 */
.help-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-header h1 {
    color: #4a6fa5;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.help-header p {
    color: #666;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
}

.help-navigation {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 15px;
}

.help-navigation ul {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-navigation li {
    margin: 5px 10px;
}

.help-navigation a {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.help-navigation a:hover {
    background-color: #e9f0f8;
}

.help-section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.help-section h2 {
    color: #4a6fa5;
    border-bottom: 2px solid #e9f0f8;
    padding-bottom: 10px;
    margin-top: 0;
}

.help-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.help-text {
    flex: 1;
    min-width: 300px;
}

.help-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.help-img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

.technique-item, .faq-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9f0f8;
}

.technique-item:last-child, .faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.technique-item h3, .faq-item h3 {
    color: #4a6fa5;
    margin-bottom: 10px;
}

.technique-img {
    max-width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.mode-card h3 {
    color: #4a6fa5;
    margin-top: 0;
    margin-bottom: 10px;
}

.mode-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.difficulty {
    flex: 1;
    min-width: 150px;
    background-color: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.difficulty h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #4a6fa5;
}

.difficulty p {
    margin: 0;
    color: #666;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.pattern-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pattern-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4a6fa5;
}

.pattern-img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

.pattern-item p {
    margin: 0;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .help-content {
        flex-direction: column;
    }
    
    .help-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .help-navigation li {
        margin: 5px 0;
    }
    
    .pattern-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}


/* 模式卡片样式优化 */
.pattern-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pattern-card h4 {
    color: #4a6fa5;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.pattern-card p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.5;
}

.pattern-img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
}

/* 默认图片占位符样式 */
.placeholder-img {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 6px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    margin: 15px 0;
}

/* 图片加载动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* 帮助导航优化 */
.help-navigation {
    position: sticky;
    top: 20px;
    z-index: 100;
}

.help-navigation ul li a.active {
    background-color: #4a6fa5;
    color: white;
    font-weight: bold;
}

/* 响应式优化 */
@media (max-width: 768px) {
    /* ... existing code ... */
    
    .pattern-card {
        padding: 15px;
    }
    
    .help-navigation {
        position: static;
    }
}