/* ==========================================================================
   Welle — main.css
   1. Tokens  2. Base  3. Layout  4. Header  5. Search  6. Home  7. Cards
   8. Sidebar  9. Archive  10. Single / Entry  11. Footer  12. Utilities
   13. Plugin compat (Mini WPBOM)  14. Responsive  15. Reduced motion
   16. Topbar / layouts / footer widgets  17. Front page modules
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--c-bg: #f6f6f3;
	--c-surface: #ffffff;
	--c-surface-2: #f0f0ec;
	--c-text: #1b1c1e;
	--c-muted: #6b6f76;
	--c-line: #e6e6e1;
	--c-accent: #2f5bea;
	--c-accent-rgb: 47, 91, 234;
	--c-accent-soft: rgba(var(--c-accent-rgb), .1);
	--c-on-accent: #ffffff;
	--c-mark: #fff1a8;
	--shadow: 0 6px 24px rgba(20, 22, 26, .06);
	--radius: 14px;
	--radius-sm: 8px;
	--header-h: 64px;
	--gap: 32px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--c-bg: #0f1114;
	--c-surface: #171a1f;
	--c-surface-2: #1f232a;
	--c-text: #e8e9eb;
	--c-muted: #9aa0a8;
	--c-line: #272b33;
	--c-accent: #7b9bff;
	--c-accent-rgb: 123, 155, 255;
	--c-accent-soft: rgba(var(--c-accent-rgb), .14);
	--c-on-accent: #0f1114;
	--c-mark: rgba(255, 214, 10, .28);
	--shadow: 0 6px 24px rgba(0, 0, 0, .35);
	color-scheme: dark;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent); }

img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
svg.icon { flex: none; }

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.4; font-weight: 700; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

mark { background: var(--c-mark); color: inherit; padding: 0 2px; border-radius: 3px; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: 1248px;
	margin: 0 auto;
	padding: 0 24px;
}

.site-content { padding: 24px 0 56px; min-height: 60vh; }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--gap);
	align-items: start;
}

.layout-full { grid-template-columns: minmax(0, 1fr); max-width: 880px; margin: 0 auto; }

.content-area { min-width: 0; }

.box {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	padding: 20px;
}

.box-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	margin-bottom: 14px;
}
.box-title .icon { color: var(--c-accent); }

.section-title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 18px;
	margin: 0 0 14px;
}
.section-title small { font-size: 13px; font-weight: 400; color: var(--c-muted); }

/* Buttons & chips */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 22px;
	border-radius: 999px;
	background: var(--c-accent);
	color: var(--c-on-accent);
	font-weight: 600;
	transition: opacity .15s var(--ease);
}
.btn:hover { color: var(--c-on-accent); opacity: .88; }

.chip {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	color: var(--c-text);
	font-size: 14px;
	white-space: nowrap;
	transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.chip:hover { border-color: var(--c-accent); color: var(--c-accent); }
.chip.is-active { background: var(--c-text); border-color: var(--c-text); color: var(--c-surface); }
.chip-sm { height: 28px; padding: 0 12px; font-size: 13px; background: var(--c-surface-2); border-color: transparent; }
.chip-sm:hover { background: var(--c-accent-soft); border-color: transparent; }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--c-text);
	transition: background-color .15s var(--ease), color .15s var(--ease);
}
.icon-btn:hover { background: var(--c-surface-2); color: var(--c-accent); }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-line);
}
.admin-bar .site-header { top: 32px; }

.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: var(--header-h);
}

.site-brand { margin: 0; font-size: 20px; line-height: 1; flex: none; }
.site-title { font-weight: 800; letter-spacing: .5px; }
.site-title:hover { color: var(--c-text); }
.custom-logo-link { display: block; }
.custom-logo { max-height: 36px; width: auto; }
.site-brand { display: flex; align-items: center; gap: 10px; }
.logo-dark { display: none; }
[data-theme="dark"] .custom-logo.logo-light { display: none; }
[data-theme="dark"] .custom-logo.logo-dark { display: inline-block; }

.site-nav { flex: 1; min-width: 0; }
.site-nav .menu { display: flex; align-items: center; gap: 4px; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: flex;
	align-items: center;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 15px;
	white-space: nowrap;
	transition: background-color .15s var(--ease), color .15s var(--ease);
}
.site-nav .menu a:hover { background: var(--c-surface-2); color: var(--c-text); }
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current-post-ancestor > a,
.site-nav .current-category-ancestor > a { color: var(--c-accent); font-weight: 600; }

