/**
 * ============================================================
 * single-photo-album.css — 写真集详情页专属样式（aimoeart / dragon 风格）
 * ------------------------------------------------------------
 * 浅灰点阵底 + 830 白色内容卡 + 320 右栏；分类彩条标题行、作者公告条、
 * 导语框、虚线权限遮罩、横幅上下篇、四列横版相关推荐。
 * 类名前缀统一 .pcgh-ph-，作用域仅限本文档，不影响主题其它页面；
 * 浅色为默认外观；html[data-pcgh-theme-resolved="dark"] 时整页切换为
 * 主题暗色变量（见文件末尾「暗色主题适配」），站点头/尾/正文随主题变色。
 * ============================================================
 */

/* ===================== 页面底色与容器 ===================== */
.pcgh-ph-single {
	--ph-blue: #4285f4;
	--ph-blue-2: #428bca;
	--ph-green: #00a67c;
	--ph-text: #333;
	--ph-text-2: #666;
	--ph-text-3: #999;
	--ph-line: #eaeaea;
	--ph-bg: #f0f0f2;
	padding: 12px 0 40px;
	color: var(--ph-text);
	font-family: "Microsoft YaHei", "微软雅黑", Arial, "PingFang SC", "Hiragino Sans GB", sans-serif;
	font-size: 14px;
	background-color: var(--ph-bg);
	/* 纯 CSS 点阵纹理（不引用外部图片），模拟参考站固定背景 */
	background-image:
		radial-gradient(circle at 1px 1px, rgba(0, 0, 0, .05) 1px, transparent 0),
		linear-gradient(180deg, rgba(66, 133, 244, .035), rgba(0, 166, 124, .02) 60%, transparent);
	background-size: 22px 22px, 100% 100%;
	background-attachment: fixed;
}

.pcgh-ph-container {
	/* 写真页专属加宽（其他页面容器仍为主题默认 1200px） */
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 10px;
}

/* 左内容列 + 右 320 侧栏；未配置侧栏时左列居中（随容器加宽至 1000px） */
.pcgh-ph-cols {
	display: grid;
	grid-template-columns: minmax(0, 1000px);
	justify-content: center;
	gap: 0;
	align-items: start;
}

.pcgh-ph-cols.has-side {
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
}

.pcgh-ph-left { min-width: 0; }

/* ===================== 面包屑 ===================== */
.pcgh-ph-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
	font-size: 12px;
	color: var(--ph-text-3);
}

.pcgh-ph-breadcrumb a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--ph-text-2);
	text-decoration: none;
}

