/*
Theme Name: ITPUB 技术社区
Theme URI: https://www.itpub.net/
Author: WorkBuddy
Author URI: https://www.itpub.net
Description: 仿 ITPUB（www.itpub.net）IT 技术社区风格的 WordPress 主题：白蓝配色门户头图、头条要闻区、作者制内容流、热门排行、往期直播、名人堂、论坛版块页面模板。兼容 WordPress 6.x / 7.x（含 7.1）。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itpub
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Tags: blog, news, community, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   0. 变量与基础
   ========================================================================== */
:root {
	--itpub-blue: #1668b3;
	--itpub-blue-dark: #10508c;
	--itpub-blue-light: #e8f2fd;
	--itpub-blue-line: #d6e6f8;
	--itpub-red: #e4393c;
	--itpub-orange: #ff7a45;
	--itpub-title: #222222;
	--itpub-text: #333333;
	--itpub-gray: #888888;
	--itpub-gray-2: #aaaaaa;
	--itpub-line: #ebeef5;
	--itpub-bg-soft: #f7f9fc;
	--itpub-width: 1200px;
}

* { -webkit-box-sizing: border-box; box-sizing: border-box; }

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

body {
	margin: 0;
	background: #ffffff;
	color: var(--itpub-text);
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	min-width: 1200px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--itpub-blue); }

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; font-weight: 600; color: var(--itpub-title); }

p { margin: 0 0 14px; }

input, button, textarea, select { font-family: inherit; font-size: inherit; outline: none; }

button { cursor: pointer; }

.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;
}

.w1200 { width: var(--itpub-width); margin: 0 auto; }

.ellipsis-2,
.ellipsis-3 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ellipsis-2 { -webkit-line-clamp: 2; }
.ellipsis-3 { -webkit-line-clamp: 3; }

/* ==========================================================================
   1. 顶部（Logo + 搜索 + 登录）
   ========================================================================== */
