/* ==========================================================================
   Bizhi Wallpaper — 全局样式
   ========================================================================== */

:root {
	--bg: #05080f;
	--surface: #0f172a;
	--surface-2: #121d33;
	--text: #e6edf9;
	--muted: #93a4bd;
	--line: rgba(148, 176, 214, 0.14);
	--accent: #22d3ee;
	--accent-dark: #0891b2;
	--accent-ink: #04121a;
	--accent-soft: rgba(34, 211, 238, 0.12);
	--canvas: #04070d;
	--radius: 16px;
	--radius-sm: 12px;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.55);
	--shadow-md: 0 18px 40px -24px rgba(0, 0, 0, 0.85);
	--header-h: 68px;
	--container: 1440px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--text);
	background-color: var(--bg);
	background-image: radial-gradient(1200px 520px at 50% -220px, rgba(34, 211, 238, 0.07), transparent 70%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg {
	max-width: 100%;
}

img {
	display: block;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

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

button {
	cursor: pointer;
}

h1,
h2,
h3,
h4 {
	color: var(--text);
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

::selection {
	background: rgba(34, 211, 238, 0.28);
}

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

.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;
	left: 16px;
	top: 12px;
	width: auto;
	height: auto;
	clip: auto;
	z-index: 9999;
	padding: 10px 16px;
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: 10px;
	font-size: 13px;
}

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

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(9, 18, 33, 0.9);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	border-bottom: 1px solid rgba(34, 211, 238, 0.16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
	background: rgba(8, 16, 29, 0.97);
	box-shadow: 0 18px 42px -26px rgba(0, 0, 0, 0.95);
}

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

.brand-wrap {
	flex: none;
}

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

.brand-mark {
	display: inline-flex;
	width: 32px;
	height: 32px;
	flex: none;
}

.brand-mark-img {
	display: block;
	width: 32px;
	height: 32px;
	flex: none;
	object-fit: contain;
}

.brand-name {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

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

.menu {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu li {
	position: relative;
}

.menu a {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 11px;
	border-radius: 999px;
	font-size: 14px;
	color: #c2cfe3;
	white-space: nowrap;
	transition: background 0.18s ease, color 0.18s ease;
}

.menu a:hover {
	background: rgba(255, 255, 255, 0.07);
	color: var(--text);
}

.menu .is-active > a {
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 600;
}

/* 下拉菜单 */
.primary-nav .menu > li.menu-item-has-children > a::after {
	content: '';
	width: 5px;
	height: 5px;
	margin-left: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: 0.6;
}

.primary-nav .menu > li.menu-item-has-children::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 12px;
}

.primary-nav .menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 40;
	display: block;
	min-width: 190px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.95);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.primary-nav .menu li:hover > .sub-menu,
.primary-nav .menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.primary-nav .menu .sub-menu a {
	display: flex;
	align-items: center;
	height: 34px;
	padding: 0 11px;
	border-radius: 9px;
	font-size: 13px;
	white-space: nowrap;
}

.primary-nav .menu .sub-menu .sub-menu {
	top: -8px;
	left: 100%;
	margin-left: 6px;
}

.primary-nav .menu .sub-menu li.menu-item-has-children > a::after {
	content: '';
	width: 5px;
	height: 5px;
	margin-left: auto;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	opacity: 0.7;
}

.primary-nav .menu .sub-menu li.menu-item-has-children::after {
	content: '';
	position: absolute;
	top: 0;
	right: -14px;
	width: 16px;
	height: 100%;
}

/* 壁纸分类：三列，每列四项 */
.primary-nav .menu > li.mega-3col > .sub-menu {
	column-count: 3;
	column-gap: 6px;
	min-width: 540px;
	padding: 12px;
}

.primary-nav .menu > li.mega-3col > .sub-menu > li {
	break-inside: avoid;
}

.primary-nav .menu > li.mega-3col > .sub-menu a {
	min-width: 158px;
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	flex: none;
}

.header-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 258px;
	height: 40px;
	padding: 0 6px 0 12px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid transparent;
	border-radius: 999px;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.header-search:focus-within {
	background: var(--surface-2);
	border-color: rgba(34, 211, 238, 0.45);
	box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.search-icon {
	color: #8b9bb4;
	flex: none;
}

.header-search input[type="search"],
.mobile-search input[type="search"],
.hero-search input[type="search"],
.notfound-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 13px;
	color: var(--text);
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder,
.notfound-search input::placeholder {
	color: #6f8098;
}

.header-search .search-submit {
	flex: none;
	height: 30px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--accent);
	font-size: 12.5px;
	font-weight: 600;
}

.header-search .search-submit:hover {
	background: var(--accent-soft);
}

.nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	color: var(--text);
	align-items: center;
	justify-content: center;
}

.nav-toggle-box {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 16px;
}

.nav-toggle-box span {
	display: block;
	height: 1.6px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
	transform: translateY(5.6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
	transform: translateY(-5.6px) rotate(-45deg);
}

.mobile-panel {
	border-top: 1px solid var(--line);
	background: #0a1220;
}

.mobile-panel[hidden] {
	display: none;
}

.mobile-panel-inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 16px;
	padding-bottom: 22px;
}

.mobile-search {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 6px 0 14px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
}

.mobile-search input[type="search"] {
	font-size: 14px;
}

.mobile-search .search-submit {
	flex: none;
	height: 34px;
	padding: 0 16px;
	border: 0;
	border-radius: 9px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 13px;
	font-weight: 600;
}

.mobile-nav .menu {
	flex-wrap: wrap;
	gap: 6px;
}

.mobile-nav .menu a {
	height: 34px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 13px;
}

.mobile-nav .menu .is-active > a {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}

.mobile-quick-title {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 8px;
}

.mobile-quick .chip-row {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
	background:
		radial-gradient(900px 380px at 8% 0%, rgba(34, 211, 238, 0.14), transparent 62%),
		radial-gradient(700px 320px at 92% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
		linear-gradient(180deg, #081120 0%, #05080f 100%);
	border-bottom: 1px solid var(--line);
}

.hero-inner {
	max-width: 940px;
	padding-top: 22px;
	padding-bottom: 22px;
	text-align: center;
}

.hero h1 {
	margin: 0 0 6px;
	font-size: clamp(26px, 3.4vw, 36px);
	line-height: 1.14;
	letter-spacing: -0.03em;
}

.hero-sub {
	max-width: 580px;
	margin: 0 auto 16px;
	color: var(--muted);
	font-size: clamp(13px, 1.4vw, 15px);
}

.hero-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 680px;
	margin: 0 auto;
	padding: 8px 8px 8px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search:focus-within {
	border-color: rgba(34, 211, 238, 0.5);
	box-shadow: 0 20px 50px -24px rgba(34, 211, 238, 0.45);
}

.hero-search .search-icon,
.hero-search > svg {
	color: #8b9bb4;
	flex: none;
}

.hero-search input[type="search"] {
	height: 44px;
	font-size: 15px;
}

.hero-search .btn {
	height: 44px;
	padding: 0 24px;
	border-radius: 12px;
	flex: none;
}

.hero-hot {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 30;
	padding: 16px;
	text-align: left;
	background: var(--surface-2);
	border: 1px solid rgba(34, 211, 238, 0.24);
	border-radius: 16px;
	box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.95);
}

.hero-search.is-hot-open .hero-hot {
	display: block;
}

.hero-hot-title {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	color: var(--muted);
}

.hero-hot-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hero-hot-tags a {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: #c2cfe3;
	font-size: 12.5px;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.hero-hot-tags a:hover {
	border-color: rgba(34, 211, 238, 0.5);
	color: var(--accent);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.site-main {
	padding-top: 0;
}

.section {
	padding: 40px 0;
}

.section-latest {
	padding-top: 22px;
}

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

.section-head h2,
.related-section h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.section-head > div {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 10px;
}

.section-sub {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

.section-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--muted);
	transition: color 0.18s ease;
	white-space: nowrap;
}

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

/* --------------------------------------------------------------------------
   Waterfall grid
   -------------------------------------------------------------------------- */

.wallpaper-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.card {
	break-inside: avoid;
	page-break-inside: avoid;
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	background: #0e1626;
	box-shadow: var(--shadow-sm);
	position: relative;
}

.card-link {
	display: block;
}

.card-media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #0e1626;
}

.card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
	display: block;
}

.card:hover .card-img {
	transform: scale(1.045);
}

.card-noimg {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: linear-gradient(135deg, #111e33, #0a1220);
}

.card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 3px 7px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	background: rgba(12, 16, 24, 0.62);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.card-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 34px 12px 11px;
	color: #fff;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(6, 9, 15, 0.78) 100%);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease;
}

/* 标题与分辨率默认隐藏，仅桌面端鼠标悬停或键盘聚焦时显示（触屏设备不触发） */
@media (hover: hover) and (pointer: fine) {
	.card:hover .card-overlay,
	.card:focus-within .card-overlay {
		opacity: 1;
	}
}

.card-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.card-meta {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   Load more & pagination
   -------------------------------------------------------------------------- */

.load-more-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 28px 0 8px;
}

.btn-load-more {
	height: 44px;
	padding: 0 34px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-load-more:hover {
	border-color: rgba(34, 211, 238, 0.5);
	color: var(--accent);
	box-shadow: 0 10px 24px -18px rgba(34, 211, 238, 0.6);
}

.btn-load-more.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.load-more-hint {
	font-size: 12px;
	color: var(--muted);
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 24px 0 8px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: #c2cfe3;
	font-size: 13px;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.page-numbers:hover {
	border-color: rgba(34, 211, 238, 0.5);
	color: var(--accent);
}

.page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
}

.page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* --------------------------------------------------------------------------
   Breadcrumbs & page head
   -------------------------------------------------------------------------- */

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 18px 0;
	font-size: 12px;
	color: var(--muted);
}

.breadcrumbs a {
	color: #a9b8cf;
}

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

.crumb-sep {
	color: #3b4a63;
}

.crumb-current {
	max-width: 70vw;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text);
}

