/* Zhiliao theme styles — 资讯媒体风 · 轻量 · 无外部依赖 */

:root {
	--brand: #155eef;
	--brand-dark: #0f46b8;
	--ink: #15181d;
	--text: #2b3038;
	--muted: #6b7280;
	--line: #e8eaee;
	--soft: #f6f7f9;
	--card: #ffffff;
	--accent: #f97316;
	--radius: 10px;
	--container: 1200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

a:hover {
	color: var(--brand);
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	cursor: pointer;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.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 {
	position: fixed;
	top: -60px;
	left: 16px;
	z-index: 999;
	padding: 10px 18px;
	background: var(--brand);
	color: #fff;
	border-radius: 0 0 8px 8px;
}

.skip-link:focus {
	top: 0;
	color: #fff;
}

/* ---------- Top bar ---------- */

.topbar {
	background: var(--soft);
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 38px;
	gap: 20px;
}

.topbar__slogan {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.topbar__nav {
	display: flex;
	gap: 18px;
	flex: none;
}

.topbar__nav a:hover {
	color: var(--brand);
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(8px);
}

.header__inner {
	position: relative;
	display: flex;
	align-items: center;
	height: 72px;
	gap: 32px;
}

.brand {
	display: flex;
	align-items: center;
	flex: none;
}

.brand__link {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--brand), #4b8dff);
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	line-height: 1;
}

.brand__text strong {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: .5px;
	line-height: 1.25;
}

.brand__text em {
	display: block;
	margin-top: 1px;
	color: var(--muted);
	font-size: 12px;
	font-style: normal;
	letter-spacing: .3px;
}

.brand .custom-logo {
	max-height: 46px;
	width: auto;
}

.main-nav {
	flex: 1;
	min-width: 0;
}

.main-nav ul {
	display: flex;
	align-items: center;
	gap: 26px;
}

.main-nav .menu-item a {
	display: block;
	padding: 24px 0;
	background: none;
	color: #3f4652;
	font-size: 15.5px;
	font-weight: 500;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
}

.main-nav .menu-item a:hover,
.main-nav .current-menu-item > a {
	color: var(--brand);
	border-bottom-color: var(--brand);
}

.header-search {
	flex: none;
	width: 272px;
}

.search-form {
	display: flex;
	align-items: stretch;
}

.search-form__label {
	display: flex;
	flex: 1;
}

.search-field {
	width: 100%;
	height: 40px;
	min-width: 0;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-right: 0;
	border-radius: 8px 0 0 8px;
	background: #fbfbfc;
	color: var(--text);
	font-size: 14px;
	outline: none;
	transition: border-color .2s ease, background .2s ease;
}

.search-field::placeholder {
	color: #9aa1ad;
}

.search-field:focus {
	border-color: var(--brand);
	background: #fff;
}

.search-submit {
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 0 8px 8px 0;
	background: var(--brand);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background .2s ease;
}

.search-submit:hover {
	background: var(--brand-dark);
}

.nav-toggle,
.search-toggle {
	display: none;
	background: none;
	border: 0;
	color: var(--ink);
	padding: 8px;
}

.nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	margin: 5px 0;
	background: currentColor;
	border-radius: 2px;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.breadcrumbs a {
	color: var(--muted);
}

.breadcrumbs a:hover {
	color: var(--brand);
}

.crumb-sep {
	color: #c6ccd6;
}

.crumb-current {
	color: #4b5563;
}

/* ---------- Badges & meta ---------- */

.badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 4px;
	background: #eef3ff;
	color: var(--brand);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
}

.badge:hover {
	background: var(--brand);
	color: #fff;
}

.badge--soft {
	background: #f2f3f5;
	color: #6b7280;
}

.badge--soft:hover {
	background: #f2f3f5;
	color: #6b7280;
}

.entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	color: #8a919c;
	font-size: 13px;
}

.entry-meta time,
.entry-meta .meta-author,
.entry-meta .meta-read {
	display: inline-flex;
	align-items: center;
}

.entry-meta .meta-author::before,
.entry-meta .meta-read::before {
	content: "";
	width: 1px;
	height: 11px;
	margin-right: 8px;
	background: #dfe3ea;
}

/* ---------- Home ---------- */

.home {
	padding-bottom: 20px;
}

.home-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
	gap: 32px;
	margin: 34px 0 24px;
}

.hero__media {
	display: block;
	overflow: hidden;
	border-radius: 14px;
	background: var(--soft);
}

.hero__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .5s ease;
}

