/* Word Learner 快闪模式 */
.wlf-app {
	max-width: 680px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	color: #1f2937;
	line-height: 1.6;
}

/* ---------- 设置栏 ---------- */
.wlf-settings {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 12px;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-size: 13px;
}
.wlf-settings label { display: inline-flex; align-items: center; gap: 4px; color: #475569; white-space: nowrap; }
.wlf-settings select,
.wlf-settings input[type="number"] {
	font-size: 13px;
	padding: 4px 6px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #1f2937;
}
.wlf-settings input[type="number"] { width: 52px; }
.wlf-settings input[type="checkbox"] { accent-color: #2563eb; }
.wlf-settings select:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 控制栏 ---------- */
.wlf-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.wlf-ctl .wl-btn { padding: 8px 14px; font-size: 14px; }
.wlf-start { background: #2563eb; border-color: #2563eb; color: #fff; }
.wlf-start:hover { background: #1d4ed8; }
.wlf-progress { margin-left: auto; font-size: 13px; color: #6b7280; font-variant-numeric: tabular-nums; }
.wlf-bar {
	flex: 1 0 100%;
	height: 6px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
}
.wlf-barfill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #3b82f6, #22c55e);
	border-radius: 999px;
	transition: width .3s;
}

/* ---------- 闪卡 ---------- */
.wlf-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 6px 24px rgba(0,0,0,.07);
	padding: 40px 24px 32px;
	min-height: 240px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;
}
.wlf-pos {
	font-size: 13px;
	color: #6b7280;
	background: #f3f4f6;
	padding: 2px 12px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.wlf-main {
	font-size: 46px;
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
	letter-spacing: .5px;
	min-height: 1.35em;
	word-break: break-word;
}
.wlf-sub {
	margin-top: 10px;
	font-size: 17px;
	color: #6b7280;
	min-height: 24px;
}
.wlf-phase {
	position: absolute;
	top: 14px;
	right: 18px;
	font-size: 12.5px;
	color: #9ca3af;
}
.wlf-summary {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	font-size: 15px;
	font-weight: 600;
}
.wlf-s1 { color: #dc2626; }
.wlf-s2 { color: #d97706; }
.wlf-s3 { color: #2563eb; }
.wlf-s4 { color: #16a34a; }

/* ---------- 熟悉度按钮 ---------- */
.wlf-marks {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-top: 14px;
}
.wlf-mark {
	font-size: 15px;
	padding: 12px 6px;
	border-radius: 12px;
	border: 2px solid;
	cursor: pointer;
	transition: transform .1s, box-shadow .15s, opacity .15s;
	white-space: nowrap;
}
.wlf-mark:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.wlf-mark:disabled { opacity: .35; cursor: not-allowed; }
.wlf-m1 { background: #fef2f2; border-color: #f87171; color: #b91c1c; }
.wlf-m2 { background: #fffbeb; border-color: #fbbf24; color: #b45309; }
.wlf-m3 { background: #eff6ff; border-color: #60a5fa; color: #1d4ed8; }
.wlf-m4 { background: #f0fdf4; border-color: #4ade80; color: #15803d; }

.wlf-tip { margin-top: 12px; font-size: 12.5px; color: #9ca3af; text-align: center; }
.wlf-tip b { color: #6b7280; }

/* 移动端 */
@media (max-width: 520px) {
	.wlf-main { font-size: 32px; }
	.wlf-marks { grid-template-columns: repeat(2, 1fr); }
	.wlf-settings { gap: 8px; }
	.wlf-card { padding: 30px 14px 24px; min-height: 200px; }
}
