/* 成果评鉴 · 申报门户 Pro */
.appraisal-portal-pro.ap-page,
.ap-page.appraisal-portal-pro {
	--ap-primary: #1677ff;
	--ap-success: #52c41a;
	--ap-warning: #faad14;
	--ap-error: #ff4d4f;
	--ap-border: #f0f0f0;
	--ap-bg: #f0f2f5;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 0 24px !important;
	box-sizing: border-box;
	background: var(--ap-bg);
	min-height: calc(100vh - 52px);
}

body.main-body:has(.appraisal-portal-pro) .copyright {
	display: none;
}

.ap-portal-page-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px 16px 0;
	box-sizing: border-box;
}

/* Hero · 与会员门户团体标准 hub 对齐的白卡片 */
.ap-portal-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}
.ap-portal-hero--card {
	position: relative;
	padding: 24px 26px;
	margin: 0 0 16px;
	border-radius: 14px;
	border: 1px solid rgba(22, 104, 220, 0.12);
	background: #fff;
	box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.1);
	overflow: hidden;
	color: rgba(0, 0, 0, 0.88);
}
.ap-portal-hero__bg {
	position: absolute;
	top: 0;
	right: 0;
	width: 48%;
	height: 100%;
	background: radial-gradient(circle at 85% 15%, rgba(22, 119, 255, 0.12), transparent 62%);
	pointer-events: none;
}
.ap-portal-hero__icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(145deg, #1677ff, #69b1ff);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	box-shadow: 0 6px 16px rgba(22, 119, 255, 0.28);
	position: relative;
	z-index: 1;
}
.ap-portal-hero__main {
	flex: 1;
	min-width: 0;
	position: relative;
	z-index: 1;
}
.ap-portal-hero--compact {
	padding: 20px 22px;
}
.ap-portal-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	margin-bottom: 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ap-primary);
	background: #e6f4ff;
}
.ap-portal-hero__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.45);
}
.ap-portal-hero__title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.88);
	line-height: 1.3;
}
.ap-portal-hero__desc {
	margin: 0 0 16px;
	font-size: 14px;
	color: rgba(0, 0, 0, 0.55);
	line-height: 1.65;
	max-width: 720px;
}
.ap-portal-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ap-portal-hero__sep {
	margin: 0 8px;
	color: rgba(0, 0, 0, 0.25);
}
.ap-portal-hero__stats {
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}
.ap-portal-hero__stats--row {
	display: flex;
	gap: 12px;
}
.ap-portal-stat {
	text-align: center;
	min-width: 96px;
	padding: 14px 18px;
	background: #f0f5ff;
	border-radius: 10px;
	border: 1px solid rgba(22, 119, 255, 0.12);
	box-shadow: none;
}
.ap-portal-stat__value {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ap-primary);
}
.ap-portal-stat__label {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.45);
	margin-top: 4px;
}
.ap-portal-stat--sm {
	min-width: 72px;
	padding: 10px 12px;
}
.ap-portal-stat--sm .ap-portal-stat__value {
	font-size: 22px;
}

/* 内容壳 */
.ap-portal-shell {
	margin: 0;
	background: #fff;
	border-radius: 12px;
	border: 1px solid var(--ap-border);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}
.ap-portal-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 12px 20px;
	border-bottom: 1px solid var(--ap-border);
	background: #fafafa;
}
.ap-portal-toolbar__hint {
	font-size: 13px;
	color: rgba(0, 0, 0, 0.45);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.ap-portal-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 0;
	align-items: start;
}
.ap-portal-main {
	min-width: 0;
	padding: 20px 24px 24px;
}
.ap-portal-main--full {
	max-width: none;
}
.ap-portal-main--full .ap-portal-table-wrap {
	padding: 0;
}

.ap-portal-aside {
	padding: 20px 20px 24px 0;
	border-left: 1px solid var(--ap-border);
	background: #fafbfc;
}