.site-nav .menu-item-has-children > a::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-left: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: .6;
}

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 180px;
	padding: 8px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: 12px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
}
.site-nav .sub-menu a { height: 36px; border-radius: var(--radius-sm); }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.theme-icon-light, .theme-icon-dark, .menu-icon-open, .menu-icon-close { display: inline-flex; }
.theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-light { display: inline-flex; }
[data-theme="dark"] .theme-icon-dark { display: none; }
.menu-toggle { display: none; }
.menu-icon-close { display: none; }
.nav-open .menu-icon-open { display: none; }
.nav-open .menu-icon-close { display: inline-flex; }
.no-js .theme-toggle { display: none; }

.read-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	pointer-events: none;
}
.read-progress span {
	display: block;
	height: 100%;
	background: var(--c-accent);
	transform: scaleX(var(--progress, 0));
	transform-origin: 0 50%;
}

/* 5. Search layer ---------------------------------------------------------- */
.search-layer {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	justify-content: center;
	align-items: flex-start;
	padding: 12vh 16px 16px;
	background: rgba(10, 12, 15, .45);
}
.search-layer:target,
.search-layer.is-open { display: flex; }
.search-layer-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 640px;
	padding: 10px;
	background: var(--c-surface);
	border-radius: var(--radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}
.search-layer .search-form { flex: 1; }
.search-layer .search-input { height: 52px; font-size: 17px; border-color: transparent; background: var(--c-surface-2); }

.search-form { position: relative; display: flex; }
.search-input {
	width: 100%;
	height: 44px;
	padding: 0 48px 0 16px;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-surface);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s var(--ease);
}
.search-input:focus { border-color: var(--c-accent); }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-submit {
	position: absolute;
	top: 50%;
	right: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--c-muted);
	transform: translateY(-50%);
}
.search-submit:hover { color: var(--c-accent); }

/* 6. Home ------------------------------------------------------------------ */
.hero {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
	margin-bottom: 24px;
	height: 420px;
}
.hero-item {
	position: relative;
	min-height: 0;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-surface-2);
}
.hero-main { grid-row: span 2; }
.hero-link { display: block; height: 100%; color: #fff; }
.hero-link:hover { color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s var(--ease);
}
.hero-link:hover .hero-img { transform: scale(1.03); }
.hero-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 48px 20px 18px;
	background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}
.hero-main .hero-text { padding: 80px 28px 26px; }
.hero-cat {
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .5px;
}
.hero-title {
	font-size: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hero-main .hero-title { font-size: clamp(20px, 2.2vw, 28px); }
.hero-date { font-size: 12px; opacity: .8; }

.hero-item.no-thumb { background: var(--c-accent-soft); }
.hero-item.no-thumb .hero-link { color: var(--c-text); }
.hero-item.no-thumb .hero-text { background: none; top: 0; justify-content: flex-end; }
.hero-item.no-thumb .hero-cat { background: var(--c-surface); color: var(--c-accent); }

.cat-chips { margin: 0 0 24px; }
.cat-chips ul {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 2px;
}
.cat-chips ul::-webkit-scrollbar { display: none; }

/* 7. Cards ----------------------------------------------------------------- */
.post-list { display: flex; flex-direction: column; gap: 16px; }

.card {
	display: flex;
	align-items: stretch;
	gap: 24px;
	padding: 20px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }

.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-cat {
	align-self: flex-start;
	margin-bottom: 6px;
	color: var(--c-accent);
	font-size: 13px;
	font-weight: 600;
}
.card-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--c-accent-soft);
	color: var(--c-accent);
	font-size: 12px;
}
.card { position: relative; }
.card-title {
	font-size: 19px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card-title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size .2s var(--ease), color .15s var(--ease);
}
.card-title a:hover { background-size: 100% 1px; }
.card-excerpt {
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 12px; }

.meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--c-muted);
	font-size: 13px;
}

