/* BBQOVN — Wall of Love (masonry cards + ambient layer) */
:root {
	--w-bg: #fdfaf7;
	--w-ink: #1b1512;
	--w-ink-2: #4a3f37;
	--w-muted: #8a7d72;
	--w-line: #ece1d5;
	--w-surface: #ffffff;
	--w-accent: #ff6600;
	--w-radius: 18px;
	--w-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--w-bg);
	color: var(--w-ink);
	font-family: var(--w-font);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

/* ---------- 发帖按钮（原 compose.css 的 .cp-cta，本页只用到这一个类） ---------- */
.cp-cta {
	flex: 0 0 auto;
	align-self: flex-end;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	border: 0;
	border-radius: 999px;
	background: #ff6600;
	color: #fff;
	padding: 13px 22px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .2px;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(255, 102, 0, .3);
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cp-cta svg { width: 18px; height: 18px; flex: 0 0 auto; }
.cp-cta:hover { background: #e65c00; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 102, 0, .38); }
.cp-cta:active { transform: translateY(0) scale(.97); }
@media (max-width: 680px) {
	.cp-cta { padding: 11px 18px; font-size: 13.5px; gap: 7px; }
	.cp-cta svg { width: 16px; height: 16px; }
}

/* ---------- ambient background ---------- */
.w-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.w-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .55;
}

.w-blob-a {
	width: 460px; height: 460px;
	left: -120px; top: -140px;
	background: radial-gradient(circle at 30% 30%, #ffd9b8, rgba(255, 217, 184, 0) 70%);
	animation: wFloatA 22s ease-in-out infinite;
}

.w-blob-b {
	width: 420px; height: 420px;
	right: -140px; top: 120px;
	background: radial-gradient(circle at 50% 50%, #dcd7ff, rgba(220, 215, 255, 0) 70%);
	animation: wFloatB 26s ease-in-out infinite;
}

.w-blob-c {
	width: 380px; height: 380px;
	left: 30%; bottom: -180px;
	background: radial-gradient(circle at 50% 50%, #cdeee2, rgba(205, 238, 226, 0) 70%);
	animation: wFloatA 30s ease-in-out infinite reverse;
}

@keyframes wFloatA {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(28px, 24px, 0) scale(1.06); }
}

@keyframes wFloatB {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(-26px, 18px, 0) scale(1.05); }
}

#wStars {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ---------- layout ---------- */
.w-page {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
	padding: 56px 24px 64px;
}

/* ---------- 顶部热门话题滚动条（像微博热搜，浅色融入整体风格） ---------- */
.w-trend {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: -24px 0 26px;
	padding: 13px 22px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .72);
	border: 1px solid var(--w-line);
	backdrop-filter: blur(8px);
	color: var(--w-ink-2);
	box-shadow: 0 2px 4px rgba(27, 21, 18, .03), 0 12px 28px rgba(27, 21, 18, .05);
	overflow: hidden;
}

.w-trend[hidden] { display: none; }

.w-trend-view {
	position: relative;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 26px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 26px), transparent 100%);
}

.w-trend-track {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	animation: wTrendScroll 32s linear infinite;
	will-change: transform;
}

/* 鼠标悬停暂停，方便看清 */
.w-trend:hover .w-trend-track { animation-play-state: paused; }

.w-trend-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	line-height: 1.5;
	color: var(--w-ink-2);
	cursor: pointer;
}

