/*
Theme Name: EbookVault 云册
Theme URI: https://example.com/ebookvault
Author: EbookVault Studio
Author URI: https://example.com
Description: 为电子书资源下载站设计的完整 WordPress 主题。编辑器里直接插入的普通网页链接就是下载地址，主题从正文自动识别主地址、备用线路与提取码，老站无需字段名、无需短代码、无需重录任何数据；经典编辑器工具栏「添加下载地址」按钮一点即填，文章页即内容页与下载页，无需另建资源或独立下载页。旧的图书资源 CPT 可选保留，两者共用下载、计数、评分、书卡与 SEO。全套 WordPress 模板层级（含 singular.php 兜底）与 13 个后台标签：常规 / 内容模型 / 站点品牌 / SEO / GEO / 广告 / 账号 / 下载 / 读者评分 / 社交 / 统计代码 / 代码注入 / 工具。首页数量与分页全部后台可控；18 个内置广告位带后台地图并与前台联动；SEO 内链提供正文关键词自动内链、术语块、上下篇、相关推荐与 [ev_sitemap]；支持媒体库上传 Logo / Favicon、GA4 / GTM / 百度统计 / Clarity、真实读者评分、llms.txt、下载计数限流与多线路备份。零第三方框架、零 CDN，紧凑书架式首页支持明暗切换。
Version: 4.5.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ebookvault
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready, blog, education, e-commerce
*/

/* ==================================================================
   1. 设计令牌
   ================================================================== */
:root {
	--ev-bg: #0a0f1e;
	--ev-bg-2: #101829;
	--ev-surface: #131c30;
	--ev-surface-2: #19243c;
	--ev-tint: rgba(255, 255, 255, .035);
	--ev-line: rgba(255, 255, 255, .085);
	--ev-line-strong: rgba(255, 255, 255, .17);
	--ev-glass: rgba(11, 17, 32, .82);
	--ev-text: #f2f5fc;
	--ev-text-2: #b9c3d9;
	--ev-muted: #7d89a3;
	--ev-gold: #e8b878;
	--ev-gold-2: #b98a4e;
	--ev-gold-soft: #f7e3c3;
	--ev-gold-ink: #241606;
	--ev-blue: #7aa2ff;
	--ev-green: #5bd6a8;
	--ev-red: #ff8b84;
	--ev-r: 18px;
	--ev-r-sm: 10px;
	--ev-shadow: 0 24px 70px rgba(0, 0, 0, .46);
	--ev-shadow-soft: 0 10px 32px rgba(0, 0, 0, .24);
	--ev-serif: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
	--ev-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--ev-max: 1240px;
}

html[data-ev-theme="light"] {
	--ev-bg: #f6f4ef;
	--ev-bg-2: #ece9e1;
	--ev-surface: #ffffff;
	--ev-surface-2: #faf8f3;
	--ev-tint: rgba(28, 34, 48, .025);
	--ev-line: rgba(28, 34, 48, .1);
	--ev-line-strong: rgba(28, 34, 48, .2);
	--ev-glass: rgba(255, 255, 255, .86);
	--ev-text: #1b2233;
	--ev-text-2: #4d5668;
	--ev-muted: #7b8494;
	--ev-gold: #b07a32;
	--ev-gold-2: #8c5c1e;
	--ev-gold-soft: #7a4c14;
	--ev-gold-ink: #fff8ec;
	--ev-blue: #3f63c8;
	--ev-green: #178c67;
	--ev-red: #c85048;
	--ev-shadow: 0 24px 60px rgba(40, 36, 28, .13);
	--ev-shadow-soft: 0 8px 26px rgba(40, 36, 28, .08);
}

/* ==================================================================
   2. 基础
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ev-bg);
	color: var(--ev-text);
	font-family: var(--ev-sans);
	font-size: 15px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background-color .35s ease, color .35s ease;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(900px 520px at 82% -8%, rgba(232, 184, 120, .09), transparent 68%),
		radial-gradient(760px 480px at 4% 18%, rgba(122, 162, 255, .07), transparent 70%);
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ev-gold); color: var(--ev-gold-ink); }

:focus-visible { outline: 2px solid var(--ev-gold); outline-offset: 3px; border-radius: 4px; }

.ev-wrap { width: min(100% - 48px, var(--ev-max)); margin-inline: auto; position: relative; }
.ev-main { position: relative; z-index: 1; min-height: 60vh; }
.ev-skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ev-gold); color: var(--ev-gold-ink); padding: 10px 18px; border-radius: 0 0 8px 0; }
.ev-skip:focus { left: 0; }

.ev-reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .72, .2, 1); }
html.ev-anim .ev-reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }

/* ==================================================================
   3. 按钮 / 徽章 / 通用
   ================================================================== */
.ev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .01em;
	white-space: nowrap;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.ev-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-btn--primary {
	background: linear-gradient(135deg, var(--ev-gold-soft), var(--ev-gold) 48%, var(--ev-gold-2));
	color: var(--ev-gold-ink);
	box-shadow: 0 8px 26px rgba(232, 184, 120, .22), inset 0 1px 0 rgba(255, 255, 255, .5);
}
html[data-ev-theme="light"] .ev-btn--primary { background: linear-gradient(135deg, #d9a860, #b07a32 60%, #8c5c1e); color: #fff8ec; box-shadow: 0 8px 24px rgba(140, 92, 30, .22); }
.ev-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(232, 184, 120, .32), inset 0 1px 0 rgba(255, 255, 255, .5); }
.ev-btn--ghost { border-color: var(--ev-line-strong); color: var(--ev-text-2); background: var(--ev-tint); }
.ev-btn--ghost:hover { border-color: var(--ev-gold); color: var(--ev-gold); transform: translateY(-2px); }
.ev-btn--sm { padding: 9px 17px; font-size: 13px; }

.ev-section__kicker {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ev-gold);
	margin-bottom: 10px;
}
.ev-block-title { font-family: var(--ev-serif); font-size: 22px; letter-spacing: .01em; margin-bottom: 20px; }

