/* ============================================================
   postv2.css — 发布信息 · 分类选择页
   品牌红色主题 · 卡片网格
   ============================================================ */

body.post-page {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: #faf8f8;
	font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
	color: #1a1a2e;
	-webkit-font-smoothing: antialiased;
}

body.post-page * {
	box-sizing: border-box;
}

/* ---------- 背景 ---------- */
.post-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background: linear-gradient(160deg, #fffbfb 0%, #fff5f5 40%, #faf8fc 100%);
}

.post-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	animation: post-blob-float ease-in-out infinite alternate;
}

.post-blob-1 {
	width: 50vw;
	height: 50vw;
	max-width: 500px;
	top: -10%;
	right: -5%;
	background: radial-gradient(circle, rgba(216, 39, 62, 0.18) 0%, transparent 70%);
	animation-duration: 14s;
}

.post-blob-2 {
	width: 40vw;
	height: 40vw;
	max-width: 420px;
	bottom: -8%;
	left: -5%;
	background: radial-gradient(circle, rgba(255, 150, 170, 0.15) 0%, transparent 70%);
	animation-duration: 16s;
	animation-delay: -4s;
}

.post-blob-3 {
	width: 30vw;
	height: 30vw;
	top: 40%;
	left: 40%;
	background: radial-gradient(circle, rgba(216, 39, 62, 0.1) 0%, transparent 70%);
	animation-duration: 12s;
}

@keyframes post-blob-float {
	0%   { transform: translate(0, 0) scale(1); }
	100% { transform: translate(2%, -2%) scale(1.05); }
}

.post-grid-deco {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(216, 39, 62, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(216, 39, 62, 0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
}

/* ---------- 容器 ---------- */
.post-wrap {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 28px 40px;
}

/* ---------- 顶栏 ---------- */
.post-topbar {
	
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(216, 39, 62, 0.1);
	margin: 0 -28px;
	padding: 0 28px;
}

.post-topbar-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
	font-size: 12px;
}

.post-topbar-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.post-city {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #d8273e;
	font-weight: 600;
}

.post-city svg {
	width: 14px;
	height: 14px;
}

.post-toplink {
	color: #6b7280;
	text-decoration: none;
	transition: color 0.2s;
}

.post-toplink:hover {
	color: #d8273e;
}

.post-topsep {
	color: #d1d5db;
}

.post-topbar-right img {
	height: 16px;
}

/* ---------- 页头 ---------- */
.post-header {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 32px 0 24px;
	animation: post-fade-up 0.7s ease-out both;
}

.post-logo img {
	max-height: 52px;
	width: auto;
}

.post-header-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #d8273e;
	background: rgba(216, 39, 62, 0.08);
	margin-bottom: 8px;
}

.post-header-title h1 {
	font-size: 32px;
	font-weight: 800;
	margin: 0 0 6px;
	color: #1a1a2e;
	letter-spacing: -0.5px;
}

.post-header-title p {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
}

/* ---------- 步骤条 ---------- */
.post-steps {
	position: relative;
	margin-bottom: 28px;
	padding: 24px 40px 20px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 16px;
	border: 1px solid rgba(216, 39, 62, 0.1);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	animation: post-fade-up 0.7s ease-out 0.1s both;
}

.post-steps-track {
	position: absolute;
	top: 44px;
	left: 80px;
	right: 80px;
	height: 3px;
	background: #fce8ec;
	border-radius: 3px;
	overflow: hidden;
}

.post-steps-progress {
	height: 100%;
	width: 16.66%;
	border-radius: 3px;
	background: linear-gradient(90deg, #e8455c, #d8273e, #ff6b8a);
	background-size: 200% 100%;
	animation: post-progress-shine 3s ease-in-out infinite;
}

@keyframes post-progress-shine {
	0%, 100% { background-position: 0% 50%; }
	50%      { background-position: 100% 50%; }
}

.post-steps-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: space-between;
	position: relative;
	width: 562px;
	z-index: 1;
}

.post-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex: 1;
	font-size: 13px;
	color: #9ca3af;
	font-weight: 500;
}

