/* ===== 字体转换器（sxt 浅色粉调工作台） ===== */

:root {
	--fc-accent: #f6607d;
	--fc-accent-dark: #e04b69;
	--fc-accent-tint: #fef0f3;
	--fc-ink: #1e293b;
	--fc-muted: #757575;
	--fc-line: #e4e4e6;
	--fc-bg: #f5f5f6;
}

.fc-page-title {
	max-width: 1200px;
	margin: 20px auto 12px;
	padding: 0 10px;
	font-size: 22px;
	font-weight: 700;
	color: var(--fc-ink);
}

/* --- 左右分栏 --- */
.fc-layout {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px;
}

.fc-main {
	flex: 1;
	min-width: 0;
}

/* --- 左侧字体分类 --- */
.fc-sidebar {
	flex: 0 0 196px;
	position: sticky;
	top: 12px;
	max-height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--fc-line);
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.fc-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	border-bottom: 1px solid #f3f4f6;
}

.fc-sidebar-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--fc-ink);
}

.fc-sidebar-count {
	min-width: 22px;
	padding: 1px 7px;
	font-size: 12px;
	color: var(--fc-accent);
	background: var(--fc-accent-tint);
	border-radius: 10px;
	text-align: center;
}

.fc-tagnav {
	flex: 1;
	overflow-y: auto;
	padding: 8px 10px 12px;
}

.fc-tagnav::-webkit-scrollbar {
	width: 6px;
}

.fc-tagnav::-webkit-scrollbar-thumb {
	background: #e5e7eb;
	border-radius: 3px;
}

.fc-taglink {
	display: block;
	position: relative;
	padding: 8px 12px 8px 16px;
	margin-bottom: 2px;
	font-size: 14px;
	color: #4b5563;
	text-decoration: none;
	border-radius: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition:
		background 0.15s ease,
		color 0.15s ease;
}

.fc-taglink:hover {
	background: var(--fc-accent-tint);
	color: var(--fc-accent);
}

.fc-taglink-active {
	background: var(--fc-accent-tint);
	color: var(--fc-accent);
	font-weight: 600;
}

.fc-taglink-active::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 9px;
	bottom: 9px;
	width: 3px;
	border-radius: 2px;
	background: var(--fc-accent);
}

/* --- 转换器工作台 --- */
.fc-workbench {
	background: #fff;
	border: 1px solid var(--fc-line);
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	padding: 20px 22px;
}

.fc-loading-placeholder {
	padding: 80px 0;
	text-align: center;
	color: var(--fc-muted);
	font-size: 14px;
}

.fc-section-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fc-ink);
}

.fc-section-gap {
	margin-top: 18px;
}

.fc-counter {
	font-weight: 400;
	font-size: 12px;
	color: #9ca3af;
}

/* --- 输入区 --- */
.fc-textarea {
	width: 100%;
	min-height: 84px;
	padding: 12px 14px;
	font-size: 16px;
	line-height: 1.6;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	resize: vertical;
	box-sizing: border-box;
	font-family: inherit;
	background: #fdfdfd;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.fc-textarea:focus {
	outline: none;
	border-color: var(--fc-accent);
	box-shadow: 0 0 0 3px rgba(246, 96, 125, 0.15);
}

.fc-textarea::placeholder {
	color: #b6bcc6;
}

/* --- 特效选择卡片 --- */
.fc-styles {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 7px;
}

.fc-style-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 6px 4px 5px;
	background: #fafafa;
	border: 1.5px solid #e8eaee;
	border-radius: 9px;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: inherit;
}

.fc-style-card:hover {
	border-color: #f6a9bc;
	background: #fff;
}

.fc-style-card.active {
	border-color: var(--fc-accent);
	background: var(--fc-accent-tint);
	box-shadow: 0 2px 6px rgba(246, 96, 125, 0.18);
}

.fc-style-name {
	font-size: 12px;
	color: #4b5563;
}

.fc-style-card.active .fc-style-name {
	color: var(--fc-accent-dark);
	font-weight: 600;
}

.fc-glyph-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	min-width: 44px;
	padding: 0 10px;
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
}

.fc-glyph-bg-dark {
	background: #141414;
}

/* 特效样例（固定示意图，与各特效默认参数生成的效果一致，不随调参变化） */
.fc-glyph-normal {
	color: #111111;
}

.fc-glyph-douyin {
	color: #f4f4f4;
	text-shadow:
		1.5px 0 rgba(0, 229, 255, 0.75),
		-1.5px 0 rgba(254, 44, 85, 0.85);
}

.fc-glyph-stroke {
	color: transparent;
	-webkit-text-stroke: 1.1px #1f2937;
}

.fc-glyph-shadow {
	color: #1f2937;
	text-shadow: 2px 2px 2px rgba(224, 75, 105, 0.85);
}

