/*
Theme Name: WorkAI Theme
Theme URI: https://wp.workai.world
Author: workai
Author URI: https://wp.workai.world
Description: AI 工具推荐与联盟推广主题：深色科技风（靛/紫/青渐变），首页 Hero 首屏 + 精选头部工具 + 分类筛选工具导航 + 本月热门榜 + 优惠码转化模块，支持后台自定义颜色、Logo、菜单与小工具。
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: workai-theme
Tags: custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, right-sidebar, threaded-comments, translation-ready
*/

/* =========================================================
   1. 设计变量（Customizer 可覆盖强调色）
   ========================================================= */
:root {
	--wk-indigo: #6366F1;
	--wk-indigo-dark: #4F46E5;
	--wk-purple: #8B5CF6;
	--wk-sky: #22D3EE;
	--wk-cyan: #67E8F9;
	--wk-blue: #38BDF8;
	--wk-pink: #F472B6;
	--wk-yellow: #F5C76C;

	--wk-bg: #0A0D19;
	--wk-bg-2: #0D1224;
	--wk-card: #121830;
	--wk-card-2: #0F1526;
	--wk-border: rgba(150, 165, 220, .14);
	--wk-border-strong: rgba(150, 165, 220, .26);
	--wk-text: #E9EDFA;
	--wk-text-soft: #C6CDE3;
	--wk-muted: #8B93B0;

	--wk-grad: linear-gradient(120deg, var(--wk-indigo) 0%, var(--wk-purple) 50%, var(--wk-sky) 100%);
	--wk-grad-soft: linear-gradient(120deg, rgba(99, 102, 241, .16), rgba(139, 92, 246, .16), rgba(34, 211, 238, .14));

	--wk-radius: 14px;
	--wk-radius-sm: 9px;
	--wk-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(3, 8, 24, .45);
	--wk-shadow-lg: 0 8px 24px rgba(3, 8, 24, .55), 0 20px 50px rgba(3, 8, 24, .5);
	--wk-glow: 0 0 60px rgba(99, 102, 241, .28);
	--wk-glow-sm: 0 10px 34px rgba(79, 70, 229, .38);

	--wk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
	margin: 0;
	font-family: var(--wk-font);
	font-size: 15px;
	line-height: 1.8;
	color: var(--wk-text);
	background-color: var(--wk-bg);
	background-image: radial-gradient(1000px 600px at 85% -10%, rgba(99, 102, 241, .10), transparent 60%), radial-gradient(800px 500px at -10% 20%, rgba(34, 211, 238, .06), transparent 60%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a {
	color: var(--wk-cyan);
	text-decoration: none;
	transition: color .2s ease;
}

a:hover, a:focus { color: var(--wk-sky); }

p, ul, ol, dl, figure, blockquote { margin: 0 0 1.25em; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	line-height: 1.35;
	color: var(--wk-text);
	font-weight: 800;
	letter-spacing: -.01em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

ul, ol { padding-left: 1.4em; }

button, input, select, textarea { font-family: inherit; font-size: 100%; }

::selection { background: var(--wk-purple); color: #fff; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wk-yellow);
	clip: auto !important;
	clip-path: none;
	color: #0A0D19;
	display: block;
	font-size: .875rem;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 12px 18px;
	top: 6px;
	z-index: 100000;
	width: auto;
	text-decoration: none;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999999; }
.skip-link:focus { left: 6px; }

#content[tabindex="-1"]:focus { outline: 0; }

.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1.25em; }

.wp-caption { max-width: 100%; }
.wp-caption img { display: block; }
.wp-caption .wp-caption-text { font-size: .8125rem; color: var(--wk-muted); text-align: center; padding: .5em 0; }

.sticky { display: block; }
.updated:not(.published) { display: none; }

/* =========================================================
   3. 按钮
   ========================================================= */
.wk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	cursor: pointer;
	font-weight: 700;
	font-size: .875rem;
	color: #fff;
	background: var(--wk-grad);
	background-size: 160% 160%;
	padding: 12px 22px;
	border-radius: 999px;
	box-shadow: var(--wk-glow-sm);
	transition: transform .2s ease, box-shadow .2s ease, background-position .35s ease, filter .2s ease;
	text-decoration: none;
	white-space: nowrap;
}

.wk-btn:hover {
	background-position: 100% 50%;
	transform: translateY(-2px);
	box-shadow: 0 16px 42px rgba(79, 70, 229, .5);
	color: #fff;
	filter: saturate(1.1);
}

.wk-btn-lg { padding: 15px 30px; font-size: 1rem; }

.wk-btn-sm { padding: 8px 15px; font-size: .8125rem; box-shadow: 0 6px 18px rgba(79, 70, 229, .3); }

.wk-btn-ghost {
	background: rgba(99, 102, 241, .10);
	border: 1px solid var(--wk-border-strong);
	box-shadow: none;
	color: var(--wk-text-soft);
}

.wk-btn-ghost:hover { background: rgba(99, 102, 241, .18); box-shadow: none; color: #fff; }

.wk-btn-warm {
	background: linear-gradient(120deg, #F472B6, #F59E0B);
	box-shadow: 0 10px 30px rgba(244, 114, 182, .3);
}

.wk-btn .wk-arrow { transition: transform .2s ease; }
.wk-btn:hover .wk-arrow { transform: translateX(3px); }

/* =========================================================
   4. 顶栏 Topbar
   ========================================================= */
.site-topbar {
	background: linear-gradient(90deg, rgba(79, 70, 229, .16), rgba(139, 92, 246, .14), rgba(34, 211, 238, .12));
	border-bottom: 1px solid var(--wk-border);
	color: var(--wk-text-soft);
	font-size: .75rem;
}

.site-topbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 6px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.topbar-left { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; }

.topbar-left .topbar-badge {
	background: var(--wk-grad);
	color: #fff;
	font-size: .625rem;
	font-weight: 800;
	padding: 2px 10px;
	border-radius: 999px;
	letter-spacing: .08em;
}

.topbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.topbar-right a {
	color: var(--wk-text-soft);
	font-weight: 600;
	padding: 3px 12px;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: background .2s ease, color .2s ease;
}

.topbar-right a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.topbar-right .topbar-login { background: var(--wk-grad); color: #fff; border-color: transparent; }
.topbar-right .topbar-login:hover { filter: brightness(1.12); color: #fff; }

.topbar-sm { display: none; }
@media (min-width: 600px) { .topbar-sm { display: inline-flex; } }

/* =========================================================
   5. 主头部 Header
   ========================================================= */
.site-header {
	background: rgba(10, 13, 25, .82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--wk-border);
	position: relative;
	z-index: 30;
}

.header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-branding { flex: 0 0 auto; min-width: 0; }

.site-branding .custom-logo-link img { max-height: 44px; width: auto; filter: drop-shadow(0 0 18px rgba(99, 102, 241, .45)); }

.site-branding .custom-logo-link:hover img { filter: drop-shadow(0 0 26px rgba(34, 211, 238, .5)); }

.site-title {
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.2;
	font-weight: 800;
	background: var(--wk-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -.02em;
}

.site-title a { -webkit-text-fill-color: transparent; }

.site-description { margin: 2px 0 0; font-size: .75rem; color: var(--wk-muted); letter-spacing: .06em; }

.header-search { flex: 1 1 auto; max-width: 520px; margin-left: auto; }

.search-form {
	display: flex;
	align-items: stretch;
	background: var(--wk-card-2);
	border: 1px solid var(--wk-border);
	border-radius: 999px;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.search-form:focus-within { border-color: var(--wk-purple); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }

.search-form .search-field {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	padding: 9px 18px;
	font-size: .875rem;
	color: var(--wk-text);
}

.search-form .search-field::placeholder { color: var(--wk-muted); }

.search-form .search-submit {
	border: 0;
	background: var(--wk-grad);
	color: #fff;
	padding: 0 22px;
	cursor: pointer;
	font-weight: 700;
	font-size: .8125rem;
	transition: filter .2s ease;
}

.search-form .search-submit:hover { filter: brightness(1.12); }

.header-cta { flex: 0 0 auto; }

/* =========================================================
   6. 导航 Nav
   ========================================================= */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(10, 13, 25, .9);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--wk-border);
	transition: box-shadow .25s ease;
}

.site-nav.is-stuck { box-shadow: 0 8px 30px rgba(3, 8, 24, .5); }

.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 12px; }

.main-navigation { flex: 1 1 auto; }

.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > ul { display: flex; flex-wrap: wrap; }
.main-navigation li { position: relative; }

.main-navigation a {
	display: block;
	padding: 14px 16px;
	color: var(--wk-text-soft);
	font-weight: 600;
	font-size: .9375rem;
	position: relative;
	transition: color .2s ease;
}

.main-navigation a::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 100%;
	bottom: 8px;
	height: 3px;
	border-radius: 3px;
	background: var(--wk-grad);
	transition: right .25s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current-menu-ancestor > a::after { right: 16px; }

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a { color: #fff; }

.main-navigation .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 200px;
	background: #151C33;
	border: 1px solid var(--wk-border);
	border-radius: 0 0 var(--wk-radius-sm) var(--wk-radius-sm);
	box-shadow: 0 14px 34px rgba(3, 8, 24, .6);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 100;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.main-navigation .sub-menu a { padding: 10px 16px; font-size: .875rem; font-weight: 500; border-left: 3px solid transparent; }
.main-navigation .sub-menu a:hover { border-left-color: var(--wk-sky); }

.nav-toggle {
	display: none;
	border: 1px solid var(--wk-border);
	background: var(--wk-card);
	color: #fff;
	width: 42px;
	height: 42px;
	border-radius: var(--wk-radius-sm);
	cursor: pointer;
	font-size: 1.15rem;
	line-height: 1;
	transition: background .2s ease;
}

.nav-toggle:hover { background: var(--wk-card-2); }

/* =========================================================
   7. Hero 首屏
   ========================================================= */
.wk-hero {
	position: relative;
	overflow: hidden;
	padding: 66px 24px 72px;
	color: #fff;
}

.wk-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(rgba(150, 165, 220, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(150, 165, 220, .07) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 40%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 40%, transparent 75%);
	pointer-events: none;
}

.wk-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.wk-orb-a { width: 420px; height: 420px; left: -120px; top: -140px; background: rgba(99, 102, 241, .55); }
.wk-orb-b { width: 460px; height: 460px; right: -160px; top: -120px; background: rgba(139, 92, 246, .5); }
.wk-orb-c { width: 320px; height: 320px; left: 42%; bottom: -200px; background: rgba(34, 211, 238, .32); }

.wk-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1280px;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.wk-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 999px;
	border: 1px solid var(--wk-border-strong);
	background: rgba(255, 255, 255, .05);
	font-size: .78rem;
	font-weight: 600;
	color: var(--wk-cyan);
	margin-bottom: 22px;
}

.wk-hero-badge .wk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wk-sky); box-shadow: 0 0 12px var(--wk-sky); }

.wk-hero h1 {
	margin: 0 0 18px;
	font-size: clamp(2rem, 5vw, 3.3rem);
	line-height: 1.18;
	letter-spacing: -.02em;
}

.wk-hero h1 .wk-grad-text {
	background: var(--wk-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.wk-hero-sub {
	max-width: 640px;
	margin: 0 auto 30px;
	color: var(--wk-text-soft);
	font-size: 1.05rem;
	line-height: 1.85;
}

.wk-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }

.wk-hero-trust {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
	justify-content: center;
	color: var(--wk-muted);
	font-size: .8125rem;
}

.wk-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.wk-hero-trust .wk-tick { color: var(--wk-sky); font-weight: 800; }

/* =========================================================
   8. 首页总容器
   ========================================================= */
.site-main { max-width: 1280px; margin: 0 auto; padding: 26px 24px 50px; }

.wk-home-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 24px;
	align-items: start;
}

.wk-home-main { min-width: 0; display: flex; flex-direction: column; gap: 34px; }

.wk-home-main > * { min-width: 0; }

.wk-home-full { grid-column: 1 / -1; }

/* 区块头 */
.wk-block-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}

.wk-block-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 1.3rem;
}

