* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Microsoft YaHei', sans-serif;
}

body {
	background: linear-gradient(135deg, #1a2a6c, #b21f1f);
	color: #333;
	min-height: 100vh;
	overflow-x: hidden;
}

.header {
	background: linear-gradient(90deg, #1a2a6c, #b21f1f);
	color: white;
	padding: 20px 0;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	position: relative;
}

.header h1 {
	font-size: 2.2rem;
	margin-bottom: 10px;
}

.header p {
	font-size: 1rem;
	opacity: 0.9;
}

.map-mode-switch {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	padding: 5px 15px;
	display: flex;
	gap: 10px;
}

.map-mode-btn {
	color: rgba(255, 255, 255, 0.7);
	padding: 5px 10px;
	border-radius: 15px;
	cursor: pointer;
	transition: all 0.3s;
}

.map-mode-btn.active {
	background: white;
	color: #1a2a6c;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.container {
	max-width: 1800px;
	margin: 20px auto;
	padding: 0 15px;
}

.main-content {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 20px;
}

.map-container {
	flex: 3;
	min-width: 300px;
	height: 60vh;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
	position: relative;
}

#map {
	width: 100%;
	height: 100%;
}

.map-controls {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.map-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #1a2a6c;
	font-size: 1.2rem;
	transition: all 0.3s;
}

.map-btn:hover {
	background: #1a2a6c;
	color: white;
	transform: scale(1.1);
}

.panel {
	flex: 1;
	min-width: 300px;
	background: white;
	border-radius: 8px;
	padding: 20px 20px 0 20px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
}

.panel-title {
	font-size: 1.5rem;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #1a2a6c;
	color: #1a2a6c;
	display: flex;
	align-items: center;
	gap: 10px;
}

.location-info {
	background: #e3f2fd;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.location-info h3 {
	margin-bottom: 10px;
	color: #0d47a1;
	display: flex;
	align-items: center;
	gap: 8px;
}

.search-form {
	margin-bottom: 20px;
}

/* 网格布局样式 */
.museum-grid-container {
	margin-top: 30px;
	background: white;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	width: 100%;
}

.grid-title {
	font-size: 1.5rem;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #1a2a6c;
	color: #1a2a6c;
	display: flex;
	align-items: center;
	gap: 10px;
}

.museum-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-bottom: 25px;
}

.museum-card {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 15px;
	border-left: 4px solid #1a2a6c;
	transition: all 0.3s;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.museum-card:hover {
	transform: translateY(-5px);
	background: #e3f2fd;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.museum-card h4 {
	color: #1a2a6c;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
}

.museum-card p {
	font-size: 0.9rem;
	color: #555;
	margin: 4px 0;
}

.card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #eee;
}

.distance-badge {
	background: #e3f2fd;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.8rem;
	color: #0d47a1;
	font-weight: bold;
}

.detail-link {
	color: #1a2a6c;
	font-size: 0.9rem;
	text-decoration: none;
	transition: all 0.3s;
}

.detail-link:hover {
	color: #b21f1f;
	text-decoration: underline;
}

.no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 30px 0;
	color: #777;
}

.no-results i {
	font-size: 3rem;
	margin-bottom: 15px;
	color: #ccc;
}

.info-window {
	padding: 15px;
	min-width: 250px;
}

.info-window h3 {
	color: #1a2a6c;
	margin-bottom: 10px;
	padding-bottom: 5px;
	border-bottom: 1px solid #eee;
}

.info-window p {
	margin: 5px 0;
	font-size: 0.9rem;
}

.distance {
	background: #e3f2fd;
	padding: 5px 10px;
	border-radius: 20px;
	display: inline-block;
	margin-top: 10px;
	font-weight: bold;
	color: #0d47a1;
}

.detail-btn {
	display: inline-block;
	margin-top: 10px;
	background: #1a2a6c;
	color: white;
	padding: 5px 10px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.85rem;
}

.detail-btn:hover {
	background: #b21f1f;
}

.loading {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	flex-direction: column;
}

.loading-spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #1a2a6c;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: spin 1s linear infinite;
	margin-bottom: 10px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.pagination-container {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	padding: 15px 0;
	background: #f8f9fa;
	border-radius: 8px;
}

.pagination-info {
	text-align: center;
	margin-top: 10px;
	color: #666;
	font-size: 0.9rem;
}

.footer {
	text-align: center;
	padding: 20px 0;
	color: white;
	margin-top: 30px;
	font-size: 0.9rem;
}

@media (max-width: 1200px) {
	.museum-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}
}

@media (max-width: 992px) {
	.museum-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
}

@media (max-width: 768px) {
	.main-content {
		flex-direction: column;
	}

	.map-container {
		height: 50vh;
	}

	.map-mode-switch {
		position: static;
		margin-top: 10px;
		justify-content: center;
	}

	.museum-grid {
		grid-template-columns: 1fr;
	}
}

.layui-btn+.layui-btn {
    margin-left: 0;
}