/* 发笔记弹窗 - 手机全屏 / PC 居中 */
.note-publish-mask {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.45);
}

.note-publish-panel {
	background: #fff;
	display: flex;
	flex-direction: column;
	max-height: 100%;
}

.note-m-page .note-publish-panel {
	height: 100%;
}

.note-page-wrap .note-publish-panel {
	width: 520px;
	max-height: 90vh;
	margin: 5vh auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.note-publish-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 48px;
	padding: 0 14px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.note-publish-cancel {
	color: #666;
	text-decoration: none;
	font-size: 15px;
}

.note-publish-title {
	font-size: 17px;
	font-weight: bold;
	color: #222;
}

.note-publish-submit {
	border: none;
	background: #e86452;
	color: #fff;
	font-size: 14px;
	padding: 6px 18px;
	border-radius: 20px;
	cursor: pointer;
}

.note-publish-submit:disabled {
	background: #ccc;
}

.note-publish-bd {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
}

.note-publish-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.note-publish-add {
	width: 88px;
	height: 88px;
	border: 1px dashed #ddd;
	border-radius: 8px;
	background: #f8f8f8;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 12px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.note-publish-add input {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
}

.note-publish-add .iconfont {
	font-size: 28px;
	line-height: 1;
	margin-bottom: 4px;
}

.note-publish-img-item {
	position: relative;
	width: 88px;
	height: 88px;
	border-radius: 8px;
	overflow: hidden;
}

.note-publish-img-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.note-publish-img-del {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	text-align: center;
	line-height: 18px;
	font-size: 14px;
	cursor: pointer;
}

.note-publish-img-tip {
	font-size: 12px;
	color: #999;
	margin: 8px 0 12px;
}

.note-publish-text {
	width: 100%;
	min-height: 120px;
	border: none;
	resize: none;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	box-sizing: border-box;
	outline: none;
}

.note-publish-text::placeholder {
	color: #bbb;
}

.note-publish-topic-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border-top: 1px solid #f0f0f0;
	margin-top: 8px;
}

.note-publish-topic-label {
	font-size: 14px;
	color: #333;
}

.note-publish-topic-add {
	font-size: 14px;
	color: #999;
	text-decoration: none;
}

.note-publish-topic-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 8px;
}

.note-publish-topic-tag {
	display: inline-block;
	font-size: 13px;
	color: #e86452;
	background: #fff0ee;
	padding: 4px 10px;
	border-radius: 14px;
}

.note-publish-topic-tag em {
	font-style: normal;
	margin-left: 6px;
	cursor: pointer;
	color: #999;
}

.note-topic-picker-mask {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.45);
}

.note-topic-picker-panel {
	background: #fff;
	max-height: 70vh;
	display: flex;
	flex-direction: column;
}

.note-m-page .note-topic-picker-panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 12px 12px 0 0;
}

.note-page-wrap .note-topic-picker-panel {
	width: 400px;
	margin: 15vh auto;
	border-radius: 10px;
	max-height: 60vh;
}

.note-topic-picker-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #eee;
}

.note-topic-picker-hd a {
	color: #e86452;
	text-decoration: none;
	font-size: 15px;
}

.note-topic-picker-hd span {
	font-weight: bold;
}

.note-topic-picker-list {
	overflow-y: auto;
	padding: 8px 16px 16px;
}

.note-topic-picker-item {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid #f5f5f5;
	font-size: 15px;
}

.note-topic-picker-item input {
	margin-right: 10px;
}

.note-topic-picker-empty {
	text-align: center;
	color: #999;
	padding: 24px;
}

.note-publish-trigger {
	color: #fff !important;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	line-height: 54px;
}

.note-publish-trigger .iconfont {
	font-size: 28px;
}