.ev-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 15px;
	border: 1px solid var(--ev-line);
	border-radius: 999px;
	font-size: 12.5px;
	color: var(--ev-text-2);
	background: var(--ev-tint);
	transition: all .22s ease;
	white-space: nowrap;
}
.ev-chip em { font-style: normal; font-size: 11px; color: var(--ev-muted); }
.ev-chip:hover { border-color: var(--ev-gold); color: var(--ev-gold); }
.ev-chip.is-active { background: linear-gradient(135deg, var(--ev-gold-soft), var(--ev-gold)); color: var(--ev-gold-ink); border-color: transparent; font-weight: 600; }
.ev-chip.is-active em { color: inherit; opacity: .7; }
html[data-ev-theme="light"] .ev-chip.is-active { background: linear-gradient(135deg, #d9a860, #b07a32); color: #fff8ec; }

.ev-format-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 9px;
	border-radius: 5px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.4;
	color: #fff;
	background: #6d7893;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}
.ev-format-badge--pdf { background: linear-gradient(135deg, #f2776e, #b63f4f); }
.ev-format-badge--epub { background: linear-gradient(135deg, #63b0f5, #2f62bd); }
.ev-format-badge--mobi { background: linear-gradient(135deg, #a889f0, #6541bd); }
.ev-format-badge--azw3 { background: linear-gradient(135deg, #48c9ad, #17806f); }
.ev-format-badge--txt { background: linear-gradient(135deg, #9aa6bb, #5d6a80); }
.ev-format-badge--other { background: linear-gradient(135deg, var(--ev-gold), var(--ev-gold-2)); color: var(--ev-gold-ink); }
.ev-format-badge--lg { padding: 7px 13px; font-size: 11.5px; border-radius: 7px; }

.ev-badge-gold {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ev-gold);
	border: 1px solid rgba(232, 184, 120, .4);
	background: rgba(232, 184, 120, .09);
}

.ev-live-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.ev-download-panel__meta .ev-live-count, .ev-detail__rating .ev-live-count { color: var(--ev-gold); }

.ev-stars { position: relative; display: inline-block; font-size: 12px; letter-spacing: 1.5px; line-height: 1; white-space: nowrap; flex: none; }
.ev-stars__base { color: var(--ev-line-strong); }
.ev-stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--ev-gold); }

/* ==================================================================
   4. 页头
   ================================================================== */
.ev-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--ev-glass);
	backdrop-filter: blur(18px) saturate(150%);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	border-bottom: 1px solid var(--ev-line);
}
.ev-header__inner { display: flex; align-items: center; gap: 28px; height: 74px; min-width: 0; }

.ev-brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.ev-brand__mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(140deg, rgba(232, 184, 120, .18), rgba(232, 184, 120, .03)); border: 1px solid rgba(232, 184, 120, .35); }
.ev-brand__mark svg { width: 22px; height: 22px; fill: none; stroke: var(--ev-gold); stroke-width: 1.6; stroke-linejoin: round; }
.ev-brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.ev-brand__text strong { font-family: var(--ev-serif); font-size: 18px; font-weight: 600; letter-spacing: .04em; }
.ev-brand__text small { font-size: 8.5px; letter-spacing: .3em; color: var(--ev-muted); margin-top: 4px; }
.ev-brand--logo img { max-height: 42px; width: auto; }
.ev-brand__img { display: block; object-fit: contain; }
.ev-brand__img--light { display: none !important; }
html[data-ev-theme="light"] .ev-brand__img { display: none !important; }
html[data-ev-theme="light"] .ev-brand__img--light { display: block !important; }

.ev-nav { margin-left: auto; flex: 1 1 auto; min-width: 0; }
.ev-nav__list { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 26px); min-width: 0; max-width: 100%; margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; }
.ev-nav__list > li { position: relative; flex: 0 1 auto; min-width: 0; list-style: none; }
/* wp_nav_menu 输出的 <a> 默认没有 ev-nav__link class，这里按结构选中，样式才真正生效。 */
.ev-nav__list > li > a, .ev-nav__link { position: relative; display: block; max-width: 136px; padding: 8px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--ev-text-2); transition: color .2s ease; }
.ev-nav__list > li > a::after, .ev-nav__link::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 1.5px; background: var(--ev-gold); transition: width .28s ease; }
.ev-nav__list > li > a:hover, .ev-nav__list > li.current-menu-item > a, .ev-nav__link:hover, .current-menu-item > .ev-nav__link { color: var(--ev-gold); }
.ev-nav__list > li > a:hover::after, .ev-nav__link:hover::after { width: 100%; }
.ev-nav__list > li > a svg { width: 12px; height: 12px; margin-left: 5px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 二级菜单与「更多」下拉绝对定位，不再作为 flex item 撑破页头。 */
.ev-nav__list .sub-menu, .ev-nav__list .children, .ev-nav__more-menu { position: absolute; top: 100%; left: 0; z-index: 80; display: none; min-width: 190px; max-width: 260px; max-height: 60vh; overflow-y: auto; margin: 0; padding: 8px; list-style: none; background: var(--ev-surface); border: 1px solid var(--ev-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.ev-nav__list > li:hover > .sub-menu, .ev-nav__list > li:focus-within > .sub-menu, .ev-nav__list > li:hover > .ev-nav__more-menu, .ev-nav__list > li:focus-within > .ev-nav__more-menu { display: block; }
.ev-nav__list .sub-menu li, .ev-nav__more-menu li { min-width: 0; list-style: none; }
.ev-nav__list .sub-menu a, .ev-nav__more-menu a { display: block; max-width: 100%; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--ev-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-nav__list .sub-menu a:hover, .ev-nav__more-menu a:hover { color: var(--ev-gold); background: var(--ev-tint); }
.ev-nav__more .ev-nav__more-menu { left: auto; right: 0; }

.ev-header__tools { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.ev-icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ev-line); border-radius: 10px; background: var(--ev-tint); color: var(--ev-text-2); transition: all .22s ease; }
.ev-icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ev-icon-btn:hover { color: var(--ev-gold); border-color: rgba(232, 184, 120, .5); transform: translateY(-1px); }
.ev-menu-toggle { display: none; }

.ev-search-pop { max-height: 0; overflow: hidden; opacity: 0; border-top: 0 solid var(--ev-line); background: var(--ev-surface); transition: max-height .35s ease, opacity .3s ease, border-width .3s ease; }
.ev-search-pop.is-open { max-height: 130px; opacity: 1; border-top-width: 1px; }
.ev-search-pop form { width: min(100% - 48px, var(--ev-max)); margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 22px 0; }
.ev-search-pop label { flex: 1; min-width: 0; display: block; }
.ev-search-pop .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ev-search-pop input[type="search"] { display: block; width: 100%; background: var(--ev-tint); border: 1px solid var(--ev-line); border-radius: 10px; padding: 11px 16px; color: var(--ev-text); outline: none; }
.ev-search-pop input[type="search"]:focus { border-color: var(--ev-gold); }
.ev-search-pop input[type="submit"] { flex: none; border: 0; border-radius: 10px; padding: 11px 22px; background: var(--ev-gold); color: var(--ev-gold-ink); font-weight: 600; }
html[data-ev-theme="light"] .ev-search-pop input[type="submit"] { background: #b07a32; color: #fff8ec; }

/* ==================================================================
   5. 立体书封
   ================================================================== */
.ev-book3d {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	transform: perspective(1000px) rotateY(-9deg) rotateX(1.5deg);
	transform-style: preserve-3d;
	filter: drop-shadow(12px 18px 22px rgba(0, 0, 0, .5));
	transition: transform .5s cubic-bezier(.2, .72, .2, 1), filter .5s ease;
}
.ev-book3d__face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: 13% 11% 11% 15%;
	border-radius: 2px 7px 7px 2px;
	background: linear-gradient(152deg, var(--ev-c1, #7c5cff) 0%, var(--ev-c2, #2b1b6b) 82%);
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset -14px 0 26px rgba(0, 0, 0, .22);
}
.ev-book3d__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 正文首图已被主题用作书封时，隐藏正文里重复的那一张，避免出现两个封面。 */
.ev-prose img.ev-content-lead-hidden { display: none !important; }
@supports selector(:has(*)) {
	.ev-prose p:has(> img.ev-content-lead-hidden:only-child),
	.ev-prose p:has(> a:only-child > img.ev-content-lead-hidden),
	.ev-prose figure:has(> img.ev-content-lead-hidden:only-child) { display: none !important; }
}
.ev-book3d__face::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 80% at 85% 0%, rgba(255, 255, 255, .16), transparent 58%), linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, .25));
	pointer-events: none;
}
.ev-book3d__spine {
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 11px;
	z-index: 3;
	border-radius: 2px 0 0 2px;
	background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .2) 55%, rgba(255, 255, 255, .16));
	box-shadow: 2px 0 6px rgba(0, 0, 0, .3);
}
.ev-book3d__ring {
	position: absolute;
	right: -22%; top: -13%;
	width: 78%; aspect-ratio: 1;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
}
.ev-book3d__ring::before, .ev-book3d__ring::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; }
.ev-book3d__ring::before { inset: 13%; }
.ev-book3d__ring::after { inset: 27%; }
.ev-book3d__cat {
	position: relative;
	z-index: 2;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .2em;
	color: rgba(255, 255, 255, .68);
	text-transform: uppercase;
}
.ev-book3d__glyph {
	position: absolute;
	right: 5%; bottom: -8%;
	font-family: var(--ev-serif);
	font-size: 118px;
	line-height: 1;
	font-weight: 700;
	color: rgba(255, 255, 255, .1);
	pointer-events: none;
}
.ev-book3d__title {
	position: relative;
	z-index: 2;
	margin-top: auto;
	font-family: var(--ev-serif);
	font-size: clamp(15px, 1.55vw, 20px);
	line-height: 1.35;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ev-book3d__rule { position: relative; z-index: 2; width: 30px; height: 2px; margin: 11px 0 9px; background: var(--ev-c3, #ffdda6); opacity: .9; }
.ev-book3d__author { position: relative; z-index: 2; font-size: 9.5px; letter-spacing: .05em; color: rgba(255, 255, 255, .76); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-book3d__shine {
	position: absolute;
	inset: 0;
	z-index: 4;
	border-radius: 2px 7px 7px 2px;
	background: linear-gradient(104deg, transparent 34%, rgba(255, 255, 255, .13) 47%, rgba(255, 255, 255, .03) 56%, transparent 66%);
	transform: translateX(-120%);
	pointer-events: none;
}
.ev-card:hover .ev-book3d__shine, .ev-detail__cover:hover .ev-book3d__shine { animation: evShine 1.05s ease forwards; }
@keyframes evShine { to { transform: translateX(120%); } }

.ev-book3d--card .ev-book3d__title { font-size: clamp(14px, 1.2vw, 17.5px); line-height: 1.4; }
.ev-book3d--card .ev-book3d__glyph { top: 17%; bottom: auto; right: -2%; font-size: 104px; }

.ev-book3d--mini { transform: perspective(500px) rotateY(-11deg); filter: drop-shadow(4px 6px 8px rgba(0, 0, 0, .45)); }
.ev-book3d--mini .ev-book3d__spine { width: 5px; }
.ev-book3d--mini .ev-book3d__cat, .ev-book3d--mini .ev-book3d__title, .ev-book3d--mini .ev-book3d__rule, .ev-book3d--mini .ev-book3d__author, .ev-book3d--mini .ev-book3d__ring { display: none; }
.ev-book3d--mini .ev-book3d__glyph { font-size: 40px; right: 12%; bottom: 2%; }
.ev-book3d--detail { transform: perspective(1400px) rotateY(-11deg) rotateX(1.5deg); filter: drop-shadow(22px 30px 38px rgba(0, 0, 0, .56)); }
.ev-book3d--detail .ev-book3d__spine { width: 16px; }
.ev-book3d--detail .ev-book3d__cat { font-size: 10px; }
.ev-book3d--detail .ev-book3d__title { font-size: 30px; -webkit-line-clamp: 4; }
.ev-book3d--detail .ev-book3d__glyph { font-size: 210px; }
.ev-book3d--detail .ev-book3d__author { font-size: 12px; }

/* ==================================================================
   6. Hero
   ================================================================== */
.ev-hero { position: relative; overflow: hidden; padding: 86px 0 0; border-bottom: 1px solid var(--ev-line); }
.ev-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--ev-line) 1px, transparent 1px), linear-gradient(90deg, var(--ev-line) 1px, transparent 1px);
	background-size: 62px 62px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 78%);
	opacity: .5;
	pointer-events: none;
}
.ev-hero__aurora { position: absolute; inset: -30% -10% auto -10%; height: 780px; background: radial-gradient(46% 52% at 24% 42%, rgba(122, 92, 255, .16), transparent 70%), radial-gradient(42% 46% at 76% 32%, rgba(232, 184, 120, .15), transparent 72%), radial-gradient(36% 40% at 58% 72%, rgba(79, 195, 247, .1), transparent 70%); filter: blur(20px); pointer-events: none; }
html[data-ev-theme="light"] .ev-hero__aurora { opacity: .55; }
.ev-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: 430px; }
.ev-hero__content { position: relative; z-index: 2; padding-bottom: 62px; }
.ev-hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 11px; border: 1px solid rgba(232, 184, 120, .32); border-radius: 999px; background: rgba(232, 184, 120, .07); color: var(--ev-gold); font-size: 11.5px; letter-spacing: .12em; }
.ev-hero__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--ev-gold); box-shadow: 0 0 0 4px rgba(232, 184, 120, .18); }
.ev-hero__title { font-family: var(--ev-serif); font-size: clamp(38px, 4.6vw, 64px); line-height: 1.24; font-weight: 600; letter-spacing: .015em; margin: 24px 0 20px; }
.ev-hero__title em { display: block; font-style: normal; background: linear-gradient(100deg, var(--ev-gold-soft), var(--ev-gold) 52%, var(--ev-gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-ev-theme="light"] .ev-hero__title em { background: linear-gradient(100deg, #d9a860, #a56d25 70%); -webkit-background-clip: text; background-clip: text; }
.ev-hero__desc { max-width: 500px; color: var(--ev-text-2); font-size: 15px; line-height: 1.9; margin-bottom: 30px; }

.ev-hero__search, .ev-page__search { display: flex; align-items: center; gap: 10px; max-width: 540px; padding: 7px 7px 7px 18px; border: 1px solid var(--ev-line-strong); border-radius: 999px; background: var(--ev-glass); backdrop-filter: blur(10px); box-shadow: var(--ev-shadow-soft); transition: border-color .25s ease, box-shadow .25s ease; }
.ev-hero__search:focus-within, .ev-page__search:focus-within { border-color: var(--ev-gold); box-shadow: 0 0 0 4px rgba(232, 184, 120, .1); }
.ev-hero__search svg, .ev-page__search svg { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--ev-muted); stroke-width: 1.8; stroke-linecap: round; }
.ev-hero__search input, .ev-page__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ev-text); outline: none; font-size: 14px; padding: 9px 0; }
.ev-hero__search input::placeholder, .ev-page__search input::placeholder { color: var(--ev-muted); }
.ev-hero__search button, .ev-page__search button { flex: none; border: 0; border-radius: 999px; padding: 11px 22px; font-size: 13.5px; font-weight: 600; color: var(--ev-gold-ink); background: linear-gradient(135deg, var(--ev-gold-soft), var(--ev-gold) 55%, var(--ev-gold-2)); transition: filter .2s ease, transform .2s ease; }
html[data-ev-theme="light"] .ev-hero__search button, html[data-ev-theme="light"] .ev-page__search button { background: linear-gradient(135deg, #d9a860, #b07a32); color: #fff8ec; }
.ev-hero__search button:hover, .ev-page__search button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.ev-hero__hot { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 20px; font-size: 12.5px; color: var(--ev-muted); }
.ev-hero__hot a { padding: 3px 11px; border: 1px solid var(--ev-line); border-radius: 999px; color: var(--ev-text-2); transition: all .2s ease; }
.ev-hero__hot a:hover { border-color: var(--ev-gold); color: var(--ev-gold); }

.ev-hero__art { position: relative; height: 440px; display: grid; place-items: center; }
.ev-hero__glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 184, 120, .2), rgba(122, 92, 255, .1) 42%, transparent 68%); filter: blur(12px); }
.ev-hero__glow::after { content: ""; position: absolute; inset: 15%; border: 1px solid rgba(232, 184, 120, .16); border-radius: 50%; }
.ev-hero__stack { position: relative; width: 330px; height: 360px; transform: rotate(-4deg); }
.ev-hero__book {
	position: absolute;
	width: 172px;
	height: 240px;
	border-radius: 3px 9px 9px 3px;
	background: linear-gradient(150deg, var(--ev-c1), var(--ev-c2));
	box-shadow: 0 26px 48px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .14), inset -12px 0 22px rgba(0, 0, 0, .2);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #fff;
	overflow: hidden;
	animation: evFloat 7s ease-in-out infinite;
}
.ev-hero__book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .12)); }
.ev-hero__book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .09) 50%, transparent 60%); }
.ev-hero__book span { font-family: var(--ev-serif); font-size: 34px; letter-spacing: .1em; text-shadow: 0 3px 14px rgba(0, 0, 0, .3); }
.ev-hero__book small { font-size: 8px; letter-spacing: .28em; color: rgba(255, 255, 255, .7); }
.ev-hero__book--a { left: 4px; top: 66px; transform: rotate(-16deg) scale(.9); opacity: .82; animation-delay: -.8s; }
.ev-hero__book--b { right: 2px; top: 52px; transform: rotate(14deg) scale(.92); opacity: .86; animation-delay: -1.7s; }
.ev-hero__book--c { left: 79px; top: 38px; z-index: 3; transform: rotate(-2deg); box-shadow: 0 34px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(232, 184, 120, .35), inset 0 0 0 1px rgba(255, 255, 255, .2); }
.ev-hero__spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--ev-gold); box-shadow: 0 0 14px 3px rgba(232, 184, 120, .55); animation: evTwinkle 3.4s ease-in-out infinite; }
.ev-hero__spark--1 { top: 12%; left: 16%; }
.ev-hero__spark--2 { top: 24%; right: 12%; animation-delay: -1.2s; width: 3px; height: 3px; }
.ev-hero__spark--3 { bottom: 16%; right: 24%; animation-delay: -2.1s; }
@keyframes evFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -11px; } }
@keyframes evTwinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }

.ev-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ev-line); border-bottom: 0; border-radius: 16px 16px 0 0; background: var(--ev-glass); backdrop-filter: blur(12px); margin-top: 38px; }
.ev-stats__item { padding: 22px 26px; text-align: center; border-right: 1px solid var(--ev-line); }
.ev-stats__item:last-child { border-right: 0; }
.ev-stats__item strong { display: block; font-family: var(--ev-serif); font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--ev-gold); font-variant-numeric: tabular-nums; }
.ev-stats__item span { font-size: 11.5px; letter-spacing: .1em; color: var(--ev-muted); }

/* ==================================================================
   7. 区块 / 网格 / 卡片
   ================================================================== */
.ev-section { padding: 78px 0; }
.ev-section--tight { padding: 46px 0; }
.ev-section--tint { background: var(--ev-tint); border-block: 1px solid var(--ev-line); }
.ev-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.ev-section__title { font-family: var(--ev-serif); font-size: clamp(25px, 2.6vw, 33px); font-weight: 600; letter-spacing: .01em; }
.ev-section__sub { margin: 9px 0 0; font-size: 13.5px; color: var(--ev-muted); }
.ev-section__more { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ev-gold); white-space: nowrap; padding-bottom: 4px; border-bottom: 1px solid rgba(232, 184, 120, .35); transition: gap .22s ease; }
.ev-section__more:hover { gap: 12px; }
.ev-section__more::after { content: "\2192"; }

.ev-grid { display: grid; gap: 22px; }
.ev-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ev-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ev-surface);
	border: 1px solid var(--ev-line);
	border-radius: var(--ev-r);
	overflow: hidden;
	transition: transform .35s cubic-bezier(.2, .72, .2, 1), border-color .3s ease, box-shadow .35s ease;
}
.ev-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--ev-gold), transparent); opacity: 0; transition: opacity .3s ease; z-index: 4; }
.ev-card:hover { transform: translateY(-7px); border-color: rgba(232, 184, 120, .38); box-shadow: var(--ev-shadow); }
.ev-card:hover::before { opacity: 1; }
.ev-card:hover .ev-book3d { transform: perspective(1000px) rotateY(-3deg) rotateX(0) translateY(-3px); }

