/* 歡喜生活 前台樣式：米白宣紙、淡藍輔助、土褐文字、適量留白。內文 18px 起。 */
.ejz-page, .ejz-wrap {
	--ejz-paper: #f7f2e7;
	--ejz-paper-2: #efe7d6;
	--ejz-blue: #8fb3c8;
	--ejz-blue-d: #3f6a83;
	--ejz-brown: #4d3a2b;
	--ejz-brown-l: #7a6350;
	--ejz-ink: #2f2f2f;
	--ejz-celadon: #a9c6b6;
	--ejz-red: #b5483a;
	--ejz-radius: 14px;
}
.ejz-wrap {
	color: var(--ejz-brown);
	font-size: 18px;
	line-height: 1.85;
	font-family: "Noto Serif TC", "Source Han Serif TC", "PMingLiU", "Songti TC", serif;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px 48px;
}
.ejz-page { background: var(--ejz-paper); }
.ejz-wrap * { box-sizing: border-box; }
.ejz-wrap a { color: var(--ejz-blue-d); }
.ejz-wrap img { max-width: 100%; height: auto; }

/* 選單 */
.ejz-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 0; border-bottom: 1px solid #d9cdb6; margin-bottom: 28px; }
.ejz-brand { font-size: 22px; font-weight: 700; letter-spacing: .2em; color: var(--ejz-brown) !important; text-decoration: none; }
.ejz-nav-links { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.ejz-nav-links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ejz-brown) !important; font-size: 18px; }
.ejz-nav-links a:hover, .ejz-nav-links a:focus { background: #e3edf2; }

/* 首頁 */
.ejz-hero { text-align: center; padding: 48px 16px 36px; background: radial-gradient(ellipse at 50% 40%, #fffdf8 0%, var(--ejz-paper) 60%, var(--ejz-paper-2) 100%); border-radius: var(--ejz-radius); margin-bottom: 28px; }
.ejz-hero h1 { font-size: clamp(36px, 7vw, 60px); margin: 0; letter-spacing: .25em; color: var(--ejz-brown); font-weight: 600; }
.ejz-hero p { font-size: 20px; color: var(--ejz-brown-l); margin: 8px 0 0; letter-spacing: .2em; }

.ejz-today { background: #fffdf8; border: 1px solid #e3d8c3; border-radius: var(--ejz-radius); padding: 28px 24px; text-align: center; margin: 0 0 36px; }
.ejz-today blockquote { font-size: clamp(24px, 4vw, 34px); line-height: 1.6; margin: 12px 0; border: 0; padding: 0; color: var(--ejz-ink); }
.ejz-today blockquote a { color: inherit !important; text-decoration: none; }
.ejz-today cite { display: block; color: var(--ejz-brown-l); font-style: normal; }

.ejz-label { display: inline-block; color: var(--ejz-blue-d); font-size: 16px; letter-spacing: .1em; margin: 0 0 4px; }
.ejz-slogan { color: var(--ejz-brown-l); margin-top: 0; }
.ejz-h1 { font-size: clamp(28px, 4.5vw, 40px); color: var(--ejz-brown); margin: 0 0 8px; letter-spacing: .08em; }
.ejz-head { margin-bottom: 24px; }
.ejz-head p { color: var(--ejz-brown-l); margin: 0; }

.ejz-sec { margin: 0 0 40px; }
.ejz-sec-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #ddd0b8; margin-bottom: 18px; }
.ejz-sec-head h2 { font-size: 26px; margin: 0 0 8px; color: var(--ejz-brown); }
.ejz-sec-head a { font-size: 18px; }

/* 卡片 */
.ejz-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ejz-card { position: relative; display: block; background: #fffdf8; border: 1px solid #e3d8c3; border-radius: var(--ejz-radius); overflow: hidden; text-decoration: none; color: var(--ejz-brown) !important; transition: box-shadow .2s; }
.ejz-card:hover, .ejz-card:focus-within { box-shadow: 0 6px 18px rgba(77, 58, 43, .12); }
.ejz-card-body { padding: 14px 18px 18px; }
.ejz-card h3 { font-size: 21px; line-height: 1.45; margin: 4px 0 6px; color: var(--ejz-brown); }
.ejz-card h3 a { color: inherit !important; text-decoration: none; }
.ejz-card p { margin: 0; font-size: 17px; color: #5f4c3d; }
.ejz-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ejz-paper-2); }
.ejz-thumb-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #eef3f2, #f3ece0); }
.ejz-thumb-empty span { font-size: 44px; color: rgba(63, 106, 131, .35); }
.ejz-card-quote { padding: 26px 22px; display: flex; flex-direction: column; justify-content: center; min-height: 170px; }
.ejz-card-quote blockquote { margin: 0; border: 0; padding: 0; font-size: 22px; line-height: 1.6; color: var(--ejz-ink); }
.ejz-card-quote cite { margin-top: 10px; font-style: normal; color: var(--ejz-brown-l); font-size: 16px; }
.ejz-card-quote.is-fav::after { content: "★"; position: absolute; top: 10px; right: 14px; color: #c99a3b; }

.ejz-badge { position: absolute; top: 12px; left: 12px; background: rgba(255, 253, 248, .95); color: var(--ejz-blue-d); border: 1px solid var(--ejz-blue); border-radius: 999px; padding: 2px 12px; font-size: 15px; }
.ejz-badges .ejz-badge { position: static; margin-right: 6px; }
.ejz-new { color: var(--ejz-red); border-color: var(--ejz-red); }
.ejz-hot { color: #9a6a12; border-color: #c99a3b; }

/* 按鈕 */
.ejz-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--ejz-blue-d); background: #fffdf8; color: var(--ejz-blue-d) !important; font-size: 18px; text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.2; }
.ejz-btn:hover, .ejz-btn:focus { background: #e3edf2; }
.ejz-btn:focus-visible { outline: 3px solid #f0b54a; outline-offset: 2px; }
.ejz-btn-big { min-height: 56px; font-size: 20px; padding: 10px 28px; }
.ejz-btn-primary, .ejz-line.ejz-btn-big { background: var(--ejz-blue-d); color: #fff !important; }
.ejz-line { border-color: #2f8f4e; color: #23703c !important; }
.ejz-line.ejz-btn-big { background: #2f8f4e; border-color: #2f8f4e; }
.ejz-btn[aria-pressed="true"] { background: #fbefd2; border-color: #c99a3b; color: #8a5d0c !important; }

.ejz-quote-tools, .ejz-share { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0; align-items: center; }
.ejz-share { justify-content: flex-start; border-top: 1px solid #e3d8c3; padding-top: 18px; margin-top: 32px; }

/* 單篇 */
.ejz-single .ejz-prose p { margin: 0 0 1.1em; }
.ejz-quote-hero { text-align: center; margin: 24px 0; padding: 48px 20px; background: #fffdf8; border-radius: var(--ejz-radius); border: 1px solid #e3d8c3; }
.ejz-quote-hero blockquote { font-size: clamp(28px, 5vw, 40px); line-height: 1.6; margin: 0; border: 0; padding: 0; color: var(--ejz-ink); }
.ejz-quote-hero figcaption { margin-top: 14px; color: var(--ejz-brown-l); }
.ejz-sutra { background: #eef4f1; border-left: 5px solid var(--ejz-celadon); border-radius: 0 var(--ejz-radius) var(--ejz-radius) 0; padding: 18px 22px; margin: 24px 0; }
.ejz-sutra h3 { margin: 0 0 8px; font-size: 20px; color: #3d6152; }
.ejz-sutra blockquote { margin: 0; padding: 0; border: 0; font-size: 21px; color: var(--ejz-ink); }
.ejz-src { color: var(--ejz-brown-l); margin: 6px 0; font-size: 16px; }
.ejz-closing { font-size: 21px; text-align: center; color: var(--ejz-brown); margin: 32px 0; padding: 18px; border-top: 1px dashed #cbbd9f; border-bottom: 1px dashed #cbbd9f; }
.ejz-tags a { display: inline-block; margin: 0 8px 6px 0; font-size: 16px; text-decoration: none; }
.ejz-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ejz-radius); overflow: hidden; background: #e9e1d0; margin: 12px 0 24px; }
.ejz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ejz-video-soon .ejz-thumb { height: 100%; aspect-ratio: auto; opacity: .55; }
.ejz-video-soon p { position: absolute; inset: auto 0 0 0; margin: 0; padding: 16px; text-align: center; font-size: 22px; background: rgba(255, 253, 248, .9); }
.ejz-block h2, .ejz-world-sec h2 { font-size: 24px; color: var(--ejz-brown); margin: 30px 0 10px; }
.ejz-world-sec h2 span { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ejz-blue); color: #fff; font-size: 18px; margin-right: 10px; vertical-align: 2px; }
.ejz-sources, .ejz-corrections { background: #fffdf8; border: 1px solid #e3d8c3; border-radius: var(--ejz-radius); padding: 14px 20px; margin: 24px 0; font-size: 17px; }
.ejz-sources h3, .ejz-corrections h3 { margin: 0 0 6px; font-size: 19px; }
.ejz-note { color: var(--ejz-brown-l); font-size: 16px; }
.ejz-epnav { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0; flex-wrap: wrap; }
.ejz-related { margin-top: 36px; }
.ejz-related h3 { font-size: 22px; }
.ejz-sticker-head { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: 28px; align-items: start; }
.ejz-sticker-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 24px; }
.ejz-sticker-preview img { background: #fff; border-radius: 10px; padding: 6px; }

/* 角色 */
.ejz-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.ejz-char { background: #fffdf8; border: 1px solid #e3d8c3; border-radius: var(--ejz-radius); padding: 20px; text-align: center; }
.ejz-char img { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; }
.ejz-char-dot { display: inline-flex; width: 96px; height: 96px; border-radius: 50%; align-items: center; justify-content: center; background: #e3edf2; color: var(--ejz-blue-d); font-size: 40px; }
.ejz-char h3 { margin: 10px 0 0; font-size: 22px; }
.ejz-role { color: var(--ejz-blue-d); margin: 2px 0 6px !important; font-size: 16px; }
.ejz-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ejz-panel { display: block; padding: 32px 26px; border-radius: var(--ejz-radius); background: #e8f0f3; text-decoration: none; color: var(--ejz-brown) !important; }
.ejz-panel h2 { margin: 0 0 6px; font-size: 26px; }
.ejz-panel p { margin: 0; }
.ejz-panel-copy { background: #efe7d6; }

/* 搜尋 */
.ejz-search { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.ejz-search input, .ejz-search select { min-height: 48px; font-size: 18px; padding: 6px 14px; border: 1px solid #cbbd9f; border-radius: 10px; background: #fffdf8; color: var(--ejz-brown); font-family: inherit; }
.ejz-search input { flex: 1 1 220px; }
.ejz-empty { color: var(--ejz-brown-l); padding: 24px; text-align: center; background: #fffdf8; border-radius: var(--ejz-radius); }
.ejz-pager ul { list-style: none; display: flex; gap: 8px; padding: 0; justify-content: center; margin-top: 28px; }
.ejz-pager a, .ejz-pager span { display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid #ddd0b8; text-decoration: none; }
.ejz-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ejz-brown); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 18px; z-index: 99999; }

/* 抄經室 */
.ejz-copybook { --cell: min(78vw, 420px); }
.ejz-cb-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.ejz-cb-bar select { min-height: 48px; font-size: 18px; padding: 6px 12px; border-radius: 10px; border: 1px solid #cbbd9f; background: #fffdf8; font-family: inherit; color: var(--ejz-brown); }
.ejz-cb-main { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.ejz-cb-stage { position: relative; width: var(--cell); height: var(--cell); background: #fbf6ea; border: 2px solid #b9a37f; border-radius: 6px; touch-action: none; box-shadow: inset 0 0 40px rgba(185, 163, 127, .18); }
.ejz-cb-stage::before, .ejz-cb-stage::after { content: ""; position: absolute; pointer-events: none; border-color: rgba(181, 72, 58, .28); border-style: dashed; }
.ejz-cb-stage::before { left: 50%; top: 0; bottom: 0; border-width: 0 0 0 1px; }
.ejz-cb-stage::after { top: 50%; left: 0; right: 0; border-width: 1px 0 0 0; }
.ejz-cb-guide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: calc(var(--cell) * .78); line-height: 1; color: rgba(77, 58, 43, .13); font-family: "Noto Serif TC", "Source Han Serif TC", "PMingLiU", "Songti TC", serif; user-select: none; pointer-events: none; }
.ejz-cb-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.ejz-cb-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; max-width: var(--cell); }
.ejz-cb-line { font-size: 26px; letter-spacing: .15em; line-height: 1.8; margin: 0 0 6px; color: var(--ejz-ink); }
.ejz-cb-line .done { color: var(--ejz-blue-d); }
.ejz-cb-line .now { background: #fbefd2; border-bottom: 3px solid #c99a3b; }
.ejz-cb-line .todo { color: #b4a68e; }
.ejz-cb-progress { height: 14px; background: #e8dfcd; border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.ejz-cb-progress span { display: block; height: 100%; background: var(--ejz-celadon); transition: width .3s; }
.ejz-cb-meta { color: var(--ejz-brown-l); font-size: 16px; }
.ejz-cb-done { text-align: center; background: #fffdf8; border: 1px solid #e3d8c3; border-radius: var(--ejz-radius); padding: 24px; margin-top: 20px; }
.ejz-cb-done canvas { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }

@media (max-width: 760px) {
	.ejz-wrap { padding: 0 12px 40px; }
	.ejz-cb-main, .ejz-sticker-head, .ejz-duo { grid-template-columns: 1fr; }
	.ejz-cb-stage { margin: 0 auto; }
	.ejz-cb-tools { margin-left: auto; margin-right: auto; justify-content: center; }
	.ejz-nav-links a { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.ejz-card, .ejz-cb-progress span { transition: none; }
}

/* =========================================================
   v0.2 視覺：頂部玻璃質感大 Banner ＋ 下方水墨風格
   ========================================================= */
.ejz-page { overflow-x: hidden; }
.ejz-page.ejz-hub {
	background-color: #f5efe2;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .35 0 0 0 0 .26 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)'/%3E%3C/svg%3E");
}
/* 外掛頁面不顯示佈景主題的頁面標題（Astra／區塊主題），避免與 Banner 重複 */
.ejz-hub .entry-header, .ejz-hub .ast-archive-description, .ejz-hub .wp-block-post-title { display: none !important; }
.ejz-hub .site-content > .ast-container, .ejz-hub .entry-content { max-width: none; }
.ejz-page .ejz-wrap a, .ejz-page .entry-content .ejz-wrap a { text-decoration: none !important; }
.ejz-page .ejz-wrap .ejz-prose a, .ejz-page .ejz-wrap .ejz-sources a { text-decoration: underline !important; text-underline-offset: 3px; }
/* 讓 Banner 緊貼頁首 */
.ejz-hub #primary, .ejz-hub .site-main, .ejz-hub .site-content > .ast-container { margin-top: 0 !important; padding-top: 0 !important; }
.ejz-hub .entry-content > .ejz-home:first-child { margin-top: 0; }
.ejz-hub main.wp-block-group { margin-top: 0 !important; padding-top: 0 !important; }

/* --- 大 Banner --- */
.ejz-banner {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	min-height: min(88vh, 780px);
	display: flex;
	align-items: stretch;
	overflow: hidden;
	margin-top: -1px;
	margin-bottom: 56px;
	isolation: isolate;
}
.ejz-ink-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ejz-mist { animation: ejzMist 26s ease-in-out infinite alternate; }
@keyframes ejzMist { from { transform: translateX(-40px); } to { transform: translateX(60px); } }
.ejz-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, rgba(245, 239, 226, 0), #f5efe2); z-index: -1; }
.ejz-banner-inner { width: 100%; max-width: 1100px; margin: 0 auto; padding: 18px 16px 80px; display: flex; flex-direction: column; }

.ejz-nav-glass {
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 999px;
	padding: 8px 10px 8px 24px;
	background: rgba(255, 255, 255, .38);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	backdrop-filter: blur(14px) saturate(150%);
	box-shadow: 0 8px 30px -12px rgba(40, 34, 28, .35);
	margin-bottom: 0;
}

.ejz-glass {
	margin: auto;
	margin-top: clamp(40px, 9vh, 110px);
	width: min(720px, 100%);
	text-align: center;
	padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 56px);
	border-radius: 28px;
	background: linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .30));
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, .7);
	box-shadow: 0 30px 60px -28px rgba(30, 26, 22, .45), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(255, 255, 255, .25);
	position: relative;
}
.ejz-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .55), transparent 55%); pointer-events: none; }
.ejz-kicker { margin: 0 0 6px; letter-spacing: .4em; font-size: 16px; color: #3f6a83; }
.ejz-glass h1 { font-size: clamp(44px, 8vw, 78px); margin: 0; letter-spacing: .32em; text-indent: .32em; color: #241f1b; font-weight: 700; line-height: 1.25; text-shadow: 0 2px 18px rgba(255, 255, 255, .7); }
.ejz-banner-slogan { font-size: clamp(18px, 2.4vw, 22px); letter-spacing: .3em; color: #4d3a2b; margin: 6px 0 22px; }
.ejz-banner-quote { border-top: 1px solid rgba(77, 58, 43, .18); border-bottom: 1px solid rgba(77, 58, 43, .18); padding: 18px 0 14px; margin-bottom: 22px; }
.ejz-banner-quote blockquote { margin: 6px 0 0; padding: 0; border: 0; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.6; color: #241f1b; }
.ejz-banner-quote blockquote a { color: inherit !important; }
.ejz-banner-quote cite { display: block; font-style: normal; color: #6b5645; font-size: 16px; }
.ejz-banner-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ejz-btn-ink { background: #2b2622; border-color: #2b2622; color: #fbf6ea !important; }
.ejz-btn-ink:hover, .ejz-btn-ink:focus { background: #45392f; }
.ejz-btn-glass { background: rgba(255, 255, 255, .55); border-color: rgba(43, 38, 34, .45); color: #2b2622 !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ejz-glass .ejz-quote-tools { margin-bottom: 0; }
.ejz-glass .ejz-quote-tools .ejz-btn { min-height: 44px; font-size: 16px; padding: 6px 16px; background: rgba(255, 255, 255, .45); }

/* 不支援模糊效果的瀏覽器：提高不透明度確保易讀 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.ejz-glass, .ejz-nav-glass { background: rgba(255, 252, 245, .9); }
}

/* --- 下方水墨風格 --- */
.ejz-sec-head { border-bottom: 0; position: relative; padding-bottom: 14px; margin-bottom: 22px; }
.ejz-sec-head::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 10' preserveAspectRatio='none'%3E%3Cfilter id='b'%3E%3CfeTurbulence baseFrequency='.04 .6' numOctaves='2' seed='2'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='6'/%3E%3C/filter%3E%3Cpath d='M2 6 C120 2 260 8 420 4 S580 6 598 5' stroke='%232b2622' stroke-width='5' stroke-linecap='round' fill='none' opacity='.55' filter='url(%23b)'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.ejz-sec-head h2 { display: flex; align-items: center; gap: 12px; font-size: 28px; letter-spacing: .12em; color: #241f1b; }
.ejz-sec-head h2::before { content: ""; width: 14px; height: 30px; border-radius: 3px; background: #b5483a; opacity: .85; box-shadow: 2px 2px 0 rgba(181, 72, 58, .25); }

.ejz-card { border: 0; background: #fffcf5; box-shadow: 0 0 0 1px rgba(43, 38, 34, .10), 0 14px 30px -20px rgba(43, 38, 34, .45); border-radius: 18px; }
.ejz-card:hover, .ejz-card:focus-within { box-shadow: 0 0 0 1px rgba(43, 38, 34, .18), 0 20px 40px -20px rgba(43, 38, 34, .55); transform: translateY(-2px); }
.ejz-card { transition: box-shadow .25s, transform .25s; }
.ejz-card h3 { color: #241f1b; }
.ejz-thumb-empty {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 250' preserveAspectRatio='xMidYMax slice'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .05' numOctaves='3' seed='9'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='18'/%3E%3C/filter%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23333' stop-opacity='.42'/%3E%3Cstop offset='1' stop-color='%23333' stop-opacity='0'/%3E%3C/linearGradient%3E%3Ccircle cx='300' cy='70' r='22' fill='%23c8553f' opacity='.55' filter='url(%23b)'/%3E%3Cpath filter='url(%23b)' fill='url(%23g)' d='M-10 200 C40 150 80 120 120 150 C160 90 200 70 240 130 C280 110 320 120 410 170 L410 260 L-10 260Z'/%3E%3Cpath filter='url(%23b)' fill='%232b2b2b' opacity='.45' d='M-10 260 C40 220 90 205 140 230 C170 210 200 215 230 260Z'/%3E%3C/svg%3E") no-repeat center bottom / cover,
		linear-gradient(180deg, #e7eef0 0%, #f6f0e3 70%);
}
.ejz-thumb-empty span { display: none; }

.ejz-char { border: 0; box-shadow: 0 0 0 1px rgba(43, 38, 34, .10), 0 14px 30px -22px rgba(43, 38, 34, .45); border-radius: 18px; background: #fffcf5; }
.ejz-char-dot { background: radial-gradient(circle at 40% 35%, #ffffff, #e2ebef 60%, #cfdde4); color: #2b2622; box-shadow: inset 0 0 0 2px rgba(43, 38, 34, .12); font-weight: 600; }
.ejz-panel { position: relative; overflow: hidden; border-radius: 22px; padding: 40px 30px; min-height: 170px; color: #fbf6ea !important; background: #2f3b40; }
.ejz-panel::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='xMidYMax slice'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .05' numOctaves='3' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='20'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' fill='%23fff' opacity='.12' d='M-10 160 C60 100 110 80 160 120 C210 60 260 50 300 110 C340 90 370 100 410 130 L410 210 L-10 210Z'/%3E%3C/svg%3E") no-repeat bottom / cover; }
.ejz-panel > * { position: relative; }
.ejz-panel h2 { color: #fbf6ea; letter-spacing: .15em; }
.ejz-panel p { color: rgba(251, 246, 234, .85); }
.ejz-panel-copy { background: #6b4f3a; }

/* 列表與單篇頁的標題區：淡墨山水 */
.ejz-head { position: relative; padding: 34px 28px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #e6eef1, #f6f0e3); }
.ejz-head::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 160' preserveAspectRatio='xMaxYMax slice'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.015 .04' numOctaves='3' seed='11'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='22'/%3E%3C/filter%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23333' stop-opacity='.30'/%3E%3Cstop offset='1' stop-color='%23333' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cpath filter='url(%23b)' fill='url(%23g)' d='M380 170 C450 110 500 90 560 120 C610 60 660 40 710 100 C740 80 780 90 820 120 L820 180Z'/%3E%3C/svg%3E") no-repeat right bottom / 70% 100%; }
.ejz-head > * { position: relative; z-index: 1; }

@media (max-width: 760px) {
	.ejz-banner { min-height: auto; }
	.ejz-banner-inner { padding-bottom: 56px; }
	.ejz-nav-glass { border-radius: 22px; padding: 10px 14px; }
	.ejz-glass { margin-top: 28px; border-radius: 22px; }
	.ejz-glass h1 { letter-spacing: .18em; text-indent: .18em; }
}
@media (prefers-reduced-motion: reduce) {
	.ejz-mist { animation: none; }
	.ejz-card:hover { transform: none; }
}

/* =========================================================
   v0.3 靜心抄經室：描字抄經本
   ========================================================= */
.ejz-copybook .ejz-cb-bar { gap: 12px; }
.ejz-cb-name { min-height: 48px; font-size: 18px; padding: 6px 14px; border-radius: 10px; border: 1px solid #cbbd9f; background: #fffdf8; font-family: inherit; color: #4d3a2b; width: 13em; }
.ejz-cb-hint { color: #6b5645; margin: 4px 0 14px; }
.ejz-cb-paper { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; touch-action: none; overflow: hidden; border-radius: 8px; }
.ejz-cb-zoombox { position: absolute; top: 0; left: 50%; transform-origin: 50% 0; will-change: transform; }
.ejz-cb-page { border-radius: 6px; box-shadow: 0 18px 40px -24px rgba(43, 38, 34, .55), 0 0 0 1px rgba(43, 38, 34, .08); }
.ejz-cb-page, .ejz-cb-trail { position: absolute; top: 0; left: 0; display: block; }
.ejz-cb-trail { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M4 24 L9 23 L25 7 L21 3 L5 19 Z' fill='%23b5832a' stroke='%234d3a2b' stroke-width='1.2'/%3E%3C/svg%3E") 3 25, crosshair; }
.ejz-cb-paper.is-panning, .ejz-cb-paper.is-panning .ejz-cb-trail { cursor: grab; }
.ejz-cb-paper.is-panning:active, .ejz-cb-paper.is-panning:active .ejz-cb-trail { cursor: grabbing; }
/* 浮動放大縮小移動按鈕（固定在螢幕右下角） */
.ejz-cb-float { position: fixed; right: 12px; bottom: 14px; z-index: 9999; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: calc(100vw - 24px); padding: 8px; background: rgba(255, 252, 245, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(77, 58, 43, .18); border-radius: 16px; box-shadow: 0 12px 30px -14px rgba(43, 38, 34, .5); transition: opacity .25s, transform .25s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.ejz-cb-float.is-away { opacity: 0; pointer-events: none; transform: translateY(12px); }
.ejz-cb-fgroup { display: flex; align-items: center; gap: 4px; }
.ejz-cb-fbtn { width: 44px; height: 44px; border-radius: 11px; border: 1px solid rgba(77, 58, 43, .25); background: #fffdf8; color: #3b2d22; font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-family: inherit; touch-action: manipulation; }
.ejz-cb-fbtn:hover { background: #f3ead8; }
.ejz-cb-fbtn:disabled { opacity: .4; cursor: default; }
.ejz-cb-fbtn:focus-visible { outline: 3px solid #7fa7c9; outline-offset: 2px; }
.ejz-cb-fmode { font-size: 18px; font-weight: 600; }
.ejz-cb-fmode[aria-pressed="true"] { background: #4d3a2b; color: #fff; border-color: #4d3a2b; }
.ejz-cb-fpad { position: absolute; right: 8px; bottom: calc(100% + 8px); display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(3, 40px); gap: 3px; padding: 6px; background: rgba(255, 252, 245, .92); border: 1px solid rgba(77, 58, 43, .18); border-radius: 14px; }
.ejz-cb-fpad[hidden] { display: none; }
.ejz-cb-fpad .ejz-cb-fbtn { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
.ejz-cb-zlevel { font-size: 14px; color: #6b5645; min-width: 3.2em; text-align: center; }
.ejz-cb-fshow { display: none; }
.ejz-cb-float.is-min { padding: 6px; border-radius: 50%; }
.ejz-cb-float.is-min > :not(.ejz-cb-fshow) { display: none; }
.ejz-cb-float.is-min .ejz-cb-fshow { display: inline-flex; border-radius: 50%; }
.ejz-cb-paper, .ejz-cb-paper * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) {
	.ejz-cb-float { left: 8px; right: 8px; bottom: 8px; max-width: none; justify-content: space-between; gap: 4px; padding: 6px; }
	.ejz-cb-float.is-min { left: auto; }
	.ejz-cb-fbtn { width: 40px; height: 40px; font-size: 18px; }
	.ejz-cb-zlevel { min-width: 2.8em; font-size: 13px; }
	.ejz-cb-fpad { grid-template-columns: repeat(3, 38px); grid-template-rows: repeat(3, 38px); }
	.ejz-cb-fpad .ejz-cb-fbtn { width: 38px; height: 38px; }
}
@media print { .ejz-cb-float { display: none !important; } }
.ejz-cb-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 14px 0 4px; }
.ejz-cb-nav[hidden] { display: none; }
.ejz-cb-pageinfo { font-size: 18px; color: #4d3a2b; min-width: 7em; text-align: center; }
.ejz-cb-nav .ejz-btn { white-space: nowrap; }
.ejz-copybook .ejz-cb-tools { max-width: none; justify-content: flex-start; margin-top: 12px; }
.ejz-copybook .ejz-btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 640px) {
	.ejz-cb-name { width: 100%; }
	.ejz-copybook .ejz-cb-bar select { flex: 1 1 45%; }
	.ejz-copybook .ejz-cb-tools { justify-content: center; }
}

.ejz-cb-paper.is-loading::after { content: "字體載入中…"; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(255, 253, 248, .92); color: #6b5645; padding: 4px 14px; border-radius: 999px; font-size: 15px; z-index: 2; }

/* 歡喜貼圖小舖：一組貼圖一張小卡 */
.ejz-sticker-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 320px)); justify-content: center; }
.ejz-sticker-card { display: flex; flex-direction: column; text-align: center; transition: box-shadow .2s, transform .2s; }
.ejz-sticker-card:hover, .ejz-sticker-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(77, 58, 43, .16); }
.ejz-sticker-card:focus-visible { outline: 3px solid #7fa7c9; outline-offset: 3px; }
.ejz-sticker-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 22px; background: radial-gradient(circle at 50% 45%, #fffcf4 0%, #f4ecdc 100%); border-bottom: 1px solid #ece2cf; }
.ejz-sticker-img { width: 82%; height: auto; max-height: 100%; object-fit: contain; }
.ejz-sticker-card .ejz-card-body { display: flex; flex-direction: column; align-items: center; flex: 1; }
.ejz-sticker-card p { margin-bottom: 12px; }
.ejz-sticker-go { margin-top: auto; display: inline-block; padding: 9px 18px; border-radius: 999px; background: #06c755; color: #fff; font-size: 17px; font-weight: 600; }
.ejz-sticker-head .ejz-sticker-cover { border: 1px solid #e3d8c3; border-radius: var(--ejz-radius); max-width: 320px; }


/* 沒有插圖的文章：文字封面（宣紙底、淡墨字、朱紅小印） */
.ejz-thumb-text { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px 26px; box-sizing: border-box; text-align: center;
	background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.7), transparent 60%), linear-gradient(170deg, #f7f1e4 0%, #efe6d3 100%); }
.ejz-thumb-text::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(120, 92, 60, .22); border-radius: 10px; pointer-events: none; }
.ejz-thumb-text::after { content: "歡喜"; position: absolute; right: 18px; bottom: 16px; font-size: 13px; line-height: 1; padding: 5px 4px; color: #fff8ee; background: #b9533f; border-radius: 3px; writing-mode: vertical-rl; letter-spacing: 2px; opacity: .85; }
.ejz-tt-q { margin: 0 !important; font-family: "LXGW WenKai TC", "LXGW WenKai", "Kaiti TC", "BiauKai", "DFKai-SB", serif; font-size: 23px !important; line-height: 1.7; letter-spacing: 2px; color: #2f2924 !important; }
.ejz-tt-src { margin: 0 !important; font-size: 15px !important; color: #8a6d52 !important; letter-spacing: 1px; }
@media (max-width: 600px) { .ejz-tt-q { font-size: 20px !important; } }
