/* ========== 原有样式 ========== */
.question-detail {
    background: #fff;
    border-radius: 16px;
    padding: 28px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #eef2f8;
}
.question-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2a3e;
    line-height: 1.3;
    margin-bottom: 16px;
}
.question-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #7e8c9e;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.question-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.question-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.tag {
    background: #eef2f5;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    color: #2c6e4f;
}
.question-content {
    font-size: 16px;
    line-height: 1.65;
    color: #2c3e50;
    margin-bottom: 24px;
    padding: 8px 0;
}
.answer-section {
    margin-top: 20px;
}
.answer-header {
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}
.answer-item {
    border-bottom: 1px solid #f0f3f8;
    padding: 20px 0;
}
.answer-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.avatar-icon {
    width: 40px;
    height: 40px;
    background: #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    background: #2d6a4f;
}
.answer-user {
    font-weight: 600;
    color: #1f2a3e;
}
.answer-time {
    font-size: 12px;
    color: #8a9bb0;
    margin-left: 8px;
}
.answer-badge {
    background: #eef2ff;
    color: #2c6e4f;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 30px;
    margin-left: 10px;
}
.answer-content {
    font-size: 15px;
    line-height: 1.55;
    color: #334155;
    margin-left: 52px;
    margin-bottom: 12px;
}
.jdl-side-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #eef2f8;
}
.side-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    padding-left: 8px;
    border-left: 3px solid #2d6a4f;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag-cloud a {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    color: #2c6e4f;
    text-decoration: none;
}
.reply-notice {
    background: #f9fbfd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9edf2;
    margin-top: 20px;
}

/* ========== 新增布局修复 ========== */
.jdl-content .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
}
.jdl-content .col-8 {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
    width: calc(70% - 15px);
}
.jdl-content .col-3 {
    flex: 0 0 280px;
    width: 280px;
}
/* 移除原 .pl50 可能产生的左内边距 */
.jdl-content .pl50 {
    padding-left: 0;
}
/* 响应式：当屏幕宽度小于 992px 时，左右两栏垂直排列 */
@media (max-width: 992px) {
    .jdl-content .row {
        flex-direction: column;
        gap: 24px;
    }
    .jdl-content .col-8,
    .jdl-content .col-3 {
        width: 100%;
        flex: auto;
    }
    .answer-content {
        margin-left: 0;
    }
    .question-detail {
        padding: 20px;
    }
    .question-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .question-detail {
        padding: 16px;
    }
    .answer-avatar {
        margin-bottom: 8px;
    }
}