/*
Theme Name: 微笑莲花 Lotus Pond
Theme URI: https://smilinglotus.net/
Description: "Lotus pond" look for 哈瑞奎师那中文资料库: one type scale, system Chinese fonts (no web fonts), phone tab bar and a shared mini player. Child theme of Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Text Domain: smilinglotus-pond
*/

:root {
	--slp-pond: #0e5b57;
	--slp-pond-dark: #0a4642;
	--slp-lotus: #d6407a;
	--slp-lotus-dark: #bd3168;
	--slp-accent: #0e6b66;
	--slp-mist: #eef6f4;
	--slp-line: #e1ebe9;
	--slp-text: #152321;
	--slp-meta: #5d6b69;
	--slp-band: #fdeef4;
	--slp-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
	--slp-tab-h: 58px;
	--slp-mini-h: 64px;
}

/* ---------- base: one type scale ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: #fff;
	color: var(--slp-text);
	font-family: var(--slp-font);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.8;
	overflow-x: hidden;
}
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-site-blocks > header, .wp-site-blocks > footer { margin: 0; }
a { color: var(--slp-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(214, 64, 122, .45); outline-offset: 2px; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5, h6 { font-family: var(--slp-font); color: var(--slp-text); font-weight: 700; line-height: 1.4; letter-spacing: 0; }
h1, .wp-block-post-title { font-size: 30px; margin: 0 0 6px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4, h5, h6 { font-size: 17px; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.slp-wrap { box-sizing: content-box !important; max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.slp-meta { font-size: 14px; line-height: 1.6; color: var(--slp-meta); margin: 0; }
.slp-meta a { color: var(--slp-accent); }

/* ---------- header: one menu ---------- */
.slp-header { position: relative; background: #fff; border-bottom: 1px solid var(--slp-line); z-index: 60; }
.slp-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.slp-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--slp-pond); font-size: 18px; font-weight: 700; white-space: nowrap; min-height: 44px; }
.slp-brand:hover { text-decoration: none; color: var(--slp-pond-dark); }
.slp-lotus { display: block; flex: none; }
.slp-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.slp-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 16px; color: var(--slp-text); white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; }
.slp-nav a:hover { color: var(--slp-lotus); text-decoration: none; }
.slp-nav a.is-current { color: var(--slp-lotus); box-shadow: inset 0 -3px 0 var(--slp-lotus); font-weight: 600; }
.slp-menu-btn { display: none; }
.slp-menu-btn svg, .slp-mini svg, .slp-play svg, .slp-tabbar svg { display: block; }
@media (max-width: 1000px) and (min-width: 640px) {
	.slp-nav a { padding: 0 7px; }
}
@media (max-width: 639px) {
	.slp-menu-btn {
		display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
		border: 1px solid var(--slp-line); border-radius: 999px; background: #fff; color: var(--slp-pond);
		font: inherit; font-size: 16px; line-height: 1; cursor: pointer;
	}
	.slp-menu-btn svg { width: 20px; height: 20px; }
	.slp-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; background: #fff;
		padding: 4px 20px 12px; border-bottom: 1px solid var(--slp-line); box-shadow: 0 12px 24px rgba(10, 70, 66, .12);
	}
	.slp-nav.is-open { display: flex; }
	.slp-nav a { min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--slp-line); box-shadow: none; }
	.slp-nav a:last-child { border-bottom: 0; }
	.slp-nav a.is-current { box-shadow: inset 3px 0 0 var(--slp-lotus); padding-left: 12px; }
}

