  /* 问答容器 */
.qa-container {
    margin: 0 auto;
    overflow: hidden;
}
 
/* 问题板块样式 */
.question-section {
    padding: 25px;
    border-bottom: 1px solid #eaeaea;
}
 
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
 
.question-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    flex: 1;
    min-width: 200px;
}
 
.btn-primary {
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}
 
.btn-primary:hover {
    background-color: #40a9ff;
}
 
.btn-consult-link {
    display: inline-block;
    margin-left: 10px;
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
 
.btn-consult-link:hover {
    color: #40a9ff;
    text-decoration: underline;
}
 
.question-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}
 
.question-meta i {
    margin-right: 5px;
    color: #999;
}
 
.question-content {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}
 .question-content .desc-title{
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-top: 30px;
 }
  .question-content p{
   font-size: 18px;
    font-weight: 400;
    color: #333;
    line-height: 36px;
    margin-top: 0px;
 }
.question-tip {
    background-color: #f0f7ff;
    border-left: 4px solid #1890ff;
    margin-top: 20px;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.question-tip p{
    padding-left: 10px;
    font-size: 12px;
}
.question-tip i {
    margin-right: 8px;
    color: #1890ff;
}
 
/* 律师解答板块样式 */
.answers-section {
    padding: 25px;
}
 
.answers-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 20px;
}
.answers-note {
    font-size: 14px; /* 可根据需要调整字体大小 */
    color: #666; /* 可根据需要调整文字颜色 */
}
.answers-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}
 
.answer-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
 
.answer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
 
.lawyer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
 
.lawyer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}
 
.lawyer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
.lawyer-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}
 
.lawyer-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
 
.lawyer-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}
 
.lawyer-stats i {
    margin-right: 5px;
    color: #999;
}
 
.consult-btn-container {
    display: flex;
    justify-content: flex-end;
}
 
.btn-consult {
    background-color: #52c41a;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}
 
.btn-consult:hover {
    background-color: #73d13d;
}
 
.answer-content {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
    position: relative;
}
 
.answer-content p {
    margin-bottom: 1em;
    font-size: 18px;
}
 
.read-more {
    background: none;
    border: none;
    color: #1890ff;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-top: 10px;
    display: none;
}
 
.read-more:hover {
    text-decoration: underline;
}
 
.answer-footer {
    font-size: 13px;
    color: #999;
}
 
.answer-footer i {
    margin-right: 5px;
}
 
/* 渐变遮罩 */
.content-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}

/*ask推荐*/

.related-question, .related-answer {
    display: flex;
    align-items: flex-start;
}
.related-question a{
margin-top: 16px;
    margin-bottom: 16px;
    font-size: 18px;
    color: #000;

}
.related-answer p{
    color: #333;
}
.icon-question {
    background-color: #e0f7fa;
    color: #00bfa5;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 16px;
    margin-bottom: 16px;
}
 
.icon-answer {
    background-color: #e8f5e9;
    color: #4caf50;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
        margin-top: 16px;
    margin-bottom: 16px;
}
 .related-questions {
    margin-top: 20px;
}
 
.related-item {
    margin-bottom: 20px;
        border-bottom: 1px solid #eaeaea;
}
 
.related-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
    font-size: 14px;
}
 
.consultation-info {
    display: flex;
    align-items: center;
}
 
.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 5px;
}
 
.consultation-info .consult-btn {
    background-color: #e0f7fa;
    color: #00bfa5;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .question-title {
        font-size: 20px;
      
    }
    
  
    
    .lawyer-avatar {
        margin-right: 10px;
        margin-bottom: 10px;
    }
    
    .lawyer-details {
        width: 100%;
    }
    
    .lawyer-stats {
        flex-wrap: wrap;
    }
    
    .consult-btn-container {
        justify-content: flex-start;
        margin-top: 10px;
    }
}
 
@media (max-width: 480px) {
   .main-content h1 {
    font-size: 1.6rem;
    margin-top: 0px;
}
    .answer-card{
    padding: 10px;
    }
    .question-section, .answers-section {
        padding: 0px;
    }
    
    .question-meta {
        gap: 8px;
    }
    
    .lawyer-stats {
        flex-direction: column;
        gap: 5px;
    }
}