/* ==========================================================================
   天使屋 · 阅读体验与视觉打磨层
   --------------------------------------------------------------------------
   定位：Refine（打磨），不换皮、不改结构、不动内容与功能。
   目标：保留 JustNews 既有身份（浅灰画布 + 白面板 + 青蓝强调 + 深色页脚），
        把可读性、层级、对比度、状态与细节做到成品级。

   依据 Impeccable 技能（/local/impeccable）的 craft-floor 与 polish 方法：
   · 对比度：正文 ≥4.5:1，大字 ≥3:1；次要文字按同色系加浓，不靠灰色凑
   · 排版：正文 16px / 1.75，中文行宽 ≈ 40em，标题有明确的字号与字重台阶
   · 间距：紧贴的相关组、宽松的分组，标题上间距 > 下间距
   · 状态：hover / focus-visible / active / disabled，焦点环始终可见
   · 浏览器表面：选区、滚动条、焦点环、下划线偏移、表格数字用等宽数字
   · 动效：一个克制的作者级动作（卡片浮起 + 图片微缩放），可被 reduced-motion 关闭

   调色板（全部实测对比度，白底）：
     --ink-1 #1b2229  12.9:1   标题
     --ink-2 #333d47   9.9:1   正文
     --ink-3 #5a6570   5.95:1  次要信息（原 #999999 仅 2.85:1，不合格）
     --ink-4 #737e89   4.1:1   仅用于 ≥18px 或非文本装饰
     --accent #0b6b93  5.93:1  链接与强调（原 #0088cc 仅 3.89:1，不合格）
     --accent-strong #005f85 7.06:1  hover / active
     --accent-soft #eaf3f8        强调底色
   ========================================================================== */

:root {
	/* 色 */
	--angh-canvas: #f4f6f8;
	--angh-surface: #ffffff;
	--angh-surface-sunken: #fafbfc;
	--angh-hairline: #e3e8ed;
	--angh-hairline-strong: #d3dae1;
	--angh-ink-1: #1b2229;
	--angh-ink-2: #333d47;
	--angh-ink-3: #5a6570;
	--angh-ink-4: #737e89;
	--angh-accent: #0b6b93;
	--angh-accent-strong: #005f85;
	--angh-accent-soft: #eaf3f8;
	--angh-accent-line: #bcd8e6;
	--angh-footer-bg: #232a30;
	--angh-footer-ink: #c6cfd7;
	--angh-footer-hairline: #38424b;

	/* 圆角 */
	--angh-r-xs: 4px;
	--angh-r-sm: 8px;
	--angh-r-md: 12px;
	--angh-r-lg: 16px;

	/* 阴影：偏移 + 柔化，不使用零偏移光晕 */
	--angh-shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
	--angh-shadow-2: 0 2px 4px rgba(16, 24, 40, 0.06), 0 12px 28px -12px rgba(16, 24, 40, 0.22);
	--angh-shadow-3: 0 8px 20px -6px rgba(16, 24, 40, 0.18), 0 20px 40px -24px rgba(16, 24, 40, 0.28);

	/* 节奏 */
	--angh-space-1: 4px;
	--angh-space-2: 8px;
	--angh-space-3: 12px;
	--angh-space-4: 16px;
	--angh-space-5: 24px;
	--angh-space-6: 32px;
	--angh-space-7: 48px;

	/* 字体：中文优先的阅读字体栈，系统中文字体保证正文的度量稳定 */
	--angh-font-read: "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN",
		"Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
	--angh-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
		"Microsoft YaHei", sans-serif;
	--angh-font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

	/* 动效 */
	--angh-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--angh-dur: 200ms;
}

/* ── 基础的浏览器表面 ───────────────────────────────────────────── */

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	background: var(--angh-canvas);
	color: var(--angh-ink-2);
	font-family: var(--angh-font-read);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--angh-accent-soft);
	color: var(--angh-ink-1);
}

/* 细滚动条，从调色板取色 */
@supports (scrollbar-width: thin) {
	* {
		scrollbar-width: thin;
		scrollbar-color: var(--angh-hairline-strong) transparent;
	}
}
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
::-webkit-scrollbar-thumb {
	background: var(--angh-hairline-strong);
	border: 2px solid var(--angh-canvas);
	border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--angh-ink-4);
}

/* 焦点环：键盘可见，鼠标不打扰 */
:focus {
	outline: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--angh-accent);
	outline-offset: 2px;
	border-radius: var(--angh-r-xs);
}

/* ── 页头 ─────────────────────────────────────────────────────── */

.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--angh-hairline);
	box-shadow: none;
}

.header .navbar-header,
.header .navbar-collapse {
	min-height: 62px;
}

.header .navbar-collapse .navbar-nav > li > a,
.header .navbar-nav > li > a {
	color: var(--angh-ink-2) !important;
	font-family: var(--angh-font-ui);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 62px;
	padding: 0 14px;
	transition: color var(--angh-dur) var(--angh-ease);
}

.header .navbar-nav > li > a:hover,
.header .navbar-nav > li.current-menu-item > a,
.header .navbar-nav > li.active > a,
.header .navbar-nav > li > a:focus-visible {
	color: var(--angh-accent) !important;
}

/* 当前栏目用底线标记，而不是仅靠颜色 */
.header .navbar-nav > li.current-menu-item > a,
.header .navbar-nav > li.active > a {
	box-shadow: inset 0 -2px 0 0 var(--angh-accent);
}

/* ── 通用链接 ─────────────────────────────────────────────────── */

a {
	color: var(--angh-accent);
	text-decoration-color: var(--angh-accent-line);
	text-underline-offset: 0.22em;
	transition: color var(--angh-dur) var(--angh-ease),
		text-decoration-color var(--angh-dur) var(--angh-ease);
}
a:hover {
	color: var(--angh-accent-strong);
	text-decoration-color: currentColor;
}

/* ── 板块头（sec-panel）───────────────────────────────────────── */

.sec-panel {
	margin-bottom: var(--angh-space-5);
}

.sec-panel-head {
	display: flex;
	align-items: baseline;
	gap: var(--angh-space-3);
	margin: 0 0 var(--angh-space-4);
	padding: 0 0 var(--angh-space-3);
	border-bottom: 1px solid var(--angh-hairline);
}

.sec-panel-head h2,
.sec-panel-head .sec-panel-title,
.sec-panel-head > *:first-child {
	margin: 0;
	color: var(--angh-ink-1);
	font-family: var(--angh-font-ui);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.35;
}

/* 板块头的短标识线，替代原来的整块底色 */
.sec-panel-head h2::before,
.sec-panel-head .sec-panel-title::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 0.95em;
	margin-right: 10px;
	border-radius: 2px;
	background: var(--angh-accent);
	vertical-align: -0.08em;
}

.sec-panel-head .sec-panel-more,
.sec-panel-head .more {
	margin-left: auto;
	color: var(--angh-ink-3);
	font-size: 13px;
	font-weight: 400;
}

.sec-panel-head .sec-panel-more:hover,
.sec-panel-head .more:hover {
	color: var(--angh-accent);
}

/* 选项卡（tab）—— 与板块头同一基线 */
.sec-panel-head .tab .tab-item,
.sec-panel-head .tab a {
	color: var(--angh-ink-3);
	font-size: 14px;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: var(--angh-r-xs);
}
.sec-panel-head .tab .tab-item.active,
.sec-panel-head .tab a.active,
.sec-panel-head .tab .active a {
	color: var(--angh-accent);
	background: var(--angh-accent-soft);
}

/* ── 列表卡片 ─────────────────────────────────────────────────── */