.card-thumb {
	flex: none;
	width: 240px;
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	overflow: hidden;
	background: var(--c-surface-2);
	align-self: center;
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card-img { transform: scale(1.03); }

/* Pagination */
.pagination { margin-top: 28px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	font-size: 14px;
	transition: border-color .15s var(--ease), color .15s var(--ease);
}
.pagination a.page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .current { background: var(--c-text); border-color: var(--c-text); color: var(--c-surface); font-weight: 600; }
.pagination .dots { border: 0; background: none; min-width: 20px; padding: 0; }

/* 8. Sidebar --------------------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.layout-single > .sidebar { align-self: stretch; } /* 侧栏与正文等高，目录才能吸顶 */
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.admin-bar .sidebar-sticky { top: calc(var(--header-h) + 52px); }

.profile { text-align: center; padding-top: 28px; }
.profile-avatar {
	width: 72px;
	height: 72px;
	margin: 0 auto 12px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--c-surface-2);
}
.profile-name { font-size: 18px; }
.profile-bio { margin-top: 6px; color: var(--c-muted); font-size: 14px; }
.profile-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 18px 0 4px;
	padding: 14px 0 0;
	border-top: 1px solid var(--c-line);
}
.profile-stats div { display: flex; flex-direction: column-reverse; }
.profile-stats dt { color: var(--c-muted); font-size: 12px; }
.profile-stats dd { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.profile-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.profile-social .icon-btn { background: var(--c-surface-2); width: 36px; height: 36px; }
.profile-social .icon-btn:hover { background: var(--c-accent-soft); }

.rank-list { counter-reset: rank; display: flex; flex-direction: column; }
.rank-list li { counter-increment: rank; display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--c-line); }
.rank-list li:first-child { border-top: 0; padding-top: 0; }
.rank-list a {
	font-size: 14px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rank-list.is-ranked li::before {
	content: counter(rank);
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border-radius: 6px;
	background: var(--c-surface-2);
	color: var(--c-muted);
	font-size: 12px;
	font-weight: 700;
}
.rank-list.is-ranked li:nth-child(-n+3)::before { background: var(--c-accent); color: var(--c-on-accent); }
.rank-list:not(.is-ranked) li::before {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	margin-top: 10px;
	border-radius: 50%;
	background: var(--c-accent);
}

.cat-list li a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 10px;
	margin: 0 -10px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	transition: background-color .15s var(--ease);
}
.cat-list li a:hover { background: var(--c-surface-2); }
.cat-list .count {
	min-width: 26px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--c-surface-2);
	color: var(--c-muted);
	font-size: 12px;
	text-align: center;
}

.tag-cloud, .entry-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* 经典小工具默认样式 */
.widget ul li { padding: 5px 0; font-size: 14px; }
.widget ul ul { padding-left: 14px; }
.widget select { width: 100%; padding: 8px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-surface); }

/* TOC */
.toc-list { display: flex; flex-direction: column; max-height: calc(100vh - 220px); overflow-y: auto; scrollbar-width: thin; }
.toc-list a {
	display: block;
	padding: 5px 10px;
	border-left: 2px solid var(--c-line);
	color: var(--c-muted);
	font-size: 14px;
	line-height: 1.5;
	transition: color .15s var(--ease), border-color .15s var(--ease);
}
.toc-list a:hover { color: var(--c-text); }
.toc-list a.is-active { color: var(--c-accent); border-left-color: var(--c-accent); font-weight: 600; }
.toc-l3 a { padding-left: 24px; font-size: 13px; }