.hero__media:hover img {
	transform: scale(1.02);
}

.hero__body {
	padding-top: 16px;
}

.hero__kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.hero__title {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.38;
	letter-spacing: -.4px;
	color: var(--ink);
}

.hero__title a:hover {
	color: var(--brand);
}

.hero__excerpt {
	margin: 12px 0 16px;
	color: #5b6472;
	font-size: 15px;
	line-height: 1.8;
}

.hot-panel {
	padding: 20px 22px;
	background: #fafbfc;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.hot-panel__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
}

.hot-panel__head h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
}

.hot-panel__hint {
	color: #9aa1ad;
	font-size: 12px;
}

.rank-list {
	margin-top: 4px;
}

.rank-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 0;
	border-bottom: 1px solid #eff1f4;
}

.rank-item:last-child {
	border-bottom: 0;
	padding-bottom: 2px;
}

.rank-no {
	flex: none;
	width: 22px;
	color: #c3c9d4;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

.rank-no.is-top {
	color: var(--brand);
}

.rank-body {
	min-width: 0;
}

.rank-title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.55;
}

.rank-title:hover {
	color: var(--brand);
}

.rank-meta {
	display: block;
	margin-top: 3px;
	color: #9aa1ad;
	font-size: 12px;
}

.hot-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 42px;
	padding: 14px 20px;
	background: #f8f9fb;
	border-radius: 12px;
}

.hot-tags__label {
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
}

.hot-tags a {
	padding: 4px 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: #4b5563;
	font-size: 13px;
	line-height: 1.6;
}

.hot-tags a:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.cat-section {
	margin-bottom: 46px;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.section-title {
	position: relative;
	margin: 0;
	padding-left: 14px;
	color: var(--ink);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.2px;
}

.section-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 18px;
	margin-top: -9px;
	background: var(--brand);
	border-radius: 2px;
}

.section-more {
	flex: none;
	color: #8a919c;
	font-size: 13px;
}

.section-more:hover {
	color: var(--brand);
}

.cat-lead {
	display: grid;
	grid-template-columns: 44% minmax(0, 1fr);
	gap: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
}

.cat-lead__media {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: var(--soft);
}

.cat-lead__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .5s ease;
}

.cat-lead__media:hover img {
	transform: scale(1.02);
}

.cat-lead__body {
	padding-top: 2px;
}

.cat-lead__title {
	margin: 8px 0 10px;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--ink);
}

.cat-lead__title a:hover {
	color: var(--brand);
}

.cat-lead__excerpt {
	margin: 0 0 14px;
	color: #5b6472;
	font-size: 15px;
	line-height: 1.8;
}

.cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin-top: 22px;
}

/* ---------- Cards ---------- */

.card__media {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: var(--soft);
}

.card__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .4s ease;
}

.card__media:hover img {
	transform: scale(1.03);
}

.card__body {
	padding-top: 10px;
}

.card__title {
	margin: 8px 0 6px;
	color: var(--ink);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.5;
}

.card__title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.card__title a:hover {
	color: var(--brand);
}

.card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 8px;
	color: #7a828e;
	font-size: 13px;
	line-height: 1.65;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.card__meta {
	display: flex;
	gap: 12px;
	color: #9aa1ad;
	font-size: 12px;
}

.card-grid {
	display: grid;
	gap: 22px;
}

.card-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Fallback thumb ---------- */

.thumb {
	display: block;
	width: 100%;
	object-fit: cover;
}

.thumb--fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	background: linear-gradient(135deg, #dbe6ff, #b9cdfa);
	color: #fff;
}

.thumb--fallback em {
	font-size: 40px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(16, 40, 90, .18);
}

.thumb--fallback i {
	font-size: 12px;
	font-style: normal;
	letter-spacing: 2px;
	opacity: .85;
}