.fc-glyph-liner {
	background: linear-gradient(90deg, #f6607d, #7a5cff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.fc-glyph-radial {
	background: radial-gradient(circle, #ffb03a 10%, #e04b69 75%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.fc-glyph {
	font-size: 21px;
	font-family: "Kaiti SC", STKaiti, KaiTi, serif;
	line-height: 1.3;
	user-select: none;
	max-width: 100%;
	overflow: hidden;
}

.fc-style-desc {
	margin: 6px 0 0;
	font-size: 12px;
	color: #9ca3af;
}

/* --- 特效参数面板 --- */
.fc-config {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 10px;
	padding: 12px 14px;
	background: var(--fc-accent-tint);
	border: 1px dashed #f6b8c8;
	border-radius: 10px;
}

/* --- 控件工具条 --- */
.fc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
}

.fc-control {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.fc-control-label {
	font-weight: 500;
	color: #374151;
	white-space: nowrap;
}

.fc-select,
.fc-number {
	padding: 7px 10px;
	font-size: 13px;
	color: var(--fc-ink);
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.fc-select {
	min-width: 180px;
}

.fc-number {
	width: 72px;
}

.fc-select:focus,
.fc-number:focus {
	outline: none;
	border-color: var(--fc-accent);
	box-shadow: 0 0 0 3px rgba(246, 96, 125, 0.15);
}

.fc-range-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.fc-range {
	width: 110px;
	accent-color: var(--fc-accent);
}

.fc-color {
	width: 34px;
	height: 29px;
	padding: 2px;
	border: 1px solid #d1d5db;
	border-radius: 7px;
	background: #fff;
	cursor: pointer;
}

.fc-color:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.fc-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: #374151;
	cursor: pointer;
	user-select: none;
}

.fc-checkbox input {
	accent-color: var(--fc-accent);
}

/* --- 预览区（棋盘格底） --- */
.fc-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	padding: 12px;
	border: 1px solid #eceef2;
	border-radius: 12px;
	background-color: #ffffff;
	background-image:
		linear-gradient(45deg, #f4f5f7 25%, transparent 25%),
		linear-gradient(-45deg, #f4f5f7 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #f4f5f7 75%),
		linear-gradient(-45deg, transparent 75%, #f4f5f7 75%);
	background-size: 18px 18px;
	background-position:
		0 0,
		0 9px,
		9px -9px,
		-9px 0;
}

.fc-preview-empty {
	color: #adb3bd;
	font-size: 13.5px;
}

.fc-preview img {
	max-width: 100%;
	border-radius: 4px;
}

.fc-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid #f6c9d4;
	border-top-color: var(--fc-accent);
	border-radius: 50%;
	animation: fc-spin 0.8s linear infinite;
}

@keyframes fc-spin {
	to {
		transform: rotate(360deg);
	}
}

/* --- 操作按钮 --- */
.fc-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.fc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 500;
	border-radius: 9px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.fc-btn > .fa-solid {
	width: 1em;
	flex: 0 0 1em;
	letter-spacing: 0;
}

.fc-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.fc-btn-primary {
	padding: 12px 64px;
	min-width: 220px;
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 2px;
	background: linear-gradient(135deg, var(--fc-accent) 0%, var(--fc-accent-dark) 100%);
	border: none;
	box-shadow: 0 2px 8px rgba(246, 96, 125, 0.35);
}

.fc-btn-primary:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(246, 96, 125, 0.45);
}

.fc-btn-primary.is-current:not(:disabled) {
	opacity: 0.55;
	filter: saturate(0.4);
	box-shadow: none;
	cursor: pointer;
}

.fc-btn-primary.is-current:hover:not(:disabled) {
	opacity: 0.62;
	transform: none;
	box-shadow: none;
}

.fc-btn-ghost {
	color: #6b7280;
	background: #f3f4f6;
	border: 1px solid transparent;
}

.fc-btn-ghost:hover:not(:disabled) {
	background: #e9eaee;
	color: #374151;
}

.fc-btn-outline {
	color: var(--fc-accent);
	background: #fff;
	border: 1px solid #f6b8c8;
}

.fc-btn-outline:hover:not(:disabled) {
	background: var(--fc-accent-tint);
	border-color: var(--fc-accent);
}

.fc-error {
	margin-top: 12px;
	padding: 9px 12px;
	font-size: 13px;
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
}

.fc-disclaimer {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: #b6bcc6;
	text-align: center;
}

/* --- 通用卡片 / 介绍卡 --- */
.fc-card {
	max-width: 1200px;
	margin: 14px auto;
	padding: 18px 22px;
	background: #fff;
	border: 1px solid var(--fc-line);
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

.fc-intro-card h2 {
	margin: 14px 0 10px;
	font-size: 17px;
	font-weight: 600;
	color: var(--fc-ink);
}

.fc-intro-card h2:first-child {
	margin-top: 0;
}

.fc-intro-card p {
	font-size: 14px;
	line-height: 1.8;
	color: #4b5563;
	margin: 0;
}

.fc-intro-body {
	font-size: 14px;
	line-height: 1.8;
	color: #4b5563;
}

.fc-intro-body a {
	color: var(--fc-accent);
}

/* --- 响应式 --- */
@media only screen and (max-width: 900px) {
	.fc-layout {
		flex-direction: column;
	}

	.fc-sidebar {
		flex: none;
		position: static;
		width: 100%;
		max-height: none;
	}

	.fc-tagnav {
		display: flex;
		overflow-x: auto;
		gap: 6px;
		padding: 10px 12px 12px;
	}

	.fc-tagnav::-webkit-scrollbar {
		height: 4px;
	}

	.fc-taglink {
		flex-shrink: 0;
		padding: 6px 14px;
		margin-bottom: 0;
		font-size: 13px;
		border: 1px solid #edf0f4;
		border-radius: 16px;
		background: #fafafa;
	}

	.fc-taglink-active {
		background: var(--fc-accent);
		border-color: var(--fc-accent);
		color: #fff;
	}

	.fc-taglink-active::before {
		display: none;
	}

	.fc-styles {
		grid-template-columns: repeat(3, 1fr);
	}

	.fc-preview {
		min-height: 200px;
	}

	.fc-btn-primary {
		flex: 1 1 100%;
	}
}
