/* 发布页样式 - 适配 downlee 主题风格 */
* {
	list-style: none;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

html, body {
	width: 100%;
	min-height: 100%;
	margin: 0;
	padding: 0;
	color: #666;
	font-family: "Microsoft Yahei", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.42857143;
	background-color: #eff3f5;
}

a {
	text-decoration: none;
	color: #333;
	transition: color 0.3s ease;
}
a:hover, a:focus {
	color: #4693e9;
}

/* 顶部横幅区 - 粒子 + 标题叠放 */
.publish-page .publish-banner {
	position: relative;
	min-height: 280px;
	max-height: 350px;
	width: 100%;
	overflow: hidden;
}

/* 顶部粒子区域 - 与主题 #topsearch / #particles-js 一致 */
.publish-page #particles-js {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	min-height: 280px;
	max-height: 350px;
	margin: 0;
	text-align: center;
	background: linear-gradient(165deg, #2d3748 0%, #1a202c 100%) center top no-repeat;
	background-color: #252d38;
	background-size: cover;
	overflow: hidden;
}
.publish-page #particles-js:before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background: linear-gradient(to bottom, rgba(30, 41, 59, 0.25) 0%, rgba(15, 23, 42, 0.4) 100%);
	z-index: 0;
}
.publish-page #particles-js canvas {
	display: inline-block;
	vertical-align: baseline;
}

/* 主容器 - 与主题 .container 一致 */
.publish-page .container {
	width: 100%;
	max-width: 1200px;
	padding-right: 15px;
	padding-left: 15px;
	margin-right: auto;
	margin-left: auto;
	position: relative;
	z-index: 1;
}
@media (min-width: 1300px) {
	.publish-page .container {
		max-width: 1300px;
	}
}

/* 标题区 - 叠在粒子区域上居中 */
.publish-page .page-title {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding-top: 0;
	pointer-events: none;
	z-index: 1;
}
.publish-page .page-title h1 {
	font-size: 30px;
	line-height: 1.4;
	font-weight: normal;
	color: #fff;
	margin: 0;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 内容区 - 与主题 .main-content 及卡片风格一致 */
.publish-page .content {
	margin: 20px auto;
	padding: 25px 20px 30px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.publish-page .main {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* 收藏提示条 - 与主题 .filter-tag / 强调条 风格一致 */
.publish-page .a-main {
	margin: 0 auto 20px;
	width: 100%;
	padding: 16px 20px;
	background: #f3f5f6;
	border-radius: 8px;
	border-left: 4px solid #c9a227;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
}
.publish-page .a-main h3 {
	font-size: 16px;
	margin: 0;
	color: #333;
	font-weight: 600;
	line-height: 1.5;
}

/* 每个网址卡片 - 与主题 .item-body / top_list 一致 */
.publish-page .g-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 0 auto 15px;
	width: 100%;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.publish-page .g-main:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(212, 168, 75, 0.12);
}
.publish-page .g-main:last-child {
	margin-bottom: 0;
}

.publish-page .wz-main {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding-right: 15px;
}
.publish-page .g-main strong {
	display: block;
	font-size: 15px;
	color: #333;
	font-weight: 600;
	margin-bottom: 4px;
}
.publish-page .g-main em {
	display: block;
	font-size: 13px;
	color: #666;
	font-style: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 点击进入按钮 - 与主题金色按钮 / .item-category 一致 */
.publish-page .g-main span {
	margin: 0;
	float: none;
	flex-shrink: 0;
}
.publish-page .g-main span a {
	display: inline-block;
	padding: 8px 20px;
	line-height: 1.5;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background: linear-gradient(135deg, #c9a227 0%, #d4a84b 50%, #b8922e 100%);
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(184, 146, 46, 0.35);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.publish-page .g-main span a:hover {
	box-shadow: 0 4px 12px rgba(184, 146, 46, 0.45);
	transform: translateY(-1px);
	color: #fff;
}

/* 页脚 */
.publish-page .floot {
	padding: 20px 0;
	text-align: center;
	font-size: 13px;
	color: #999;
}
.publish-page .floot a {
	color: #4693e9;
}

/* 响应式 - 与主题断点一致 */
@media screen and (max-width: 768px) {
	.publish-page .container {
		padding-right: 10px;
		padding-left: 10px;
	}
	.publish-page .page-title h1 {
		font-size: 22px;
	}
	.publish-page .content {
		padding: 18px 15px 22px;
	}
	.publish-page .a-main {
		padding: 12px 15px;
	}
	.publish-page .a-main h3 {
		font-size: 14px;
	}
	.publish-page .g-main {
		padding: 14px 15px;
		flex-wrap: wrap;
	}
	.publish-page .wz-main {
		padding-right: 12px;
		min-width: 0;
		flex: 1;
	}
	.publish-page .g-main span {
		flex-shrink: 0;
	}
	.publish-page .g-main span a {
		width: auto;
		white-space: nowrap;
	}
}

@media screen and (max-width: 680px) {
	.publish-page .publish-banner {
		min-height: 200px;
		max-height: 200px;
	}
	.publish-page #particles-js {
		min-height: 200px;
		max-height: 200px;
	}
	.publish-page .page-title {
		min-height: 200px;
	}
}