.toc-inline {
	display: none;
	margin: 0 0 24px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--c-surface-2);
}
.toc-inline summary {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: auto;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.toc-inline[open] summary::after { transform: rotate(-135deg); }
.toc-inline .toc-list { margin-top: 10px; max-height: none; }

/* 9. Archive / breadcrumb -------------------------------------------------- */
.breadcrumb { margin: 0 0 18px; font-size: 13px; color: var(--c-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb li + li::before {
	content: "";
	width: 5px;
	height: 5px;
	margin: 0 10px;
	border-top: 1.25px solid currentColor;
	border-right: 1.25px solid currentColor;
	transform: rotate(45deg);
	opacity: .6;
}
.breadcrumb a { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb [aria-current="page"] {
	max-width: 32em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--c-text);
}

.archive-header { margin-bottom: 20px; padding: 24px; }
.archive-label { color: var(--c-accent); font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.archive-title { font-size: clamp(22px, 2.6vw, 28px); margin-top: 4px; }
.archive-desc { margin-top: 8px; color: var(--c-muted); }
.archive-desc p + p { margin-top: .6em; }
.archive-count { margin-top: 10px; color: var(--c-muted); font-size: 13px; }
.archive-header .search-form { margin-top: 16px; max-width: 520px; }

.empty { text-align: center; padding: 48px 24px; }
.empty-title { color: var(--c-muted); margin-bottom: 16px; }
.empty-admin { max-width: 520px; margin: 20px auto 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--c-mark); font-size: 13px; text-align: left; }
.empty-admin a { color: var(--c-accent); text-decoration: underline; }
.empty .search-form { max-width: 420px; margin: 0 auto; }

.notfound { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.notfound-box { text-align: center; padding: 48px 24px; }
.notfound-code {
	font-size: clamp(64px, 12vw, 112px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -2px;
	color: var(--c-accent);
}
.notfound-title { margin-top: 12px; font-size: 22px; }
.notfound-text { margin: 8px 0 20px; color: var(--c-muted); }
.notfound-box .search-form { max-width: 420px; margin: 0 auto 20px; }

/* 10. Single / Entry ------------------------------------------------------- */
.entry { padding: 36px 44px 32px; }
.entry-header { margin-bottom: 24px; }
.entry-cat {
	display: inline-block;
	margin-bottom: 10px;
	padding: 2px 12px;
	border-radius: 999px;
	background: var(--c-accent-soft);
	color: var(--c-accent);
	font-size: 13px;
	font-weight: 600;
}
.entry-title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.35; letter-spacing: -.2px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.meta-author { font-weight: 600; color: var(--c-text); }

.entry-thumb { margin: 0 0 28px; border-radius: 12px; overflow: hidden; background: var(--c-surface-2); }
.entry-thumb img { width: 100%; }

.entry-content { font-size: 17px; line-height: 1.85; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content h2 {
	position: relative;
	margin-top: 2em;
	padding-left: 14px;
	font-size: 23px;
}
.entry-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: .3em;
	bottom: .3em;
	width: 4px;
	border-radius: 4px;
	background: var(--c-accent);
}
.entry-content h3 { margin-top: 1.7em; font-size: 20px; }
.entry-content h4 { margin-top: 1.5em; font-size: 17px; }
.entry-content a {
	color: var(--c-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(var(--c-accent-rgb), .35);
	transition: text-decoration-color .15s var(--ease);
}
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .35em; }
.entry-content li::marker { color: var(--c-muted); }
.entry-content strong { font-weight: 700; }
.entry-content img { border-radius: 10px; }
.entry-content figure, .entry-content .wp-caption { max-width: 100%; }
.entry-content figcaption, .entry-content .wp-caption-text {
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 14px;
	text-align: center;
}
.entry-content .aligncenter, .entry-content img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 14px 20px;
	border-left: 4px solid var(--c-accent);
	border-radius: 0 10px 10px 0;
	background: var(--c-surface-2);
	color: var(--c-muted);
}
.entry-content blockquote > * + * { margin-top: .6em; }
.entry-content hr { border: 0; height: 1px; margin: 2em 0; background: var(--c-line); }
.entry-content table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 15px;
}
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--c-line); text-align: left; }
.entry-content th { background: var(--c-surface-2); font-weight: 600; }
.entry-content :not(pre) > code {
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--c-surface-2);
	font-family: var(--font-mono);
	font-size: .88em;
}
.entry-content pre:not(.mwpb-codebox) {
	padding: 16px 18px;
	border-radius: 10px;
	background: #1f2430;
	color: #e6e6e6;
	font: 14px/1.7 var(--font-mono);
	overflow-x: auto;
	tab-size: 4;
}
.entry-content pre:not(.mwpb-codebox) code { background: none; padding: 0; color: inherit; font: inherit; }
.entry-content iframe, .entry-content video { max-width: 100%; border-radius: 10px; }
.entry-content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.page-links > * { display: inline-flex; min-width: 36px; height: 36px; padding: 0 10px; align-items: center; justify-content: center; border: 1px solid var(--c-line); border-radius: 999px; text-decoration: none !important; }

.entry-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--c-line); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.post-nav-item { display: flex; flex-direction: column; gap: 6px; transition: border-color .15s var(--ease); }
.post-nav-item:hover { border-color: var(--c-accent); color: var(--c-text); }
.post-nav-item.next { grid-column: 2; text-align: right; align-items: flex-end; }
.post-nav-label { display: inline-flex; align-items: center; gap: 4px; color: var(--c-muted); font-size: 13px; }
.post-nav-title {
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.related { margin-top: 20px; }
.related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.related-item a { display: flex; gap: 12px; align-items: flex-start; }
.related-media { flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--c-surface-2); }
.related-media img { width: 100%; height: 100%; object-fit: cover; }
.related-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.related-item time { display: block; margin: 4px 0 0 124px; color: var(--c-muted); font-size: 12px; }
.related-item.no-thumb time { margin-left: 0; }

/* 11. Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--c-line); background: var(--c-surface); font-size: 14px; color: var(--c-muted); }
.footer-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px 32px;
	padding-top: 32px;
	padding-bottom: 32px;
}
.footer-title { font-size: 17px; font-weight: 800; color: var(--c-text); }
.footer-logo { display: inline-block; }
.footer-logo img { max-height: 40px; width: auto; }
.footer-desc { margin-top: 4px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 16px; border-top: 1px solid var(--c-line); font-size: 13px; }
.beian { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 40;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s, background-color .15s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.no-js .to-top { opacity: 1; visibility: visible; transform: none; }

/* 12. Utilities ------------------------------------------------------------ */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 200;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--c-accent);
	color: var(--c-on-accent);
	border-radius: var(--radius-sm);
}