/* ---------- home hero: the pond ---------- */
.slp-hero {
	position: relative; overflow: hidden; text-align: center; color: #fff;
	background: linear-gradient(#0e5b57, #0a4642);
	padding: 52px 0 172px;
}
.slp-hero::before {
	content: ""; position: absolute; right: 9%; top: 26px; width: 86px; height: 86px; border-radius: 50%;
	background: radial-gradient(circle at 42% 40%, rgba(255, 255, 255, .26), rgba(255, 255, 255, .1) 58%, rgba(255, 255, 255, 0) 72%);
	box-shadow: 0 0 70px 10px rgba(255, 255, 255, .06);
}
.slp-hero .slp-wrap { position: relative; z-index: 1; }
.slp-hero h1 { color: #fff; font-size: clamp(24px, 6vw, 42px); line-height: 1.3; margin: 0 0 10px; }
.slp-hero p { color: rgba(255, 255, 255, .9); font-size: 17px; margin: 0 auto 22px; }
.slp-hero-scene { position: absolute; left: 0; bottom: 0; width: 100%; height: 150px; display: block; pointer-events: none; }
@media (max-width: 639px) {
	.slp-hero { padding: 34px 0 118px; }
	.slp-hero::before { width: 46px; height: 46px; top: 8px; right: 3%; }
	.slp-hero-scene { height: 108px; }
}

/* search form (hero, sidebar, results) */
.slp-search { display: flex; align-items: center; gap: 4px; max-width: 560px; margin: 0 auto; padding: 4px; background: #fff; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .14); box-sizing: border-box; }
.slp-search input {
	flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
	background: transparent; color: var(--slp-text); font: inherit; font-size: 16px; line-height: 1.4; outline-offset: -2px;
}
.slp-search input::placeholder { color: #7f8c8a; }
.slp-search button {
	flex: none; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--slp-lotus); color: #fff; font: inherit; font-size: 16px; font-weight: 600; line-height: 1;
}
.slp-search button:hover { background: var(--slp-lotus-dark); }
.slp-search.side, .slp-search.list { box-shadow: none; border: 1px solid var(--slp-line); margin: 0; max-width: none; }
.slp-search.list { margin: 4px 0 20px; max-width: 560px; }

/* ---------- home sections ---------- */
.slp-section { padding-top: 36px; }
.slp-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.slp-sec-head h2 { margin: 0; font-size: 22px; }
.slp-sec-head a { font-size: 14px; white-space: nowrap; }
.slp-more { margin: 16px 0 0; }
.slp-btn-line {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--slp-line);
	border-radius: 999px; font-size: 16px; color: var(--slp-accent); background: #fff;
}
.slp-btn-line:hover { border-color: var(--slp-accent); text-decoration: none; }
.slp-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px;
	border-radius: 999px; background: var(--slp-lotus); color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap;
}
.slp-btn:hover { background: var(--slp-lotus-dark); color: #fff; text-decoration: none; }

/* post rows: home, lists, search */
.slp-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--slp-line); }
.slp-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--slp-line); margin: 0; }
.slp-play {
	width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	background: var(--slp-lotus); color: #fff; box-shadow: 0 3px 8px rgba(214, 64, 122, .28);
}
.slp-play:hover { background: var(--slp-lotus-dark); }
.slp-play svg { width: 22px; height: 22px; }
.slp-play.is-playing { background: var(--slp-pond); box-shadow: 0 0 0 4px rgba(14, 91, 87, .15); }
.slp-noplay { background: var(--slp-mist); color: var(--slp-meta); box-shadow: none; cursor: default; }
.slp-row-body { min-width: 0; }
.slp-row-title { display: block; font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--slp-text); overflow-wrap: anywhere; }
.slp-row-title:hover { color: var(--slp-accent); }
.slp-row .slp-meta { margin-top: 2px; }

/* library cards */
.slp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.slp-card { display: block; padding: 16px; border-radius: 16px; background: var(--slp-mist); color: var(--slp-text); border: 1px solid transparent; }
.slp-card:hover { text-decoration: none; border-color: #c9e0db; background: #e6f1ee; }
.slp-card-name { display: block; font-size: 18px; font-weight: 700; line-height: 1.5; }
.slp-card-series { display: block; margin: 4px 0 8px; font-size: 14px; line-height: 1.6; color: var(--slp-meta); }
.slp-card-count { font-size: 14px; color: var(--slp-accent); font-weight: 600; }

/* teachers */
.slp-teachers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 28px; }
@media (min-width: 640px) { .slp-teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .slp-teachers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.slp-teachers li { margin: 0; }
.slp-teachers a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--slp-line); color: var(--slp-text); font-size: 18px; font-weight: 600; }
.slp-teachers a:hover { color: var(--slp-accent); text-decoration: none; }
.slp-t-count { flex: none; font-size: 14px; font-weight: 400; color: var(--slp-meta); }

/* app band */
.slp-appband {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	margin: 40px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--slp-band);
}
.slp-appband h2 { margin: 0 0 4px; font-size: 22px; }
.slp-appband p { margin: 0; }
.slp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.slp-actions > a:not(.slp-btn) { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- list / single layout ---------- */
.slp-main { padding-top: 28px; padding-bottom: 8px; }
.slp-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 860px) { .slp-cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; } }
.slp-content { min-width: 0; }
.slp-content > * + * { margin-block-start: 0; }
.slp-page-head { margin-bottom: 16px; }
.slp-page-head h1 { margin: 0 0 4px; }
.slp-cat-desc { margin: 0 0 16px; }
.slp-empty { margin: 20px 0; }
.slp-crumbs { font-size: 14px; line-height: 1.6; color: var(--slp-meta); margin: 0 0 8px; }
.slp-crumbs span { margin: 0 2px; }
@media (max-width: 639px) {
	h1, .wp-block-post-title, .slp-page-head h1 { font-size: 26px; }
	.slp-main { padding-top: 20px; }
}

