/*
Theme Name: 快连 WP 主题
Theme URI: https://kaikliad.com.cn/
Author: 快连
Author URI: https://kaikliad.com.cn/
Description: 快连官网 WordPress 主题。由静态站转换：首页文章列表自动读取 12 条、分类归档、文章详情、内链自动生成；下载按钮支持「站内下载页 / 第三方地址」开关；备案号、Logo、图片可在后台或 assets 目录修改。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kuailian
Tags: blog, custom-logo, featured-images, translation-ready
*/

/* ------------------------------------------------------------------
 * 主题补充样式（静态站样式在 assets/css/*.css 中，按模板加载）
 * ------------------------------------------------------------------ */

/* 当前导航项高亮 */
.nav-links a.is-current {
	color: #0055dd;
}

/* 分页（index.php / category.php） */
.kad-pagination {
	margin: 36px auto 0;
}

.kad-pagination-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.kad-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #dbe5f1;
	border-radius: 10px;
	background: #f7faff;
	color: #1d3b5a;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.kad-pagination .page-numbers:hover {
	border-color: #0055dd;
	color: #0055dd;
}

.kad-pagination .page-numbers.current {
	border-color: #0055dd;
	background: #0055dd;
	color: #ffffff;
}

/* index.php 兜底：普通页面 / 搜索 / 404 */
.kad-fallback {
	padding: 72px 0;
}

.kad-fallback-title {
	margin: 0 0 18px;
	color: #0a2540;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.kad-fallback .entry-content {
	color: #2f5478;
	line-height: 1.85;
}

.kad-fallback .entry-content a {
	color: #0055dd;
}

.kad-search-results {
	padding: 0;
	list-style: none;
}

.kad-search-results li {
	padding: 10px 0;
	border-bottom: 1px solid #e6eef8;
}

.kad-search-results a {
	color: #0055dd;
	text-decoration: none;
}

/* 文章卡片缩略图 */
.blog-card .card-img img,
.blog-card .blog-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
