/* New styles for Book Search Page - all prefixed with 'book-' */
.book-header {
	text-align: center;
	margin-bottom: 40px;
	color: #333;
	max-width: 900px;
	padding: 0 20px;
}

.book-header h1 {
	font-size: 2.8rem;
	margin-bottom: 15px;
	background: linear-gradient(90deg, #3498db, #8e44ad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.book-header p {
	font-size: 1.2rem;
	color: #555;
	line-height: 1.7;
}

.book-search-container {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	background: white;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	padding: 40px;
}

.book-search-box {
	position: relative;
	display: flex;
	margin-bottom: 10px;
}

.book-search-input {
	flex: 1;
	padding: 18px 25px;
	font-size: 1.2rem;
	border: 2px solid #eef2f7;
	border-radius: 12px;
	background: #f8f9fa;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	color: #2c3e50;
}

.book-search-input:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(52, 152, 219, 0.15);
	background: white;
}

.book-search-button {
	background: linear-gradient(90deg, #3498db, #2980b9);
	color: white;
	border: none;
	padding: 0 40px;
	margin-left: 15px;
	border-radius: 12px;
	font-size: 1.15rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.book-search-button i {
	margin-right: 10px;
}

.book-search-button:hover {
	background: linear-gradient(90deg, #2980b9, #3498db);
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.book-hot-searches {
	margin-top: 20px;
	padding-bottom: 30px;
	border-bottom: 2px solid #f1f2f6;
}

.book-hot-searches h2 {
	display: flex;
	align-items: center;
	font-size: 1.6rem;
	color: #2c3e50;
	margin-bottom: 25px;
}

.book-hot-searches h2 i {
	margin-right: 15px;
	color: #e74c3c;
	background: rgba(231, 76, 60, 0.12);
	width: 45px;
	height: 45px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.book-keywords-container {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.book-keyword {
	background: linear-gradient(135deg, #3498db, #8e44ad);
	color: white;
	padding: 12px 28px;
	border-radius: 50px;
	font-size: 1.05rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border: none;
}

.book-keyword:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.book-keyword:nth-child(2n) {
	background: linear-gradient(135deg, #e74c3c, #e67e22);
}

.book-keyword:nth-child(3n) {
	background: linear-gradient(135deg, #2ecc71, #1abc9c);
}

.book-keyword:nth-child(4n) {
	background: linear-gradient(135deg, #9b59b6, #34495e);
}

.book-search-results {
	margin-top: 30px;
	display: none; /* Initially hidden */
}

.book-search-results h2 {
	display: flex;
	align-items: center;
	font-size: 1.6rem;
	color: #2c3e50;
	margin-bottom: 25px;
}

.book-search-results h2 i {
	margin-right: 15px;
	color: #3498db;
	background: rgba(52, 152, 219, 0.12);
	width: 45px;
	height: 45px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.book-results-list {
	list-style: none;
}

.book-result-item {
	background: white;
	border-radius: 16px;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
	border-left: 4px solid #3498db;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	display: flex;
}

.book-result-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
	border-left-color: #e74c3c;
}

.book-result-image {
	width: 220px;
	height: 220px;
	border-radius: 12px;
	overflow: hidden;
	margin-right: 25px;
	flex-shrink: 0;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	position: relative;
}

.book-result-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.book-result-item:hover .book-result-image img {
	transform: scale(1.05);
}

.book-result-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.2));
	border-radius: 12px;
}

.book-result-content {
	flex: 1;
}

.book-result-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 15px;
	position: relative;
	display: flex;
	align-items: center;
}

.book-result-title i {
	margin-right: 12px;
	color: #3498db;
	font-size: 1.2rem;
}

.book-result-description {
	font-size: 1.1rem;
	color: #555;
	line-height: 1.6;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.book-chapters-container {
	margin-top: 15px;
}

.book-chapter-item {
	margin-bottom: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.book-chapter-item:hover {
	transform: translateX(5px);
	background: #f1f2f6;
}

.book-chapter-header {
	padding: 15px 20px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.3s ease;
}

.book-chapter-header:hover {
	background: rgba(52, 152, 219, 0.05);
}

.book-chapter-title {
	font-size: 1.15rem;
	font-weight: 600;
	color: #2c3e50;
	display: flex;
	align-items: center;
}

.book-chapter-title i {
	margin-right: 10px;
	color: #e74c3c;
	font-size: 0.9rem;
}

.book-chapter-toggle {
	color: #7f8c8d;
	transition: transform 0.3s ease;
}

.book-chapter-content {
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: all 0.4s ease;
	color: #555;
	line-height: 1.7;
	background: white;
}

.book-chapter-item.active .book-chapter-content {
	padding: 15px 20px 25px;
	max-height: 500px;
}

.book-chapter-item.active .book-chapter-toggle {
	transform: rotate(180deg);
}

.book-vip {
	background-color: #ebd078;
}

.book-result-meta {
	display: flex;
	margin-top: 20px;
	color: #7f8c8d;
	font-size: 0.9rem;
	position: relative;
	padding-top: 15px;
	border-top: 1px solid #eee;
	flex-wrap: wrap;
}

.book-result-meta span {
	margin-right: 20px;
	display: flex;
	align-items: center;
	margin-bottom: 5px;
}

.book-result-meta i {
	margin-right: 6px;
}

.book-no-results {
	text-align: center;
	padding: 40px;
	color: #7f8c8d;
	font-size: 1.1rem;
}

.book-no-results i {
	font-size: 3rem;
	margin-bottom: 20px;
	color: #bdc3c7;
}

.book-result-count {
	font-size: 0.95rem;
	color: #7f8c8d;
	margin-bottom: 20px;
	padding-left: 5px;
}

.book-result-count strong {
	color: #e74c3c;
	font-weight: 600;
}

.book-notice {
	font-size: 1.15rem;
	font-weight: 600;
	color: #ff0000;
}

@media (max-width: 900px) {
	.book-result-item {
		flex-direction: column;
	}
	
	.book-result-image {
		width: 100%;
		height: 250px;
		margin-right: 0;
		margin-bottom: 25px;
	}
}

@media (max-width: 768px) {
	.book-search-box {
		flex-direction: column;
	}
	
	.book-search-button {
		margin-left: 0;
		margin-top: 15px;
		padding: 18px;
	}
	
	.book-header h1 {
		font-size: 2.2rem;
	}
	
	.book-keyword {
		padding: 10px 20px;
		font-size: 0.95rem;
	}
	
	.book-result-item {
		padding: 20px;
	}
	
	.book-result-title {
		font-size: 1.4rem;
	}
	
	.book-result-description {
		font-size: 1rem;
	}
	
	.book-chapter-title {
		font-size: 1.05rem;
	}
	
	.book-result-image {
		height: 200px;
	}
}

@media (max-width: 480px) {
	.book-search-container {
		padding: 25px;
	}
	
	.book-header h1 {
		font-size: 2rem;
	}
	
	.book-result-image {
		height: 180px;
	}
	
	.book-result-title {
		font-size: 1.3rem;
	}
}

/* Modal Styles */
.book-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
	z-index: 2000;
	animation: book-fadeIn 0.3s forwards;
}

.book-modal-content {
	background: white;
	padding: 40px;
	border-radius: 16px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
	width: 90%;
	max-width: 500px;
	position: relative;
	animation: book-slideUp 0.4s forwards;
}

.book-close-button {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 2rem;
	color: #888;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.3s ease;
}

.book-close-button:hover {
	color: #333;
}

.book-modal-content h2 {
	text-align: center;
	margin-bottom: 30px;
	font-size: 2rem;
	color: #2c3e50;
	background: linear-gradient(90deg, #3498db, #8e44ad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.book-form-group {
	margin-bottom: 25px;
}

.book-form-group label {
	display: block;
	margin-bottom: 10px;
	font-size: 1.1rem;
	color: #555;
	font-weight: 600;
}

.book-form-group label i {
	margin-right: 8px;
	color: #3498db;
}

.book-form-group input {
	width: 100%;
	padding: 15px 20px;
	border: 2px solid #eef2f7;
	border-radius: 10px;
	font-size: 1rem;
	color: #2c3e50;
	transition: all 0.3s ease;
}

.book-form-group input:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.book-form-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
}

.book-submit-button {
	background: linear-gradient(90deg, #2ecc71, #27ae60);
	color: white;
	border: none;
	padding: 15px 30px;
	border-radius: 10px;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.book-submit-button:hover {
	background: linear-gradient(90deg, #27ae60, #2ecc71);
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.book-forgot-password {
	color: #3498db;
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.3s ease;
}

.book-forgot-password:hover {
	color: #2980b9;
	text-decoration: underline;
}

.book-switch-mode {
	text-align: center;
	margin-top: 30px;
	font-size: 0.95rem;
	color: #777;
}

.book-switch-mode a {
	color: #e74c3c;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}

.book-switch-mode a:hover {
	color: #c0392b;
	text-decoration: underline;
}

/* Animations */
@keyframes book-fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes book-slideUp {
	from { transform: translateY(50px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
/* 验证码容器和按钮样式 */
.verify-code-container {
    display: flex;
    gap: 10px;
}

.get-code-button {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    white-space: nowrap;
}

.get-code-button:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.get-code-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* 消息弹窗样式 */
.message-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    max-width: 500px;
    word-wrap: break-word;
}

.message-toast.show {
    transform: translateX(-50%) translateY(0);
}

.message-toast.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-left: 4px solid #1e8449;
}

.message-toast.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-left: 4px solid #a93226;
}

.message-toast .message-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-toast .message-text {
    flex: 1;
    line-height: 1.4;
}

.message-toast .message-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.message-toast .message-close:hover {
    opacity: 1;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .message-toast {
        left: 10px;
        right: 10px;
        transform: translateY(-100px);
        min-width: auto;
        max-width: none;
    }
    
    .message-toast.show {
        transform: translateY(0);
    }
}
/* 书籍详情弹窗样式 */
.book-detail-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

.book-detail-container {
    position: relative;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    padding: 0 10px;
}

.book-detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: #3498db;
}

.book-detail-loading i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.book-detail-loading p {
    font-size: 1.2rem;
    color: #555;
}

.book-detail-header {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.book-detail-cover {
    width: 200px;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-right: 30px;
    flex-shrink: 0;
}

.book-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-detail-info {
    flex: 1;
}

.book-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.book-detail-authors {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

.book-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.book-detail-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
}

.book-detail-meta-item i {
    margin-right: 8px;
    color: #3498db;
}

.book-detail-description {
    margin-top: 30px;
}

.book-detail-description h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.book-detail-description h3 i {
    margin-right: 10px;
    color: #e74c3c;
}

.book-detail-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

.book-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.book-detail-tag {
    background: #f1f2f6;
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.book-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.book-detail-button {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border: none;
}

.book-detail-button i {
    margin-right: 8px;
}

.book-detail-button.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.book-detail-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.book-detail-button.secondary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.book-detail-button.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.book-result-title {
    cursor: pointer;
    transition: color 0.3s ease;
}

.book-result-title:hover {
    color: #3498db;
}

@media (max-width: 768px) {
    .book-detail-header {
        flex-direction: column;
    }
    
    .book-detail-cover {
        width: 180px;
        height: 250px;
        margin: 0 auto 20px;
    }
    
    .book-detail-title {
        font-size: 1.5rem;
    }
    
    .book-detail-actions {
        flex-direction: column;
    }
    
    .book-detail-button {
        width: 100%;
        justify-content: center;
    }
}
/* 用户状态区域样式 */
.user-status-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.guest-status, .user-status {
    display: none;  /* 默认隐藏，通过JS控制显示 */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 8px 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.guest-status .auth-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.guest-status .auth-link i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.guest-status .auth-link:hover {
    color: #2980b9;
}

.user-status {
    display: flex;
    align-items: center;
}

.user-welcome {
    color: #555;
    margin-right: 5px;
}

.user-nickname {
    color: #e74c3c;
    font-weight: 600;
    margin-right: 15px;
}

.logout-link {
    color: #7f8c8d;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.logout-link:hover {
    color: #e74c3c;
}

@media (max-width: 768px) {
    .user-status-container {
        margin-top: 10px;
    }
    
    .guest-status, .user-status {
        padding: 6px 15px;
    }
    
    .user-welcome {
        font-size: 0.9rem;
    }
}
/* 高级搜索条件样式 */
.advanced-search {
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
}

.advanced-search-toggle {
    background: linear-gradient(to right, #f1f2f6, #dfe4ea);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.advanced-search-toggle:hover {
    background: linear-gradient(to right, #dfe4ea, #c8d6e5);
}

.advanced-search-toggle i {
    margin-right: 8px;
    color: #3498db;
}

.advanced-search-toggle .toggle-icon {
    margin-right: 0;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.advanced-search-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.advanced-search-panel {
    background: #f8f9fa;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 0 0 10px 10px;
    border: 1px solid transparent;
    border-top: none;
}

.advanced-search-panel.active {
    padding: 20px;
    max-height: 1000px;
    border-color: #e0e7ff;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.filter-group h3 i {
    margin-right: 10px;
    color: #3498db;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #e0e7ff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-option:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.filter-option input {
    margin-right: 8px;
}

.filter-option input:checked + span {
    font-weight: 600;
    color: #3498db;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.filter-clear, .filter-apply {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.filter-clear {
    background: #f1f2f6;
    color: #7f8c8d;
}

.filter-clear:hover {
    background: #dfe4ea;
    color: #2c3e50;
}

.filter-apply {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.filter-apply:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .filter-options {
        gap: 8px;
    }
    
    .filter-option {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-clear, .filter-apply {
        width: 100%;
    }
}
/* 信息类型消息样式*/
.message-toast.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-left: 4px solid #1f618d;
}

.message-toast.info .message-icon {
    color: #f8f9fa;
}
/* 警告类型消息样式 */
.message-toast.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-left: 4px solid #d35400;
}

.message-toast.warning .message-icon {
    color: #fff;
}