/* 子导航 */
.ap-portal-nav {
	display: flex;
	gap: 4px;
	padding: 0;
	margin: 0;
	background: transparent;
	border-radius: 0;
	width: auto;
}
.ap-portal-nav__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 14px;
	color: rgba(0, 0, 0, 0.65);
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.ap-portal-nav__item .layui-icon {
	font-size: 16px;
}
.ap-portal-nav__item:hover {
	color: var(--ap-primary);
	background: rgba(22, 119, 255, 0.06);
}
.ap-portal-nav__item.is-active {
	background: #fff;
	color: var(--ap-primary);
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ap-portal-nav__item.is-active {
	background: #fff;
	color: var(--ap-primary);
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid var(--ap-border);
}

.ap-portal-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.ap-portal-section-badge {
	font-size: 12px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #f0f5ff;
	color: var(--ap-primary);
	border: 1px solid #d6e4ff;
}
.ap-portal-section-head--table {
	padding: 16px 20px 0;
}
.ap-portal-section-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.88);
}

/* 计划列表 · 全宽横向卡片 */
.ap-program-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}
.ap-program-row {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--ap-border);
	border-radius: 12px;
	transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
	box-sizing: border-box;
}
.ap-program-row:hover {
	border-color: #91caff;
	box-shadow: 0 6px 20px rgba(22, 119, 255, 0.1);
}
.ap-program-row--closed {
	opacity: 0.72;
	background: #fafafa;
}
.ap-program-row__icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: linear-gradient(135deg, #e6f4ff, #f0f5ff);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ap-primary);
	font-size: 24px;
}
.ap-program-row__body {
	flex: 1;
	min-width: 0;
}
.ap-program-row__tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}
.ap-program-row__window {
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 4px;
	background: #f6ffed;
	color: #389e0d;
	border: 1px solid #b7eb8f;
}
.ap-program-row__window--closed {
	background: #fff2f0;
	color: #cf1322;
	border-color: #ffccc7;
}
.ap-program-row__window--upcoming {
	background: #fffbe6;
	color: #d48806;
	border-color: #ffe58f;
}
.ap-program-row__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.88);
	line-height: 1.45;
}
.ap-program-row__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.45);
}
.ap-program-row__meta li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.ap-program-row__notice {
	margin: 10px 0 0;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.55);
	line-height: 1.55;
	padding: 10px 12px;
	background: #fafafa;
	border-radius: 8px;
	border-left: 3px solid #91caff;
}
.ap-program-row__action {
	flex-shrink: 0;
	padding-left: 8px;
}

/* 旧 grid 卡片（保留兼容） */
.ap-program-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}
.ap-program-card {
	background: #fff;
	border: 1px solid var(--ap-border);
	border-radius: 10px;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: box-shadow 0.2s, border-color 0.2s;
}
.ap-program-card:hover {
	border-color: #91caff;
	box-shadow: 0 4px 12px rgba(22, 119, 255, 0.08);
}
.ap-program-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}
.ap-program-card__window {
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 4px;
	background: #f6ffed;
	color: #389e0d;
	border: 1px solid #b7eb8f;
}
.ap-program-card__window--closed {
	background: #fff2f0;
	color: #cf1322;
	border-color: #ffccc7;
}
.ap-program-card__window--upcoming {
	background: #fffbe6;
	color: #d48806;
	border-color: #ffe58f;
}
.ap-program-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.88);
	line-height: 1.45;
}
.ap-program-card__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.45);
}
.ap-program-card__meta li {
	display: flex;
	align-items: center;
	gap: 6px;
}
.ap-program-card__meta .layui-icon {
	font-size: 14px;
}
.ap-program-card__notice {
	margin: 0;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.55);
	line-height: 1.55;
	padding: 10px 12px;
	background: #fafafa;
	border-radius: 6px;
	border-left: 3px solid #d9d9d9;
}
.ap-program-card__foot {
	margin-top: auto;
	padding-top: 4px;
}

