﻿/* 全局样式 */

h1 {
    text-align: center;
    font-size: 24px;
    color: #333;
}
.detailcnki-container {
    padding: 0px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin:auto;
    max-width:768px;
}

/* 搜索框样式 */
.c-search-top1 {
    display: block !important;
    width: 95%;
    margin: 0 auto 25px;
}

.c-search-top-body {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 5px 5px;
    height: 36px;
    border: 1px solid #e6e6e6;
    transition: all 0.3s ease;
}

    .c-search-top-body:hover {
        border-color: #1890ff;
        box-shadow: 0 3px 12px rgba(24, 144, 255, 0.2);
    }

#selecttype_a {
    display: flex;
    align-items: center;
    padding: 0 10px 0 5px;
    color: #555;
    font-size: 15px;
    border-right: 1px solid #eee;
    height: 100%;
    cursor: pointer;
    white-space: nowrap;
}

    #selecttype_a:hover {
        color: #1890ff;
    }

    #selecttype_a img {
        width: 12px;
        margin-left: 5px;
        transition: transform 0.2s;
    }

.form-type {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 15px;
    height: 100%;
    background: transparent;
    color: #333;
}

    .form-type::placeholder {
        color: #aaa;
    }

.btn-search-block {
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.btn-search {
    display: inline-block;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

    .btn-search:hover {
        background: #40a9ff;
        transform: translateY(-1px);
    }

.select-menu {
    position: absolute;
    top: 55px;
    left: 0;
    width: 150px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    overflow: hidden;
}

.select-menu-inner {
    padding: 5px 0;
}

    .select-menu-inner a {
        display: block;
        padding: 8px 15px;
        color: #555;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.2s;
    }

        .select-menu-inner a:hover {
            background: #f0f7ff;
            color: #1890ff;
        }

/* 数据列表样式 */
.dataList {
    width: 100%; /* 撑满父容器 */
    margin: 0 auto; /* 水平居中 */
    padding: 0 10px; /* 左右留白 */
    box-sizing: border-box;
}

#list {
    list-style: none;
    padding: 0;
    margin: 0 auto; /* 列表居中 */
    max-width: 100%; /* 防止溢出 */
}



    #list li {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid #eee;
    }


        #list li:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border-color: #d9e7ff;
        }

        #list li a {
            display: block;
            padding: 18px;
            text-decoration: none;
            color: inherit;
        }

    #list h2 {
        font-size: 20px;
        color: #2c3e50;
        margin-bottom: 12px;
        line-height: 1.4;
        font-weight: 600;
    }

    #list .author {
        color: #666;
        font-size: 16px;
        margin-bottom: 12px;
    }

    #list .u-color-search {
        color: red;
    }

    #list p {
        color: #555;
        font-size: 16px;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: justify;
    }

.inforBox {
    display: flex;
    align-items: center;
    font-size: 16px;
}

    .inforBox .nianqi {
        background: #f0f7ff;
        padding: 4px 10px;
        border-radius: 4px;
        color: #1890ff;
        border: 1px solid #d0e3ff;
    }

/* 分页样式 */
.jczw-wrap {
    width: 100%;
    margin: 20px auto 20px;
    font-size:16px;
}

.fenye {
    display: flex;
    justify-content: center;
    width:100%;
}

#pagelist {
    display: flex;
    list-style: none;
    gap: 10px;
}

    #pagelist li {
        width: auto;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        cursor: pointer;
        transition: all 0.2s ease;
    }


/* 无结果容器样式 */
.g-search-none {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    max-width: 400px; /* 控制最大宽度 */
    margin: 0 auto; /* 水平居中 */
}

/* 图片样式 */
.g-search-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.6;
    margin-bottom: 5px;
    filter: grayscale(30%); /* 轻微灰度效果 */
}

/* 文字样式 */
.g-search-text {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
    font-weight: 400;
    margin-top: 10px;
}

