/**
 * 信访事项查询页样式
 * PC 端：保持原有布局不变，仅修复 tsxq.css 中 inline-block 导致的横向错位
 * 移动端：参考 register.css 的 @media 适配，所有移动端样式均写在媒体查询内
 */

/* ==================== PC 端（与原 inline style 一致） ==================== */
.xfsxcx-page .register-form {
	width: 1615px;
}

.xfsxcx-page .breadcrumb-content {
	width: 1615px !important;
}

/* 修复 tsxq.css 中 .layui-form-item { display: inline-block } 导致表单项横排 */
.xfsxcx-page #seachDiv .layui-form-item {
	display: block;
	width: 100%;
	clear: both;
}

.xfsxcx-page #seachDiv .layui-form-label {
	width: 40%;
}

.xfsxcx-page .layui-table-header .layui-table {
	width: 100%;
}

.xfsxcx-page .layui-border-box,
.xfsxcx-page .layui-border-box * {
	width: 100%;
}

.xfsxcx-page .layui-layer-tips {
	width: 560px;
}

/* ==================== 移动端适配（参考 register.css） ==================== */
@media screen and (max-width: 768px) {

	.xfsxcx-page .register-form {
		width: 100%;
		margin: 0;
		border-radius: 0;
	}

	.xfsxcx-page .breadcrumb {
		display: none;
	}

	.xfsxcx-page .breadcrumb-content {
		width: 100% !important;
		padding: 0 10px;
		box-sizing: border-box;
	}

	.xfsxcx-page .content-title {
		padding-left: 15px;
		font-size: 16px;
	}

	.xfsxcx-page .bg-panel .logo-panel {
		font-size: 20px;
	}

	.xfsxcx-page #seachDiv {
		height: auto !important;
	}

	.xfsxcx-page #dataDiv {
		height: auto !important;
	}

	.xfsxcx-page form {
		padding: 10px;
	}

	/* 表单项：标签与输入框在一行 */
	.xfsxcx-page #seachDiv .layui-form-item {
		margin-bottom: 15px;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		overflow: visible;
	}

	.xfsxcx-page #seachDiv .layui-form-label {
		width: 100px;
		padding: 0 10px 0 0;
		text-align: right;
		float: none;
		flex-shrink: 0;
		font-size: 14px;
		line-height: 38px;
	}

	.xfsxcx-page #seachDiv .layui-input-inline {
		width: auto !important;
		float: none;
		margin: 0;
		flex: 1;
		min-width: 0;
	}

	.xfsxcx-page #seachDiv .layui-input-inline .layui-input {
		width: 100%;
		box-sizing: border-box;
	}

	/* 验证码行：输入框与图片 */
	.xfsxcx-page #seachDiv .layui-form-item .layui-input-inline + img,
	.xfsxcx-page #seachDiv #login_div_id {
		flex-shrink: 0;
		margin-left: 8px;
		vertical-align: middle;
	}

	/* 提交按钮 */
	.xfsxcx-page #seachDiv .center {
		text-align: center;
		padding: 20px 10px;
		display: block;
		width: 100%;
	}

	.xfsxcx-page #seachDiv .submit-btn {
		width: 45%;
		min-width: 120px;
	}

	/* 查询结果区域 */
	.xfsxcx-page .tsxq-content-panel {
		width: 100%;
		margin: 0;
		border-radius: 0;
	}

	.xfsxcx-page .main-title {
		padding-left: 15px;
		font-size: 15px;
		height: auto;
		line-height: 1.4;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.xfsxcx-page .table-style {
		margin: 0 10px 15px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.xfsxcx-page .table-style .layui-table-view {
		margin: 0;
		min-width: 720px;
	}

	.xfsxcx-page #mydpj_div {
		padding: 15px 10px !important;
		margin: 0 10px 15px !important;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 12px;
	}

	.xfsxcx-page .mydpj_span {
		font-size: 14px;
		margin-left: 0 !important;
	}

	.xfsxcx-page .layui-layer-tips {
		width: 90% !important;
		max-width: 320px;
	}

	/* 移动端不强制 layui-border-box 子元素 100% 宽，避免表格错位 */
	.xfsxcx-page .layui-border-box,
	.xfsxcx-page .layui-border-box * {
		width: auto;
	}
}

@media screen and (max-width: 375px) {

	.xfsxcx-page #seachDiv .layui-form-label {
		width: 85px;
		padding: 0 5px 0 0;
		font-size: 13px;
	}

	.xfsxcx-page #seachDiv .submit-btn {
		width: 100%;
	}

	.xfsxcx-page #seachDiv .center {
		padding: 10px;
	}
}