.site-topbar { background: #ffffff; border-bottom: 1px solid var(--itpub-line); }
.site-topbar .topbar-inner {
	width: var(--itpub-width);
	margin: 0 auto;
	height: 78px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.site-topbar .logo-area { display: flex; align-items: center; }
.site-topbar .logo-img { height: 40px; width: auto; }
.site-topbar .logo-text { font-size: 30px; font-weight: 800; color: var(--itpub-blue); letter-spacing: 1px; }
.site-topbar .logo-text em { font-style: normal; color: #555; font-size: 20px; margin-left: 10px; font-weight: 500; }
.site-topbar .logo-slogan {
	margin-left: 16px;
	padding-left: 16px;
	border-left: 1px solid var(--itpub-line);
	color: var(--itpub-gray);
	font-size: 13px;
	line-height: 18px;
}

.top-search { display: flex; width: 460px; }
.top-search input {
	flex: 1;
	height: 38px;
	padding: 0 14px;
	border: 2px solid var(--itpub-blue);
	border-right: 0;
	border-radius: 3px 0 0 3px;
	background: #fff;
	color: #333;
}
.top-search button {
	width: 84px;
	height: 38px;
	border: 0;
	border-radius: 0 3px 3px 0;
	background: var(--itpub-blue);
	color: #fff;
	font-size: 15px;
}
.top-search button:hover { background: var(--itpub-blue-dark); }

.topbar-right { display: flex; align-items: center; gap: 16px; font-size: 14px; color: #666; }
.topbar-right .btn-login { color: var(--itpub-blue); }
.topbar-right .btn-reg,
.topbar-right .btn-post {
	display: inline-block;
	height: 30px;
	line-height: 30px;
	padding: 0 16px;
	border-radius: 3px;
	font-size: 13px;
}
.topbar-right .btn-reg { background: var(--itpub-blue); color: #fff; }
.topbar-right .btn-reg:hover { background: var(--itpub-blue-dark); color: #fff; }
.topbar-right .btn-post { border: 1px solid var(--itpub-blue-line); color: var(--itpub-blue); }
.topbar-right .btn-post:hover { border-color: var(--itpub-blue); color: var(--itpub-blue); }

/* ==========================================================================
   2. 主导航（深蓝条）
   ========================================================================== */
.site-nav { background: var(--itpub-blue); }
.site-nav .nav-inner {
	width: var(--itpub-width);
	margin: 0 auto;
	height: 44px;
	display: flex;
	align-items: center;
}
.site-nav ul { display: flex; }
.site-nav li a {
	display: block;
	padding: 0 20px;
	height: 44px;
	line-height: 44px;
	color: #ffffff;
	font-size: 15px;
}
.site-nav li:first-child a { padding-left: 14px; }
.site-nav li a:hover,
.site-nav li.current-menu-item > a { background: var(--itpub-blue-dark); }
.site-nav li .sub-menu { display: none; }

.channel-bar { background: var(--itpub-blue-light); border-bottom: 1px solid var(--itpub-blue-line); }
.channel-bar .channel-inner {
	width: var(--itpub-width);
	margin: 0 auto;
	height: 40px;
	display: flex;
	align-items: center;
	gap: 28px;
	overflow-x: auto;
}
.channel-bar a { font-size: 14px; color: #33628f; white-space: nowrap; line-height: 40px; }
.channel-bar a:hover { color: var(--itpub-blue); }
.channel-bar a.active { color: var(--itpub-blue); font-weight: 600; }

/* ==========================================================================
   3. 头条区（首页）
   ========================================================================== */
.home-focus {
	width: var(--itpub-width);
	margin: 20px auto 0;
	display: flex;
	justify-content: space-between;
	gap: 20px;
}
.focus-slider {
	position: relative;
	width: 720px;
	height: 340px;
	overflow: hidden;
	border-radius: 4px;
	background: #12253d;
}
.focus-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.focus-slider .slide.active { opacity: 1; }
.focus-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.focus-slider .slide-title {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 46px 22px 18px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .72));
	color: #fff;
	font-size: 19px;
	font-weight: 600;
}
.focus-slider .dots { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 2; }
.focus-slider .dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.focus-slider .dots span.on { background: #fff; }

.focus-headlines { width: 460px; display: flex; flex-direction: column; }
.focus-headlines .hd {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--itpub-blue);
	margin-bottom: 4px;
}
.focus-headlines .hd h3 { font-size: 18px; color: var(--itpub-blue); }
.focus-headlines .hd .more { font-size: 13px; color: var(--itpub-gray-2); }
.focus-headlines .hd .more:hover { color: var(--itpub-blue); }
.focus-headlines ul li {
	display: flex;
	align-items: center;
	padding: 13px 0;
	border-bottom: 1px dashed var(--itpub-line);
}
.focus-headlines ul li:last-child { border-bottom: 0; }
.focus-headlines .no {
	flex: 0 0 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	border-radius: 2px;
	background: #eef3f9;
	color: var(--itpub-gray);
	font-size: 12px;
	margin-right: 12px;
}
.focus-headlines li:nth-child(1) .no { background: var(--itpub-red); color: #fff; }
.focus-headlines li:nth-child(2) .no { background: var(--itpub-orange); color: #fff; }
.focus-headlines li:nth-child(3) .no { background: #ffb35c; color: #fff; }
.focus-headlines .txt { flex: 1; font-size: 16px; line-height: 22px; color: #333; }
.focus-headlines .txt:hover { color: var(--itpub-blue); }
.focus-headlines .date { font-size: 12px; color: var(--itpub-gray-2); margin-left: 12px; }

/* ==========================================================================
   4. 主体布局与文章流
   ========================================================================== */
.site-main-wrap { width: var(--itpub-width); margin: 0 auto; }
.content-center { width: var(--itpub-width); margin: 10px auto 0; display: flex; justify-content: space-between; }
.left-content { width: 880px; }
.right-content { width: 300px; }

.list-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 26px 0 12px;
	border-bottom: 2px solid var(--itpub-blue);
}
.list-head h1 { font-size: 20px; color: var(--itpub-blue); }
.list-head h1 span { color: var(--itpub-gray); font-size: 14px; font-weight: 400; margin-left: 8px; }
.list-head .desc { font-size: 13px; color: var(--itpub-gray); }

.articleItem { padding: 22px 0; border-bottom: 1px solid var(--itpub-line); }
.articleItem:last-of-type { border-bottom: 0; }
.article-irl { display: flex; gap: 18px; }
.article-irl-img {
	flex: 0 0 180px;
	width: 180px;
	height: 110px;
	border-radius: 4px;
	overflow: hidden;
	background: #f2f4f7;
}
.article-irl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.articleItem:hover .article-irl-img img { transform: scale(1.05); }
.article-irl-c { flex: 1; min-width: 0; }
.article-irl-ct_title { font-size: 18px; font-weight: 600; color: #222; line-height: 26px; display: inline-block; }
.article-irl-ct_title:hover { color: var(--itpub-blue); }
.article-irl-ct .flag {
	display: inline-block;
	height: 18px;
	line-height: 16px;
	padding: 0 5px;
	margin-right: 8px;
	border: 1px solid var(--itpub-red);
	border-radius: 2px;
	color: var(--itpub-red);
	font-size: 12px;
	font-weight: 400;
	vertical-align: 2px;
}
.article-abstract { display: block; margin-top: 10px; font-size: 14px; color: var(--itpub-gray); line-height: 22px; }
.article-meta { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--itpub-gray-2); }
.article-meta .author { display: flex; align-items: center; gap: 6px; color: #5c7080; }
.article-meta .author img { width: 22px; height: 22px; border-radius: 50%; }
.article-meta .author:hover { color: var(--itpub-blue); }
.article-meta .channel { color: var(--itpub-blue); background: var(--itpub-blue-light); padding: 1px 8px; border-radius: 2px; }
.article-meta .channel:hover { background: var(--itpub-blue); color: #fff; }
.article-meta .dot { color: #dde3ea; }

.more-btn {
	display: block;
	width: 100%;
	height: 42px;
	line-height: 42px;
	text-align: center;
	font-size: 15px;
	color: var(--itpub-blue);
	background: var(--itpub-blue-light);
	border: 1px solid var(--itpub-blue-line);
	border-radius: 3px;
	margin: 26px 0 10px;
}
.more-btn:hover { background: #dceaff; color: var(--itpub-blue-dark); }
.more-btn[disabled] { color: var(--itpub-gray-2); background: #f5f7fa; border-color: var(--itpub-line); cursor: default; }

.itpub-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 26px 0 10px; }
.itpub-pagination .page-numbers {
	min-width: 34px;
	height: 34px;
	line-height: 32px;
	text-align: center;
	padding: 0 10px;
	border: 1px solid var(--itpub-line);
	border-radius: 3px;
	color: #606266;
	background: #fff;
}
.itpub-pagination .page-numbers:hover { border-color: var(--itpub-blue); color: var(--itpub-blue); }
.itpub-pagination .page-numbers.current { background: var(--itpub-blue); border-color: var(--itpub-blue); color: #fff; }

/* ==========================================================================
   5. 侧边栏模块
   ========================================================================== */
.itpub-box { margin-bottom: 26px; }
.itpub-box .box-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--itpub-blue);
}
.itpub-box .box-hd h3 { font-size: 16px; color: var(--itpub-blue); display: flex; align-items: center; gap: 8px; }
.itpub-box .box-hd h3::before { content: ""; width: 4px; height: 15px; background: var(--itpub-blue); border-radius: 2px; }
.itpub-box .box-hd .more { font-size: 12px; color: var(--itpub-gray-2); }
.itpub-box .box-hd .more:hover { color: var(--itpub-blue); }
.itpub-box .box-bd { padding-top: 6px; }

.rank-list li { display: flex; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--itpub-line); font-size: 14px; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .no {
	flex: 0 0 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	background: #eef3f9;
	color: #93a3b3;
	font-size: 12px;
	border-radius: 2px;
	margin-right: 10px;
}
.rank-list li:nth-child(1) .no { background: var(--itpub-red); color: #fff; }
.rank-list li:nth-child(2) .no { background: var(--itpub-orange); color: #fff; }
.rank-list li:nth-child(3) .no { background: #ffb35c; color: #fff; }
.rank-list .txt { flex: 1; color: #333; line-height: 20px; }
.rank-list .txt:hover { color: var(--itpub-blue); }

.live-list li { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--itpub-line); font-size: 14px; line-height: 20px; }
.live-list li:last-child { border-bottom: 0; }
.live-list .tag {
	flex: 0 0 auto;
	height: 18px;
	line-height: 18px;
	padding: 0 5px;
	border-radius: 2px;
	background: #fdeeee;
	color: var(--itpub-red);
	font-size: 11px;
	margin-top: 1px;
}
.live-list .txt { flex: 1; color: #333; }
.live-list .txt:hover { color: var(--itpub-blue); }
.live-list .date { display: block; color: var(--itpub-gray-2); font-size: 12px; margin-top: 2px; }

.hall-grid { display: flex; flex-wrap: wrap; gap: 14px 10px; padding-top: 12px; }
.hall-grid .hall-item { width: 64px; text-align: center; }
.hall-grid .hall-item img { width: 48px; height: 48px; border-radius: 50%; background: #f2f4f7; }
.hall-grid .hall-item .nm {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #555;
	line-height: 16px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.hall-grid .hall-item:hover .nm { color: var(--itpub-blue); }

.tag-cloud { padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: #f2f6fb; border: 1px solid #e4edf7; border-radius: 2px; font-size: 12px; color: #5c7080; padding: 3px 9px; }
.tag-cloud a:hover { color: #fff; background: var(--itpub-blue); border-color: var(--itpub-blue); }

.side-ad { margin-bottom: 26px; border-radius: 4px; overflow: hidden; }
.side-ad img { display: block; width: 100%; }

.widget { margin-bottom: 26px; }
.widget-title { font-size: 16px; color: var(--itpub-blue); padding-bottom: 10px; border-bottom: 2px solid var(--itpub-blue); }
.widget ul li { padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--itpub-line); }
.widget ul li:last-child { border-bottom: 0; }

/* ==========================================================================
   6. 论坛版块页
   ========================================================================== */
.forum-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	background: var(--itpub-bg-soft);
	border: 1px solid var(--itpub-line);
	border-radius: 4px;
	padding: 16px 20px;
	margin-bottom: 24px;
	font-size: 14px;
	color: #555;
}
.forum-stats b { color: var(--itpub-blue); font-size: 18px; margin-right: 4px; }

.forum-group { margin-bottom: 30px; }
.forum-group > h2 {
	font-size: 17px;
	padding-left: 12px;
	border-left: 4px solid var(--itpub-blue);
	background: var(--itpub-bg-soft);
	line-height: 36px;
	margin-bottom: 4px;
}
.forum-table { width: 100%; border-collapse: collapse; }
.forum-table th {
	background: var(--itpub-blue-light);
	color: #33628f;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	padding: 10px 14px;
	border-bottom: 1px solid var(--itpub-blue-line);
}
.forum-table td { padding: 14px; border-bottom: 1px solid var(--itpub-line); vertical-align: middle; }
.forum-table tr:hover td { background: #fafcff; }
.forum-table .col-count { width: 90px; text-align: center; color: var(--itpub-gray); font-size: 13px; }
.forum-table .col-last { width: 210px; font-size: 13px; color: var(--itpub-gray); }
.forum-table .b-meta { display: flex; align-items: center; }
.forum-table .b-icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	margin-right: 12px;
	border-radius: 4px;
	background: var(--itpub-blue-light);
	color: var(--itpub-blue);
	font-size: 16px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.forum-table .b-name { font-size: 15px; color: #222; font-weight: 600; }
.forum-table .b-name:hover { color: var(--itpub-blue); }
.forum-table .b-desc { font-size: 12px; color: var(--itpub-gray-2); margin-top: 3px; }

/* ==========================================================================
   7. 文章详情
   ========================================================================== */
.crumbs { font-size: 13px; color: var(--itpub-gray-2); padding: 20px 0 14px; }
.crumbs a { color: var(--itpub-gray-2); }
.crumbs a:hover { color: var(--itpub-blue); }
.crumbs .sep { padding: 0 6px; color: #d5dbe2; }

.single-title { font-size: 28px; line-height: 40px; color: #222; margin-bottom: 14px; }
.single-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: var(--itpub-gray-2);
	padding-bottom: 18px;
	border-bottom: 1px solid var(--itpub-line);
}
.single-meta .author { display: flex; align-items: center; gap: 8px; color: #5c7080; font-weight: 600; }
.single-meta .author img { width: 28px; height: 28px; border-radius: 50%; }
.single-meta .author:hover { color: var(--itpub-blue); }
.single-meta .channel-link { color: var(--itpub-blue); }

.entry-content { font-size: 16px; line-height: 30px; color: #333; padding-top: 22px; word-wrap: break-word; }
.entry-content p { margin: 0 0 20px; }
.entry-content h2 { font-size: 21px; margin: 32px 0 16px; padding-left: 12px; border-left: 4px solid var(--itpub-blue); line-height: 26px; }
.entry-content h3 { font-size: 18px; margin: 26px 0 12px; }
.entry-content h4 { font-size: 16px; margin: 22px 0 10px; }
.entry-content img { border-radius: 4px; }
.entry-content a { color: var(--itpub-blue); text-decoration: underline; }
.entry-content blockquote {
	margin: 20px 0;
	padding: 14px 18px;
	background: var(--itpub-bg-soft);
	border-left: 4px solid var(--itpub-blue-line);
	color: #606266;
	font-size: 15px;
}
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 24px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content pre {
	background: #f6f8fa;
	border: 1px solid #ebeef5;
	border-radius: 4px;
	padding: 14px 16px;
	overflow-x: auto;
	font-size: 14px;
	line-height: 22px;
	font-family: Consolas, Monaco, "Courier New", monospace;
}
.entry-content code {
	background: #f2f6fb;
	padding: 2px 5px;
	border-radius: 3px;
	font-size: 14px;
	color: var(--itpub-blue-dark);
	font-family: Consolas, Monaco, "Courier New", monospace;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid #ebeef5; padding: 8px 12px; }
.entry-content th { background: var(--itpub-bg-soft); }
.entry-content .wp-caption-text { text-align: center; font-size: 13px; color: var(--itpub-gray); margin-top: 6px; }
.entry-content .alignleft { float: left; margin: 0 20px 20px 0; }
.entry-content .alignright { float: right; margin: 0 0 20px 20px; }
.entry-content .aligncenter { display: block; margin: 0 auto 20px; }

.post-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.post-tags .label { font-size: 14px; color: var(--itpub-gray); }
.post-tags a { background: #f2f6fb; border: 1px solid #e4edf7; border-radius: 2px; font-size: 12px; color: #5c7080; padding: 3px 10px; }
.post-tags a:hover { color: #fff; background: var(--itpub-blue); border-color: var(--itpub-blue); }

.author-card {
	display: flex;
	gap: 14px;
	margin-top: 28px;
	padding: 18px;
	background: var(--itpub-bg-soft);
	border: 1px solid var(--itpub-line);
	border-radius: 4px;
}
.author-card img { width: 56px; height: 56px; border-radius: 50%; }
.author-card .info { flex: 1; }
.author-card .name { font-size: 16px; font-weight: 600; color: #222; }
.author-card .name:hover { color: var(--itpub-blue); }
.author-card .bio { font-size: 13px; color: var(--itpub-gray); margin-top: 4px; line-height: 20px; }

.post-nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--itpub-line);
	font-size: 14px;
	color: #606266;
}
.post-nav-links a:hover { color: var(--itpub-blue); }
.post-nav-links span.off { color: #c0c4cc; }

.related-posts { margin-top: 34px; }
.related-posts h3 { font-size: 17px; padding-bottom: 10px; border-bottom: 2px solid var(--itpub-blue); color: var(--itpub-blue); }
.related-list { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.related-item { width: 280px; }
.related-item .thumb { width: 280px; height: 150px; border-radius: 4px; overflow: hidden; background: #f2f4f7; }
.related-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-item .t { display: block; margin-top: 10px; font-size: 15px; line-height: 22px; color: #333; font-weight: 600; }
.related-item .t:hover { color: var(--itpub-blue); }

.comments-area { margin-top: 40px; }
.comments-title { font-size: 17px; padding-bottom: 10px; border-bottom: 2px solid var(--itpub-blue); color: var(--itpub-blue); }
.comment-list .comment { display: flex; padding: 16px 0; border-bottom: 1px solid var(--itpub-line); }
.comment-list .comment .avatar-box { flex: 0 0 44px; }
.comment-list .comment .avatar-box img { width: 44px; height: 44px; border-radius: 50%; }
.comment-list .comment .comment-body { flex: 1; padding-left: 14px; }
.comment-list .comment-meta { font-size: 13px; color: var(--itpub-gray-2); }
.comment-list .comment-author { font-size: 15px; font-weight: 600; color: #222; margin-right: 10px; }
.comment-list .comment-content { margin-top: 6px; font-size: 15px; line-height: 26px; }
.comment-list .reply { font-size: 13px; color: var(--itpub-gray-2); }
.comment-list ol.children { margin-left: 58px; }
.comment-respond { margin-top: 30px; }
.comment-respond .comment-reply-title { font-size: 17px; margin-bottom: 14px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 14px; color: #606266; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; max-width: 520px; padding: 8px 12px; border: 1px solid #dcdfe6; border-radius: 3px; background: #fafcff; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--itpub-blue); background: #fff; }
.comment-form .submit { height: 38px; padding: 0 30px; border: 0; border-radius: 3px; background: var(--itpub-blue); color: #fff; font-size: 15px; }
.comment-form .submit:hover { background: var(--itpub-blue-dark); }

/* ==========================================================================
   8. 归档 / 搜索 / 404
   ========================================================================== */
.page-head { padding: 26px 0 12px; border-bottom: 2px solid var(--itpub-blue); }
.page-head h1 { font-size: 20px; color: var(--itpub-blue); }
.page-head .desc { margin-top: 6px; font-size: 13px; color: var(--itpub-gray); }
.no-results { padding: 50px 0; text-align: center; color: var(--itpub-gray); }
.no-results h1 { font-size: 20px; margin-bottom: 12px; }
.search-form-inline { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.search-form-inline input { width: 320px; height: 38px; padding: 0 14px; border: 1px solid #dcdfe6; border-radius: 3px; }
.search-form-inline button { height: 38px; padding: 0 24px; border: 0; border-radius: 3px; background: var(--itpub-blue); color: #fff; }
.error-404 { padding: 70px 0; text-align: center; }
.error-404 .code { font-size: 88px; color: var(--itpub-blue); line-height: 1; font-weight: 700; }

/* ==========================================================================
   9. 页脚
   ========================================================================== */
.site-footer { margin-top: 40px; background: var(--itpub-bg-soft); border-top: 3px solid var(--itpub-blue); }
.footer-inner { width: var(--itpub-width); margin: 0 auto; padding: 34px 0 26px; display: flex; gap: 40px; }
.footer-inner .f-col { flex: 1; }
.footer-inner h3 { font-size: 15px; color: #333; margin-bottom: 14px; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-inner li { font-size: 13px; }
.footer-inner a { color: #7b8895; }
.footer-inner a:hover { color: var(--itpub-blue); }
.footer-contact { font-size: 13px; color: #7b8895; line-height: 24px; }

.friend-links { width: var(--itpub-width); margin: 0 auto; padding: 16px 0; border-top: 1px solid var(--itpub-line); font-size: 13px; color: #7b8895; }
.friend-links .t { color: #333; margin-right: 10px; }
.friend-links a { color: #7b8895; margin-right: 14px; }
.friend-links a:hover { color: var(--itpub-blue); }

.copyright-bottom { background: #1d4b7f; color: #b9cee6; text-align: center; font-size: 13px; line-height: 24px; padding: 16px 0; }
.copyright-bottom a { color: #d6e6f8; }
.copyright-bottom a:hover { color: #fff; }

/* ==========================================================================
   10. 其它
   ========================================================================== */
.back-to-top {
	position: fixed;
	right: 40px; bottom: 80px;
	width: 42px; height: 42px;
	line-height: 42px;
	text-align: center;
	border: 1px solid var(--itpub-line);
	border-radius: 3px;
	background: #fff;
	color: #909399;
	cursor: pointer;
	display: none;
	z-index: 999;
}
.back-to-top:hover { background: var(--itpub-blue); border-color: var(--itpub-blue); color: #fff; }

.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.wp-block-image figcaption { text-align: center; font-size: 13px; color: var(--itpub-gray); }
.wp-block-quote { border-left: 4px solid var(--itpub-blue); padding-left: 16px; margin: 20px 0; color: #606266; }
.wp-block-button__link { background: var(--itpub-blue); border-radius: 3px; }

@media screen and (max-width: 1240px) {
	body { min-width: 0; }
	.w1200, .content-center, .site-main-wrap, .home-focus, .site-topbar .topbar-inner, .site-nav .nav-inner, .channel-bar .channel-inner, .footer-inner, .friend-links { width: 96%; }
	.left-content, .right-content { width: 100%; }
	.content-center { flex-direction: column; }
	.home-focus { flex-direction: column; }
	.focus-slider { width: 100%; height: 240px; }
	.focus-headlines { width: 100%; }
	.top-search { width: 260px; }
	.footer-inner { flex-wrap: wrap; gap: 20px; }
}
@media screen and (max-width: 768px) {
	.article-irl { flex-direction: column; }
	.article-irl-img { width: 100%; height: 190px; flex: none; }
	.single-title { font-size: 22px; line-height: 32px; }
	.related-item, .related-item .thumb { width: 100%; }
	.forum-table .col-last { display: none; }
}