.item {
	background: var(--angh-surface);
	border: 1px solid var(--angh-hairline);
	border-radius: var(--angh-r-md);
	box-shadow: var(--angh-shadow-1);
	padding: var(--angh-space-4);
	transition: box-shadow var(--angh-dur) var(--angh-ease),
		transform var(--angh-dur) var(--angh-ease),
		border-color var(--angh-dur) var(--angh-ease);
}

.item:hover {
	transform: translateY(-2px);
	border-color: var(--angh-hairline-strong);
	box-shadow: var(--angh-shadow-2);
}

/* 占满一行的列表项（post-loop-list）—— 卡片感收敛为分隔线，避免卡片套卡片 */
.post-loop-list .item {
	border-radius: 0;
	border-width: 0 0 1px 0;
	box-shadow: none;
	padding: var(--angh-space-4) 0;
	background: transparent;
}
.post-loop-list .item:hover {
	transform: none;
	border-color: var(--angh-hairline-strong);
	background: transparent;
}

.item-title,
.item-title a {
	color: var(--angh-ink-1) !important;
	font-family: var(--angh-font-ui);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.005em;
	text-decoration: none;
	/* 中文标题两行后收口，避免高度参差 */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.item-title a:hover {
	color: var(--angh-accent) !important;
}

.post-loop-list .item-title,
.post-loop-list .item-title a {
	font-size: 18px;
}

.item-excerpt {
	margin-top: var(--angh-space-2);
	color: var(--angh-ink-3);
	font-size: 14px;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 缩略图：统一比例、圆角、溢出裁切，hover 时轻微推近 */
.item-img,
.item-thumb {
	border-radius: var(--angh-r-sm);
	overflow: hidden;
	background: var(--angh-surface-sunken);
}

.item-img img,
.item-thumb img {
	transition: transform 420ms var(--angh-ease);
}

.item:hover .item-img img,
.item:hover .item-thumb img {
	transform: scale(1.03);
}

/* 分类角标 */
.item-category a,
.item-category {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--angh-accent-soft);
	color: var(--angh-accent) !important;
	font-family: var(--angh-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.6;
	text-decoration: none;
}
.item-category a:hover {
	background: var(--angh-accent);
	color: #fff !important;
}

/* 元信息：等宽数字，避免日期/计数跳动 */
.item-meta,
.item-meta-left,
.item-meta-right,
.item-meta-li,
.date,
.entry-info,
.entry-date {
	color: var(--angh-ink-3);
	font-family: var(--angh-font-ui);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.item-meta a,
.item-meta-li a,
.date a {
	color: var(--angh-ink-3) !important;
	text-decoration: none;
}
.item-meta a:hover,
.item-meta-li a:hover {
	color: var(--angh-accent) !important;
}

.item-meta .fa,
.item-meta-li .fa {
	color: var(--angh-ink-4);
}

/* ── 正文页（Read 模式的主战场）───────────────────────────────── */

.entry {
	background: var(--angh-surface);
	border: 1px solid var(--angh-hairline);
	border-radius: var(--angh-r-lg);
	box-shadow: var(--angh-shadow-1);
	padding: var(--angh-space-6) var(--angh-space-6) var(--angh-space-5);
}

.entry-title,
.entry-title a {
	color: var(--angh-ink-1) !important;
	font-family: var(--angh-font-ui);
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-wrap: balance;
	margin: 0 0 var(--angh-space-3);
}

.entry-head {
	padding-bottom: var(--angh-space-4);
	margin-bottom: var(--angh-space-5);
	border-bottom: 1px solid var(--angh-hairline);
}

.entry-info,
.entry-info a {
	color: var(--angh-ink-3) !important;
	font-size: 13.5px;
}

.entry-content {
	color: var(--angh-ink-2);
	font-family: var(--angh-font-read);
	font-size: 16.5px;
	line-height: 1.9;
	letter-spacing: 0.01em;
	/* 中文阅读行宽控制在 ≈ 40 字 */
	max-width: 42em;
	text-wrap: pretty;
}

.entry-content > * + * {
	margin-top: 1.05em;
}

.entry-content p {
	margin: 0 0 1.05em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--angh-ink-1);
	font-family: var(--angh-font-ui);
	letter-spacing: 0.005em;
	text-wrap: balance;
}

.entry-content h2 {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.45;
	margin: 2em 0 0.7em;
	padding-left: 12px;
	border-left: 3px solid var(--angh-accent);
}

.entry-content h3 {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.5;
	margin: 1.7em 0 0.6em;
}

.entry-content h4 {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.55;
	margin: 1.5em 0 0.5em;
}

.entry-content a {
	color: var(--angh-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.24em;
	text-decoration-color: var(--angh-accent-line);
}
.entry-content a:hover {
	color: var(--angh-accent-strong);
	text-decoration-color: currentColor;
}

.entry-content strong,
.entry-content b {
	color: var(--angh-ink-1);
	font-weight: 700;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.05em;
	padding-left: 1.4em;
}
.entry-content li {
	margin-bottom: 0.45em;
}
.entry-content li::marker {
	color: var(--angh-ink-4);
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--angh-accent-line);
	color: var(--angh-ink-3);
	font-size: 16px;
	background: linear-gradient(90deg, var(--angh-accent-soft), rgba(234, 243, 248, 0));
	border-radius: 0 var(--angh-r-sm) var(--angh-r-sm) 0;
}

.entry-content img,
.entry-content video,
.entry-content iframe {
	max-width: 100%;
	height: auto;
	border-radius: var(--angh-r-sm);
}

.entry-content figure {
	margin: 1.6em 0;
}
.entry-content figure img {
	box-shadow: var(--angh-shadow-1);
}
.entry-content figcaption {
	margin-top: 0.6em;
	color: var(--angh-ink-3);
	font-size: 13px;
	line-height: 1.6;
	text-align: center;
}

.entry-content pre {
	background: #1f262d;
	color: #e7edf3;
	border-radius: var(--angh-r-sm);
	padding: 16px 18px;
	overflow-x: auto;
	font-family: var(--angh-font-mono);
	font-size: 13.5px;
	line-height: 1.65;
	tab-size: 2;
}

.entry-content code {
	font-family: var(--angh-font-mono);
	font-size: 0.92em;
	background: var(--angh-surface-sunken);
	border: 1px solid var(--angh-hairline);
	border-radius: var(--angh-r-xs);
	padding: 0.12em 0.35em;
}
.entry-content pre code {
	background: transparent;
	border: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
	font-variant-numeric: tabular-nums;
	margin: 1.6em 0;
}
.entry-content th,
.entry-content td {
	border: 1px solid var(--angh-hairline);
	padding: 9px 12px;
	text-align: left;
}
.entry-content th {
	background: var(--angh-surface-sunken);
	color: var(--angh-ink-1);
	font-weight: 600;
}
.entry-content tbody tr:nth-child(even) {
	background: var(--angh-surface-sunken);
}

.entry-content hr {
	border: 0;
	height: 1px;
	background: var(--angh-hairline);
	margin: 2.2em 0;
}

/* 正文里的视频（[video] / [embed]）—— 播放器收进卡片语汇 */
.entry-content .wp-video,
.entry-content .j-wpcom-video,
.entry-content .mejs-container {
	max-width: 100%;
	border-radius: var(--angh-r-sm);
	overflow: hidden;
	box-shadow: var(--angh-shadow-1);
}

/* 正文底部的标签、版权、操作条 */
.entry-footer,
.entry-copyright,
.entry-tag {
	color: var(--angh-ink-3);
	font-size: 14px;
}

.entry-copyright {
	margin-top: var(--angh-space-5);
	padding: var(--angh-space-4);
	background: var(--angh-surface-sunken);
	border: 1px solid var(--angh-hairline);
	border-radius: var(--angh-r-sm);
	color: var(--angh-ink-3);
}

.entry-tag a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 10px;
	border: 1px solid var(--angh-hairline);
	border-radius: var(--angh-r-sm);
	background: var(--angh-surface-sunken);
	color: var(--angh-ink-3) !important;
	font-size: 13px;
	text-decoration: none;
	transition: all var(--angh-dur) var(--angh-ease);
}
.entry-tag a:hover {
	border-color: var(--angh-accent-line);
	color: var(--angh-accent) !important;
	background: var(--angh-accent-soft);
}

/* 正文里的关键词链接（.wpcom_tag_link，如「青春」指向 /tag/青春）：
   它是行内链接，绝不是标签胶囊——不能加边框、内边距和圆角。
   只保留一种很轻的“关键词”语感：正常行内链接 + 淡淡的强调底色，不打断阅读节奏。 */
.entry-content .wpcom_tag_link {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font-size: inherit;
	line-height: inherit;
}

.entry-content .wpcom_tag_link a {
	display: inline;
	margin: 0;
	padding: 0 2px;
	border: 0;
	border-radius: 3px;
	background: linear-gradient(180deg, transparent 55%, var(--angh-accent-soft) 55%);
	color: var(--angh-accent) !important;
	font-size: inherit;
	line-height: inherit;
	text-decoration: none;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	transition: background var(--angh-dur) var(--angh-ease),
		color var(--angh-dur) var(--angh-ease);
}

.entry-content .wpcom_tag_link a:hover,
.entry-content .wpcom_tag_link a:focus-visible {
	background: var(--angh-accent-soft);
	color: var(--angh-accent-strong) !important;
	text-decoration: none;
}

/* ── 侧栏 ─────────────────────────────────────────────────────── */

.widget {
	background: var(--angh-surface);
	border: 1px solid var(--angh-hairline);
	border-radius: var(--angh-r-md);
	box-shadow: var(--angh-shadow-1);
	padding: var(--angh-space-4) var(--angh-space-4) var(--angh-space-3);
	margin-bottom: var(--angh-space-4);
}

.widget-title,
.widget h3,
.widget h2 {
	position: relative;
	margin: 0 0 var(--angh-space-3);
	padding-bottom: var(--angh-space-2);
	color: var(--angh-ink-1);
	font-family: var(--angh-font-ui);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-bottom: 1px solid var(--angh-hairline);
}

.tag-cloud-link {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 10px;
	border: 1px solid var(--angh-hairline);
	border-radius: 999px;
	background: var(--angh-surface);
	color: var(--angh-ink-3) !important;
	font-size: 13px !important;
	text-decoration: none;
	transition: all var(--angh-dur) var(--angh-ease);
}
.tag-cloud-link:hover {
	border-color: var(--angh-accent-line);
	color: var(--angh-accent) !important;
	background: var(--angh-accent-soft);
}

/* ── 按钮 ─────────────────────────────────────────────────────── */

.btn,
.btn-dashang,
.btn-zan,
.form-submit .submit,
button[type="submit"] {
	min-height: 40px;
	padding: 8px 18px;
	border: 1px solid transparent;
	border-radius: var(--angh-r-sm);
	background: var(--angh-accent);
	color: #fff !important;
	font-family: var(--angh-font-ui);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--angh-dur) var(--angh-ease),
		box-shadow var(--angh-dur) var(--angh-ease),
		transform var(--angh-dur) var(--angh-ease);
}