/* 侧栏指南 */
.ap-portal-guide {
	padding: 0;
	overflow: hidden;
	margin-bottom: 12px;
}
.ap-portal-guide__head {
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 1px solid var(--ap-border);
	color: rgba(0, 0, 0, 0.88);
}
.ap-portal-guide__head .layui-icon {
	margin-right: 6px;
	color: var(--ap-primary);
}
.ap-portal-guide__steps {
	margin: 0;
	padding: 16px 16px 20px;
	list-style: none;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(0, 0, 0, 0.65);
}
.ap-portal-guide__steps li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}
.ap-portal-guide__steps li:last-child {
	margin-bottom: 0;
}
.ap-portal-guide__num {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	border-radius: 50%;
	background: #e6f4ff;
	color: var(--ap-primary);
	font-size: 12px;
	font-weight: 600;
}
.ap-portal-guide__steps strong {
	display: block;
	color: rgba(0, 0, 0, 0.88);
	margin-bottom: 2px;
	font-size: 13px;
}
.ap-portal-guide__steps span {
	color: rgba(0, 0, 0, 0.45);
	font-size: 12px;
}
.ap-portal-tip {
	margin-right: 20px;
	padding: 14px 16px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: #fffbe6;
	border-color: #ffe58f;
}
.ap-portal-tip__icon {
	color: #d48806;
	font-size: 18px;
	flex-shrink: 0;
}
.ap-portal-tip p {
	margin: 0;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.65);
	line-height: 1.6;
}

/* 空状态 */
.ap-portal-empty {
	text-align: center;
	padding: 48px 24px;
	background: #fafafa;
	border-radius: 10px;
	border: 1px dashed #d9d9d9;
}
.ap-portal-empty--inset {
	margin: 0 20px 24px;
}
.ap-portal-empty__icon {
	font-size: 48px;
	color: rgba(0, 0, 0, 0.15);
	margin-bottom: 12px;
}
.ap-portal-empty__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.65);
}
.ap-portal-empty__desc {
	margin: 0 0 16px;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.45);
}

/* 案件表格 */
.ap-portal-table-card {
	overflow: hidden;
	border-radius: 10px;
}
.ap-portal-table-wrap {
	padding: 0 4px 8px;
	overflow-x: auto;
}
.ap-portal-table {
	margin: 0;
}
.ap-portal-table thead th {
	background: #fafafa;
	font-weight: 600;
	font-size: 13px;
}
.ap-case-no {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12px;
	padding: 2px 6px;
	background: #f5f5f5;
	border-radius: 4px;
	color: rgba(0, 0, 0, 0.65);
}
.ap-case-title {
	font-weight: 500;
	color: rgba(0, 0, 0, 0.88);
}
.ap-portal-row-actions {
	white-space: nowrap;
}
.ap-portal-row-actions .pro-link {
	margin-right: 12px;
}

/* 进度页 */
.ap-portal-progress {
	padding: 24px 20px;
	border-radius: 10px;
}
.ap-portal-progress__current {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ap-border);
}
.ap-portal-progress__current-label {
	font-size: 13px;
	color: rgba(0, 0, 0, 0.45);
}
.ap-portal-progress__track {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 8px;
	position: relative;
}
.ap-portal-progress__step {
	flex: 1 1 100px;
	min-width: 90px;
	text-align: center;
	position: relative;
	padding: 0 8px 20px;
}
.ap-portal-progress__step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 14px;
	left: calc(50% + 18px);
	right: calc(-50% + 18px);
	height: 2px;
	background: #f0f0f0;
	z-index: 0;
}
.ap-portal-progress__step.is-done:not(:last-child)::after {
	background: #91caff;
}
.ap-portal-progress__dot {
	position: relative;
	z-index: 1;
	width: 32px;
	height: 32px;
	line-height: 28px;
	border-radius: 50%;
	background: #fafafa;
	color: rgba(0, 0, 0, 0.45);
	margin: 0 auto 8px;
	font-size: 12px;
	font-weight: 600;
	border: 2px solid #d9d9d9;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ap-portal-progress__dot .layui-icon {
	font-size: 14px;
}
.ap-portal-progress__step.is-done .ap-portal-progress__dot {
	background: #e6f4ff;
	border-color: var(--ap-primary);
	color: var(--ap-primary);
}
.ap-portal-progress__step.is-current .ap-portal-progress__dot {
	background: var(--ap-primary);
	border-color: var(--ap-primary);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.15);
}
.ap-portal-progress__step.is-terminated .ap-portal-progress__dot {
	background: #fff2f0;
	border-color: var(--ap-error);
	color: var(--ap-error);
}
.ap-portal-progress__label {
	font-size: 13px;
	color: rgba(0, 0, 0, 0.65);
}
.ap-portal-progress__step.is-current .ap-portal-progress__label {
	color: var(--ap-primary);
	font-weight: 600;
}
.ap-portal-progress__hint {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.45);
	margin-top: 4px;
	line-height: 1.4;
}
.ap-portal-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--ap-border);
}

