1360 lines
25 KiB
CSS
1360 lines
25 KiB
CSS
/* css/reference-manager-detail.css */
|
||
/* 参考文献管理器详情页样式 - 悬浮面板、引用链接、详情卡片 */
|
||
|
||
/* ============================================
|
||
详情页专用样式 - 文献区域和悬浮面板
|
||
============================================ */
|
||
|
||
/* 文档末尾的参考文献区域 */
|
||
.reference-section {
|
||
margin-top: 60px;
|
||
margin-left: auto;
|
||
margin-right: auto;
|
||
max-width: 900px; /* 限制最大宽度 */
|
||
padding: 30px;
|
||
background: linear-gradient(to bottom, #f8fafc, #ffffff);
|
||
border-top: 3px solid #3b82f6;
|
||
border-radius: 8px;
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||
}
|
||
|
||
.reference-section-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 24px;
|
||
padding-bottom: 16px;
|
||
border-bottom: 2px solid #e0e0e0;
|
||
}
|
||
|
||
.reference-section-header h2 {
|
||
margin: 0;
|
||
color: #333;
|
||
font-size: 28px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.reference-section-actions {
|
||
display: flex;
|
||
gap: 10px;
|
||
}
|
||
|
||
.ref-manage-btn,
|
||
.ref-extract-btn {
|
||
padding: 8px 16px;
|
||
border: 1px solid #ddd;
|
||
background-color: #fff;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
transition: all 0.2s;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.ref-manage-btn {
|
||
background-color: #3b82f6;
|
||
color: white;
|
||
border-color: #3b82f6;
|
||
}
|
||
|
||
.ref-manage-btn:hover {
|
||
background-color: #2563eb;
|
||
}
|
||
|
||
.ref-extract-btn:hover {
|
||
background-color: #f5f5f5;
|
||
}
|
||
|
||
/* 参考文献列表 */
|
||
.reference-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 20px;
|
||
}
|
||
|
||
.reference-item {
|
||
display: flex;
|
||
gap: 16px;
|
||
padding: 16px;
|
||
background-color: #fff;
|
||
border: 1px solid #e0e0e0;
|
||
border-radius: 8px;
|
||
transition: all 0.2s;
|
||
}
|
||
|
||
.reference-item:hover {
|
||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||
border-color: #3b82f6;
|
||
}
|
||
|
||
.reference-number {
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
color: #3b82f6;
|
||
min-width: 40px;
|
||
}
|
||
|
||
.reference-content {
|
||
flex: 1;
|
||
}
|
||
|
||
.reference-meta {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.ref-authors {
|
||
font-weight: 500;
|
||
color: #333;
|
||
}
|
||
|
||
.ref-year {
|
||
color: #666;
|
||
}
|
||
|
||
.reference-title {
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
color: #1976d2;
|
||
margin-bottom: 6px;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.reference-journal {
|
||
color: #666;
|
||
font-size: 14px;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.reference-details {
|
||
color: #888;
|
||
font-size: 13px;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.reference-doi {
|
||
font-size: 13px;
|
||
color: #666;
|
||
margin-top: 6px;
|
||
}
|
||
|
||
.reference-doi a {
|
||
color: #2196F3;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.reference-doi a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.reference-tags {
|
||
display: flex;
|
||
gap: 6px;
|
||
margin-top: 8px;
|
||
}
|
||
|
||
.ref-tag-small {
|
||
display: inline-block;
|
||
padding: 2px 8px;
|
||
background-color: #e3f2fd;
|
||
color: #1976d2;
|
||
border-radius: 10px;
|
||
font-size: 11px;
|
||
}
|
||
|
||
.reference-actions {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.ref-action-icon {
|
||
background: none;
|
||
border: 1px solid #ddd;
|
||
border-radius: 4px;
|
||
padding: 6px 10px;
|
||
cursor: pointer;
|
||
color: #666;
|
||
transition: all 0.2s;
|
||
}
|
||
|
||
.ref-action-icon:hover {
|
||
background-color: #f0f0f0;
|
||
color: #333;
|
||
}
|
||
|
||
/* TOC中的参考文献链接 */
|
||
.toc-reference-link {
|
||
border-top: 1px solid #e0e0e0;
|
||
padding-top: 10px;
|
||
margin-top: 10px;
|
||
}
|
||
|
||
.toc-ref-link {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 8px 12px;
|
||
color: #3b82f6 !important;
|
||
font-weight: 500;
|
||
transition: background-color 0.2s;
|
||
}
|
||
|
||
.toc-ref-link:hover {
|
||
background-color: #f0f0f0;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
/* 悬浮面板(类似chatbot) */
|
||
.reference-floating-panel {
|
||
position: fixed;
|
||
right: 30px;
|
||
bottom: 80px;
|
||
width: 450px;
|
||
height: 600px;
|
||
max-height: 600px;
|
||
background: white;
|
||
border-radius: 16px;
|
||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.1);
|
||
display: flex;
|
||
flex-direction: column;
|
||
z-index: 9999;
|
||
animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||
border: 1px solid rgba(59, 130, 246, 0.1);
|
||
}
|
||
|
||
@keyframes slideInRight {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateX(30px) scale(0.95);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateX(0) scale(1);
|
||
}
|
||
}
|
||
|
||
.reference-panel-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 18px 22px;
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
border-radius: 16px 16px 0 0;
|
||
cursor: grab;
|
||
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
|
||
}
|
||
|
||
.reference-panel-header h3 {
|
||
margin: 0;
|
||
font-size: 17px;
|
||
font-weight: 600;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
letter-spacing: -0.01em;
|
||
}
|
||
|
||
.reference-panel-actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
.ref-panel-minimize,
|
||
.ref-panel-close {
|
||
background: rgba(255, 255, 255, 0.15);
|
||
border: none;
|
||
color: white;
|
||
font-size: 15px;
|
||
cursor: pointer;
|
||
padding: 6px 10px;
|
||
border-radius: 6px;
|
||
transition: all 0.2s;
|
||
backdrop-filter: blur(10px);
|
||
}
|
||
|
||
.ref-panel-minimize:hover,
|
||
.ref-panel-close:hover {
|
||
background: rgba(255, 255, 255, 0.25);
|
||
transform: scale(1.05);
|
||
}
|
||
|
||
.reference-panel-toolbar {
|
||
display: flex;
|
||
gap: 8px;
|
||
padding: 14px 16px;
|
||
background: linear-gradient(to bottom, #f8f9fa, #ffffff);
|
||
border-bottom: 1px solid #e5e7eb;
|
||
}
|
||
|
||
.ref-toolbar-btn {
|
||
flex: 1;
|
||
padding: 8px 14px;
|
||
border: 1px solid #d1d5db;
|
||
background: white;
|
||
border-radius: 8px;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
transition: all 0.2s;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
color: #374151;
|
||
}
|
||
|
||
.ref-toolbar-btn:hover {
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
border-color: #3b82f6;
|
||
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
.reference-panel-content {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 16px;
|
||
background: #fafbfc;
|
||
}
|
||
|
||
/* 美化滚动条 */
|
||
.reference-panel-content::-webkit-scrollbar {
|
||
width: 6px;
|
||
}
|
||
|
||
.reference-panel-content::-webkit-scrollbar-track {
|
||
background: transparent;
|
||
}
|
||
|
||
.reference-panel-content::-webkit-scrollbar-thumb {
|
||
background: #cbd5e1;
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.reference-panel-content::-webkit-scrollbar-thumb:hover {
|
||
background: #94a3b8;
|
||
}
|
||
|
||
.ref-panel-placeholder {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 40px 20px;
|
||
text-align: center;
|
||
color: #999;
|
||
}
|
||
|
||
.ref-panel-placeholder i {
|
||
margin-bottom: 16px;
|
||
color: #ddd;
|
||
}
|
||
|
||
.ref-panel-placeholder p {
|
||
margin: 16px 0;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.ref-panel-placeholder button {
|
||
padding: 8px 20px;
|
||
background-color: #3b82f6;
|
||
color: white;
|
||
border: none;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
transition: background-color 0.2s;
|
||
}
|
||
|
||
.ref-panel-placeholder button:hover {
|
||
background-color: #2563eb;
|
||
}
|
||
|
||
.ref-panel-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
padding: 4px;
|
||
}
|
||
|
||
.ref-panel-item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
padding: 14px;
|
||
background: linear-gradient(135deg, #ffffff, #f8f9fa);
|
||
border: 1px solid #e0e0e0;
|
||
border-radius: 10px;
|
||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
||
}
|
||
|
||
.ref-panel-item:hover {
|
||
background: linear-gradient(135deg, #eff6ff, #dbeafe);
|
||
border-color: #3b82f6;
|
||
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.ref-panel-header {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 10px;
|
||
}
|
||
|
||
.ref-panel-number {
|
||
font-size: 15px;
|
||
font-weight: 700;
|
||
color: #3b82f6;
|
||
min-width: 35px;
|
||
height: 28px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: linear-gradient(135deg, #dbeafe, #eff6ff);
|
||
border-radius: 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.ref-panel-title {
|
||
flex: 1;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: #1e293b;
|
||
line-height: 1.5;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.ref-panel-meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
align-items: center;
|
||
font-size: 12px;
|
||
color: #64748b;
|
||
margin-left: 45px;
|
||
}
|
||
|
||
.ref-panel-authors {
|
||
font-weight: 500;
|
||
color: #475569;
|
||
}
|
||
|
||
.ref-panel-year,
|
||
.ref-panel-journal {
|
||
padding: 2px 8px;
|
||
background-color: #f1f5f9;
|
||
border-radius: 4px;
|
||
color: #64748b;
|
||
}
|
||
|
||
.ref-panel-citations {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 11px;
|
||
color: #10b981;
|
||
background-color: #d1fae5;
|
||
padding: 4px 10px;
|
||
border-radius: 12px;
|
||
width: fit-content;
|
||
margin-left: 45px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.ref-panel-citations i {
|
||
font-size: 10px;
|
||
}
|
||
|
||
.ref-panel-actions {
|
||
display: flex;
|
||
gap: 6px;
|
||
margin-left: 45px;
|
||
margin-top: 4px;
|
||
}
|
||
|
||
.ref-panel-action-btn {
|
||
flex: 1;
|
||
padding: 6px 12px;
|
||
border: 1px solid #d1d5db;
|
||
background: white;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
transition: all 0.2s;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 4px;
|
||
color: #374151;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.ref-panel-action-btn:hover {
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
border-color: #3b82f6;
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
|
||
}
|
||
|
||
.ref-panel-action-btn i {
|
||
font-size: 11px;
|
||
}
|
||
|
||
/* Dock中的文献统计样式 */
|
||
.dock-stat-item-wrapper-reference {
|
||
cursor: pointer;
|
||
transition: background-color 0.2s;
|
||
}
|
||
|
||
.dock-stat-item-wrapper-reference:hover {
|
||
background-color: rgba(76, 175, 80, 0.1);
|
||
}
|
||
|
||
/* 参考文献条目高亮动画 */
|
||
.reference-item-highlight {
|
||
background-color: #fff3cd !important;
|
||
border-color: #ffc107 !important;
|
||
animation: referenceFlash 0.5s ease 3;
|
||
}
|
||
|
||
@keyframes referenceFlash {
|
||
0%, 100% {
|
||
background-color: #fff3cd;
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
background-color: #ffeb3b;
|
||
transform: scale(1.02);
|
||
}
|
||
}
|
||
|
||
/* 原文中的引用链接 */
|
||
.reference-citation {
|
||
color: #3b82f6;
|
||
text-decoration: none;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
padding: 0 2px;
|
||
border-radius: 3px;
|
||
transition: all 0.2s ease;
|
||
position: relative;
|
||
}
|
||
|
||
.reference-citation:hover {
|
||
color: #2563eb;
|
||
background: rgba(59, 130, 246, 0.1);
|
||
text-decoration: none;
|
||
}
|
||
|
||
/* 引用悬浮卡片 */
|
||
.reference-citation-tooltip {
|
||
position: absolute;
|
||
z-index: 10000;
|
||
background: white;
|
||
border: 1px solid #e0e0e0;
|
||
border-radius: 8px;
|
||
padding: 16px;
|
||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
||
max-width: 400px;
|
||
min-width: 300px;
|
||
pointer-events: none;
|
||
opacity: 0;
|
||
transform: translateY(-5px);
|
||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||
visibility: hidden;
|
||
}
|
||
|
||
.reference-citation-tooltip.show {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
visibility: visible;
|
||
}
|
||
|
||
/* 详细悬浮卡片(改进版) */
|
||
.reference-detail-tooltip {
|
||
position: absolute;
|
||
z-index: 10000;
|
||
background: white;
|
||
border: 1px solid #e5e7eb;
|
||
border-radius: 12px;
|
||
width: 420px;
|
||
max-height: 600px;
|
||
overflow-y: auto;
|
||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
|
||
pointer-events: auto;
|
||
opacity: 0;
|
||
transform: scale(0.95);
|
||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||
visibility: hidden;
|
||
}
|
||
|
||
.reference-detail-tooltip.show {
|
||
opacity: 1;
|
||
transform: scale(1);
|
||
visibility: visible;
|
||
}
|
||
|
||
.tooltip-detail-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 16px 18px;
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
border-radius: 12px 12px 0 0;
|
||
}
|
||
|
||
.tooltip-detail-number {
|
||
font-size: 18px;
|
||
font-weight: 700;
|
||
color: white;
|
||
}
|
||
|
||
.tooltip-detail-close {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
border: none;
|
||
color: white;
|
||
font-size: 16px;
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.tooltip-detail-close:hover {
|
||
background: rgba(255, 255, 255, 0.3);
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.tooltip-detail-content {
|
||
padding: 18px;
|
||
}
|
||
|
||
.tooltip-detail-title {
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
color: #1e293b;
|
||
margin: 0 0 14px 0;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.tooltip-detail-authors {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 8px;
|
||
font-size: 13px;
|
||
color: #475569;
|
||
margin-bottom: 12px;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.tooltip-detail-authors i {
|
||
color: #94a3b8;
|
||
margin-top: 2px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.tooltip-detail-meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.tooltip-detail-meta span {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding: 4px 10px;
|
||
background: #f1f5f9;
|
||
border-radius: 6px;
|
||
font-size: 12px;
|
||
color: #64748b;
|
||
}
|
||
|
||
.tooltip-detail-meta i {
|
||
color: #94a3b8;
|
||
font-size: 11px;
|
||
}
|
||
|
||
.tooltip-detail-abstract {
|
||
margin-bottom: 14px;
|
||
padding: 12px;
|
||
background: #f8f9fa;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.tooltip-detail-abstract strong {
|
||
font-size: 12px;
|
||
color: #334155;
|
||
display: block;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.tooltip-detail-abstract p {
|
||
font-size: 13px;
|
||
line-height: 1.6;
|
||
color: #475569;
|
||
margin: 0;
|
||
max-height: 150px;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.tooltip-detail-doi {
|
||
padding: 10px 12px;
|
||
background: #eff6ff;
|
||
border-left: 3px solid #3b82f6;
|
||
border-radius: 4px;
|
||
margin-bottom: 14px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.tooltip-detail-doi strong {
|
||
color: #1e40af;
|
||
margin-right: 6px;
|
||
}
|
||
|
||
.tooltip-detail-doi a {
|
||
color: #3b82f6;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.tooltip-detail-doi a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.tooltip-detail-citations {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 8px 12px;
|
||
background: #d1fae5;
|
||
border-left: 3px solid #10b981;
|
||
border-radius: 4px;
|
||
font-size: 12px;
|
||
color: #047857;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.tooltip-detail-citations strong {
|
||
color: #065f46;
|
||
}
|
||
|
||
.tooltip-detail-actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
padding: 12px 18px;
|
||
border-top: 1px solid #e5e7eb;
|
||
background: #f9fafb;
|
||
border-radius: 0 0 12px 12px;
|
||
}
|
||
|
||
.tooltip-action-btn {
|
||
flex: 1;
|
||
padding: 8px 14px;
|
||
border: 1px solid #d1d5db;
|
||
background: white;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
color: #374151;
|
||
transition: all 0.2s;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 4px;
|
||
}
|
||
|
||
.tooltip-action-btn:hover {
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
border-color: #3b82f6;
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
|
||
}
|
||
|
||
.tooltip-action-btn i {
|
||
font-size: 11px;
|
||
}
|
||
|
||
/* 多文献列表样式 */
|
||
.tooltip-multiple-refs {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
max-height: 450px;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.tooltip-ref-item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
background: white;
|
||
border-radius: 6px;
|
||
border: 1px solid #e2e8f0;
|
||
transition: all 0.15s;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.tooltip-ref-item.expanded {
|
||
border-color: #3b82f6;
|
||
box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15);
|
||
}
|
||
|
||
.tooltip-ref-header {
|
||
display: flex;
|
||
gap: 10px;
|
||
padding: 10px;
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.tooltip-ref-header:hover {
|
||
background: #eff6ff;
|
||
}
|
||
|
||
.tooltip-ref-item.expanded .tooltip-ref-header {
|
||
background: #eff6ff;
|
||
border-bottom: 1px solid #e2e8f0;
|
||
}
|
||
|
||
.tooltip-ref-toggle {
|
||
flex-shrink: 0;
|
||
margin-left: auto;
|
||
color: #94a3b8;
|
||
font-size: 12px;
|
||
transition: transform 0.2s;
|
||
}
|
||
|
||
.tooltip-ref-toggle.expanded {
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
.tooltip-ref-detail {
|
||
padding: 12px;
|
||
background: #f8fafc;
|
||
border-top: 1px solid #e2e8f0;
|
||
animation: slideDown 0.2s ease-out;
|
||
}
|
||
|
||
@keyframes slideDown {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(-10px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
.tooltip-ref-detail-section {
|
||
margin-bottom: 10px;
|
||
font-size: 12px;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.tooltip-ref-detail-section:last-of-type {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.tooltip-ref-detail-section strong {
|
||
color: #475569;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
.tooltip-ref-detail-section i {
|
||
font-size: 11px;
|
||
color: #94a3b8;
|
||
}
|
||
|
||
.tooltip-ref-detail-actions {
|
||
display: flex;
|
||
gap: 6px;
|
||
margin-top: 12px;
|
||
padding-top: 12px;
|
||
border-top: 1px solid #e2e8f0;
|
||
}
|
||
|
||
.tooltip-ref-action-btn {
|
||
flex: 1;
|
||
padding: 6px 10px;
|
||
border: 1px solid #d1d5db;
|
||
background: white;
|
||
color: #475569;
|
||
font-size: 11px;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 4px;
|
||
}
|
||
|
||
.tooltip-ref-action-btn:hover {
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
border-color: #3b82f6;
|
||
}
|
||
|
||
.tooltip-ref-number {
|
||
flex-shrink: 0;
|
||
width: 32px;
|
||
height: 32px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
font-weight: 600;
|
||
font-size: 12px;
|
||
border-radius: 6px;
|
||
}
|
||
|
||
.tooltip-ref-info {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.tooltip-ref-title {
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
color: #1e293b;
|
||
margin-bottom: 3px;
|
||
line-height: 1.3;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.tooltip-ref-authors {
|
||
font-size: 11px;
|
||
color: #64748b;
|
||
line-height: 1.3;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
/* 美化滚动条 */
|
||
.reference-detail-tooltip::-webkit-scrollbar {
|
||
width: 6px;
|
||
}
|
||
|
||
.reference-detail-tooltip::-webkit-scrollbar-track {
|
||
background: #f1f5f9;
|
||
}
|
||
|
||
.reference-detail-tooltip::-webkit-scrollbar-thumb {
|
||
background: #cbd5e1;
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.reference-detail-tooltip::-webkit-scrollbar-thumb:hover {
|
||
background: #94a3b8;
|
||
}
|
||
|
||
.tooltip-detail-abstract::-webkit-scrollbar {
|
||
width: 4px;
|
||
}
|
||
|
||
.tooltip-detail-abstract::-webkit-scrollbar-track {
|
||
background: transparent;
|
||
}
|
||
|
||
.tooltip-detail-abstract::-webkit-scrollbar-thumb {
|
||
background: #cbd5e1;
|
||
border-radius: 2px;
|
||
}
|
||
|
||
.tooltip-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 12px;
|
||
padding-bottom: 10px;
|
||
border-bottom: 1px solid #e0e0e0;
|
||
}
|
||
|
||
.tooltip-number {
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
color: #3b82f6;
|
||
}
|
||
|
||
.tooltip-title {
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: #333;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.tooltip-authors {
|
||
font-size: 13px;
|
||
color: #666;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.tooltip-meta {
|
||
font-size: 12px;
|
||
color: #888;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.tooltip-abstract {
|
||
font-size: 12px;
|
||
color: #555;
|
||
line-height: 1.5;
|
||
margin-top: 8px;
|
||
max-height: 100px;
|
||
overflow-y: auto;
|
||
padding: 8px;
|
||
background-color: #f8f9fa;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.tooltip-doi {
|
||
font-size: 11px;
|
||
margin-top: 8px;
|
||
padding-top: 8px;
|
||
border-top: 1px solid #f0f0f0;
|
||
}
|
||
|
||
.tooltip-doi a {
|
||
color: #2196F3;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.tooltip-doi a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
/* 返回原文按钮 */
|
||
.ref-back-to-text {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding: 4px 10px;
|
||
font-size: 12px;
|
||
color: #3b82f6;
|
||
background-color: #eff6ff;
|
||
border: 1px solid #bfdbfe;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.ref-back-to-text:hover {
|
||
background-color: #dbeafe;
|
||
border-color: #93c5fd;
|
||
transform: translateX(-2px);
|
||
}
|
||
|
||
.ref-back-to-text i {
|
||
font-size: 10px;
|
||
}
|
||
|
||
/* 文献详细卡片模态框 */
|
||
.reference-detail-modal {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
background: rgba(0, 0, 0, 0.6);
|
||
backdrop-filter: blur(4px);
|
||
z-index: 10001;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
opacity: 0;
|
||
visibility: hidden;
|
||
transition: opacity 0.3s, visibility 0.3s;
|
||
}
|
||
|
||
.reference-detail-modal.show {
|
||
opacity: 1;
|
||
visibility: visible;
|
||
}
|
||
|
||
.reference-detail-card {
|
||
background: white;
|
||
border-radius: 16px;
|
||
width: 90%;
|
||
max-width: 700px;
|
||
max-height: 85vh;
|
||
overflow-y: auto;
|
||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
||
transform: scale(0.95);
|
||
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||
}
|
||
|
||
.reference-detail-modal.show .reference-detail-card {
|
||
transform: scale(1);
|
||
}
|
||
|
||
.reference-detail-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 24px 28px;
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
border-radius: 16px 16px 0 0;
|
||
}
|
||
|
||
.reference-detail-number {
|
||
font-size: 24px;
|
||
font-weight: 700;
|
||
color: white;
|
||
}
|
||
|
||
.reference-detail-close {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
border: none;
|
||
color: white;
|
||
font-size: 20px;
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 8px;
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.reference-detail-close:hover {
|
||
background: rgba(255, 255, 255, 0.3);
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.reference-detail-content {
|
||
padding: 28px;
|
||
}
|
||
|
||
.reference-detail-title {
|
||
font-size: 22px;
|
||
font-weight: 600;
|
||
color: #1e293b;
|
||
margin: 0 0 20px 0;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.reference-detail-meta {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
margin-bottom: 20px;
|
||
padding: 16px;
|
||
background: #f8f9fa;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.reference-detail-authors,
|
||
.reference-detail-year,
|
||
.reference-detail-journal {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font-size: 14px;
|
||
color: #475569;
|
||
}
|
||
|
||
.reference-detail-authors {
|
||
font-weight: 500;
|
||
}
|
||
|
||
.reference-detail-authors i,
|
||
.reference-detail-year i,
|
||
.reference-detail-journal i {
|
||
color: #94a3b8;
|
||
width: 16px;
|
||
}
|
||
|
||
.reference-detail-publication {
|
||
display: flex;
|
||
gap: 12px;
|
||
margin-bottom: 20px;
|
||
font-size: 14px;
|
||
color: #64748b;
|
||
}
|
||
|
||
.reference-detail-publication span {
|
||
padding: 4px 12px;
|
||
background: #e2e8f0;
|
||
border-radius: 6px;
|
||
}
|
||
|
||
.reference-detail-abstract {
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.reference-detail-abstract h4 {
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
color: #334155;
|
||
margin: 0 0 12px 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.reference-detail-abstract h4 i {
|
||
color: #94a3b8;
|
||
}
|
||
|
||
.reference-detail-abstract p {
|
||
font-size: 14px;
|
||
line-height: 1.7;
|
||
color: #475569;
|
||
margin: 0;
|
||
}
|
||
|
||
.reference-detail-doi {
|
||
padding: 12px 16px;
|
||
background: #eff6ff;
|
||
border-left: 4px solid #3b82f6;
|
||
border-radius: 4px;
|
||
margin-bottom: 20px;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.reference-detail-doi strong {
|
||
color: #1e40af;
|
||
margin-right: 8px;
|
||
}
|
||
|
||
.reference-detail-doi a {
|
||
color: #3b82f6;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.reference-detail-doi a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.reference-detail-citations {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 12px 16px;
|
||
background: #d1fae5;
|
||
border-left: 4px solid #10b981;
|
||
border-radius: 4px;
|
||
font-size: 14px;
|
||
color: #047857;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.reference-detail-citations strong {
|
||
color: #065f46;
|
||
}
|
||
|
||
.reference-detail-actions {
|
||
display: flex;
|
||
gap: 10px;
|
||
padding: 20px 28px;
|
||
border-top: 1px solid #e5e7eb;
|
||
background: #f9fafb;
|
||
border-radius: 0 0 16px 16px;
|
||
}
|
||
|
||
.ref-detail-btn {
|
||
flex: 1;
|
||
padding: 12px 20px;
|
||
border: 1px solid #d1d5db;
|
||
background: white;
|
||
border-radius: 8px;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: #374151;
|
||
transition: all 0.2s;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.ref-detail-btn:hover {
|
||
background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
|
||
border-color: #9ca3af;
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
.ref-detail-btn-primary {
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
border-color: #3b82f6;
|
||
}
|
||
|
||
.ref-detail-btn-primary:hover {
|
||
background: linear-gradient(135deg, #2563eb, #1d4ed8);
|
||
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
|
||
}
|
||
|
||
/* 美化滚动条 */
|
||
.reference-detail-card::-webkit-scrollbar {
|
||
width: 8px;
|
||
}
|
||
|
||
.reference-detail-card::-webkit-scrollbar-track {
|
||
background: #f1f5f9;
|
||
}
|
||
|
||
.reference-detail-card::-webkit-scrollbar-thumb {
|
||
background: #cbd5e1;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.reference-detail-card::-webkit-scrollbar-thumb:hover {
|
||
background: #94a3b8;
|
||
}
|
||
|
||
/* 响应式设计 */
|
||
@media (max-width: 768px) {
|
||
.reference-floating-panel {
|
||
right: 10px;
|
||
bottom: 70px;
|
||
width: calc(100% - 20px);
|
||
max-width: 400px;
|
||
}
|
||
|
||
.reference-section {
|
||
padding: 20px 16px;
|
||
}
|
||
|
||
.reference-item {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.reference-actions {
|
||
flex-direction: row;
|
||
}
|
||
}
|