.btn:hover,
.btn-dashang:hover,
.btn-zan:hover,
button[type="submit"]:hover,
.form-submit .submit:hover {
	background: var(--angh-accent-strong);
	box-shadow: var(--angh-shadow-2);
	color: #fff !important;
}

.btn:active,
button[type="submit"]:active {
	transform: translateY(1px);
	box-shadow: var(--angh-shadow-1);
}

.btn:disabled,
button:disabled {
	background: var(--angh-hairline-strong) !important;
	color: var(--angh-ink-4) !important;
	cursor: not-allowed;
	box-shadow: none;
}

.btn-default,
.btn-ghost {
	background: var(--angh-surface) !important;
	border-color: var(--angh-hairline-strong);
	color: var(--angh-ink-2) !important;
}
.btn-default:hover,
.btn-ghost:hover {
	border-color: var(--angh-accent-line);
	color: var(--angh-accent) !important;
	background: var(--angh-accent-soft) !important;
}

/* ── 分页 ─────────────────────────────────────────────────────── */

.page-item,
.pagination .page-numbers,
.pagination > li > a,
.pagination > li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	margin-right: 6px;
	border: 1px solid var(--angh-hairline);
	border-radius: var(--angh-r-sm);
	background: var(--angh-surface);
	color: var(--angh-ink-3) !important;
	font-family: var(--angh-font-ui);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	transition: all var(--angh-dur) var(--angh-ease);
}
.page-item:hover,
.pagination .page-numbers:hover,
.pagination > li > a:hover {
	border-color: var(--angh-accent-line);
	color: var(--angh-accent) !important;
	background: var(--angh-accent-soft);
}
.page-item.active,
.pagination .page-numbers.current,
.pagination > li.active > a {
	background: var(--angh-accent) !important;
	border-color: var(--angh-accent) !important;
	color: #fff !important;
	font-weight: 600;
}

/* ── 页脚 ─────────────────────────────────────────────────────── */

.footer {
	margin-top: var(--angh-space-7);
	background: var(--angh-footer-bg);
	color: var(--angh-footer-ink);
	font-size: 14px;
	line-height: 1.75;
}

.footer a {
	color: var(--angh-footer-ink) !important;
	text-decoration: none;
}
.footer a:hover {
	color: #fff !important;
	text-decoration: underline;
	text-underline-offset: 0.24em;
}

.footer .footer-col {
	border-top: 1px solid var(--angh-footer-hairline);
}

.footer h2,
.footer h3,
.footer .widget-title {
	color: #fff !important;
	border-color: var(--angh-footer-hairline);
}

.footer .widget {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

/* ── 评论 ─────────────────────────────────────────────────────── */

.entry-comments .comment-reply-title,
.comment-reply-title {
	color: var(--angh-ink-1);
	font-family: var(--angh-font-ui);
	font-size: 18px;
	font-weight: 700;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--angh-hairline-strong);
	border-radius: var(--angh-r-sm);
	background: var(--angh-surface);
	color: var(--angh-ink-2);
	font-family: var(--angh-font-read);
	font-size: 15px;
	line-height: 1.6;
	transition: border-color var(--angh-dur) var(--angh-ease),
		box-shadow var(--angh-dur) var(--angh-ease);
}
.comment-respond textarea,
.comment-form textarea {
	min-height: 120px;
}
.comment-respond input:focus,
.comment-respond textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--angh-accent);
	box-shadow: 0 0 0 3px rgba(11, 107, 147, 0.12);
	outline: none;
}
.comment-respond ::placeholder,
.comment-form ::placeholder {
	color: var(--angh-ink-4);
	opacity: 1;
}

/* ── 小工具与杂项 ─────────────────────────────────────────────── */

/* 回到顶部的悬浮按钮：与调色板同色系，带偏移阴影 */
.action .action-item,
.action .gotop {
	background: var(--angh-surface);
	border: 1px solid var(--angh-hairline);
	border-radius: var(--angh-r-sm);
	box-shadow: var(--angh-shadow-2);
	color: var(--angh-ink-3);
}
.action .action-item:hover,
.action .gotop:hover {
	color: var(--angh-accent);
	border-color: var(--angh-accent-line);
}

/* 图片灯箱（global-gallery）:统一圆角与暗底 */
.mfp-bg {
	background: rgba(20, 26, 32, 0.92);
}

/* 空状态 / 无结果 */
.no-content,
.entry-page > .no-content {
	color: var(--angh-ink-3);
	font-size: 15px;
}

