/* FAQ 详情：双栏，答案优先 */

.faq-single .faq-article {
    padding: 0;
}

.faq-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.wtea-faq-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
    line-height: 1.4;
}

.faq-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #999;
}

.faq-lead {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.faq-answer {
    margin-bottom: 28px;
}

.faq-answer-heading {
    font-size: 16px;
    font-weight: 650;
    color: #409eff;
    margin: 0 0 12px;
}

.faq-content,
.solution-content {
    line-height: 1.75;
    color: #444;
    max-width: 100%;
    overflow-x: hidden;
}

.faq-content a,
.solution-content a {
    display: inline-block;
    max-width: 100%;
}

.faq-content p,
.solution-content p {
    margin: 8px 0;
}

.faq-content img,
.solution-content img {
    max-height: 340px;
    width: auto;
    cursor: zoom-in;
}

.faq-content pre,
.faq-content code,
.solution-content pre,
.solution-content code {
    white-space: pre-wrap;
    max-width: 100%;
    overflow-x: auto;
}

.solution-content + .solution-content {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #e8e8e8;
}

.solution-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #409eff;
}

.faq-sidebar .sidebar-card {
    background: transparent;
    border: 1px solid #e9ecef;
    box-shadow: none;
}

.faq-popular-software {
    margin-bottom: 10px;
}

.faq-related {
    margin-bottom: 10px;
}

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

.faq-related-list li {
    border-bottom: 1px solid #f0f0f0;
}

.faq-related-list li:last-child {
    border-bottom: 0;
}

.faq-related-list a {
    display: block;
    padding: 7px 0;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.faq-related-list a:hover {
    color: #409eff;
}

.faq-donate {
    text-align: center;
    margin: 28px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #f0f0f0;
}

.faq-donate p {
    margin: 0 0 12px;
    color: #666;
}

.faq-comments {
    margin-top: 12px;
    padding: 0;
    overflow: hidden;
}

.faq-single .ra-sidebar-card {
    margin: 0 0 10px;
    background: transparent;
    border: 1px solid #e9ecef;
    box-shadow: none;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.feedback-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-donate {
    background: linear-gradient(135deg, #409eff, #337ecc);
    color: white;
    box-shadow: 0 3px 10px rgba(64, 158, 255, 0.3);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 158, 255, 0.4);
}

/* 灯箱期间不藏滚动条，避免页面横跳（与订阅/打赏/统一弹窗一致） */
html.has-faq-lightbox {
    scrollbar-gutter: stable;
}

.img-lightbox {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.img-lightbox.active {
    display: flex;
}

.img-lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .wtea-faq-title {
        font-size: 20px;
    }

    .feedback-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
