/*解决ueditor代码高亮显示与bootstrap类冲突*/
.syntaxhighlighter td.code .container:before {display: none;}

/*代码块超出*/
.ueditor_container table.syntaxhighlighter {
  display: block!important;
}
/**/
/*正文基础字体大小*/
.ueditor_container {
  font-size: 16px;
}
/**/
/*图片不超出*/
.ueditor_container img {
  max-width: 100%;
}
/**/
.wrap {
  background: #E9EAEC;
}
.content_box {
  border-radius: 0px;
  background: #FFF;
  border: 0px;
  box-shadow: 0 1px 6px #ccc;
}
.content_r {
  padding: 30px;
  border-bottom: 1px solid #DDD;
}
.content_l .left_menu {
  list-style-type: none;
  margin: 0px;
  padding-left: 0px;
}
.list_dt {
  line-height: 45px;
  padding: 0px 15px;
  border-bottom: 1px solid #DDD;
  border-top: 1px solid #DDD;
  display: flex;
  justify-content: space-between;
}

.list_dt ._after{
    display: none;
}

.list_li a {
  color: #999;
  display: inline-block;
  width: 85%;
  padding-right: 10px;
  /*padding-left: 30px;*/
}

.list_li:hover .span_turn_num{
    color: #428BCA;
}
#div_table_scroll {
  max-height: 900px;
}
.span_turn_num {
    display: inline-block;
    width: 15%;
    padding-left: 20px;
    color: #666;
    vertical-align: top;
}
.list_li a.selected {
  color: #4071FD;
  border-right: 3px solid #4071FD;
}
.list_li a:hover,.list_li a:active,.list_li a:visited,.list_li a:focus {
  text-decoration: none;
}
div.content_qianyan {
    font-size: 16px;
    font-weight: bold;
    line-height: 45px;
}
div.position_nav {
  color: #777;
  padding: 15px 30px 0px;
}
div.position_nav a {
  color: #777;
  text-decoration: none;
}
.row_sidebar_tutorial,.row_detail_tutorial {
  float: right;
}

.course_head {
  padding: 10px 20px;
  margin: 15px;
}
.course_head a {
  color: #777;
  text-decoration: none;
  line-height: 36px;
}
.course_head h4 {
  display: inline-block;
  font-weight: bold;
  font-size: 1.4em;
  margin: 0;
}
.div_inline_course {
    width: 49%;
    display: inline-block;
    padding: 0.3em 1em;
    font-size: 14px;
    font-weight: bold;
}
.div_inline_course h3 {
    margin: 0;
    font-weight: bold;
    font-size: inherit;
}

/*course_index*/
.span_head_r a {
    font-size: 14px;
    color: #777;
    text-decoration: none;
}
.list_box_course {
    padding: 10px 15px 10px 15px;
    /* display: inline-block; */
    /*height: 450px;*/
    width: 30%;
    margin: 1.5%;
    background: rgb(250,250,250);
    border: 1px solid #DDD;
    border-radius: 5px;
    float: left;
}
.list_box_course ul {
    list-style-type: none;
    padding: 10px;
    line-height: 24px;
    border-top: 1px solid #DDD;
}
.list_box_course ul a {
    color: #666;
}
.list_box_course ul li {
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.div_dscrp_course {
    height: 150px;
}
img.list_title_course1 {
    width: 20%;
    display: inline-block;
}
a.list_title_course2 {
    /*color: #333;*/
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    margin-left: 10px;
    text-decoration: none;
}
a.list_title_course2 h2 {
    margin: 0;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
}
.list_normal_course {
    color: #888;
    display: block;
    margin-top: 10px;
    /*white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;*/
}
.course_head_index {
    padding: 10px 20px;
}
.course_head_index h1 {
    font-weight: bold;
    font-size: 20px;
    display: inline-block;
    margin: 10px 0;
}
.course_head_index a {
    color: #777;
    text-decoration: none;
}
.a_more {
    float: right;
}
/*教程列表*/
#arc-list{
	table-layout: fixed;
	width: 100%;
	margin-top: 10px;
	margin-bottom: 20px;
	border: 1px solid #ddd;
	border-top: none;
}
#arc-list tr{
	padding-left: 12px;
	background-color: #eee;
	border-bottom: 1px solid #ddd;
	border-top: 1px solid #ddd;
	line-height: 2.8em;
}
#arc-list td a{
	color: #444;
}
#arc-list td{
	line-height: 38px;
	padding-left: 12px;
	height:38px;
}
#arc-list td span{
	color: #007dbb;
}
#arc-list td a{
	color: #007dbb;
}
#contents-detail{
	vertical-align: text-top;
	padding-top: 10px;
}
#contents-detail dl{
	display: inline-block;
	vertical-align: top;
	width: 90%;
	margin-right: 9%;
}
#contents-detail dl dt{
	margin-bottom: 3px;
	padding: 6px 0px;
	border-bottom: 2px solid #ddd;
}
#contents-detail dl dt .title{
	font-weight: bold;
	padding-left: 8px;
	border-left: 3px solid #D33428;
	color: #444;
}
#contents-detail dl dt a{
	font-weight: bold;
	padding-left: 8px;
	border-left: 3px solid #3928D3;
	color: #444;
}
#contents-detail dl dd, #contents-detail dl dd a{
	/*color: #2591c7;*/
	color: #007dbb;
}
#contents-detail dl dd.vip, #contents-detail dl dd.vip a{
	color: #dc5d4d;
	/*color: #d76259;*/
	/*color: #D33428;*/
}
/**/