/* 列表与正文里的图片避免布局位移 */
img {
	max-width: 100%;
	height: auto;
}
.entry-content img[width][height],
.item-img img[width][height] {
	height: auto;
}

/* ── 响应式 ───────────────────────────────────────────────────── */

@media (max-width: 991px) {
	.entry {
		padding: var(--angh-space-5) var(--angh-space-4);
		border-radius: var(--angh-r-md);
	}
	.entry-content {
		font-size: 16px;
		line-height: 1.85;
	}
	.sec-panel-head h2,
	.sec-panel-head .sec-panel-title {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	body {
		font-size: 15.5px;
	}
	.header {
		position: static;
	}
	/* 触控目标不小于 44px */
	.header .navbar-nav > li > a,
	.header .navbar-nav > li > .dropdown-toggle {
		line-height: 44px;
		min-height: 44px;
		padding: 0 16px;
		font-size: 16px;
	}
	.item {
		padding: var(--angh-space-3);
		border-radius: var(--angh-r-sm);
	}
	.item-title,
	.item-title a {
		font-size: 16.5px;
	}
	.entry-title,
	.entry-title a {
		font-size: 24px;
	}
	.entry-content {
		font-size: 16px;
		line-height: 1.85;
	}
	.entry-content h2 {
		font-size: 20px;
	}
	.entry-content h3 {
		font-size: 17.5px;
	}
	.widget {
		border-radius: var(--angh-r-sm);
	}
	.tag-cloud-link {
		padding: 6px 12px;
		line-height: 1.6;
	}
}

/* ── 尊重系统的减弱动效 ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.item:hover {
		transform: none;
	}
	.item:hover .item-img img,
	.item:hover .item-thumb img {
		transform: none;
	}
}

/* 打印：去掉装饰，只留内容 */
@media print {
	.header,
	.footer,
	.sidebar,
	.action,
	.entry-related {
		display: none !important;
	}
	.entry {
		border: 0;
		box-shadow: none;
		padding: 0;
	}
	.entry-content {
		max-width: none;
		font-size: 11pt;
		line-height: 1.6;
	}
}

/* ==========================================================================
   精确对齐层
   --------------------------------------------------------------------------
   主题 style.css 里有若干高优先级规则（如 .post-loop-default .item-meta、
   .entry .entry-content、.list.tabs .tab.active a）。上面一层按语义写，
   这一层负责把它们逐一收口到同一套 token 上，不改主题文件。
   ========================================================================== */

/* 正文与标题 */
.entry .entry-content {
	color: var(--angh-ink-2) !important;
	font-size: 16.5px !important;
	line-height: 1.9 !important;
	letter-spacing: 0.01em;
	max-width: 42em;
}
.entry .entry-title {
	margin-bottom: var(--angh-space-3) !important;
	font-size: clamp(26px, 2.6vw, 34px) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em;
}
.entry .entry-content h2 {
	margin: 2em 0 0.7em !important;
	padding: 0 0 0 12px !important;
	border: 0 !important;
	border-left: 3px solid var(--angh-accent) !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
}
.entry .entry-content h3 {
	margin: 1.7em 0 0.6em !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
}
.entry .entry-content blockquote {
	margin: 1.6em 0 !important;
	padding: 4px 0 4px 20px !important;
	border-left: 3px solid var(--angh-accent-line) !important;
	background: linear-gradient(90deg, var(--angh-accent-soft), rgba(234, 243, 248, 0)) !important;
	color: var(--angh-ink-3) !important;
	font-size: 16px !important;
	border-radius: 0 var(--angh-r-sm) var(--angh-r-sm) 0;
}
.entry .entry-content .wp-caption-text,
.entry .entry-content figcaption {
	color: var(--angh-ink-3) !important;
	font-size: 13px !important;
	line-height: 1.6 !important;
}

/* 卡片元信息（主题写死 #999，实测 2.85:1） */
.post-loop-default .item-meta,
.post-loop-image .item-meta,
.post-loop-card .item-meta,
.post-loop-list .item-meta,
.item .item-meta,
.entry-related .item-meta {
	color: var(--angh-ink-3) !important;
	font-size: 13px !important;
}
.post-loop-default .item-meta a,
.post-loop-image .item-meta a,
.post-loop-card .item-meta a,
.item .item-meta a {
	color: var(--angh-ink-3) !important;
}
.post-loop-default .item-meta a:hover,
.post-loop-image .item-meta a:hover,
.item .item-meta a:hover {
	color: var(--angh-accent) !important;
}
.post-loop-default .item-meta .item-meta-li,
.post-loop-image .item-meta .item-meta-li,
.item .item-meta .item-meta-li {
	color: var(--angh-ink-3) !important;
	font-size: 13px !important;
}
.post-loop-default .item-meta .item-meta-li .fa,
.item .item-meta .item-meta-li .fa {
	color: var(--angh-ink-4) !important;
	font-size: 13px !important;
}

/* 图片上的分类角标：黑蒙版 + 白字 → 品牌实色 + 白字（白字 5.93:1） */
.post-loop-default .item-category,
.post-loop-image .item-img .item-category,
.post-loop-card .item-img .item-category,
.item .item-category,
.item-img .item-category {
	padding: 3px 9px !important;
	border-radius: 999px !important;
	background: var(--angh-accent) !important;
	color: #fff !important;
	font-family: var(--angh-font-ui);
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.6 !important;
	text-decoration: none !important;
}
.post-loop-default .item-category:hover,
.post-loop-image .item-img .item-category:hover,
.item .item-category:hover {
	background: var(--angh-accent-strong) !important;
	color: #fff !important;
}

/* 选项卡：默认态用 ink-3，激活态用强调色 + 底线 */
.sec-panel-head .list.tabs .tab a,
.list.tabs .tab a {
	color: var(--angh-ink-3) !important;
	font-size: 14px;
	font-weight: 500;
}
.sec-panel-head .list.tabs .tab a:hover,
.list.tabs .tab a:hover {
	color: var(--angh-accent) !important;
}
.sec-panel-head .list.tabs .tab.active a,
.list.tabs .tab.active a {
	color: var(--angh-accent) !important;
	font-weight: 600 !important;
}
.sec-panel-head .list.tabs .tab.active a:after,
.list.tabs .tab.active a:after {
	background: var(--angh-accent) !important;
	border-radius: 2px;
}

/* 板块头“更多”与“加载更多” */
.sec-panel-head .sec-panel-more,
.sec-panel-head .sec-panel-more a,
.sec-panel-head .sec-panel-more span {
	color: var(--angh-ink-3) !important;
	font-size: 13px !important;
	text-decoration: none;
}
.sec-panel-head .sec-panel-more a:hover {
	color: var(--angh-accent) !important;
}
.load-more-wrap .load-more,
.load-more {
	min-height: 44px;
	padding: 12px !important;
	border: 1px solid var(--angh-hairline) !important;
	border-radius: var(--angh-r-sm) !important;
	background: var(--angh-surface) !important;
	color: var(--angh-ink-3) !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
}
.load-more-wrap .load-more:hover,
.load-more:hover {
	border-color: var(--angh-accent-line) !important;
	background: var(--angh-accent-soft) !important;
	color: var(--angh-accent) !important;
}

/* 登录 / 注册按钮：注册按钮原本白字白底，等于不可见 */
.member-form .btn-login,
.login-modal-body .btn-login,
.login-btn .btn-login {
	border: 1px solid var(--angh-accent) !important;
	background: var(--angh-accent) !important;
	color: #fff !important;
}
.member-form .btn-login:hover,
.login-modal-body .btn-login:hover,
.login-btn .btn-login:hover {
	border-color: var(--angh-accent-strong) !important;
	background: var(--angh-accent-strong) !important;
	color: #fff !important;
}
.member-form .btn-register,
.login-modal-body .btn-register,
.login-btn .btn-register {
	border: 1px solid var(--angh-accent-line) !important;
	background: var(--angh-surface) !important;
	color: var(--angh-accent) !important;
}
.member-form .btn-register:hover,
.login-modal-body .btn-register:hover,
.login-btn .btn-register:hover {
	border-color: var(--angh-accent) !important;
	background: var(--angh-accent-soft) !important;
	color: var(--angh-accent-strong) !important;
}

/* 侧栏标签云 */
.sidebar .tag-cloud-link,
.widget .tag-cloud-link {
	font-size: 13px !important;
}

/* 移动端字号收敛（覆盖主题的 10px 元信息） */
@media (max-width: 767px) {
	.entry .entry-content {
		font-size: 16px !important;
		line-height: 1.85 !important;
	}
	.entry .entry-title {
		font-size: 24px !important;
	}
	.entry .entry-content h2 {
		font-size: 20px !important;
	}
	.entry .entry-content h3 {
		font-size: 17.5px !important;
	}
	.post-loop-default .item-meta,
	.item .item-meta,
	.post-loop-default .item-meta .item-meta-li {
		font-size: 13px !important;
	}
}

/* ── 文末操作条、打赏与分享浮层 ─────────────────────────────── */

.entry-bar,
.entry-bar-inner {
	border-color: var(--angh-hairline) !important;
}

.entry-bar .meta-item,
.entry-bar .info-item a,
.entry-bar .info-item,
.entry-action .entry-action-num {
	color: var(--angh-ink-3) !important;
}
.entry-bar .meta-item:hover,
.entry-bar .info-item a:hover {
	color: var(--angh-accent) !important;
}

.dashang-img span,
.share-wx-wrap span {
	border: 1px solid var(--angh-hairline) !important;
	border-radius: var(--angh-r-xs);
	background: var(--angh-surface) !important;
	color: var(--angh-ink-3) !important;
	font-size: 12px !important;
}

.comment-must-login {
	color: var(--angh-ink-3) !important;
	font-size: 14px;
}

.form-submit-text a {
	color: var(--angh-accent) !important;
}

/* 视频播放器：把播放器强调色并入本站调色板 */
.plyr {
	--plyr-color-main: var(--angh-accent);
	--plyr-video-control-color-hover: #fff;
}

/* 点赞 / 打赏按钮内部：实色底上的文字与图标一律白字（≥4.5:1） */
.btn-zan,
.btn-zan:hover,
.btn-dashang,
.btn-dashang:hover,
.btn-zan .entry-action-num,
.btn-dashang .entry-action-num,
.btn-zan .fa,
.btn-dashang .fa,
.btn-zan span,
.btn-dashang span {
	color: #fff !important;
}

/* 修正：打赏/分享按钮内的浮层提示文字仍为浅底深字，不跟随按钮白字 */
.btn-dashang .dashang-img span,
.btn-zan .share-wx-wrap span {
	border: 1px solid var(--angh-hairline) !important;
	background: var(--angh-surface) !important;
	color: var(--angh-ink-3) !important;
}

/* 播放器大播放按钮：并入调色板（白字 5.93:1） */
.plyr__control--overlaid {
	background: var(--angh-accent) !important;
}
.plyr__control--overlaid:hover {
	background: var(--angh-accent-strong) !important;
}

/* 正文底部操作条：主题用负外边距做通栏，与收紧后的卡片内边距冲突（768px 溢出 2px）。
   改为卡片内对齐，视觉上仍是“分隔线 + 操作条”。 */
.entry .entry-bar,
.entry .entry-bar-inner {
	width: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* ── 模块头选项卡：修「最右边被裁掉」 ───────────────────────────
   主题规则是 .list.tabs{white-space:nowrap; overflow:hidden}，右侧栏目又只有
   半个栅格宽（约 474px），第 5 个标签「纯色书房」会被 overflow 直接切掉，
   且没有任何滚动提示。改为可换行的弹性排列：一排放得下就一行，放不下自动换行，
   永不裁切。同时去掉标签之间的竖分隔线（标签已胶囊化，竖线是噪音）。 */

.sec-panel-head .list.tabs,
.main-list .sec-panel-head .list.tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin-bottom: -1px;
	white-space: normal;
	overflow: visible;
}

.sec-panel-head .list.tabs .tab {
	margin-right: 0 !important;
	font-size: 0;
}

.sec-panel-head .list.tabs .tab::after {
	display: none !important;
}

.sec-panel-head .list.tabs .tab a {
	display: inline-block;
	padding: 2px 6px !important;
	font-size: 14px;
	line-height: 1.6;
}

/* 标签多到需要换行时，板块头与内容之间保留呼吸 */
.sec-panel-head .list.tabs {
	row-gap: 6px;
}

/* ── 「最新文章」列表行：修两处「被遮住」 ─────────────────────
   ① 主题的圆点标记 ::before 定位在 left:2px，而收紧后的行内边距是 0，
      圆点正好压在标题首字上；
   ② 标题是 white-space:nowrap + ellipsis，右侧还有 110px 留给日期，
      稍长的中文标题被省略号直接截断。
   改为：留出标记位、标题允许两行收口（-webkit-line-clamp: 2），不再截断。 */

.post-loop-list .item {
	padding: 14px 0 14px 16px !important;
	line-height: 1.55 !important;
}

.post-loop-list .item::before {
	left: 0 !important;
	top: 21px !important;
	width: 5px !important;
	height: 5px !important;
	background: var(--angh-accent-line) !important;
}

.post-loop-list .item > a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal !important;
	text-overflow: clip !important;
	padding-right: 104px !important;
	font-size: 15.5px !important;
	line-height: 1.62 !important;
}