.ev-card__cover { position: relative; display: block; padding: 28px 30px 30px; background: radial-gradient(100% 80% at 50% 0%, var(--ev-tint), transparent 76%); border-bottom: 1px solid var(--ev-line); }
.ev-card__cover .ev-format-badge { position: absolute; left: 14px; top: 14px; z-index: 5; }
.ev-card__featured { position: absolute; right: 0; top: 16px; z-index: 5; padding: 4px 11px; border-radius: 6px 0 0 6px; background: linear-gradient(135deg, var(--ev-gold-soft), var(--ev-gold)); color: var(--ev-gold-ink); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
html[data-ev-theme="light"] .ev-card__featured { background: linear-gradient(135deg, #d9a860, #b07a32); color: #fff8ec; }

.ev-card__body { position: relative; flex: 1; padding: 18px 20px 20px; }
.ev-card__cat { display: block; font-size: 10.5px; letter-spacing: .12em; color: var(--ev-gold); margin-bottom: 8px; }
.ev-card__title { font-family: var(--ev-serif); font-size: 17.5px; line-height: 1.45; font-weight: 600; margin-bottom: 5px; }
.ev-card__title a { transition: color .2s ease; }
.ev-card__title a:hover { color: var(--ev-gold); }
.ev-card__author { font-size: 12px; color: var(--ev-muted); margin: 0 0 10px; }
.ev-card__desc { font-size: 12.5px; line-height: 1.75; color: var(--ev-text-2); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.ev-card__foot { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--ev-line); padding-right: 46px; }
.ev-card__downloads { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ev-text-2); font-variant-numeric: tabular-nums; }
.ev-card__downloads svg { width: 13px; height: 13px; fill: none; stroke: var(--ev-gold); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ev-card__size { font-size: 11px; color: var(--ev-muted); }
.ev-card__foot .ev-stars { margin-left: auto; font-size: 10px; letter-spacing: 1px; }
.ev-card__dl {
	position: absolute;
	right: 18px; bottom: 18px;
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border-radius: 50%;
	border: 1px solid var(--ev-line-strong);
	background: var(--ev-surface-2);
	color: var(--ev-gold);
	transition: all .28s cubic-bezier(.2, .72, .2, 1);
}
.ev-card__dl svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ev-card__dl:hover { background: linear-gradient(135deg, var(--ev-gold-soft), var(--ev-gold)); color: var(--ev-gold-ink); border-color: transparent; transform: scale(1.12) rotate(6deg); box-shadow: 0 8px 20px rgba(232, 184, 120, .3); }
html[data-ev-theme="light"] .ev-card__dl:hover { background: linear-gradient(135deg, #d9a860, #b07a32); color: #fff8ec; }
.ev-card__dl--ghost { color: var(--ev-muted); }

/* 分类卡片 */
.ev-genres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ev-genre-card { position: relative; display: flex; flex-direction: column; padding: 24px 22px; min-height: 148px; border: 1px solid var(--ev-line); border-radius: 14px; background: var(--ev-surface); overflow: hidden; transition: all .3s ease; }
.ev-genre-card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; border: 1px solid var(--ev-line); transition: all .35s ease; }
.ev-genre-card:hover { transform: translateY(-5px); border-color: rgba(232, 184, 120, .4); box-shadow: var(--ev-shadow-soft); }
.ev-genre-card:hover::after { border-color: rgba(232, 184, 120, .35); transform: scale(1.2); }
.ev-genre-card__no { font-family: var(--ev-serif); font-size: 13px; color: var(--ev-gold); letter-spacing: .1em; }
.ev-genre-card strong { font-family: var(--ev-serif); font-size: 21px; font-weight: 600; margin-top: auto; }
.ev-genre-card__count { font-size: 11.5px; color: var(--ev-muted); margin-top: 5px; }
.ev-genre-card svg { position: absolute; right: 20px; top: 22px; width: 18px; height: 18px; fill: none; stroke: var(--ev-muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: all .3s ease; }
.ev-genre-card:hover svg { stroke: var(--ev-gold); transform: translateX(4px); }

/* 下载排行 */
.ev-rank { border: 1px solid var(--ev-line); border-radius: var(--ev-r); background: var(--ev-surface); overflow: hidden; }
.ev-rank__item { display: grid; grid-template-columns: 62px 46px 1fr auto 88px; gap: 18px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--ev-line); transition: background .22s ease; }
.ev-rank__item:last-child { border-bottom: 0; }
.ev-rank__item:hover { background: var(--ev-tint); }
.ev-rank__no { font-family: var(--ev-serif); font-size: 24px; color: var(--ev-muted); font-variant-numeric: tabular-nums; }
.ev-rank__no.is-top { color: var(--ev-gold); }
.ev-rank__cover { display: block; width: 46px; height: 60px; }
.ev-rank__info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev-rank__title { font-family: var(--ev-serif); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-rank__title:hover { color: var(--ev-gold); }
.ev-rank__meta { font-size: 11.5px; color: var(--ev-muted); }
.ev-rank__count { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ev-text-2); font-variant-numeric: tabular-nums; }
.ev-rank__count svg { width: 14px; height: 14px; fill: none; stroke: var(--ev-gold); stroke-width: 1.9; stroke-linecap: round; }
.ev-rank__dl { justify-self: end; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(232, 184, 120, .45); color: var(--ev-gold); font-size: 12.5px; transition: all .22s ease; }
.ev-rank__dl:hover { background: linear-gradient(135deg, var(--ev-gold-soft), var(--ev-gold)); border-color: transparent; color: var(--ev-gold-ink); }
html[data-ev-theme="light"] .ev-rank__dl:hover { background: linear-gradient(135deg, #d9a860, #b07a32); color: #fff8ec; }

/* CTA */
.ev-cta { padding: 24px 0 86px; }
.ev-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 54px; border: 1px solid rgba(232, 184, 120, .28); border-radius: 22px; background: radial-gradient(80% 130% at 92% 10%, rgba(232, 184, 120, .15), transparent 62%), linear-gradient(120deg, var(--ev-surface), var(--ev-bg-2)); overflow: hidden; }
.ev-cta__inner::after { content: ""; position: absolute; right: -70px; top: -120px; width: 330px; height: 330px; border: 1px solid rgba(232, 184, 120, .18); border-radius: 50%; box-shadow: 0 0 0 46px rgba(232, 184, 120, .035), 0 0 0 92px rgba(232, 184, 120, .025); }
.ev-cta__inner h2 { font-family: var(--ev-serif); font-size: clamp(25px, 3vw, 36px); font-weight: 600; margin-bottom: 10px; }
.ev-cta__inner p { max-width: 480px; font-size: 13.5px; color: var(--ev-text-2); margin: 0; }
.ev-cta__actions { position: relative; z-index: 2; display: flex; gap: 12px; flex: none; }

/* ==================================================================
   8. 归档 / 筛选 / 排序 / 分页
   ================================================================== */
.ev-page { padding-top: 34px; padding-bottom: 90px; }
.ev-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 12px; color: var(--ev-muted); margin-bottom: 30px; }
.ev-crumbs a:hover { color: var(--ev-gold); }
.ev-crumbs span[aria-hidden] { opacity: .45; }
.ev-crumbs__current { color: var(--ev-text-2); }
.ev-page__head { margin-bottom: 32px; }
.ev-page__head h1 { font-family: var(--ev-serif); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: .01em; }
.ev-page__head p { max-width: 620px; margin: 12px 0 0; color: var(--ev-text-2); font-size: 14px; }
.ev-page__search { margin-bottom: 34px; max-width: 620px; }

.ev-filters { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; margin-bottom: 22px; border: 1px solid var(--ev-line); border-radius: 14px; background: var(--ev-surface); }
.ev-filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.ev-filters__label { flex: none; width: 38px; font-size: 11.5px; letter-spacing: .1em; color: var(--ev-muted); }
.ev-chip--format { font-weight: 700; letter-spacing: .06em; font-size: 11.5px; }
.ev-chip--pdf:hover { border-color: #f2776e; color: #f2776e; }
.ev-chip--epub:hover { border-color: #63b0f5; color: #63b0f5; }
.ev-chip--mobi:hover { border-color: #a889f0; color: #a889f0; }

.ev-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--ev-line); }
.ev-toolbar__count { font-size: 13px; color: var(--ev-muted); }
.ev-toolbar__count::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--ev-gold); vertical-align: middle; }
.ev-sort { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ev-sort__label { font-size: 12px; color: var(--ev-muted); margin-right: 8px; }
.ev-sort__link { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; color: var(--ev-text-2); transition: all .2s ease; }
.ev-sort__link:hover { color: var(--ev-gold); }
.ev-sort__link.is-active { background: rgba(232, 184, 120, .13); color: var(--ev-gold); font-weight: 600; }

.ev-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ev-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--ev-line); border-radius: 10px; font-size: 13px; color: var(--ev-text-2); }
.ev-pagination .page-numbers:hover, .ev-pagination .page-numbers.current { border-color: var(--ev-gold); color: var(--ev-gold); background: rgba(232, 184, 120, .08); }
.ev-pagination .page-numbers.dots { border-color: transparent; background: none; min-width: 26px; padding: 0 4px; }
.ev-pagination--prevnext .page-numbers { min-width: 108px; }
.ev-pagination--prevnext .page-numbers.current { min-width: 46px; }

/* 首页书墙分页（后台：常规设置 → 首页书墙分页） */
.ev-pagination-info { display: flex; justify-content: center; margin-top: 28px; font-size: 12px; letter-spacing: .03em; color: var(--ev-muted); }
.ev-load-more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.ev-load-more { min-width: 220px; }
.ev-load-more.is-loading { opacity: .6; cursor: progress; }
.ev-load-more__end { display: inline-flex; align-items: center; padding: 10px 22px; border: 1px dashed var(--ev-line); border-radius: 10px; font-size: 12.5px; color: var(--ev-muted); }
.ev-shelf.is-loading { opacity: .72; }

.ev-empty { max-width: 560px; margin: 40px auto; padding: 64px 40px; text-align: center; border: 1px dashed var(--ev-line-strong); border-radius: var(--ev-r); background: var(--ev-tint); }
.ev-empty__icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--ev-surface); border: 1px solid var(--ev-line); margin-bottom: 22px; }
.ev-empty__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ev-gold); stroke-width: 1.5; stroke-linejoin: round; }
.ev-empty__code { display: block; font-family: var(--ev-serif); font-size: 96px; line-height: 1; font-weight: 600; color: var(--ev-gold); opacity: .35; margin-bottom: 10px; }
.ev-empty h1, .ev-empty h2 { font-family: var(--ev-serif); font-size: 27px; font-weight: 600; margin-bottom: 10px; }
.ev-empty p { color: var(--ev-muted); font-size: 14px; margin-bottom: 26px; }
.ev-empty__actions { display: flex; justify-content: center; gap: 12px; }