.wk-block-title::before {
	content: "";
	width: 5px;
	height: 22px;
	border-radius: 3px;
	background: var(--wk-grad);
	box-shadow: 0 0 16px rgba(99, 102, 241, .55);
}

.wk-block-title .wk-block-sub { font-size: .78rem; color: var(--wk-muted); font-weight: 600; margin-left: 4px; }

.wk-block-more {
	font-size: .78rem;
	font-weight: 600;
	color: var(--wk-muted);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: color .2s ease, gap .2s ease;
}

.wk-block-more:hover { color: var(--wk-sky); gap: 8px; }

/* =========================================================
   9. 精选头部工具
   ========================================================= */
.wk-feat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.wk-feat-card {
	position: relative;
	background: var(--wk-card);
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius);
	padding: 24px;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	display: flex;
	flex-direction: column;
}

.wk-feat-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 140px;
	background: var(--wk-grad-soft);
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}

.wk-feat-card:hover {
	transform: translateY(-6px);
	border-color: rgba(99, 102, 241, .4);
	box-shadow: var(--wk-glow), var(--wk-shadow-lg);
}

.wk-feat-card:hover::before { opacity: 1; }

.wk-feat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; position: relative; }

.wk-tool-ico {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1.05rem;
	color: #fff;
	box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .18), 0 6px 16px rgba(0, 0, 0, .3);
}