.page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding: 6px 0 18px;
}

.page-head h1 {
	margin: 0 0 8px;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.page-desc {
	max-width: 780px;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.page-count {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.1;
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
}

.page-count strong {
	font-size: 26px;
	color: var(--text);
	letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Chips
   -------------------------------------------------------------------------- */

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: #c2cfe3;
	font-size: 13px;
	white-space: nowrap;
	transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.chip:hover {
	border-color: rgba(34, 211, 238, 0.42);
	color: var(--accent);
}

.chip.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}

.chip-count {
	font-size: 11px;
	color: var(--muted);
}

.chip.is-active .chip-count {
	color: rgba(4, 18, 26, 0.65);
}

/* --------------------------------------------------------------------------
   Home SEO block
   -------------------------------------------------------------------------- */

.home-seo {
	padding-top: 8px;
	padding-bottom: 56px;
}

.seo-card {
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
}

.seo-card h2 {
	margin: 0 0 12px;
	font-size: 20px;
}

.prose {
	font-size: 14.5px;
	line-height: 1.9;
	color: #b9c7dc;
}

.prose p {
	margin: 0 0 12px;
}

.prose a {
	color: var(--accent);
}

.prose h2,
.prose h3 {
	margin: 24px 0 10px;
}

.prose img {
	border-radius: var(--radius-sm);
	margin: 16px 0;
}

.seo-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.seo-links-group h3 {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--text);
}

.seo-links .chip-row {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary {
	background: var(--accent);
	color: var(--accent-ink);
}

.btn-primary:hover {
	background: var(--accent-dark);
}

.btn-download {
	width: 100%;
	height: 52px;
	background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
	color: var(--accent-ink);
	font-size: 15px;
	box-shadow: 0 14px 30px -16px rgba(34, 211, 238, 0.7);
}

.btn-download:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.btn-download.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.btn-ghost {
	width: 100%;
	margin-top: 10px;
	background: rgba(255, 255, 255, 0.05);
	border-color: transparent;
	color: var(--text);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.09);
}

.btn-fav.is-fav {
	background: var(--accent-soft);
	color: var(--accent);
}

.btn-disabled {
	width: 100%;
	background: rgba(255, 255, 255, 0.05);
	color: #6f8098;
	cursor: not-allowed;
}

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

.single-main {
	padding-bottom: 20px;
}

.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 348px;
	gap: 32px;
	align-items: start;
	margin-bottom: 40px;
}