.w-trend-item:hover .w-trend-topic {
	color: var(--w-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

/* 名次：前三名用火苗色，其余淡出 */
.w-trend-rank {
	min-width: 19px;
	text-align: center;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	color: #d8cbbd;
	font-variant-numeric: tabular-nums;
}

.w-trend-item:nth-child(2) .w-trend-rank,
.w-trend-item:nth-child(3) .w-trend-rank,
.w-trend-item:nth-child(12) .w-trend-rank,
.w-trend-item:nth-child(13) .w-trend-rank { color: #ffa15c; }
.w-trend-item:nth-child(1) .w-trend-rank,
.w-trend-item:nth-child(11) .w-trend-rank { color: #ff6600; }

.w-trend-topic b { color: var(--w-accent); font-weight: 700; margin-right: 1px; }

/* 热度值：4 种表情的合计 */
.w-trend-heat {
	font-size: 13px;
	color: var(--w-muted);
	font-variant-numeric: tabular-nums;
}

/* 话题之间的小圆点分隔 */
.w-trend-item::after {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #d8cbbd;
	margin: 0 16px 0 12px;
	flex: none;
}

@keyframes wTrendScroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ---------- 分类：全部 / 最新 / 热门 / 精选（视觉与广场 qa 的分类 chip 一致） ---------- */
.w-tabs {
	display: flex;
	/* 始终保持一行；装不下时左右滑动，不再折成两行 */
	flex-wrap: nowrap;
	gap: 6px;
	margin: 0 0 24px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 2px;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.w-tabs::-webkit-scrollbar { display: none; }

.w-tabs[hidden] { display: none; }

.w-tab {
	flex: 0 0 auto;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--w-line);
	background: #fff;
	color: var(--w-ink-2);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	white-space: nowrap;
	cursor: pointer;
	transition: all .16s ease;
}

.w-tab:hover { border-color: #e3d7ca; }

.w-tab.is-active {
	background: var(--w-accent);
	border-color: var(--w-accent);
	color: #fff;
	font-weight: 600;
}

.w-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 34px;
}

.w-title {
	margin: 0 0 10px;
	font-size: 38px;
	line-height: 1.15;
	letter-spacing: -.02em;
}

/* 副标题：与主标题同色，字号为标题的一半（38/2 = 19px） */
.w-subtitle {
	margin: 0;
	font-size: 19px;
	font-weight: 400;
	color: var(--w-ink);
	max-width: 640px;
}

.w-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 13px 22px;
	border-radius: 999px;
	background: var(--w-accent);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	box-shadow: 0 10px 24px rgba(255, 102, 0, .28);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.w-cta svg { width: 16px; height: 16px; }

.w-cta:hover { background: #ef5f00; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 102, 0, .34); }
.w-cta:active { transform: translateY(0); }

/* ---------- masonry ----------
 * 用 flex 列容器 + JS 最短列放置（wall.js）：
 * 数据顺序（置顶 -> 权重 -> id）里前 3 张正好构成第一行顶部，
 * CSS columns 是按列竖着填，做不到这一点，所以不用。
 * 列数由 JS 按屏宽决定：>1080px 3 列，>680px 2 列，其余 1 列。
 */
.w-wall {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.w-col {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 680px) {
	.w-page { padding: 32px 14px 48px; }
	/* 手机端卡片左右贴边：列表整体拉满屏宽（hero / 热搜条仍保留 14px 内边距） */
	.w-wall { margin-left: -14px; margin-right: -14px; }
	/* 分类标签滑动到屏幕两侧，首尾不贴边（与广场 qa 一致） */
	.w-tabs {
		margin-left: -14px;
		margin-right: -14px;
		padding-left: 14px;
		padding-right: 14px;
		scroll-padding-left: 14px;
	}
	.w-title { font-size: 14px; font-weight: 400; }   /* 手机端标题再缩一倍（28→14），常规字重 */
	.w-subtitle { display: none; }                     /* 手机端隐藏副标题 */
	/* 手机端发帖入口移到底部菜单中间，hero 按钮不再重复显示 */
	.w-hero .cp-cta { display: none; }
	.w-hero { align-items: flex-start; margin-bottom: 24px; }
}

.w-card {
	margin: 0 0 18px;
	perspective: 900px;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .55s ease, transform .55s cubic-bezier(.22, .68, .36, 1);
	transition-delay: var(--d, 0ms);
}

.w-card.is-in {
	opacity: 1;
	transform: translateY(0);
}

.w-card-in {
	position: relative;
	background: var(--w-surface);
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	padding: 18px 18px 14px;
	box-shadow: 0 2px 4px rgba(27, 21, 18, .03), 0 12px 28px rgba(27, 21, 18, .05);
	transform-style: preserve-3d;
	transition: transform .35s cubic-bezier(.22, .68, .36, 1), box-shadow .3s ease;
	will-change: transform;
}

.w-card.is-tilting .w-card-in {
	transition: transform .08s linear, box-shadow .3s ease;
}

.w-card:hover .w-card-in {
	box-shadow: 0 4px 10px rgba(27, 21, 18, .06), 0 20px 44px rgba(27, 21, 18, .1);
}

/* 顶部一条主题色带，配色由后台选择 */
.w-card-in::before {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	top: 0;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--tone, #ff6600);
	opacity: .85;
}

.w-theme-purple { --tone: #7f77dd; --tone-soft: #eeedfe; --tone-ink: #3c3489; }
.w-theme-teal   { --tone: #1d9e75; --tone-soft: #e1f5ee; --tone-ink: #0f6e56; }
.w-theme-amber  { --tone: #ef9f27; --tone-soft: #faeeda; --tone-ink: #854f0b; }
.w-theme-pink   { --tone: #d4537e; --tone-soft: #fbeaf0; --tone-ink: #993556; }
.w-theme-blue   { --tone: #378add; --tone-soft: #e6f1fb; --tone-ink: #185fa5; }
.w-theme-orange { --tone: #ff6600; --tone-soft: #fff3eb; --tone-ink: #993c1d; }

.w-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.w-avatar {
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 15px;
	background: var(--tone-soft, #fff3eb);
	color: var(--tone-ink, #993c1d);
}

.w-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.w-nick {
	font-size: 14px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.w-pin {
	margin-left: auto;
	flex: 0 0 auto;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	background: var(--tone-soft, #fff3eb);
	color: var(--tone-ink, #993c1d);
	border: 1px solid var(--tone, #ff6600);
}

.w-quote {
	margin: 0;
	font-size: 15px;
	line-height: 1.72;
	color: var(--w-ink);
	word-break: break-word;
	/* 卡片内限高：超出部分省略（详情页显示全文） */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	line-clamp: 6;
	overflow: hidden;
	max-height: 10.4em;   /* 6 行 × 1.72 行高的兜底上限 */
}

/* 富文本卡片（管理员发布，头部带 lm:rich 注释标记）：按 HTML 渲染 */
.w-rich p { margin: 0 0 8px; }
.w-rich p:last-child { margin-bottom: 0; }
.w-rich img { max-width: 100%; height: auto; border-radius: 6px; }
.w-rich ul, .w-rich ol { margin: 0 0 8px; padding-left: 20px; }
.w-rich a { color: inherit; text-decoration: underline; word-break: break-all; }
.w-rich h1, .w-rich h2, .w-rich h3 { margin: 8px 0 6px; font-size: 1.05em; line-height: 1.4; }
.w-rich blockquote {
	margin: 0 0 8px;
	padding: 4px 10px;
	border-left: 3px solid currentColor;
	opacity: .75;
}

/* 图片组：单张 = 整图展示；多张 = 第一张大图（整图不裁切）+ 缩略图行，
 * 点缩略图切换大图；大图本身不可点（无放大、无新标签） */
.w-thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

/* 大图：按原图比例完整显示，不裁切 */
.w-thumb-lg {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #f4ece3;
	/* 点大图进详情页（与点卡片一致） */
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.w-thumb-lg img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

/* 缩略图行：等宽小方图，当前选中的描一圈主题色 */
.w-thumb-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}

.w-thumb {
	display: block;
	padding: 0;
	border: 0;
	background: #f4ece3;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	font: inherit;
	line-height: 0;
}

.w-thumb img {
	width: 100%;
	height: 100%;
	min-height: 80px;   /* 不支持 aspect-ratio 的老浏览器兜底 */
	object-fit: cover;
	display: block;
}

.w-thumb.is-active {
	box-shadow: 0 0 0 2px var(--tone, #ff6a3d);
}

.w-answer .w-thumbs { margin-top: 10px; }
.w-answer .w-thumb { background: #f1e6db; }

.w-answer {
	margin-top: 14px;
	padding: 12px 13px;
	border-radius: 12px;
	background: #fbf7f3;
	border-left: 3px solid var(--tone, #ff6600);
}

.w-answer-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: var(--tone-ink, #993c1d);
	margin-bottom: 4px;
}

.w-answer p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--w-ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 回复默认 4 行截断，点“展开”后放开 */
.w-card.is-open .w-answer p {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

/* 引用（普通帖 + 富文本）被限高截断时，点「显示更多」后放开 */
.w-card.is-open .w-quote {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
	max-height: none;
}

.w-expand {
	display: inline-block;
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--tone-ink, #993c1d);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	opacity: .85;
}

.w-expand:hover { opacity: 1; text-decoration: underline; }

.w-foot {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #f4ece3;
}

/* ---------- YouTube 视频：封面 + 播放按钮，点击后原地播放 ---------- */
.w-video {
	position: relative;
	/* PC 端视频占满卡片宽度（上限 560px，详情层内容较宽时不至于过大），手机端同样全宽 */
	width: 100%;
	max-width: 560px;
	aspect-ratio: 16 / 9;
	margin-top: 12px;
	border-radius: 12px;
	overflow: hidden;
	background: #f4ece3;
	cursor: pointer;
	outline-offset: 2px;
}

.w-video img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.w-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Chrome 已知问题：iframe 祖先链上有 CSS 动画（fill-mode forwards/both）、transform 或
   perspective 时，YouTube 播放器的全屏按钮会"一闪即退"。视频开播后（见 wall.js）给所在
   卡片/阅读层打上 .w-fs-safe，禁用子树内这些属性，保证全屏可用。 */
.w-fs-safe,
.w-fs-safe * {
	animation: none !important;
	transition: none !important;
	transform: none !important;
	transform-style: flat !important;
	perspective: none !important;
	will-change: auto !important;
}

.w-video-play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	height: 25px;
	border-radius: 7px;
	background: rgba(255, 0, 0, .92);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
	transition: transform .18s ease, background .18s ease;
}

.w-video-play::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-42%, -50%);
	border-style: solid;
	border-width: 5px 0 5px 9px;
	border-color: transparent transparent transparent #fff;
}

.w-video:hover .w-video-play,
.w-video:focus-visible .w-video-play {
	transform: translate(-50%, -50%) scale(1.08);
	background: #ff0000;
}

.w-video.is-playing { cursor: default; }

.w-video.is-playing .w-video-play { display: none; }

.w-reader .w-video { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
	.w-video-play { transition: none; }
}

/* ---------- 表情互动：橡胶图章（😂 笑死 / 🔥 绝了 / 😭 我也是 / 💡 学到了） ---------- */
.w-reacts {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 14px;
}

.w-react {
	--ink: #993c1d;
	--ink-soft: rgba(153, 60, 29, .08);
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0 10px;
	height: 26px;                       /* 统一高度，emoji 行高差异不再把按钮顶歪 */
	border: 1.5px solid currentColor;
	border-radius: 7px;
	background: transparent;
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .03em;
	cursor: pointer;
	user-select: none;
	opacity: .5;                        /* 未盖：淡墨 */
	box-shadow: inset 0 0 0 1px currentColor;   /* 双线框，像橡胶章的边 */
	transition: opacity .2s ease, background .2s ease, border-color .2s ease;
}

/* 统一一种印泥色（墙主题的橙棕），不再按表情区分颜色 */

.w-react-emoji { font-size: 13px; line-height: 1; }

.w-react-label { letter-spacing: .02em; }

.w-react-n { font-variant-numeric: tabular-nums; }

/* 墨迹颗粒：细微噪点叠印，避免纯色发假 */
.w-react::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	background-image: radial-gradient(currentColor .6px, transparent .7px);
	background-size: 3px 3px;
	opacity: .12;
	pointer-events: none;
	mix-blend-mode: multiply;
}

.w-react:hover { opacity: .85; }

.w-react.is-on {
	opacity: 1;
	background: var(--ink-soft);
}

/* ---------- 盖章瞬间：卡片里「啪」地盖下一枚大印章 ---------- */
.w-stamp {
	position: absolute;
	right: 12px;
	bottom: 46px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	padding: 7px 13px 6px;
	border: 2.5px solid currentColor;
	border-radius: 9px;
	box-shadow: inset 0 0 0 1.5px currentColor;
	color: var(--ink, #c8342c);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: .03em;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	mix-blend-mode: multiply;         /* 墨迹叠在字上，像真盖上去的 */
	filter: blur(.25px);
	transform-origin: 55% 55%;
	animation: wStampSlam 1.9s cubic-bezier(.2, .75, .3, 1) forwards;
}

/* 印泥噪点 + 边缘轻微晕开 */
.w-stamp::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: inherit;
	background-image:
		radial-gradient(currentColor .7px, transparent .8px),
		radial-gradient(currentColor .5px, transparent .6px);
	background-size: 4px 4px, 7px 7px;
	background-position: 0 0, 2px 3px;
	opacity: .22;
	pointer-events: none;
}

.w-stamp b { font-weight: 800; }

/* 盖章时飞出的墨点 */
.w-stamp-dot {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ink, #c8342c);
	opacity: 0;
	pointer-events: none;
	animation: wInkDot .42s ease-out forwards;
}

@keyframes wStampSlam {
	0%   { transform: scale(2.6) rotate(calc(var(--rot, -8deg) - 10deg)); opacity: 0; filter: blur(3px); }
	16%  { opacity: .95; }
	30%  { transform: scale(.93) rotate(var(--rot, -8deg)); filter: blur(.25px); opacity: .95; }
	42%  { transform: scale(1.04) rotate(var(--rot, -8deg)); }
	54%  { transform: scale(1) rotate(var(--rot, -8deg)); }
	85%  { opacity: .88; }
	100% { transform: scale(1) rotate(var(--rot, -8deg)); opacity: 0; }
}

@keyframes wInkDot {
	0%   { opacity: .9; transform: translate(0, 0) scale(1); }
	100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(.4); }
}

/* 盖章的冲击：整张卡顿一下 */
.w-card-in.is-hit { animation: wHit .26s cubic-bezier(.3, 1.3, .5, 1); }

@keyframes wHit {
	0%   { transform: translateY(0) rotate(0); }
	35%  { transform: translateY(2px) rotate(.35deg); }
	70%  { transform: translateY(-1px) rotate(-.2deg); }
	100% { transform: translateY(0) rotate(0); }
}

.w-reader .w-reacts { margin-top: 16px; }
.w-reader .w-stamp { bottom: 58px; font-size: 23px; }

.w-like {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--w-line);
	background: #fff;
	color: var(--w-ink-2);
	font-size: 13px;
	transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.w-like svg { width: 14px; height: 14px; }

.w-like:hover { border-color: var(--tone, #ff6600); color: var(--tone-ink, #993c1d); }

.w-like.is-done {
	background: var(--tone-soft, #fff3eb);
	border-color: var(--tone, #ff6600);
	color: var(--tone-ink, #993c1d);
}

.w-like.is-bump { transform: scale(1.12); }

.w-card-cat {
	margin-left: auto;
	font-size: 11px;
	color: var(--w-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- states ---------- */
.w-loading,
.w-empty {
	width: 100%;
	text-align: center;
	padding: 64px 0;
	color: var(--w-muted);
	font-size: 14px;
}

/* 空态说明文字限制在可读宽度内并整体居中，避免长句贴满左右边缘显得像左对齐 */
.w-empty {
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
}

.w-empty strong {
	display: block;
	margin-bottom: 6px;
	font-size: 17px;
	color: var(--w-ink);
}

.w-more { text-align: center; margin-top: 8px; }

.w-retry {
	padding: 10px 22px;
	border-radius: 999px;
	border: 1px solid var(--w-line);
	background: #fff;
	color: var(--w-ink-2);
	font-size: 14px;
}

.w-retry:hover { border-color: var(--w-accent); color: var(--w-accent); }

/* ---------- viewer ---------- */
.w-viewer {
	position: fixed;
	inset: 0;
	/* 必须压过阅读层(110)和评论面板(120)：从弹窗里点缩略图全屏预览时用 */
	z-index: 130;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(16, 12, 9, .92);
}

.w-viewer img { max-width: 100%; max-height: 88vh; border-radius: 10px; }

.w-viewer-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 22px;
	line-height: 1;
}

/* ---------- toast ---------- */
.w-toast {
	position: fixed;
	left: 50%;
	bottom: 32px;
	transform: translate(-50%, 16px);
	z-index: 120;
	padding: 11px 20px;
	border-radius: 999px;
	background: rgba(27, 21, 18, .92);
	color: #fff;
	font-size: 13.5px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}

.w-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 光标聚光（B：跟着鼠标点亮卡面） ---------- */
.w-card { cursor: pointer; }

.w-glow {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s ease;
	background: radial-gradient(
		200px circle at var(--mx, 50%) var(--my, 50%),
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0) 45%,
		rgba(27, 21, 18, .07) 100%
	);
}

.w-card:hover .w-glow { opacity: 1; }

/* 抽中的卡片闪一下 */
.w-card.is-picked .w-card-in {
	box-shadow: 0 0 0 3px var(--tone, #ff6600), 0 20px 44px rgba(27, 21, 18, .14);
	animation: wPicked .7s ease;
}

@keyframes wPicked {
	0%, 100% { transform: scale(1); }
	40% { transform: scale(1.035); }
}

/* 发帖按钮已改为 hero 右上角的内联按钮（样式见 compose.css 的 .cp-cta），
   这里原来的悬浮 .w-fab 已废弃并删除 */

/* ---------- 原位展开阅读层（B：FLIP） ---------- */
body.w-lock { overflow: hidden; }

/* 无数据页：锁定页面滚动，避免空态下仍可滚出大段空白 */
body.w-no-scroll { overflow: hidden; }

.w-reader {
	position: fixed;
	inset: 0;
	z-index: 110;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 18px;
}

.w-reader-mask {
	position: absolute;
	inset: 0;
	background: rgba(20, 15, 11, .46);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .32s ease;
}

.w-reader.is-open .w-reader-mask { opacity: 1; }

.w-reader-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 22px 22px 18px;
	border-radius: 20px;
	background: var(--w-surface);
	border: 1px solid var(--w-line);
	box-shadow: 0 30px 80px rgba(20, 15, 11, .34);
	transform-origin: center center;
	transition: transform .42s cubic-bezier(.22, .68, .36, 1), opacity .28s ease;
	will-change: transform;
}

.w-reader-card::before {
	content: "";
	position: absolute;
	left: 22px;
	right: 22px;
	top: 0;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--tone, #ff6600);
}

.w-reader-card.is-flip { animation: wFlip .5s cubic-bezier(.22, .68, .36, 1); }

@keyframes wFlip {
	0% { transform: rotateY(-14deg) scale(.96); opacity: .4; }
	100% { transform: rotateY(0) scale(1); opacity: 1; }
}

.w-reader-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.w-reader-close {
	margin-left: auto;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 50%;
	background: #f4ece3;
	color: var(--w-ink-2);
	font-size: 20px;
	line-height: 1;
	transition: background .2s ease, color .2s ease;
}

.w-reader-close:hover { background: #ece1d5; color: var(--w-ink); }

.w-reader-card .w-quote {
	font-size: 17px;
	line-height: 1.7;
}

.w-reader-card .w-answer {
	margin-top: 16px;
	padding: 14px 15px;
}

.w-reader-card .w-answer p {
	-webkit-line-clamp: unset;
	display: block;
	overflow: visible;
	font-size: 14px;
}

/* 阅读层里的图片改成横向滑动，一屏放不下可以划 */
.w-reader-card .w-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}

.w-reader-card .w-thumb {
	flex: 0 0 auto;
	width: 42%;
	min-width: 150px;
	scroll-snap-align: start;
	aspect-ratio: 1 / 1;
}

.w-reader-foot {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #f4ece3;
}

.w-share {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--w-line);
	background: #fff;
	color: var(--w-ink-2);
	font-size: 13px;
}

.w-share svg { width: 14px; height: 14px; }
.w-share:hover { border-color: var(--tone, #ff6600); color: var(--tone-ink, #993c1d); }

/* ---------- 点赞飘心（D） ---------- */
.w-heart {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 12px;
	pointer-events: none;
	color: var(--tone, #ff6600);
	animation: wHeart .9s ease-out forwards;
}

@keyframes wHeart {
	0% { transform: translate(-50%, -50%) scale(.5); opacity: 1; }
	100% { transform: translate(calc(-50% + var(--hx, 0px)), calc(-50% - 54px)) scale(1.15); opacity: 0; }
}

/* ---------- 看完全部彩蛋 ---------- */
.w-confetti {
	position: fixed;
	inset: 0;
	z-index: 130;
	pointer-events: none;
	overflow: hidden;
}

.w-confetti i {
	position: absolute;
	top: -12px;
	width: 8px;
	height: 12px;
	border-radius: 2px;
	animation: wFall linear forwards;
}

@keyframes wFall {
	0% { transform: translateY(0) rotate(0deg); opacity: 1; }
	100% { transform: translateY(104vh) rotate(560deg); opacity: .9; }
}

/* ---------- embed in Shopify iframe ---------- */
body.embed { background: transparent; }
body.embed .w-bg { display: none; }
body.embed .w-page { padding-top: 28px; padding-bottom: 24px; }
/* 嵌入时页面内边距更小，热搜条不要把内容顶出去 */
body.embed .w-trend { margin-top: -14px; }

@media (max-width: 680px) {
	.w-trend { gap: 10px; padding: 10px 14px; margin: -18px 0 20px; }
	.w-trend-item { font-size: 14px; gap: 8px; }
	.w-trend-rank, .w-trend-heat { font-size: 12px; }
	.w-trend-item::after { margin: 0 12px 0 10px; }
	.w-reader { padding: 12px; }
	.w-reader-card { max-height: calc(100vh - 24px); padding: 18px 16px 14px; }
	.w-reader-card .w-quote { font-size: 16px; }
}

/* ---------- accessibility / motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.w-blob { animation: none; }
	.w-card { transition: none; opacity: 1; transform: none; }
	.w-card-in { transition: none; }
	#wStars { display: none; }
	.w-heart, .w-confetti i, .w-reader-card.is-flip { animation: none; }
	.w-stamp, .w-stamp-dot, .w-card-in.is-hit { animation: none; }
	.w-trend-track { animation: none; }
	.w-reader-card { transition: none; }
}

/* ==================================================================
 * 评论（💬）：卡片底部气泡按钮 + 评论面板
 * ================================================================ */
.w-cmtbtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	margin-left: 8px;
	border-radius: 999px;
	border: 1px solid var(--w-line);
	background: #fff;
	color: var(--w-ink-2);
	font-size: 13px;
	line-height: 1;
	transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.w-cmtbtn svg { width: 14px; height: 14px; }
.w-cmtbtn:hover { border-color: var(--w-accent); color: var(--w-accent); }
.w-cmtbtn-n { font-variant-numeric: tabular-nums; }

/* 待审核徽章（未审核内容仅自己可见） */
.w-pending {
	font-size: 11px;
	padding: 2px 9px;
	border-radius: 999px;
	background: #fff3eb;
	border: 1px solid #ffcf9e;
	color: #a35a17;
	white-space: nowrap;
}

.w-cmt {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 18px;
}

.w-cmt[hidden] { display: none; }

.w-cmt-mask {
	position: absolute;
	inset: 0;
	background: rgba(20, 15, 11, .5);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity .28s ease;
}

.w-cmt.is-open .w-cmt-mask { opacity: 1; }

.w-cmt-panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	border-radius: 20px;
	background: var(--w-surface);
	border: 1px solid var(--w-line);
	box-shadow: 0 30px 80px rgba(20, 15, 11, .34);
	overflow: hidden;
	transform: translateY(18px) scale(.97);
	opacity: 0;
	transition: transform .28s cubic-bezier(.22, .68, .36, 1), opacity .22s ease;
}

.w-cmt.is-open .w-cmt-panel { transform: none; opacity: 1; }

.w-cmt-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 18px 12px;
	border-bottom: 1px solid var(--w-line);
}

.w-cmt-title { font-size: 16px; font-weight: 700; color: var(--w-ink); }

.w-cmt-close {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: var(--w-ink-2);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.w-cmt-close:hover { background: #ece1d5; color: var(--w-ink); }

.w-cmt-list {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 10px 18px;
}

.w-cmt-none {
	margin: 26px 0;
	text-align: center;
	font-size: 14px;
	color: var(--w-muted);
}

.w-cmt-item {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--w-line);
}

.w-cmt-item:last-child { border-bottom: none; }

.w-cmt-avatar {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--w-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.w-cmt-body { flex: 1; min-width: 0; }

.w-cmt-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 3px;
}

.w-cmt-nick { font-size: 13px; font-weight: 700; color: var(--w-ink); }

.w-cmt-pending {
	font-size: 11px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #fff3eb;
	border: 1px solid #ffcf9e;
	color: #a35a17;
}

.w-cmt-replyto {
	font-size: 11px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #f4efe9;
	color: var(--w-ink-2);
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.w-cmt-time { font-size: 11px; color: var(--w-muted); }

.w-cmt-content {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--w-ink);
	word-break: break-word;
}

.w-cmt-reply {
	margin-top: 4px;
	border: none;
	background: transparent;
	padding: 0;
	font-size: 12px;
	color: var(--w-muted);
	cursor: pointer;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color .18s ease;
}

.w-cmt-reply:hover { color: var(--w-accent); }

.w-cmt-replybar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 18px 8px;
	padding: 8px 12px;
	border-radius: 12px;
	background: #fff3eb;
	border: 1px solid #ffcf9e;
	font-size: 13px;
	color: #a35a17;
}

.w-cmt-replybar[hidden] { display: none; }

.w-cmt-replywho { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.w-cmt-replycancel {
	flex: none;
	border: none;
	background: transparent;
	color: #a35a17;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}

.w-cmt-form { padding: 0 18px 16px; border-top: 1px solid var(--w-line); }

.w-cmt-input {
	width: 100%;
	margin-top: 12px;
	padding: 9px 12px;
	border-radius: 12px;
	border: 1px solid var(--w-line);
	background: #fbf7f2;
	font-size: 13px;
	color: var(--w-ink);
	outline: none;
	transition: border-color .18s ease;
}

.w-cmt-input:focus, .w-cmt-text:focus { border-color: var(--w-accent); }

.w-cmt-text {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--w-line);
	background: #fbf7f2;
	font-size: 14px;
	line-height: 1.5;
	color: var(--w-ink);
	font-family: var(--w-font);
	resize: none;
	outline: none;
	transition: border-color .18s ease;
}

.w-cmt-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
}

.w-cmt-send {
	padding: 8px 22px;
	border-radius: 999px;
	border: 1px solid var(--w-ink);
	background: var(--w-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .18s ease, transform .18s ease;
}

.w-cmt-send:hover { opacity: .86; }
.w-cmt-send:disabled { opacity: .55; cursor: default; transform: none; }

@media (max-width: 680px) {
	.w-cmt { padding: 12px; }
	.w-cmt-panel { max-height: calc(100vh - 24px); border-radius: 16px; }
	.w-cmtbtn { margin-left: 6px; padding: 5px 10px; font-size: 12px; }
	/* 手机端视频全宽 */
	.w-video { width: 100%; min-width: 0; }
	.w-video-play { width: 44px; height: 30px; border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.w-cmt-mask, .w-cmt-panel { transition: none; }
}

/* ---------- PC 端：与 qa / center 一致，全屏 + 左右 56px 边距 ---------- */
@media (min-width: 681px) {
	.w-page {
		max-width: none;
		padding-left: 56px;
		padding-right: 56px;
	}
}