.ev-article { max-width: 780px; margin: 0 auto; }
.ev-article h1 { font-family: var(--ev-serif); font-size: 40px; font-weight: 600; }
.ev-article__meta { color: var(--ev-muted); font-size: 12.5px; margin: 12px 0 34px; }
.ev-prose { font-size: 15px; line-height: 1.95; color: var(--ev-text-2); }
.ev-prose h2, .ev-prose h3 { font-family: var(--ev-serif); color: var(--ev-text); margin: 1.6em 0 .7em; }
.ev-prose a { color: var(--ev-gold); text-decoration: underline; text-underline-offset: 3px; }
.ev-prose img { border-radius: 12px; }

/* ==================================================================
   9. 页脚 / toast
   ================================================================== */
.ev-footer { position: relative; z-index: 1; border-top: 1px solid var(--ev-line); background: var(--ev-bg-2); padding: 62px 0 0; }
.ev-footer__grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 44px; padding-bottom: 48px; }
.ev-footer__about p { max-width: 300px; margin: 18px 0 0; font-size: 12.5px; line-height: 1.85; color: var(--ev-muted); }
.ev-footer__note { color: var(--ev-text-2) !important; }
.ev-footer__col h3 { font-size: 12px; letter-spacing: .16em; color: var(--ev-text); margin-bottom: 18px; }
.ev-footer__col li { margin-bottom: 11px; }
.ev-footer__col a { font-size: 12.5px; color: var(--ev-muted); transition: color .2s ease, padding .2s ease; }
.ev-footer__col a:hover { color: var(--ev-gold); padding-left: 4px; }
.ev-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 26px; border-top: 1px solid var(--ev-line); font-size: 11.5px; color: var(--ev-muted); }

.ev-toast { position: fixed; left: 50%; bottom: 34px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 24px; border-radius: 999px; background: var(--ev-surface); border: 1px solid rgba(232, 184, 120, .45); color: var(--ev-text); font-size: 13px; box-shadow: var(--ev-shadow); transition: opacity .3s ease, transform .3s ease; }
.ev-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.ev-toast::before { content: "\2713"; color: var(--ev-gold); margin-right: 9px; font-weight: 700; }

/* ==================================================================
   10. 响应式
   ================================================================== */
@media (max-width: 1080px) {
	.ev-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ev-nav__list { gap: 18px; }
	.ev-hero__grid { grid-template-columns: 1fr .8fr; }
	.ev-hero__stack { transform: rotate(-4deg) scale(.86); }
	.ev-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
}
@media (max-width: 900px) {
	.ev-hero__grid { grid-template-columns: 1fr; }
	.ev-hero__content { padding-bottom: 20px; }
	.ev-hero__art { height: 320px; }
	.ev-hero__stack { transform: rotate(-4deg) scale(.78); }
	.ev-grid--4, .ev-genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ev-menu-toggle { display: grid; }
	.ev-nav { position: absolute; left: 0; right: 0; top: 74px; margin: 0; padding: 0 24px; max-height: 0; overflow: hidden; background: var(--ev-surface); border-bottom: 0 solid var(--ev-line); transition: max-height .3s ease, border-width .3s ease; }
	.ev-nav.is-open { max-height: min(72vh, 560px); overflow-y: auto; border-bottom-width: 1px; }
	.ev-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; flex-wrap: nowrap; }
	.ev-nav__list > li > a, .ev-nav__link { max-width: none; padding: 12px 0; border-bottom: 1px solid var(--ev-line); }
	.ev-nav__list .sub-menu, .ev-nav__list .children, .ev-nav__more-menu { position: static; display: block; max-width: none; min-width: 0; max-height: none; overflow: visible; margin: 0 0 8px 12px; padding: 0; border: 0; border-left: 1px solid var(--ev-line); border-radius: 0; background: transparent; box-shadow: none; }
	.ev-nav__list .sub-menu a, .ev-nav__more-menu a { padding: 9px 12px; }
	.ev-header__cta { display: none; }
	.ev-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
	.ev-cta__inner { flex-direction: column; align-items: flex-start; padding: 38px 30px; }
}
@media (max-width: 620px) {
	.ev-wrap { width: min(100% - 32px, var(--ev-max)); }
	.ev-header__inner { height: 64px; gap: 12px; }
	.ev-brand__text strong { font-size: 16px; }
	.ev-nav { top: 64px; }
	.ev-hero { padding-top: 52px; }
	.ev-hero__title { font-size: 36px; }
	.ev-hero__art { height: 250px; }
	.ev-hero__stack { transform: rotate(-4deg) scale(.62); }
	.ev-stats { grid-template-columns: repeat(2, 1fr); }
	.ev-stats__item { padding: 16px 10px; border-bottom: 1px solid var(--ev-line); }
	.ev-stats__item:nth-child(2n) { border-right: 0; }
	.ev-section { padding: 54px 0; }
	.ev-section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.ev-grid--4, .ev-genres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ev-card__cover { padding: 18px 20px 20px; }
	.ev-card__body { padding: 14px; }
	.ev-card__title { font-size: 15.5px; }
	.ev-card__desc { display: none; }
	.ev-card__foot { padding-right: 40px; gap: 7px; }
	.ev-card__foot .ev-stars { display: none; }
	.ev-rank__item { grid-template-columns: 34px 40px 1fr 64px; gap: 10px; padding: 12px 14px; }
	.ev-rank__count { display: none; }
	.ev-rank__dl { padding: 7px 12px; }
	.ev-footer__grid { grid-template-columns: 1fr 1fr; }
	.ev-footer__about { grid-column: 1 / -1; }
	.ev-hero__search, .ev-page__search { padding-left: 14px; }
	.ev-hero__search button, .ev-page__search button { padding: 10px 14px; }
}
@media (max-width: 420px) {
	.ev-grid--4, .ev-genres { grid-template-columns: 1fr; }
	.ev-header__tools .ev-icon-btn { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	html.ev-anim .ev-reveal:not(.is-visible) { opacity: 1; transform: none; }
}


/* ==================================================================
   20. 完整模板补充样式 v3 —— 文章 / 归档 / 搜索 / 404 / 广告 / GEO
   ================================================================== */

/* ---------- 两栏布局 ---------- */
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }
.ev-layout--sidebar { grid-template-columns: minmax(0, 1fr) 306px; }
.ev-layout--left.ev-layout--sidebar { grid-template-columns: 306px minmax(0, 1fr); }
.ev-layout--left .ev-layout__main { order: 2; }
.ev-layout--left .ev-layout__side { order: 1; }
.ev-layout__main { min-width: 0; }
.ev-layout__side { min-width: 0; position: sticky; top: 100px; display: grid; gap: 18px; align-content: start; }
/* 归档模板与 sidebar.php 各自输出一层 aside 时，内层退化为普通容器 */
.ev-layout__side .ev-layout__side { position: static; display: grid; gap: 18px; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; }
.ev-page__desc { color: var(--ev-text-2); font-size: 15px; line-height: 1.85; max-width: 760px; }
.ev-page__head h1 { margin: 12px 0 14px; }
.ev-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 卡片补充 ---------- */
.ev-card__thumb { display: block; overflow: hidden; border-radius: var(--ev-r-sm); margin: 12px 12px 0; aspect-ratio: 16 / 9; background: var(--ev-tint); }
.ev-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ev-card:hover .ev-card__thumb img { transform: scale(1.06); }
.ev-card__meta { color: var(--ev-muted); font-size: 12px; letter-spacing: .02em; margin-top: 12px; }
.ev-card--post .ev-card__body { padding: 18px; }
.ev-card__list { display: grid !important; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 16px; }
.ev-card__list .ev-book3d { align-self: start; }

