.g24-wrap {
	max-width: 720px;
	margin: 24px auto;
	padding: 22px 22px 18px;
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(20, 30, 60, .06);
	font-size: 15px;
	line-height: 1.6;
	color: #222;
	box-sizing: border-box;
}
.g24-wrap * { box-sizing: border-box; }

.g24-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .5px;
}
.g24-tip {
	margin: 0 0 16px;
	color: #6b7280;
	font-size: 13.5px;
}

/* 输入区 */
.g24-inputs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.g24-num {
	flex: 1 1 80px;
	min-width: 70px;
	padding: 12px 10px;
	font-size: 20px;
	font-weight: 600;
	text-align: center;
	border: 2px solid #d7dbe3;
	border-radius: 10px;
	background: #fafbfc;
	color: #111;
	transition: border-color .15s, background .15s, box-shadow .15s;
	outline: none;
}
.g24-num:focus {
	border-color: #2f7cf6;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(47, 124, 246, .14);
}
.g24-num.g24-bad {
	border-color: #e5484d;
	background: #fff5f5;
	animation: g24shake .25s;
}
@keyframes g24shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

/* 按钮 */
.g24-actions {
	margin: 16px 0 6px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.g24-btn {
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
	border: 1px solid #d0d5dd;
	background: #f5f6f8;
	color: #333;
	cursor: pointer;
	transition: all .15s;
	line-height: 1.2;
}
.g24-btn:hover { background: #eaecef; }
.g24-btn:active { transform: translateY(1px); }
.g24-btn-primary {
	background: linear-gradient(180deg, #3d8bff, #2f7cf6);
	border-color: #2f7cf6;
	color: #fff;
	box-shadow: 0 2px 8px rgba(47, 124, 246, .3);
}
.g24-btn-primary:hover { background: linear-gradient(180deg, #3481f7, #2668d8); }
.g24-btn[disabled] { opacity: .6; cursor: progress; }

/* 结果区 */
.g24-result { margin-top: 14px; }
.g24-msg {
	padding: 14px 16px;
	border-radius: 10px;
	font-size: 15px;
}
.g24-msg.info { background: #f1f5fb; color: #3b4a63; }
.g24-msg.err  { background: #fff1f1; color: #b42318; border: 1px solid #f7c9c9; }
.g24-msg.ok   { background: #f0fdf4; color: #116329; border: 1px solid #c7ebd2; }
.g24-msg.none { background: #fff8e8; color: #8a5300; border: 1px solid #f6e0b0; }

.g24-count {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 4px 0 12px;
	font-size: 14px;
	color: #4b5563;
}
.g24-count b { font-size: 20px; color: #2f7cf6; }

.g24-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: g24i;
	display: grid;
	gap: 8px;
}
.g24-list li {
	counter-increment: g24i;
	position: relative;
	padding: 10px 12px 10px 44px;
	background: #f8f9fb;
	border: 1px solid #eaedf2;
	border-radius: 9px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 15.5px;
	word-break: break-all;
	overflow-x: auto;
	white-space: nowrap;
}
.g24-list li::before {
	content: counter(g24i);
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: #9aa4b2;
	border-radius: 50%;
	font-family: inherit;
}
.g24-list li span.g24-eq { color: #2f7cf6; font-weight: 700; }

.g24-more {
	margin-top: 10px;
	font-size: 13px;
	color: #8a8f98;
}
.g24-foot {
	margin-top: 14px;
	font-size: 12.5px;
	color: #9aa0a8;
	text-align: right;
}

@media (max-width: 480px) {
	.g24-wrap { margin: 12px 10px; padding: 16px 14px; }
	.g24-title { font-size: 19px; }
	.g24-num { font-size: 18px; padding: 10px 6px; }
	.g24-btn { padding: 9px 14px; font-size: 14px; }
	.g24-list li { font-size: 14px; padding: 9px 10px 9px 40px; }
}
