/* 详情页样式 */
.detail-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.detail-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}

.detail-meta {
    text-align: center;
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.detail-content {
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    line-height: 1.8;
    font-size: 20px;
}

.detail-content p,
.detail-content ol,
.detail-content li {
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.detail-content h2 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: var(--secondary-color);
}

.detail-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    color: var(--primary-color);
}

/* 点赞按钮激活状态 */
.action-btn.like-btn.active {
    color: var(--primary-color);
}

.action-btn.like-btn.active svg path {
    fill: var(--primary-color);
}

/* 收藏按钮激活状态 */
.action-btn.favorite-btn.active {
    color: #ff9800;
}

.action-btn.favorite-btn.active svg path {
    fill: #ff9800;
}


/* 卡片按钮样式优化 */
.card-btn {
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: white;
    border: none; /* 移除黑边 */
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}

.card-btn:hover {
    background-color: #c1121f; /* 鼠标划过效果：颜色变深 */
    transform: translateY(-2px); /* 鼠标划过效果：轻微上移 */
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3); /* 鼠标划过效果：阴影加深 */
}

.card-btn:active {
    transform: translateY(0); /* 点击时回到原位 */
}
/* 回答项样式 */
.answer-item {
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
}

.answer-item:last-child {
    border-bottom: none;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.expert-info {
    display: flex;
    align-items: center;
}

.expert-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 24px;
}

.expert-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.expert-title {
    color: var(--primary-color);
    margin-bottom: 3px;
    font-weight: 500;
}

.expert-company {
    color: var(--light-text);
    font-size: 14px;
}

.answer-time {
    color: var(--light-text);
    font-size: 14px;
}

.answer-content {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 20px;
}

.answer-content h4 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: var(--secondary-color);
}

.answer-content ol,
.answer-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.answer-content li {
    margin-bottom: 8px;
}

.answer-actions {
    margin-top: 20px;
}
.answer-dt{
    background-color: #fff3cd; padding: 8px 12px; margin-bottom: 16px; border-radius: 4px; position: relative;
}
.answer-dt strong{
    font-weight: bold;font-size:16px;color:#333;
}
.answer-update-history {
    color: #2563eb; cursor: pointer; position: relative;font-size:16px;margin-left:8px;
}
/* 评论区样式 */
.answer-comments {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.answer-comments h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.comment-list {
    margin-bottom: 20px;
}

.comment-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 14px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 500;
    margin-right: 10px;
}

.comment-time {
    color: var(--light-text);
    font-size: 14px;
}

.comment-form {
    margin-top: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
}

.comment-submit {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
}

/* 查看更多回答按钮 */
.more-answers {
    text-align: center;
    margin-top: 30px;
}

/* 相关问题样式 */
.related-questions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.related-link {
    text-decoration: none;
    color: var(--text-color);
}

.related-link h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.related-meta {
    font-size: 14px;
    color: var(--light-text);
    display: flex;
    gap: 15px;
}

.askCon,.answerCon{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 203;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    transition: opacity .3s ease-out
}
.answerCon ul{
    padding-left:0;
}
.backdrop{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-color: rgba(26,26,26,.65);
    transition: background-color .3s ease-out;
}
.modalitem{
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    margin-right: auto;
    margin-left: auto;
    outline: 0;
    box-shadow: 0 5px 20px rgba(26,26,26,.1);
    box-sizing: border-box;
}
.askModal{
    max-width: 600px;
    min-width: 40%;
}
@media (max-width: 768px) {
    .askModal{
        min-width: 80%;
    }
}
.modalCon{
    overflow: auto;
    background: #fff;
    border-radius: 2px;
    width: 100%;
}
.modalTit{
    margin-top: 40px;
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
}
.modaiSubtitle{
    padding: 0 38px;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #8590a6;
    text-align: center;
}
.modalContent{
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 0 24px 32px;
    margin-top: 24px;
    line-height: 1.7;
    opacity: 1;
}
.modalContent ul li{
    margin-bottom:12px;
}
.modalContent ul li input,.modalContent ul li textarea{
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 0;
    overflow: hidden;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
}
.input-wrapper{
    height: auto;
    padding: 6px 12px;
    width:100%;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 3px;
    box-sizing: border-box;
    transition: background .2s,border .2s;
}
.close-btn{
    background: none;
    border:none;
    cursor:pointer;

}
.closeIcon{
    width:24px;
    height:24px;
    background:url(../../../../img/closeed.png) center no-repeat ;
    background-size:contain;
    display: block;
}
.modalContent form{
    text-align:center;
}
.btnsubmit{
    padding:0 30px;
    background-color: #d81e06;
    border-radius:3px;
    line-height:35px;
    color:#fff;
    display: inline-block;
    font-size:16px;
    margin-top: 30px;
}
a.btnsubmit:hover{
    color:#fff;
    background-color: #bd362f;
}
@media (max-width: 768px) {
    .row>*{
        --bs-gutter-x :0;
    }
    .card-btn{
        padding: 6px 8px;
    }
}