* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
	background: #F5F7FA;
	color: #1A1A1A;
}
a { text-decoration: none; color: #1565C0; }

/* 登录页 */
.login-wrap {
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.login-box {
	width: 360px;
	background: #fff;
	border-radius: 12px;
	padding: 40px 32px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.login-box h1 {
	font-size: 22px;
	text-align: center;
	margin: 0 0 24px;
	color: #1565C0;
}
.login-box input {
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 14px;
	border: 1px solid #DDD;
	border-radius: 6px;
	font-size: 14px;
}
.login-box button {
	width: 100%;
	padding: 10px;
	background: #1565C0;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	cursor: pointer;
}
.login-error {
	color: #E53935;
	font-size: 13px;
	margin-bottom: 10px;
	text-align: center;
}

/* 布局 */
.topbar {
	background: #1565C0;
	color: #fff;
	height: 56px;
	display: flex;
	align-items: center;
	padding: 0 24px;
	justify-content: space-between;
}
.topbar .title { font-size: 18px; font-weight: 600; }
.topbar nav a {
	color: #fff;
	margin-right: 20px;
	opacity: 0.85;
	font-size: 14px;
}
.topbar nav a.active { opacity: 1; font-weight: 700; text-decoration: underline; }
.topbar form { display: inline; }
.topbar button.logout {
	background: rgba(255,255,255,0.15);
	color: #fff;
	border: none;
	padding: 6px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
}

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

.page-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}
.page-head h2 { margin: 0; font-size: 20px; }
.btn {
	display: inline-block;
	background: #1565C0;
	color: #fff;
	padding: 8px 18px;
	border-radius: 6px;
	font-size: 14px;
	border: none;
	cursor: pointer;
}
.btn.danger { background: #E53935; }
.btn.gray { background: #999; }
.btn.small { padding: 5px 12px; font-size: 13px; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #F0F0F0; font-size: 14px; }
th { background: #FAFAFA; color: #666; font-weight: 600; }
tr:last-child td { border-bottom: none; }
img.thumb { width: 60px; height: 44px; object-fit: cover; border-radius: 4px; background: #eee; }
.tag-status { padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.tag-status.on { background: #E8F5E9; color: #4CAF50; }
.tag-status.off { background: #F5F5F5; color: #999; }
.op-cell a, .op-cell button { margin-right: 8px; }

/* 表单 */
.form-card { background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 14px; color: #555; font-weight: 600; }
.form-row input[type=text], .form-row input[type=number], .form-row textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #DDD;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
}
.form-row textarea { resize: vertical; }
.form-row .hint { font-size: 12px; color: #999; margin-top: 4px; }
.form-row-inline { display: flex; gap: 20px; }
.form-row-inline .form-row { flex: 1; }
.upload-area { display: flex; align-items: center; gap: 16px; }
.upload-area img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; background: #f0f0f0; border: 1px solid #eee; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }
.form-actions { margin-top: 24px; display: flex; gap: 12px; }
