/*!src/static/css/main.bundle.less（精简版）*/
html {
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    line-height: 1.6;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "微软雅黑", Helvetica, Arial, sans-serif;
    position: relative;
    width: 100%;
    min-height: 100%;
    color: #333;
    font-size: 15px;
    background-color: #fff;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    outline: 0;
    -webkit-tap-highlight-color: transparent;
}

*, :before, :after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.25;
    font-weight: 400;
}

ul, ol, dl, li {
    list-style-type: none;
}

em {
    font-style: normal;
}

img {
    border-style: none;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

.body-top {
    background: #f5f5f5;
    vertical-align: middle;
    height: 40px;
    line-height: 40px;
    color: #444;
    overflow: hidden;
    background-image: none;
    font-size: 12px;
}

.body-top .topr {}

.body-top .topr li {
    float: left;
}

.body-top .topr li a {
    padding: 0 10px;
    color: #666;
    border-left: 1px solid #ccc;
}

.body-top .topr li:last-child a {
    padding-right: 0;
}

.body-top .topr li:first-child a {
    border-left: 0;
}

.body-top .login {
    float: right
}

.body-top .login span {
    color: #CCC
}

.body-top .login a.rss {
    width: 32px;
    float: right;
    overflow: hidden;
    text-indent: -222px;
    background: url(rsso.gif) no-repeat left center;
    margin-left: 8px
}

/* 清除浮动 */
.layout-container:after, .layout-title:after, .navbar-options:after, .breviary-li:after, .clearfix:after {
    content: '';
    display: table;
    clear: both;
}

/* 基础布局 - 修改为800px宽度 */
.layout-container {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 900px;
    max-width: 100%;
    padding: 0 15px;
}

/* 搜索区域 */
.index-search {
    padding-top: 50px;
    text-align: center;
}

.index-search .search-logo {
    margin-bottom: 40px;
    width: 200px;
}

.serch-form {
    width: 360px;
    border: 1px solid #bbb;
    height: 40px;
    border-radius: 10px;
    position: relative;
    margin: 0 auto;
}

.index-search .serch-form {
    width: 600px;
    max-width: 100%;
}

.serch-form .form-input {
    border: 0;
    outline: 0;
    width: 70%;
    padding-left: 14px;
    padding-right: 60px;
    height: 38px;
    float: left;
}

.serch-form .searach-btn {
    width: 60px;
    text-align: center;
    line-height: 38px;
    position: absolute;
    right: 0;
    top: 0;
    background-color: #1a8cff;
    color: #fff;
    cursor: pointer;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.index-search .serch-form .searach-btn {
    width: 90px;
}

.serch-form .searach-btn:hover {
    opacity: .8;
}

/* 关键词区域 */
.index-search .keywords-box {
    width: 600px;
    max-width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -moz-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin: 10px auto;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
}

.index-search .keywords-box a {
    display: inline-block;
    margin-bottom: 12px;
    margin-right: 20px;
    color: #666;
}

.index-search .keywords-box a:hover {
    color: #315efb;
    text-decoration: underline;
}

.index-search .keywords-box a.last-link {
    color: #315efb;
    margin: 0;
}

/* 分类导航 */
.class-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0 20px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.class-flex .flex-item {
    padding: 20px 0;
    margin-right: 12px;
    width: 100px;
    text-align: center;
    cursor: pointer;
}

.class-flex .flex-item:hover {
    color: #1a8cff;
    -webkit-box-shadow: 0 0 6px 0 #1a8cff;
    box-shadow: 0 0 6px 0 #1a8cff;
    border-radius: 10px;
}

.class-flex .flex-item img {
    height: 44px;
}

.class-flex .flex-item p {
    margin-top: 14px;
}

/* 内容列表区域 - 修改为两栏布局 */
.class-detail-container {
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.class-detail-container .class-detail-item {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 20px;
    flex: 1 1 100%;
}

.class-detail-container .class-detail-item .detail-top {
    padding: 20px 0;
    font-size: 15px;
}

.class-detail-container .class-detail-item .class-tit {
    font-size: 16px;
    color: #1a8cff;
    font-weight: 700;
    padding-left: 12px;
    border-left: 3px solid #1a8cff;
}

.class-detail-container .class-detail-item .detail-link-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.class-detail-container .class-detail-item .detail-link-box .detail-link {
    display: block;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 35px;
    background-image: url(link1.png);
    background-repeat: no-repeat;
    background-position: left center;
    font-size: 16px;
}

.class-detail-container .class-detail-item .detail-link-box .detail-link:hover {
    color: #1a8cff;
    text-decoration: underline;
    background-image: url(link.png);
}

/* 文字溢出处理 */
.ellipsis-1 {
    -webkit-line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 浮动工具类 */
.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

/* 页脚 */
.footer {
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    background-color: #3c3d3e;
    color: #bbb;
}

.footer a {
    cursor: pointer;
    color: #bbb;
}

.footer a:hover {
    text-decoration: underline;
    color: #fff;
}

.footer .copyright {
    padding: 15px 0;
}

/* 移动端适配 */
@media only screen and (max-width: 767px) {
    html {
        line-height: 1.6;
    }

    body {
        max-width: 100% !important;
        min-width: auto !important;
        overflow: hidden;
        background-color: #fff;
        padding: 0;
    }

    .layout-container {
        width: 100% !important;
        padding: 0 10px;
    }

    .index-search {
        padding: 20px 12px;
    }

    .index-search .serch-form {
        width: 100%;
    }

    .index-search .serch-form .searach-btn {
        width: 60px;
    }

    .index-search .keywords-box {
        margin: 12px auto;
        width: 100%;
    }

    .serch-form .form-input {
        padding: 0;
        width: 60%;
    }

    .class-detail-container .class-detail-item .detail-link-box {
        grid-template-columns: 1fr;
    }

    .class-detail-item {
        padding: 0 15px;
    }

    .navigation {
        min-width: auto;
    }
    
    .class-flex .flex-item {
        width: calc(50% - 10px);
        margin-right: 10px;
        margin-bottom: 10px;
    }
    
    .class-flex .flex-item:nth-child(2n) {
        margin-right: 0;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .layout-container {
        width: 95%;
        max-width: 800px;
    }
}

@media only screen and (min-width: 300px) and (max-width: 1000px) {
    .top {
        display: none;
    }
}

@media screen and (max-width: 650px) {
    .class-flex {
        display: none;
    }
    .index-search .keywords-box {
        display: none;
    }
}