/* 内容页面样式 - detail.css */

/* 标题区 */
.askTitle,
.answer,
.relevant{
    width: 100%;
    box-sizing: border-box;
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
}

/* 文章标题 */
.tit{
    overflow: hidden;
}
.tit img{
    display: block;
    float: left;
}
.tit h1{
    float: left;
    font-size: 24px;
    line-height: 1.4;
    color: #333;
    padding-left: 10px;
    font-weight: bold;
}

/* 文章元信息（时间/作者） */
.button{
    margin-top: 15px;
    display: flex;
    align-items: center;
}
.button button{
    display: block;
    width: 120px;
    height: 40px;
    background-color: #29be6a;
    border-radius: 5px;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
}
.list-sj{
    margin-left: 30px;
    overflow: hidden;
}
.list-sj span{
    display: block;
    float: left;
    font-size: 14px;
    color: #999;
    line-height: 1;
    padding: 0 20px;
    border-right: 1px solid #ddd;
}
.list-sj span:first-child{
    padding-left: 0;
}
.list-sj span:last-child{
    display: flex;
    align-items: center;
    padding-left: 20px;
    padding-right: 0;
    border-right: none;
}
.list-sj span:last-child img{
    display: block;
    padding-right: 6px;
}

.reply{
    display: none;
}

/* 正文内容区 */
.answer-txt{
    margin-top: 12px;
}

/* 强制覆盖CMS正文内容中的内联样式 */
.answer-txt p{
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    margin: 18px 0 0 0 !important;
    text-align: justify !important;
    text-indent: 2em;
}
.answer-txt p:first-child{
    margin-top: 0 !important;
}
.answer-txt p:last-child{
    margin-bottom: 0 !important;
}
.answer-txt span {
    font-size: 16px !important;
    color: #333 !important;
}
.answer-txt div {
    font-size: 16px !important;
    color: #333 !important;
}

/* 强制覆盖正文标题 */
.answer-txt h2 {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #222 !important;
    line-height: 1.5 !important;
    margin: 28px 0 12px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e8e8e8;
}
.answer-txt h3 {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    line-height: 1.5 !important;
    margin: 22px 0 10px 0 !important;
}
.answer-txt h4 {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333 !important;
    line-height: 1.5 !important;
    margin: 18px 0 8px 0 !important;
}

