.ellipsis-3 {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal !important;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: #FFFFFF;
    border-radius: 8px;
    border-bottom: 1px solid #F0F0F0;
    /* padding: 14px 14px 4px; */
     padding: 0px 14px 4px;
    transition: box-shadow 0.2s;
}
.faq-item:first-child {
    /* border-top: 1px solid #F0F0F0; */
}
.faq-item:active {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.faq-question {
    display: flex;
    align-items: flex-start;
}
.faq-q-mark {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--themeBtnBgColor);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 1px;
}
.faq-q-text {
    flex: 1;
    font-size: 15px;
    color: #262626;
    line-height: 22px;
    font-weight: 500;
}
.faq-q-text a{
    color: #262626;
}

/* 回答数入口：置于问题下方右侧 */
.faq-q-count-row {
    text-align: right;
    margin: -8px 0 2px;
}
.faq-q-count-row i{
    font-size: 18px;
    display: inline-block;
}
.faq-q-count {
    display: inline-block;
    font-size: 12px;
    color: #8C8C8C;
    line-height: 18px;
    padding-right: 2px;
}
.faq-q-count:active {
    color: var(--themeBtnBgColor);
}

/* 回答列表 */
.faq-answers {
    display: flex;
    flex-direction: column;
}
.faq-answers2 {
    margin-top: 10px;
    border-top: 1px dashed #E8E8E8;
    padding-top: 10px;
}
.faq-answer {
    display: flex;
    align-items: flex-start;
    padding: 8px 0 12px;
}
.faq-answer + .faq-answer {
    border-top: 1px dashed var(--borderColor);
    padding-top: 12px;
    margin-top: -2px;
}
.faq-a-mark {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: rgba(69, 122, 230, 0.12);
    color: var(--themeBtnBgColor);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 1px;
}
.faq-answer-inner {
    flex: 1;
    font-size: 13px;
    color: #595959;
    line-height: 22px;
}

/* 提问引导行 */
.faq-ask-entry {
    text-align: center;
    font-size: 13px;
    color: #8C8C8C;
    margin-top: 17px;
    line-height: 22px;
}
.faq-ask-btn {
    border: none;
    background: none;
    color: var(--themeBtnBgColor);
    font-size: 13px;
    padding: 0 2px;
    vertical-align: baseline;
}
 /* ===== 去提问 ===== */
.ask-footer {
    text-align: center;
    padding: 16px 0 4px;
    margin-top: 10px;
}
.ask-footer .ask-btn {
    height: 40px;
    padding: 0 36px;
    border: 1px solid var(--themeBtnBgColor);
    border-radius: 20px;
    background: #FFFFFF;
    color: var(--themeBtnBgColor);
    font-size: 14px;
}
.ask-footer .ask-btn:active { opacity: 0.8; }
.ask-footer .ask-tip {
    font-size: 12px;
    color: #8C8C8C;
    margin-top: 10px;
}

/* 查看更多 */
.faq-more-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}
.faq-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 28px;
    border: 1px solid #D9D9D9;
    border-radius: 18px;
    background: #FFFFFF;
    color: #595959;
    font-size: 14px;
}
.faq-more-btn:active {
    color: var(--themeBtnBgColor);
    border-color: var(--themeBtnBgColor);
}

/* ===== 提问面板（底部弹出，H5交互习惯） ===== */
.faq-ask-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10000001;
}
.faq-ask-modal.show {
    display: block;
}
.faq-ask-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.25s;
}
.faq-ask-modal.show .faq-ask-mask {
    opacity: 1;
}
.faq-ask-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 750px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%);
    transition: transform 0.25s ease-out;
}
.faq-ask-modal.show .faq-ask-sheet {
    transform: translateY(0);
}
.faq-ask-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 16px 0;
}
.faq-ask-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}
.faq-ask-close {
    position: absolute;
    right: 16px;
    top: 14px;
    width: 22px;
    height: 22px;
}
.faq-ask-close::before,
.faq-ask-close::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 10px;
    width: 12px;
    height: 2px;
    background: #8C8C8C;
    border-radius: 1px;
}
.faq-ask-close::before { transform: rotate(45deg); }
.faq-ask-close::after { transform: rotate(-45deg); }

.faq-ask-body {
    padding: 14px 16px 20px;
}
.faq-ask-field {
    margin-bottom: 14px;
}
.faq-ask-label {
    display: block;
    font-size: 14px;
    color: #262626;
    margin-bottom: 6px;
    font-weight: 500;
}
.faq-ask-label em {
    color: #FF4D4F;
    font-style: normal;
    margin-right: 2px;
}
.faq-ask-textarea,
.faq-ask-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    background: #FFFFFF;
    font-size: 14px;
    color: #262626;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    -webkit-appearance: none;
}
.faq-ask-textarea {
    height: 84px;
    padding: 10px 12px;
    resize: none;
    line-height: 22px;
}
.faq-ask-input {
    height: 42px;
    padding: 0 12px;
}
.faq-ask-textarea:focus,
.faq-ask-input:focus {
    border-color: var(--themeBtnBgColor);
}
.faq-ask-textarea::placeholder,
.faq-ask-input::placeholder {
    color: #BFBFBF;
}
.faq-ask-tip {
    font-size: 12px;
    color: #8C8C8C;
    margin-bottom: 14px;
}
.faq-ask-submit {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 22px;
    background: var(--themeBtnBgColor);
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.faq-ask-submit:active {
    opacity: 0.85;
}
.faq-ask-error {
    font-size: 12px;
    color: #FF4D4F;
    margin-top: 6px;
    display: none;
}
.faq-ask-error.show {
    display: block;
}

/* .wenda-detail */
.wenda-detail{
    margin: 0;
}
/* ===== 问题卡片 ===== */
.detail-question-card {
    background: #FFFFFF;
    padding: 16px 14px;
    border-bottom: 1px solid #F0F0F0;
}
.detail-question {
    display: flex;
    align-items: flex-start;
}
.faq-q-mark {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--themeBtnBgColor);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 3px;
}
.faq-q-text {
    flex: 1;
    font-size: 17px;
    color: #262626;
    line-height: 25px;
    font-weight: 600;
}
.detail-meta {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding-left: 30px;
    font-size: 12px;
    color: #8C8C8C;
    line-height: 18px;
}
.detail-meta .meta-item {
    margin-right: 16px;
}
.detail-meta .meta-dot {
    margin: 0 2px;
}