/* 13. Mini WPBOM compat ---------------------------------------------------- */
/* 作品入口卡片使用内联浅色样式，深色模式下覆盖背景与文字色，保留主题色竖线与按钮。 */
[data-theme="dark"] .mwpb-promo { background-color: var(--c-surface-2) !important; border-top-color: var(--c-line) !important; border-right-color: var(--c-line) !important; border-bottom-color: var(--c-line) !important; }
[data-theme="dark"] .mwpb-promo p[style*="#1f2329"] { color: var(--c-text) !important; }
[data-theme="dark"] .mwpb-promo p[style*="#6b7280"] { color: var(--c-muted) !important; }
.entry-content .mwpb-promo a { text-decoration: none; }
.entry-content .mwpb-promo p { margin-top: 0; }
.entry-content .mwpb-codebox { margin-top: 1.4em; }

/* 14. Responsive ----------------------------------------------------------- */
@media (max-width: 1099px) {
	.layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
	.entry { padding: 28px 28px 24px; }
	.hero { height: 380px; }
}

@media (max-width: 959px) {
	:root { --gap: 24px; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar-sticky { display: none; }
	.toc-inline { display: block; }

	.menu-toggle { display: inline-flex; }
	.header-inner { gap: 12px; }
	.site-nav {
		position: fixed;
		top: var(--header-h);
		right: 0;
		bottom: 0;
		z-index: 60;
		width: min(320px, 86vw);
		padding: 16px;
		overflow-y: auto;
		background: var(--c-surface);
		border-left: 1px solid var(--c-line);
		box-shadow: var(--shadow);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .22s var(--ease), visibility .22s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-nav .menu a { height: 44px; border-radius: var(--radius-sm); }
	.site-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 12px;
		border: 0;
		box-shadow: none;
		background: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.site-nav .menu-item-has-children > a::after { display: none; }

	/* 无 JS：菜单作为可横向滚动的一行显示 */
	.no-js .site-nav {
		position: static;
		width: auto;
		padding: 0;
		border: 0;
		box-shadow: none;
		transform: none;
		visibility: visible;
		overflow-x: auto;
	}
	.no-js .site-nav .menu { flex-direction: row; }
	.no-js .site-nav .sub-menu { display: none; }
	.no-js .menu-toggle { display: none; }

	.nav-backdrop {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		z-index: 45;
		background: rgba(10, 12, 15, .35);
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.site-content { padding: 16px 0 40px; }
	.hero { grid-template-columns: 1fr; grid-template-rows: none; height: auto; gap: 12px; }
	.hero-main { grid-row: auto; aspect-ratio: 16 / 10; }
	.hero-item:not(.hero-main) { aspect-ratio: 16 / 7; }
	.hero-main .hero-text { padding: 60px 18px 16px; }

	.card { flex-direction: column-reverse; gap: 14px; padding: 14px; }
	.card-thumb { width: 100%; }
	.card-title { font-size: 17px; }
	.card-badge { right: 14px; }

	.entry { padding: 22px 18px 20px; border-radius: 12px; }
	.entry-content { font-size: 16px; }
	.entry-content h2 { font-size: 20px; }
	.entry-content h3 { font-size: 18px; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em auto; }

	.post-nav { grid-template-columns: 1fr; }
	.post-nav-item.next { grid-column: auto; }
	.related-list { grid-template-columns: 1fr; }

	.footer-inner { grid-template-columns: 1fr; }
	.footer-legal { flex-direction: column; }
	.to-top { right: 16px; bottom: 16px; }
}

/* 15. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.card:hover, .card:hover .card-img, .hero-link:hover .hero-img { transform: none; }
}

/* Print -------------------------------------------------------------------- */
@media print {
	.topbar, .site-header, .sidebar, .site-footer, .to-top, .post-nav, .related, .breadcrumb, .toc { display: none !important; }
	.layout { display: block; }
	.entry { border: 0; padding: 0; }
}

/* 16. Topbar / layouts / footer widgets ------------------------------------ */
.topbar { background: var(--c-surface-2); border-bottom: 1px solid var(--c-line); color: var(--c-muted); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 36px; flex-wrap: wrap; }
.topbar-text a { color: var(--c-text); }
.topbar-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.topbar-menu a:hover { color: var(--c-accent); }

.btn-sm { padding: 6px 16px; font-size: 14px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost:hover { color: inherit; background: rgba(255, 255, 255, .12); opacity: 1; }
.btn-light { background: #fff; color: #15171a; }
.btn-light:hover { color: #15171a; }
.header-cta { margin-right: 6px; white-space: nowrap; }

.layout-left { grid-template-columns: 320px minmax(0, 1fr); }
.layout-left > .sidebar { order: -1; }
.layout-full .toc-inline { display: block; }

.stats-box .profile-stats { margin-top: 0; padding-top: 0; border-top: 0; text-align: center; }

.footer-widgets { border-bottom: 1px solid var(--c-line); }
.footer-widgets-inner { display: grid; gap: 28px 40px; padding-top: 36px; padding-bottom: 32px; }
.footer-widgets-inner.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-widgets-inner.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-widget + .footer-widget { margin-top: 20px; }
.footer-widget-title { margin-bottom: 10px; font-size: 15px; color: var(--c-text); }
.footer-widget ul li { padding: 3px 0; }
.footer-widget img { border-radius: 8px; }
.beian a, .beian span { display: inline-flex; align-items: center; gap: 4px; }

/* 17. Front page modules --------------------------------------------------- */
.is-corporate-home .site-content { padding: 0; }

.fp-module { padding: 64px 0; }
/* 相邻两个默认背景的模块之间不重复留白 */
.fp-module:not([class*="fp-bg-"]):not(.fp-mod-banner):not(.fp-mod-slider):not(.fp-mod-cta) + .fp-module:not([class*="fp-bg-"]):not(.fp-mod-banner):not(.fp-mod-slider):not(.fp-mod-cta) { padding-top: 0; }
.fp-mod-banner, .fp-mod-slider, .fp-mod-cta { padding: 0; }
.fp-bg-white { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.fp-bg-soft { background: var(--c-surface-2); }
.fp-bg-accent {
	color: #fff;
	background-color: #0f1114;
	background-image: linear-gradient(120deg, rgba(var(--c-accent-rgb), .95), rgba(var(--c-accent-rgb), .6));
}
.fp-bg-accent .fp-desc, .fp-bg-accent .fp-more { color: rgba(255, 255, 255, .85); }
.fp-bg-accent .fp-number dd { color: #fff; }
.fp-bg-accent .fp-number dt { color: rgba(255, 255, 255, .8); }
.fp-bg-accent .box { color: var(--c-text); }
.fp-bg-accent .chip { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; }

.fp-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.fp-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; margin-bottom: 24px; text-align: left; }
.fp-title { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.2px; }
.fp-desc { margin-top: 8px; color: var(--c-muted); }
.fp-more { display: inline-flex; align-items: center; gap: 2px; flex: none; color: var(--c-muted); font-size: 14px; white-space: nowrap; }
.fp-empty { padding: 80px 24px; text-align: center; }
.fp-empty p { margin-bottom: 16px; color: var(--c-muted); }

/* 横幅 / 幻灯片 / 联系引导 */
.fp-banner,
.fp-cta {
	position: relative;
	overflow: hidden;
	color: #fff;
	background-color: #0f1114;
	background-image: linear-gradient(120deg, rgba(var(--c-accent-rgb), .95), rgba(var(--c-accent-rgb), .55));
}
.fp-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-banner.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 16, .72), rgba(10, 12, 16, .25)); }
.fp-banner.is-center.has-image::after { background: rgba(10, 12, 16, .5); }
.fp-banner-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: var(--fp-h, 480px); padding-top: 72px; padding-bottom: 72px; }
.fp-banner.is-center .fp-banner-inner { align-items: center; text-align: center; }
.fp-banner-title { max-width: 780px; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.25; letter-spacing: -.5px; }
.fp-banner-text { max-width: 640px; margin-top: 16px; font-size: clamp(15px, 1.4vw, 18px); opacity: .9; }
.fp-banner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fp-banner .btn:not(.btn-ghost) { background: #fff; color: #15171a; }
.fp-banner a:hover { color: inherit; }
.fp-banner .btn:not(.btn-ghost):hover { color: #15171a; }

.fp-h-sm { --fp-h: 360px; }
.fp-h-md { --fp-h: 480px; }
.fp-h-lg { --fp-h: 600px; }
.fp-h-xl { --fp-h: calc(100vh - var(--header-h)); }

.fp-slider { position: relative; background: #0f1114; color: #fff; }
.fp-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.fp-slides::-webkit-scrollbar { display: none; }
.fp-slides:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.fp-slide { position: relative; flex: 0 0 100%; height: var(--fp-h, 480px); scroll-snap-align: start; overflow: hidden; }
.fp-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-slide-text { position: absolute; inset: auto 0 0; padding: 120px 0 56px; background: linear-gradient(to top, rgba(10, 12, 16, .78), transparent); }
.fp-slide-title { max-width: 760px; font-size: clamp(22px, 3.4vw, 38px); line-height: 1.3; }
.fp-slide-title a:hover { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.fp-slide-desc { max-width: 640px; margin-top: 10px; font-size: 15px; opacity: .88; }
.fp-slide-link { position: absolute; inset: 0; }
.fp-slider-btn { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; transition: background-color .15s var(--ease); }
.fp-slider-btn:hover { background: rgba(0, 0, 0, .6); }
.fp-slider-btn.is-prev { left: 16px; }
.fp-slider-btn.is-next { right: 16px; }
.fp-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.fp-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .5); transition: width .2s var(--ease), background-color .2s var(--ease); }
.fp-dot.is-active { width: 24px; background: #fff; }
.no-js .fp-slider-btn, .no-js .fp-dots { display: none; }

.fp-cta { padding: 56px 0; }
.fp-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.fp-cta-title { font-size: clamp(20px, 2.4vw, 28px); }
.fp-cta-text { margin-top: 6px; opacity: .88; }

/* 图标卡片 */
.fp-service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.fp-service-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fp-service-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fp-service-list.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fp-service { padding: 28px 24px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.fp-service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.fp-service-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent); }
.fp-service-title { font-size: 17px; }
.fp-service-text { margin-top: 8px; color: var(--c-muted); font-size: 14px; }

/* 图文介绍 */
.fp-mod-about:not([class*="fp-bg-"]) { padding: 64px 0; }
.fp-about-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.fp-about-inner.is-reverse .fp-about-media { order: 2; }
.fp-about-inner.no-image { grid-template-columns: minmax(0, 760px); justify-content: center; text-align: center; }
.fp-about-media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--c-surface-2); }
.fp-about-img { width: 100%; height: 100%; object-fit: cover; }
.fp-about-text { margin: 14px 0 24px; color: var(--c-muted); font-size: 16px; }
.fp-about-text p + p { margin-top: .8em; }

/* 数据亮点 */
.fp-number-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; text-align: center; }
.fp-number { display: flex; flex-direction: column-reverse; }
.fp-number dd { margin: 0; color: var(--c-accent); font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.2; }
.fp-number dt { margin-top: 4px; color: var(--c-muted); font-size: 14px; }

/* 文章：卡片网格 */
.fp-news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fp-news-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fp-news-list.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout .fp-news-list.cols-3, .layout .fp-news-list.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fp-news-item { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.fp-news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.fp-news-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface-2); }
.fp-news-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.fp-news-item:hover .fp-news-img { transform: scale(1.03); }
.fp-news-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.fp-news-title { font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp-news-excerpt { margin-top: 6px; color: var(--c-muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp-news-body .card-meta { padding-top: 10px; }

/* 文章：一大多小 */
.fp-big { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fp-big.is-single { grid-template-columns: minmax(0, 1fr); }
.fp-big-main { padding: 0; overflow: hidden; }
.fp-big-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-surface-2); }
.fp-big-img { width: 100%; height: 100%; object-fit: cover; }
.fp-big-body { padding: 18px 22px 22px; }
.fp-big-title { font-size: 20px; line-height: 1.45; }
.fp-big-list { display: flex; flex-direction: column; }
.fp-big-list li + li { border-top: 1px solid var(--c-line); }
.fp-big-list a { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.fp-big-list li:first-child a { padding-top: 0; }
.fp-big-thumbwrap { flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--c-surface-2); }
.fp-big-thumb { width: 100%; height: 100%; object-fit: cover; }
.fp-big-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fp-big-item-title { font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp-big-item time { color: var(--c-muted); font-size: 12px; }

/* 文章：纯标题 */
.fp-text-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 8px 24px; }
.layout .fp-text-list { grid-template-columns: minmax(0, 1fr); }
.fp-text-list li { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--c-line); }
.fp-text-list a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fp-text-list a::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 10px; border-radius: 50%; background: var(--c-accent); vertical-align: middle; }
.fp-text-list time { flex: none; color: var(--c-muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* 分类选项卡 */
.fp-tablist { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.fp-tablist::-webkit-scrollbar { display: none; }
.fp-tab { flex: none; height: 36px; padding: 0 18px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); color: var(--c-text); font-size: 14px; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.fp-tab:hover { border-color: var(--c-accent); color: var(--c-accent); }
.fp-tab[aria-selected="true"] { background: var(--c-text); border-color: var(--c-text); color: var(--c-surface); }
.fp-tabpanel[hidden] { display: none; }
.fp-tabpanel-title { display: none; margin: 0 0 14px; font-size: 18px; }
.fp-tab-more { margin-top: 16px; text-align: right; }
.fp-tab-more a { display: inline-flex; align-items: center; gap: 2px; color: var(--c-muted); font-size: 14px; }
.no-js .fp-tablist { display: none; }
.no-js .fp-tabpanel-title { display: block; }
.no-js .fp-tabpanel + .fp-tabpanel { margin-top: 32px; }

/* 分类导航 */
.fp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.fp-cat { display: flex; flex-direction: column; height: 100%; padding: 20px; transition: border-color .15s var(--ease), box-shadow .2s var(--ease); }
.fp-cat:hover { border-color: var(--c-accent); color: var(--c-text); box-shadow: var(--shadow); }
.fp-cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent); }
.fp-cat-name { font-weight: 700; font-size: 16px; }
.fp-cat-count { margin-top: 2px; color: var(--c-muted); font-size: 13px; }
.fp-cat-desc { margin-top: 8px; color: var(--c-muted); font-size: 13px; }

/* 合作伙伴 */
.fp-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.fp-logo { display: flex; align-items: center; justify-content: center; height: 88px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-surface); }
.fp-logo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.fp-logo img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; transition: filter .2s var(--ease), opacity .2s var(--ease); }
.fp-logos.is-gray img { filter: grayscale(1); opacity: .7; }
.fp-logos.is-gray .fp-logo:hover img { filter: none; opacity: 1; }