.pcgh-ph-breadcrumb a svg { width: 13px; height: 13px; }
.pcgh-ph-breadcrumb a:hover { color: var(--ph-blue); }
.pcgh-ph-breadcrumb .sep { color: #ccc; }

.pcgh-ph-breadcrumb em {
	font-style: normal;
	color: var(--ph-text-3);
	max-width: 60%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ===================== 白色卡片 ===================== */
.pcgh-ph-card {
	background: #fff;
	border: 1px solid var(--ph-line);
	border-radius: 3px;
	margin-bottom: 10px;
}

.pcgh-ph-article { padding: 12px 20px 18px; }

/* ===================== 标题行 ===================== */
.pcgh-ph-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.pcgh-ph-cat {
	display: inline-flex;
	align-items: center;
	height: 20px;
	font-size: 12px;
	color: inherit;
	text-decoration: none;
}

.pcgh-ph-cat:hover { color: var(--ph-blue); }

.pcgh-ph-cat__bar {
	display: inline-block;
	width: 4px;
	height: 10px;
	margin-right: 5px;
	border-radius: 1px;
}

.pcgh-ph-title {
	margin: 10px 0;
	font-size: 22px;
	line-height: 1.45;
	font-weight: 600;
	color: #111;
	word-break: break-word;
}

.pcgh-ph-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 6px;
	margin-bottom: 12px;
	font-size: 12px;
	color: #444;
}

.pcgh-ph-meta__item {
	display: inline-flex;
	align-items: center;
	margin-right: 14px;
	white-space: nowrap;
}

.pcgh-ph-meta__item svg { width: 13px; height: 13px; margin-right: 4px; }
.pcgh-ph-meta__item em { font-style: normal; }
.pcgh-ph-meta__item a { color: inherit; text-decoration: none; }
.pcgh-ph-meta__item a:hover { color: var(--ph-blue); }

.pcgh-ph-meta__item.is-like button {
	display: inline-flex;
	align-items: center;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: #F98181;
	cursor: pointer;
}

.pcgh-ph-meta__item.is-like button svg {
	width: 13px;
	height: 13px;
	fill: #F98181;
	margin-right: 3px;
}

/* ===================== 作者公告条 ===================== */
.pcgh-ph-author {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 -20px;
	padding: 10px 20px;
	background: #f7f8fa;
}

.pcgh-ph-author__left {
	display: flex;
	align-items: center;
	min-width: 0;
}

.pcgh-ph-author__avatar {
	position: relative;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	margin-right: 10px;
	border-radius: 2px;
	overflow: hidden;
	line-height: 0;
	background: linear-gradient(135deg, #7697c7, #428bca);
}

/* 头像图片不可用时，兜底显示用户名首字 */
.pcgh-ph-author__avatar::after {
	content: attr(data-initial);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
}

.pcgh-ph-author__avatar img {
	position: relative;
	z-index: 1;
	width: 36px;
	height: 36px;
	border-radius: 2px;
}

.pcgh-ph-author__main { min-width: 0; }

.pcgh-ph-author__name {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.pcgh-ph-author__desc {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	color: var(--ph-text-3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 460px;
}

.pcgh-ph-author__right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

/* 作者条小按钮（关注/私信风格） */
.pcgh-ph-mini-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 28px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 2px;
	background: #fff;
	color: #666;
	font-size: 12px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.pcgh-ph-mini-btn svg { width: 13px; height: 13px; }
.pcgh-ph-mini-btn:hover { border-color: var(--ph-blue); color: var(--ph-blue); }

.pcgh-ph-mini-btn.is-primary {
	background: var(--ph-blue);
	border-color: var(--ph-blue);
	color: #fff;
}

.pcgh-ph-mini-btn.is-primary:hover { background: #2f6fe0; border-color: #2f6fe0; color: #fff; }

.pcgh-ph-mini-btn.is-favbtn.is-fav {
	border-color: #F98181;
	color: #F98181;
	background: #fff1f1;
}

.pcgh-ph-mini-btn.is-favbtn.is-fav svg { fill: #F98181; }

/* 用户组胶囊（lv0 游客 / lv1 会员 / lv2 年费 / lv3 永久） */
.pcgh-ph-lv {
	display: inline-block;
	padding: 1px 6px;
	border: 1px solid #90949c;
	border-radius: 4px;
	font-size: 10px;
	line-height: 1.5;
	font-style: normal;
	font-weight: 400;
	color: #90949c;
	white-space: nowrap;
}

.pcgh-ph-lv--lv0 { color: #c2c2c2; border-color: #c2c2c2; }
.pcgh-ph-lv--lv1 { color: #01a016; border-color: #01d81d; }
.pcgh-ph-lv--lv2 { color: #0035ff; border-color: #0035ff; }
.pcgh-ph-lv--lv3 { color: #fd3d00; border-color: #fd3d00; }

/* ===================== 提示条幅（与区块标题同款：铺满细窄横条；颜色由 --pcgh-phb-rgb 驱动） ===================== */
.pcgh-ph-banner {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 16px -20px 6px;
	padding: 7px 16px;
	border-left: 5px solid rgb(var(--pcgh-phb-rgb, 232, 145, 45));
	background: rgba(var(--pcgh-phb-rgb, 232, 145, 45), .1);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: rgb(var(--pcgh-phb-rgb, 232, 145, 45));
}

.pcgh-ph-banner svg { width: 17px; height: 17px; flex-shrink: 0; }

@media (max-width: 860px) {
	.pcgh-ph-banner { margin-left: -14px; margin-right: -14px; padding: 7px 12px; }
}

/* ===================== 区块标题（蓝竖条） ===================== */
/* 区块标题（写真预览/下载地址）：与正文四级标题同款——
   前置主题色圆角竖条 + 文字右下重叠重影 */
.pcgh-ph-h2 {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 22px 0 16px;
	padding: 4px 0 4px 15px;
	border: 0;
	background: transparent;
	font-size: 16px;
	font-weight: 700;
	color: var(--ph-text);
	line-height: 1.4;
	text-shadow: 2px 3px 0 rgba(66, 139, 202, .28);
}

.pcgh-ph-h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 1.15em;
	border-radius: 3px;
	background: var(--ph-blue);
}

.pcgh-ph-h2 svg { width: 17px; height: 17px; color: var(--ph-blue); flex-shrink: 0; }
.pcgh-ph-h2 small { font-size: 12px; font-weight: 400; color: var(--ph-text-3); text-shadow: none; }

/* 画廊标题紧贴首屏，不需要过大顶距 */
.pcgh-ph-gallery .pcgh-ph-h2 { margin-top: 16px; }

/* ===================== 写真画廊 ===================== */
.pcgh-ph-gallery__viewer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.pcgh-ph-gallery__stage {
	position: relative;
	display: block;
	width: auto;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	border: 1px solid #eee;
	border-radius: 3px;
	overflow: hidden;
	background: #f7f7f7;
	cursor: pointer;
}

.pcgh-ph-gallery__main {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 74vh;
}

.pcgh-ph-gallery__count {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 11px;
	border-radius: 2px;
	background: rgba(0, 0, 0, .62);
	color: #fff;
	font-size: 12px;
	line-height: 1.6;
	pointer-events: none;
}

.pcgh-ph-gallery__thumb { cursor: pointer; }

/* 缩略图条（无箭头版，可触摸板/触屏横向滑动，滚轮用户可用 Shift+滚轮） */
.pcgh-ph-gallery__thumbs-wrap {
	align-self: stretch;
	display: flex;
	align-items: center;
}

.pcgh-ph-gallery__thumbs {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: thin;
}

.pcgh-ph-gallery__thumb {
	flex: 0 0 auto;
	width: 100px;
	height: 66px;
	padding: 0;
	border-radius: 2px;
	overflow: hidden;
	border: 2px solid transparent;
	background: #f2f2f2;
	cursor: pointer;
	opacity: .7;
	transition: opacity .2s ease, border-color .2s ease;
}

.pcgh-ph-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcgh-ph-gallery__thumb:hover { opacity: 1; }
.pcgh-ph-gallery__thumb.is-active { border-color: var(--ph-blue); opacity: 1; }

/* ===================== 正文 ===================== */
.pcgh-ph-text {
	font-size: 14px;
	line-height: 1.9;
	color: #444;
	word-break: break-word;
}

.pcgh-ph-text p { margin: 0 0 12px; }

.pcgh-ph-text a { color: var(--ph-blue-2); }
.pcgh-ph-text a:hover { color: var(--ph-blue); }

.pcgh-ph-text h2 {
	margin: 22px -20px 16px;
	padding: 6px 16px;
	border-left: 5px solid var(--ph-blue-2);
	background: #fafafa;
	font-size: 16px;
	line-height: 1.5;
}

.pcgh-ph-text h3 { font-size: 15px; margin: 18px 0 10px; }

/* 四级标题（参考 ranAdmin「重叠文字 + 前置竖条」）：
   左侧主题色圆角竖条；文字带向右下偏移的半透明实心重影（text-shadow 零模糊） */
.pcgh-ph-text h4 {
	position: relative;
	display: inline-block;
	margin: 20px 0 12px;
	padding: 4px 0 4px 15px;
	border: 0;
	background: transparent;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ph-text);
	text-shadow: 2px 3px 0 rgba(66, 139, 202, .28);
}

/* 前置圆角竖条：高度用 em 跟随字号，垂直居中 */
.pcgh-ph-text h4::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 1.15em;
	border-radius: 3px;
	background: var(--ph-blue);
}

.pcgh-ph-text img {
	max-width: 100%;
	height: auto;
	border-radius: 2px;
	cursor: zoom-in;
	transition: opacity .18s ease;
}

.pcgh-ph-text img:hover { opacity: .88; }

.pcgh-ph-text blockquote {
	position: relative;
	margin: 18px 0;
	padding: 26px 32px;
	border: 0;
	border-left: 0;
	border-radius: 10px;
	background: #f5f6f8;
	color: #5f6b76;
	font-size: 15px;
	line-height: 2;
}

/* 右上角引号水印装饰（lucide quote 图标，颜色随正文，明暗自适应） */
.pcgh-ph-text blockquote::before {
	content: "";
	position: absolute;
	top: 18px;
	right: 22px;
	width: 40px;
	height: 40px;
	background: currentColor;
	opacity: .14;
	pointer-events: none;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1.387.05-1.97.047C.63 17.044 1 18 1 19c0 1 1 2 2 2z"/><path d="M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z"/></svg>') no-repeat center / contain;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1.387.05-1.97.047C.63 17.044 1 18 1 19c0 1 1 2 2 2z"/><path d="M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z"/></svg>') no-repeat center / contain;
}

.pcgh-ph-text blockquote p { margin: 0; position: relative; z-index: 1; }
.pcgh-ph-text blockquote p + p { margin-top: 10px; }

.pcgh-ph-text ul,
.pcgh-ph-text ol { padding-left: 22px; margin: 10px 0; }

/* ===================== 下载面板（已解锁） ===================== */
.pcgh-ph-dl__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px;
	border: 1px solid #ececec;
	border-radius: 3px;
	background: #fcfcfd;
}

.pcgh-ph-dl__info { min-width: 0; }

.pcgh-ph-dl__info strong {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: #333;
	line-height: 1.5;
}

.pcgh-ph-dl__tips {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 4px;
	font-size: 12px;
	color: var(--ph-text-3);
}

.pcgh-ph-dl__tips li::before { content: '· '; color: var(--ph-blue); font-weight: 700; }
.pcgh-ph-dl__tips a { color: var(--ph-blue-2); text-decoration: none; }
.pcgh-ph-dl__tips a:hover { text-decoration: underline; }

.pcgh-ph-dl__action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.pcgh-ph-dl__safe {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: var(--ph-text-3);
}

.pcgh-ph-dl__safe svg { width: 12px; height: 12px; color: var(--ph-green); }

/* 通用按钮（蓝底 / 灰底） */
.pcgh-ph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 22px;
	border: 1px solid var(--ph-blue);
	border-radius: 2px;
	background: var(--ph-blue);
	color: #fff;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.pcgh-ph-btn svg { width: 15px; height: 15px; }
.pcgh-ph-btn:hover { background: #2f6fe0; border-color: #2f6fe0; color: #fff; }

.pcgh-ph-btn.is-empty {
	background: #f2f2f2;
	border-color: #f2f2f2;
	color: #757575;
}

.pcgh-ph-btn.is-empty:hover { background: #e9e9e9; border-color: #e9e9e9; color: #555; }

.pcgh-ph-btn:disabled,
.pcgh-ph-btn.is-disabled { cursor: not-allowed; opacity: .7; }

/* ===================== 虚线权限遮罩 ===================== */
.pcgh-ph-hide {
	position: relative;
	margin: 22px 0;
	padding: 52px 20px 38px;
	border: 1px dashed #ccc;
	border-radius: 2px;
	background: #fafafa;
	text-align: center;
}

.pcgh-ph-hide__lock {
	position: absolute;
	top: 10px;
	right: 15px;
	width: 28px;
	height: 28px;
	color: #ccc;
	pointer-events: none;
}

.pcgh-ph-hide__lock svg { width: 28px; height: 28px; }

.pcgh-ph-hide__usergroup {
	position: absolute;
	top: 12px;
	left: 20px;
	font-size: 12px;
	color: #90949c;
}

.pcgh-ph-hide__title { margin: 0 0 14px; font-size: 15px; color: #555; }

.pcgh-ph-hide__lvs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.pcgh-ph-hide__lvs .pcgh-ph-lv { font-size: 13px; padding: 2px 10px; }

.pcgh-ph-hide__tip { margin: 0 0 16px; font-size: 12px; color: var(--ph-text-3); }

.pcgh-ph-hide__btns {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* ===================== 标签 ===================== */
.pcgh-ph-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 20px 0 4px;
}

.pcgh-ph-tag {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 2px;
	background: #9f9f9f;
	color: #fff;
	font-size: 12px;
	text-decoration: none;
	transition: background .25s ease;
}

.pcgh-ph-tag:hover { background: var(--ph-green); color: #fff; }

/* ===================== 上一篇 / 下一篇 横幅 ===================== */
.pcgh-ph-pn {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 22px 0 4px;
}

.pcgh-ph-pn__item {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 118px;
	padding: 14px 16px;
	background: #d8dde3 center / cover no-repeat;
	border-radius: 3px;
	overflow: hidden;
}

.pcgh-ph-pn__item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .72));
	transition: background .25s ease;
}

.pcgh-ph-pn__item:hover::before {
	background: linear-gradient(180deg, rgba(66, 133, 244, .25), rgba(0, 0, 0, .78));
}

.pcgh-ph-pn__info {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	color: #fff;
}

.pcgh-ph-pn__item.is-next .pcgh-ph-pn__info { text-align: right; align-items: flex-end; }

.pcgh-ph-pn__info small {
	font-size: 12px;
	opacity: .85;
	margin-bottom: 6px;
}

.pcgh-ph-pn__info strong {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	max-height: 40px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.pcgh-ph-pn__info em {
	font-style: normal;
	margin-top: 6px;
	font-size: 12px;
	opacity: .85;
}

/* ===================== multi-border-hl 标题（相关/评论） ===================== */
.pcgh-ph-hl {
	margin: 0;
	padding: 14px 20px 0;
	font-size: 18px;
	font-weight: 500;
	color: #555;
	line-height: 1.4;
}

.pcgh-ph-hl span {
	display: inline-block;
	padding: 0 2px 8px;
	border-bottom: 2px solid #333;
}

/* ===================== 相关写真（4 列横版卡） ===================== */
.pcgh-ph-rel__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 12px 20px 18px;
}

.pcgh-ph-rel__item a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.pcgh-ph-rel__pic {
	position: relative;
	display: block;
	aspect-ratio: 375 / 250;
	border-radius: 2px;
	overflow: hidden;
	background: #f2f2f2;
}

.pcgh-ph-rel__pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.pcgh-ph-rel__item:hover .pcgh-ph-rel__pic img { transform: scale(1.05); }

/* hover 黑色遮罩 + 相机图标 */
.pcgh-ph-rel__mask {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .28);
	color: #fff;
	opacity: 0;
	transition: opacity .4s ease;
}

.pcgh-ph-rel__mask svg { width: 26px; height: 26px; }
.pcgh-ph-rel__item:hover .pcgh-ph-rel__mask { opacity: 1; }

.pcgh-ph-rel__count {
	position: absolute;
	right: 6px;
	bottom: 6px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 7px;
	border-radius: 2px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: 11px;
	font-style: normal;
}

.pcgh-ph-rel__count svg { width: 11px; height: 11px; }

.pcgh-ph-rel__txt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	height: 40px;
	margin-top: 8px;
	font-size: 13px;
	line-height: 20px;
	color: #333;
	overflow: hidden;
	transition: color .2s ease;
}

.pcgh-ph-rel__item:hover .pcgh-ph-rel__txt { color: var(--ph-blue); }

/* ===================== 评论区 ===================== */
/* 评论组件取自主题深色体系，这里在白卡内局部重映射其 CSS 变量，整体翻为浅色，
   无需改动 comments.php 与主题样式 */
.pcgh-ph-comments {
	--pcgh-surface: #f7f8fa;
	--pcgh-surface-2: #eef1f4;
	--pcgh-border: #e8ebef;
	--pcgh-text: #333;
	--pcgh-text-2: #666;
	--pcgh-text-3: #999;
	padding-bottom: 18px;
}

.pcgh-ph-comments > .pcgh-comments { padding: 0 20px; }

.pcgh-ph-comments .pcgh-comments__summary {
	background: #f6f8fa;
	border: 1px solid #e8ebef;
	border-radius: 3px;
}

.pcgh-ph-comments .pcgh-comments__score small { color: #999; }
.pcgh-ph-comments .pcgh-comments__score-meta span { color: #999; }

.pcgh-ph-comments .pcgh-cmt__inner { border-radius: 3px; }

.pcgh-ph-comments .pcgh-cmt:hover .pcgh-cmt__inner { border-color: rgba(66, 133, 244, .45); }

.pcgh-ph-comments .pcgh-cmt--admin .pcgh-cmt__inner {
	background: linear-gradient(135deg, rgba(66, 133, 244, .05) 0%, #f7f8fa 100%);
	border-color: rgba(66, 133, 244, .3);
}

.pcgh-ph-comments .pcgh-cmt--admin .pcgh-cmt__tag--admin {
	background: rgba(66, 133, 244, .12);
	color: var(--ph-blue);
}

.pcgh-ph-comments .pcgh-cmt__avatar img { border-color: #e8ebef; }

.pcgh-ph-comments .pcgh-cmt__time,
.pcgh-ph-comments .pcgh-cmt__time a { color: #999; }

.pcgh-ph-comments .pcgh-cmt__content { color: #444; }
.pcgh-ph-comments .pcgh-cmt__content a { color: var(--ph-blue-2); }

.pcgh-ph-comments .pcgh-cmt__reply a,
.pcgh-ph-comments .pcgh-cmt__edit a {
	color: var(--ph-blue);
	background: transparent;
	border: 0;
}

.pcgh-ph-comments .pcgh-comments__empty {
	background: #f7f7f7;
	color: #777;
	border-radius: 3px;
}

.pcgh-ph-comments .pcgh-comments__empty a { color: var(--ph-blue); }

.pcgh-ph-comments .comment-reply-title { color: #333; }
.pcgh-ph-comments .comment-notes,
.pcgh-ph-comments .logged-in-as { color: #999; }

/* 评论输入框：主题若未吃变量，这里兜底为浅色 */
.pcgh-ph-comments input[type="text"],
.pcgh-ph-comments input[type="email"],
.pcgh-ph-comments input[type="url"],
.pcgh-ph-comments textarea,
.pcgh-ph-comments .pcgh-cmt-form__textarea {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 2px;
	color: #333;
}

.pcgh-ph-comments input[type="text"]:focus,
.pcgh-ph-comments input[type="email"]:focus,
.pcgh-ph-comments input[type="url"]:focus,
.pcgh-ph-comments textarea:focus,
.pcgh-ph-comments .pcgh-cmt-form__textarea:focus { border-color: var(--ph-blue); outline: none; }

.pcgh-ph-comments #submit,
.pcgh-ph-comments button[type="submit"],
.pcgh-ph-comments .pcgh-cmt-form__submit {
	background: var(--ph-blue);
	color: #fff;
	border: 1px solid var(--ph-blue);
	border-radius: 2px;
}

/* ===================== 侧栏 ===================== */
.pcgh-ph-side {
	position: sticky;
	top: calc(var(--pcgh-header-h, 72px) + 14px);
	display: grid;
	gap: 10px;
	min-width: 0;
}

.pcgh-ph-side .widget,
.pcgh-ph-side .widget_block {
	background: #fff;
	border: 1px solid var(--ph-line);
	border-radius: 3px;
	padding: 12px 14px;
	margin: 0;
	font-size: 13px;
	color: #555;
}

.pcgh-ph-side .widget-title,
.pcgh-ph-side .widgettitle,
.pcgh-ph-side h3 {
	margin: 0 0 10px;
	font-size: 15px;
	color: #333;
}

.pcgh-ph-side a { color: #60717e; }
.pcgh-ph-side a:hover { color: var(--ph-blue); }

/* ===================== 大图灯箱（全屏，保持深色） ===================== */
.pcgh-ph-lightbox[hidden] { display: none; }

.pcgh-ph-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .22s ease;
}

/* 灯箱打开期间隐藏站点右侧悬浮工具栏，避免视觉重叠/误触 */
body.pcgh-ph-lb-open .pcgh-side-float { visibility: hidden; }

.pcgh-ph-lightbox.is-open { opacity: 1; pointer-events: auto; }

.pcgh-ph-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 11, 15, .92);
	cursor: pointer;
}

.pcgh-ph-lightbox__body {
	position: relative;
	margin: 0;
	max-width: 94vw;
	text-align: center;
}

.pcgh-ph-lightbox__img {
	max-width: 94vw;
	max-height: 84vh;
	border-radius: 4px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
	object-fit: contain;
}

.pcgh-ph-lightbox__caption { margin-top: 12px; font-size: 13px; color: #c8cdd4; }

/* 无按钮灯箱：图片上点击关闭（zoom-out 提示），两侧空白点击翻页 */
.pcgh-ph-lightbox__backdrop { cursor: pointer; }
.pcgh-ph-lightbox__img { cursor: zoom-out; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

.pcgh-ph-lightbox__counter {
	position: absolute;
	right: 30px;
	bottom: 26px;
	padding: 4px 12px;
	border-radius: 2px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: 12px;
}

/* ===================== 响应式 ===================== */
@media (max-width: 1100px) {
	.pcgh-ph-cols.has-side { grid-template-columns: minmax(0, 1000px); justify-content: center; }
	.pcgh-ph-side { position: static; }
}

@media (max-width: 860px) {
	.pcgh-ph-cols,
	.pcgh-ph-cols.has-side { grid-template-columns: minmax(0, 1fr); }

	.pcgh-ph-author { flex-direction: column; align-items: stretch; gap: 10px; }
	.pcgh-ph-author__right { justify-content: flex-end; }
	.pcgh-ph-author__desc { max-width: none; }

	.pcgh-ph-dl__bar { flex-direction: column; align-items: stretch; }
	.pcgh-ph-dl__action { flex-direction: row; justify-content: space-between; }
	.pcgh-ph-dl__action .pcgh-ph-btn { flex: 1; }
}

@media (max-width: 768px) {
	.pcgh-ph-single { padding: 8px 0 28px; }
	.pcgh-ph-article { padding: 10px 14px 14px; }

	.pcgh-ph-author { margin: 0 -14px; padding: 10px 14px; }

	.pcgh-ph-title { font-size: 19px; }

	.pcgh-ph-h2 { margin-left: 0; margin-right: 0; padding-left: 15px; }
	.pcgh-ph-text h2 { margin-left: -14px; margin-right: -14px; padding: 6px 12px; }

	.pcgh-ph-hl { padding: 12px 14px 0; font-size: 16px; }
	.pcgh-ph-rel__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px 14px 16px; }

	.pcgh-ph-pn { grid-template-columns: 1fr; }
	.pcgh-ph-pn__item.is-next .pcgh-ph-pn__info { text-align: left; align-items: flex-start; }

	.pcgh-ph-gallery__thumb { width: 80px; height: 54px; }

	.pcgh-ph-comments > .pcgh-comments { padding-left: 14px; padding-right: 14px; }

	.pcgh-ph-lightbox__counter { right: 14px; bottom: 14px; }
}

@media (max-width: 420px) {
	.pcgh-ph-author__right { flex-wrap: wrap; }
	.pcgh-ph-mini-btn { flex: 1; justify-content: center; }
	.pcgh-ph-meta__item { margin-right: 10px; }
}

/* ===================== 暗色主题适配（跟随站点主题变色） =====================
 * 站点默认暗色（:root 的 --pcgh-* 变量），浅色由
 * html[data-pcgh-theme-resolved="light"] 覆盖；上方规则为浅色设计稿，
 * 这里在暗色作用域内重映射本页局部变量并覆写写死的浅色面/文字。
 * ========================================================================== */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-single {
	--ph-text: var(--pcgh-text);
	--ph-text-2: var(--pcgh-text-2);
	--ph-text-3: var(--pcgh-text-3);
	--ph-line: var(--pcgh-border);
	--ph-bg: var(--pcgh-bg);
	background-color: var(--pcgh-bg);
	/* 点阵纹理换为白色低透明度，暗色下保持质感 */
	background-image:
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 0),
		linear-gradient(180deg, rgba(102, 192, 244, .05), rgba(0, 166, 124, .03) 60%, transparent);
}

html[data-pcgh-theme-resolved="dark"] .pcgh-ph-breadcrumb .sep { color: #4a5b6e; }

/* 卡片 / 侧栏小组件：白底 → 主题 surface */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-card,
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side .widget,
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side .widget_block { background: var(--pcgh-surface); }

/* 标题与正文文字 */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-title { color: #e6edf5; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-meta { color: #7b8794; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-author { background: var(--pcgh-surface-2); }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-author__name { color: #d5e0ec; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-mini-btn {
	border-color: #3a4a5c;
	background: transparent;
	color: #a8b6c4;
}
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-mini-btn.is-favbtn.is-fav { background: rgba(249, 129, 129, .12); }

/* 提示条幅 / 正文 h2（暗色下提高彩色底浓度，保证在深卡上可见） */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-banner { background: rgba(var(--pcgh-phb-rgb, 232, 145, 45), .18); }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-text h2 {
	background: rgba(255, 255, 255, .04);
	color: #d5e0ec;
}

/* 区块标题暗色：浅色文字 + 亮蓝重影与竖条 */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-h2 {
	background: transparent;
	color: #e6edf5;
	text-shadow: 2px 3px 0 rgba(125, 180, 255, .26);
}
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-h2::before { background: #5b96e8; }

/* 画廊：主图底、缩略图占位底 */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-gallery__stage {
	border-color: var(--ph-line);
	background: #141f2c;
}
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-gallery__thumb { background: #1a2938; }

/* 正文 */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-text { color: #b9c7d4; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-text blockquote {
	border: 0;
	background: rgba(255, 255, 255, .05);
	color: #93a3b3;
}

/* 下载面板 / 按钮 */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-dl__bar {
	border-color: var(--ph-line);
	background: rgba(255, 255, 255, .03);
}
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-dl__info strong { color: #d5e0ec; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-btn.is-empty {
	background: #24384c;
	border-color: #24384c;
	color: #a8b6c4;
}
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-btn.is-empty:hover {
	background: #2c435a;
	border-color: #2c435a;
	color: #c7d5e0;
}

/* 权限遮罩 */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-hide {
	border-color: #3a4a5c;
	background: rgba(255, 255, 255, .03);
}
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-hide__lock { color: #4a5b6e; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-hide__title { color: #b9c7d4; }

/* 标签 / 上下篇 / 相关推荐 */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-tag { background: #3f5266; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-pn__item { background-color: #1a2938; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-hl { color: #b9c7d4; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-hl span { border-bottom-color: #d5e0ec; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-rel__pic { background: #1a2938; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-rel__txt { color: #c7d5e0; }

/* 评论区：还原上方局部重映射的浅色变量为主题暗色值 */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments {
	--pcgh-surface: #16202d;
	--pcgh-surface-2: #1f3145;
	--pcgh-border: #2a475e;
	--pcgh-text: #c7d5e0;
	--pcgh-text-2: #8f98a0;
	--pcgh-text-3: #5c6b7a;
}
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments .pcgh-comments__summary {
	background: rgba(255, 255, 255, .04);
	border-color: #2a475e;
}
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments .pcgh-cmt--admin .pcgh-cmt__inner {
	background: linear-gradient(135deg, rgba(102, 192, 244, .08) 0%, rgba(255, 255, 255, .03) 100%);
}
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments .pcgh-cmt__avatar img { border-color: #2a475e; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments .pcgh-cmt__time,
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments .pcgh-cmt__time a { color: #7b8794; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments .pcgh-cmt__content { color: #b9c7d4; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments .pcgh-comments__empty {
	background: rgba(255, 255, 255, .04);
	color: #93a3b3;
}
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments .comment-reply-title { color: #d5e0ec; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments input[type="text"],
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments input[type="email"],
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments input[type="url"],
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments textarea,
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-comments .pcgh-cmt-form__textarea {
	background: #0f1923;
	border-color: #2a475e;
	color: #c7d5e0;
}

/* 侧栏文字 */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side .widget,
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side .widget_block { color: #a8b6c4; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side .widget-title,
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side .widgettitle,
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side h3 { color: #d5e0ec; }
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side a { color: #8fa6ba; }

/* ============================================================
 * 写真内页专属：壁纸背景 + 遮罩 + 毛玻璃卡片（仅本模板 .pcgh-ph-single 作用域）
 * 分层：fixed 底图层 → 遮罩层（保证氛围与可读性）→ 内容卡（半透明 + backdrop blur）
 * ============================================================ */

/* ---- 浅色主题 ---- */
.pcgh-ph-pagebg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.pcgh-ph-pagebg__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transform: scale(1.02); /* 避免边缘模糊露白 */
}

.pcgh-ph-pagebg__mask {
	position: absolute;
	inset: 0;
	background: rgba(245, 246, 248, .35);
	backdrop-filter: blur(7px) saturate(1.15);
	-webkit-backdrop-filter: blur(7px) saturate(1.15);
}

.pcgh-ph-container { position: relative; z-index: 1; }

/* 模板原有点阵底色让位给壁纸层 */
.pcgh-ph-single { background-color: transparent; background-image: none; }

/* 面包屑：半透胶囊，保证压在壁纸上可读 */
.pcgh-ph-breadcrumb {
	display: inline-flex;
	width: fit-content;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .4);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
}

/* 主内容卡 + 侧栏卡：毛玻璃（浅色下降不透明度让壁纸明显透出，加大 blur 保证文字清晰） */
.pcgh-ph-card,
.pcgh-ph-side .widget,
.pcgh-ph-side .widget_block {
	background: rgba(255, 255, 255, .42);
	backdrop-filter: blur(22px) saturate(1.6);
	-webkit-backdrop-filter: blur(22px) saturate(1.6);
}

/* ---- 暗色主题（紧随浅色之后，保证覆盖） ---- */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-pagebg__mask {
	background: rgba(8, 13, 22, .5);
	backdrop-filter: blur(7px) saturate(1.1);
	-webkit-backdrop-filter: blur(7px) saturate(1.1);
}

html[data-pcgh-theme-resolved="dark"] .pcgh-ph-single {
	background-color: transparent;
	background-image: none;
}

html[data-pcgh-theme-resolved="dark"] .pcgh-ph-breadcrumb {
	background: rgba(17, 25, 38, .38);
}

html[data-pcgh-theme-resolved="dark"] .pcgh-ph-card,
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side .widget,
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side .widget_block {
	background: rgba(17, 25, 38, .4);
	backdrop-filter: blur(22px) saturate(1.4);
	-webkit-backdrop-filter: blur(22px) saturate(1.4);
}

/* 不支持 backdrop-filter 的浏览器退回更不透明的实底，保证可读 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.pcgh-ph-card,
	.pcgh-ph-side .widget,
	.pcgh-ph-side .widget_block { background: #fff; }
	.pcgh-ph-breadcrumb { background: rgba(255, 255, 255, .92); }
	html[data-pcgh-theme-resolved="dark"] .pcgh-ph-card,
	html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side .widget,
	html[data-pcgh-theme-resolved="dark"] .pcgh-ph-side .widget_block { background: #111927; }
}

/* ============================================================
 * 壁纸毛玻璃环境下，卡内区块底色减淡（条幅 / 区块标题 / 引用块 / 下载框）
 * 只降底色 alpha，保留竖线、边框、文字，让壁纸轻微透出但不影响阅读
 * ============================================================ */

/* ---- 浅色 ---- */
.pcgh-ph-banner { background: rgba(var(--pcgh-phb-rgb, 232, 145, 45), .12); }

.pcgh-ph-text h2 { background: rgba(15, 23, 42, .07); }

.pcgh-ph-text blockquote { background: rgba(15, 23, 42, .09); }

.pcgh-ph-dl__bar {
	background: rgba(255, 255, 255, .45);
	border-color: rgba(15, 23, 42, .14);
}

/* ---- 暗色 ---- */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-banner { background: rgba(var(--pcgh-phb-rgb, 232, 145, 45), .2); }

html[data-pcgh-theme-resolved="dark"] .pcgh-ph-text h2 { background: rgba(255, 255, 255, .08); }

html[data-pcgh-theme-resolved="dark"] .pcgh-ph-text blockquote { background: rgba(255, 255, 255, .09); }

html[data-pcgh-theme-resolved="dark"] .pcgh-ph-dl__bar {
        background: rgba(255, 255, 255, .08);
        border-color: rgba(255, 255, 255, .12);
}

/* ============================================================
 * 写真页全域毛玻璃适配（body.pcgh-photo-page 作用域，仅写真内页）
 * ① 去掉底部评分（评分汇总条 + 留言表单星级输入）
 * ② 评论区（列表 / 表单 / 输入框 / 快捷回复）半透明融入毛玻璃卡
 * ③ 侧栏小工具内部实底元素半透明化
 * ④ 右侧悬浮工具栏毛玻璃化
 * ============================================================ */

/* ---- ① 去除评分（保留留言列表与表单其他部分） ---- */
body.pcgh-photo-page .pcgh-comments__summary,
body.pcgh-photo-page .pcgh-rating-input { display: none !important; }

/* ---- ② 评论区：把原模板写死的浅色变量改为半透明值（浅色） ---- */
body.pcgh-photo-page .pcgh-ph-comments {
	--pcgh-surface: rgba(255, 255, 255, .3);
	--pcgh-surface-2: rgba(15, 23, 42, .05);
	--pcgh-border: rgba(15, 23, 42, .14);
	--pcgh-bg: rgba(255, 255, 255, .26);
}

body.pcgh-photo-page .pcgh-ph-comments input[type="text"],
body.pcgh-photo-page .pcgh-ph-comments input[type="email"],
body.pcgh-photo-page .pcgh-ph-comments input[type="url"],
body.pcgh-photo-page .pcgh-ph-comments textarea,
body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt-form__textarea,
body.pcgh-photo-page .pcgh-ph-comments .comment-form-comment {
	background: rgba(255, 255, 255, .26);
	border-color: rgba(15, 23, 42, .14);
}

body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt__avatar img {
	border-color: rgba(15, 23, 42, .12);
	background: rgba(15, 23, 42, .06);
}

/* 表单卡 / 空留言框 / 单条评论气泡：显式半透底（不依赖变量继承，压过主题浅色变量覆盖） */
body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt-form,
body.pcgh-photo-page .pcgh-ph-comments .pcgh-comments__empty,
body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt__inner {
	background-color: rgba(255, 255, 255, .3);
	background-image: none;
}

/* 快速回复胶囊 + 表情包按钮（压过 comment-quick-light.css 的 html[light] 实底） */
body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt-form__toolbar .pcgh-cmt-quick-replies__item,
body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt-form__toolbar .pcgh-emoji-pack__toggle {
	background: rgba(15, 23, 42, .06);
	border: 1px solid rgba(15, 23, 42, .15);
	color: var(--pcgh-text);
}

body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt-form__toolbar .pcgh-cmt-quick-replies__item:hover,
body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt-form__toolbar .pcgh-emoji-pack__toggle:hover,
body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt-form__toolbar .pcgh-emoji-pack.is-open .pcgh-emoji-pack__toggle {
	background: rgba(66, 133, 244, .14);
	border-color: rgba(66, 133, 244, .45);
}

/* 表情包弹层：磨砂面板 */
body.pcgh-photo-page .pcgh-emoji-pack__panel {
	background: rgba(255, 255, 255, .82);
	border: 1px solid rgba(15, 23, 42, .1);
	box-shadow: 0 18px 48px rgba(15, 23, 42, .16);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}
body.pcgh-photo-page .pcgh-emoji-pack__picker { background: transparent; }

/* ---- ②-暗色 ---- */
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments {
	--pcgh-surface: rgba(20, 29, 44, .36);
	--pcgh-surface-2: rgba(255, 255, 255, .07);
	--pcgh-border: rgba(255, 255, 255, .14);
	--pcgh-bg: rgba(13, 20, 32, .4);
	--pcgh-text: #e6edf5;
	--pcgh-text-2: #a8b6c4;
	--pcgh-text-3: #8295ab;
}

html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments input[type="text"],
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments input[type="email"],
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments input[type="url"],
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments textarea,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt-form__textarea,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments .comment-form-comment {
	background: rgba(13, 20, 32, .4);
	border-color: rgba(255, 255, 255, .14);
	color: #e6edf5;
}

html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments .comment-reply-title { color: #e6edf5; }

/* 暗色：表单卡 / 空留言框 / 评论气泡显式半透 */
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt-form,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments .pcgh-comments__empty,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt__inner {
	background-color: rgba(20, 29, 44, .36);
	background-image: none;
}

html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt__avatar img {
	border-color: rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .06);
}

html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt-form__toolbar .pcgh-cmt-quick-replies__item,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-comments .pcgh-cmt-form__toolbar .pcgh-emoji-pack__toggle {
	background: rgba(255, 255, 255, .07);
	border-color: rgba(255, 255, 255, .16);
	color: #c6d2e0;
}

html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-emoji-pack__panel {
	background: rgba(17, 25, 38, .9);
	border-color: rgba(255, 255, 255, .1);
}

/* ---- ③ 侧栏小工具内部实底（浅色） ---- */
/* 作者卡：主题单卡规则比通用 widget 规则更强，这里定点覆盖 */
body.pcgh-photo-page .pcgh-ph-side .widget.pcgh-article-author-card {
	background: rgba(255, 255, 255, .42);
	box-shadow: none;
}
body.pcgh-photo-page .pcgh-ph-side .pcgh-article-author-card__home {
	background: rgba(15, 23, 42, .06);
	border-color: rgba(15, 23, 42, .12);
}

/* 下载小工具：内部盒退透明（外层 widget 卡已是毛玻璃） */
body.pcgh-photo-page .pcgh-ph-side .pcgh-dl-widget { background: transparent; }
body.pcgh-photo-page .pcgh-ph-side .pcgh-dl-widget__actions {
	background: rgba(15, 23, 42, .045);
	border-radius: 10px;
}
body.pcgh-photo-page .pcgh-ph-side .pcgh-dl-widget__btn--fav {
	background: rgba(15, 23, 42, .06);
	border: 1px solid rgba(15, 23, 42, .12);
}

/* 热门榜：内部盒退透明，封面占位淡灰 */
body.pcgh-photo-page .pcgh-ph-side .pcgh-hot-rank { background: transparent; }
body.pcgh-photo-page .pcgh-ph-side .pcgh-hot-rank__cover { background-color: rgba(15, 23, 42, .05); }

/* 最新评论小工具：外盒透明、每条评论改半透磨砂 */
body.pcgh-photo-page .pcgh-ph-side .pcgh-recent-comments {
	background: transparent;
	border-color: transparent;
	padding: 0;
}
body.pcgh-photo-page .pcgh-ph-side .pcgh-recent-comment {
	background: rgba(255, 255, 255, .3);
	border-color: rgba(15, 23, 42, .1);
}
body.pcgh-photo-page .pcgh-ph-side .pcgh-recent-comment__avatar { background: rgba(15, 23, 42, .07); }

/* ---- ③-暗色 ---- */
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .widget.pcgh-article-author-card {
	background: rgba(17, 25, 38, .4);
	box-shadow: none;
}
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .pcgh-article-author-card__home {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .12);
}
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .pcgh-dl-widget__actions {
	background: rgba(255, 255, 255, .05);
}
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .pcgh-dl-widget__btn--fav {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .12);
}
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .pcgh-hot-rank__cover { background-color: rgba(255, 255, 255, .06); }
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .pcgh-recent-comment {
	background: rgba(13, 20, 32, .4);
	border-color: rgba(255, 255, 255, .1);
}
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .pcgh-recent-comment__avatar { background: rgba(255, 255, 255, .08); }

/* ---- ④ 右侧悬浮工具栏：毛玻璃（仅写真页） ---- */
body.pcgh-photo-page .pcgh-side-float {
	background: rgba(255, 255, 255, .45);
	border: 1px solid rgba(15, 23, 42, .1);
	backdrop-filter: blur(20px) saturate(1.5);
	-webkit-backdrop-filter: blur(20px) saturate(1.5);
}
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-side-float {
	background: rgba(11, 17, 28, .42);
	border-color: rgba(255, 255, 255, .1);
}

/* ============================================================
 * 终裁层：压过主题浅色专用样式表（single-light.css / comment-quick-light.css
 * 等在本样式表之后加载、把卡片与评论区刷成纯白的规则）。
 * 全部限定 html[主题] body.pcgh-photo-page 作用域，仅写真内页生效。
 * ============================================================ */

/* ---- 浅色：评论区 ---- */
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-comments,
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-cmt-form {
	background: rgba(255, 255, 255, .3) !important;
	background-image: none !important;
}
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-comments__empty,
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-cmt__inner {
	background: rgba(255, 255, 255, .3) !important;
	background-image: none !important;
}
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .comment-form-comment,
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-cmt-form__textarea {
	background: rgba(255, 255, 255, .26) !important;
}
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-cmt-quick-replies__item,
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-emoji-pack__toggle {
	background: rgba(15, 23, 42, .06) !important;
}

/* ---- 浅色：隐藏内容（会员可见）框 ---- */
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-ph-hide {
	background: rgba(255, 255, 255, .32) !important;
	border-color: rgba(15, 23, 42, .16) !important;
}

/* ---- 浅色：侧栏全部小工具卡（single-light 会统一刷白，这里统一还原玻璃） ---- */
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-ph-side .pcgh-side-card,
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-ph-side .widget {
	background: rgba(255, 255, 255, .42) !important;
	background-image: none !important;
}
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-ph-side .pcgh-dl-widget,
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-ph-side .pcgh-hot-rank,
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-ph-side .pcgh-recent-comments {
	background: transparent !important;
}
html[data-pcgh-theme-resolved="light"] body.pcgh-photo-page .pcgh-ph-side .pcgh-recent-comment {
	background: rgba(255, 255, 255, .3) !important;
}

/* ---- 暗色：同一批元素终裁（防其他暗色样式表反刷实底） ---- */
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-comments,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-cmt-form,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-comments__empty,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-cmt__inner {
	background: rgba(20, 29, 44, .36) !important;
	background-image: none !important;
}
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .comment-form-comment,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-cmt-form__textarea {
	background: rgba(13, 20, 32, .4) !important;
}
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-hide {
	background: rgba(255, 255, 255, .04) !important;
	border-color: rgba(255, 255, 255, .14) !important;
}
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .pcgh-side-card,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .widget {
	background: rgba(17, 25, 38, .4) !important;
	background-image: none !important;
}
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .pcgh-dl-widget,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .pcgh-hot-rank,
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .pcgh-recent-comments {
	background: transparent !important;
}
html[data-pcgh-theme-resolved="dark"] body.pcgh-photo-page .pcgh-ph-side .pcgh-recent-comment {
	background: rgba(13, 20, 32, .4) !important;
}

/* ---- 四级标题暗色：浅色文字 + 亮蓝重影与竖条 ---- */
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-text h4 {
        color: #e6edf5;
        text-shadow: 2px 3px 0 rgba(125, 180, 255, .26);
}
html[data-pcgh-theme-resolved="dark"] .pcgh-ph-text h4::before {
        background: #5b96e8;
}

/* ============================================================
 * 页脚毛玻璃适配（本文件仅写真集内页加载，天然只限写真页面）
 * 与内容卡同参数：浅色 rgba(255,255,255,.42) + blur22/sat1.6
 *                深色 rgba(17,25,38,.4) + blur22/sat1.4
 * 文字色沿用页脚自身变量（浅色深字/深色浅字），玻璃底上均可读
 * ============================================================ */
.pcgh-footer-new {
        --pcgh-footer-new-bg: rgba(255, 255, 255, .42);
        --pcgh-footer-new-surface: rgba(255, 255, 255, .55);
        backdrop-filter: blur(22px) saturate(1.6);
        -webkit-backdrop-filter: blur(22px) saturate(1.6);
}
html[data-pcgh-theme-resolved="dark"] .pcgh-footer-new {
        --pcgh-footer-new-bg: rgba(17, 25, 38, .4);
        --pcgh-footer-new-surface: rgba(30, 41, 59, .55);
        backdrop-filter: blur(22px) saturate(1.4);
        -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

/* 不支持 backdrop-filter 的浏览器退回实底，保证可读 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .pcgh-footer-new {
                --pcgh-footer-new-bg: #fff;
                --pcgh-footer-new-surface: #f8fafc;
        }
        html[data-pcgh-theme-resolved="dark"] .pcgh-footer-new {
                --pcgh-footer-new-bg: #0f172a;
                --pcgh-footer-new-surface: #1e293b;
        }
}