.post-step-icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f3f4f6;
	border: 2px solid #e5e7eb;
	font-size: 15px;
	font-weight: 700;
	color: #9ca3af;
	position: relative;
	transition: all 0.3s;
}

.post-step-pulse {
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 2px solid rgba(216, 39, 62, 0.4);
	animation: post-step-pulse 2s ease-out infinite;
}

@keyframes post-step-pulse {
	0%   { transform: scale(1); opacity: 0.8; }
	100% { transform: scale(1.35); opacity: 0; }
}

.post-step-active .post-step-icon {
	background: linear-gradient(135deg, #e8455c, #d8273e);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 16px rgba(216, 39, 62, 0.35);
}

.post-step-active {
	color: #1a1a2e;
	font-weight: 700;
}

/* ---------- 搜索面板 ---------- */
.post-search-panel {
	margin-bottom: 32px;
	padding: 28px 32px 20px;
	background: linear-gradient(135deg, rgba(216, 39, 62, 0.06), rgba(255, 180, 190, 0.05));
	border: 1px solid rgba(216, 39, 62, 0.12);
	border-radius: 20px;
	animation: post-fade-up 0.7s ease-out 0.15s both;
}

.post-search-form {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border-radius: 14px;
	padding: 6px 6px 6px 18px;
	border: 1px solid rgba(216, 39, 62, 0.15);
	box-shadow: 0 4px 16px rgba(216, 39, 62, 0.06);
	transition: box-shadow 0.3s, border-color 0.3s;
}

.post-search-form:focus-within {
	border-color: #d8273e;
	box-shadow: 0 4px 24px rgba(216, 39, 62, 0.12);
}

.post-search-icon {
	flex-shrink: 0;
	color: #d8273e;
}

.post-search-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.post-search-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 15px;
	padding: 12px 0;
	color: #1a1a2e;
	background: transparent;
	font-family: inherit;
}

.post-search-input::placeholder {
	color: #9ca3af;
}

.post-search-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 22px;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #e8455c, #d8273e);
	box-shadow: 0 4px 12px rgba(216, 39, 62, 0.3);
	font-family: inherit;
	transition: transform 0.2s, box-shadow 0.2s;
	white-space: nowrap;
}

.post-search-btn svg {
	width: 16px;
	height: 16px;
}

.post-search-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(216, 39, 62, 0.4);
}

.post-search-tips {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	padding-left: 4px;
	font-size: 12px;
	color: #9ca3af;
}

.post-search-tips a {
	padding: 4px 12px;
	border-radius: 14px;
	color: #d8273e;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(216, 39, 62, 0.12);
	transition: all 0.2s;
}

.post-search-tips a:hover {
	background: #fff;
	border-color: #d8273e;
	transform: translateY(-1px);
}

/* autocomplete 下拉 */
.ac_results {
	border-radius: 12px !important;
	border: 1px solid rgba(216, 39, 62, 0.15) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
	overflow: hidden;
}

.ac_results li {
	padding: 10px 16px !important;
	font-size: 14px !important;
}

.ac_over {
	background: rgba(216, 39, 62, 0.08) !important;
	color: #d8273e !important;
}

/* ---------- 分类区域 ---------- */
.post-category-area {
	animation: post-fade-up 0.7s ease-out 0.2s both;
}

.post-category-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.post-category-head h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
	color: #1a1a2e;
}

.post-category-head p {
	margin: 0;
	font-size: 13px;
	color: #9ca3af;
	flex: 1;
}

.post-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #d8273e;
	text-decoration: none;
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid rgba(216, 39, 62, 0.2);
	background: rgba(255, 255, 255, 0.7);
	transition: all 0.2s;
}

.post-back-link svg {
	width: 14px;
	height: 14px;
}

.post-back-link:hover {
	background: #fff;
	transform: translateX(-3px);
}

/* 分类卡片网格 */
.post-category-grid {
	padding: 0;
}

.post-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 20px;
}

.post-cat-card {
	position: relative;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 18px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
	animation: post-card-in 0.5s ease-out both;
}