.single-head {
	padding: 0 0 18px;
}

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

.badge-res {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 8px;
	border-radius: 7px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
}

.kicker-link {
	font-size: 12px;
	color: var(--muted);
}

.kicker-link:hover {
	color: var(--accent);
}

.single-title {
	margin: 0 0 10px;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 12.5px;
	color: var(--muted);
}

.single-meta span {
	position: relative;
}

.single-meta span + span::before {
	content: "";
	position: absolute;
	left: -9px;
	top: 50%;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #3b4a63;
	transform: translateY(-50%);
}

.preview-frame {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 14px;
	border-radius: 22px;
	background: var(--canvas);
	box-shadow: 0 30px 70px -40px rgba(10, 14, 25, 0.65);
	overflow: hidden;
}

.preview-img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 78vh;
	object-fit: contain;
	border-radius: 10px;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

.img-shield {
	position: absolute;
	inset: 0;
	z-index: 3;
	cursor: default;
	background: transparent;
}

.preview-caption {
	position: relative;
	z-index: 5;
	padding: 12px 4px 2px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
	text-align: center;
	pointer-events: none;
}

.preview-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
}

.single-body {
	max-width: 78ch;
	margin-top: 22px;
	font-size: 14.5px;
	line-height: 1.9;
	color: #b9c7dc;
}