/* pagination */
.slp-pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.slp-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
	min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--slp-line); border-radius: 12px;
	font-size: 16px; color: var(--slp-text); background: #fff;
}
.slp-pager a.page-numbers:hover { border-color: var(--slp-accent); color: var(--slp-accent); text-decoration: none; }
.slp-pager .page-numbers.current { background: var(--slp-pond); border-color: var(--slp-pond); color: #fff; font-weight: 600; }
.slp-pager .page-numbers.dots { border: 0; min-width: 24px; padding: 0; }

/* sidebar */
.slp-side { min-width: 0; }
.slp-widget { margin: 0 0 28px; }
.slp-widget-title { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.slp-feature { display: block; padding: 16px; border-radius: 16px; background: var(--slp-mist); color: var(--slp-text); }
.slp-feature:hover { text-decoration: none; background: #e6f1ee; }
.slp-feature-title { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.slp-feature-text { display: block; font-size: 17px; }
.slp-feature-go { display: inline-block; margin-top: 6px; color: var(--slp-accent); font-size: 14px; font-weight: 600; }
.slp-list { list-style: none; margin: 0; padding: 0; }
.slp-list li { margin: 0; }
.slp-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--slp-line); color: var(--slp-text); font-size: 18px; font-weight: 600; }
.slp-list a:hover { color: var(--slp-accent); text-decoration: none; }
.slp-count { font-size: 14px; font-weight: 400; color: var(--slp-meta); }
.slp-chips, .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.slp-chips a, .wp-block-tag-cloud a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
	background: var(--slp-mist); color: var(--slp-accent); font-size: 15px !important; line-height: 1.4;
}
.slp-chips a:hover, .wp-block-tag-cloud a:hover { background: #e0efeb; text-decoration: none; }
@media (max-width: 859px) {
	.slp-side .slp-widget:not(.slp-w-search) { display: none; }
	.slp-side { border-top: 1px solid var(--slp-line); padding-top: 20px; }
}

/* ---------- single post / page content ---------- */
.slp-post-meta { margin: 0 0 4px; }
.slp-entry { font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.slp-entry p, .slp-entry li { font-size: 17px; line-height: 1.8; }
.slp-entry h2 { font-size: 22px; margin: 1.6em 0 .5em; }
.slp-entry h3 { font-size: 18px; margin: 1.4em 0 .4em; }
.slp-entry h4, .slp-entry h5, .slp-entry h6 { font-size: 17px; }
.slp-entry a { color: var(--slp-accent); }
.slp-entry table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.slp-entry pre { overflow-x: auto; }
.slp-entry blockquote { margin: 1em 0; padding: 4px 18px; border-left: 4px solid var(--slp-line); color: var(--slp-text); }
.slp-entry .has-small-font-size { font-size: 14px !important; }
.slp-entry span[style*="opacity"] { font-size: 14px; color: var(--slp-meta); opacity: 1 !important; }
.slp-page { padding-bottom: 8px; }
.slp-page .slp-entry, .slp-page > .wp-block-post-title { max-width: 860px; }

/* Audio Library page: list links 18px, counts 14px grey, two columns on wide screens */
.page-id-10941 .slp-entry ul.wp-block-list, .page-id-10942 .slp-entry ul.wp-block-list { padding-left: 0; list-style: none; }
.page-id-10941 .slp-entry ul.wp-block-list li, .page-id-10942 .slp-entry ul.wp-block-list li { border-bottom: 1px solid var(--slp-line); padding: 8px 0; margin: 0; break-inside: avoid; }
.page-id-10941 .slp-entry ul.wp-block-list li > a, .page-id-10942 .slp-entry ul.wp-block-list li > a { font-size: 18px; font-weight: 600; }
@media (min-width: 760px) {
	.page-id-10941 .slp-entry ul.wp-block-list, .page-id-10942 .slp-entry ul.wp-block-list { columns: 2; column-gap: 36px; }
}
.page-id-10941 .slp-page .slp-entry, .page-id-10942 .slp-page .slp-entry { max-width: none; }
.slp-entry h3[id] { scroll-margin-top: 16px; }

/* player card: the real audio elements from smilinglotus-audio.php and core audio blocks */
.slp-entry .sl-audio, .slp-entry .wp-block-audio {
	display: flex; flex-direction: column; gap: 10px; box-sizing: border-box;
	margin: 16px 0 22px; padding: 14px; border-radius: 14px; background: var(--slp-pond); color: #fff;
}
.slp-entry .sl-audio::before, .slp-entry .wp-block-audio::before { content: "收听本讲"; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.slp-entry .sl-audio audio, .slp-entry .wp-block-audio audio { display: block; width: 100%; min-height: 54px; margin: 0; border-radius: 10px; }
.slp-entry .wp-block-audio figcaption { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.slp-entry a.sl-dl {
	display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; box-sizing: border-box;
	min-height: 44px; padding: 0 18px; border: 1px solid var(--slp-line); border-radius: 14px;
	font-size: 14px; color: var(--slp-accent); background: #fff;
}
.slp-entry .sl-audio a.sl-dl { color: #fff; background: transparent; border-color: #6fa8a3; }
.slp-entry a.sl-dl::before { content: "↓"; margin-right: 6px; }
.slp-entry a.sl-dl:hover { text-decoration: none; background: rgba(255, 255, 255, .1); }

/* previous / next */
.slp-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 8px; }
.slp-postnav a { display: block; padding: 14px 16px; border: 1px solid var(--slp-line); border-radius: 14px; color: var(--slp-text); }
.slp-postnav a:hover { border-color: var(--slp-accent); text-decoration: none; }
.slp-pn-next { text-align: right; grid-column: 2; }
.slp-pn-label { display: block; font-size: 14px; color: var(--slp-meta); }
.slp-pn-title { display: block; font-size: 17px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 639px) {
	.slp-postnav { grid-template-columns: 1fr; }
	.slp-pn-next { grid-column: auto; }
	.slp-postnav > span:empty { display: none; }
}
.wp-block-comments { margin-top: 24px; }

/* ---------- footer ---------- */
.slp-footer { margin-top: 48px; padding: 28px 0; background: var(--slp-pond-dark); color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.7; }
.slp-footer p { margin: 2px 0; }
.slp-footer a { color: #fff; text-decoration: underline; }
.slp-foot-title { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 17px; font-weight: 600; }
.slp-preview-note { margin-top: 10px !important; color: #f6c6d8; }

/* ---------- mini player ---------- */
.slp-mini {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; box-sizing: border-box;
	display: flex; align-items: center; gap: 12px; min-height: var(--slp-mini-h); padding: 8px 12px 8px 16px;
	background: var(--slp-pond-dark); color: #fff; box-shadow: 0 -6px 18px rgba(0, 0, 0, .16);
}
.slp-mini[hidden] { display: none; }
.slp-mini-btn {
	flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	display: flex; align-items: center; justify-content: center; background: var(--slp-lotus); color: #fff;
}
.slp-mini-btn svg { width: 20px; height: 20px; }
.slp-mini-body { flex: 1; min-width: 0; }
.slp-mini-title { display: block; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slp-mini-title:hover { color: #fff; }
.slp-mini-bar { position: relative; padding: 7px 0; cursor: pointer; }
.slp-mini-bar::before { content: ""; display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.slp-mini-bar span { position: absolute; left: 0; top: 7px; height: 4px; width: 0; border-radius: 2px; background: #f28db3; }
.slp-mini-time { flex: none; font-size: 14px; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.slp-mini-close { flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slp-mini-close svg { width: 20px; height: 20px; }
body.slp-has-mini { padding-bottom: var(--slp-mini-h); }

/* ---------- phone tab bar ---------- */
.slp-tabbar { display: none; }
@media (max-width: 639px) {
	.slp-tabbar {
		display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 71;
		background: #fff; border-top: 1px solid var(--slp-line); padding-bottom: env(safe-area-inset-bottom);
	}
	.slp-tabbar a {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		min-height: var(--slp-tab-h); font-size: 13px; line-height: 1.2; color: var(--slp-meta);
	}
	.slp-tabbar a:hover { text-decoration: none; color: var(--slp-pond); }
	.slp-tabbar a.is-current { color: var(--slp-lotus); font-weight: 600; }
	.slp-tabbar svg { width: 24px; height: 24px; }
	body { padding-bottom: calc(var(--slp-tab-h) + env(safe-area-inset-bottom)); }
	body.slp-has-mini { padding-bottom: calc(var(--slp-tab-h) + var(--slp-mini-h) + env(safe-area-inset-bottom)); }
	.slp-mini { bottom: calc(var(--slp-tab-h) + env(safe-area-inset-bottom)); }
	.slp-footer { margin-top: 36px; }
}

/* Photo grids that replaced the old gallery plugins (was in the old theme's Additional CSS) */
.sl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 1em 0; }
.sl-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
