/* 永樂書法字典 · Calligraphy Dictionary */
.cdict-wrap {
	margin: 1.5em 0;
	font-size: 16px;
	line-height: 1.7;
}

.cdict-form {
	margin-bottom: 1.5em;
	padding: 16px;
	background: #f7f7f7;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
}

.cdict-row {
	margin: 6px 0;
}

.cdict-label {
	font-weight: 700;
	color: #222;
}

.cdict-input {
	padding: 6px 10px;
	margin-left: 4px;
	width: 180px;
	max-width: 100%;
	border: 1px solid #bbb;
	border-radius: 4px;
	font-size: 16px;
}

.cdict-checks {
	margin: 8px 0 4px;
}

.cdict-check-item {
	display: inline-block;
	margin: 4px 14px 4px 0;
	cursor: pointer;
	user-select: none;
}

.cdict-check-item input {
	margin-right: 4px;
	vertical-align: middle;
}

.cdict-submit {
	margin-top: 8px;
	padding: 7px 22px;
	border: 0;
	border-radius: 4px;
	background: #b12a24;
	color: #fff;
	font-size: 15px;
	cursor: pointer;
}

.cdict-submit:hover {
	background: #8f201b;
}

.cdict-type-title {
	margin: 24px 0 10px;
	padding-left: 10px;
	border-left: 4px solid #b12a24;
	font-size: 20px;
	line-height: 1.3;
	color: #b12a24;
	font-weight: 700;
}

.cdict-container {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cdict-word {
	margin: 0;
	padding: 8px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	background: #fff;
	text-align: center;
}

.cdict-word img {
	display: block;
	width: 200px;
	max-width: 100%;
	height: auto;
}

.cdict-word figcaption {
	margin-top: 6px;
	font-size: 13px;
	color: #666;
}

.cdict-empty {
	margin: 16px 0;
	padding: 12px;
	background: #fff8e5;
	border-left: 4px solid #e0a800;
	color: #7a5b00;
}

@media (max-width: 600px) {
	.cdict-form {
		padding: 12px;
	}
	.cdict-input {
		width: 100%;
		margin: 6px 0 0;
		box-sizing: border-box;
	}
	.cdict-word img {
		width: 100%;
	}
	.cdict-container {
		gap: 8px;
	}
	.cdict-word {
		width: calc(50% - 8px);
		box-sizing: border-box;
	}
}