.post-cat-card:nth-child(1) { animation-delay: 0.05s; }
.post-cat-card:nth-child(2) { animation-delay: 0.1s; }
.post-cat-card:nth-child(3) { animation-delay: 0.15s; }
.post-cat-card:nth-child(4) { animation-delay: 0.2s; }
.post-cat-card:nth-child(5) { animation-delay: 0.25s; }
.post-cat-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes post-card-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.post-cat-card:hover,
.post-cat-card.curren {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(216, 39, 62, 0.1);
	border-color: rgba(216, 39, 62, 0.18);
}

.post-cat-parent {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #f0f0f0;
	background: linear-gradient(135deg, rgba(216, 39, 62, 0.04), transparent);
}

.post-cat-parent-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: linear-gradient(135deg, #e8455c, #d8273e);
	color: #fff;
	box-shadow: 0 4px 12px rgba(216, 39, 62, 0.25);
}

.post-cat-parent-icon svg {
	width: 22px;
	height: 22px;
}

.post-cat-parent-name {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a2e;
	flex: 1;
}

.post-cat-parent-count {
	font-size: 11px;
	color: #9ca3af;
	padding: 3px 10px;
	border-radius: 12px;
	background: #f9fafb;
}

/* 子分类 — 始终展示为标签网格 */
.post-cat-children,
.ym-submnu.post-cat-children {
	position: static !important;
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 8px;
	padding: 16px 18px 18px !important;
	margin: 0 !important;
	list-style: none;
	width: auto !important;
	height: auto !important;
	visibility: visible !important;
	opacity: 1 !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	overflow: visible !important;
	top: auto !important;
	left: auto !important;
}

.post-cat-children li,
.ym-submnu.post-cat-children li {
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
}

