- 产品名称(product_names)不再自动填充为网页标题 - 内容库显示搜索标题(search_title)作为主标题 - 产品名称单独显示(如果有关联)
375 lines
5.8 KiB
CSS
375 lines
5.8 KiB
CSS
/* 内容库页面专用样式 */
|
|
|
|
.library-container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* 头部 */
|
|
.library-header {
|
|
background: white;
|
|
padding: 20px 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.back-link {
|
|
color: #667eea;
|
|
text-decoration: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.back-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.library-header h1 {
|
|
color: #333;
|
|
font-size: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.stats-info {
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
/* 工具栏 */
|
|
.toolbar {
|
|
background: white;
|
|
padding: 15px 20px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.toolbar-left {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
}
|
|
|
|
.search-box {
|
|
position: relative;
|
|
}
|
|
|
|
.search-box i {
|
|
position: absolute;
|
|
left: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: #999;
|
|
}
|
|
|
|
.search-box input {
|
|
padding: 10px 15px 10px 35px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
width: 300px;
|
|
}
|
|
|
|
.search-box input:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
.category-select {
|
|
padding: 10px 15px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
background: white;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.page-size-select {
|
|
padding: 10px 15px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
background: white;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toolbar-right {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* 文章列表区域 */
|
|
.articles-section {
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.articles-header {
|
|
padding: 15px 20px;
|
|
background: #f8f9fa;
|
|
border-bottom: 1px solid #e9ecef;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.checkbox-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.checkbox-wrapper input {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.batch-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
#selected-count {
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
.articles-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.articles-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
/* 文章卡片 */
|
|
.article-card {
|
|
border: 1px solid #e9ecef;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.article-card:hover {
|
|
border-color: #667eea;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.article-card.selected {
|
|
border-color: #667eea;
|
|
background: #f0f4ff;
|
|
}
|
|
|
|
.article-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.article-select {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.article-title {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: #333;
|
|
cursor: pointer;
|
|
flex: 1;
|
|
}
|
|
|
|
.article-title:hover {
|
|
color: #667eea;
|
|
}
|
|
|
|
.article-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.article-meta {
|
|
display: flex;
|
|
gap: 15px;
|
|
font-size: 13px;
|
|
color: #666;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.article-meta span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.article-category {
|
|
background: #e0e7ff;
|
|
color: #3730a3;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.article-search-title {
|
|
font-size: 13px;
|
|
color: #666;
|
|
margin-bottom: 10px;
|
|
padding: 4px 8px;
|
|
background: #f0f4ff;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.article-search-title i {
|
|
color: #667eea;
|
|
}
|
|
|
|
.article-products {
|
|
font-size: 13px;
|
|
color: #666;
|
|
margin-bottom: 10px;
|
|
padding: 4px 8px;
|
|
background: #e8f5e9;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.article-products i {
|
|
color: #4caf50;
|
|
}
|
|
|
|
/* 上部分页 */
|
|
.pagination-top {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.pagination-top span {
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
.article-summary {
|
|
font-size: 14px;
|
|
color: #666;
|
|
line-height: 1.6;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.article-tags {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.article-tag {
|
|
background: #f3f4f6;
|
|
color: #6b7280;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* 分页 */
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
#page-info {
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
/* 空状态 */
|
|
.empty-text {
|
|
text-align: center;
|
|
color: #999;
|
|
padding: 40px;
|
|
}
|
|
|
|
.loading-text {
|
|
text-align: center;
|
|
color: #666;
|
|
padding: 40px;
|
|
}
|
|
|
|
/* 详情模态框 */
|
|
#detail-body .detail-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#detail-body .detail-section h4 {
|
|
color: #667eea;
|
|
margin-bottom: 10px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
#detail-body .detail-content {
|
|
white-space: pre-wrap;
|
|
background: #f8f9fa;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* 响应式 */
|
|
@media (max-width: 768px) {
|
|
.toolbar {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.toolbar-left, .toolbar-right {
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.search-box input {
|
|
width: 100%;
|
|
}
|
|
|
|
.article-card-header {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.article-actions {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
} |