.wrap{
    padding-bottom: 0;
}
.content_r {
    padding: 30px;
}

#body {
    margin-top: 0px;
    padding: 0 30px;
}

.position_nav{
    border: 0;
    border-bottom: 0.1px solid transparent;
    margin-bottom: 15px;
}

.exam-layout {
    display: flex;
    gap: 21px;
}

.exam-left {
    width: 220px;
    flex: 0 0 220px;
    position: sticky;
    top: 84px;
    align-self: flex-start;
    /*margin-right: 15px;*/
}

.exam-right {
    flex: 1;
    min-width: 0;
}

.exam-content-layout {
    display: block;
}

.exam-main {
    flex: 1;
    min-width: 0;
    padding-right: 1px;
}

h1.pure {
    margin: 0;
    padding: 0;
    font-size: 18px;
    display: inline-block;
    font-weight: 400;
    color: #34495e;
}

#main {
    padding-top: 5px;
    margin: 0 auto;
}

.exam-main a {
    text-decoration: none;
}

.t-type {
    font-size: 18px;
    font-weight: 400;
    color: #34495e;
    border-bottom: 1px solid #DDD;
    padding: 10px 20px;
    margin: 0 15px;
    margin-bottom: 0;
}

.t-type.with-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.t-type .type-left {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.t-type .more-link {
    font-size: 14px;
    color: #428bca;
    text-decoration: none;
}

.t-type .more-link:hover {
    color: #2a6496;
}

.t-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    margin-bottom: 0 !important;
    font-size: 16px;
}

.t-list-head {
    margin: 0;
    padding: 10px 10px 0;
    display: flex;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.t-list-head .head-group {
    width: 50%;
    padding: 0 10px;
}

.t-list-head .head-inner {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    background: #f6f7fb;
    border: 1px solid #e5e7ef;
    border-radius: 6px;
}

.t-list-head .head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.t-list-head .head-id {
    min-width: 46px;
}

.t-list-head .head-right {
    margin-left: auto;
}

.t-list li {
    float: left;
    width: 50%;
    padding: 0 10px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.t-list li a {
    width: 100%;
    padding: 15px !important;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.t-list li a .li-lpart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.t-list li a .li-id {
    color: #333;
    min-width: 46px;
}

i.fa{
    margin-right: 5px;
}

.exam-icon {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: -3px;
    color: currentColor;
}

.t-type .exam-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-right: 6px;
    vertical-align: -2px;
    color: currentColor;
}

.t-list li a .exam-icon.icon-default {
    color: #0a5fa8;
}

.t-list li a .exam-icon.icon-csp {
    color: #f3c400;
}

.t-list li a .exam-icon.icon-ds {
    color: #6f42c1;
}

.t-list li a .exam-icon.icon-erji {
    color: #1f7a8c;
}

.t-list li a .exam-icon.icon-java {
    color: #d35400;
}

.t-list li a .exam-icon.icon-python {
    color: #2f78d8;
}

.t-list li a .exam-icon.icon-kaoyan {
    color: #8e44ad;
}

.t-list li a .exam-icon.icon-linux {
    color: #374151;
}

.t-list li a .exam-icon.icon-mysql {
    color: #2980b9;
}

.t-list li a .exam-icon.icon-net {
    color: #16a085;
}

.exam-icon use {
    fill: currentColor;
}

.t-list li a .li-title {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-list li a .li-rpart {
    margin-left: 12px;
    flex: 0 0 auto;
    color: #333;
}

.t-list li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #428bca;
}

.elevator-nav {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding-top: 12px;
    width: 16.2rem;
    max-height: calc(100vh - 120px);
    min-height: 45px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.elevator-nav .nav-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

#all-course {
    padding-left: 27px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-size: 18px;
}

.elevator-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.elevator-nav li .cate-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: block;
    padding:12px 0 12px 32px;
    color: #333;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
    border-bottom: 1px solid #DDD;
    border-left: 3px solid transparent;
}

.elevator-nav li .cate-item:hover {
    background-color: #E5ECF9;
    color: #428bca;
}

.elevator-nav li .cate-item.active {
    background-color: #E5ECF9;
    color: #428bca;
    border-left: 4px solid #4071FD;
    padding-left: 25px;
}

.elevator-nav li:last-of-type .cate-item{
    border-bottom: none;
}

.latest-list li .li-title {
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-empty {
    width: 100% !important;
    padding: 0 10px;
}

.latest-empty .empty-box {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #e5e7ef;
    color: #888;
}

/*滚动条样式设计*/
.elevator-nav .nav-content::-webkit-scrollbar {
    width: 6px;
}
.elevator-nav .nav-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}
.elevator-nav .nav-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    transition: background 0.3s ease;
}
.elevator-nav .nav-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.elevator-nav .nav-content {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f5f5f5;
}
#main .fa-c {
    color: #004482 !important;
}

#main  .fa-copyright {
    color: #00599c !important;
}

#main  .fa-certificate {
    color: #FFD700 !important;
}

#main  .fa-project-diagram {
    color: #6f42c1 !important;
}

#main  .fa-laptop-code {
    color: #6c757d !important;
}

#main  .fa-java {
    color: #E76F00 !important;
}

#main  .fa-graduation-cap {
    color: #2c3e50 !important;
}

#main  .fa-linux {
    color: #FCC624 !important;
}

#main  .fa-database {
    color: #00758F !important;
}

#main  .fa-network-wired {
    color: #007bff !important;
}

#main  .fa-code {
    color: #FF6B6B !important;
}

#main  .fa-python {
    color: #3776AB !important;
}

#main  .fa-university {
    color: #8B4513 !important;
}

#main .fa-scroll { 
    color: #4a90e2 !important; 
}
#main-latest .fa-pencil-alt { 
    color:  #e67e22 !important; 
}  
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .elevator-nav .nav-content {
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }
}

@media (max-width: 860px) {
    .exam-layout {
        display: block;
    }
    
    #body{
        padding: 0 20px;
    }

    .exam-left {
        width: 100%;
        position: static;
        top: auto;
    }

    .exam-content-layout {
        display: block;
    }

    .t-list li {
        width: 100%;
    }

    .elevator-nav {
        max-height: 240px;
        margin-bottom: 12px;
    }

    .t-list-head .head-group:last-child {
        display: none;
    }

    .t-list-head .head-group {
        width: 100%;
    }
}
@media screen and (max-width: 860px) {
    #elevatorNav{
        width: 100%;
    }
    #elevatorNav .nav-content ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 0;
        padding: 10px 0;
    }

    #elevatorNav .cate-item {
        display: inline-block;
        padding: 8px 16px;
        white-space: nowrap;
    }
     .exam-left {
        height: auto !important;
        min-height: auto !important;
    }
    
    .elevator-nav {
        height: auto !important;
        min-height: auto !important;
    }
    
    .elevator-nav .nav-content {
        flex: none !important;
        height: auto !important;
        min-height: auto !important;
        overflow-y: visible !important;
        max-height: none !important;
    }
    
    /* 让 ul 使用 flex 换行布局 */
    .elevator-nav .nav-content ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        height: auto !important;
    }
    
    .elevator-nav .nav-content li {
        display: inline-block !important;
        height: auto !important;
    }
}