.post-cat-children a,
.ym-submnu.post-cat-children a {
	display: block;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 13px;
	color: #4b5563;
	text-decoration: none;
	text-align: center;
	background: #f9fafb;
	border: 1px solid #eef0f4;
	transition: all 0.2s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.post-cat-children a:hover,
.ym-submnu.post-cat-children a:hover {
	color: #fff;
	background: linear-gradient(135deg, #e8455c, #d8273e);
	border-color: transparent;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(216, 39, 62, 0.25);
}

/* 覆盖旧 post_select 浮动定位 */
.post-page .ym-tab {
	float: none !important;
	width: auto !important;
	height: auto !important;
}

.post-page .ym-tab > a.black {
	float: none !important;
	width: auto !important;
	height: auto !important;
}

/* ---------- 发布指引 ---------- */
.post-guide {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 36px;
	animation: post-fade-up 0.7s ease-out 0.3s both;
}

.post-guide-item {
	padding: 22px 20px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(0, 0, 0, 0.04);
	border-radius: 14px;
	text-align: center;
	transition: transform 0.25s;
}

.post-guide-item:hover {
	transform: translateY(-3px);
}

.post-guide-num {
	display: inline-block;
	width: 32px;
	height: 32px;
	line-height: 32px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #e8455c, #d8273e);
	margin-bottom: 10px;
}

.post-guide-item strong {
	display: block;
	font-size: 14px;
	color: #1a1a2e;
	margin-bottom: 4px;
}

.post-guide-item p {
	margin: 0;
	font-size: 12px;
	color: #9ca3af;
}

/* ---------- 页脚 ---------- */
.post-footer {
	text-align: center;
	padding: 28px 0 10px;
	font-size: 12px;
	color: #9ca3af;
}

.post-footer a {
	color: #6b7280;
	text-decoration: none;
	margin-left: 8px;
}

@keyframes post-fade-up {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   填写内容页 — post-page-write
   ============================================================ */

.post-steps-step2 .post-steps-progress {
	width: 50%;
}

.post-step-done .post-step-icon {
	background: linear-gradient(135deg, #e8455c, #d8273e);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 12px rgba(216, 39, 62, 0.25);
}

.post-step-done .post-step-icon svg {
	width: 20px;
	height: 20px;
}

.post-step-done {
	color: #1a1a2e;
	font-weight: 600;
}

/* 双栏布局 */
.post-write-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	align-items: start;
	animation: post-fade-up 0.7s ease-out 0.15s both;
}

.post-write-aside {
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.post-aside-card {
	padding: 22px 20px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(216, 39, 62, 0.1);
	border-radius: 18px;
	box-shadow: 0 8px 28px rgba(216, 39, 62, 0.06);
}

.post-aside-card-head {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.post-aside-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: linear-gradient(135deg, #e8455c, #d8273e);
	color: #fff;
	box-shadow: 0 4px 12px rgba(216, 39, 62, 0.25);
}

.post-aside-icon svg {
	width: 22px;
	height: 22px;
}

.post-aside-card-head em {
	display: block;
	font-size: 11px;
	font-style: normal;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.post-aside-card-head strong {
	display: block;
	font-size: 15px;
	color: #1a1a2e;
	margin-bottom: 2px;
}

.post-aside-card-head span {
	font-size: 13px;
	color: #d8273e;
	font-weight: 600;
}

.post-aside-change {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	padding: 8px 14px;
	border-radius: 10px;
	font-size: 12px;
	color: #d8273e;
	text-decoration: none;
	background: rgba(216, 39, 62, 0.06);
	border: 1px solid rgba(216, 39, 62, 0.12);
	transition: all 0.2s;
}

.post-aside-change svg {
	width: 14px;
	height: 14px;
}

.post-aside-change:hover {
	background: #fff;
	border-color: #d8273e;
	transform: translateX(-2px);
}

.post-aside-tips {
	padding: 20px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(0, 0, 0, 0.04);
	border-radius: 16px;
}

.post-aside-tips h3 {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: #1a1a2e;
}

.post-aside-tips ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.post-aside-tips li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.post-tip-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	line-height: 28px;
	text-align: center;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #e8455c, #d8273e);
}

.post-aside-tips strong {
	display: block;
	font-size: 13px;
	color: #1a1a2e;
	margin-bottom: 2px;
}

.post-aside-tips p {
	margin: 0;
	font-size: 12px;
	color: #9ca3af;
	line-height: 1.5;
}

.post-aside-deco {
	position: relative;
	height: 120px;
	margin-top: 8px;
}

.post-deco-ring {
	position: absolute;
	border-radius: 50%;
	border: 2px solid rgba(216, 39, 62, 0.15);
	animation: post-deco-spin 12s linear infinite;
}

.post-deco-ring-1 {
	width: 80px;
	height: 80px;
	top: 10px;
	left: 50%;
	margin-left: -40px;
}

.post-deco-ring-2 {
	width: 56px;
	height: 56px;
	top: 22px;
	left: 50%;
	margin-left: -28px;
	animation-direction: reverse;
	animation-duration: 8s;
	border-color: rgba(216, 39, 62, 0.25);
}

.post-deco-dot {
	position: absolute;
	width: 10px;
	height: 10px;
	top: 50px;
	left: 50%;
	margin-left: -5px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e8455c, #d8273e);
	box-shadow: 0 0 16px rgba(216, 39, 62, 0.5);
	animation: post-deco-pulse 2s ease-in-out infinite;
}

@keyframes post-deco-spin {
	to { transform: rotate(360deg); }
}

@keyframes post-deco-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50%      { transform: scale(1.3); opacity: 0.7; }
}

/* 表单主卡片 */
.post-form-shell {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(216, 39, 62, 0.08);
	border-radius: 20px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
	float: none;
	width: 100%;
	margin: 0;
}

.post-form-shell::before {
	content: "";
	display: block;
	height: 4px;
	background: linear-gradient(90deg, #d8273e, #e8455c, #ff6b8a, #d8273e);
	background-size: 200% 100%;
	animation: post-progress-shine 4s ease-in-out infinite;
}

.post-cat-strip {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 28px;
	background: linear-gradient(135deg, rgba(216, 39, 62, 0.05), rgba(255, 200, 210, 0.04));
	border-bottom: 1px solid rgba(216, 39, 62, 0.08);
}

.post-cat-strip-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: linear-gradient(135deg, #e8455c, #d8273e);
	color: #fff;
	flex-shrink: 0;
}

.post-cat-strip-icon svg {
	width: 20px;
	height: 20px;
}

.post-cat-strip-info {
	flex: 1;
	min-width: 0;
}

.post-cat-strip-info span {
	display: block;
	font-size: 11px;
	color: #9ca3af;
	margin-bottom: 2px;
}

.post-cat-strip-info strong {
	font-size: 15px;
	color: #1a1a2e;
}

.post-cat-change {
	flex-shrink: 0;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	color: #d8273e;
	text-decoration: none;
	border: 1px solid rgba(216, 39, 62, 0.2);
	background: #fff;
	transition: all 0.2s;
}

.post-cat-change:hover {
	background: rgba(216, 39, 62, 0.06);
	border-color: #d8273e;
}

/* 表单分区 */
.post-form-section {
	border-bottom: 1px solid #f0f0f0;
}

.post-form-section:last-of-type {
	border-bottom: none;
}

.post-form-section-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 28px 0;
}

.post-section-icon {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(216, 39, 62, 0.08);
	color: #d8273e;
}

.post-section-icon svg {
	width: 20px;
	height: 20px;
}

.post-form-section-head h2 {
	margin: 0 0 2px;
	font-size: 17px;
	font-weight: 700;
	color: #1a1a2e;
	float: none;
}

.post-form-section-head p {
	margin: 0;
	font-size: 12px;
	color: #9ca3af;
}

.post-form-section-body {
	padding: 16px 28px 24px;
}

.post-form-section-security {
	background: linear-gradient(180deg, rgba(216, 39, 62, 0.02), transparent);
}

/* 表单行 */
.post-page-write .p-line {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid #f5f5f5;
	float: none;
	width: 100%;
	height: auto;
	line-height: normal;
}

.post-page-write .p-line:last-child {
	border-bottom: none;
}

.post-page-write .p-label {
	flex-shrink: 0;
	width: 100px;
	padding: 12px 0 0;
	text-align: right;
	font-size: 14px;
	font-weight: 600;
	color: #4b5563;
	float: none;
}

.post-page-write .p-label .red.required {
	color: #d8273e;
}

.post-page-write .publish-detail-item {
	flex: 1;
	min-width: 0;
	float: none;
}

.post-page-write .publish-detail-item .input,
.post-page-write .publish-detail-item select,
.post-page-write .publish-detail-item textarea {
	width: 100%;
	max-width: 100%;
	padding: 12px 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	color: #1a1a2e;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	outline: none;
	font-family: inherit;
	box-sizing: border-box;
	float: none;
	height: auto;
}

.post-page-write .publish-detail-item .input:focus,
.post-page-write .publish-detail-item select:focus,
.post-page-write .publish-detail-item textarea:focus {
	border-color: #d8273e;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(216, 39, 62, 0.1);
}

.post-page-write .input-60,
.post-page-write .input-large,
.post-page-write .input-small {
	width: 100%;
}

.post-area-select select {
	width: auto !important;
	min-width: 140px;
	margin-right: 8px;
	margin-bottom: 8px;
}

.post-map-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.post-map-btn,
.post-page-write .mappoint {
	padding: 10px 18px;
	border: none;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #e8455c, #d8273e);
	box-shadow: 0 4px 10px rgba(216, 39, 62, 0.25);
	font-family: inherit;
	transition: transform 0.2s, box-shadow 0.2s;
}

.post-map-btn:hover,
.post-page-write .mappoint:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(216, 39, 62, 0.35);
}

.post-map-row .input-small {
	flex: 1;
	min-width: 180px;
}

.post-field-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: #9ca3af;
}

/* 上传图片 */
.post-upload-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.post-page-write .onea_dd {
	position: relative;
	width: 120px;
	background: #f9fafb;
	border: 1px dashed rgba(216, 39, 62, 0.2);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
	cursor: pointer;
}

.post-page-write .onea_dd:hover {
	border-color: #d8273e;
	box-shadow: 0 4px 12px rgba(216, 39, 62, 0.1);
}

.post-page-write .viewarea {
	width: 120px;
	height: 108px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	pointer-events: none;
}

.post-page-write .viewarea img {
	width: 108px;
	height: 108px;
	object-fit: cover;
	border: 1px solid #eee;
}

.post-page-write .onea_dd .clearfix {
	display: none;
}

.post-page-write .a_ddarea {
	position: static;
	padding: 8px;
	text-align: center;
}

.post-page-write .comment-pic-upd {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	border: none;
	background: none;
	font-size: 0;
}

.post-page-write .a_ddarea img {
	width: 110px;
	height: 32px;
	opacity: 0.85;
	pointer-events: none;
}

/* 编辑器 */
.post-editor-wrap {
	width: 100%;
}

.post-content-line {
	align-items: flex-start;
}

.post-content-line .p-label {
	padding-top: 14px;
}

.post-page-write .contentinner {
	display: block;
	width: 100%;
}

.post-page-write .contentinner textarea {
	width: 100% !important;
	min-height: 200px;
	resize: vertical;
}

.post-page-write .ke-container {
	border-radius: 10px !important;
	border-color: #e5e7eb !important;
	overflow: hidden;
}

/* 验证码 */
.post-captcha-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.post-captcha-row .input-small {
	width: 140px !important;
	flex: none;
}

.post-authcode {
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	height: 40px;
}

.post-question,
.post-page-write .qfont {
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 10px;
	font-size: 13px;
	color: #4b5563;
	background: rgba(216, 39, 62, 0.05);
	border-left: 3px solid #d8273e;
}

/* 提交区 */
.post-submit-area {
	padding: 28px;
	background: linear-gradient(180deg, #fafafa, #fff);
	border-top: 1px solid #f0f0f0;
}

.post-page-write .p-submit {
	margin: 0;
	padding: 0;
	text-align: center;
	float: none;
}

.post-submit-btn,
.post-page-write .fabu1 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 48px;
	border: none;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #e8455c, #d8273e);
	box-shadow: 0 8px 24px rgba(216, 39, 62, 0.35);
	font-family: inherit;
	letter-spacing: 1px;
	transition: transform 0.2s, box-shadow 0.2s;
	float: none;
	width: auto;
	height: auto;
	line-height: normal;
	margin: 0;
	-webkit-appearance: none;
}

.post-submit-btn:hover,
.post-page-write .fabu1:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(216, 39, 62, 0.45);
}

.post-submit-btn:disabled,
.post-page-write .fabu1:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.post-submit-tips {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 520px;
	margin: 20px auto 0;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.7;
	background: rgba(216, 39, 62, 0.04);
	border: 1px solid rgba(216, 39, 62, 0.08);
}

.post-submit-tips svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: #d8273e;
	margin-top: 2px;
}

