/* 前台样式：详情卡部分与原静态页保持一致，另加页面介绍、查询区与响应式适配 */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
	background: #f0f0f0;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
	             "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* 页面容器：桌面居中定宽，窄屏铺满 */
.page {
	width: 100%;
	max-width: 430px;
	min-height: 100vh;
	margin: 0 auto;
	background: #fff;
	display: flex;
	flex-direction: column;
}

/* ---------- 顶部信息条 ---------- */
.topbar {
	height: 34px;
	line-height: 34px;
	background: #f5f6f7;
	text-align: center;
	font-size: 12px;
	color: #6b7280;
	letter-spacing: 0.3px;
}

/* ---------- 页头 ---------- */
.site-header {
	padding: 22px 26px 0;
}
.site-title {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: 0.8px;
	line-height: 1.3;
}
.site-subtitle {
	margin-top: 7px;
	font-size: 12.5px;
	color: #8a8a8a;
	letter-spacing: 0.3px;
}

/* ---------- 系统简介 ---------- */
.intro-card {
	margin: 14px 26px 0;
	padding: 12px 13px;
	background: #f2fbf6;
	border-radius: 6px;
	font-size: 12.8px;
	line-height: 1.95;
	color: #4a5568;
	letter-spacing: 0.2px;
}

/* ---------- 查询表单 ---------- */
.search-area {
	margin: 14px 26px 0;
	padding: 16px 15px;
	border: 1px solid #ececec;
	border-radius: 6px;
	background: #fff;
}
.form-field + .form-field { margin-top: 12px; }
.form-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12.5px;
	color: #6b7280;
	letter-spacing: 0.3px;
}
.search-input {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #dcdcdc;
	border-radius: 5px;
	font-size: 14px;
	font-family: inherit;
	color: #1a1a1a;
	background: #fff;
	outline: none;
}
.search-input:focus { border-color: #2b6bf3; }
.search-input::placeholder { color: #9a9a9a; }
.search-btn {
	width: 100%;
	height: 40px;
	margin-top: 16px;
	border: none;
	border-radius: 5px;
	background: #2b6bf3;
	color: #fff;
	font-size: 15px;
	font-family: inherit;
	letter-spacing: 1px;
	cursor: pointer;
}
.search-btn:active { background: #1f59d4; }

/* ---------- 查询步骤 ---------- */
.block {
	margin: 20px 26px 0;
}
.block-title {
	display: flex;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	color: #1f1f1f;
	letter-spacing: 0.3px;
	margin-bottom: 12px;
}
.block-title::before {
	content: "";
	width: 3px;
	height: 14px;
	margin-right: 8px;
	border-radius: 2px;
	background: #2b6bf3;
}
.step-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.step-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.step-no {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	line-height: 20px;
	border-radius: 50%;
	background: #eef3fe;
	color: #2b6bf3;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}
.step-name {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	line-height: 20px;
}
.step-desc {
	margin-top: 3px;
	font-size: 12.3px;
	color: #8a8a8a;
	line-height: 1.65;
}

/* ---------- 可查询的信息项 ---------- */
.spec-list {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px 10px;
	font-size: 13px;
	color: #4a5568;
}
.spec-list li {
	display: flex;
	align-items: center;
	gap: 7px;
	line-height: 1.4;
}
.spec-list li::before {
	content: "";
	flex: 0 0 4px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #2b6bf3;
}

/* ---------- 查询须知 ---------- */
.block-plain {
	background: #f7f8fa;
	border-radius: 6px;
	padding: 14px 15px;
}
.block-plain .block-title { margin-bottom: 10px; }
.note-list {
	padding-left: 16px;
	font-size: 12.5px;
	color: #6b7280;
	line-height: 1.95;
}
.note-list li + li { margin-top: 2px; }

/* ---------- 页脚 ---------- */
.site-footer {
	margin-top: 24px;
	padding: 16px 26px 28px;
	border-top: 1px solid #f0f0f0;
	text-align: center;
	font-size: 11.8px;
	line-height: 1.9;
	color: #9aa0a6;
}

/* ---------- 结果区 ---------- */
#resultArea { flex: 0 0 auto; }
#resultArea:not(:empty) { margin-top: 3px; }

.content {
	padding-top: 10px;
}
.content h1 {
	font-size: 20px;
	font-weight: 500;
	color: #1a1a1a;
	line-height: 32px;
	text-align: center;
	letter-spacing: 0.5px;
	margin-bottom: 19px;
}

.field .label {
	height: 35px;
	margin: 0 23px 0 26px;
	background: #e9f9f1;
	border-radius: 3px;
	display: flex;
	align-items: center;
	padding-left: 8px;
	font-size: 14.5px;
	font-weight: 700;
	color: #1f1f1f;
	letter-spacing: 0.3px;
}
.field .value {
	height: 42px;
	display: flex;
	align-items: center;
	padding-left: 34px;
	font-size: 13.5px;
	color: #333;
	letter-spacing: 0.3px;
	word-break: break-all;
}
.field .rule {
	height: 1px;
	margin-left: 26px;
	background: #3a3a3a;
}

/* ---------- 底部按钮条 ---------- */
.panel {
	flex: 0 0 51px;
	border-top: 1px solid #ececec;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
}
.panel .btn {
	width: 194px;
	height: 28px;
	border: none;
	border-radius: 3px;
	background: #2b6bf3;
	color: #fff;
	font-size: 13px;
	letter-spacing: 0.5px;
	font-family: inherit;
	line-height: 28px;
	cursor: pointer;
}

/* ---------- 空结果 ---------- */
.empty-tip {
	padding: 40px 26px;
	text-align: center;
	font-size: 13.5px;
	color: #888;
	line-height: 1.8;
}

/* ---------- 加载指示 ---------- */
.htmx-indicator { opacity: 0; transition: opacity 0.2s; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

/* ---------- 窄屏微调 ---------- */
@media (max-width: 360px) {
	.site-header { padding: 18px 16px 0; }
	.intro-card { margin: 12px 16px 0; }
	.search-area { margin: 12px 16px 0; }
	.block { margin: 18px 16px 0; }
	.site-footer { padding: 14px 16px 24px; }
	.field .label { margin: 0 12px 0 16px; }
	.field .value { padding-left: 24px; }
	.field .rule { margin-left: 16px; }
	.content h1 { font-size: 19px; }
}

/* ---------- 桌面端两栏（900px 以下保持手机版单列） ---------- */
@media (min-width: 900px) {
	.page {
		max-width: 960px;
		padding: 0 28px;
	}
	.topbar {
		margin: 0 -28px;
	}
	.site-header {
		padding-left: 0;
		padding-right: 0;
	}
	.cols {
		display: grid;
		grid-template-columns: 430px minmax(0, 1fr);
		column-gap: 36px;
		align-items: start;
	}
	.col-side {
		padding-top: 8px;
	}
	.col-main .intro-card,
	.col-main .search-area {
		margin-left: 0;
		margin-right: 0;
	}
	.col-side .block {
		margin: 0 0 18px;
	}
	.col-side .block-plain {
		margin-bottom: 0;
	}
	.site-footer {
		margin-top: 28px;
	}
}