/* 申报向导顶栏 */
.ap-portal-wizard-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding: 0 4px;
}
.ap-portal-wizard-back {
	font-size: 13px;
	color: rgba(0, 0, 0, 0.65);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.ap-portal-wizard-back:hover {
	color: var(--ap-primary);
}
.ap-portal-wizard-tag {
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 4px;
	background: #e6f4ff;
	color: var(--ap-primary);
}

.ap-portal-task-card {
	background: #fff;
	border: 1px solid var(--ap-border);
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 12px;
}
.ap-portal-task-card__title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
}
.ap-portal-task-card__meta {
	font-size: 13px;
	color: rgba(0, 0, 0, 0.45);
}

@media (max-width: 960px) {
	.ap-portal-page-inner { padding: 12px 8px 0; }
	.ap-portal-hero { flex-direction: column; }
	.ap-portal-hero--card { padding: 20px 16px; }
	.ap-portal-shell { margin: 0; }
	.ap-portal-body { grid-template-columns: 1fr; }
	.ap-portal-aside {
		padding: 0 16px 20px;
		border-left: none;
		border-top: 1px solid var(--ap-border);
	}
	.ap-portal-tip { margin-right: 0; }
	.ap-program-row {
		flex-direction: column;
		align-items: stretch;
	}
	.ap-program-row__action {
		padding-left: 0;
		padding-top: 8px;
	}
	.ap-program-row__action .pro-btn { width: 100%; justify-content: center; }
	.ap-portal-toolbar { flex-direction: column; align-items: flex-start; }
}

/* 独立公开门户顶栏 */
.ap-portal-public-header {
	background: #fff;
	border-bottom: 1px solid var(--ap-border);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.ap-portal-public-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	min-height: 52px;
}
.ap-portal-public-nav__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: rgba(0, 0, 0, 0.88);
	flex-shrink: 0;
}
.ap-portal-public-nav__logo {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--ap-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.ap-portal-public-nav__brand-text {
	font-size: 15px;
	font-weight: 600;
}
.ap-portal-public-nav__brand-sub {
	font-weight: 400;
	color: rgba(0, 0, 0, 0.45);
	font-size: 13px;
}
.ap-portal-public-nav__toggle {
	display: none;
	margin-left: auto;
	border: 1px solid #d9d9d9;
	background: #fff;
	border-radius: 6px;
	width: 36px;
	height: 36px;
	cursor: pointer;
}
.ap-portal-public-nav__links {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	flex-wrap: wrap;
}
.ap-portal-public-nav__links a {
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 14px;
	color: rgba(0, 0, 0, 0.65);
	text-decoration: none;
}
.ap-portal-public-nav__links a:hover,
.ap-portal-public-nav__links a.is-active {
	color: var(--ap-primary);
	background: rgba(22, 119, 255, 0.08);
}
.ap-portal-public-nav__login {
	border: 1px solid #d9d9d9 !important;
	margin-left: 4px;
}
.ap-portal-public-nav__site {
	color: rgba(0, 0, 0, 0.45) !important;
	font-size: 13px !important;
}
.ap-portal-guest-hint {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.45);
}
.ap-portal-guest-hint a { color: var(--ap-primary); text-decoration: underline; }
.ap-portal-public-footer {
	max-width: none;
	margin: 16px 0 0;
	padding: 12px 20px;
	text-align: center;
	font-size: 12px;
	color: rgba(0, 0, 0, 0.45);
}
@media (max-width: 768px) {
	.ap-portal-public-nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
	.ap-portal-public-nav__links {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 52px;
		background: #fff;
		border-bottom: 1px solid var(--ap-border);
		padding: 8px 12px 12px;
		flex-direction: column;
		align-items: stretch;
		z-index: 20;
	}
	.ap-portal-public-nav__links.is-open { display: flex; }
	.ap-portal-public-header { position: relative; }
}
