/* FAQ页面特定样式 */
.dev_page_nav_wrap {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dev_page_nav_wrap ul {
    margin: 0;
    padding-left: 20px;
}

.dev_page_nav_wrap a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.dev_page_nav_wrap a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.dev_page_nav_wrap strong {
    color: #1e293b;
    font-size: 1.1em;
}

/* FAQ内容样式 */
.entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 1.5em;
}

.entry-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #334155;
    font-size: 1.2em;
}

.entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #2563eb;
    padding: 15px;
    margin: 20px 0;
}

.entry-content blockquote p {
    margin: 0;
    color: #475569;
}

.entry-content ul, 
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 8px;
    color: #475569;
}

.entry-content hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

/* 锚点链接样式 */
.anchor {
    display: block;
    position: relative;
    top: -80px;
    visibility: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dev_page_nav_wrap {
        margin: 15px 0;
        padding: 10px;
    }
    
    .entry-content h3 {
        font-size: 1.3em;
    }
    
    .entry-content h4 {
        font-size: 1.1em;
    }
}

/* FAQ侧边栏样式 */
.faq-sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    width: 300px;
    flex-shrink: 0;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.faq-toc {
    margin-bottom: 20px;
}

.faq-toc .widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.faq-nav {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.faq-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-toc-list .toc-h2 {
    margin-bottom: 10px;
}

.faq-toc-list .toc-h2 > a {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.faq-toc-list .toc-h3-list {
    list-style: none;
    margin: 5px 0 10px 15px;
    padding: 0;
}

.faq-toc-list .toc-h3 > a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 3px 0;
    transition: color 0.3s;
}

.faq-toc-list .toc-h3 > a:hover {
    color: #007bff;
}

/* 当前活动项高亮 */
.faq-toc-list .toc-h2 > a.active,
.faq-toc-list .toc-h3 > a.active {
    color: #007bff;
    font-weight: 500;
}

/* 滚动条样式 */
.faq-nav::-webkit-scrollbar {
    width: 4px;
}

.faq-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.faq-nav::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.faq-nav::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.single-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    position: relative;
}

.single-main {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 1200px) {
    .single-container {
        max-width: 100%;
        padding: 0 10px;
    }
    .faq-sidebar {
        display: none;
    }
} 