216 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
			
		
		
	
	
			216 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
/* 图书详情页样式 */
 | 
						|
.book-detail-container {
 | 
						|
    padding: 20px;
 | 
						|
}
 | 
						|
 | 
						|
.page-header {
 | 
						|
    display: flex;
 | 
						|
    justify-content: space-between;
 | 
						|
    align-items: center;
 | 
						|
    margin-bottom: 20px;
 | 
						|
    padding-bottom: 15px;
 | 
						|
    border-bottom: 1px solid #eee;
 | 
						|
}
 | 
						|
 | 
						|
.actions {
 | 
						|
    display: flex;
 | 
						|
    gap: 10px;
 | 
						|
}
 | 
						|
 | 
						|
.book-content {
 | 
						|
    background-color: white;
 | 
						|
    border-radius: 8px;
 | 
						|
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
 | 
						|
    overflow: hidden;
 | 
						|
}
 | 
						|
 | 
						|
.book-header {
 | 
						|
    display: flex;
 | 
						|
    padding: 25px;
 | 
						|
    border-bottom: 1px solid #f0f0f0;
 | 
						|
    background-color: #f9f9f9;
 | 
						|
}
 | 
						|
 | 
						|
.book-cover-large {
 | 
						|
    flex: 0 0 200px;
 | 
						|
    height: 300px;
 | 
						|
    background-color: #f0f0f0;
 | 
						|
    border-radius: 5px;
 | 
						|
    overflow: hidden;
 | 
						|
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
 | 
						|
    margin-right: 30px;
 | 
						|
}
 | 
						|
 | 
						|
.book-cover-large img {
 | 
						|
    width: 100%;
 | 
						|
    height: 100%;
 | 
						|
    object-fit: cover;
 | 
						|
}
 | 
						|
 | 
						|
.no-cover-large {
 | 
						|
    width: 100%;
 | 
						|
    height: 100%;
 | 
						|
    display: flex;
 | 
						|
    flex-direction: column;
 | 
						|
    justify-content: center;
 | 
						|
    align-items: center;
 | 
						|
    color: #aaa;
 | 
						|
}
 | 
						|
 | 
						|
.no-cover-large i {
 | 
						|
    font-size: 48px;
 | 
						|
    margin-bottom: 10px;
 | 
						|
}
 | 
						|
 | 
						|
.book-main-info {
 | 
						|
    flex: 1;
 | 
						|
}
 | 
						|
 | 
						|
.book-title {
 | 
						|
    font-size: 1.8rem;
 | 
						|
    font-weight: 600;
 | 
						|
    margin-bottom: 15px;
 | 
						|
    color: #333;
 | 
						|
}
 | 
						|
 | 
						|
.book-author {
 | 
						|
    font-size: 1.1rem;
 | 
						|
    color: #555;
 | 
						|
    margin-bottom: 20px;
 | 
						|
}
 | 
						|
 | 
						|
.book-meta-info {
 | 
						|
    margin-bottom: 25px;
 | 
						|
}
 | 
						|
 | 
						|
.meta-item {
 | 
						|
    display: flex;
 | 
						|
    align-items: center;
 | 
						|
    margin-bottom: 12px;
 | 
						|
    color: #666;
 | 
						|
}
 | 
						|
 | 
						|
.meta-item i {
 | 
						|
    width: 20px;
 | 
						|
    margin-right: 10px;
 | 
						|
    text-align: center;
 | 
						|
    color: #555;
 | 
						|
}
 | 
						|
 | 
						|
.meta-value {
 | 
						|
    font-weight: 500;
 | 
						|
    color: #444;
 | 
						|
}
 | 
						|
 | 
						|
.tag {
 | 
						|
    display: inline-block;
 | 
						|
    background-color: #e9ecef;
 | 
						|
    color: #495057;
 | 
						|
    padding: 2px 8px;
 | 
						|
    border-radius: 3px;
 | 
						|
    margin-right: 5px;
 | 
						|
    margin-bottom: 5px;
 | 
						|
    font-size: 0.85rem;
 | 
						|
}
 | 
						|
 | 
						|
.book-status-info {
 | 
						|
    display: flex;
 | 
						|
    align-items: center;
 | 
						|
    gap: 20px;
 | 
						|
    margin-top: 20px;
 | 
						|
}
 | 
						|
 | 
						|
.status-badge {
 | 
						|
    display: inline-block;
 | 
						|
    padding: 8px 16px;
 | 
						|
    border-radius: 4px;
 | 
						|
    font-weight: 600;
 | 
						|
    font-size: 0.9rem;
 | 
						|
}
 | 
						|
 | 
						|
.status-badge.available {
 | 
						|
    background-color: #d4edda;
 | 
						|
    color: #155724;
 | 
						|
}
 | 
						|
 | 
						|
.status-badge.unavailable {
 | 
						|
    background-color: #f8d7da;
 | 
						|
    color: #721c24;
 | 
						|
}
 | 
						|
 | 
						|
.stock-info {
 | 
						|
    font-size: 0.95rem;
 | 
						|
    color: #555;
 | 
						|
}
 | 
						|
 | 
						|
.book-details-section {
 | 
						|
    padding: 25px;
 | 
						|
}
 | 
						|
 | 
						|
.book-details-section h3 {
 | 
						|
    font-size: 1.3rem;
 | 
						|
    margin-bottom: 15px;
 | 
						|
    padding-bottom: 10px;
 | 
						|
    border-bottom: 1px solid #eee;
 | 
						|
    color: #444;
 | 
						|
}
 | 
						|
 | 
						|
.book-description {
 | 
						|
    color: #555;
 | 
						|
    line-height: 1.6;
 | 
						|
}
 | 
						|
 | 
						|
.no-description {
 | 
						|
    color: #888;
 | 
						|
    font-style: italic;
 | 
						|
}
 | 
						|
 | 
						|
.book-borrow-history {
 | 
						|
    padding: 0 25px 25px;
 | 
						|
}
 | 
						|
 | 
						|
.book-borrow-history h3 {
 | 
						|
    font-size: 1.3rem;
 | 
						|
    margin-bottom: 15px;
 | 
						|
    padding-bottom: 10px;
 | 
						|
    border-bottom: 1px solid #eee;
 | 
						|
    color: #444;
 | 
						|
}
 | 
						|
 | 
						|
.borrow-table {
 | 
						|
    border: 1px solid #eee;
 | 
						|
}
 | 
						|
 | 
						|
.no-records {
 | 
						|
    color: #888;
 | 
						|
    font-style: italic;
 | 
						|
    text-align: center;
 | 
						|
    padding: 20px;
 | 
						|
    background-color: #f9f9f9;
 | 
						|
    border-radius: 4px;
 | 
						|
}
 | 
						|
 | 
						|
/* 响应式调整 */
 | 
						|
@media (max-width: 768px) {
 | 
						|
    .book-header {
 | 
						|
        flex-direction: column;
 | 
						|
    }
 | 
						|
 | 
						|
    .book-cover-large {
 | 
						|
        margin-right: 0;
 | 
						|
        margin-bottom: 20px;
 | 
						|
        max-width: 200px;
 | 
						|
        align-self: center;
 | 
						|
    }
 | 
						|
 | 
						|
    .page-header {
 | 
						|
        flex-direction: column;
 | 
						|
        align-items: flex-start;
 | 
						|
        gap: 15px;
 | 
						|
    }
 | 
						|
 | 
						|
    .actions {
 | 
						|
        width: 100%;
 | 
						|
    }
 | 
						|
}
 |