/* 成果评鉴 · 侧栏申报向导 */
.ap-portal-wizard-page {
	padding: 0 !important;
	background: #f0f2f5;
	min-height: 100vh;
	height: 100%;
	box-sizing: border-box;
}

.ap-wizard-shell {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	height: 100%;
	background: #fff;
}

/* 顶栏 */
.ap-wizard-topbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border-bottom: 1px solid #f0f0f0;
	background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
	flex-shrink: 0;
}
.ap-wizard-close {
	width: 32px;
	height: 32px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #fff;
	color: rgba(0, 0, 0, 0.65);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s, color 0.15s;
	flex-shrink: 0;
}
.ap-wizard-close:hover {
	border-color: #1677ff;
	color: #1677ff;
}
.ap-wizard-topbar-main {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.ap-wizard-topbar-tag {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	background: #e6f4ff;
	color: #1677ff;
	flex-shrink: 0;
}
.ap-wizard-topbar-title {
	font-size: 15px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.88);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ap-wizard-back {
	font-size: 13px;
	color: rgba(0, 0, 0, 0.45);
	text-decoration: none;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.ap-wizard-back:hover {
	color: #1677ff;
}

/* 向导主体 */
.ap-portal-wizard.portal-apply-wizard {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	width: 100%;
	max-width: none;
	padding: 0;
	font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ap-wizard-hero.wizard-hero {
	flex-shrink: 0;
	margin: 0;
	padding: 16px 20px;
	border-bottom: 1px solid #f0f0f0;
}

.ap-wizard-hero .wizard-title {
	font-size: 18px;
	margin-bottom: 6px;
}

.ap-wizard-hero .wizard-progress-card {
	flex: 0 0 200px;
}

.ap-wizard-reject.wizard-banner {
	margin: 12px 16px 0;
}

.ap-wizard-body.wizard-layout {
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.ap-wizard-body .wizard-sidebar {
	flex: 0 0 220px;
	overflow-y: auto;
	padding: 14px 12px 16px;
}

.ap-wizard-body .wizard-main {
	overflow-y: auto;
	padding: 18px 22px 24px;
}

.ap-wizard-loading {
	text-align: center;
	padding: 48px 16px;
	color: rgba(0, 0, 0, 0.45);
	font-size: 14px;
}
.ap-wizard-loading .layui-icon {
	font-size: 28px;
	margin-right: 8px;
	vertical-align: middle;
}

/* 底部操作栏 */
.ap-wizard-foot {
	flex-shrink: 0;
	border-top: 1px solid #f0f0f0;
	background: #fff;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
	padding: 0;
}
.ap-wizard-foot .wizard-actions {
	margin: 0;
	padding: 12px 20px;
	border-top: none;
	justify-content: flex-end;
	gap: 10px;
}

/* Pro 按钮（覆盖 layui-btn 在侧栏中的样式） */
.ap-portal-wizard .wizard-actions .pro-btn {
	min-width: 96px;
	justify-content: center;
}
.ap-portal-wizard .wizard-actions .layui-btn {
	border-radius: 8px;
	height: 36px;
	line-height: 36px;
	padding: 0 18px;
	font-size: 14px;
}

/* 表单标签加宽，避免长文案竖排换行 */
.ap-portal-wizard .layui-form-label {
	width: 196px;
	height: auto;
	min-height: 38px;
	line-height: 1.45;
	white-space: normal;
	word-break: keep-all;
	overflow-wrap: break-word;
	text-align: right;
	padding: 9px 12px 9px 0;
	box-sizing: border-box;
}
.ap-portal-wizard .layui-input-block {
	margin-left: 212px;
}
.ap-portal-wizard .layui-form-item {
	margin-bottom: 18px;
}
@media (min-width: 900px) {
	.ap-portal-wizard .ap-form-grid-2 {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 20px;
	}
	.ap-portal-wizard .ap-form-grid-2 .layui-form-item--full {
		grid-column: 1 / -1;
	}
}

.ap-portal-wizard .submit-summary {
	background: linear-gradient(135deg, #f6ffed 0%, #fff 100%);
	border: 1px solid #b7eb8f;
	border-radius: 10px;
	padding: 16px 18px;
}
.ap-portal-wizard .submit-summary dt {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.45);
	margin-top: 8px;
}
.ap-portal-wizard .submit-summary dt:first-child {
	margin-top: 0;
}
.ap-portal-wizard .submit-summary dd {
	font-size: 15px;
	font-weight: 500;
	margin: 0 0 4px;
}

.ap-portal-wizard .wizard-panel .step-title {
	font-size: 17px;
	margin-bottom: 4px;
}

.ap-portal-wizard .section-title {
	font-size: 13px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.65);
	margin: 20px 0 12px;
	padding-left: 10px;
	border-left: 3px solid #1677ff;
}

.ap-portal-wizard .section-title:first-child {
	margin-top: 0;
}

.ap-portal-wizard .field-req {
	color: #ff4d4f;
	margin-left: 2px;
}

.ap-portal-wizard .field-hint,
.ap-portal-wizard .ap-prior-hint {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.45);
	margin-top: 6px;
	line-height: 1.5;
}

.ap-portal-wizard .dynamic-block {
	margin-top: 8px;
	padding: 14px 16px;
	background: #fafafa;
	border: 1px solid #f0f0f0;
	border-radius: 10px;
}

.ap-portal-wizard .block-table {
	margin-top: 8px;
	background: #fff;
}

.ap-portal-wizard .file-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 6px 12px;
	background: #f6ffed;
	border: 1px solid #b7eb8f;
	border-radius: 6px;
	font-size: 12px;
	color: #389e0d;
}

.ap-portal-wizard .wizard-status-pill {
	background: #e6f4ff;
	color: #1677ff;
}

/* 兼容全页打开（非侧栏） */
.ap-portal-wizard-page:not(.layui-layer-content) .ap-wizard-shell {
	min-height: calc(100vh - 80px);
}