/* ---------- 文章页 ---------- */
.ev-post { min-width: 0; }
.ev-post__header { margin-bottom: 26px; }
.ev-post__title { font-family: var(--ev-serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.22; letter-spacing: -.01em; margin: 14px 0 16px; color: var(--ev-text); }
.ev-post__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--ev-muted); font-size: 13px; }
.ev-post__meta a { color: var(--ev-text-2); }
.ev-post__meta a:hover { color: var(--ev-gold); }
.ev-post__thumb { display: block; border-radius: var(--ev-r); overflow: hidden; margin-bottom: 28px; }
.ev-post__thumb img { width: 100%; height: auto; display: block; }
.ev-post__content { font-size: 16px; line-height: 1.95; }
.ev-prose { color: var(--ev-text-2); font-size: 16px; line-height: 1.95; }
.ev-prose h2, .ev-prose h3, .ev-prose h4 { color: var(--ev-text); font-family: var(--ev-serif); line-height: 1.35; margin: 1.9em 0 .7em; }
.ev-prose h2 { font-size: 27px; } .ev-prose h3 { font-size: 21px; }
.ev-prose p { margin: 0 0 1.25em; }
.ev-prose a { color: var(--ev-gold); text-decoration: underline; text-underline-offset: 3px; }
.ev-prose img { max-width: 100%; height: auto; border-radius: var(--ev-r-sm); }
.ev-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ev-gold); color: var(--ev-text); font-family: var(--ev-serif); font-size: 18px; }
.ev-prose pre { overflow-x: auto; padding: 18px; border-radius: var(--ev-r-sm); background: var(--ev-bg-2); border: 1px solid var(--ev-line); }
.ev-prose ul, .ev-prose ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.ev-prose li { margin-bottom: .5em; }
.ev-prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14px; }
.ev-prose th, .ev-prose td { border: 1px solid var(--ev-line); padding: 10px 14px; text-align: left; }
.ev-prose th { background: var(--ev-tint); color: var(--ev-text); }
.ev-post__footer { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--ev-line); font-size: 13px; color: var(--ev-muted); }
.ev-tag-list { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev-tag-list strong { color: var(--ev-text-2); font-weight: 600; margin-right: 4px; }
.ev-tag-list a { padding: 4px 10px; border-radius: 999px; background: var(--ev-tint); border: 1px solid var(--ev-line); color: var(--ev-text-2); }
.ev-tag-list a:hover { border-color: var(--ev-gold); color: var(--ev-gold); }
.ev-entry-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 34px 0; }
.ev-entry-nav > * { padding: 18px 20px; border: 1px solid var(--ev-line); border-radius: var(--ev-r-sm); background: var(--ev-surface); color: var(--ev-text-2); font-size: 14px; }
.ev-entry-nav a:hover { border-color: var(--ev-gold); color: var(--ev-gold); }
.ev-author-box { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--ev-line); border-radius: var(--ev-r); background: var(--ev-surface); margin: 34px 0; }
.ev-author-box img { border-radius: 50%; }
.ev-author-box h3 { margin: 0 0 6px; font-family: var(--ev-serif); font-size: 19px; }
.ev-author-box p { margin: 0; color: var(--ev-text-2); font-size: 14px; line-height: 1.8; }
.ev-related { margin: 48px 0; }
.ev-share { margin: 32px 0; padding: 22px 24px; border: 1px solid var(--ev-line); border-radius: var(--ev-r); background: var(--ev-surface); }
.ev-share > div { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.ev-share .ev-field__hint { margin: 0; }
.ev-comments { margin: 48px 0 20px; padding-top: 34px; border-top: 1px solid var(--ev-line); }
.ev-comments__title { font-family: var(--ev-serif); font-size: 24px; margin: 0 0 22px; }
.ev-comments__list { list-style: none; margin: 0 0 26px; padding: 0; }
.ev-comments__list .comment { padding: 18px 0; border-bottom: 1px solid var(--ev-line); color: var(--ev-text-2); }
.ev-comments__list .comment-author { color: var(--ev-text); font-weight: 600; }
.ev-comments input[type="text"], .ev-comments input[type="email"], .ev-comments input[type="url"], .ev-comments textarea { width: 100%; padding: 11px 14px; border-radius: var(--ev-r-sm); border: 1px solid var(--ev-line); background: var(--ev-bg-2); color: var(--ev-text); font-family: inherit; }
.ev-comments textarea { min-height: 130px; }
.ev-comments .submit { border: 0; border-radius: 999px; padding: 11px 26px; background: var(--ev-gold); color: var(--ev-gold-ink); font-weight: 700; cursor: pointer; }
.ev-comments .comment-form-comment label, .ev-comments .comment-form-author label { display: block; margin-bottom: 6px; color: var(--ev-text-2); font-size: 13px; }

/* ---------- 搜索 / 空态 / 404 ---------- */
.ev-search-form { display: flex; gap: 10px; align-items: center; }
.ev-search-form label { font-size: 0; position: absolute; width: 1px; height: 1px; overflow: hidden; }
.ev-search-form input[type="search"] { flex: 1; min-width: 0; }
.ev-search-stat { color: var(--ev-muted); font-size: 13px; margin: -6px 0 22px; }
.ev-search-scope { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.ev-scope__link { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ev-line); color: var(--ev-text-2); font-size: 13px; }
.ev-scope__link:hover, .ev-scope__link.is-active { border-color: var(--ev-gold); color: var(--ev-gold); background: var(--ev-tint); }
.ev-search-empty { padding: 48px 30px; text-align: center; border: 1px dashed var(--ev-line-strong); border-radius: var(--ev-r); background: var(--ev-surface); }
.ev-search-empty h2 { font-family: var(--ev-serif); font-size: 26px; margin: 0 0 10px; }
.ev-search-tip { color: var(--ev-muted); font-size: 14px; line-height: 1.9; }
.ev-search-tip a { color: var(--ev-gold); }
.ev-404 { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 70px 20px; }
.ev-404__code { font-family: var(--ev-serif); font-size: clamp(110px, 22vw, 220px); line-height: .9; letter-spacing: -.06em; background: linear-gradient(160deg, var(--ev-gold-soft), var(--ev-gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.ev-404__title { font-family: var(--ev-serif); font-size: 30px; margin: 10px 0 12px; }
.ev-404__desc { color: var(--ev-text-2); line-height: 1.9; max-width: 520px; margin: 0 auto; }
.ev-404__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.ev-404 .ev-page__search { margin: 28px auto 0; max-width: 560px; }

/* ---------- 广告位 ---------- */
.ev-ad { position: relative; margin: 26px 0; padding: 16px; border: 1px dashed var(--ev-line-strong); border-radius: var(--ev-r-sm); background: var(--ev-tint); overflow: hidden; }
.ev-ad__label { display: inline-block; margin-bottom: 10px; padding: 2px 8px; border: 1px solid var(--ev-line); border-radius: 3px; color: var(--ev-muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.ev-ad__body { min-height: 0; text-align: center; color: var(--ev-muted); font-size: 13px; }
.ev-ad__body img { max-width: 100%; height: auto; border-radius: var(--ev-r-sm); }
/* 信息流广告插在书墙 / 网格中间时独占一整行，不挤占书卡列 */
.ev-shelf .ev-ad--feed, .ev-grid .ev-ad--feed, .ev-shelf > .ev-ad--feed { grid-column: 1 / -1; width: 100%; margin: 6px 0 14px; padding: 16px; border: 1px dashed var(--ev-line); border-radius: var(--ev-r-md); background: rgba(232, 184, 120, .03); }

/* ---- SEO 内链：正文锚文本、术语块、上下篇、HTML 站点地图 ---- */
.ev-il-link { color: var(--ev-gold); text-decoration: underline; text-decoration-color: rgba(232, 184, 120, .42); text-underline-offset: 3px; }
.ev-il-link:hover { text-decoration-color: var(--ev-gold); }
.ev-il-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--ev-line); }
.ev-il-terms__label { margin-right: 4px; color: var(--ev-muted); font-size: 12px; }
.ev-il-terms__link { padding: 5px 12px; border: 1px solid var(--ev-line); border-radius: 999px; color: var(--ev-text-2); font-size: 12px; }
.ev-il-terms__link:hover { border-color: var(--ev-gold); color: var(--ev-gold); }
.ev-il-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.ev-il-prevnext__item { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--ev-line); border-radius: var(--ev-r-md); background: var(--ev-surface); color: var(--ev-text); }
.ev-il-prevnext__item--next { text-align: right; }
.ev-il-prevnext__item:hover { border-color: var(--ev-gold); }
.ev-il-prevnext__item small { color: var(--ev-muted); font-size: 11px; letter-spacing: .1em; }
.ev-il-prevnext__item strong { font-size: 14px; font-weight: 600; }
.ev-il-prevnext__item--empty { visibility: hidden; }
.ev-il-sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.ev-il-sitemap__group h3 { margin: 0 0 12px; color: var(--ev-gold); font-size: 15px; }
.ev-il-sitemap__group ul { margin: 0; padding-left: 18px; }
.ev-il-sitemap__group li { margin-bottom: 6px; color: var(--ev-text-2); font-size: 13px; }
.ev-il-sitemap__group a { color: var(--ev-text); }
.ev-il-sitemap__group a:hover { color: var(--ev-gold); }
@media (max-width: 640px) { .ev-il-prevnext { grid-template-columns: 1fr; } }
.ev-ad--archive_feed { grid-column: 1 / -1; }
.ev-ad--sidebar_top, .ev-ad--sidebar_bottom { margin: 0; }
.ev-ad--footer_before { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }

/* ---------- GEO · AI 速览 ---------- */
.ev-ai-summary { margin: 40px 0; padding: 28px 30px; border: 1px solid var(--ev-line); border-left: 3px solid var(--ev-gold); border-radius: var(--ev-r); background: linear-gradient(135deg, var(--ev-surface), var(--ev-surface-2)); }
.ev-ai-summary__head { margin-bottom: 16px; }
.ev-ai-summary__head h2 { font-family: var(--ev-serif); font-size: 23px; margin: 8px 0 6px; }
.ev-ai-summary__head p { margin: 0; color: var(--ev-muted); font-size: 12px; }
.ev-ai-summary__body p { margin: 0; color: var(--ev-text); font-size: 16px; line-height: 1.9; }
.ev-ai-summary__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 20px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--ev-line); list-style: none; }
.ev-ai-summary__points li { position: relative; padding-left: 18px; color: var(--ev-text-2); font-size: 13px; line-height: 1.8; }
.ev-ai-summary__points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--ev-gold); }
.ev-faq { margin-top: 24px; display: grid; gap: 12px; }
.ev-faq__item { padding: 16px 18px; border: 1px solid var(--ev-line); border-radius: var(--ev-r-sm); background: var(--ev-tint); }
.ev-faq__q { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ev-text); }
.ev-faq__a { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ev-text-2); }

