/* ===============================
   全局样式
================================ */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background:#f3f6fb;

    color:#222;

    display:flex;

    min-height:100vh;

}

/* ===============================
   左侧导航栏
================================ */

.sidebar{

    width:260px;

    height:100vh;

    position:fixed;

    top:0;

    left:0;

    overflow-y:auto;

    background:#0f172a;

    color:white;

    display:flex;

    flex-direction:column;

    padding:35px 25px;

}
.logo{

    margin-bottom:50px;

}

.logo h1{

    font-size:38px;

    margin-bottom:10px;

}

.logo p{

    color:#cbd5e1;

    font-size:14px;

    line-height:1.6;

}

.sidebar ul{

    list-style:none;

}

.sidebar li{

    padding:16px;

    margin-bottom:12px;

    border-radius:12px;

    cursor:pointer;

    transition:0.3s;

}

.sidebar li:hover{

    background:#1d4ed8;

}

.sidebar .active{

    background:#2563eb;

}
/* ===============================
   主内容区域
================================ */

.container{

    flex:1;

    margin-left:260px;

    padding:40px 50px;

    min-height:100vh;

}

/* ===============================
   顶部标题
================================ */

header{

    margin-bottom:35px;

}

header h1{

    font-size:34px;

    color:#0f172a;

    margin-bottom:10px;

}

header p{

    font-size:16px;

    color:#64748b;

}

/* ===============================
   搜索区域
================================ */

.search-panel{

    background:white;

    border-radius:18px;

    padding:30px;

    box-shadow:

        0 8px 30px

        rgba(15,23,42,0.08);

    margin-bottom:30px;

    display:flex;

    align-items:center;

    gap:12px;

}

.search-input{
    flex:1;
    display:flex;
    gap:15px;
}

.search-input input{

    flex:1;

    height:52px;

    border:none;

    outline:none;

    background:#f8fafc;

    border-radius:12px;

    padding:0 20px;

    font-size:17px;

    transition:0.3s;

}

.search-input input:focus{

    background:white;

    box-shadow:

        0 0 0 3px

        rgba(37,99,235,0.15);

}

.search-input button{

    width:140px;

    border:none;

    border-radius:12px;

    background:#2563eb;

    color:white;

    font-size:16px;

    cursor:pointer;

    transition:0.3s;

}

.search-input button:hover{

    background:#1d4ed8;

}
/* ===============================
   搜索结果
================================ */

#loading{

    margin-top:25px;

    font-size:22px;

    color:#2563eb;

}

.results{

    margin-top:35px;

}

.paper-card{

    background:white;

    border-radius:18px;

    padding:28px;

    margin-bottom:28px;

    box-shadow:0 8px 30px rgba(0,0,0,.08);

}

.paper-card h2{

    color:#1e3a8a;

    margin-bottom:15px;

}

.paper-card p{

    line-height:1.8;

    margin-bottom:10px;

    color:#475569;

}

.links{

    margin-top:20px;

}

.links a{

    display:inline-block;

    margin-right:15px;

    padding:10px 18px;

    border-radius:8px;

    background:#2563eb;

    color:white;

    text-decoration:none;

}

.links a:hover{

    background:#1d4ed8;

}
/* ===============================
   ChemVigil Highlight
================================ */

mark{

    background: transparent !important;

    color: inherit !important;

    font-weight: 700;

    padding: 0;

    border-radius: 0;

}
/* ===============================
   Keywords
================================ */

.keyword-line{

    display:flex;

    align-items:flex-start;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:12px;

}

.keyword-line b{

    color:#475569;

    white-space:nowrap;

}

.keyword-list{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

    flex:1;

}
.keyword-list{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.keyword-tag{

    background:#eef4ff;

    color:#2563eb;

    border:1px solid #dbeafe;

    border-radius:999px;

    padding:6px 14px;

    font-size:13px;

    font-weight:600;

}

.keyword-more{

    background:#f1f5f9;

    color:#64748b;

    border-radius:999px;

    padding:6px 14px;

    font-size:13px;

    font-weight:600;

}
/* ======================================
   Paper Card
====================================== */

.paper-card{

    transition:.25s;

}

.paper-card:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 35px rgba(0,0,0,.12);

}

/* ======================================
   Keywords
====================================== */

.keyword-line{

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:8px;

    margin-top:14px;

    margin-bottom:14px;

}

.keyword-list{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

}

.keyword-tag{

    background:#eff6ff;

    color:#2563eb;

    border:1px solid #bfdbfe;

    border-radius:999px;

    padding:4px 12px;

    font-size:13px;

    font-weight:600;

}

.keyword-more{

    background:#e2e8f0;

    color:#475569;

    border-radius:999px;

    padding:4px 10px;

    font-size:13px;

    font-weight:600;

}

/* ======================================
   Abstract
====================================== */

.abstract-line{

    margin-top:18px;

    line-height:1.9;

    color:#475569;

}

.abstract-text{

    color:#475569;

}

.abstract-text strong{

    font-weight:700;

    color:inherit;

    background:none;

}

/* 防止后台返回 mark */

.abstract-text mark{

    background:none;

    color:inherit;

    font-weight:700;

}

/* ======================================
   Read More
====================================== */

.read-more{

    margin-left:8px;

    color:#2563eb;

    cursor:pointer;

    font-weight:600;

    user-select:none;

}

.read-more:hover{

    text-decoration:underline;

}

/* ======================================
   Links
====================================== */

.links{

    margin-top:20px;

    display:flex;

    gap:12px;

}

.links a{

    transition:.2s;

}

.links a:hover{

    transform:translateY(-2px);

}
.keyword-highlight{

    font-weight:700;

    color:#1d4ed8;

    background:none;

}
/* ======================================
   Abstract Highlight
====================================== */