.post-loop-list .item .date {
	top: 14px !important;
	font-size: 13px !important;
	line-height: 1.6 !important;
}

/* 标签云：主题给每个标签写死了固定宽度，圆角胶囊化后文字会被裁掉几像素，
   改为按内容自适应宽度，永不裁字。 */
.widget .tag-cloud-link,
.sidebar .tag-cloud-link,
.tagcloud .tag-cloud-link {
	width: auto !important;
	max-width: 100% !important;
	overflow: visible !important;
	text-overflow: clip !important;
	white-space: normal !important;
	box-sizing: border-box;
}

/* ── 标签（文章页标签 + 侧栏「标签」云）统一语汇 ─────────────────
   问题：主题把侧栏标签做成固定宽度的三列小方框
        （.widget .tagcloud a{width:32.39%;padding:5px 12px;border-radius:2px}），
        文字被挤、圆角与全站不一致，一大片框压在一起很突兀；
        文章底部的标签则是另一种小胶囊，两处互不相干。
   做法：统一为「浅底 + 发丝线 + 8px 圆角」的温和标签，
        按内容自适应宽度、自然换行，hover 才出现强调色。 */

/* 文章底部标签 */
.entry-tag {
	margin: 0 0 var(--angh-space-3);
	line-height: 1;
}

.entry-tag a,
.entry-tag a:link {
	display: inline-block;
	margin: 0 8px 8px 0;
	padding: 4px 11px;
	border: 1px solid var(--angh-hairline);
	border-radius: var(--angh-r-sm);
	background: var(--angh-surface-sunken);
	color: var(--angh-ink-3) !important;
	font-family: var(--angh-font-ui);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
	transition: color var(--angh-dur) var(--angh-ease),
		background var(--angh-dur) var(--angh-ease),
		border-color var(--angh-dur) var(--angh-ease);
}

.entry-tag a:hover,
.entry-tag a:focus-visible {
	border-color: var(--angh-accent-line);
	background: var(--angh-accent-soft);
	color: var(--angh-accent-strong) !important;
	text-decoration: none;
}