/* 正文图片 */
.answer-txt img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* 正文列表 */
.answer-txt ul,
.answer-txt ol {
    margin: 14px 0;
    padding-left: 2em;
}
.answer-txt ul li {
    list-style: disc;
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.answer-txt ol li {
    list-style: decimal;
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* 正文链接 */
.answer-txt a {
    color: #2abf69;
    text-decoration: underline;
}
.answer-txt a:hover {
    color: #1a8f4f;
}

/* 正文表格 */
.answer-txt table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    display: block;
    overflow-x: auto;
}
.answer-txt table td,
.answer-txt table th {
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 15px;
    text-align: left;
}
.answer-txt table th {
    background: #f5f5f5;
    font-weight: bold;
}

/* 正文引用 */
.answer-txt blockquote {
    border-left: 4px solid #2abf69;
    padding: 12px 18px;
    margin: 18px 0;
    background: #f9f9f9;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

/* 正文与联系模块间距 */
.answer-txt .contact-hongyi-section {
    margin: 35px 0 25px 0;
}

/* 标签区域 */
.answer-txt p:has(.tag.tags) {
    margin-top: 20px;
    text-indent: 0;
}
.tag.tags {
    display: inline-block;
    font-size: 13px;
    color: #2abf69 !important;
    border: 1px solid #2abf69 !important;
    background: transparent !important;
    border-radius: 4px;
    padding: 4px 12px;
    margin: 3px;
    text-decoration: none;
}

/* 来源链接 */
.answer-txt p:last-child {
    margin-top: 20px;
    text-indent: 0;
    font-size: 14px;
    color: #999;
}
.answer-txt p:last-child a {
    color: #666;
}

/* 问答相关（未使用但保留定义） */
.tx{
    width: 100%;
    display: flex;
    align-items: center;
}
.tx>img{
    display: block;
    border-radius: 5px;
    overflow: hidden;
    width: 40px;
    height: 40px;
}
.name{
    margin-left: 10px;
}
.name p{
    font-size: 16px;
    line-height: 1;
    color: #333;
}
.name div{
    margin-top: 10px;
    overflow: hidden;
}
.name div span{
    display: block;
    float: left;
    font-size: 14px;
    color: #999;
    line-height: 1;
    padding: 0 20px;
}
.name div span:first-child{
    padding-left: 0;
    border-right: 1px solid #ddd;
}
.name div span:last-child{
    padding-right: 0;
}
.praise{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    margin-left: auto;
    width: 80px;
    height: 30px;
    border-radius: 5px;
    box-sizing: border-box;
    border: 1px solid #999;
    cursor: pointer;
    overflow: hidden;
}
.praise img{
    display: block;
    padding-right: 6px;
}
.praise p{
    font-size: 16px;
    line-height: 1;
    color: #999999;
}
.praise.active{
    border: 1px solid #2abf69;
}
.praise.active p{
    color: #2abf69;
}
.praise.active img{
    transform:translateX(-30px);
    filter:drop-shadow(30px 0px 0px #2abf69);
}

/* 专题标签 */
.ask-tag-box {
    position: relative;
    height: 66px;
    padding: 20px;
    box-sizing: border-box;
    line-height: 66px;
    background: #f8f8f8;
}
.ask-tag-box a {
    display: block;
    box-sizing: border-box;
    height: 26px;
    line-height: 16px;
    font-size: 12px;
    letter-spacing: 0;
    padding: 4px 6px;
    color: #666;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin-right: 12px;
}

/* 上下篇导航 */
.upDown{
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    gap: 20px;
}
.upDown a{
    display: block;
    box-sizing: border-box;
    padding: 0 20px;
    flex: 1;
    height: 50px;
    border-radius: 10px;
    background-color: #fff;
    font-size: 15px;
    line-height: 50px;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: all 0.3s;
}
.upDown a:hover {
    color: #2abf69;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.upDown a span{
    color: #666;
    margin-left: 4px;
}
.upDown a.fl{
    float: none;
}

/* 相关推荐 */
.relevant{
    margin-top: 20px;
    padding-bottom: 20px;
}
.relevant .title {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.relevant .title img{
    display: block;
    margin-right: 8px;
}
.relevant .title h4{
    float: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.relevant ul{
    margin-top: 10px;
    overflow: hidden;
}
.relevant ul li{
    float: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 320px;
    height: 46px;
    border-bottom: 1px dashed #eee;
    cursor: pointer;
    transition: all 0.3s;
}
.relevant ul li:hover {
    background: #f9f9f9;
}
.relevant ul li:nth-child(2n){
    float: right;
}
.relevant ul li:nth-child(n+5){
    border-bottom: none;
}
.relevant ul li p{
    font-size: 15px;
    width: 260px;
    color: #333;
    line-height: 1.4;
}
.relevant ul li:hover p{
    color: #2abf69;
}
.relevant ul li span{
    display: block;
    font-size: 13px;
    text-align: right;
    color: #bbb;
    line-height: 1;
    flex-shrink: 0;
}

/* 右侧栏 */
.banner{
    position: relative;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.banner img{
    display: block;
    width: 100%;
}
.banner .banner-txt{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 30px;
}
.banner .banner-txt h2{
    font-size: 30px;
    font-weight: bold;
    color: #333;
    line-height: 40px;
}
.banner .banner-txt h2 span{
    color: #29bf69;
}
.banner .banner-txt p{
    font-size: 14px;
    line-height: 1;
    color: #999;
    margin-top: 45px;
}

.right-ask{
    box-sizing: border-box;
    padding: 24px 20px 10px;
    border-radius: 10px;
    background-color: #fff;
    margin-top: 20px;
}
.right-ask .title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.right-ask .title img{
    display: block;
    margin-right: 8px;
}
.right-ask .title h4{
    float: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.right-ask ul{
    margin-top: 5px;
}
.right-ask ul li{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    border-bottom: 1px dashed #ddd;
    cursor: pointer;
}
.right-ask ul li:last-child{
    border-bottom: none;
}
.right-ask ul li p{
    font-size: 15px;
    flex: 1;
    color: #333;
    line-height: 1.3;
    padding-right: 10px;
}
.right-ask ul li:hover p{
    color: #2abf69;
}
.right-ask ul li span{
    display: block;
    font-size: 13px;
    text-align: right;
    color: #bbb;
    line-height: 1;
    flex-shrink: 0;
}
