/* ==========================================================
   计时器 —— 样式（独立于主题，前缀 xzt-t-）
   ========================================================== */

.xzt-timer {
	max-width: 560px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
	color: #1f2937;
	line-height: 1.6;
	position: relative;
}
.xzt-timer * { box-sizing: border-box; }

.xzt-t-head { margin-bottom: 14px; }
.xzt-t-title { margin: 0 0 10px; font-size: 20px; color: #111827; }

/* Tab */
.xzt-t-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.xzt-t-tab {
	padding: 7px 14px;
	border: 1px solid #e5e7eb;
	background: #ffffff;
	border-radius: 999px;
	cursor: pointer;
	font-size: 13px;
	color: #4b5563;
	transition: all .12s ease;
}
.xzt-t-tab:hover { border-color: #f0abfc; color: #a21caf; }
.xzt-t-tab.active { background: #a21caf; color: #ffffff; border-color: #a21caf; }

.xzt-t-panel { display: none; }
.xzt-t-panel.active { display: block; }

/* 倒计时大字显示 */
.xzt-t-display {
	font-size: 52px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: center;
	color: #a21caf;
	margin: 18px 0 10px;
	letter-spacing: 2px;
}

.xzt-t-progress {
	height: 8px;
	background: #f3e8ff;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 18px;
}
.xzt-t-progress-in {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #e879f9, #a21caf);
	border-radius: 999px;
	transition: width .25s linear;
}

/* 表单 */
.xzt-t-field { margin-bottom: 10px; }
.xzt-t-field label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.xzt-t-field input[type=number],
.xzt-t-field input[type=time] {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 16px;
	background: #ffffff;
	color: #111827;
}
.xzt-t-field input:focus {
	outline: none;
	border-color: #a21caf;
	box-shadow: 0 0 0 2px rgba(162, 28, 175, 0.15);
}
.xzt-t-row { display: flex; gap: 10px; }
.xzt-t-grow { flex: 1; }

/* 快捷预设 */
.xzt-t-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.xzt-t-preset {
	padding: 6px 12px;
	font-size: 12px;
	border: 1px dashed #d8b4fe;
	background: #fdf4ff;
	color: #86198f;
	border-radius: 999px;
	cursor: pointer;
	transition: all .12s ease;
}
.xzt-t-preset:hover { background: #fae8ff; }

/* 按钮 */
.xzt-t-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.xzt-t-actions { margin-top: 16px; }
.xzt-t-btn {
	padding: 9px 22px;
	font-size: 14px;
	background: #a21caf;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background .12s ease;
}
.xzt-t-btn:hover { background: #86198f; }
.xzt-t-btn:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.xzt-t-btn-ghost {
	background: #ffffff;
	color: #a21caf;
	border: 1px solid #e9a8f5;
}
.xzt-t-btn-ghost:hover { background: #fdf4ff; }
.xzt-t-btn-ghost:disabled {
	background: #f9fafb;
	border-color: #e5e7eb;
	color: #9ca3af;
}

.xzt-t-tip { font-size: 12px; color: #9ca3af; margin: 6px 0 8px; }
.xzt-t-err {
	margin: 4px 0 8px;
	padding: 8px 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	font-size: 13px;
	color: #991b1b;
}

/* 定时提醒状态 */
.xzt-t-alarm-status {
	margin-top: 10px;
	padding: 12px 14px;
	background: linear-gradient(135deg, #fdf4ff 0%, #f5f3ff 100%);
	border: 1px solid #f0abfc;
	border-radius: 12px;
	font-size: 14px;
	color: #1f2937;
	min-height: 18px;
}

/* 提醒弹窗 */
.xzt-t-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	background: rgba(17, 24, 39, 0.72);
	align-items: center;
	justify-content: center;
}
.xzt-t-overlay.show { display: flex; }
.xzt-t-alert {
	background: #ffffff;
	border-radius: 18px;
	padding: 34px 40px;
	text-align: center;
	max-width: 90%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: xzt-t-pulse 1s ease-in-out infinite;
}
.xzt-t-alert-icon { font-size: 56px; }
.xzt-t-alert-text {
	font-size: 34px;
	font-weight: 800;
	color: #be123c;
	margin: 10px 0 6px;
}
.xzt-t-alert-sub { font-size: 14px; color: #6b7280; margin-bottom: 20px; }
.xzt-t-alert-close { font-size: 16px; padding: 12px 34px; }
@keyframes xzt-t-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.04); }
}

/* 移动端 */
@media (max-width: 480px) {
	.xzt-timer { margin: 12px auto; }
	.xzt-t-display { font-size: 40px; }
	.xzt-t-tabs { gap: 4px; }
	.xzt-t-tab { padding: 6px 10px; font-size: 12px; }
	.xzt-t-alert { padding: 26px 20px; }
	.xzt-t-alert-text { font-size: 26px; }
}
