* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
	background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
	color: #333;
	min-height: 100vh;
	padding: 20px;
}

/* 关键：v-cloak 样式 */
[v-cloak] {
	display: none !important;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
}

header {
	text-align: center;
	margin-bottom: 30px;
	padding: 20px;
	background: linear-gradient(90deg, #2c3e50, #4a6491);
	color: white;
	border-radius: 12px;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 10px;
	letter-spacing: 1px;
}

.subtitle {
	font-size: 1.1rem;
	opacity: 0.9;
	font-weight: 300;
}

.main-content {
	display: flex;
	gap: 25px;
	flex-wrap: wrap;
}

.devices-panel,
.rooms-panel {
	flex: 1;
	min-width: 300px;
	background: white;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease;
}

.devices-panel:hover,
.rooms-panel:hover {
	transform: translateY(-5px);
}

.panel-title {
	font-size: 1.5rem;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #eaeaea;
	color: #2c3e50;
	display: flex;
	align-items: center;
	gap: 10px;
}

.panel-title i {
	color: #3498db;
}

.device-category {
	margin-bottom: 25px;
}

.category-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: #2c3e50;
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.category-title .count {
	background: #ecf0f1;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: normal;
}

.device-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.device-item {
	background: #f8f9fa;
	border: 2px dashed #d1d8e0;
	border-radius: 10px;
	padding: 12px 8px;
	text-align: center;
	cursor: grab;
	transition: all 0.2s ease;
	user-select: none;
}

.device-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
	border-style: solid;
}

.device-item.dragging {
	opacity: 0.7;
	transform: scale(0.98);
}

.device-item.assigned {
	opacity: 0.4;
	cursor: not-allowed;
	border-style: dotted;
	display: none;
}

.device-icon {
	font-size: 1.8rem;
	margin-bottom: 8px;
}

.device-name {
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 5px;
}

.device-status {
	font-size: 0.8rem;
	padding: 2px 8px;
	border-radius: 10px;
	display: inline-block;
}

.status-available {
	background: #d5f4e6;
	color: #27ae60;
}

.status-assigned {
	background: #fdebd0;
	color: #e67e22;
}

.roomStatus .updateTime {
	background-color: antiquewhite;
	padding: 2px 3px;
	border-radius: 3px;
	margin: 1px 0px;
	display: inline-block;
}

.roomStatus .payDate {
	background-color: burlywood;
	padding: 2px 3px;
	border-radius: 3px;
	margin: 1px 0px;
	display: inline-block;
}

.device-zx {
	border-color: #3498db;
	color: #3498db;
}

.device-zfb {
	border-color: #1abc9c;
	color: #1abc9c;
}

.device-sb {
	border-color: #e74c3c;
	color: #e74c3c;
}

.device-zhy {
	border-color: #9b59b6;
	color: #9b59b6;
}

.rooms-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 15px;
	max-height: 800px;
	overflow-y: auto;
	padding-right: 5px;
}

.room-item {
	background: #f8f9fa;
	border-radius: 10px;
	padding: 18px 10px;
	text-align: center;
	min-height: 150px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.2s ease;
	border: 2px solid #eaeaea;
}

.room-item.active-drop {
	background: #e8f4fc;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.room-title {
	font-weight: 700;
	font-size: 1.2rem;
	margin-bottom: 10px;
	color: #2c3e50;
}

.room-id {
	font-size: 0.9rem;
	color: #7f8c8d;
	margin-bottom: 5px;
}

.room-devices {
	min-height: 80px;
	padding: 10px;
	border-radius: 8px;
	background: #f0f5f9;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.assigned-device {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: white;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 0.85rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	margin-bottom: 5px;
}

.device-info {
	display: flex;
	align-items: center;
	gap: 8px;
}

.remove-device {
	background: none;
	border: none;
	color: #e74c3c;
	cursor: pointer;
	font-size: 0.9rem;
	padding: 2px 5px;
	border-radius: 4px;
	transition: background 0.2s;
}

.remove-device:hover {
	background: #fdf2f2;
}

.stats-panel {
	width: 100%;
	margin-top: 30px;
	background: white;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.stats-title {
	font-size: 1.5rem;
	margin-bottom: 20px;
	color: #2c3e50;
	display: flex;
	align-items: center;
	gap: 10px;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.stat-item {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 10px;
	border-left: 5px solid #3498db;
}

.stat-value {
	font-size: 2rem;
	font-weight: 700;
	color: #2c3e50;
}

.stat-label {
	font-size: 1rem;
	color: #7f8c8d;
	margin-top: 5px;
}

.controls {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 30px;
}

.btn {
	padding: 12px 25px;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.btn-reset {
	background: #e74c3c;
	color: white;
}

.btn-reset:hover {
	background: #c0392b;
}

.btn-save {
	background: #2ecc71;
	color: white;
}

.btn-save:hover {
	background: #27ae60;
}

.btn-export {
	background: #3498db;
	color: white;
}

.btn-export:hover {
	background: #2980b9;
}

footer {
	text-align: center;
	margin-top: 40px;
	padding: 20px;
	color: #7f8c8d;
	font-size: 0.9rem;
	border-top: 1px solid #eee;
}

.empty-message {
	color: #95a5a6;
	font-style: italic;
	text-align: center;
	padding: 20px;
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.device-type-icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: inline-block;
}

@media (max-width: 768px) {
	.main-content {
		flex-direction: column;
	}

	.device-list,
	.rooms-container {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}

	h1 {
		font-size: 1.8rem;
	}

	.controls {
		flex-direction: column;
	}

	.btn {
		justify-content: center;
	}
}