/*编译器抽屉*/
.div_compiler_drawer {
  z-index: 999;
  position: fixed;
    height: 80%;
    width: 100%;
    bottom: -550px;
    border-radius: 5px 5px 0 0;
    padding: 10px;
    background: #333;
}

.div_compiler_drawer .btn {
  border-radius: 0px;
  border: 0px;
}
#result {
  color: #F8F8F2;
}
/*div.toptip {
  display: none;
}*/
.div_compiler_drawer .div_area_code,.div_compiler_drawer .div_inoutput,.div_compiler_drawer .div_input,.div_compiler_drawer .div_output {
  padding: 0px;
}
.div_compiler_drawer .div_area_code {
  height: 42%;
  padding-bottom: 5px;
}
.div_compiler_drawer .div_inoutput {
  height: 35%;
}
.div_compiler_drawer .div_input {
  height: 40%;
  padding-bottom: 5px;
}
.div_compiler_drawer .div_output {
  height: 60%;
}
.div_compiler_drawer .area_code {
  height: 100%;
}
.div_compiler_drawer .area_input {
  height: 100%;
}
.div_compiler_drawer .area_output {
  height: 100%;
}
/**/

/*my_7*/
/*教程盒子展示*/
main.main-content{
    background-color: rgba(248,250,252);
}
#only-h1{
    display: none;
}
#main {
    padding-top: 5px;
    margin: 20px auto;
    margin-top: 0;
}

#main a {
    text-decoration: none;
}

.t-type {
    font-size: 18px;
    font-weight: 400;
    margin: 0 15px;
    color: #34495e;
    border-bottom: 1px solid #DDD;
    padding: 10px 20px;
    margin-bottom: 0;
}

.t-type i {
    font-size: 18px;
    margin-right: 5px;
}

/* 教程列表样式 */
.t-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 30px;
    margin-bottom: 0!important;
}

.t-list li {
    float: left;
    width: 33.3%;
    padding: 0 10px;
    margin-bottom: 1rem;
}

.t-list li .top-row{
    display: flex;
}

/* 容器样式 - 确保有明确的尺寸控制 */
.title-container {
    display: flex;
    align-items: center; /* 默认垂直居中 */
    min-height: 60px; /* 根据设计需求调整 */
    padding-left:16px; /* 根据设计需求调整 */
    overflow: hidden;
}

.t-list li:nth-child(3n+1) {
    clear: left;
}