/* ---------- 小工具 / 侧栏 / 页脚 ---------- */
.ev-widget { padding: 20px; border: 1px solid var(--ev-line); border-radius: var(--ev-r); background: var(--ev-surface); }
.ev-widget__title { margin: 0 0 16px; font-family: var(--ev-serif); font-size: 17px; color: var(--ev-text); }
.ev-widget__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev-widget__item { display: flex; align-items: center; gap: 10px; font-size: 13px; min-width: 0; }
.ev-widget__item a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ev-text-2); }
.ev-widget__item a:hover { color: var(--ev-gold); }
.ev-widget__rank { flex: none; font-family: var(--ev-serif); font-size: 17px; color: var(--ev-gold); opacity: .8; }
.ev-widget__count { flex: none; color: var(--ev-muted); font-size: 11px; }
.ev-widget__formats { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-widget__formats em { font-style: normal; opacity: .7; margin-left: 3px; }
.ev-notice { padding: 12px 14px; border: 1px solid var(--ev-line); border-radius: var(--ev-r-sm); background: var(--ev-tint); color: var(--ev-text-2); font-size: 13px; line-height: 1.8; }
.ev-social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-size: 12px; color: var(--ev-muted); }
.ev-social a { color: var(--ev-text-2); }
.ev-social a:hover { color: var(--ev-gold); }
.ev-footer__widgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding: 54px 0 42px; }
.ev-footer__widget-col { min-width: 0; color: var(--ev-text-2); font-size: 13px; }
.ev-footer__widget-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-footer__widget-col a { color: var(--ev-text-2); }
.ev-footer__widget-col a:hover { color: var(--ev-gold); }
.ev-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ev-line-strong); border-radius: 50%; background: var(--ev-glass); color: var(--ev-gold); backdrop-filter: blur(12px); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s ease; }
.ev-to-top.is-show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.ev-to-top:hover { border-color: var(--ev-gold); }
.ev-to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- 头部补充 ---------- */
.ev-header__account { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--ev-line); color: var(--ev-text-2); font-size: 13px; }
.ev-header__account:hover { border-color: var(--ev-gold); color: var(--ev-gold); }
.ev-header__account svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ev-header__back { display: inline-flex; align-items: center; gap: 8px; color: var(--ev-text-2); font-size: 13px; margin-left: auto; margin-right: 20px; }
.ev-header__back:hover { color: var(--ev-gold); }
.ev-header__back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ev-header--auth .ev-header__inner { justify-content: flex-start; }
.ev-header--auth .ev-header__tools { margin-left: auto; }
.ev-footer--auth { border-top: 1px solid var(--ev-line); }
.ev-footer--auth .ev-footer__bottom { border: 0; }

/* ---------- 详情页补充 ---------- */
.ev-detail__extras { margin-top: 36px; }
.ev-detail__widgets { display: grid; gap: 16px; margin-top: 18px; }
.ev-detail__info { min-width: 0; }
.ev-detail__main { min-width: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .ev-layout--sidebar, .ev-layout--left.ev-layout--sidebar { grid-template-columns: minmax(0, 1fr); }
  .ev-layout__side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-layout--left .ev-layout__main, .ev-layout--left .ev-layout__side { order: initial; }
  .ev-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ev-footer__widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ev-grid--3, .ev-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-layout__side { grid-template-columns: minmax(0, 1fr); }
  .ev-card__list { grid-template-columns: 110px minmax(0, 1fr); }
  .ev-ai-summary { padding: 22px; }
}
@media (max-width: 560px) {
  .ev-grid--3, .ev-grid--4, .ev-footer__widgets { grid-template-columns: minmax(0, 1fr); }
  .ev-entry-nav { grid-template-columns: minmax(0, 1fr); }
  .ev-card__list { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
  .ev-post__title { font-size: 28px; }
  .ev-ai-summary__points { grid-template-columns: minmax(0, 1fr); }
  .ev-to-top { right: 14px; bottom: 14px; }
}

/* ==================================================================
   21. v4 —— 紧凑首页书墙 / 读者评分 / 星级重构
   目标：单册封面显著缩小、单位面积展示更多书、评分展示真实票数
   ================================================================== */

/* 星级：平均分 + 星标 + 票数，占位紧凑 */
.ev-stars { position: relative; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; letter-spacing: 1px; line-height: 1; white-space: nowrap; flex: none; }
.ev-stars__icons { position: relative; display: inline-block; }
.ev-stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--ev-gold); }
/* 兼容无 __icons 包裹的旧结构：填充层以 .ev-stars 自身为定位基准，避免溢出到页面左上角 */
.ev-stars > .ev-stars__base { color: var(--ev-line-strong); }
.ev-stars > .ev-stars__fill { max-width: 100%; }
.ev-stars__num { color: var(--ev-gold); font-weight: 700; font-size: 12px; }
.ev-stars__count { color: var(--ev-muted); font-size: 10px; letter-spacing: 0; }
.ev-stars.is-empty .ev-stars__fill { width: 0 !important; }
.ev-card__foot .ev-stars { margin-left: auto; font-size: 10px; letter-spacing: .5px; }
.ev-card__foot .ev-stars__num { font-size: 11px; }

/* ---------- 紧凑主视觉 ---------- */
.ev-hero--compact { padding-top: 52px; }
.ev-hero--compact .ev-hero__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; min-height: 0; padding-bottom: 34px; }
.ev-hero--compact .ev-hero__content { padding-bottom: 0; }
.ev-hero--compact .ev-hero__title { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.28; margin: 16px 0 12px; }
.ev-hero--compact .ev-hero__desc { font-size: 13.5px; line-height: 1.85; max-width: 560px; margin-bottom: 0; }
.ev-hero__actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.ev-hero--compact .ev-hero__search { max-width: 470px; flex: 1; }
.ev-hero__btn { white-space: nowrap; }
.ev-hero--compact .ev-hero__hot { margin-top: 16px; }

/* 真实资源的小书封，取代原来的三本巨型装饰书 */
.ev-hero__shelf { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 230px; }
.ev-hero__shelf-item { display: block; width: 96px; flex: none; margin-left: -22px; transform: translateY(calc((var(--ev-i) - 3) * 8px)) rotate(calc((var(--ev-i) - 3) * 2.2deg)); transition: transform .35s ease; }
.ev-hero__shelf-item:first-child { margin-left: 0; }
.ev-hero__shelf-item:hover { transform: translateY(-12px) rotate(0); z-index: 4; }
.ev-hero__shelf-item .ev-book3d--tile { filter: drop-shadow(8px 12px 14px rgba(0, 0, 0, .55)); }
/* Hero 书架是纯装饰（aria-hidden），96px 下只保留首字水印更干净 */
.ev-hero__shelf-item .ev-book3d__title { display: none; }
.ev-hero__shelf-item .ev-book3d__glyph { font-size: 62px; right: 0; bottom: 8%; }

/* 数据条：细线版 */
.ev-stats--slim { margin-top: 0; border: 0; border-top: 1px solid var(--ev-line); border-radius: 0; background: transparent; backdrop-filter: none; }
.ev-stats--slim .ev-stats__item { padding: 16px 12px; border-right: 1px solid var(--ev-line); }
.ev-stats--slim .ev-stats__item strong { font-size: 23px; }
.ev-stats--slim .ev-stats__item span { font-size: 10.5px; }

/* ---------- 书墙 ---------- */
.ev-section--wall { padding-top: 54px; }
.ev-shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.ev-shelf-head__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.ev-shelf-head__title .ev-section__kicker { flex-basis: 100%; }
.ev-shelf-head__title .ev-section__title { margin: 0; }
.ev-shelf-head__count { color: var(--ev-muted); font-size: 12px; }
.ev-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--ev-line); }
.ev-filter-bar__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-filter-bar__sort { display: flex; gap: 16px; font-size: 12px; white-space: nowrap; }
.ev-filter-bar__sort a { color: var(--ev-muted); }
.ev-filter-bar__sort a:hover { color: var(--ev-gold); }
.ev-shelf { display: grid; gap: 12px; }
.ev-shelf--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ev-shelf--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ev-shelf--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ev-shelf--cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.ev-shelf__foot { display: flex; justify-content: center; margin-top: 30px; }

/* 小书封变体 */
/* 小书封只保留「首字水印 + 书名」两级信息，其余文字交给卡片正文，避免缩小后拥挤 */
.ev-book3d--tile { transform: perspective(620px) rotateY(-6deg); filter: drop-shadow(6px 9px 12px rgba(0, 0, 0, .48)); }
.ev-book3d--tile .ev-book3d__face { padding: 10% 9% 9% 13%; }
.ev-book3d--tile .ev-book3d__spine { width: 6px; }
.ev-book3d--tile .ev-book3d__cat, .ev-book3d--tile .ev-book3d__rule, .ev-book3d--tile .ev-book3d__author { display: none; }
.ev-book3d--tile .ev-book3d__ring { opacity: .32; }
.ev-book3d--tile .ev-book3d__glyph { right: -4%; bottom: 6%; font-size: 88px; color: rgba(255, 255, 255, .16); }
.ev-book3d--tile .ev-book3d__title { font-size: 12px; line-height: 1.4; -webkit-line-clamp: 2; letter-spacing: .01em; }

