/**
 * 手机版笔记列表 / 详情
 */
body.note-m-page {
	max-width: 640px;
	margin: 0 auto !important;
	background: #f5f5f5;
}

#header .header_r a.note-nav-home {
	text-indent: 0;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 22px;
	width: 54px;
}

.note-m-wrap {
	padding: 10px 8px 20px;
}

.note-m-wrap.note-m-wrap--detail {
	padding-bottom: 24px;
}

.note-m-card {
	background: #fff;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 10px;
}

.note-m-card--feed {
	display: block;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.note-m-head {
	display: flex;
	margin-bottom: 10px;
}

.note-m-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #fff;
	text-align: center;
	line-height: 40px;
	font-size: 16px;
	margin-right: 10px;
	flex-shrink: 0;
}

.note-m-avatar--sm {
	width: 32px;
	height: 32px;
	line-height: 32px;
	font-size: 13px;
}

.note-m-user strong {
	font-size: 15px;
	color: #222;
}

.note-m-badge {
	font-size: 11px;
	color: #999;
	background: #f3f3f3;
	padding: 2px 6px;
	border-radius: 8px;
	margin-left: 6px;
}

.note-m-time {
	display: block;
	font-size: 12px;
	color: #999;
	margin-top: 4px;
}

.note-m-text {
	font-size: 14px;
	color: #333;
	line-height: 1.65;
	margin: 0 0 10px;
	white-space: pre-wrap;
	word-break: break-word;
}

.note-m-wrap--detail .note-m-text {
	line-height: 1.7;
	margin-bottom: 0;
}

/* 列表：九宫格缩略图 */
.note-m-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	margin-bottom: 10px;
	border-radius: 6px;
	overflow: hidden;
}

.note-m-grid .cell {
	position: relative;
	padding-top: 100%;
	background: #eee;
}

.note-m-grid .cell img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.note-m-grid .cell.more::after {
	content: attr(data-more);
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 详情：大图 */
.note-m-imgs img {
	width: 100%;
	border-radius: 8px;
	margin-bottom: 8px;
	display: block;
}

.note-m-tags {
	margin-bottom: 8px;
}

.note-m-tags span {
	display: inline-block;
	font-size: 12px;
	color: #666;
	background: #f5f5f5;
	padding: 3px 8px;
	border-radius: 10px;
	margin: 0 4px 4px 0;
}

.note-m-foot {
	display: flex;
	border-top: 1px solid #f0f0f0;
	padding-top: 10px;
	font-size: 13px;
	color: #666;
}

.note-m-wrap--detail .note-m-foot {
	padding: 12px 0;
	margin-top: 8px;
}

.note-m-foot span,
.note-m-foot button {
	flex: 1;
	text-align: center;
	border: none;
	background: none;
	font-size: 13px;
	color: #666;
}

.note-m-foot button.note-m-like.liked,
.note-m-foot button.note-like-btn.liked {
	color: #ff2442;
}

.note-m-foot button.note-like-btn {
	cursor: pointer;
}

.note-m-foot button.note-like-btn .iconfont {
	font-size: 16px;
	vertical-align: middle;
	margin-right: 2px;
}

.note-m-foot button.note-like-btn.liked .iconfont {
	color: #ff2442;
}

/* 分页 */
.note-m-pager {
	text-align: center;
	padding: 12px 0;
}

.note-m-pager a,
.note-m-pager span {
	display: inline-block;
	margin: 0 3px;
	padding: 6px 10px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
	color: #333;
	text-decoration: none;
}

.note-m-pager span.current {
	background: #b10000;
	color: #fff;
	border-color: #b10000;
}

/* 评论 */
.note-m-section-title {
	font-size: 15px;
	margin: 0 0 10px;
	color: #333;
}

.note-m-cmt {
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
	display: flex;
}

.note-m-cmt-body {
	flex: 1;
	margin-left: 8px;
	min-width: 0;
}

.note-m-cmt-user {
	font-size: 13px;
}

.note-m-cmt-time {
	font-size: 11px;
	color: #999;
	margin-left: 6px;
}

.note-m-cmt-text {
	font-size: 13px;
	margin-top: 4px;
	color: #555;
	line-height: 1.5;
}

.note-m-empty {
	color: #999;
	font-size: 13px;
	text-align: center;
}

.note-m-card--empty p {
	text-align: center;
	color: #999;
	margin: 0;
}

/* 发表评论 */
.note-m-reply textarea {
	width: 100%;
	min-height: 80px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px;
	box-sizing: border-box;
	font-size: 14px;
}

.note-m-reply .note-m-reply-nick {
	width: 100%;
	height: 36px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-top: 8px;
	padding: 0 10px;
	box-sizing: border-box;
	font-size: 14px;
}

.note-m-reply .btn {
	width: 100%;
	height: 40px;
	background: #ff2442;
	color: #fff;
	border: none;
	border-radius: 20px;
	margin-top: 10px;
	font-size: 15px;
}
