* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

html {
	overflow-y: scroll;
}

body {
	background-color: #f8f9fa;
	color: #333;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.banner {
	/* background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); */
	background-color: #eaf5ff;
	color: white;
	padding: 40px 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgzMCkiPjxjaXJjbGUgY3g9IjIwIiBjeT0iMjAiIHI9IjEiIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMC4xIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
	opacity: 0.1;
}

.banner-content {
	position: relative;
	z-index: 1;
	text-align: center;
}

.banner h1 {
	color: #1c1f23;
	font-size: 2.5rem;
	margin-bottom: 10px;
	font-weight: 700;
}

.banner p {
	font-size: 1.2rem;
	opacity: 0.9;
	color: #555;
}

.search-section {
	padding: 40px 0 20px;
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 10;
}

.search-container {
	max-width: 700px;
	margin: 0 auto;
	position: relative;
}

.search-box {
	display: flex;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	border-radius: 50px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.search-box:focus-within {
	box-shadow: 0 6px 20px rgba(37, 117, 252, 0.3);
	transform: translateY(-2px);
}

.search-input {
	flex: 1;
	padding: 15px 25px;
	border: none;
	font-size: 1.1rem;
	outline: none;
}

.search-button {
	background: #2575fc;
	color: white;
	border: none;
	padding: 0 30px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	transition: background 0.3s ease;
}

.search-button:hover {
	background: #1a67e8;
}

.search-stats {
	margin-top: 15px;
	text-align: center;
	color: #666;
	font-size: 0.9rem;
}

.results-section {
	padding: 20px 0 0px;
	flex: 1;
}

.result-item {
	background: white;
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	border-left: 4px solid transparent;
}

.result-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	border-left-color: #2575fc;
}

.result-title {
	font-size: 1.3rem;
	margin-bottom: 10px;
	color: #2575fc;
	text-decoration: none;
	display: inline-block;
}

.result-title:hover {
	text-decoration: underline;
}

.result-url {
	color: #0a8;
	font-size: 0.9rem;
	margin-bottom: 8px;
	display: block;
}

.result-description {
	color: #555;
	line-height: 1.5;
}

.result-meta {
	display: flex;
	margin-top: 15px;
	font-size: 0.85rem;
	color: #777;
}

.result-meta span {
	margin-right: 15px;
}

/*
.pagination {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.pagination button {
	display: inline-block;
	padding: 8px 16px;
	margin: 0 4px;
	text-decoration: none;
	color: #2575fc;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: all 0.3s ease;
}
*/

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 10px 0;
	flex-wrap: wrap;
	gap: 8px;
}

.page-btn {
	padding: 8px 16px;
	border: 1px solid #ddd;
	background: white;
	color: #333;
	text-decoration: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
}

.page-btn:hover {
	background: #f5f5f5;
	border-color: #999;
}

.page-btn.active {
	background: #007cba;
	color: white;
	border-color: #007cba;
}

.page-btn:disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.page-ellipsis {
	padding: 8px 12px;
	color: #666;
}

.page-info {
	margin-left: 20px;
	color: #666;
	font-size: 14px;
}

.result-item {
	margin-bottom: 10px;
	padding: 10px 15px;
	border: 1px solid #eee;
	border-radius: 8px;
}

.no-data {
	text-align: center;
	color: #999;
	padding: 40px;
}

.pagination a.active,
.pagination a:hover {
	background: #2575fc;
	color: white;
	border-color: #2575fc;
}

.btn {
	padding: 1px 5px;
	border: none;
	border-radius: 5px;
	/* font-size: 16px; */
	/* font-weight: 600; */
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.btn-copy {
	background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-copy:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* 弹窗样式 */
.toast {
	position: fixed;
	top: 30px;
	right: 30px;
	padding: 16px 24px;
	background: #4CAF50;
	color: white;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 10px;
	transform: translateX(150%);
	transition: transform 0.4s ease;
	max-width: 320px;
}

#toastMessage {
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1; /* 占据剩余空间 */
}

.toast.show {
	transform: translateX(0);
}

.toast.error {
	background: #f44336;
}

.toast-icon {
	font-size: 20px;
}

.toast-message {
	flex: 1;
}

.toast-close {
	background: none;
	border: none;
	color: white;
	font-size: 18px;
	cursor: pointer;
	opacity: 0.8;
}

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

.updated-icon {
    margin-left: 5px;
    background: #ff6b35;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 8px;
}

footer {
	color: #555;
	padding-bottom: 1.0rem;
	text-align: center;
	margin-top: auto;
}

.footer-bottom {
	font-size: 0.9rem;
}

.footer-bottom a {
	color: #3498db;
	text-decoration: none;
	margin: 0px;
	transition: color 0.3s;
}

.footer-bottom a:hover {
	color: #1abc9c;
	text-decoration: underline;
}

@media (max-width: 768px) {
	.banner h1 {
		font-size: 2rem;
	}

	.banner p {
		/* font-size: 1rem; */
		display: none;
	}

	.banner .banner-title {
		display: none;
	}

	.footer-claim, .footer-sitemap {
		display: none;
	}

	.search-box {
		flex-direction: column;
		border-radius: 8px;
		gap: 5px;
		background-color: #fff;
	}

    .search-input {
        border-radius: 8px;
		background-color: #eee;
        width: 100%;
    }

    .search-button {
        padding: 12px;
        border-radius: 8px;
        width: 100%;
    }

	.result-meta {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}

	.result-meta span {
		flex: 1;
	}

	.result-meta button {
		margin-left: auto;
	}

	.result-title {
		font-size: 1.0rem;
	}
}
