/* ==================== 视频/首页特定样式 ==================== */

body {
    font-family: "Inter",
		system-ui,
		-apple-system,
		"Segoe UI",
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
	background: var(--bg);
	padding-bottom: 60px;
}

/* --------------------------
   全站深色模式 全局适配
   -------------------------- */
/* 深色根节点背景 */
html.dark {
    background: var(--bg);
}

/* 深色模式主体文字与背景 */
html.dark body {
    background: var(--bg);
	color: var(--txt);
	transition: none;
}

/* --------------------------
   视频/图片封面卡片 基础样式
   -------------------------- */
.item {
    position: relative;
	cursor: pointer;
	overflow: hidden;
}

/* 卡片容器固定高度 */
.box {
    width: 100%;
	height: 300px;
	border-radius: 0;
	overflow: hidden;
	background: var(--cover);
	position: relative;
}

/* 封面图片铺满容器 */
.box img {
    width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 深色模式层级 */
/* 浅色模式层级 */
/* ============================================================
   合并自 index.css（stage1 合并，原文件保留）
   ============================================================ */
/* 首页（Home.html）专属样式：视频墙布局。
   全局重置 / 深色 / 导航等基础样式由 styles.css 提供（v0.3.23 去重）。 */

/* 首页标题区 */
.home-page {
    text-align: center;
	padding: 40px 20px;
}

.home-page h1 {
    font-size: 28px;
	margin-bottom: 12px;
	color: var(--txt);
}

.home-page p {
    font-size: 16px;
	color: var(--dim);
}

/* 核心容器（v0.3.24 激进弹性）：左大卡 340px~1.55fr，右侧小卡 280px~1fr，随视口伸缩 */
.video-wrap {
    padding: 0 25px;
	grid-template-columns: minmax(340px, 1.55fr) minmax(280px, 1fr);
	display: grid;
	gap: 20px;
	grid-template-areas: "big rightList"
		"fullList fullList";
}

/* 大视频 16:9 */
.big-card {
    grid-area: big;
	width: 100%;
	background: var(--card);
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
}

.big-card .box {
    width: 100%;
	padding-top: 56.25%;
	height: 0;
	position: relative;
}

.big-card .box img {
    position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 右侧小视频：弹性卡宽自动排满，layoutVideo 按列数取 2 行 */
.right-small {
    grid-area: rightList;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	align-content: start;
	justify-content: start;
}

/* 底部通栏：弹性卡宽铺满整行 */
.bottom-full-small {
    grid-area: fullList;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	justify-content: start;
}

/* 小视频卡片：弹性占满网格轨道 */
.item {
    width: 100%;
	background: var(--card);
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	display: flex;
	flex-direction: column;
}

.item .box {
    width: 100%;
	padding-top: 56.25%;
	height: 0;
	position: relative;
	flex-shrink: 0;
}

.item .box img {
    position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 文字区域固定占位 */
.video-info {
    padding: 10px 8px;
	min-height: 50px;
	flex-shrink: 0;
}

.video-title {
    font-size: 15px;
	font-weight: 500;
	color: var(--txt);
	margin-bottom: 5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.video-meta {
    font-size: 12px;
	color: var(--txt-meta);
}

/* ========== 手动深色模式 绑定按钮 class="dark" ========== */
html.dark body {
    background: var(--bg);
}

html.dark .home-page h1 {
    color: var(--txt);
}

html.dark .home-page p {
    color: var(--txt-meta);
}

html.dark .big-card,
html.dark .item {
    background: var(--card-media);
}

html.dark .video-title {
    color: var(--txt);
}

html.dark .video-meta {
    color: var(--txt-meta);
}

.hot-title {
    text-align: left;
	font-size: 18px;
	font-weight: bold;
	margin: 0px 10px 0px;
	padding-left: 10px;
	border-left: 4px solid var(--acc);
	width: 100%;
	align-self: flex-start;
	grid-column: 1 / -1;
}

/* ========== v0.3.24：hot-title 深色覆盖 ========== */
html.dark .hot-title {
    color: var(--txt);
	border-left-color: var(--acc);
}

/* ========== v0.3.24：桌面 hover 上浮 + 阴影（仅支持 hover 的设备） ========== */
@media (hover: hover) {
    .big-card,
	.item {
		transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.big-card:hover,
	.item:hover {
    transform: translateY(-4px);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html.dark .big-card:hover,
	html.dark .item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

}

/* ========== v0.3.24b：图片占位底色（未加载完成/刷新时不白屏闪烁） ========== */
.big-card .box,
.item .box {
    background: var(--img-ph);
}

html.dark .big-card .box,
html.dark .item .box {
    background: var(--img-ph);
}

/* ============================================================
   合并自 preview.css（stage1 合并，原文件保留）
   ============================================================ */
/* ========== 仅媒体图片/视频预览弹窗 专属样式 已独立分离 ========== */
.modal {
    display: flex;
	flex-direction: column;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease,
		background 0.3s ease;
}

.modal.show {
    opacity: 1;
	pointer-events: auto;
	background: rgba(0, 0, 0, 0.9);
}

.modal-toolbar {
    position: absolute;
	right: 30px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 10px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 100001;
}

.modal.show .modal-toolbar {
    opacity: 1;
}

.modal-toolbar button {
    width: 45px;
	height: 45px;
	border: none;
	border-radius: 50%;
	background: var(--card);
	color: var(--txt);
	font-size: 18px;
	cursor: pointer;
	transition: 0.2s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-toolbar button:hover {
    background: var(--bg-soft);
	transform: scale(1.1);
}

.modal img,
.modal video {
    max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	opacity: 0;
	pointer-events: none;
	transform: scale(1);
	transform-origin: center center;
	transition: opacity 0.3s ease;
	cursor: grab;
	z-index: 1;
}

.modal img.dragging {
    cursor: grabbing;
}

.modal.show img,
.modal.show video {
    opacity: 1;
	pointer-events: auto;
}

.close {
    position: absolute;
	top: 20px;
	right: 20px;
	font-size: 30px;
	color: var(--ink);
	cursor: pointer;
	z-index: 100000;
}


/* 波浪动画延迟类（替代内联 animation-delay） */
.wave-bar.delay-0 { animation-delay: 0s; }
.wave-bar.delay-1 { animation-delay: 0.1s; }
.wave-bar.delay-2 { animation-delay: 0.2s; }
.wave-bar.delay-3 { animation-delay: 0.3s; }
.wave-bar.delay-4 { animation-delay: 0.4s; }
.wave-bar.delay-5 { animation-delay: 0.5s; }

/* ========== 手机布局：由 js/global.js 判定后给 html 加 mobile class（竖屏或 ≤640px），本文件不再用媒体查询判断手机 ========== */
html.mobile .video-wrap {
    padding: 0 15px;
	grid-template-columns: 1fr;
	grid-template-areas:
		"big"
		"rightList"
		"fullList";
}

/* 移动端: 媒体预览工具栏 右下角布局 */
html.mobile .modal-toolbar {
    position: fixed !important;
		right: 15px !important;
		bottom: 20px !important;
		top: auto !important;
		transform: none !important;
		flex-direction: row !important;
		gap: 8px !important;
}


/* ============================================================
   v0.4.6 首页增强：数据条 / 搜索标签栏 / 骨架屏 / 空态
   ============================================================ */
/* 数据条：4 个计数胶囊 */
.home-stats {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}
.home-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 78px;
	padding: 8px 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
}
.home-stats__item b {
	font-size: 20px;
	line-height: 1.1;
	color: var(--txt);
	font-variant-numeric: tabular-nums;
}
.home-stats__item span {
	margin-top: 3px;
	font-size: 12px;
	color: var(--txt-meta);
}
html.dark .home-stats__item { background: var(--card-media); }

/* 搜索 + 标签筛选 */
.home-toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 0 25px 16px;
}
.home-search {
	display: flex;
	align-items: center;
	flex: 1 1 260px;
	max-width: 420px;
	height: 38px;
	padding: 0 12px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-search:focus-within {
	border-color: var(--acc);
	box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.15);
}
.home-search__icon {
	font-size: 14px;
	line-height: 1;
	opacity: 0.6;
}
.home-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--txt);
	font-size: 14px;
}
.home-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.home-tag {
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: var(--dim);
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.home-tag:hover { border-color: var(--acc); color: var(--acc); }
.home-tag.is-active {
	background: var(--pill-bg);
	border-color: transparent;
	color: var(--pill-fg);
}
html.dark .home-tag { background: var(--card-media); }

/* 骨架屏 */
.sk-box {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--bg-soft);
	overflow: hidden;
}
.sk-box::after,
.sk-line::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	transform: translateX(-100%);
	animation: sk-shimmer 1.25s ease-in-out infinite;
}
html.dark .sk-box::after,
html.dark .sk-line::after {
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}
@keyframes sk-shimmer {
	to { transform: translateX(100%); }
}
.sk-line {
	position: relative;
	display: block;
	width: 72%;
	height: 12px;
	margin-bottom: 8px;
	border-radius: 6px;
	background: var(--bg-soft);
	overflow: hidden;
}
.sk-line--short { width: 40%; height: 10px; }
.item.sk { pointer-events: none; }

/* 空态 */
.home-empty {
	padding: 56px 20px 72px;
	text-align: center;
	color: var(--dim);
}
.home-empty__icon { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.home-empty__text { font-size: 15px; }
.home-empty__retry {
	margin-top: 16px;
	padding: 8px 20px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: var(--txt);
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.18s ease, color 0.18s ease;
}
.home-empty__retry:hover { border-color: var(--acc); color: var(--acc); }

/* 手机：数据条更紧凑 */
html.mobile .home-stats { gap: 8px; }
html.mobile .home-stats__item { min-width: 66px; padding: 6px 10px; }
html.mobile .home-stats__item b { font-size: 17px; }
html.mobile .home-toolbar { padding: 0 15px 14px; }
html.mobile .home-search { flex: 1 1 100%; max-width: none; }

/* ============================================================
   v0.4.6 作品详情页
   ============================================================ */
.work-page {
	max-width: 1180px;
	margin: 0 auto;
	/* v0.4.8：顶部固定导航高约 48px，留 76px 避免内容被遮挡 */
	padding: 76px 20px 48px;
}
.work-hero {
	display: grid;
	/* v0.4.9：视频在左、信息在右（右侧固定 320px） */
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
	align-items: start;
}
.work-media {
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}
.work-media video,
.work-media img {
	display: block;
	width: 100%;
	max-width: 100%;
}
.work-media .sk-box--work { aspect-ratio: 16 / 9; }
.work-img { max-height: 70vh; object-fit: contain; background: #000; }
.work-side {
	padding: 0 2px;
	/* 右侧信息随滚动保持可见 */
	position: sticky;
	top: 76px;
}
.work-title { font-size: 22px; margin: 0 0 6px; color: var(--txt); }
.work-sub { font-size: 13px; color: var(--txt-meta); margin: 0 0 14px; }
.work-meta { display: grid; gap: 6px; margin-bottom: 14px; }
.work-meta__item { display: flex; gap: 10px; font-size: 14px; }
.work-meta__item .k { min-width: 48px; color: var(--txt-meta); }
.work-meta__item .v { color: var(--txt); word-break: break-all; }
/* v0.4.15 历史观看 / 当前在线 */
.work-online-dot {
	display: inline-block; width: 7px; height: 7px; border-radius: 50%;
	background: #39b54a; margin-right: 5px; vertical-align: 1px;
	box-shadow: 0 0 0 2px rgba(57, 181, 74, .18);
	animation: workOnlinePulse 2s ease-in-out infinite;
}
@keyframes workOnlinePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.work-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px; border-radius: 999px;
	font-size: 14px; text-decoration: none; cursor: pointer;
	border: 1px solid transparent; transition: filter .15s ease, background .15s ease;
}
.btn-primary { background: var(--pill-bg); color: var(--pill-fg); }
.btn-ghost { background: var(--card); color: var(--txt); border-color: var(--line); }
.btn:hover { filter: brightness(1.05); }
.work-related { margin-top: 30px; }
.work-related h2 {
	font-size: 18px; color: var(--txt); margin: 0 0 12px;
	display: flex; align-items: center; gap: 8px;
}
.work-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}
.work-card {
	display: block;
	background: var(--card);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--line);
	transition: transform .15s ease, box-shadow .15s ease;
}
.work-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
}
.work-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.work-card__label {
	padding: 8px 10px;
	font-size: 13px; color: var(--txt);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-notfound { text-align: center; padding: 60px 0; color: var(--dim); }
.work-notfound__icon { font-size: 40px; margin-bottom: 10px; }
.work-notfound p { font-size: 15px; }
.work-notfound .btn { margin-top: 14px; }

/* 移动端 */
html.mobile .work-page { padding: 76px 14px 40px; }
html.mobile .work-hero { grid-template-columns: 1fr; }
html.mobile .work-side { position: static; top: auto; }
html.mobile .work-title { font-size: 18px; }

/* ============================================================
   v0.4.8 自定义播放器（vp）
   ============================================================ */
.vp {
	position: relative;
	background: #000;
	line-height: 0;
}
/* v0.4.11：让 [hidden] 真正生效。此前 .vp-spinner 的 display:flex 优先级高于
   浏览器默认的 [hidden]{display:none}，导致加载动画永远挂在画面上。 */
.vp [hidden] { display: none !important; }
/* 视频 + 加载层 + 中央播放钮的容器（控制栏在外层，不会被遮罩压暗） */
.vp-stage {
	position: relative;
	background: #000;
	line-height: 0;
}
.vp video {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	background: #000;
	display: block;
	cursor: pointer;
}
.vp-spinner {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 28px;
	pointer-events: none;
	background: rgba(0, 0, 0, .18);
}
/* v0.4.11：暂停时才出现的小尺寸中央播放钮（不遮挡画面，点击即播放） */
.vp-bigplay {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 3;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background .15s ease, transform .15s ease;
}
.vp-bigplay:hover { background: rgba(255, 90, 60, .9); transform: translate(-50%, -50%) scale(1.06); }
.vp-speed {
	display: inline-block;
	margin-left: 8px;
	font-size: 12px;
	color: #ffd7c9;
	font-variant-numeric: tabular-nums;
}
.vp-controls {
	position: relative;
	z-index: 4;
	background: linear-gradient(180deg, rgba(0, 0, 0, .0), rgba(0, 0, 0, .72));
	padding: 0 12px 10px;
	line-height: 1.4;
}
.vp-progress {
	position: relative;
	height: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	touch-action: none;
}
.vp-progress::before {
	content: "";
	position: absolute;
	left: 0; right: 0;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .28);
	transition: height .15s ease;
}
.vp-progress:hover::before { height: 6px; }
.vp-buffered {
	position: absolute;
	left: 0;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .5);
	width: 0;
	pointer-events: none;
	transition: height .15s ease;
}
.vp-progress:hover .vp-buffered { height: 6px; }
.vp-played {
	position: absolute;
	left: 0;
	height: 4px;
	border-radius: 2px;
	background: #ff5a3c;
	width: 0;
	pointer-events: none;
	transition: height .15s ease;
}
.vp-progress:hover .vp-played { height: 6px; }
.vp-knob {
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.vp-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 6px;
	flex-wrap: wrap;
}
.vp-btn {
	border: 0;
	background: transparent;
	color: #fff;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 15px;
	flex-shrink: 0;
}
.vp-btn:hover { background: rgba(255, 255, 255, .16); }
.vp-vol {
	width: 84px;
	accent-color: #ff5a3c;
	cursor: pointer;
}
.vp-time {
	color: #f1f1f1;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	min-width: 100px;
}
.vp-spacer { flex: 1 1 auto; }
.vp-select {
	border: 1px solid rgba(255, 255, 255, .3);
	background: rgba(0, 0, 0, .45);
	color: #fff;
	border-radius: 6px;
	padding: 3px 6px;
	font-size: 12px;
	cursor: pointer;
}
.vp-select option { background: #1a1a1a; color: #fff; }
html.mobile .vp-controls { padding: 0 8px 8px; }
html.mobile .vp-time { min-width: 84px; font-size: 11px; }
html.mobile .vp-vol { width: 60px; }
html.mobile .vp-row { gap: 4px; }
html.mobile .vp-btn { width: 30px; height: 30px; font-size: 14px; }
html.mobile .vp-progress { height: 20px; }
html.mobile .vp-bigplay { width: 48px; height: 48px; font-size: 17px; }

/* ============================================================
   v0.4.7 作品详情页：评论 + 点赞/分享
   ============================================================ */
/* 点赞/分享按钮 */
#workLikeBtn.liked { background: var(--pill-bg); color: var(--pill-fg); border-color: transparent; }
#workLikeBtn.liked i { font-style: normal; }

/* 评论区 */
.work-comments { margin-top: 30px; }
.work-comments h2 {
	font-size: 18px; color: var(--txt); margin: 0 0 12px;
	display: flex; align-items: center; gap: 8px;
}
.work-comment-count { font-size: 14px; color: var(--txt-meta); font-weight: 400; }
.work-comment-form {
	display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
	padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.work-comment-form input {
	border: 1px solid var(--line); background: var(--bg-soft); color: var(--txt);
	border-radius: 8px; padding: 8px 10px; font-size: 13px; outline: none;
}
.work-comment-form input:focus { border-color: var(--acc); }
.work-comment-form #workCommentName { width: 120px; flex: 0 0 auto; }
.work-comment-form #workCommentContent { flex: 1 1 200px; min-width: 160px; }
.work-comment-list { display: flex; flex-direction: column; gap: 12px; }
.work-comment {
	display: flex; gap: 10px; padding: 10px; background: var(--card);
	border: 1px solid var(--line); border-radius: 10px;
}
.work-comment__avatar {
	width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 700; font-size: 15px;
}
.work-comment__body { flex: 1; min-width: 0; }
.work-comment__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.work-comment__name { font-weight: 600; font-size: 14px; color: var(--txt); }
.work-comment__time { font-size: 12px; color: var(--txt-meta); }
.work-comment__text { font-size: 14px; color: var(--txt); line-height: 1.6; word-break: break-word; }
.work-comment-empty { font-size: 14px; color: var(--txt-meta); padding: 10px 0; }

/* ============================================================
   v0.4.13 个人信息（指纹绑定：昵称 / 头像）
   ============================================================ */
.work-userbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.work-user {
	display: flex; align-items: center; gap: 8px;
	border: 1px solid var(--line); background: var(--card); color: var(--txt);
	border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer;
	font-size: 13px; transition: border-color .15s ease, background .15s ease;
}
.work-user:hover { border-color: var(--acc); }
.work-user__avatar {
	width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	background: var(--pill-bg); color: var(--pill-fg);
	font-size: 16px; font-weight: 700; line-height: 1;
}
.work-user__avatar img,
.work-comment__avatar img,
.pf-avatar-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-comment__avatar { overflow: hidden; font-size: 18px; }

/* v0.4.18 全局右上角工具组：账号按钮在深浅模式左侧（所有前台页面） */
.global-tools {
	position: fixed; top: 12px; right: 20px; z-index: 10000;
	display: flex; align-items: center; gap: 10px;
}
.global-tools .dark-toggle {
	position: static; top: auto; right: auto; bottom: auto; margin: 0;
}
.global-tools .work-user { box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.global-account--solo { position: fixed; top: 12px; right: 20px; z-index: 10000; }
html.mobile .global-tools { top: auto; bottom: 55px; right: 10px; gap: 6px; }
html.mobile .global-tools .dark-toggle {
	top: auto; bottom: auto; right: auto; padding: 6px 10px; font-size: 12px;
}
html.mobile .global-tools .work-user { padding: 4px 8px 4px 4px; }
html.mobile .global-tools .work-user__name,
html.mobile .global-tools .work-user__pen { display: none; }
html.mobile .global-account--solo { top: auto; bottom: 55px; right: 10px; }

/* 个人信息弹窗 */
.pf-mask {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(0, 0, 0, .5);
}
.pf-mask[hidden] { display: none !important; }
.pf-card {
	width: 100%; max-width: 440px; max-height: 90vh; overflow: auto;
	background: var(--card); color: var(--txt); border-radius: 14px;
	padding: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}
.pf-head { display: flex; align-items: center; justify-content: space-between; }
.pf-head h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.pf-close { border: 0; background: transparent; color: var(--txt-meta); font-size: 18px; cursor: pointer; padding: 4px; }
.pf-hint { font-size: 12px; color: var(--txt-meta); line-height: 1.6; margin: 8px 0 14px; }
.pf-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.pf-avatar-big {
	width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	font-size: 38px; background: var(--bg-soft); border: 1px solid var(--line);
}
.pf-avatar-side { flex: 1; min-width: 0; }
.pf-label { font-size: 12px; color: var(--txt-meta); margin-bottom: 6px; display: block; }
.pf-avatars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.pf-avatar {
	border: 1px solid var(--line); background: var(--bg-soft); border-radius: 10px;
	font-size: 18px; line-height: 1; padding: 6px 0; cursor: pointer;
}
.pf-avatar.on { border-color: var(--acc); background: var(--pill-bg); color: var(--pill-fg); }
.pf-upload {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
	font-size: 12px; color: var(--acc); cursor: pointer;
}
.pf-input {
	width: 100%; box-sizing: border-box; margin-top: 4px;
	border: 1px solid var(--line); background: var(--bg-soft); color: var(--txt);
	border-radius: 8px; padding: 9px 10px; font-size: 14px; outline: none;
}
.pf-input:focus { border-color: var(--acc); }
.pf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pf-fp { font-size: 11px; color: var(--txt-meta); font-variant-numeric: tabular-nums; }
.pf-actions { display: flex; gap: 8px; margin-left: auto; }
html.mobile .work-userbar { margin-bottom: 8px; }
html.mobile .work-user__name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.mobile .pf-card { padding: 14px; }
html.mobile .pf-avatars { gap: 4px; }
html.mobile .pf-avatar { font-size: 16px; padding: 5px 0; }

/* Toast */
.work-toast {
	position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
	padding: 10px 20px; background: rgba(0,0,0,.78); color: #fff;
	border-radius: 999px; font-size: 14px; z-index: 100000;
	box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
html.mobile .work-comment-form { flex-direction: column; }
html.mobile .work-comment-form input { width: 100% !important; flex: 1 1 auto !important; }