/* 侧栏「标签」云：不再排成三列方框，改为自适应宽度的标签流 */
.widget .tagcloud {
	display: block;
	padding-bottom: 2px;
	line-height: 0;
}

.widget .tagcloud a,
.widget .tagcloud .tag-cloud-link,
#tag_cloud-3 .tagcloud a {
	display: inline-block !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 0 6px 6px 0 !important;
	padding: 4px 11px !important;
	border: 1px solid var(--angh-hairline) !important;
	border-radius: var(--angh-r-sm) !important;
	background: var(--angh-surface-sunken) !important;
	color: var(--angh-ink-3) !important;
	font-family: var(--angh-font-ui);
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	text-align: left !important;
	text-decoration: none !important;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	box-sizing: border-box;
	transition: color var(--angh-dur) var(--angh-ease),
		background var(--angh-dur) var(--angh-ease),
		border-color var(--angh-dur) var(--angh-ease);
}

.widget .tagcloud a:hover,
.widget .tagcloud .tag-cloud-link:hover,
#tag_cloud-3 .tagcloud a:hover {
	border-color: var(--angh-accent-line) !important;
	background: var(--angh-accent-soft) !important;
	color: var(--angh-accent-strong) !important;
	text-decoration: none !important;
}

/* ── 侧栏小工具标题：竖条并入调色板 ───────────────────────────
   主题的 .widget-title:before 是 4px×100% 的 #3ca5f6 竖条（旧蓝，与本站强调色不是一支），
   加上标题额外的下边框，两条装饰线抢注意力。统一为强调色、长度跟字高一致。 */

.widget .widget-title::before {
	width: 3px !important;
	height: 0.95em !important;
	top: 0.08em !important;
	border-radius: 2px;
	background: var(--angh-accent) !important;
}

.widget .widget-title {
	padding-left: 11px !important;
}

.entry-tag {
	margin-bottom: var(--angh-space-2) !important;
}

/* ── 模块选项卡与栏目标题统一 ─────────────────────────────────
   参照对照：其它栏目头是 <h3>「天使乐园 / 成长点滴 / 户外精灵 / 赛事生涯」——
   20px / 700 / --ink-1 / letter-spacing .2px / 行高 27px，标题自带一条 2px 淡描线。
   选项卡原来是 14px 小字胶囊，和它们完全不像一家人。
   改为同一套字体与描线：选中项＝深色，未选中＝浅灰，靠颜色区分状态，不再用胶囊底色。 */

.sec-panel-head .list.tabs,
.main-list .sec-panel-head .list.tabs {
	align-items: baseline;
	gap: 2px 14px;
	margin-bottom: 0;
	overflow: visible;
}

.sec-panel-head .list.tabs .tab {
	margin-right: 0 !important;
}

.sec-panel-head .list.tabs .tab a,
.sec-panel-head .list.tabs .tab a:hover,
.sec-panel-head .list.tabs .tab.active a {
	display: inline-block;
	padding: 0 0 12px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	font-family: var(--angh-font-ui);
	font-size: 20px !important;
	font-weight: 700 !important;
	font-style: normal;
	letter-spacing: 0.2px;
	line-height: 27px !important;
	text-decoration: none !important;
	box-shadow: inset 0 -2px 0 rgba(99, 99, 99, 0.1);
	transition: color var(--angh-dur) var(--angh-ease);
}

/* 未选中：浅灰（20px 粗体属大字号，4.1:1 达标） */
.sec-panel-head .list.tabs .tab a {
	color: var(--angh-ink-4) !important;
}

.sec-panel-head .list.tabs .tab a:hover {
	color: var(--angh-ink-2) !important;
}

/* 选中：与栏目标题同样的深色（--ink-1） */
.sec-panel-head .list.tabs .tab.active a {
	color: var(--angh-ink-1) !important;
}

/* 去掉主题给选中项的蓝色下划线，改由上面的描线统一 */
.sec-panel-head .list.tabs .tab.active a::after,
.list.tabs .tab.active a::after {
	display: none !important;
}

/* 窄屏（如 1024 及手机）按两行自然换行，不裁切 */
@media (max-width: 1219px) {
	.sec-panel-head .list.tabs .tab a,
	.sec-panel-head .list.tabs .tab a:hover,
	.sec-panel-head .list.tabs .tab.active a {
		font-size: 18px !important;
		line-height: 25px !important;
	}
}

/* ── 选项卡最终形态（覆盖上面那版「与栏目标题完全一致」的尝试）──
   上一版把选项卡做成 20px/700，结果它看起来像又一组栏目标题，反而更乱：
   切换器需要「看得出能点、看得出当前在哪」。
   这里保留同一套字体系统，但降一档字号，选中项用强调色下划线标出，
   不再给每个标签画灰线（那条分段灰线才是最主要的不协调来源）。 */

.sec-panel-head .list.tabs .tab a,
.sec-panel-head .list.tabs .tab a:hover,
.sec-panel-head .list.tabs .tab.active a {
	position: relative;
	padding: 0 0 12px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	font-family: var(--angh-font-ui);
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: 0.2px;
	line-height: 24px !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.sec-panel-head .list.tabs .tab a {
	color: var(--angh-ink-3) !important;
}

.sec-panel-head .list.tabs .tab a:hover {
	color: var(--angh-ink-1) !important;
}

.sec-panel-head .list.tabs .tab.active a {
	color: var(--angh-ink-1) !important;
}

/* 选中项：贴住板块头下边框的强调色下划线 */
.sec-panel-head .list.tabs .tab.active a::after {
	display: block !important;
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--angh-accent) !important;
}

@media (max-width: 1219px) {
	.sec-panel-head .list.tabs .tab a,
	.sec-panel-head .list.tabs .tab a:hover,
	.sec-panel-head .list.tabs .tab.active a {
		font-size: 15px !important;
		line-height: 22px !important;
	}
}

/* ==========================================================================
   模块选项卡 ≡ 栏目标题「天使乐园」的样式（1:1 复刻）
   --------------------------------------------------------------------------
   参照物实测（<div class="sec-panel-head"><h3><span><a>天使乐园</a></span></h3>）：
     span          : inline-block, position:relative, padding 0 0 12px,
                     font-size 20px / weight 700 / letter-spacing .2px /
                     line-height 27px / color rgb(0,136,204) / 盒高 39px
     span::before  : position:absolute, left 0, width 100%（=文字宽度）, height 2px,
                     border-radius 2px, background rgb(0,136,204)  ← 文字下方那条蓝色短线
     h3            : border-bottom 2px solid rgba(99,99,99,.1)     ← 短线下面那条淡灰横线
     .sec-panel-head: padding-bottom 12px, border-bottom 1px hairline
   选项卡按同一套数值落地：选中项＝完整复刻；未选中＝同一字体与颜色，仅隐藏那条短线。
   ========================================================================== */

.sec-panel-head .list.tabs,
.main-list .sec-panel-head .list.tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 24px;
	margin-bottom: 0;
	padding-bottom: 0;
	overflow: visible;
	border-bottom: 2px solid rgba(99, 99, 99, 0.1);
}

.sec-panel-head .list.tabs .tab {
	margin: 0 !important;
	padding: 0;
}

.sec-panel-head .list.tabs .tab a,
.sec-panel-head .list.tabs .tab a:hover,
.sec-panel-head .list.tabs .tab.active a,
.list.tabs .tab.active a {
	position: relative;
	display: inline-block;
	padding: 0 0 12px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	font-family: inherit;
	font-size: 20px !important;
	font-weight: 700 !important;
	font-style: normal !important;
	letter-spacing: 0.2px;
	line-height: 27px !important;
	color: rgb(0, 136, 204) !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

/* 文字下方那条 2px 蓝色短线（宽度＝文字宽度） */
.sec-panel-head .list.tabs .tab a::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: rgb(0, 136, 204);
	opacity: 0;
	transition: opacity var(--angh-dur) var(--angh-ease);
}