.ev-tile { position: relative; padding: 14px 12px 11px; border: 1px solid var(--ev-line); border-radius: 12px; background: var(--ev-surface); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.ev-tile:hover { border-color: rgba(232, 184, 120, .48); transform: translateY(-3px); box-shadow: var(--ev-shadow); }
.ev-tile__cover { position: relative; display: block; width: 100%; max-width: 116px; margin: 0 auto; }
.ev-tile__cover .ev-format-badge { position: absolute; left: -5px; top: 7px; z-index: 5; padding: 2px 6px; font-size: 9px; }
.ev-tile__flag { position: absolute; right: -4px; top: -6px; z-index: 5; padding: 2px 6px; border-radius: 4px; background: var(--ev-gold); color: var(--ev-gold-ink); font-size: 9px; font-weight: 700; }
.ev-tile__body { margin-top: 13px; }
.ev-tile__title { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 39px; }
.ev-tile__title a { color: var(--ev-text); }
.ev-tile__title a:hover { color: var(--ev-gold); }
.ev-tile__author { margin: 3px 0 0; font-size: 10.5px; color: var(--ev-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-tile__meta { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--ev-line); font-size: 10.5px; }
.ev-tile__score { color: var(--ev-gold); font-weight: 600; white-space: nowrap; }
.ev-tile__score i { font-style: normal; font-size: 10px; margin-right: 2px; }
.ev-tile__score em { font-style: normal; color: var(--ev-muted); font-weight: 400; font-size: 9.5px; }
.ev-tile__dl { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--ev-text-2); }
.ev-tile__dl svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ev-tile__go { position: absolute; right: 10px; top: 10px; z-index: 6; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ev-line-strong); background: var(--ev-glass); color: var(--ev-gold); opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.ev-tile:hover .ev-tile__go, .ev-tile__go:focus-visible { opacity: 1; transform: none; }
.ev-tile__go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ev-tile__go--ghost { color: var(--ev-text-2); }

/* ---------- 编辑精选：一行式紧凑条目 ---------- */
.ev-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev-pick { display: grid; grid-template-columns: 24px 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid var(--ev-line); border-radius: 10px; background: var(--ev-surface); transition: border-color .25s ease, transform .25s ease; }
.ev-pick:hover { border-color: rgba(232, 184, 120, .48); transform: translateX(3px); }
.ev-pick__no { font-family: var(--ev-serif); font-size: 16px; color: var(--ev-gold); }
.ev-pick__cover { display: block; width: 38px; }
.ev-pick__cover .ev-book3d--tile { transform: none; filter: drop-shadow(3px 4px 5px rgba(0, 0, 0, .4)); }
.ev-pick__cover .ev-book3d__cat, .ev-pick__cover .ev-book3d__title, .ev-pick__cover .ev-book3d__rule, .ev-pick__cover .ev-book3d__author, .ev-pick__cover .ev-book3d__ring { display: none; }
.ev-pick__cover .ev-book3d__glyph { font-size: 26px; right: 4%; bottom: 2%; }
.ev-pick__info { display: grid; gap: 3px; min-width: 0; }
.ev-pick__info strong { font-size: 12.5px; font-weight: 600; color: var(--ev-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-pick__info small { font-size: 10.5px; color: var(--ev-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-pick__dl { font-size: 11px; color: var(--ev-gold); white-space: nowrap; }

/* ---------- 读者评分 ---------- */
.ev-rate { padding: 24px 26px; border: 1px solid var(--ev-line); border-radius: var(--ev-r); background: var(--ev-surface); }
.ev-rate__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ev-rate__head h3 { margin: 0; font-family: var(--ev-serif); font-size: 19px; font-weight: 600; }
.ev-rate__summary { display: flex; align-items: center; gap: 10px; }
.ev-rate__summary > strong { font-family: var(--ev-serif); font-size: 29px; line-height: 1; color: var(--ev-gold); font-variant-numeric: tabular-nums; }
.ev-rate__stars-view { position: relative; display: inline-block; font-size: 14px; letter-spacing: 1.5px; line-height: 1; }
.ev-rate__count, .ev-rate__empty, .ev-rate__mine, .ev-rate__hint { color: var(--ev-text-2); font-size: 11.5px; }
.ev-rate__summary.is-empty > strong, .ev-rate__summary.is-empty .ev-rate__stars-view, .ev-rate__summary.is-empty .ev-rate__count { display: none; }
.ev-rate__summary:not(.is-empty) .ev-rate__empty { display: none; }
.ev-rate__vote { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ev-line); }
.ev-rate__stars { display: inline-flex; gap: 1px; }
.ev-rate__star { padding: 0 3px; border: 0; background: none; color: rgba(232, 184, 120, .62); font-size: 24px; line-height: 1.2; cursor: pointer; transition: color .15s ease, transform .15s ease; }
.ev-rate__star:hover { color: var(--ev-gold-soft); }
.ev-rate__star.is-on { color: var(--ev-gold); }
.ev-rate__star.is-hover { color: var(--ev-gold-soft); transform: scale(1.12); }
.ev-rate__star:focus-visible { outline: 2px solid var(--ev-gold); outline-offset: 2px; border-radius: 4px; }
.ev-rate__login { margin: 16px 0 0; }
.ev-rate__login a { color: var(--ev-gold); }
.ev-rate__msg { margin: 12px 0 0; font-size: 12px; }
.ev-rate__msg.is-ok { color: #6bbf8a; }
.ev-rate__msg.is-error { color: #e8836f; }
.ev-rate__method { margin: 12px 0 0; color: var(--ev-muted); font-size: 11px; line-height: 1.8; }
.ev-detail__rating .ev-stars { font-size: 12px; }
.ev-home-widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .ev-shelf--cols-8 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ev-hero--compact .ev-hero__grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .ev-hero__shelf-item { width: 80px; }
}
@media (max-width: 1000px) {
  .ev-hero--compact .ev-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ev-hero__shelf { display: none; }
  .ev-shelf--cols-5, .ev-shelf--cols-6, .ev-shelf--cols-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ev-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ev-shelf--cols-4, .ev-shelf--cols-5, .ev-shelf--cols-6, .ev-shelf--cols-8 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ev-picks, .ev-home-widgets { grid-template-columns: minmax(0, 1fr); }
  .ev-filter-bar__sort { width: 100%; }
  .ev-hero__actions { flex-direction: column; align-items: stretch; }
  .ev-hero--compact .ev-hero__search { max-width: none; }
}
@media (max-width: 520px) {
  .ev-shelf--cols-4, .ev-shelf--cols-5, .ev-shelf--cols-6, .ev-shelf--cols-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-stats--slim { grid-template-columns: repeat(2, 1fr); }
  .ev-stats--slim .ev-stats__item:nth-child(2) { border-right: 0; }
  .ev-rate { padding: 18px; }
}

/* 浅色模式：保证小卡与评分组件在纸白底上的层次 */
html[data-ev-theme="light"] .ev-tile, html[data-ev-theme="light"] .ev-pick, html[data-ev-theme="light"] .ev-rate { background: #fff; }
html[data-ev-theme="light"] .ev-stars__base { color: #d8d2c8; }
html[data-ev-theme="light"] .ev-rate__star { color: #a08a68; }
html[data-ev-theme="light"] .ev-rate__star.is-on { color: #a56d25; }
html[data-ev-theme="light"] .ev-rate__star.is-hover { color: #d9a860; }

/* ==================================================================
   资源式文章页：普通文章填了下载地址后，文章页本身就是内容页 + 下载页
   ================================================================== */
.ev-post--book { max-width: 100%; }
.ev-bookpost__head {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 40px;
  padding: 28px;
  border: 1px solid var(--ev-line);
  border-radius: 20px;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(232, 184, 120, .08), transparent 70%),
    linear-gradient(160deg, var(--ev-surface), var(--ev-bg-2));
  box-shadow: var(--ev-shadow-soft);
}
.ev-bookpost__cover { position: relative; padding: 14px; border: 1px solid var(--ev-line); border-radius: 14px; background: var(--ev-tint); }
.ev-bookpost__cover .ev-book3d { max-width: 220px; margin: 0 auto; }
.ev-bookpost__info { min-width: 0; }
.ev-bookpost__title { margin: 14px 0 0; font-family: var(--ev-serif); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.25; letter-spacing: -.02em; }
.ev-post--book .ev-download-panel { margin: 30px 0; }
.ev-post--book .ev-specs { margin: 34px 0 44px; }
.ev-inline-download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; }
.ev-inline-download .ev-dl-btn { margin: 0; }
/* 编辑器按钮生成的短代码自带备用线路：自包含样式，不依赖条件加载的 detail.css */
.ev-inline-download .ev-mirrors--inline { flex: 1 1 100%; margin: 4px 0 0; padding: 16px 18px; border: 1px solid var(--ev-line); border-radius: var(--ev-r); background: var(--ev-surface); }
.ev-inline-download .ev-mirrors--inline .ev-mirrors__head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.ev-inline-download .ev-mirrors--inline .ev-mirrors__head span { color: var(--ev-muted); font-weight: 400; }
.ev-inline-download .ev-mirrors--inline .ev-mirrors__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ev-inline-download .ev-mirrors--inline .ev-mirrors__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--ev-line); border-radius: 8px; }
.ev-inline-download .ev-mirrors--inline .ev-mirrors__link { display: flex; align-items: center; gap: 8px; color: var(--ev-text); font-size: 13px; text-decoration: none; }
.ev-inline-download .ev-mirrors--inline .ev-mirrors__dot { width: 7px; height: 7px; border-radius: 50%; background: #6bbf8a; }
.ev-inline-download .ev-mirrors--inline .ev-mirrors__code { flex: none; }
.screen-reader-text:not(:focus):not(:active) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .ev-bookpost__head { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px; }
  .ev-bookpost__cover { max-width: 260px; margin: 0 auto; }
}
html[data-ev-theme="light"] .ev-bookpost__head { box-shadow: 0 12px 34px rgba(28, 34, 48, .07); }

/* 可选：把正文里已识别为下载链接的普通 <a> 渲染成按钮，不改 href / 文字 */
a.ev-cl-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--ev-gold, #d9b26a); border-radius: 8px; background: rgba(217, 178, 106, .1); color: var(--ev-text); font-weight: 600; text-decoration: none; }
a.ev-cl-link::before { content: "\2193"; color: var(--ev-gold, #d9b26a); font-size: 15px; }
a.ev-cl-link:hover { background: rgba(217, 178, 106, .2); text-decoration: none; }