.post-submit-tips strong {
	color: #d8273e;
	font-weight: 600;
}

/* 校验提示 */
.post-page-write span.yes,
.post-page-write span.no {
	float: none;
	display: inline-block;
	margin: 6px 0 0;
}

/* ============================================================
   发布成功页 — post-page-ok
   ============================================================ */

.post-wrap-ok {
	max-width: 900px;
}

.post-header-ok {
	padding-bottom: 16px;
}

.post-main-ok {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.post-steps-step3 .post-steps-progress {
	width: 100%;
}

/* 背景粒子 */
.post-ok-particles {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.post-ok-particle {
	position: absolute;
	border-radius: 50%;
	opacity: 0;
	animation: post-ok-float 6s ease-in-out infinite;
}

.post-ok-particle-1 { width: 8px; height: 8px; top: 15%; left: 10%; background: #d8273e; animation-delay: 0s; }
.post-ok-particle-2 { width: 6px; height: 6px; top: 25%; right: 15%; background: #ff6b8a; animation-delay: -1s; }
.post-ok-particle-3 { width: 10px; height: 10px; top: 60%; left: 8%; background: #e8455c; animation-delay: -2s; }
.post-ok-particle-4 { width: 5px; height: 5px; top: 70%; right: 20%; background: #ffb3c1; animation-delay: -3s; }
.post-ok-particle-5 { width: 7px; height: 7px; top: 40%; left: 25%; background: #d8273e; animation-delay: -4s; }
.post-ok-particle-6 { width: 9px; height: 9px; top: 50%; right: 10%; background: #ff6b8a; animation-delay: -5s; }

@keyframes post-ok-float {
	0%   { opacity: 0; transform: translateY(20px) scale(0.5); }
	20%  { opacity: 0.8; }
	80%  { opacity: 0.6; }
	100% { opacity: 0; transform: translateY(-80px) scale(1); }
}

/* 结果卡片 */
.post-result-card {
	width: 100%;
	max-width: 680px;
	margin-top: 8px;
	padding: 48px 44px 40px;
	text-align: center;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(216, 39, 62, 0.1);
	border-radius: 24px;
	box-shadow: 0 16px 48px rgba(216, 39, 62, 0.08);
	animation: post-result-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
	position: relative;
	overflow: hidden;
}

.post-result-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #d8273e, #e8455c, #ff6b8a, #d8273e);
	background-size: 200% 100%;
	animation: post-progress-shine 4s ease-in-out infinite;
}

@keyframes post-result-in {
	from { opacity: 0; transform: translateY(32px) scale(0.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.post-result-visual {
	display: flex;
	justify-content: center;
	margin-bottom: 28px;
	min-height: 120px;
	align-items: center;
}

/* 待审核动画 */
.post-pending-loader {
	position: relative;
	width: 110px;
	height: 110px;
}

.post-pending-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 50%;
	border: 2px solid transparent;
}

.post-pending-ring-1 {
	width: 106px;
	height: 106px;
	margin: -53px 0 0 -53px;
	border-top-color: #d8273e;
	border-right-color: rgba(216, 39, 62, 0.15);
	animation: post-loader-spin 1.4s linear infinite;
}

.post-pending-ring-2 {
	width: 82px;
	height: 82px;
	margin: -41px 0 0 -41px;
	border-top-color: #ff6b8a;
	border-left-color: rgba(255, 107, 138, 0.15);
	animation: post-loader-spin 2s linear infinite reverse;
}

.post-pending-ring-3 {
	width: 58px;
	height: 58px;
	margin: -29px 0 0 -29px;
	border-top-color: #ffb3c1;
	animation: post-loader-spin 2.6s linear infinite;
}

.post-pending-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #d8273e;
	background: rgba(216, 39, 62, 0.08);
	border-radius: 50%;
	animation: post-pending-pulse 2s ease-in-out infinite;
}

.post-pending-icon svg {
	width: 24px;
	height: 24px;
	animation: post-pending-tick 2s steps(12) infinite;
}

@keyframes post-loader-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

@keyframes post-pending-pulse {
	0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(216, 39, 62, 0.2); }
	50%      { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(216, 39, 62, 0); }
}

@keyframes post-pending-tick {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* 成功动画 */
.post-success-loader {
	position: relative;
	width: 110px;
	height: 110px;
}

.post-success-burst {
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(216, 39, 62, 0.15) 0%, transparent 70%);
	animation: post-success-burst 1.2s ease-out 0.3s both;
}

@keyframes post-success-burst {
	from { transform: scale(0.3); opacity: 0; }
	to   { transform: scale(1.2); opacity: 1; }
}

.post-success-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 3px solid rgba(216, 39, 62, 0.15);
	animation: post-success-ring 0.8s ease-out forwards;
}

@keyframes post-success-ring {
	from { transform: scale(0.4); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

.post-success-check {
	width: 110px;
	height: 110px;
}

.post-success-circle {
	stroke: #d8273e;
	stroke-width: 2;
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	animation: post-success-stroke 0.7s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}

.post-success-path {
	stroke: #d8273e;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: post-success-stroke 0.5s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

@keyframes post-success-stroke {
	to { stroke-dashoffset: 0; }
}

/* 文字 */
.post-result-title {
	font-size: 26px;
	font-weight: 800;
	color: #1a1a2e;
	margin: 0 0 16px;
	line-height: 1.35;
	animation: post-fade-up 0.6s ease-out 0.25s both;
}

.post-result-title-success {
	color: #d8273e;
}

.post-result-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
	animation: post-fade-up 0.6s ease-out 0.35s both;
}

.post-result-id {
	font-size: 14px;
	color: #6b7280;
}

.post-result-id strong {
	color: #1a1a2e;
	font-size: 16px;
}

.post-result-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.post-result-badge-pending {
	color: #d8273e;
	background: rgba(216, 39, 62, 0.08);
	border: 1px solid rgba(216, 39, 62, 0.15);
	animation: post-badge-pulse 2s ease-in-out infinite;
}

@keyframes post-badge-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.7; }
}

.post-result-desc {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.8;
	margin: 0 0 28px;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
	animation: post-fade-up 0.6s ease-out 0.45s both;
}

.post-result-info-box {
	margin: 0 0 28px;
	padding: 20px 24px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(216, 39, 62, 0.04), rgba(255, 200, 210, 0.06));
	border: 1px solid rgba(216, 39, 62, 0.1);
	animation: post-fade-up 0.6s ease-out 0.4s both;
}

.post-result-info-label {
	margin: 0 0 8px;
	font-size: 12px;
	color: #9ca3af;
}

.post-result-info-title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: #d8273e;
	text-decoration: none;
	margin-bottom: 12px;
	transition: color 0.2s;
	word-break: break-all;
}

.post-result-info-title:hover {
	color: #b91c3a;
	text-decoration: underline;
}

.post-result-info-tip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	color: #6b7280;
}

.post-result-info-tip svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: #d8273e;
}

.post-result-info-tip strong {
	color: #d8273e;
}

/* 按钮 */
.post-result-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	animation: post-fade-up 0.6s ease-out 0.55s both;
}

.post-result-actions-row {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}

.post-result-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	background: linear-gradient(135deg, #e8455c, #d8273e);
	box-shadow: 0 6px 20px rgba(216, 39, 62, 0.3);
	transition: transform 0.2s, box-shadow 0.2s;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.post-result-btn svg {
	width: 18px;
	height: 18px;
}

.post-result-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(216, 39, 62, 0.4);
	color: #fff;
	text-decoration: none;
}

.post-result-btn-outline {
	color: #d8273e;
	background: #fff;
	border: 1px solid rgba(216, 39, 62, 0.25);
	box-shadow: none;
}

.post-result-btn-outline:hover {
	background: rgba(216, 39, 62, 0.04);
	color: #d8273e;
	box-shadow: 0 4px 16px rgba(216, 39, 62, 0.1);
}

.post-result-btn-upgrade {
	background: linear-gradient(135deg, #ff8f6b, #d8273e);
}

.post-result-links {
	margin-top: 20px;
	animation: post-fade-up 0.6s ease-out 0.65s both;
}

.post-result-links a {
	font-size: 13px;
	color: #9ca3af;
	text-decoration: none;
	transition: color 0.2s;
}

.post-result-links a:hover {
	color: #d8273e;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
	.post-wrap {
		padding: 0 16px 30px;
	}

	.post-topbar {
		margin: 0 -16px;
		padding: 0 16px;
	}

	.post-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 24px 0 16px;
	}

	.post-header-title h1 {
		font-size: 26px;
	}

	.post-steps {
		padding: 20px 16px 16px;
	}

	.post-steps-track {
		left: 40px;
		right: 40px;
	}

	.post-search-panel {
		padding: 20px 16px 16px;
	}

	.post-search-form {
		flex-wrap: wrap;
		padding: 12px;
	}

	.post-search-btn {
		width: 100%;
		justify-content: center;
	}

	.post-cat-list {
		grid-template-columns: 1fr;
	}

	.post-guide {
		grid-template-columns: 1fr;
	}

	.post-write-layout {
		grid-template-columns: 1fr;
	}

	.post-write-aside {
		position: static;
	}

	.post-aside-deco {
		display: none;
	}

	.post-form-section-head,
	.post-form-section-body,
	.post-cat-strip,
	.post-submit-area {
		padding-left: 18px;
		padding-right: 18px;
	}

	.post-page-write .p-line {
		flex-direction: column;
		gap: 6px;
	}

	.post-page-write .p-label {
		width: 100%;
		text-align: left;
		padding-top: 0;
	}

	.post-result-card {
		padding: 36px 20px 28px;
	}

	.post-result-title {
		font-size: 22px;
	}

	.post-result-actions-row {
		flex-direction: column;
	}

	.post-result-btn {
		width: 100%;
		max-width: 320px;
	}
}

@media (max-width: 480px) {
	.post-step span:last-child {
		font-size: 11px;
	}

	.post-step-icon {
		width: 36px;
		height: 36px;
		font-size: 13px;
	}
}