.thumb--tone-1 { background: linear-gradient(135deg, #cfe0ff, #9dbcf7); }
.thumb--tone-2 { background: linear-gradient(135deg, #ffe2cc, #f7b98d); }
.thumb--tone-3 { background: linear-gradient(135deg, #d6f2e4, #9fd9bb); }
.thumb--tone-4 { background: linear-gradient(135deg, #ffe1e1, #f6aeae); }
.thumb--tone-5 { background: linear-gradient(135deg, #e6dcff, #bba6f4); }
.thumb--tone-6 { background: linear-gradient(135deg, #d9f0f7, #9fd5e6); }

/* ---------- Layout ---------- */

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	margin: 30px auto 64px;
}

.main-col {
	min-width: 0;
}

/* ---------- Archive ---------- */

.archive-head {
	padding-bottom: 20px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--line);
}

.archive-kicker {
	display: inline-block;
	margin-bottom: 10px;
	padding: 3px 10px;
	background: #eef3ff;
	border-radius: 4px;
	color: var(--brand);
	font-size: 12px;
	font-weight: 500;
}

.archive-title {
	margin: 0;
	color: var(--ink);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -.4px;
}

.archive-desc {
	margin: 10px 0 0;
	color: #5b6472;
	font-size: 15px;
	line-height: 1.8;
}

.archive-count {
	margin: 8px 0 0;
	color: #9aa1ad;
	font-size: 13px;
}

.post-list {
	margin-top: 6px;
}

.post-item {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 22px;
	padding: 24px 0;
	border-bottom: 1px solid var(--line);
}

.post-item__media {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: var(--soft);
}

.post-item__media img {
	width: 100%;
	aspect-ratio: 8 / 5;
	object-fit: cover;
	transition: transform .4s ease;
}

.post-item__media:hover img {
	transform: scale(1.03);
}

.post-item__media .thumb--fallback {
	aspect-ratio: 8 / 5;
}

.post-item__body {
	min-width: 0;
	padding-top: 2px;
}

.post-item__title {
	margin: 8px 0 8px;
	color: var(--ink);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.45;
}

.post-item__title a:hover {
	color: var(--brand);
}

.post-item__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 12px;
	color: #6b7280;
	font-size: 14.5px;
	line-height: 1.75;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.pagination {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 30px 0 0;
}

.pagination > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: #4b5563;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.pagination > *:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.pagination .current {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.pagination .current:hover {
	color: #fff;
}

/* ---------- Sidebar ---------- */

.sidebar {
	min-width: 0;
}

.widget {
	margin-bottom: 34px;
}

.widget__title {
	position: relative;
	margin: 0 0 14px;
	padding-left: 12px;
	color: var(--ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	border-left: 3px solid var(--brand);
}

.widget__link {
	display: inline-block;
	margin-top: 10px;
	color: var(--brand);
	font-size: 13px;
}

.latest-list li {
	padding: 10px 0;
	border-bottom: 1px solid #f0f1f4;
}

.latest-list li:last-child {
	border-bottom: 0;
}

.latest-list a {
	display: -webkit-box;
	overflow: hidden;
	color: #3f4652;
	font-size: 14.5px;
	line-height: 1.55;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.latest-list a:hover {
	color: var(--brand);
}

.latest-list time {
	display: block;
	margin-top: 3px;
	color: #9aa1ad;
	font-size: 12px;
}

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

.tag-cloud a {
	padding: 4px 11px;
	background: #f4f6f9;
	border-radius: 4px;
	color: #4b5563;
	font-size: 13px;
	line-height: 1.7;
}

.tag-cloud a:hover {
	background: #eef3ff;
	color: var(--brand);
}

.widget--about {
	padding: 18px 20px;
	background: #f8f9fb;
	border-radius: 12px;
}

.widget--about p {
	margin: 0;
	color: #5b6472;
	font-size: 13.5px;
	line-height: 1.8;
}

/* ---------- Single ---------- */

.article {
	min-width: 0;
}

.article-head {
	margin-bottom: 22px;
}

.article-title {
	margin: 10px 0 14px;
	color: var(--ink);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.38;
	letter-spacing: -.6px;
}

.article-cover {
	margin: 24px 0;
}

.article-cover img {
	width: 100%;
	border-radius: 14px;
}

.entry-content {
	color: #272c34;
	font-size: 17px;
	line-height: 1.95;
	word-break: break-word;
}

.entry-content > * + * {
	margin-top: 18px;
}

.entry-content p {
	margin: 0;
}

.entry-content h2 {
	margin: 38px 0 14px;
	padding-left: 12px;
	border-left: 4px solid var(--brand);
	color: var(--ink);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.5;
}

.entry-content h3 {
	margin: 28px 0 10px;
	color: var(--ink);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.6;
}

.entry-content h4 {
	margin: 22px 0 8px;
	color: var(--ink);
	font-size: 17px;
	font-weight: 600;
}

.entry-content ul,
.entry-content ol {
	margin: 0;
	padding-left: 24px;
}

.entry-content li {
	margin: 8px 0;
	line-height: 1.85;
}

.entry-content a {
	color: var(--brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--brand-dark);
}

.entry-content blockquote {
	margin: 24px 0;
	padding: 16px 20px;
	background: #f8fafc;
	border-left: 4px solid var(--brand);
	border-radius: 0 8px 8px 0;
	color: #4b5563;
	font-size: 15.5px;
}

.entry-content blockquote p {
	margin: 0;
}

.entry-content img {
	height: auto;
	margin: 24px auto;
	border-radius: 10px;
}

.entry-content figure figcaption {
	margin-top: 8px;
	color: #9aa1ad;
	font-size: 13px;
	text-align: center;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.entry-content table th,
.entry-content table td {
	padding: 10px 12px;
	border: 1px solid var(--line);
	text-align: left;
}

.entry-content table th {
	background: #f7f8fa;
	font-weight: 600;
}

.entry-content strong {
	color: #111827;
	font-weight: 600;
}

.page-links {
	margin-top: 24px;
	color: var(--muted);
	font-size: 14px;
}

.page-links a {
	margin: 0 4px;
}

.article-foot {
	margin-top: 30px;
}

.article-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.article-tags > span {
	color: #9aa1ad;
	font-size: 13px;
}

.article-tags a {
	padding: 4px 11px;
	background: #f4f6f9;
	border-radius: 4px;
	color: #4b5563;
	font-size: 13px;
}

.article-tags a:hover {
	background: #eef3ff;
	color: var(--brand);
}

.article-note {
	margin: 0;
	padding: 12px 16px;
	background: #f8f9fb;
	border: 1px dashed #dfe3ea;
	border-radius: 8px;
	color: #8a919c;
	font-size: 12.5px;
	line-height: 1.8;
}

.post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 32px 0 0;
}

.post-nav__item {
	display: block;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	transition: border-color .2s ease;
}

.post-nav__item:hover {
	border-color: var(--brand);
}

.post-nav__item--next {
	text-align: right;
}

.post-nav__label {
	display: block;
	margin-bottom: 4px;
	color: #9aa1ad;
	font-size: 12px;
}

.post-nav__title {
	display: -webkit-box;
	overflow: hidden;
	color: #3f4652;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.55;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.related {
	margin-top: 40px;
}

/* ---------- Page / search / 404 ---------- */

.page-wrap {
	max-width: 900px;
	margin: 36px auto 70px;
	padding: 0 24px;
}

.page-title {
	margin: 0 0 20px;
	color: var(--ink);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -.4px;
}

.search-panel {
	margin: 20px 0 8px;
}

.search-panel .search-field {
	height: 46px;
	background: #fff;
}

.search-panel .search-submit {
	height: 46px;
	padding: 0 26px;
}

.not-found {
	padding: 54px 24px 80px;
	text-align: center;
}

.not-found .breadcrumbs {
	justify-content: center;
	margin-bottom: 30px;
}

.not-found__code {
	margin: 0;
	color: #e9eef8;
	font-size: 92px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 4px;
}

.not-found__title {
	margin: 6px 0 10px;
	color: var(--ink);
	font-size: 30px;
	font-weight: 700;
}

.not-found__desc {
	max-width: 560px;
	margin: 0 auto;
	color: #5b6472;
	font-size: 15px;
	line-height: 1.8;
}

.not-found__search {
	max-width: 520px;
	margin: 26px auto 0;
}

.not-found .tag-cloud {
	justify-content: center;
	max-width: 640px;
	margin: 24px auto 0;
}

.not-found__latest {
	margin: 54px auto 0;
	text-align: left;
}

.not-found__latest .section-title {
	margin-bottom: 18px;
}

.no-content {
	padding: 30px 0 10px;
	text-align: center;
}

.no-content__title {
	margin: 0 0 8px;
	color: var(--ink);
	font-size: 20px;
	font-weight: 600;
}

.no-content__desc {
	margin: 0 auto;
	color: var(--muted);
	font-size: 14px;
}

.no-content__search {
	max-width: 460px;
	margin: 22px auto;
}

.no-content .tag-cloud {
	justify-content: center;
}

.empty-note {
	margin: 0;
	color: #9aa1ad;
	font-size: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
	margin-top: 40px;
	padding-top: 48px;
	background: #0e1526;
	color: #8f9bb3;
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
}

.footer__logo {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .5px;
}

.footer__desc {
	margin: 12px 0 0;
	color: #aab5c9;
	font-size: 14px;
	line-height: 1.8;
}

.footer__note {
	margin: 12px 0 0;
	color: #64748b;
	font-size: 12px;
	line-height: 1.8;
}

.footer__col h3 {
	margin: 0 0 12px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
}

.footer__col li {
	margin: 0 0 8px;
	font-size: 13.5px;
	line-height: 1.8;
}

.footer__col a {
	color: #8f9bb3;
}

.footer__col a:hover {
	color: #fff;
}

.footer__plain {
	color: #64748b;
	font-size: 12.5px;
}

.footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 18px;
	padding-bottom: 24px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	color: #64748b;
	font-size: 12px;
}

.footer__powered {
	color: #55627a;
}

/* ---------- Back to top ---------- */

.to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--text);
	box-shadow: 0 6px 20px rgba(15, 23, 42, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s, color .2s;
}

.to-top:hover {
	color: var(--brand);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.container {
		padding: 0 20px;
	}

	.header__inner {
		gap: 22px;
	}

	.main-nav ul {
		gap: 18px;
	}

	.main-nav .menu-item a {
		font-size: 15px;
	}

	.header-search {
		width: 230px;
	}

	.cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 30px;
	}

	.hero__title {
		font-size: 27px;
	}
}

@media (max-width: 900px) {
	.nav-toggle,
	.search-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		margin-left: auto;
		border: 1px solid var(--line);
		border-radius: 8px;
		background: #fff;
	}

	.search-toggle {
		margin-left: 0;
	}

	.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex: none;
		padding: 6px 20px 14px;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 14px 26px rgba(15, 23, 42, .08);
	}

	.main-nav.is-open {
		display: block;
	}

	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.main-nav .menu-item a {
		padding: 13px 0;
		border-bottom: 1px solid #f1f3f6;
	}

	.main-nav .menu-item a:hover,
	.main-nav .current-menu-item > a {
		border-bottom-color: #f1f3f6;
	}

	.header-search {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: auto;
		padding: 14px 20px;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 14px 26px rgba(15, 23, 42, .08);
	}

	.header-search.is-open {
		display: block;
	}

	.header-search .search-form {
		width: 100%;
	}

	.header__inner {
		height: 64px;
	}

	.home-lead {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		margin-top: 26px;
	}

	.hot-panel {
		padding: 18px 20px;
	}

	.cat-lead {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.cat-lead__title {
		font-size: 20px;
	}

	.layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 30px;
	}

	.sidebar .widget {
		margin-bottom: 0;
	}

	.sidebar .widget--about {
		grid-column: 1 / -1;
	}

	.post-item {
		grid-template-columns: 210px minmax(0, 1fr);
		gap: 18px;
	}

	.footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}

	.card-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.container {
		padding: 0 16px;
	}

	.topbar__nav {
		display: none;
	}

	.topbar__inner {
		height: 34px;
	}

	.topbar__slogan {
		font-size: 12px;
	}

	.brand__text em {
		display: none;
	}

	.brand__text strong {
		font-size: 19px;
	}

	.brand__mark {
		width: 32px;
		height: 32px;
		font-size: 17px;
	}

	.hero__title {
		font-size: 24px;
	}

	.hot-panel__head h2 {
		font-size: 17px;
	}

	.cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 16px;
	}

	.card__excerpt {
		display: none;
	}

	.card__title {
		font-size: 14.5px;
	}

	.section-title {
		font-size: 20px;
	}

	.hot-tags {
		padding: 12px 14px;
	}

	.post-item {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 20px 0;
	}

	.post-item__media img {
		aspect-ratio: 16 / 9;
	}

	.post-item__media .thumb--fallback {
		aspect-ratio: 16 / 9;
	}

	.post-item__title {
		font-size: 18px;
	}

	.archive-title {
		font-size: 26px;
	}

	.article-title {
		font-size: 27px;
	}

	.entry-content {
		font-size: 16.5px;
		line-height: 1.9;
	}

	.entry-content h2 {
		font-size: 21px;
	}

	.sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar .widget--about {
		grid-column: auto;
	}

	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.card-grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.not-found__code {
		font-size: 72px;
	}

	.page-title {
		font-size: 27px;
	}

	.to-top {
		right: 14px;
		bottom: 16px;
	}
}

/* ---------- WordPress core blocks ---------- */

.entry-content .wp-block-image figcaption {
	color: #9aa1ad;
	font-size: 13px;
	text-align: center;
}

.entry-content .alignwide {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.screen-reader-text:focus {
	position: fixed !important;
	top: 0;
	left: 16px;
	z-index: 999;
	width: auto;
	height: auto;
	padding: 10px 18px;
	clip: auto;
	background: var(--brand);
	color: #fff;
	border-radius: 0 0 8px 8px;
}
