/*
Theme Name: Ikanchai Portal
Theme URI: https://test.szhzxw.cn/
Author: szhzxw.cn
Description: 科技媒体门户主题。框架结构照搬砍柴网（ikanchai.com）：固定顶栏 + 主导航下拉、焦点轮播区（左 650 轮播 / 右 650 四宫格）、精选图文列表、三列图组、八频道 Tab 内容区、右侧栏（24 小时快报时间轴 / 活跃作者榜 / 热文榜单 / 友情链接）。视觉细节在保留原站栅格与信息层级的前提下做了重新设计：统一圆角与色阶、补充悬停动效、加入完整响应式断点。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
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: ikanchai
Tags: news, portal, magazine, featured-images, custom-menu, translation-ready
*/

/* ==========================================================================
   1. 设计令牌
   栅格尺寸与信息层级对齐原站：容器 1300 / 主栏 910 / 侧栏 360 / 焦点区 650+650
   ========================================================================== */
:root {
	/* 品牌色：原站 #00aa98，在此拉开明度层次做主次区分 */
	--ik-brand: #00a894;
	--ik-brand-deep: #008875;
	--ik-brand-soft: #e6f7f4;
	--ik-accent: #ffb400;

	/* 中性色 */
	--ik-ink: #1c1f23;
	--ik-text: #4a5058;
	--ik-muted: #8b929c;
	--ik-line: #e8eaed;
	--ik-line-soft: #f1f3f5;
	--ik-surface: #ffffff;
	--ik-surface-alt: #f7f9fa;
	--ik-well: #f2f6fa;

	/* 尺度 */
	--ik-shell: 1300px;
	--ik-main: 910px;
	--ik-side: 360px;
	--ik-focus: 650px;
	--ik-head-h: 70px;

	/* 圆角：原站图片为 9px，这里统一到 8px 并引入小圆角层级 */
	--ik-r-lg: 8px;
	--ik-r-md: 6px;
	--ik-r-sm: 4px;

	--ik-shadow-sm: 0 1px 2px rgba(20, 30, 40, .05);
	--ik-shadow-md: 0 6px 20px rgba(20, 30, 40, .09);
	--ik-shadow-lg: 0 14px 38px rgba(20, 30, 40, .14);

	--ik-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. 基础重置
   ========================================================================== */
* { box-sizing: border-box; }

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

body {
	margin: 0;
	padding-top: var(--ik-head-h);
	background: var(--ik-surface);
	color: var(--ik-text);
	font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .18s var(--ik-ease); }
a:hover { color: var(--ik-brand); }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ik-ink); font-weight: 700; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
figure { margin: 0; }

.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;
}
.screen-reader-text:focus {
	position: fixed !important; top: 10px; left: 10px; z-index: 99999;
	width: auto; height: auto; clip: auto; padding: 12px 18px;
	background: #fff; color: var(--ik-ink); border-radius: var(--ik-r-sm);
	box-shadow: var(--ik-shadow-lg);
}