.sec-panel-head .list.tabs .tab.active a::before {
	opacity: 1;
}

.sec-panel-head .list.tabs .tab a:hover::before {
	opacity: 0.45;
}

/* 主题原本给选中项的蓝色下划线（绝对定位在 a 内）已由上面的 ::before 接管 */
.sec-panel-head .list.tabs .tab.active a::after,
.list.tabs .tab.active a::after {
	display: none !important;
}

@media (max-width: 1219px) {
	.sec-panel-head .list.tabs,
	.main-list .sec-panel-head .list.tabs {
		gap: 0 18px;
	}
	.sec-panel-head .list.tabs .tab a,
	.sec-panel-head .list.tabs .tab a:hover,
	.sec-panel-head .list.tabs .tab.active a {
		font-size: 18px !important;
		line-height: 25px !important;
		letter-spacing: 0.1px;
	}
}

/* 选项卡：把间距收到能单行排下 5 项（20px 字号下 5×81px + 4 间距 ≈ 469px ≤ 474px 栏宽），
   蓝色短线位置与参照物完全对齐（参照物 span::before 的 bottom 为 -2px，压在淡灰横线上）。 */
.sec-panel-head .list.tabs,
.main-list .sec-panel-head .list.tabs {
	gap: 0 16px;
}

.sec-panel-head .list.tabs .tab a::before {
	bottom: -2px;
}

@media (max-width: 1219px) {
	.sec-panel-head .list.tabs,
	.main-list .sec-panel-head .list.tabs {
		gap: 0 12px;
	}
	.sec-panel-head .list.tabs .tab a,
	.sec-panel-head .list.tabs .tab a:hover,
	.sec-panel-head .list.tabs .tab.active a {
		font-size: 18px !important;
		line-height: 25px !important;
	}
}

/* 板块头下边框统一为 1px 发丝线：主题给 .main-list .sec-panel-head 加了 2px 淡灰线，
   与参照物（天使乐园的板块头是 1px #e3e8ed）不一致；选项卡条带自己那条 2px 淡灰线
   已经对应参照物 h3 的 border-bottom，所以这条这里要回到 1px。 */
.sec-panel-head {
	border-bottom: 1px solid var(--angh-hairline) !important;
}

/* ==========================================================================
   模块选项卡：主项 ≡ 栏目名「天使乐园」，其余 ≡ 次要链接「成长点滴」
   --------------------------------------------------------------------------
   参照物（同一页面）：
     主项  h3 > span > a  : 20px / 700 / rgb(0,136,204) / ls .2px / lh 27px /
                            padding 0 0 12px / 盒高 39px / 文字下 2px 蓝线
                            （span::before，宽＝文字宽，圆角 2px，bottom -2px）
     次要  .sec-panel-more > a （「成长点滴」）:
                            13px / 400 / rgb(90,101,112) / ls .2px / lh 17.55px /
                            padding 0 / 无边框无底色无装饰线
   于是这个板块头读起来就是「最新文章  老树随笔 软件资源 屿岸咖啡 纯色书房」，
   与其它板块头的「天使乐园  成长点滴」同构。
   ========================================================================== */

/* 未选中 = 次要链接 */
.sec-panel-head .list.tabs .tab a,
.sec-panel-head .list.tabs .tab a:hover {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: 0.2px;
	line-height: 1.35 !important;
	color: var(--angh-ink-3) !important;
	text-decoration: none !important;
}

.sec-panel-head .list.tabs .tab a:hover {
	color: var(--angh-ink-1) !important;
}

/* 次要项没有那条蓝线 */
.sec-panel-head .list.tabs .tab a::before {
	display: none !important;
}

/* 选中 = 栏目名 */
.sec-panel-head .list.tabs .tab.active a,
.sec-panel-head .list.tabs .tab.active a:hover {
	padding: 0 0 12px !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 27px !important;
	letter-spacing: 0.2px;
	color: rgb(0, 136, 204) !important;
}

.sec-panel-head .list.tabs .tab.active a::before {
	display: block !important;
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: rgb(0, 136, 204) !important;
	opacity: 1;
}

/* 次要项与主项按基线对齐，读起来是「大标题 + 一串次要入口」 */
.sec-panel-head .list.tabs,
.main-list .sec-panel-head .list.tabs {
	align-items: baseline;
	gap: 0 16px;
}

/* ==========================================================================
   手机端布局优化（≤767px）
   --------------------------------------------------------------------------
   逐项对应实测到的问题，不是泛泛调字号：
   ① 头部是 position:fixed、实高 62px，但主题给的占位只有 50px
      → 首屏内容被吃掉 12px（实测 main y=52 / 头部底 62）
   ② 头部内边距左右不对称（左 15 / 右 10），内容看起来偏右
   ③ 移动菜单展开后盒子只有 100px 高、内部滚动（11 项总高 539px），
      一屏只能看到两项
   ④ 评论/搜索表单字号 14px，iOS Safari 聚焦时会强制放大页面
   ⑤ 列表行高 79px，可点区域只有文字那 50px（上下各 14px 点了没反应）
   ⑥ Global Gallery 容器被 JS 固定成 336px，父盒 326px，右缘裁掉 10px
   ⑦ 首页选项卡在 390px 下余量为 0（81+4×53+4×16=357 / 可用 357）
   ========================================================================== */

@media (max-width: 767px) {
	/* ① 补上 fixed 头部差的那 12px（占位 50px + 12px = 实际 62px） */
	.main {
		padding-top: 12px;
	}

	/* ② 头部左右内边距对称 */
	.header > .container,
	.header .container-fluid {
		padding-left: 15px;
		padding-right: 15px;
	}
	.header .navbar-header {
		margin-left: -5px;
		margin-right: -5px;
	}

	/* ③ 移动菜单是整屏抽屉（position:fixed / top:0 / bottom:0 / right:100%）：
	      主题写的是 height:100%!important，百分比在它的包含块里解析不出来，
	      实测展开后盒子只剩 padding 那 100px（内容 657px 压在里头滚），
	      所以显式给整屏高度；关闭态还在屏幕左侧外，不影响页面布局。 */
	.header .navbar-collapse {
		height: 100vh !important;
		height: 100dvh !important;
		max-height: 100vh !important;
		max-height: 100dvh !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
	}

	/* ④ 表单控件 16px 起，避免 iOS 聚焦缩放 */
	.entry-content input,
	.entry-content textarea,
	.entry-content select,
	.comment-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
	.comment-form textarea,
	.comment-form select,
	#commentform input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
	#commentform textarea,
	#commentform select,
	.widget input[type="text"],
	.widget input[type="search"],
	.widget select,
	.search-form input[type="text"],
	.search-form input[type="search"] {
		font-size: 16px !important;
		line-height: 1.5;
		min-height: 44px;
	}
	.comment-form textarea,
	#commentform textarea {
		min-height: 120px;
	}

	/* ⑤ 列表行整行可点：给链接加内边距再用负外边距抵消，视觉不变、热区变高 */
	.post-loop-list > li.item {
		position: relative;
	}
	.post-loop-list > li.item > a {
		padding-top: 11px;
		padding-bottom: 11px;
		margin-top: -11px;
		margin-bottom: -11px;
	}

	/* ⑥ 图库容器按父宽，右边那 10px 不再被裁 */
	.gg_gallery_wrap .gg_container,
	.gg_gallery_wrap .gg_main_image {
		width: 100% !important;
		max-width: 100% !important;
	}

	/* 长链接、长英文串不撑破正文 */
	.entry-content {
		overflow-wrap: break-word;
		word-break: break-word;
	}
	.entry-content pre,
	.entry-content table,
	.entry-content .wp-block-table {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* 首页大图标题略放大，手机上一行放得下更多信息 */
	.slide-title,
	.swiper-slide .slide-title {
		font-size: 17.5px !important;
		line-height: 1.45 !important;
	}
}

