/* 提交工具页 — 左中右布局 */
.yw-submit-tool-page {
	background: linear-gradient(180deg, #f8f9fb 0%, var(--yw-bg) 200px);
	padding-bottom: 48px;
}

.yw-submit-tool-layout {
	align-items: start;
}

.yw-submit-tool-center {
	min-width: 0;
}

/* 投稿侧栏 · 左栏投稿类型 */
.yw-submit-tool-sidebar--left {
	position: sticky;
	top: 88px;
}

.yw-submit-portal-types {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
}

.yw-submit-portal-types__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	border: 1px solid transparent;
}

a.yw-submit-portal-types__item:hover {
	background: #f8fafc;
	color: var(--yw-primary);
	text-decoration: none;
}

.yw-submit-portal-types__item.is-current {
	background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
	border-color: #c7d2fe;
	color: var(--yw-primary-dark);
}

.yw-submit-portal-types__ico {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #e2e8f0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	flex-shrink: 0;
}

.yw-submit-portal-types__item.is-current .yw-submit-portal-types__ico {
	border-color: #c7d2fe;
	background: #fff;
}

.yw-submit-portal-types__label {
	line-height: 1.35;
}

/* 投稿侧栏 · 左右栏模块区隔 */
.yw-submit-portal-sidebar__stack > .yw-submit-tool-panel + .yw-submit-tool-panel {
	border-top: 1px solid #e8edf3;
}

/* 中间 · 表单区 */
.yw-submit-tool-head {
	margin-bottom: 20px;
}

.yw-submit-tool-head__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 2.8vw, 30px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #0f172a;
}

.yw-submit-tool-head__sub {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #64748b;
	max-width: 560px;
}

.yw-submit-tool-card {
	padding: 24px 28px 28px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--yw-border);
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.yw-submit-tool-card__notice {
	display: grid;
	gap: 14px;
}

.yw-submit-tool-form {
	display: grid;
	gap: 18px;
	max-width: none;
}

.yw-submit-tool-form__field {
	display: grid;
	gap: 8px;
}

.yw-submit-tool-form__field label {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #334155;
}

.yw-submit-tool-form__req {
	color: #dc2626;
}

.yw-submit-tool-form__hint {
	margin: 0;
	font-size: 12px;
	color: #94a3b8;
}

.yw-submit-tool-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 4px;
}

.yw-submit-tool-page__content {
	margin-top: 20px;
}

/* 右侧栏 */
.yw-submit-tool-sidebar--right {
	position: sticky;
	top: 88px;
}

.yw-submit-portal-sidebar__stack {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--yw-border);
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
	overflow: hidden;
}

.yw-submit-tool-panel {
	padding: 18px 16px;
	border-radius: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.yw-submit-tool-panel__title {
	margin: 0 0 14px;
	padding-left: 10px;
	border-left: 3px solid var(--yw-primary);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	color: #0f172a;
}

.yw-submit-tool-stats__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.yw-submit-news-stats__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yw-submit-tool-stats__item {
	padding: 14px 10px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #eef2f6;
	text-align: center;
}

.yw-submit-tool-stats__item strong {
	display: block;
	font-size: 20px;
	font-weight: 800;
	color: var(--yw-primary);
	line-height: 1.2;
}

.yw-submit-tool-stats__item span {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: #94a3b8;
	font-weight: 600;
}

.yw-submit-tool-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.yw-submit-tool-steps li {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 10px;
	align-items: flex-start;
}

.yw-submit-tool-steps__num {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: linear-gradient(135deg, #eef2ff, #e0e7ff);
	color: var(--yw-primary);
	font-size: 13px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.yw-submit-tool-steps__body strong {
	display: block;
	font-size: 13px;
	margin-bottom: 2px;
	color: #0f172a;
}

.yw-submit-tool-steps__body span {
	font-size: 12px;
	color: #64748b;
	line-height: 1.45;
}

.yw-submit-tool-criteria {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.yw-submit-tool-criteria li {
	position: relative;
	padding-left: 22px;
	font-size: 13px;
	line-height: 1.45;
	color: #475569;
}

.yw-submit-tool-criteria li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--yw-primary);
	font-weight: 800;
}

.yw-submit-tool-panel--cta {
	background: linear-gradient(180deg, #f8fbff 0%, #eef2ff 100%);
}

.yw-submit-portal-sidebar--right .yw-submit-tool-panel--cta {
	border-top-color: #dbeafe;
}

.yw-submit-tool-panel__cta-text {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #475569;
}

.yw-submit-tool-stats--cols-3 .yw-submit-tool-stats__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yw-textarea--mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 13px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
	tab-size: 4;
}

@media (max-width: 1080px) {
	.yw-submit-tool-sidebar--left,
	.yw-submit-tool-sidebar--right {
		position: static;
	}

	.yw-submit-portal-sidebar--right .yw-submit-portal-sidebar__stack {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
		background: transparent;
		border: none;
		box-shadow: none;
		overflow: visible;
	}

	.yw-submit-portal-sidebar__stack > .yw-submit-tool-panel + .yw-submit-tool-panel {
		border-top: none;
	}

	.yw-submit-portal-sidebar__stack .yw-submit-tool-panel {
		padding: 18px;
		border-radius: 16px;
		background: #fff;
		border: 1px solid var(--yw-border);
		box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
	}

	.yw-submit-portal-sidebar__stack .yw-submit-tool-panel--cta {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.yw-submit-tool-card {
		padding: 18px 16px 20px;
	}

	.yw-submit-portal-sidebar__stack {
		grid-template-columns: 1fr;
	}

	.yw-submit-news-stats__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
