﻿/* 技术问答详情与提问页 */

.question-detail-page {
    padding: 32px 0 80px;
    background: #f7f7f7;
    color: #202124;
}

.question-detail-shell {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: 0 auto;
}

.question-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #838991;
    font-size: 13px;
}

.question-breadcrumb a {
    color: #555c65;
}

.question-breadcrumb a:hover {
    color: #d71920;
}

.question-detail-card,
.question-answer-section,
.question-reply-card,
.question-ask-card,
.question-not-found {
    box-sizing: border-box;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    background: #fff;
}

.question-detail-header {
    padding: 34px 38px 28px;
    border-bottom: 1px solid #eceef1;
}

.question-detail-header h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.4;
}

.question-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 18px;
    color: #858b94;
    font-size: 13px;
}

.question-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.question-detail-tags a {
    padding: 5px 9px;
    border-radius: 3px;
    background: #f2f3f5;
    color: #555c65;
    font-size: 12px;
}

.question-detail-tags a:hover {
    background: #fff1f2;
    color: #d71920;
}

.question-detail-content {
    padding: 36px 38px 42px;
    color: #333940;
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.question-detail-content img {
    max-width: 100%;
    height: auto;
}

.question-answer-section,
.question-reply-card,
.question-ask-card {
    margin-top: 24px;
    padding: 30px 34px;
}

.question-answer-section > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eceef1;
}

.question-answer-section > header span,
.question-reply-card > div > span,
.question-ask-card > header > span {
    color: #d71920;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.question-answer-section h2,
.question-reply-card h2,
.question-ask-card h1 {
    margin: 6px 0 0;
    font-size: 26px;
}

.question-answer-list {
    display: flex;
    flex-direction: column;
}

.question-answer-item {
    padding: 24px 0;
    border-bottom: 1px solid #eceef1;
}

.question-answer-item:last-child {
    border-bottom: 0;
}

.question-answer-item.is-accepted {
    padding-right: 18px;
    padding-left: 18px;
    background: #f2faf4;
}

.question-answer-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #868c94;
    font-size: 12px;
}

.question-answer-item__meta strong {
    color: #202124;
}

.question-answer-item__meta span {
    color: #24763f;
    font-weight: 800;
}

.question-answer-item p {
    margin: 14px 0 0;
    color: #3f454c;
    line-height: 1.85;
    white-space: pre-wrap;
}

.question-answer-empty,
.question-login-tip {
    margin-top: 20px;
    padding: 22px;
    background: #f7f8f9;
    color: #656c75;
}

.question-login-tip a {
    color: #d71920;
    font-weight: 700;
}

.question-reply-card > div > p,
.question-ask-card > header > p {
    margin: 10px 0 0;
    color: #6f767f;
}

.question-reply-card form,
.question-ask-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.question-reply-card label,
.question-ask-form > label,
.question-ask-form legend {
    color: #30353b;
    font-size: 14px;
    font-weight: 800;
}

.question-reply-card textarea,
.question-ask-form textarea,
.question-ask-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d9dce0;
    border-radius: 4px;
    background: #fff;
    color: #202124;
    font: inherit;
}

.question-reply-card textarea,
.question-ask-form textarea {
    min-height: 180px;
    padding: 14px 16px;
    line-height: 1.7;
    resize: vertical;
}

.question-ask-form input[type="text"] {
    height: 48px;
    padding: 0 14px;
}

.question-reply-card textarea:focus,
.question-ask-form textarea:focus,
.question-ask-form input[type="text"]:focus {
    outline: 2px solid rgba(215, 25, 32, .14);
    border-color: #d71920;
}

.question-reply-card .button,
.question-ask-form .button {
    align-self: flex-start;
}

.question-form-message {
    margin: 20px 0 0;
    padding: 13px 15px;
    border: 1px solid #edc4c6;
    border-radius: 3px;
    background: #fff5f5;
    color: #a31218;
}

.question-form-message.is-success {
    border-color: #b8dcc2;
    background: #f2faf4;
    color: #24763f;
}

.question-ask-form fieldset {
    margin: 8px 0 0;
    padding: 18px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
}

.question-ask-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.question-ask-tags label {
    position: relative;
    cursor: pointer;
}

.question-ask-tags input {
    position: absolute;
    opacity: 0;
}

.question-ask-tags span {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid #d9dce0;
    border-radius: 3px;
    color: #555c65;
    font-size: 13px;
}

.question-ask-tags input:checked + span {
    border-color: #d71920;
    background: #d71920;
    color: #fff;
}

.question-ask-note {
    margin: 4px 0 0;
    color: #858b94;
    font-size: 12px;
    line-height: 1.7;
}

.question-ask-success-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.question-not-found {
    padding: 80px 30px;
    text-align: center;
}

.question-not-found h1 {
    margin: 0 0 12px;
    font-size: 30px;
}

.question-not-found p {
    margin: 0 0 24px;
    color: #777d86;
}

@media (max-width: 700px) {
    .question-detail-header,
    .question-detail-content,
    .question-answer-section,
    .question-reply-card,
    .question-ask-card {
        padding-right: 22px;
        padding-left: 22px;
    }

    .question-detail-header h1 {
        font-size: 27px;
    }

    .question-answer-section > header {
        align-items: flex-start;
    }

    .question-ask-success-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}