/* 客户评价 */
.fp-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.fp-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 24px; }
.fp-quote-text { position: relative; margin: 0; padding-top: 22px; font-size: 15px; line-height: 1.8; }
.fp-quote-text::before { content: "“"; position: absolute; top: -14px; left: -4px; color: var(--c-accent); font-size: 52px; font-family: Georgia, serif; line-height: 1; }
.fp-quote-who { display: flex; align-items: center; gap: 12px; }
.fp-quote-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.fp-quote-who strong { display: block; }
.fp-quote-who small { display: block; color: var(--c-muted); font-size: 13px; }

/* 常见问题 */
.fp-faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.fp-faq-item { padding: 0; }
.fp-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.fp-faq-item summary::-webkit-details-marker { display: none; }
.fp-faq-item summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted); transform: rotate(45deg); transition: transform .2s var(--ease); }
.fp-faq-item[open] summary::after { transform: rotate(-135deg); }
.fp-faq-a { padding: 0 20px 18px; color: var(--c-muted); }
.fp-faq-a p + p { margin-top: .6em; }

/* 热门标签 / 自定义内容 */
.fp-tags { justify-content: center; }
.fp-tags small { margin-left: 4px; color: var(--c-muted); font-size: 12px; }
.fp-html { max-width: 760px; margin: 0 auto; }
.fp-html.is-wide { max-width: none; }