.clearfix::after { content: ""; display: table; clear: both; }
.ik-shell { width: var(--ik-shell); max-width: 100%; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   3. 顶栏与主导航（对应原站 .header / .logo / .nav）
   ========================================================================== */
.ik-topbar {
	position: fixed; inset: 0 0 auto 0; z-index: 999;
	height: var(--ik-head-h);
	background: var(--ik-brand);
	box-shadow: 0 2px 12px rgba(0, 110, 96, .18);
}
.ik-topbar__inner { display: flex; align-items: center; height: 100%; }

.ik-logo { flex: 0 0 auto; margin-right: 46px; }
.ik-logo a { display: block; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: 1px; line-height: 1; }
.ik-logo a:hover { color: #fff; opacity: .88; }

.ik-nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ik-nav::-webkit-scrollbar { display: none; }
.ik-nav > ul { display: flex; align-items: center; flex-wrap: nowrap; width: max-content; }
.ik-nav > ul > li { position: relative; flex: 0 0 auto; }
.ik-nav > ul > li > a {
	display: block; padding: 0 18px; height: var(--ik-head-h); line-height: var(--ik-head-h);
	font-size: 16px; color: #fff; font-weight: 500; white-space: nowrap;
}
.ik-nav > ul > li > a:hover,
.ik-nav > ul > li.current-menu-item > a { color: var(--ik-accent); }

/* 二级下拉（原站 .nav dt.dropdown-hover） */
.ik-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 132px; padding: 6px 0;
	background: #fff; border-radius: 0 0 var(--ik-r-md) var(--ik-r-md);
	box-shadow: var(--ik-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .2s var(--ik-ease);
}
.ik-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ik-nav .sub-menu a { display: block; padding: 7px 18px; font-size: 13px; color: var(--ik-text); white-space: nowrap; }
.ik-nav .sub-menu a:hover { background: var(--ik-brand-soft); color: var(--ik-brand-deep); }

/* 九宫格「更多」 */
.ik-nav__more { position: relative; }
.ik-nav__grid {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	display: grid; grid-template-columns: repeat(3, 7px); gap: 3px;
	padding: 8px; background: rgba(255, 255, 255, .16); border-radius: var(--ik-r-sm);
}
.ik-nav__grid span { width: 7px; height: 7px; background: #fff; border-radius: 1px; }

.ik-topbar__tools { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.ik-search { display: flex; align-items: center; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 0 4px 0 14px; transition: background .2s var(--ik-ease); }
.ik-search:focus-within { background: #fff; }
.ik-search input { width: 150px; height: 34px; border: 0; background: transparent; color: #fff; outline: 0; }
.ik-search input::placeholder { color: rgba(255, 255, 255, .75); }
.ik-search:focus-within input { color: var(--ik-ink); }
.ik-search:focus-within input::placeholder { color: var(--ik-muted); }
.ik-search button { width: 30px; height: 30px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 15px; }
.ik-search:focus-within button { color: var(--ik-brand); }

.ik-userlink { font-size: 14px; color: #fff; white-space: nowrap; }
.ik-userlink:hover { color: var(--ik-accent); }

/* ==========================================================================
   4. 焦点区：左轮播 650 + 右四宫格 650（原站 .pos_l / .pos_r）
   ========================================================================== */
.ik-focus { display: flex; gap: 30px; margin-top: 30px; }

.ik-carousel { position: relative; flex: 0 0 var(--ik-focus); width: var(--ik-focus); height: 435px; overflow: hidden; background: #0d1518; border-radius: var(--ik-r-lg); }
.ik-carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .55s var(--ik-ease); }
.ik-carousel__slide.is-active { opacity: 1; }
.ik-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.ik-carousel__mask {
	position: absolute; inset: auto 0 0 0; padding: 70px 24px 52px;
	background: linear-gradient(to top, rgba(4, 12, 14, .92) 0%, rgba(4, 12, 14, .45) 45%, transparent 100%);
}
.ik-carousel__cat {
	display: inline-block; padding: 2px 9px; margin-bottom: 10px;
	background: var(--ik-brand); color: #fff; font-size: 12px; font-weight: 700; border-radius: var(--ik-r-sm);
}
.ik-carousel__title { color: #fff; font-size: 26px; line-height: 1.35; font-weight: 700; }
.ik-carousel__title a:hover { color: var(--ik-accent); }
.ik-carousel__meta { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .72); }

.ik-carousel__nav { position: absolute; top: 0; bottom: 0; width: 64px; border: 0; background: rgba(0, 0, 0, .22); color: #fff; font-size: 26px; cursor: pointer; opacity: 0; transition: opacity .22s var(--ik-ease), background .22s var(--ik-ease); }
.ik-carousel:hover .ik-carousel__nav { opacity: 1; }
.ik-carousel__nav:hover { background: rgba(0, 0, 0, .45); color: #fff; }
.ik-carousel__nav--prev { left: 0; border-radius: var(--ik-r-lg) 0 0 var(--ik-r-lg); }
.ik-carousel__nav--next { right: 0; border-radius: 0 var(--ik-r-lg) var(--ik-r-lg) 0; }

.ik-carousel__dots { position: absolute; left: 24px; bottom: 22px; display: flex; gap: 6px; z-index: 3; }
.ik-carousel__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: all .22s var(--ik-ease); }
.ik-carousel__dots button.is-active { width: 26px; background: var(--ik-accent); }

/* 四宫格 */
.ik-quad { flex: 0 0 var(--ik-focus); width: var(--ik-focus); display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 20px; align-content: start; padding-top: 4px; }
.ik-quad__item { position: relative; }
.ik-quad__item a { display: block; }
.ik-quad__thumb { position: relative; overflow: hidden; border-radius: var(--ik-r-lg); background: #dfe4e8; aspect-ratio: 650 / 420; }
.ik-quad__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ik-ease); }
.ik-quad__item:hover .ik-quad__thumb img { transform: scale(1.05); }
.ik-quad__tag {
	position: absolute; left: 12px; top: 12px; padding: 3px 10px;
	background: var(--ik-brand); color: #fff; font-size: 12px; font-weight: 700; border-radius: var(--ik-r-sm);
	transition: background .2s var(--ik-ease);
}
.ik-quad__item:hover .ik-quad__tag { background: var(--ik-accent); color: var(--ik-ink); }
.ik-quad__title { margin-top: 11px; font-size: 16px; line-height: 1.5; color: var(--ik-ink); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ik-quad__meta { margin-top: 4px; font-size: 12px; color: var(--ik-muted); }

/* ==========================================================================
   5. 内容区骨架：主栏 910 + 侧栏 360（原站 .base_left / .base_right）
   ========================================================================== */
.ik-main-wrap { display: flex; gap: 30px; align-items: flex-start; margin-top: 40px; }
.ik-main { flex: 0 0 var(--ik-main); width: var(--ik-main); min-width: 0; }
.ik-side { flex: 0 0 var(--ik-side); width: var(--ik-side); }

/* 区块标题（原站 .pos_hot_title：左标题 + 右延伸细线） */
.ik-block-title { position: relative; height: 44px; margin-bottom: 4px; }
.ik-block-title::after { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 3px; background: var(--ik-line); }
.ik-block-title h2 { position: relative; display: inline-block; padding-right: 16px; background: #fff; font-size: 24px; line-height: 45px; color: var(--ik-brand); }
.ik-block-title h2::before { content: "◆"; margin-right: 8px; font-size: 15px; vertical-align: 2px; }
.ik-block-title .ik-more { position: absolute; right: 0; top: 0; font-size: 13px; color: var(--ik-muted); line-height: 45px; }
.ik-block-title .ik-more:hover { color: var(--ik-brand); }

/* 次级标题（原站 .line_title） */
.ik-subtitle { position: relative; height: 40px; margin: 26px 0 4px; }
.ik-subtitle::after { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--ik-line); }
.ik-subtitle h3 { position: relative; display: inline-block; padding-right: 14px; background: #fff; font-size: 18px; line-height: 40px; color: var(--ik-brand); }
.ik-subtitle .ik-more { position: absolute; right: 0; top: 0; font-size: 12px; color: var(--ik-muted); line-height: 40px; }

/* ==========================================================================
   6. 精选图文列表（原站 .base_list_content：250×165 图 + 文字，行高 225）
   ========================================================================== */
.ik-feature-list > article {
	display: flex; gap: 26px; padding: 28px 0; height: 225px;
	border-bottom: 1px solid var(--ik-line-soft); overflow: hidden;
}
.ik-feature-list > article:first-child { padding-top: 18px; }
.ik-feature__thumb { flex: 0 0 250px; width: 250px; height: 165px; overflow: hidden; border-radius: var(--ik-r-lg); background: #dfe4e8; }
.ik-feature__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ik-ease); }
.ik-feature-list > article:hover .ik-feature__thumb img { transform: scale(1.06); }
.ik-feature__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ik-feature__title { font-size: 19px; line-height: 1.45; color: var(--ik-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ik-feature-list > article:hover .ik-feature__title { color: var(--ik-brand); }
.ik-feature__meta { margin-top: 9px; font-size: 12px; color: var(--ik-muted); display: flex; align-items: center; gap: 8px; }
.ik-feature__meta .ik-dot { color: var(--ik-line); }
.ik-feature__excerpt { margin-top: 10px; font-size: 13px; line-height: 1.75; color: var(--ik-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ik-feature__tags { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.ik-tag { font-size: 12px; color: var(--ik-muted); background: var(--ik-surface-alt); padding: 2px 9px; border-radius: 999px; }
.ik-tag:hover { color: var(--ik-brand-deep); background: var(--ik-brand-soft); }

/* ==========================================================================
   7. 三列图组（原站 .home_list_pic：3 × 303px，图高 200）
   ========================================================================== */
.ik-pic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 20px; }
.ik-pic-grid__thumb { overflow: hidden; border-radius: var(--ik-r-lg); background: #dfe4e8; aspect-ratio: 303 / 200; }
.ik-pic-grid__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ik-ease); }
.ik-pic-grid a:hover .ik-pic-grid__thumb img { transform: scale(1.06); }
.ik-pic-grid__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; padding: 0 2px; font-size: 15px; line-height: 1.55; color: var(--ik-ink); }
.ik-pic-grid a:hover .ik-pic-grid__title { color: var(--ik-brand); }

/* ==========================================================================
   8. 八频道 Tab 区（原站 .home_list_tab：8 等分 × 44px）
   ========================================================================== */
.ik-tabs { position: relative; border: 1px solid var(--ik-line); border-radius: var(--ik-r-md); overflow: hidden; }
.ik-tabs__nav { display: flex; border-bottom: 1px solid var(--ik-line); background: var(--ik-surface-alt); }
.ik-tabs__nav button {
	flex: 1 1 0; min-width: 0; height: 44px; padding: 0 4px; border: 0; background: transparent;
	font-size: 15px; color: var(--ik-text); cursor: pointer; white-space: nowrap;
	overflow: hidden; text-overflow: ellipsis;
	transition: color .2s var(--ik-ease), background .2s var(--ik-ease);
}
.ik-tabs__nav button:hover { color: var(--ik-brand); }
.ik-tabs__nav button.is-active { background: var(--ik-brand); color: #fff; font-weight: 700; }
.ik-tabs__panel { display: none; }
.ik-tabs__panel.is-active { display: block; }

/* Tab 内的紧凑列表 */
.ik-rank { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; padding: 6px 0; }
.ik-rank__item { display: flex; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px dashed var(--ik-line-soft); }
.ik-rank__no { flex: 0 0 auto; width: 18px; font-size: 15px; font-weight: 800; color: #c3c8ce; font-style: italic; }
.ik-rank__item:nth-child(-n+3) .ik-rank__no { color: var(--ik-brand); }
.ik-rank__title { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--ik-ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ik-rank__item:hover .ik-rank__title { color: var(--ik-brand); }

/* ==========================================================================
   9. 侧栏通用框（原站 .base_box：1px 边框 + #f2f6fa 标题条）
   ========================================================================== */
.ik-box { border: 1px solid var(--ik-line); border-radius: var(--ik-r-md); background: #fff; overflow: hidden; }
.ik-box + .ik-box { margin-top: 30px; }
.ik-box__title {
	display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 15px;
	background: var(--ik-well); border-bottom: 1px solid var(--ik-line);
	font-size: 16px; font-weight: 700; color: var(--ik-ink);
}
.ik-box__title::before { content: "◆"; font-size: 11px; color: var(--ik-brand); }
.ik-box__title .ik-more { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--ik-muted); }
.ik-box__title .ik-more:hover { color: var(--ik-brand); }
.ik-box__body { padding: 4px 15px 15px; }

/* 快报时间轴（原站 .new_news 滚动播报） */
.ik-flash { max-height: 430px; overflow-y: auto; padding: 8px 15px 14px; scrollbar-width: thin; }
.ik-flash::-webkit-scrollbar { width: 4px; }
.ik-flash::-webkit-scrollbar-thumb { background: var(--ik-line); border-radius: 2px; }
.ik-flash__item { position: relative; padding: 0 0 16px 20px; }
.ik-flash__item::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ik-brand); box-shadow: 0 0 0 3px var(--ik-brand-soft); }
.ik-flash__item::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: -2px; width: 1px; background: var(--ik-line); }
.ik-flash__item:last-child::after { display: none; }
.ik-flash__title { font-size: 14px; line-height: 1.6; color: var(--ik-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ik-flash__item:hover .ik-flash__title { color: var(--ik-brand); }
.ik-flash__meta { margin-top: 4px; font-size: 12px; color: var(--ik-muted); }

/* 侧栏图文榜 */
.ik-side-rank__item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ik-line-soft); }
.ik-side-rank__item:last-child { border-bottom: 0; }
.ik-side-rank__thumb { flex: 0 0 104px; width: 104px; height: 70px; overflow: hidden; border-radius: var(--ik-r-sm); background: #dfe4e8; }
.ik-side-rank__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ik-ease); }
.ik-side-rank__item:hover .ik-side-rank__thumb img { transform: scale(1.07); }
.ik-side-rank__title { font-size: 13px; line-height: 1.55; color: var(--ik-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ik-side-rank__item:hover .ik-side-rank__title { color: var(--ik-brand); }
.ik-side-rank__meta { margin-top: 4px; font-size: 12px; color: var(--ik-muted); }

/* 纯文字热文榜 */
.ik-hot-list__item { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--ik-line-soft); }
.ik-hot-list__item:last-child { border-bottom: 0; }
.ik-hot-list__no { flex: 0 0 auto; font-size: 15px; font-weight: 800; font-style: italic; color: #c3c8ce; }
.ik-hot-list__item:nth-child(-n+3) .ik-hot-list__no { color: #ff4d4f; }
.ik-hot-list__title { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--ik-ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ik-hot-list__item:hover .ik-hot-list__title { color: var(--ik-brand); }

/* 友情链接（原站 .link_txt 分组） */
.ik-links__group + .ik-links__group { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ik-line-soft); }
.ik-links__name { font-size: 13px; font-weight: 700; color: var(--ik-ink); margin-bottom: 7px; }
.ik-links__items { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.ik-links__items a { font-size: 12px; color: var(--ik-muted); }
.ik-links__items a:hover { color: var(--ik-brand); }

/* ==========================================================================
   10. 列表页 / 归档页
   ========================================================================== */
.ik-archive-head { padding: 26px 0 20px; border-bottom: 1px solid var(--ik-line); margin-bottom: 8px; }
.ik-archive-head h1 { font-size: 26px; line-height: 1.35; }
.ik-archive-head .ik-desc { margin-top: 8px; font-size: 13px; color: var(--ik-muted); }
.ik-archive-head .ik-crumb { font-size: 12px; color: var(--ik-muted); margin-bottom: 8px; }
.ik-archive-head .ik-crumb a:hover { color: var(--ik-brand); }
.ik-archive-head .ik-crumb span { margin: 0 6px; color: #c3c8ce; }

.ik-post-item { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--ik-line-soft); }
.ik-post-item__thumb { flex: 0 0 220px; width: 220px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--ik-r-md); background: #dfe4e8; }
.ik-post-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ik-ease); }
.ik-post-item:hover .ik-post-item__thumb img { transform: scale(1.05); }
.ik-post-item__body { flex: 1 1 auto; min-width: 0; }
.ik-post-item__title { font-size: 19px; line-height: 1.45; }
.ik-post-item:hover .ik-post-item__title { color: var(--ik-brand); }
.ik-post-item__meta { margin-top: 8px; font-size: 12px; color: var(--ik-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ik-post-item__excerpt { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--ik-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 分页 */
.ik-pagination { display: flex; justify-content: center; gap: 6px; padding: 34px 0 10px; }
.ik-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 34px; height: 34px; padding: 0 10px;
	border: 1px solid var(--ik-line); border-radius: var(--ik-r-sm);
	font-size: 13px; color: var(--ik-text); background: #fff;
	transition: all .2s var(--ik-ease);
}
.ik-pagination .page-numbers:hover { border-color: var(--ik-brand); color: var(--ik-brand); }
.ik-pagination .page-numbers.current { background: var(--ik-brand); border-color: var(--ik-brand); color: #fff; font-weight: 700; }
.ik-pagination .dots { border: 0; background: transparent; }

/* ==========================================================================
   11. 详情页
   ========================================================================== */
.ik-single { padding-bottom: 20px; }
.ik-single__crumb { font-size: 12px; color: var(--ik-muted); padding: 20px 0 0; }
.ik-single__crumb a:hover { color: var(--ik-brand); }
.ik-single__crumb span { margin: 0 6px; color: #c3c8ce; }
.ik-single__title { margin-top: 14px; font-size: 32px; line-height: 1.35; }
.ik-single__meta { margin-top: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--ik-line); font-size: 13px; color: var(--ik-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ik-single__meta .ik-source { color: var(--ik-ink); font-weight: 600; }

.ik-single__figure { margin: 26px 0; }
.ik-single__figure img { width: 100%; border-radius: var(--ik-r-lg); }

.ik-entry { padding: 8px 0 20px; font-size: 16px; line-height: 1.95; color: #2c3138; }
.ik-entry > * + * { margin-top: 1.15em; }
.ik-entry p { margin: 0; }
.ik-entry h2 { font-size: 22px; line-height: 1.5; margin-top: 1.8em; padding-left: 12px; border-left: 4px solid var(--ik-brand); }
.ik-entry h3 { font-size: 18px; margin-top: 1.5em; }
.ik-entry h4 { font-size: 16px; margin-top: 1.3em; }
.ik-entry a { color: var(--ik-brand-deep); border-bottom: 1px solid rgba(0, 168, 148, .3); }
.ik-entry a:hover { color: var(--ik-accent); border-bottom-color: var(--ik-accent); }
.ik-entry img { border-radius: var(--ik-r-md); display: block; margin: 0 auto; }
.ik-entry ul, .ik-entry ol { padding-left: 1.4em; }
.ik-entry ul { list-style: disc; }
.ik-entry ol { list-style: decimal; }
.ik-entry li { margin: .35em 0; }
.ik-entry blockquote { margin: 1.4em 0; padding: 14px 18px; background: var(--ik-surface-alt); border-left: 4px solid var(--ik-brand); border-radius: 0 var(--ik-r-sm) var(--ik-r-sm) 0; color: #5a616a; }
.ik-entry table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: 14px; }
.ik-entry th, .ik-entry td { padding: 9px 12px; border: 1px solid var(--ik-line); text-align: left; }
.ik-entry th { background: var(--ik-surface-alt); font-weight: 700; }
.ik-entry pre { overflow-x: auto; padding: 14px 16px; background: #1c2126; color: #dfe4e8; border-radius: var(--ik-r-md); font-size: 13px; line-height: 1.7; }
.ik-entry code { font-family: Consolas, Monaco, monospace; }
.ik-entry hr { border: 0; border-top: 1px solid var(--ik-line); margin: 2em 0; }

.ik-single__tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 20px 0; border-top: 1px solid var(--ik-line); }
.ik-single__tags .ik-label { font-size: 13px; color: var(--ik-muted); }
.ik-single__tags a { font-size: 12px; padding: 3px 10px; background: var(--ik-surface-alt); border-radius: 999px; color: var(--ik-text); }
.ik-single__tags a:hover { background: var(--ik-brand-soft); color: var(--ik-brand-deep); }

.ik-nav-post { display: flex; gap: 24px; padding: 22px 0; border-top: 1px solid var(--ik-line-soft); }
.ik-nav-post__item { flex: 1 1 0; min-width: 0; font-size: 14px; line-height: 1.6; }
.ik-nav-post__item.is-next { text-align: right; }
.ik-nav-post__label { display: block; font-size: 12px; color: var(--ik-muted); margin-bottom: 5px; }
.ik-nav-post__item a { color: var(--ik-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ik-nav-post__item a:hover { color: var(--ik-brand); }
.ik-nav-post__item.is-empty { color: #c3c8ce; }

/* 评论 */
.ik-comments { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--ik-line); }
.ik-comments h3 { font-size: 18px; margin-bottom: 18px; }
.ik-comments ol { list-style: none; }
.ik-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--ik-line-soft); }
.ik-comments .comment-author img { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.ik-comments .comment-meta { font-size: 12px; color: var(--ik-muted); margin-bottom: 6px; }
.ik-comments .children { margin-left: 46px; }
.comment-form { margin-top: 22px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 13px; border: 1px solid var(--ik-line); border-radius: var(--ik-r-sm); background: #fff; outline: 0;
	transition: border-color .2s var(--ik-ease);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ik-brand); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
	display: inline-block; padding: 9px 26px; border: 0; border-radius: var(--ik-r-sm);
	background: var(--ik-brand); color: #fff; cursor: pointer; font-size: 14px; transition: background .2s var(--ik-ease);
}
.comment-form .submit:hover { background: var(--ik-brand-deep); }
.comment-form p { margin-bottom: 12px; }

/* ==========================================================================
   12. 搜索 / 404 / 页脚
   ========================================================================== */
.ik-message { padding: 70px 0 90px; text-align: center; }
.ik-message h1 { font-size: 30px; margin-bottom: 14px; }
.ik-message p { color: var(--ik-muted); font-size: 15px; }
.ik-message .ik-btn { display: inline-block; margin-top: 26px; padding: 10px 30px; background: var(--ik-brand); color: #fff; border-radius: var(--ik-r-sm); }
.ik-message .ik-btn:hover { background: var(--ik-brand-deep); color: #fff; }

.ik-footer { margin-top: 46px; background: #1f2529; color: #99a2aa; font-size: 13px; }
.ik-footer__top { display: flex; gap: 40px; padding: 38px 0 30px; }
.ik-footer__brand { flex: 0 0 360px; }
.ik-footer__brand .ik-logo { margin: 0 0 14px; }
.ik-footer__brand p { line-height: 1.85; text-align: justify; }
.ik-footer__nav { flex: 1 1 auto; display: flex; gap: 56px; }
.ik-footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.ik-footer__col a { display: block; padding: 4px 0; line-height: 1.7; }
.ik-footer__col a:hover { color: #fff; }
.ik-footer__bottom { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: 12px; color: #6f7880; }
.ik-footer__bottom a { color: #6f7880; }
.ik-footer__bottom a:hover { color: #fff; }

/* 返回顶部 */
.ik-backtop {
	position: fixed; right: 24px; bottom: 30px; z-index: 500;
	width: 42px; height: 42px; border: 0; border-radius: 50%;
	background: rgba(31, 37, 41, .6); color: #fff; font-size: 18px; cursor: pointer;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .24s var(--ik-ease);
}
.ik-backtop.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.ik-backtop:hover { background: var(--ik-brand); }

/* ==========================================================================
   13. 通用小组件
   ========================================================================== */
.ik-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ik-muted); }
.ik-meta a:hover { color: var(--ik-brand); }
.ik-dot { color: #d6dae0; }
.ik-empty { padding: 34px 0; text-align: center; color: var(--ik-muted); font-size: 14px; }
.ik-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; display: block; }

/* 无图占位：保持栅格高度不塌陷 */
.ik-placeholder,
.ik-thumb-fallback {
	display: block; width: 100%; height: 100%;
	background:
		repeating-linear-gradient(45deg, #eef1f4 0 10px, #e6eaee 10px 20px);
	border-radius: var(--ik-r-lg);
}
.ik-quad__item .ik-placeholder { aspect-ratio: 650 / 420; }
.ik-feature__thumb .ik-thumb-fallback { height: 165px; }

/* 详情页内分页 */
.ik-page-links { margin: 1.6em 0; text-align: center; }
.ik-page-links a {
	display: inline-block; min-width: 30px; height: 30px; line-height: 28px;
	margin: 0 4px; border: 1px solid var(--ik-line); border-radius: var(--ik-r-sm); color: var(--ik-text);
}
.ik-page-links a:hover { border-color: var(--ik-brand); color: var(--ik-brand); }

/* 侧栏小工具挂件：兼容 WordPress 核心 block widget（未加载 block-library 样式时也要可读） */
.ik-widgets { padding: 4px 15px 15px; }
.ik-widgets .widget { margin-top: 18px; }
.ik-widgets .widget:first-child { margin-top: 4px; }
.ik-widgets .widget-title,
.ik-widgets h2 { font-size: 15px; font-weight: 700; color: var(--ik-ink); margin: 0 0 10px; }
.ik-widgets ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.ik-widgets li { padding: 7px 0; border-bottom: 1px dashed var(--ik-line-soft); }
.ik-widgets li:last-child { border-bottom: 0; }
.ik-widgets a { color: var(--ik-text); }
.ik-widgets a:hover { color: var(--ik-brand); }
/* 核心 block 搜索组件 */
.ik-widgets .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.ik-widgets .wp-block-search__input {
	flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 12px;
	border: 1px solid var(--ik-line); border-radius: var(--ik-r-sm); background: #fff; font-size: 13px;
}
.ik-widgets .wp-block-search__button {
	flex: 0 0 auto; height: 34px; padding: 0 14px; border: 0; border-radius: var(--ik-r-sm);
	background: var(--ik-brand); color: #fff; font-size: 13px; cursor: pointer;
}
.ik-widgets .wp-block-search__button:hover { background: var(--ik-brand-deep); }
.ik-widgets .wp-block-latest-posts__post-title { display: block; line-height: 1.6; }

/* ==========================================================================
   14. 响应式
   ========================================================================== */
@media (max-width: 1400px) {
	.ik-shell { width: 1200px; }
	.ik-main { flex-basis: 820px; width: 820px; }
	.ik-side { flex-basis: 330px; width: 330px; }
	.ik-focus, .ik-quad { flex-basis: 590px; width: 590px; }
	.ik-carousel { height: 400px; }
}

@media (max-width: 1100px) {
	.ik-shell { width: 100%; }
	.ik-nav > ul > li > a { padding: 0 12px; font-size: 15px; }
	.ik-nav__more { display: none; }
	.ik-focus { flex-direction: column; gap: 22px; }
	.ik-carousel, .ik-quad { flex: 0 0 auto; width: 100%; }
	.ik-carousel { height: 420px; }
	.ik-main-wrap { flex-direction: column; }
	.ik-main, .ik-side { flex: 0 0 auto; width: 100%; }
	.ik-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
	.ik-side > * { margin-top: 0 !important; }
	.ik-tabs__nav { flex-wrap: wrap; }
	.ik-tabs__nav button { flex: 1 1 25%; }
}

@media (max-width: 720px) {
	.ik-shell { padding: 0 14px; }
	.ik-logo a { font-size: 21px; }
	.ik-logo { margin-right: 14px; }
	.ik-nav { display: none; }
	.ik-search input { width: 92px; }
	.ik-carousel { height: 230px; }
	.ik-carousel__title { font-size: 17px; }
	.ik-carousel__mask { padding: 40px 16px 16px; }
	.ik-quad { grid-template-columns: 1fr; gap: 18px; }
	.ik-pic-grid { grid-template-columns: 1fr; gap: 20px; }
	.ik-rank { grid-template-columns: 1fr; }
	.ik-feature-list > article { height: auto; flex-direction: column; gap: 14px; }
	.ik-feature__thumb { flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 16 / 9; }
	.ik-post-item { flex-direction: column; gap: 14px; }
	.ik-post-item__thumb { flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 9; }
	.ik-single__title { font-size: 23px; }
	.ik-entry { font-size: 15px; }
	.ik-side { grid-template-columns: 1fr; }
	.ik-footer__top { flex-direction: column; gap: 26px; }
	.ik-footer__brand { flex: 0 0 auto; }
	.ik-footer__nav { flex-wrap: wrap; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
