/* 问答页专项排版：统一基线、留白与内容层级。 */
.question-page {
    /* 原来是 1240，比 .container 的 1200 宽 40 —— 会和面包屑、顶部横幅对不齐，
       全站内容宽度统一成 1200。 */
    max-width: 1200px;
    padding-top: 34px;
    padding-bottom: 76px;
}

.question-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    margin: 0 0 30px;
    background: #f4f8fc;
    border: 1px solid #e5edf5;
    border-radius: 9px;
}

.question-tabs a {
    min-width: 96px;
    padding: 11px 18px;
    border: 0;
    border-radius: 6px;
    color: #6a7e93;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    transition: .2s ease;
}

.question-tabs a:hover,
.question-tabs a.active {
    color: #fff;
    background: #2e82dc;
    box-shadow: 0 5px 12px rgba(46, 130, 220, .18);
}

.question-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: start;
}

.question-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 0 0 16px;
    padding: 0 2px;
}

.question-heading h2 {
    margin-top: 4px;
    color: #203b59;
    font-size: 25px;
    letter-spacing: .2px;
}

.question-heading .directory-count {
    color: #9aabba;
    font-size: 14px;
}

.question-list {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4edf5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(42, 85, 124, .055);
}

.question-list .qa-row {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr) 58px;
    gap: 18px;
    align-items: start;
    min-height: 112px;
    padding: 22px 24px;
    border-top: 1px solid #edf2f6;
    border-bottom: 0;
}

.question-list .qa-row:first-child {
    border-top: 0;
}

.question-list .qa-doctor {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-basis: auto;
}

.question-list .qa-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    font-size: 19px;
}

.question-list .qa-avatar {
    position: relative;
    overflow: hidden;
}

.question-list .qa-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.question-list .qa-doctor b {
    display: block;
    max-width: 115px;
    overflow: hidden;
    color: #203b59;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.question-list .qa-doctor small {
    display: block;
    margin-top: 4px;
    color: #91a1b1;
    font-size: 13px;
    white-space: nowrap;
}

.question-list .qa-content {
    min-width: 0;
    padding-top: 2px;
}

.question-list .qa-content strong {
    display: block;
    overflow: hidden;
    color: #253f5c;
    font-size: 17px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.question-list .qa-content strong em,
.question-list .qa-content p em {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.question-list .qa-content strong em {
    color: #0eae72;
    background: #e7faf2;
}

.question-list .qa-content p {
    display: -webkit-box;
    margin: 9px 0 0;
    overflow: hidden;
    color: #718499;
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.question-list .qa-content p em {
    color: #287dd5;
    background: #eaf3ff;
}

.question-list .qa-more {
    margin-top: 7px;
    color: #3b8bda;
    font-size: 12px;
}

.question-list .qa-row > time {
    padding-top: 3px;
    color: #a4b2c0;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

.question-sidebar {
    padding-top: 0;
}

.question-side-panel {
    padding: 20px 20px 6px;
    border: 1px solid #e4edf5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(42, 85, 124, .045);
}

.question-side-panel h3 {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #edf2f6;
    font-size: 19px;
}

.question-side-panel > a {
    padding: 0 0 17px 14px;
    margin: 0 0 17px 3px;
}

.question-tip {
    margin-top: 16px;
    border: 0;
    border-radius: 10px;
    background: #fff8f1;
    padding: 15px 17px;
    font-size: 13px;
}

@media (max-width: 800px) {
    .question-page {
        padding-top: 22px;
        padding-bottom: 45px;
    }

    .question-tabs {
        margin-bottom: 22px;
        overflow-x: auto;
    }

    .question-tabs a {
        min-width: 82px;
        padding: 10px 13px;
        font-size: 13px;
    }

    .question-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .question-list .qa-row {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        padding: 17px 14px;
    }

    .question-list .qa-row > time {
        display: none;
    }

    .question-list .qa-doctor {
        display: block;
    }

    .question-list .qa-doctor b {
        margin-top: 5px;
        max-width: 100%;
        font-size: 14px;
    }

    .question-list .qa-doctor small {
        font-size: 11px;
    }

    .question-list .qa-content strong {
        font-size: 14px;
        white-space: normal;
    }

    .question-list .qa-content p {
        font-size: 12px;
    }
}
