/* Blocksy Echo — warm modern overrides */

:root {
	--be-theme: #7aa2ff;
	--be-theme-soft: rgba(122, 162, 255, 0.16);
	--be-blush: rgba(255, 176, 200, 0.22);
	--be-radius: 1rem;
	--be-shadow: 0 10px 28px rgba(122, 143, 255, 0.14);
	--be-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	--be-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
}

html,
body {
	font-family: var(--be-font);
}

body {
	background:
		radial-gradient(1100px 520px at 8% -8%, rgba(122, 162, 255, 0.22), transparent 55%),
		radial-gradient(900px 480px at 92% 0%, var(--be-blush), transparent 50%),
		var(--theme-palette-color-6, #f4f7ff) !important;
}

h1, h2, h3, h4,
.entry-title,
.page-title,
.ct-module-title {
	font-family: var(--be-display);
	font-weight: 400;
}

/* Cards / entries */
.entry-card,
.ct-card,
article.entry-card,
.ct-posts-block article {
	border-radius: var(--be-radius) !important;
	box-shadow: var(--be-shadow);
	border: 1px solid rgba(122, 162, 255, 0.16);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card:hover,
.ct-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(122, 143, 255, 0.18);
}

/* Header soft glass */
header#header,
#header {
	backdrop-filter: blur(12px);
}

/* Intro / announce */
.be-intro {
	width: min(1120px, calc(100% - 2rem));
	margin: 1rem auto 0;
}

.be-announce {
	background: linear-gradient(135deg, var(--be-theme-soft), rgba(255, 255, 255, 0.75));
	border: 1px solid rgba(122, 162, 255, 0.2);
	border-radius: var(--be-radius);
	box-shadow: var(--be-shadow);
	padding: 0.9rem 1.15rem;
	margin-bottom: 0.75rem;
}

.be-announce__label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--be-theme);
	margin-bottom: 0.2rem;
}

.be-announce p {
	margin: 0;
}

.be-quote {
	margin: 0 0 1rem;
	padding-left: 0.85rem;
	border-left: 3px solid color-mix(in srgb, var(--be-theme) 65%, white);
	color: #5c6b82;
	font-size: 0.95rem;
}

/* Language switcher */
.be-lang {
	position: fixed;
	right: 1.1rem;
	bottom: 4.1rem;
	z-index: 9999;
	display: inline-flex;
	gap: 0.25rem;
	padding: 0.25rem;
	border-radius: 999px;
	border: 1px solid rgba(122, 162, 255, 0.28);
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(10px);
	box-shadow: var(--be-shadow);
}

.be-lang__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.1rem;
	height: 1.9rem;
	padding: 0 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #5c6b82;
	text-decoration: none;
}

.be-lang__item.is-active {
	background: var(--be-theme);
	color: #fff;
}

html.be-darkmode .be-lang {
	background: rgba(38, 45, 61, 0.92);
	border-color: rgba(155, 182, 255, 0.25);
}

html.be-darkmode .be-lang__item {
	color: #a4b0c8;
}

/* Floating day/night toggle */
.be-theme-toggle {
	position: fixed;
	right: 1.1rem;
	bottom: 1.1rem;
	z-index: 9999;
	appearance: none;
	border: 1px solid rgba(122, 162, 255, 0.28);
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(10px);
	color: #1a2233;
	border-radius: 999px;
	padding: 0.55rem 1rem;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--be-shadow);
	transition: transform 0.15s ease, background 0.2s ease;
}

.be-theme-toggle:hover {
	transform: translateY(-1px);
}

/* Dark mode */
html.be-darkmode {
	color-scheme: dark;
}

html.be-darkmode body {
	background:
		radial-gradient(1000px 480px at 12% -10%, rgba(122, 162, 255, 0.14), transparent 55%),
		linear-gradient(180deg, #171c28, #1c2230) !important;
	color: #e8eefc;
}

html.be-darkmode .be-announce {
	background: linear-gradient(135deg, rgba(122, 162, 255, 0.18), rgba(38, 45, 61, 0.9));
	border-color: rgba(155, 182, 255, 0.2);
	color: #e8eefc;
}

html.be-darkmode .be-quote {
	color: #a4b0c8;
}

html.be-darkmode .be-theme-toggle {
	background: rgba(38, 45, 61, 0.92);
	color: #e8eefc;
	border-color: rgba(155, 182, 255, 0.25);
}

html.be-darkmode .entry-card,
html.be-darkmode .ct-card,
html.be-darkmode article.entry-card {
	background: #262d3d !important;
	border-color: rgba(155, 182, 255, 0.16);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* ICP / 备案号 */
.be-beian {
	width: 100%;
	padding: 0.85rem 1rem 1.4rem;
	text-align: center;
}

.be-beian__inner {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.5rem;
	font-size: 0.8rem;
	line-height: 1.5;
	color: #7a879c;
}

.be-beian__link {
	color: inherit;
	text-decoration: none;
}

.be-beian__link:hover {
	color: var(--be-theme);
	text-decoration: underline;
}

.be-beian__sep {
	opacity: 0.55;
}

html.be-darkmode .be-beian__inner {
	color: #9aa6bd;
}

/* Comments: ensure stray media never show */
.comment-content img,
.comment-content picture,
.comment-content video,
.comment-content iframe {
	display: none !important;
}

/* Moment badge hint on archives if class present */
.be-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.12rem 0.55rem;
	border-radius: 999px;
	background: var(--be-theme-soft);
	color: var(--be-theme);
	font-size: 0.75rem;
	font-weight: 700;
}

@media (max-width: 700px) {
	.be-theme-toggle {
		right: 0.75rem;
		bottom: 0.75rem;
	}
}