@media (max-width: 1099px) {
	.layout-left { grid-template-columns: 280px minmax(0, 1fr); }
	.fp-news-list.cols-4, .fp-service-list.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
	.layout-left { grid-template-columns: minmax(0, 1fr); }
	.layout-left > .sidebar { order: 0; }
	.fp-about-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.fp-about-inner.is-reverse .fp-about-media { order: 0; }
	.fp-news-list.cols-3, .fp-news-list.cols-4, .fp-service-list.cols-3, .fp-service-list.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fp-big { grid-template-columns: minmax(0, 1fr); }
	.fp-h-lg, .fp-h-xl { --fp-h: 480px; }
	.footer-widgets-inner.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.topbar-text { display: none; }
	.header-cta { display: none; }
	.fp-module { padding: 44px 0; }
	.fp-head { margin-bottom: 22px; }
	.fp-news-list, .fp-news-list.cols-2, .fp-news-list.cols-3, .fp-news-list.cols-4,
	.fp-service-list.cols-2, .fp-service-list.cols-3, .fp-service-list.cols-4,
	.layout .fp-news-list.cols-3, .layout .fp-news-list.cols-4 { grid-template-columns: minmax(0, 1fr); }
	.fp-text-list { grid-template-columns: minmax(0, 1fr); padding: 4px 16px; }
	.fp-banner-inner { min-height: 0; padding-top: 56px; padding-bottom: 56px; }
	.fp-h-sm, .fp-h-md, .fp-h-lg, .fp-h-xl { --fp-h: 300px; }
	.fp-slider-btn { display: none; }
	.fp-slide-text { padding: 80px 0 44px; }
	.fp-cta { padding: 40px 0; }
	.fp-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-widgets-inner.cols-2, .footer-widgets-inner.cols-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.fp-service:hover, .fp-news-item:hover, .fp-news-item:hover .fp-news-img { transform: none; }
	.fp-slides { scroll-behavior: auto; }
}