/* 教程链接样式 */
.t-list li a {
    display: block;
    background: white;
    padding: 15px!important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: auto;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.t-list li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* h4标题 - 与图片并排 */
.t-list h3 {
    font-size: 16px;
    font-weight: 400;
    color: #2c3e50;
    margin: 0;
    width: 100%;
}

/* 图片容器 */
.t-list .image {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-list .image img {
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

/* 描述文字p - 单独占据一整行 */
.t-list p {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
    margin-top: 0.5rem;
    margin-bottom: 0;
    display: block;
    width: 100%;
    clear: both;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 显示3行 */
    -webkit-box-orient: vertical;
    
    /* 兼容其他浏览器 */
    display: -moz-box;
    -moz-line-clamp: 3;
    -moz-box-orient: vertical;
    
    /* 标准写法 */
    display: box;
    line-clamp: 3;
    box-orient: vertical;
    
    /* 设置最小高度确保布局稳定 */
    min-height: calc(14px * 1.4 * 3);
    max-height: calc(14px * 1.4 * 3);
}


/* 电梯窗格样式 */
.elevator-nav {
    position: fixed;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding-top: 12px;
    width: 13.5rem;
}

.elevator-nav #all-course {
    text-align: left;
    font-weight: 400;
    margin-bottom: 5px;
    color: #34495e;
    font-size: 18px;
    margin-left: 15px;
}

.elevator-nav #all-course i {
    font-size: 18px;
    margin-right: 5px;
}

.elevator-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elevator-nav li {
    text-align: left;
    margin: 0;
    padding: 0;
}

.elevator-nav li i {
    margin-right: 5px;
    margin-left: 10px;
}

.elevator-nav li a {
    text-decoration: none;
}

.elevator-link {
    display: block;
    padding: 12px 0 12px 15px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    position: relative;
    border-bottom: 1px solid #DDD;
}

/* 悬停效果 */
.elevator-link:hover {
    background-color: #E5ECF9;
    color: #428bca;
}

/* 激活状态 */
.elevator-link.active {
    color: #428bca;
    background-color: #E5ECF9;
    padding-left: 7px;
    border-left: 4px solid #4071FD;
}

.elevator-link.active::after {
    background-color: #428bca;
}

footer.footer-v2-container{
    z-index: 1;
  /* 强烈模糊效果 */
  backdrop-filter: blur(2px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .elevator-nav {
        left: 10px;
        width: 50px;
    }
    
    .elevator-link {
        padding: 10px 0;
        font-size: 11px;
    }
    
    /* 在小屏幕上可以显示全宽下边框 */
    .elevator-link::after {
        width: 100%;
        left: 0;
    }
}

/* 当屏幕宽度小于1202px时隐藏左侧栏 */
@media (max-width: 1202px) {
    .col-xs-2 {
        display: none !important;
    }
    .col-xs-10 {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }
}

/* 教程列表的响应式调整 */
@media (max-width: 992px) {
    .t-list li {
        width: 33.33%;
    }
}

@media (max-width: 768px) {
    .t-list li {
        width: 50%;
    }
    
    /* 768px以下调整教程列表内部样式 */
    .t-list h3 {
        font-size: 16px; /* 保持16px */
    }
    
    .t-list .image {
        width: 50px;
        height: 50px;
    }
    
    .t-list .image img {
        max-width: 45px;
        max-height: 45px;
    }
}

/* 新增：针对小屏幕的字号优化 */
@media (max-width: 576px) {
    .t-list h3 {
        font-size: 18px; /* 在小屏幕上调大到18px */
    }
    
    .t-list p {
        font-size: 16px; /* 正文调到16px */
    }
}

/* 特别针对375px及以下设备的优化 */
@media (max-width: 400px) {
    .t-list h3 {
        font-size: 18px; /* 标题保持18px */
        line-height: 1.4; /* 增加行高提高可读性 */
    }
    
    .t-list p {
        font-size: 16px; /* 正文保持16px */
        line-height: 1.5;
    }
    
    /* 教程类型标签的字号调整 */
    .t-type {
        font-size: 14px; /* 调整分类标签字号 */
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .t-list li {
        width: 100%;
    }
    
    .t-list li a {
        padding: 15px; /* 增加内边距，让文字有更多呼吸空间 */
    }
    
    /* 480px以下进一步调整内部样式 */
    .t-list .image {
        width: 50px; /* 稍微调大图标容器 */
        height: 50px;
        margin-right: 15px; /* 增加与文字的间距 */
    }
    
    .t-list h3 {
        font-size: 18px; /* 确保标题是18px */
        margin-bottom: 8px; /* 增加与段落的间距 */
    }
    
    .t-list .image img {
        max-width: 45px;
        max-height: 45px;
    }
    
    .t-list p {
        font-size: 16px; /* 确保正文是16px */
        line-height: 1.6; /* 增加行高 */
    }
}

/* 移动设备优化 - 小于576px */
@media (max-width: 576px) {
    #main {
        padding: 0 15px; /* 增加左右内边距 */
    }
    
    .t-type {
        font-size: 14px; /* 调整分类标签字号 */
        padding: 8px 15px;
        margin: 0 5px 10px; /* 增加底部外边距 */
    }
    
    .t-list {
        padding: 15px 5px;
    }
    
    .t-list li a {
        padding: 20px 15px; /* 增加内边距 */
    }
    
    .title-container {
        min-height: 60px; /* 增加最小高度 */
        padding-left: 10px;
    }
    
    /* 增加内容区域的字号 */
    .content-area {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* 超小屏幕专门优化 */
@media (max-width: 375px) {
    .t-list h3 {
        font-size: 18px; /* 标题用最大字号 */
        font-weight: 600; /* 稍微加粗提高可读性 */
    }
    
    .t-list p {
        font-size: 16px; /* 正文用中等字号 */
        line-height: 1.7; /* 进一步增加行高 */
    }
    
    .t-list li a {
        padding: 18px 12px;
    }
    
    /* 确保所有文字内容都有足够的对比度和大小 */
    * {
        -webkit-text-size-adjust: 100%; /* 防止iOS自动调整字号 */
    }
}

/* 大屏幕优化 - 大于1200px */
@media (min-width: 1200px) {
    .t-list li {
        padding: 0 15px;
    }
    
    .t-list li a {
        padding: 25px;
    }
}

/* 超大屏幕优化 - 大于1400px */
@media (min-width: 1400px) {
    .t-list li {
        width: 33.33%; /* 在超大屏幕上保持每行3个 */
    }
    
    #main {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/*my_7_0*/
/*教程内页左侧导航*/
#switch{
background-color:#fff;
border: 0;
}
.left-nav{
    overflow: hidden;
}

.list_dt a{
    text-decoration: none;
    padding-left: 0;
}

.other_course a{
    text-decoration: none;
    flex:left;
}

.open:hover {
    cursor: pointer;
}
/* 初始状态：修改为默认显示 */
.list_dl > dd {
    display: block; /* 改为block，与.expanded一致 */
    overflow: hidden;
}

/* 动画效果 */
.list_dl > dd {
    transition: max-height 0.3s ease-out;
    max-height: 1000px; /* 默认展开时的高度 */
}

/* 收起状态 */
.list_dl > dd:not(.expanded) {
    max-height: 0;
    overflow: hidden;
}

/* 动画效果 */
.list_dl > dd {
    transition: max-height 0.3s ease-out;
    max-height: 0;
}

.list_dl > dd.expanded {
    max-height: 1000px; /* 足够大的值以容纳内容 */
}

/* 按钮样式调整 */
.list_dt .fa {
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: #929295;
}

.list_dt .fa:hover{
    color: #555555;
}

/* 菜单样式 */
.left_menu {
    list-style: none;
    padding-left: 30px;
    margin-top: 5px;
}

.left_menu li {
    padding: 8px 0;
}

.left_menu li:last-child {
    border-bottom: none;
}

.left_menu a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.left_menu a:hover {
    color: #0066cc;
}
@media (max-width: 859px) {
    /* 修复主容器 */
    .container {
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 清除所有浮动，调整显示顺序 */
    main.col-xs-12.col-md-9.left,
    aside.col-xs-12.col-md-3.left-nav {
        float: none ;
        width: 100% ;
        position: static !important;
        clear: both;
        display: block;
    }
    
    /* 移除左侧导航的固定定位 */
    .left-nav {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: 100% ;
        margin-bottom: 20px !important; /* 调整间距 */
    }
    
    /* 修复导航滚动区域 */
    #div_table_scroll {
        max-height: 300px;
        overflow-y: auto;
        margin-bottom: 20px;
    }
    
    /* 确保内容正确排列 */
    #content-container {
        display: flex;
        flex-direction: column;
    }
    
    /* 调整内容顺序：左侧导航在点赞之前显示 */
    #content-container > .left-nav {
        order: 2; /* 导航排在第一位 */
    }
    
    #content-container > main.left {
        order: 1; /* 主内容排在第二位 */
    }
}

/* 上一篇下一篇 - 极简版 */
.article-prevnext {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.article-prevnext h3{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.article-prevnext a {
    display: block;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #428BCA;
    text-decoration: none;
    transition: all 0.2s;
    text-align: right;
}

.article-prevnext a:hover {
    border-color: #428BCA;
    box-shadow: 0 2px 8px rgba(48, 97, 253, 0.1);
}

.article-prevnext span {
    display: block;
    font-size: 12px;
    color: #666;
    text-align: right;
}

.article-prevnext li{
    width: 48%;
}

.article-prevnext li:nth-of-type(1) a span
{
    text-align: left;
}

.article-prevnext li:nth-of-type(1) a{
    text-align: left;
}

/* 移动端 */
@media (max-width: 768px) {
    .article-prevnext {
        flex-direction: column;
    }
    
    .article-prevnext li{
        width:100%;
    }
}