.wk-tool-ico.c1 { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.wk-tool-ico.c2 { background: linear-gradient(135deg, #22D3EE, #38BDF8); }
.wk-tool-ico.c3 { background: linear-gradient(135deg, #F472B6, #F59E0B); }
.wk-tool-ico.c4 { background: linear-gradient(135deg, #8B5CF6, #6366F1); }
.wk-tool-ico.c5 { background: linear-gradient(135deg, #34D399, #22D3EE); }
.wk-tool-ico.c6 { background: linear-gradient(135deg, #F59E0B, #F472B6); }

.wk-feat-id { flex: 1 1 auto; min-width: 0; }

.wk-feat-id h3 { margin: 0 0 2px; font-size: 1.1rem; }
.wk-feat-id h3 a { color: var(--wk-text); }
.wk-feat-id h3 a:hover { color: var(--wk-sky); }

.wk-tool-stars { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--wk-muted); }
.wk-tool-stars .wk-stars { color: var(--wk-yellow); letter-spacing: 2px; font-size: .75rem; }

.wk-tool-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	background: var(--wk-grad);
	color: #fff;
	font-size: .625rem;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 999px;
	letter-spacing: .05em;
	box-shadow: 0 4px 14px rgba(99, 102, 241, .5);
}

.wk-tool-badge.wk-badge-warm { background: linear-gradient(120deg, #F472B6, #F59E0B); box-shadow: 0 4px 14px rgba(244, 114, 182, .45); }
.wk-tool-badge.wk-badge-cool { background: linear-gradient(120deg, #22D3EE, #38BDF8); box-shadow: 0 4px 14px rgba(34, 211, 238, .4); }

.wk-feat-tagline {
	flex: 1 1 auto;
	margin: 0 0 16px;
	color: var(--wk-text-soft);
	font-size: .875rem;
	line-height: 1.7;
	position: relative;
}

.wk-feat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; position: relative; }

.wk-chip {
	font-size: .72rem;
	font-weight: 600;
	color: var(--wk-text-soft);
	background: rgba(99, 102, 241, .10);
	border: 1px solid var(--wk-border);
	padding: 3px 11px;
	border-radius: 999px;
}

.wk-chip.wk-chip-coupon { color: var(--wk-yellow); border-color: rgba(245, 199, 108, .35); background: rgba(245, 199, 108, .08); }

.wk-feat-cta { display: flex; gap: 10px; position: relative; }

/* =========================================================
   10. 工具目录：分类 Tab + 网格
   ========================================================= */
.wk-tool-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 22px;
	list-style: none;
	padding: 0;
}

.wk-tool-tabs li { margin: 0; }

.wk-tool-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--wk-border);
	background: var(--wk-card);
	color: var(--wk-text-soft);
	font-size: .8125rem;
	font-weight: 600;
	padding: 8px 18px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.wk-tool-tab:hover { border-color: var(--wk-purple); color: #fff; transform: translateY(-1px); }

.wk-tool-tab.is-active {
	background: var(--wk-grad);
	border-color: transparent;
	color: #fff;
	box-shadow: var(--wk-glow-sm);
}

.wk-tools-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.wk-tool-card {
	background: var(--wk-card);
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius);
	padding: 20px;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.wk-tool-card:hover {
	transform: translateY(-4px);
	border-color: rgba(34, 211, 238, .35);
	box-shadow: var(--wk-shadow-lg), 0 0 34px rgba(34, 211, 238, .10);
}

.wk-tool-card.is-hidden { display: none; }

.wk-tool-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }

.wk-tool-card .wk-tool-ico { flex: 0 0 42px; width: 42px; height: 42px; font-size: .95rem; }

.wk-tool-card-id { flex: 1 1 auto; min-width: 0; }

.wk-tool-card-id h3 { margin: 0 0 1px; font-size: .98rem; }

.wk-tool-card-id h3 a { color: var(--wk-text); }
.wk-tool-card-id h3 a:hover { color: var(--wk-sky); }

.wk-tool-card-tagline {
	margin: 0 0 14px;
	color: var(--wk-text-soft);
	font-size: .82rem;
	line-height: 1.65;
	flex: 1 1 auto;
}

.wk-tool-card-cta { display: flex; gap: 9px; margin-top: 4px; }

.wk-tool-card .wk-chip { font-size: .67rem; padding: 2px 9px; }

/* =========================================================
   11. 本月热门榜
   ========================================================= */
.wk-rank-panel {
	background: var(--wk-card);
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius);
	overflow: hidden;
	box-shadow: var(--wk-shadow);
}

.wk-rank-list { list-style: none; margin: 0; padding: 0; }

.wk-rank-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 20px;
	border-bottom: 1px solid var(--wk-border);
	transition: background .2s ease;
}

.wk-rank-item:last-child { border-bottom: 0; }
.wk-rank-item:hover { background: rgba(99, 102, 241, .06); }

.wk-rank-no {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: .95rem;
	background: rgba(150, 165, 220, .10);
	color: var(--wk-text-soft);
}

.wk-rank-item.is-top .wk-rank-no { background: var(--wk-grad); color: #fff; box-shadow: 0 4px 14px rgba(99, 102, 241, .5); }

.wk-rank-bd { flex: 1 1 auto; min-width: 0; }

.wk-rank-name { font-weight: 700; font-size: .9rem; color: var(--wk-text); display: flex; align-items: center; gap: 8px; }

.wk-rank-name .wk-tool-stars { font-size: .7rem; }

.wk-rank-meta { font-size: .75rem; color: var(--wk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wk-rank-cta { flex: 0 0 auto; }

.wk-rank-banner { padding: 16px 20px; text-align: center; border-top: 1px solid var(--wk-border); background: var(--wk-grad-soft); }
.wk-rank-banner p { margin: 0 0 10px; font-size: .8rem; color: var(--wk-text-soft); }

/* =========================================================
   12. 评测文章
   ========================================================= */
.wk-review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.wk-review {
	background: var(--wk-card);
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius);
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.wk-review:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, .35); box-shadow: var(--wk-shadow-lg); }

.wk-review .wk-cat { margin-bottom: 9px; }

.wk-review h3 { margin: 0 0 8px; font-size: 1rem; }
.wk-review h3 a { color: var(--wk-text); }
.wk-review h3 a:hover { color: var(--wk-sky); }

.wk-review .wk-excerpt { color: var(--wk-muted); font-size: .82rem; line-height: 1.7; margin: 0 0 12px; flex: 1 1 auto; }

.wk-review .entry-meta { margin-top: auto; }

/* 分类徽章 */
.wk-cat {
	display: inline-block;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .06em;
	color: #fff;
	background: var(--wk-grad);
	padding: 3px 11px;
	border-radius: 999px;
	width: fit-content;
}

.wk-cat.wk-cat-pink { background: linear-gradient(120deg, #F472B6, #F59E0B); }
.wk-cat.wk-cat-blue { background: linear-gradient(120deg, #22D3EE, #38BDF8); }
.wk-cat.wk-cat-purple { background: linear-gradient(120deg, #8B5CF6, #6366F1); }
.wk-cat.wk-cat-sky { background: linear-gradient(120deg, #38BDF8, #22D3EE); }

/* 通用文章卡片（归档/搜索/相关推荐） */
.wk-card {
	background: var(--wk-card);
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius-sm);
	box-shadow: var(--wk-shadow);
	margin-bottom: 14px;
	padding: 18px 20px;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.wk-card:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, .35); box-shadow: var(--wk-shadow-lg); }

.wk-card .entry-title { margin: 0 0 8px; }
.wk-card .entry-title a { color: var(--wk-text); }
.wk-card .entry-title a:hover { color: var(--wk-sky); }
.wk-card .wk-excerpt { margin-bottom: 10px; }
.wk-card .entry-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wk-card .entry-meta .sep { margin: 0 4px; }

/* 标签云 */
.wk-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.wk-tag-cloud a {
	font-size: .75rem;
	font-weight: 600;
	color: var(--wk-text-soft);
	background: var(--wk-card-2);
	border: 1px solid var(--wk-border);
	border-radius: 999px;
	padding: 5px 13px;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.wk-tag-cloud a:hover { border-color: var(--wk-purple); color: #fff; transform: translateY(-2px); }

/* 空态提示 / 锚点偏移 */
.wk-tools-empty { text-align: center; color: var(--wk-muted); font-size: .875rem; padding: 14px 0 4px; }

.wk-reviews-empty { padding: 22px; }

section[id] { scroll-margin-top: 76px; }

/* 工具详情页 */
.wk-tool-hero {
	position: relative;
	background: linear-gradient(160deg, #151C33, #1B1440 60%, #0E2A3B);
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius);
	padding: 26px 28px;
	margin-bottom: 26px;
	overflow: hidden;
}

.wk-tool-hero::after {
	content: "";
	position: absolute;
	right: -70px;
	top: -70px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(139, 92, 246, .32), transparent 70%);
	pointer-events: none;
}

.wk-tool-hero-head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 14px;
}

.wk-tool-hero-ico { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 18px; font-size: 1.5rem; }

.wk-tool-hero-head h1 { margin: 0 0 4px; font-size: 1.7rem; }
.wk-tool-hero-head .wk-tool-badge { top: -14px; right: 0; }

.wk-tool-hero-tagline { position: relative; margin: 0 0 16px; color: var(--wk-text-soft); font-size: 1rem; line-height: 1.8; }
.wk-tool-hero .wk-feat-tags { position: relative; margin-bottom: 20px; }

.wk-tool-hero-cta { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

.wk-coupon-inline { border-style: dashed; cursor: pointer; }
.wk-coupon-inline.wk-copy-ok { color: var(--wk-sky); border-color: var(--wk-sky); }

/* =========================================================
   13. 通用内容区（文章页等）
   ========================================================= */
.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 24px;
	align-items: start;
}

.content-grid > * { min-width: 0; }

.site-content .page,
.wk-post-panel {
	background: var(--wk-card);
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius);
	padding: 28px 30px;
	box-shadow: var(--wk-shadow);
}

.entry-meta {
	font-size: .75rem;
	color: var(--wk-muted);
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.entry-meta a { color: var(--wk-muted); }
.entry-meta a:hover { color: var(--wk-sky); }

.entry-content, .page-content { font-size: 1rem; line-height: 1.9; }

.entry-content h2, .entry-content h3,
.page-content h2, .page-content h3 {
	margin-top: 1.5em;
	position: relative;
	padding-left: 16px;
}

.entry-content h2::before, .entry-content h3::before,
.page-content h2::before, .page-content h3::before {
	content: "";
	position: absolute;
	left: 0;
	top: .18em;
	width: 5px;
	height: 1em;
	border-radius: 3px;
	background: var(--wk-grad);
}

.entry-content blockquote,
.page-content blockquote {
	border-left: 4px solid var(--wk-purple);
	background: var(--wk-card-2);
	padding: 14px 20px;
	border-radius: 0 var(--wk-radius-sm) var(--wk-radius-sm) 0;
	color: var(--wk-text-soft);
}

.entry-content pre,
.page-content pre {
	background: #0B0E1A;
	color: #DFE5F7;
	border: 1px solid var(--wk-border);
	padding: 16px 18px;
	border-radius: var(--wk-radius-sm);
	overflow-x: auto;
	font-size: .875rem;
}

.entry-content :where(a[href]) { text-decoration: underline; text-underline-offset: 3px; }

.entry-content table, .page-content table { border-collapse: collapse; width: 100%; margin-bottom: 1.25em; }
.entry-content td, .entry-content th, .page-content td, .page-content th { border: 1px solid var(--wk-border); padding: 8px 12px; }

.wk-tags { margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wk-tags a {
	font-size: .75rem;
	color: var(--wk-cyan);
	background: var(--wk-card-2);
	border: 1px solid var(--wk-border);
	padding: 4px 12px;
	border-radius: 999px;
}
.wk-tags a:hover { border-color: var(--wk-purple); color: #fff; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 0; }
.post-nav a {
	background: var(--wk-card-2);
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius-sm);
	padding: 12px 16px;
	font-size: .8125rem;
	color: var(--wk-text-soft);
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.post-nav a:hover { border-color: var(--wk-purple); color: #fff; transform: translateY(-2px); }
.post-nav .nav-next { text-align: right; }

.wk-related .wk-card { background: var(--wk-card); border: 1px solid var(--wk-border); border-radius: var(--wk-radius-sm); padding: 16px 18px; margin-bottom: 12px; }
.wk-related .entry-title { font-size: 1rem; }
.wk-related .entry-title a { color: var(--wk-text); }
.wk-related .entry-title a:hover { color: var(--wk-sky); }
.wk-related .wk-excerpt { color: var(--wk-muted); font-size: .82rem; margin: 0 0 8px; }

/* 评论 */
.comments-area { margin-top: 30px; background: var(--wk-card); border: 1px solid var(--wk-border); border-radius: var(--wk-radius); padding: 24px 26px; box-shadow: var(--wk-shadow); }
.comment-list { list-style: none; margin: 0 0 20px; padding: 0; }
.comment-list .comment-body { border-bottom: 1px dashed var(--wk-border); padding: 14px 0; }
.comment-list .children { list-style: none; padding-left: 40px; margin: 0; }
.comment-meta .comment-author b { color: var(--wk-text); }
.comment-meta time { color: var(--wk-muted); font-size: .75rem; }
.comment-form label { display: block; font-weight: 600; margin: 10px 0 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius-sm);
	padding: 10px 14px;
	background: var(--wk-card-2);
	color: var(--wk-text);
}
.comment-form input[type="submit"] {
	border: 0;
	background: var(--wk-grad);
	color: #fff;
	font-weight: 700;
	padding: 11px 26px;
	border-radius: 999px;
	cursor: pointer;
	transition: filter .2s ease, transform .2s ease;
}
.comment-form input[type="submit"]:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* 分页 */
.pagination { margin: 26px 0 6px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--wk-card);
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius-sm);
	color: var(--wk-text-soft);
	font-weight: 600;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.pagination .page-numbers:hover { border-color: var(--wk-purple); color: #fff; }
.pagination .page-numbers.current { background: var(--wk-grad); border-color: transparent; color: #fff; box-shadow: var(--wk-glow-sm); }

/* =========================================================
   14. 归档 / 搜索标题
   ========================================================= */
.page-hero {
	background: linear-gradient(135deg, #151B33, #1B1440 55%, #0E2A3B);
	color: #fff;
	padding: 40px 0;
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--wk-border);
}

.page-hero::after {
	content: "";
	position: absolute;
	right: -80px;
	top: -80px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 70%);
}

.page-hero::before {
	content: "";
	position: absolute;
	left: 30%;
	top: -100px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%);
}

.page-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.page-hero h1 { color: #fff; margin: 0; font-size: 1.6rem; }

.page-hero .archive-description, .page-hero p { color: rgba(255, 255, 255, .78); font-size: .875rem; margin: 6px 0 0; }

.crumb { font-size: .75rem; color: rgba(255, 255, 255, .65); margin-bottom: 6px; }
.crumb a { color: var(--wk-cyan); }

/* =========================================================
   15. 右侧栏（推广/优惠）
   ========================================================= */
.sidebar-right { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 20px; }

.sidebar-right .wk-widget {
	background: var(--wk-card);
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius);
	box-shadow: var(--wk-shadow);
	overflow: hidden;
}

.sidebar-right .wk-widget-title {
	margin: 0;
	font-size: .9375rem;
	padding: 13px 16px 13px 18px;
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--wk-text);
	border-bottom: 1px solid var(--wk-border);
	border-left: 4px solid var(--wk-purple);
	background: var(--wk-card-2);
}

.sidebar-right .wk-widget-inner { padding: 14px; }

/* 右侧每个小工具的独立渐变条 */
.sidebar-right .wk-widget:nth-child(4n+1) .wk-widget-title { border-left-color: var(--wk-yellow); }
.sidebar-right .wk-widget:nth-child(4n+2) .wk-widget-title { border-left-color: var(--wk-pink); }
.sidebar-right .wk-widget:nth-child(4n+3) .wk-widget-title { border-left-color: var(--wk-cyan); }
.sidebar-right .wk-widget:nth-child(4n+4) .wk-widget-title { border-left-color: var(--wk-purple); }

/* 侧栏工具列表 */
.wk-side-tools { list-style: none; margin: 0; padding: 0; }

.wk-side-tools li { padding: 9px 2px; border-bottom: 1px dashed var(--wk-border); }
.wk-side-tools li:last-child { border-bottom: 0; }

.wk-side-tool { display: flex; align-items: center; gap: 11px; }

.wk-side-tool .wk-tool-ico { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; font-size: .875rem; }

.wk-side-tool-bd { flex: 1 1 auto; min-width: 0; }

.wk-side-tool-name {
	font-weight: 700;
	font-size: .85rem;
	color: var(--wk-text);
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wk-side-tool-name:hover { color: var(--wk-sky); }

.wk-side-tool-desc {
	font-size: .72rem;
	color: var(--wk-muted);
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wk-side-tool-cta { flex: 0 0 auto; }

/* 优惠码卡片 */
.wk-coupon-card {
	border: 1px solid rgba(245, 199, 108, .35);
	background: linear-gradient(135deg, rgba(245, 199, 108, .08), rgba(244, 114, 182, .06));
	border-radius: var(--wk-radius-sm);
	padding: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.wk-coupon-card:last-child { margin-bottom: 0; }

.wk-coupon-code {
	flex: 0 0 auto;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-weight: 800;
	font-size: .78rem;
	letter-spacing: .06em;
	color: #0A0D19;
	background: var(--wk-yellow);
	padding: 6px 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: filter .2s ease, transform .2s ease;
}

.wk-coupon-code:hover { filter: brightness(1.08); transform: translateY(-1px); }

.wk-coupon-txt { flex: 1 1 auto; min-width: 0; }
.wk-coupon-txt strong { display: block; font-size: .8rem; color: var(--wk-text); }
.wk-coupon-txt span { font-size: .72rem; color: var(--wk-muted); }

.wk-copy-ok { color: var(--wk-sky); }

/* CTA 板块 */
.wk-side-cta {
	position: relative;
	padding: 20px;
	text-align: center;
	border-radius: var(--wk-radius);
	background: var(--wk-grad);
	overflow: hidden;
	color: #fff;
}

.wk-side-cta::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
}

.wk-side-cta h3 { position: relative; z-index: 1; margin: 0 0 8px; font-size: 1.05rem; }
.wk-side-cta p { position: relative; z-index: 1; margin: 0 0 16px; font-size: .8rem; color: rgba(255, 255, 255, .85); }
.wk-side-cta .wk-btn { position: relative; z-index: 1; background: #fff; color: #4F46E5; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.wk-side-cta .wk-btn:hover { color: #4F46E5; transform: translateY(-2px); }

/* 页脚小工具通用 */
.footer-widgets .widget { font-size: .875rem; }
.footer-widgets .widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets .widget ul ul { padding-left: 14px; }
.footer-widgets .widget li > a { display: inline-block; padding: 6px 2px; color: var(--wk-text-soft); }
.footer-widgets .widget li > a:hover { color: var(--wk-sky); }

.widget_calendar table { width: 100%; font-size: .8125rem; border-collapse: collapse; }
.widget_calendar td, .widget_calendar th { text-align: center; padding: 5px; border: 1px solid var(--wk-border); }
.widget_calendar caption { color: var(--wk-text); font-weight: 700; padding-bottom: 6px; }
.widget_rss .rsswidget { font-weight: 700; }

/* =========================================================
   16. 404
   ========================================================= */
.wk-404 {
	background: var(--wk-card);
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius);
	box-shadow: var(--wk-shadow);
	text-align: center;
	padding: 70px 30px;
}

.wk-404-code {
	font-size: 6rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .04em;
	background: var(--wk-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.wk-404 h2 { margin: 10px 0; }

.wk-404 .search-form { max-width: 420px; margin: 22px auto; }

.wk-404-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.wk-404-links a {
	background: var(--wk-card-2);
	border: 1px solid var(--wk-border);
	color: var(--wk-text-soft);
	font-weight: 600;
	padding: 9px 20px;
	border-radius: 999px;
	font-size: .875rem;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.wk-404-links a:hover { border-color: var(--wk-purple); color: #fff; transform: translateY(-2px); }

/* =========================================================
   17. 底部 Footer
   ========================================================= */
.site-footer {
	background: #080B15;
	color: var(--wk-muted);
	font-size: .875rem;
	border-top: 1px solid var(--wk-border);
	margin-top: 34px;
}

.footer-widgets {
	max-width: 1280px;
	margin: 0 auto;
	padding: 44px 24px 30px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.4fr;
	gap: 34px;
}

.site-footer .wk-widget-title {
	margin: 0 0 16px;
	font-size: .9375rem;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-footer .wk-widget-title::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--wk-grad);
	transform: rotate(45deg);
}

.site-footer p, .site-footer li { color: var(--wk-muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--wk-text-soft); }
.site-footer a:hover { color: var(--wk-sky); }

.wk-footer-tools li { border-bottom: 1px dashed rgba(150, 165, 220, .12); }
.wk-footer-tools li:last-child { border: 0; }
.wk-footer-tools a { display: inline-block; padding: 3px 0; }

.footer-about .site-title { color: #fff; }

.footer-social { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	border: 1px solid var(--wk-border);
	color: #fff;
	font-size: .8125rem;
	transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--wk-purple); transform: translateY(-2px); color: #fff; }

.site-copyright { border-top: 1px solid rgba(150, 165, 220, .12); }

.copyright-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 24px;
	font-size: .75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.copyright-inner a { color: var(--wk-sky); }

/* =========================================================
   18. 回到顶部
   ========================================================= */
.back-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--wk-grad);
	color: #fff;
	font-size: 1.1rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, filter .2s ease;
	box-shadow: var(--wk-glow-sm);
	z-index: 90;
}

.back-to-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.12); }

/* =========================================================
   19. 响应式
   ========================================================= */
@media (min-width: 1024px) and (max-width: 1180px) {
	.content-grid, .wk-home-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
	.header-search { max-width: 360px; }
	.wk-feat-grid, .wk-tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 821px) and (max-width: 1023px) {
	.content-grid, .wk-home-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; }
	.header-search { max-width: 320px; }
	.footer-widgets { grid-template-columns: 1fr 1fr; gap: 28px; }
	.wk-feat-grid, .wk-tools-grid { grid-template-columns: repeat(2, 1fr); }
	.wk-tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
	body { background-attachment: scroll; }
	.content-grid, .wk-home-grid { grid-template-columns: 1fr; gap: 20px; }
	.sidebar-right { position: static; }
	.header-inner { flex-wrap: wrap; }
	.header-search { order: 3; max-width: 100%; flex: 1 1 100%; margin: 6px 0 0; }
	.header-cta { margin-left: auto; }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.main-navigation { display: none; flex: 1 1 100%; }
	.main-navigation.toggled { display: block; }
	.main-navigation > ul { display: block; }
	.main-navigation li a::after { display: none; }
	.main-navigation .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--wk-sky); padding-left: 14px; margin-bottom: 6px; display: none; }
	.main-navigation li.open > .sub-menu { display: block; }
	.wk-feat-grid, .wk-tools-grid, .wk-review-list { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.footer-widgets { grid-template-columns: 1fr 1fr; gap: 24px; }
	.site-topbar-inner { justify-content: center; text-align: center; }
	.topbar-right { display: none; }
	.wk-hero { padding: 46px 16px 54px; }
	.copyright-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
	.content-grid, .wk-home-grid, .site-main, .header-inner, .nav-inner, .page-hero-inner, .footer-widgets, .copyright-inner, .site-topbar-inner { padding-left: 16px; padding-right: 16px; }
	.footer-widgets { grid-template-columns: 1fr; }
	.wk-tools-grid { grid-template-columns: 1fr; }
	.site-title { font-size: 1.2rem; }
	.back-to-top { right: 14px; bottom: 14px; }
	.wk-hero-cta .wk-btn { width: 100%; }
	.wk-tool-hero { padding: 20px 18px; }
	.wk-tool-hero-head { flex-wrap: wrap; gap: 12px; }
	.wk-tool-hero-ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; font-size: 1.15rem; }
	.wk-tool-hero-head .wk-tool-badge { top: auto; right: auto; position: relative; }
}

/* =========================================================
   20. 着陆页转化增强（1.2.0）
   ========================================================= */
.wk-hero-count {
	display: inline-flex;
	align-items: center;
	background: rgba(245, 199, 108, .14);
	border: 1px solid rgba(245, 199, 108, .4);
	color: var(--wk-yellow);
	font-size: .78rem;
	font-weight: 800;
	padding: 6px 12px;
	border-radius: 999px;
}

.wk-hero-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
	width: 100%;
}

.wk-stat {
	flex: 1 1 132px;
	max-width: 190px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 14px;
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius-sm);
	background: rgba(255, 255, 255, .04);
}

.wk-stat strong {
	font-size: 1.4rem;
	line-height: 1.2;
	background: var(--wk-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.wk-stat span { font-size: .72rem; color: var(--wk-muted); }

.wk-scroll-cue {
	position: relative;
	z-index: 1;
	width: 24px;
	height: 38px;
	margin-top: 26px;
	border: 2px solid rgba(150, 165, 220, .5);
	border-radius: 14px;
}

.wk-scroll-cue::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 6px;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--wk-sky);
	animation: wk-cue 1.6s ease-in-out infinite;
}

@keyframes wk-cue {
	0% { transform: translateY(0); opacity: 1; }
	70% { transform: translateY(10px); opacity: .2; }
	100% { transform: translateY(0); opacity: 1; }
}

.wk-filter-count {
	display: inline-flex;
	align-items: center;
	margin: 0 0 14px;
	color: var(--wk-muted);
	font-size: .78rem;
}

.wk-trust-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wk-trust-item {
	flex: 1 1 230px;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 14px;
	border: 1px solid var(--wk-border);
	border-radius: var(--wk-radius-sm);
	background: var(--wk-card);
	color: var(--wk-text-soft);
	font-size: .78rem;
}

.wk-trust-item b {
	flex: 0 0 auto;
	color: var(--wk-text);
	background: var(--wk-grad-soft);
	border: 1px solid var(--wk-border-strong);
	padding: 2px 9px;
	border-radius: 999px;
	font-size: .68rem;
	letter-spacing: .04em;
}

.wk-coupon-note {
	margin: 10px 0 0;
	font-size: .72rem;
	color: var(--wk-muted);
	text-align: center;
}

/* =========================================================
   21. 减少动画偏好
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   22. 侧栏 VPS 推广位
   ========================================================= */
.wk-widget-vps .wk-widget-inner {
	padding-top: 0;
}

.wk-vps-card {
	position: relative;
	overflow: hidden;
	padding: 1.15rem 1.1rem 1.1rem;
	border: 1px solid var(--wk-border-strong);
	border-radius: var(--wk-radius);
	background:
		radial-gradient(120% 100% at 100% 0%, rgba(34, 211, 238, .16) 0%, rgba(99, 102, 241, .10) 45%, rgba(18, 24, 48, 0) 80%),
		var(--wk-card);
	box-shadow: var(--wk-shadow);
}

.wk-vps-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--wk-grad);
}

.wk-vps-badge {
	display: inline-block;
	margin-bottom: .6rem;
	padding: .16rem .55rem;
	border-radius: 999px;
	background: var(--wk-grad);
	color: #fff;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .02em;
}

.wk-vps-title {
	margin: 0 0 .45rem;
	font-size: 1.02rem;
	line-height: 1.4;
	color: var(--wk-text);
}

.wk-vps-desc {
	margin: 0 0 .7rem;
	font-size: .78rem;
	line-height: 1.65;
	color: var(--wk-muted);
}

.wk-vps-list {
	margin: 0 0 .8rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: .34rem;
}

.wk-vps-list li {
	position: relative;
	padding-left: 1.15rem;
	font-size: .78rem;
	line-height: 1.55;
	color: var(--wk-text-soft);
}

.wk-vps-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--wk-sky);
	font-size: .74rem;
	font-weight: 700;
}

.wk-vps-price {
	margin: 0 0 .8rem;
	font-size: 1.28rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--wk-yellow);
}

.wk-vps-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .3rem;
	width: 100%;
}

.wk-vps-btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--wk-glow-sm);
}

.wk-vps-note {
	margin: .65rem 0 0;
	font-size: .7rem;
	line-height: 1.5;
	color: var(--wk-muted);
	text-align: center;
}