.single-body a {
	color: var(--accent);
}

.single-body img {
	border-radius: var(--radius-sm);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
}

.tag-list-label {
	font-size: 12px;
	color: var(--muted);
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.post-nav-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 64px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.post-nav-item:hover {
	border-color: rgba(34, 211, 238, 0.42);
	box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}

.post-nav-item span {
	font-size: 11px;
	color: var(--muted);
}

.post-nav-item strong {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.post-nav-next {
	align-items: flex-end;
	text-align: right;
}

.post-nav-item.is-empty {
	border: 0;
	background: transparent;
}

/* Aside */

.single-aside {
	position: sticky;
	top: calc(var(--header-h) + 20px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.download-card {
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
	box-shadow: 0 20px 50px -38px rgba(0, 0, 0, 0.8);
}

.dc-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.dc-head h2 {
	margin: 0;
	font-size: 17px;
}

.dc-badge {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 8px;
	border-radius: 7px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 12px;
	font-weight: 700;
}

.specs {
	display: flex;
	flex-direction: column;
	margin: 0 0 18px;
}

.specs > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 13px;
}

.specs > div:last-child {
	border-bottom: 0;
}

.specs dt {
	margin: 0;
	color: var(--muted);
}

.specs dd {
	margin: 0;
	color: var(--text);
	font-weight: 500;
	text-align: right;
}

.specs dd a {
	color: var(--accent);
}

.download-note {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 11.5px;
	line-height: 1.7;
}

.dc-stats {
	display: flex;
	justify-content: space-between;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 12px;
}

.notice-card {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
}

.notice-card strong {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
}

.notice-card p {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.8;
}

.related-section {
	padding: 8px 0 30px;
	margin-top: 10px;
	border-top: 1px solid var(--line);
}

.related-section .section-head {
	padding-top: 30px;
}

/* Mobile download bar */

.mobile-download-bar {
	display: none;
}

.btn-fav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex: none;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: #c2cfe3;
}

.btn-fav-icon.is-fav {
	color: var(--accent);
	background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Empty / 404 / page / posts
   -------------------------------------------------------------------------- */

.empty-state {
	padding: 60px 20px;
	margin: 20px 0;
	border: 1px dashed var(--line);
	border-radius: 20px;
	background: var(--surface);
	text-align: center;
}

.empty-state h3 {
	margin: 14px 0 6px;
	font-size: 18px;
}

.empty-state p {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 14px;
}

.empty-art {
	display: flex;
	justify-content: center;
	gap: 6px;
}

.empty-art span {
	width: 40px;
	height: 52px;
	border-radius: 8px;
	background: linear-gradient(135deg, #16233a, #0e1626);
}

.empty-art span:nth-child(2) {
	height: 64px;
	background: linear-gradient(135deg, #1b2a44, #121d33);
}

.not-found {
	max-width: 720px;
	margin: 0 auto;
	padding: 70px 0 90px;
	text-align: center;
}

.not-found-code {
	margin: 0;
	color: #16233a;
	font-size: 76px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
}

.not-found h1 {
	margin: 6px 0 10px;
	font-size: clamp(24px, 3vw, 32px);
}

.not-found > p {
	color: var(--muted);
	font-size: 14px;
}

.notfound-search {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 520px;
	margin: 24px auto;
	padding: 7px 7px 7px 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
}

.notfound-search .search-submit {
	height: 38px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 13px;
	font-weight: 600;
}

.not-found .chip-row {
	justify-content: center;
}

.page-simple {
	max-width: 920px;
	margin: 0 auto 40px;
	padding: 36px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
}

.page-simple h1 {
	margin: 0 0 20px;
	font-size: clamp(26px, 3vw, 34px);
	letter-spacing: -0.02em;
}

.post-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 30px;
}

.post-item {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
}

.post-item h2 {
	margin: 0 0 6px;
	font-size: 18px;
}

.post-item p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

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

.site-footer {
	margin-top: 40px;
	padding-top: 52px;
	background: #03060b;
	border-top: 1px solid rgba(34, 211, 238, 0.12);
	color: #aebbd0;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 40px;
}

.brand--footer .brand-name {
	color: #fff;
}

.footer-brand p {
	max-width: 340px;
	margin: 14px 0 0;
	color: #8f98aa;
	font-size: 13px;
	line-height: 1.8;
}

.footer-note {
	color: #6c7484 !important;
	font-size: 12px !important;
}

.footer-col h2 {
	margin: 4px 0 14px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.footer-col ul {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col--grid ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px 8px;
}

.footer-col--grid a {
	display: block;
	overflow: hidden;
	font-size: 12px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.footer-col a {
	color: #8f98aa;
	font-size: 13px;
}

.footer-col a:hover {
	color: #fff;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-top: 18px;
	padding-bottom: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: #6c7484;
	font-size: 12px;
}

.footer-bottom p {
	margin: 0;
}

.back-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 70;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: rgba(13, 23, 39, 0.92);
	color: var(--text);
	box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.9);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	z-index: 300;
	max-width: 90vw;
	padding: 11px 18px;
	border-radius: 12px;
	background: rgba(17, 22, 32, 0.92);
	color: #fff;
	font-size: 13px;
	text-align: center;
	opacity: 0;
	transform: translate(-50%, 20px);
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

.toast.is-show {
	opacity: 1;
	transform: translate(-50%, 0);
}

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

@media (max-width: 1280px) {
	.wallpaper-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 1180px) {
	.menu a {
		padding: 0 8px;
		font-size: 13px;
	}

	.header-search {
		width: 220px;
	}
}

@media (max-width: 1080px) {
	.single-layout {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.single-aside {
		position: static;
		order: 2;
	}

	.single-main {
		padding-bottom: 84px;
	}

	.mobile-download-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		display: flex;
		gap: 10px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--line);
		background: rgba(7, 12, 21, 0.94);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
	}

	.mobile-download-bar .btn-download {
		flex: 1;
		height: 48px;
	}

	.single-wallpaper {
		padding-bottom: 64px;
	}

	.single-wallpaper .back-top {
		bottom: 84px;
	}

	.single-wallpaper .toast {
		bottom: 86px;
	}
}

@media (max-width: 1000px) {
	.primary-nav,
	.header-search {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.mobile-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.mobile-nav .menu li {
		width: 100%;
	}

	.mobile-nav .menu a {
		justify-content: space-between;
		width: 100%;
		height: 40px;
		border-radius: 10px;
	}

	.mobile-nav .menu li.menu-item-has-children > a::after {
		content: '';
		width: 6px;
		height: 6px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg);
		opacity: 0.6;
		transition: transform 0.18s ease;
	}

	.mobile-nav .menu li.is-open > a::after {
		transform: rotate(-135deg);
	}

	.mobile-nav .menu .sub-menu {
		display: none;
		margin: 4px 0 4px 10px;
		padding: 0 0 0 10px;
		border-left: 1px solid var(--line);
	}

	.mobile-nav .menu li.is-open > .sub-menu {
		display: block;
	}

	.mobile-nav .menu .sub-menu a {
		height: 34px;
		border: 0;
		background: transparent;
		font-size: 13px;
		color: #a9b8cf;
	}

	.mobile-nav .menu .sub-menu .sub-menu {
		margin-left: 8px;
	}

	.hero-inner {
		padding-top: 18px;
		padding-bottom: 18px;
	}
}

@media (max-width: 960px) {
	.wallpaper-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.card {
		margin: 0;
	}

	.section-head h2,
	.related-section h2 {
		font-size: 20px;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}

	.seo-card {
		padding: 24px;
	}

	.seo-links {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

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

	:root {
		--header-h: 62px;
	}

	.brand-name {
		font-size: 17px;
	}

	.hero-search {
		padding: 6px 6px 6px 14px;
	}

	.hero-search input[type="search"] {
		height: 40px;
		font-size: 14px;
	}

	.hero-search .btn {
		height: 40px;
		padding: 0 16px;
		font-size: 13px;
	}

	.hero-hot {
		padding: 14px;
	}

	.page-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.page-count {
		flex-direction: row;
		align-items: baseline;
		gap: 6px;
	}

	.page-count strong {
		font-size: 20px;
	}

	.post-nav {
		grid-template-columns: 1fr;
	}

	.post-nav-item.is-empty {
		display: none;
	}

	.single-meta {
		gap: 6px 14px;
	}

	.preview-frame {
		padding: 8px;
		border-radius: 16px;
	}

	.preview-img {
		max-height: 68vh;
		border-radius: 8px;
	}

	.preview-caption {
		padding-top: 8px;
		font-size: 11px;
	}

	.download-card {
		padding: 18px;
		border-radius: 16px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.footer-bottom {
		flex-direction: column;
	}

	.seo-card {
		padding: 20px;
	}

	.not-found {
		padding: 50px 0 70px;
	}

	.page-simple {
		padding: 22px;
	}
}

@media (max-width: 560px) {
	.wallpaper-grid {
		gap: 10px;
	}

	.card {
		margin: 0;
		border-radius: 12px;
	}

	.card-overlay {
		padding: 26px 9px 8px;
	}

	.card-title {
		font-size: 12px;
	}

	.card-meta {
		font-size: 10px;
	}

	.card-badge {
		top: 7px;
		left: 7px;
		font-size: 10px;
	}

	.section {
		padding: 24px 0;
	}

	.section-head {
		margin-bottom: 12px;
	}

	.chip {
		height: 32px;
		padding: 0 12px;
		font-size: 12px;
	}

	.hero h1 {
		font-size: 24px;
	}

	.hero-sub {
		font-size: 13px;
	}

	.back-top {
		right: 14px;
		bottom: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