/* ⑦ 小屏（≤480px）选项卡收紧，留出余量 */
@media (max-width: 480px) {
	.sec-panel-head .list.tabs,
	.main-list .sec-panel-head .list.tabs {
		gap: 0 12px;
	}
	.sec-panel-head .list.tabs .tab.active a,
	.sec-panel-head .list.tabs .tab.active a:hover {
		font-size: 18px !important;
		line-height: 25px !important;
	}
	.sec-panel-head .list.tabs .tab a,
	.sec-panel-head .list.tabs .tab a:hover {
		font-size: 12.5px !important;
	}
}

/* 手机端收尾两处（主题用了 !important，这里需要同等优先级覆盖）：
   头部容器左右内边距不对称（主题 .container 在移动端是 15/10） */
@media (max-width: 767px) {
	.header > .container.clearfix,
	.header > .container {
		padding-left: 15px !important;
		padding-right: 15px !important;
	}

}

@media (max-width: 767px) {
	/* 菜单按钮加热区到 44×44，居中于 62px 头部 */
	.header .navbar-toggle {
		min-width: 44px;
		min-height: 44px;
		margin-top: 9px;
		margin-bottom: 9px;
	}

	/* 移动端分页只留「上一页 / 下一页」，把热区做到 44px 高并排布 */
	.pagination {
		display: flex !important;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 10px;
		text-align: center;
	}
	.pagination > a,
	.pagination > span {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		margin: 0 !important;
		padding: 0 16px !important;
		border-radius: var(--angh-r-sm);
	}
	.pagination > a.current {
		pointer-events: none;
	}
}

@media (max-width: 767px) {
	/* 分页：手机上只留「x / y」计数与上一页/下一页，页码数字隐藏（否则 6 个 44px 按钮排不下要折三行） */
	.pagination > a:not(.prev):not(.next) {
		display: none !important;
	}
	.pagination > span {
		display: inline-flex !important;
		border: 0 !important;
		background: none !important;
		color: var(--angh-ink-3) !important;
		font-size: 13px !important;
	}
}

/* 更小屏（≤480px）：选项卡再收一档，保证 360px 也能单行 */
@media (max-width: 480px) {
	.sec-panel-head .list.tabs,
	.main-list .sec-panel-head .list.tabs {
		gap: 0 10px;
	}
	.sec-panel-head .list.tabs .tab.active a,
	.sec-panel-head .list.tabs .tab.active a:hover {
		font-size: 17px !important;
		line-height: 24px !important;
	}
	.sec-panel-head .list.tabs .tab a,
	.sec-panel-head .list.tabs .tab a:hover {
		font-size: 12px !important;
		letter-spacing: 0;
	}
}

@media (max-width: 767px) {
	/* 手机端模块逐块堆叠，原来首尾只隔 1~3px（实测 646→647、1246→1249），挤成一片。
	   给每个模块标题栏补上方间距。两处坑：
	   ① 模块不在 .main 里（closest('.main') 为 null），不能用 .main 前缀；
	   ② 用 padding-top 而非 margin-top —— margin 会一路穿过 .section/.row 与父级合并，实测反而变回 1px。 */
	.sec-panel .sec-panel-head {
		padding-top: 20px;
	}
	/* 模块最后一个列表项与下一页内容之间留白 */
	.sec-panel-body > *:last-child {
		margin-bottom: 0;
	}
}

/* ══════════════════════════════════════════════════════════════
   屏读专用文字（仅无障碍/SEO 可见，不影响视觉布局）
   用于首页 H1 站标图旁补一段可被检索的站点名称文字
   ══════════════════════════════════════════════════════════════ */
.angh-sr-only{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    clip-path:inset(50%)!important;
    white-space:nowrap!important;
    border:0!important;
}

/* ══════════════════════════════════════════════════════════════
   站标 · 组合标（Combination Mark：图形 + 字标）
   图形：圆角方砖 + 天使光环 + 屋顶 —— 「天使」的环与「屋」的屋顶合于一个几何形
   字标：天使屋（墨色、加粗、微字距） + SINCE 2010（拉字距的小号大写）
   字体族与主导航同源；内联 SVG 与真文字，零额外请求、零 CLS
   ══════════════════════════════════════════════════════════════ */
.header .logo a[rel="home"].angh-brand{
    display:inline-flex;
    align-items:center;
    gap:10px;
    height:100%;
    padding:0 2px;
    text-decoration:none!important;
    border-radius:10px;
    transition:opacity var(--angh-dur,.2s) var(--angh-ease,ease);
}
.header .logo .angh-brand-mark{
    display:block;
    width:28px;
    height:28px;
    flex:0 0 auto;
    filter:drop-shadow(0 1px 1px rgba(11,107,147,.18));
    transition:transform var(--angh-dur,.2s) var(--angh-ease,ease),
               filter var(--angh-dur,.2s) var(--angh-ease,ease);
}
.header .logo .angh-brand-text{
    display:flex;
    flex-direction:column;
    justify-content:center;
    line-height:1;
}
/* 副行「SINCE 2010」用伪元素渲染：纯装饰，不进 H1 文本（H1 只留可索引的「天使屋」） */
.header .logo .angh-brand-text::after{
    content:"SINCE 2010";
    display:block;
    margin-top:3px;
    font-family:var(--angh-font-ui);
    font-size:9px;
    font-weight:600;
    letter-spacing:.2em;
    line-height:1.1;
    color:var(--angh-ink-3,#5a6570);
}
.header .logo .angh-brand-name{
    font-family:var(--angh-font-ui);
    font-size:19px;
    font-weight:700;
    letter-spacing:.06em;
    line-height:1.1;
    color:var(--angh-ink-1,#1b2229);
    white-space:nowrap;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    transition:color var(--angh-dur,.2s) var(--angh-ease,ease);
}
/* 悬停 / 键盘聚焦：图形轻抬 + 字标转强调色（不做花哨动效） */
.header .logo a[rel="home"].angh-brand:hover .angh-brand-mark{
    transform:translateY(-1px);
    filter:drop-shadow(0 3px 6px rgba(11,107,147,.28));
}
.header .logo a[rel="home"].angh-brand:hover .angh-brand-name{
    color:var(--angh-accent,#0b6b93);
}
.header .logo a[rel="home"].angh-brand:focus-visible{
    outline:2px solid var(--angh-accent,#0b6b93);
    outline-offset:4px;
}
/* 触屏设备不做悬停态，避免点按后残留 */
@media (hover:none){
    .header .logo a[rel="home"].angh-brand:hover .angh-brand-mark{ transform:none; filter:drop-shadow(0 1px 1px rgba(11,107,147,.18)); }
    .header .logo a[rel="home"].angh-brand:hover .angh-brand-name{ color:var(--angh-ink-1,#1b2229); }
}
@media (prefers-reduced-motion:reduce){
    .header .logo .angh-brand-mark,
    .header .logo .angh-brand-name,
    .header .logo a[rel="home"].angh-brand{ transition:none; }
}
/* 手机端：图形与字号略收，保持「图形 + 两行字标」结构；并在 62px 头部内垂直居中 */
@media (max-width:767px){
    .header .logo{
        display:flex!important;
        align-items:center!important;
        height:62px!important;
    }
    .header .logo a[rel="home"].angh-brand{ gap:9px; }
    .header .logo .angh-brand-mark{ width:26px; height:26px; }
    .header .logo .angh-brand-name{ font-size:17px; }
    .header .logo .angh-brand-text::after{ font-size:8px; letter-spacing:.18em; margin-top:2px; }
}