/* ===== 回答列表 ===== */
.answer-section {
    padding: 14px 12px 4px;
}
.answer-section-title {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    padding: 0 2px 10px;
}
.answer-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(69, 122, 230, 0.12);
    color: var(--themeBtnBgColor);
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}
.answer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.answer-item {
    background: #FFFFFF;
    border-radius: 8px;
    border-bottom: 1px solid #F0F0F0;
    padding: 14px;
}

.answer-item:last-child {
    border-bottom: none;
}
.answer-content {
    display: flex;
    align-items: flex-start;
}
.faq-a-mark {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: rgba(69, 122, 230, 0.12);
    color: var(--themeBtnBgColor);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
    margin-top: 3px;
}
.answer-text {
    flex: 1;
    font-size: 14px;
    color: #595959;
    line-height: 23px;
}
.answer-footer {
    margin-top: 8px;
    text-align: right;
}
.answer-time {
    font-size: 12px;
    color: #8C8C8C;
}

/* ===== 我来回答 表单 ===== */
.answer-form-section {
    margin-top: 20px;
    padding: 0 12px;
}
.answer-form-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 16px 14px;
}
.answer-form-title {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 12px;
}
.answer-form-textarea {
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #262626;
    line-height: 22px;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.answer-form-textarea:focus,
.answer-form-input:focus {
    border-color: var(--themeBtnBgColor);
}
.answer-form-textarea::placeholder,
.answer-form-input::placeholder {
    color: #BFBFBF;
}
.answer-form-count {
    margin-top: 4px;
    text-align: right;
    font-size: 12px;
    color: #8C8C8C;
}
.answer-form-input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    color: #262626;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    margin-top: 12px;
    -webkit-appearance: none;
}
.answer-form-submit {
    width: 100%;
    height: 42px;
    margin-top: 12px;
    border: none;
    border-radius: 21px;
    background: var(--themeBtnBgColor);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.answer-form-submit:active {
    opacity: 0.85;
}
.answer-form-tip {
    font-size: 12px;
    color: #8C8C8C;
    margin-top: 10px;
    line-height: 18px;
}
.answer-form-error {
    font-size: 12px;
    color: #FF4D4F;
    margin-top: 6px;
    display: none;
}
.answer-form-error.show {
    display: block;
}

/* ===== 上一篇 / 下一篇 ===== */
.detail-pn {
    margin: 12px 12px 0;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
}
.pn-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
}
.pn-item + .pn-item {
    border-top: 1px solid #F5F5F5;
}
.pn-item:active {
    background: #FAFAFA;
}
.pn-label {
    flex-shrink: 0;
    font-size: 13px;
    color: #8C8C8C;
    margin-right: 8px;
}
.pn-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #262626;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 咨询卡片 ===== */
.consult-card {
    margin: 12px 12px 20px;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 18px 14px;
    text-align: center;
}
.consult-card .consult-title {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
}
.consult-card .consult-desc {
    font-size: 13px;
    color: #8C8C8C;
    margin-top: 6px;
}
.consult-card .consult-tel {
    font-size: 22px;
    color: var(--themeBtnBgColor);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 6px;
}
.consult-card .consult-btn {
    display: block;
    margin-top: 12px;
    height: 40px;
    line-height: 40px;
    border: 1px solid var(--themeBtnBgColor);
    border-radius: 20px;
    color: var(--themeBtnBgColor);
    font-size: 15px;
}
.consult-card .consult-btn:active {
    background: var(--themeBtnBgColor);
    color: #FFFFFF;
}

/* ===== 相关问题 ===== */
.related-section {
    margin-top: 20px;
    padding: 0 12px 20px;
}
.related-title {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    padding: 0 2px 10px;
}
.related-list {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
}
.related-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
}
.related-item + .related-item {
    border-top: 1px solid #F5F5F5;
}
.related-item:active {
    background: #FAFAFA;
}
.related-q {
    flex: 1;
    font-size: 14px;
    color: #262626;
    line-height: 21px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.related-arrow {
    flex-shrink: 0;
    color: #C0C0C0;
    font-size: 20px;
    line-height: 21px;
    margin-left: 10px;
    transform: rotate(0deg);
}

/* ===== 底部提问栏 ===== */
.detail-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: calc(52px + env(safe-area-inset-bottom));
    padding: 8px 12px env(safe-area-inset-bottom);
    background: #FFFFFF;
    border-top: 1px solid #F0F0F0;
}
.bottom-ask-text {
    flex: 1;
    font-size: 13px;
    color: #8C8C8C;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bottom-ask-btn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 22px;
    margin-left: 12px;
    border: none;
    border-radius: 18px;
    background: var(--themeBtnBgColor);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}
.bottom-ask-btn:active {
    opacity: 0.85;
}