.keyword-highlight{

    font-weight:700;

    color:#1d4ed8;

    background:none;

}

.abstract-text strong{

    font-weight:700;

    color:#1d4ed8;

    background:none;

}

.abstract-text mark{

    background:none;

    color:#1d4ed8;

    font-weight:700;

}
/* =====================================
   SPA Navigation
===================================== */

.page{

    display:none;

    animation:fadeIn .25s ease;

}

.active-page{

    display:block;

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(8px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* =====================================
   Sidebar Active
===================================== */

.sidebar ul li{

    cursor:pointer;

    transition:.25s;

    border-radius:10px;

}

.sidebar ul li:hover{

    background:#edf4ff;

}

.sidebar ul li.active{

    background:#2b7cff;

    color:#fff;

    font-weight:600;

}

/* =====================================
   Placeholder Pages
===================================== */

.page h2{

    margin-bottom:20px;

}

.page p{

    font-size:16px;

    color:#666;

}
/* =====================================
   Pagination
===================================== */


#pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    margin-top:35px;

    margin-bottom:40px;

}



#pagination button{

    min-width:42px;

    height:42px;

    padding:0 16px;

    border:none;

    border-radius:12px;

    background:white;

    color:#475569;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    box-shadow:

        0 5px 18px

        rgba(15,23,42,0.08);

    transition:.25s;

}



#pagination button:hover{


    background:#eff6ff;

    color:#2563eb;

    transform:translateY(-2px);


}



#pagination button:disabled{


    cursor:not-allowed;

    opacity:.5;

    transform:none;


}



#pagination button.page-active{


    background:#2563eb;

    color:white;

    box-shadow:

        0 8px 20px

        rgba(37,99,235,.25);


}

/* =====================================
   Dashboard Cards & Controls
===================================== */

.card{
    background:white;
    border-radius:18px;
    padding:28px;
    box-shadow:0 8px 30px rgba(15,23,42,0.08);
}

.btn{
    height:42px;
    padding:0 20px;
    border:none;
    border-radius:12px;
    background:#2563eb;
    color:white;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
    white-space:nowrap;
}
.btn:hover{
    background:#1d4ed8;
    transform:translateY(-1px);
}
.btn:disabled{
    opacity:0.6;
    cursor:not-allowed;
    transform:none;
}

.input{
    height:42px;
    border:none;
    outline:none;
    background:#f8fafc;
    border-radius:12px;
    padding:0 16px;
    font-size:15px;
    color:#222;
    transition:0.3s;
}
.input:focus{
    background:white;
    box-shadow:0 0 0 3px rgba(37,99,235,0.15);
}

.journal-item, .topic-item, .job-item, .match-item, .report-item, .article-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 16px;
    border-radius:12px;
    transition:0.2s;
    gap:12px;
}
.journal-item:hover, .topic-item:hover, .job-item:hover, .match-item:hover, .report-item:hover, .article-item:hover{
    background:#f8fafc;
}
.journal-item + .journal-item, .topic-item + .topic-item{
    margin-top:4px;
}
.journal-name, .topic-name, .match-title, .report-title, .article-title{
    font-weight:600;
    color:#0f172a;
    font-size:15px;
}
.journal-publisher, .topic-keywords, .article-meta{
    font-size:13px;
    color:#64748b;
    margin-top:2px;
}
.follow-btn, .unfollow-btn, .delete-btn{
    padding:8px 16px;
    border:none;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:0.2s;
    white-space:nowrap;
}
.follow-btn{
    background:#eef4ff;
    color:#2563eb;
    border:1px solid #dbeafe;
}
.follow-btn:hover{
    background:#2563eb;
    color:white;
}
.follow-btn.following{
    background:#16a34a;
    color:white;
    border:none;
}
.follow-btn.following:hover{
    background:#15803d;
}
.unfollow-btn{
    background:#fef2f2;
    color:#dc2626;
    border:1px solid #fecaca;
}
.unfollow-btn:hover{
    background:#dc2626;
    color:white;
}
.delete-btn{
    background:#fef2f2;
    color:#dc2626;
    border:1px solid #fecaca;
}
.delete-btn:hover{
    background:#dc2626;
    color:white;
}
.topic-score{
    font-size:13px;
    font-weight:600;
    color:#2563eb;
}
.report-date, .job-item{
    font-size:13px;
    color:#64748b;
}
.job-item strong{
    color:#0f172a;
}
.match-title{
    flex:1;
}
.match-item, .report-item{
    cursor:pointer;
}

/* =====================================
   Publisher Groups
===================================== */

.pub-group{
    border-radius:12px;
    overflow:hidden;
    margin-bottom:6px;
}
.pub-header{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 16px;
    background:#f1f5f9;
    cursor:pointer;
    border-radius:12px;
    transition:0.2s;
    user-select:none;
}
.pub-header:hover{
    background:#e2e8f0;
}
.pub-header.open{
    border-radius:12px 12px 0 0;
}
.pub-arrow{
    font-size:12px;
    color:#64748b;
    width:16px;
}
.pub-name{
    font-weight:700;
    font-size:14px;
    color:#0f172a;
    text-transform:uppercase;
    letter-spacing:0.5px;
}
.pub-count{
    margin-left:auto;
    background:#e2e8f0;
    color:#475569;
    border-radius:999px;
    padding:2px 10px;
    font-size:12px;
    font-weight:600;
}
.pub-body{
    border:1px solid #f1f5f9;
    border-top:none;
    border-radius:0 0 12px 12px;
    padding:4px 0;
}

/* =====================================
   Star Button
===================================== */

.star-btn{
    color:#94a3b8;
    transition:0.2s;
}
.star-btn:hover{
    transform:scale(1.2);
}
