:root {
    --default-color: #000000;
    --default-color-rgb: 255, 203, 104;
    --default-color-dark: #343434;
    --default-color-light: #ffde70;
    --default-contrast-color: #4b4b4b;
    --default-contrast-color-rgb: 208, 195, 172;

    --font-small: small;
    --font-medium: medium;
    --font-large: large;
    --font-x-large: x-large;
}

/*公共样式*/
html, body {
    background-color: #f9f9f9;
    font-size: medium;
    font-weight: 300;
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

a {
    color: #333333;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: var(--default-contrast-color);
}

a:active, a:visited {
    text-decoration: none;
}

/*分页*/
.paginator-main {
    position: fixed;
    bottom: 20px;
    right: 25px;
    z-index: 100;
}

.pagination {
    margin: 0;
    overflow: hidden;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;

}

/*Bootstrap*/
.pagination > .active,
.pagination > .page-item > .page-link {
    color: var(--default-color);
    border: none;
    background-color: rgba(255, 255, 255, .5);
    margin-bottom: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.pagination > .page-item > .page-link:hover {
    background-color: var(--default-color);
    color: white;
}

.pagination > .active > .page-link {
    background-color: transparent;
    border: none;
    color: var(--default-color);
    font-size: large;
}

.pagination > .page-link.ellipsis {
    color: gray;
    border-color: white;
}

.pagination > .page-link.ellipsis:hover {
    background: transparent;
}

.breadcrumb{
    padding: 0 5px;
}
.breadcrumb.f-top{
    position: fixed;
    top: 0;
    left: 230px;
    right: 0;
    z-index: 100;
    padding: 20px 25px;
    background-color: #f9f9f9;
}

.modal-content {
    border-radius: 0;
}

/* 左侧固定部分 */
.sidebar {
    width: 260px;
    padding: 0;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.sidebar h1 {
    margin: 0 0 15px 0;
    font-size: xx-large;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 20px 0;
    /*border-bottom: 1px solid black;*/
    font-size: large;
}

.sidebar ul li .active {
    font-weight: bold;
}
.sidebar ul li a:hover {
    opacity: .6;
}

.sidebar ul .tool{
    display: flex;
}

.sidebar ul .tool .t-item{
    margin-right: 15px;
    cursor: pointer;
}

.sidebar ul .tool .t-item:hover{
    color: var(--default-contrast-color);
}

.sidebar .contact {
    margin-top: auto;
    padding-bottom: 39px;
    display: flex;
    flex-direction: column;
    font-size: small;
}

.sidebar .contact .code {
    display: none;
    width: 110px;
    background-color: white;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.sidebar .contact .code img {
    width: 100%;
}

.sidebar .contact span {
    margin-top: 5px;
}

.sidebar .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 50px;
    font-size: .8rem;
    font-weight: bold;
}
.sidebar .menu i{
    font-size: larger;
    transform: scale(1.3);
}

/* 右侧滚动区域 */
.content {
    margin-left: 260px;
    width: calc(100% - 260px);
}


/* 瀑布流网格 */
.grid {
    position: relative;
}

.item {
    display: block;
    position: absolute;
    width: 25%;
    min-height: 70px;
    z-index: 1;
    background: #f4f4f4;
    color: #585858;
    border: 6px solid #f9f9f9;
    box-sizing: border-box;
}

.item.muuri-item-dragging {
    z-index: 3;
}

.item.muuri-item-releasing {
    z-index: 2;
}

.item.muuri-item-hidden {
    z-index: 0;
}

.item-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.obj{
    border: 1px solid #e2e2e2;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.obj:hover{
    border-color: var(--default-color);
}
.obj .pic{
    flex: 1;
    overflow: hidden;
}
.obj .pic img{
    width: 100%;
    transition: transform 0.3s ease;
}
.obj:hover .pic img {
  transform: scale(1.1);
}

.obj .info{
    padding: 1rem 1.4rem 1.3rem 1.4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: white;
}
.obj .info .title{
    font-size: large;
    font-weight: 600;
    padding: .3rem 0;
}
.obj .info .abstract{
    overflow: hidden;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-align: justify;
    text-align-last: justify;
}

/*任何屏幕全屏*/
.item.box-full-screen {
    width: 100%;
}

/**
box-large       重要（响应式：大部分屏幕占70%-80%、小屏幕时100%）
box-medium      一般 （响应式：大部分屏幕占50%、小屏幕时100%）

以下样式不可叠加一个item只能使用一个
phone-50        仅在移动端生效占50%
phone-33        仅在移动端生效占33.333%
*/

/*超大屏幕*/
@media (min-width: 2601px) {
    .sidebar {
        width: 350px;
        background-color: #e3e3e3;
    }

    .content {
        margin-left: 350px;
        width: calc(100% - 350px);
    }

    .item {
        background: #f3ffde;
        width: 20%;
    }

    .item.box-large {
        width: 80%;
    }
}

/*台式机*/
@media (min-width: 1701px) and (max-width: 2600px) {
    .item {
        background: #f0f0f0;
        width: 25%;
    }

    .item.box-large {
        width: 75%;
    }

    .item.box-medium {
        width: 50%;
    }
}

/*笔记本*/
@media (min-width: 1300px) and (max-width: 1700px) {
    .sidebar {
        width: 230px;
        /* background-color: #e3e3e3; */
    }

    .sidebar h1 {
        font-size: x-large;
    }

    .sidebar ul li {
        padding: 15px 0;
    }

    .content {
        margin-left: 230px;
        width: calc(100% - 230px);
    }

    .item {
        background: #e3e3e3;
        width: 33.33333%;
    }

    .item.box-large {
        width: 66.66666%;
    }

    .item.box-medium {
        width: 66.66666%;
    }
}

/*主要是PAD*/
@media (min-width: 768px) and (max-width: 1299px) {
    .sidebar {
        width: 200px;
        /* background-color: #dedede; */
    }

    .sidebar h1 {
        font-size: larger;
    }

    .sidebar ul li {
        padding: 15px 0;
        font-size: medium;
    }

    .content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }

    .item {
        background: #e5e5e5;
        width: 50%;
    }

    .item.box-large {
        width: 100%;
    }

    .item.box-medium {
        width: 100%;
    }
    .breadcrumb.f-top{
        padding: 15px 0;
        left: 225px;
    }
}

/*主要是手机*/
@media (max-width: 767px) {
    html, body {
        padding: 0;
    }

    .sidebar {
        width: 100%;
        height: 50px;
        flex-direction: row;
        justify-content: space-between;
        background-color: #f0f0f0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        align-items: center;
        padding: 0;
    }

    .sidebar h1 {
        font-size: larger;
        margin-bottom: 0;
    }

    .sidebar ul {
        display: none;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease, opacity 0.3s ease; /* 添加透明度过渡 */
        opacity: 0; /* 初始状态为不可见 */
        visibility: hidden; /* 防止不可见时仍然占据空间 */
    }

    .sidebar ul li a {
        color: white;
    }

    .sidebar .active {
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background-color: #000000;
        margin: 0;
        height: 320px; /* 菜单展开时的高度对应js数值 */
        overflow-y: auto;
        scrollbar-width: none;
        opacity: 1; /* 使其可见 */
        visibility: visible; /* 显示元素 */
    }

    .sidebar .active li {
        padding: 19px 0;
        font-size: medium;
        color: white;
        text-align: center;
        position: relative;
    }

    .sidebar .active li::after {
        content: '';
        position: absolute;
        top: 0;
        left: 50%; /* 将线条居中 */
        width: 90%; /* 设置线条宽度 */
        transform: translateX(-50%); /* 保证居中对齐 */
        border-top: 1px solid #ffffff20; /* 定义边线的粗细和颜色 */
    }

    .sidebar .contact {
        display: none;
    }

    .sidebar .menu {
        display: flex;
        cursor: pointer;
    }

    .sidebar .menu:hover{
        color: var(--default-contrast-color);
    }

    .content {
        margin: 50px 0 0 0;
        width: 100%;
        height: calc(100vh - 80px);
        transition: margin 0.3s ease;
    }

    .item {
        background: #d4d4d4;
        width: 100%;
    }

    .item.phone-50 {
        width: 50%;
    }

    .item.phone-33 {
        width: 33.33333%;
    }

    .breadcrumb{
        padding-top: 15px;
        margin-bottom: 10px;
    }
    .breadcrumb.f-top{
        top: 80px;
        left: 0;
        padding: 15px 8px;
    }
    .obj:hover{
        border-color: transparent;
    }
    .obj .info{
        padding: .8rem 1rem 1.3rem 1rem;
    }
}


#language-form {
    display: flex;
    flex-direction: column;
}

#language-form .l-select {
    border: 1px solid;
    margin-bottom: 10px;
    padding: 10px;
    /*border-radius: 5px;*/
    cursor: pointer;
    text-align: center;
}

#language-form .l-select:last-child {
    margin-bottom: 0;
}

#language-form .l-select.active {
    background-color: var(--default-color);
    color: white;
}

#language-form .l-select .check {
    display: none;
}