/*
Theme Name:     KnowAll Child Theme
Theme URI:      http://herothemes.com/
Description:    Child theme for KnowAll
Author:         HeroThemes
Author URI:     http://herothemes.com
Template:       knowall
Version:        1.0.0
*/

/* ------- Insert custom styles below this line ------- */

/* ===== 排版：中文系统字体 + 收敛字号 ===== */
body, input, optgroup, select, textarea, p, button {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif !important;
	font-size: 15px;
	line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
}

/* ===== 配色：酒红 + 金（威严、力量、资深） ===== */
.site-header {
	background: #8b1e2d !important;
	background: linear-gradient(135deg, #8b1e2d 0%, #4a1218 100%) !important;
}
.nav-header ul li a,
.nav-header ul li a:hover { color: #fff !important; }
a { color: #8b1e2d !important; }
a:hover { color: #c9a24b !important; }
h1, h2, h3, h4, h5, h6 { color: #1e2a44 !important; }
body, p { color: #3a4256; }
input[type="reset"], input[type="submit"], input[type="button"], button,
.hkb-article__content ol li:before, .hkb-article__content ul li:before,
.hkb_widget_exit__btn { background: #8b1e2d !important; }
button:hover, input[type="reset"]:hover, input[type="submit"]:hover,
input[type="button"]:hover, .ht-transferbox__btn:hover { background: #c9a24b !important; }
.hkb-article__title a:hover, .hkb-article__link:hover h2, .ht-post__title a:hover,
.hkb-category .hkb-category__articlelist a { color: #1e2a44 !important; }
.hkb-category .hkb-category__articlelist a:hover { color: #8b1e2d !important; }
.hkb-breadcrumbs__icon, .hkb-article-attachment__icon { fill: #8b1e2d !important; }
.hkb_widget_toc ol li.active > a { background: rgba(139, 30, 45, 0.85) !important; }

/* ===== 品牌 Hero ===== */
.djf-hero-wrap { padding: 30px 0 18px; }
.djf-hero {
	display: flex;
	align-items: center;
	gap: 36px;
	color: #fff;
}
.djf-hero__content { flex: 1 1 auto; }
.djf-hero__name {
	font-size: 36px;
	line-height: 1.2;
	margin: 0 0 6px;
	color: #fff !important;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.djf-hero__title {
	font-size: 16px;
	margin: 0 0 14px;
	color: #e6c98a !important;
	font-weight: 500;
	letter-spacing: 0.03em;
}
.djf-hero__position {
	font-size: 20px;
	margin: 0 0 6px;
	color: #fff !important;
	font-weight: 600;
}
.djf-hero__value {
	font-size: 15px;
	margin: 0 0 18px;
	color: rgba(255,255,255,0.9) !important;
}
.djf-hero__trust {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}
.djf-hero__trust li {
	font-size: 14px;
	color: rgba(255,255,255,0.95);
	position: relative;
}
.djf-hero__trust li + li::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 12px;
	background: rgba(255,255,255,0.45);
	margin-right: 22px;
	vertical-align: middle;
}
.djf-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.djf-hero__btn {
	display: inline-block;
	padding: 11px 26px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	letter-spacing: 0.02em;
}
.djf-hero__btn--primary { background: #c9a24b !important; color: #1e2a44 !important; }
.djf-hero__btn--primary:hover { background: #fff !important; color: #8b1e2d !important; }
.djf-hero__btn--secondary {
	background: transparent;
	color: #fff !important;
	border: 1px solid rgba(255,255,255,0.85);
}
.djf-hero__btn--secondary:hover { border-color: #c9a24b; color: #e6c98a !important; }
.djf-hero__ai {
	font-size: 12.5px;
	margin: 0;
	color: rgba(255,255,255,0.68) !important;
}
.djf-hero__photo { flex: 0 0 180px; }
.djf-hero__photo img {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #c9a24b;
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
	display: block;
}
.djf-hero__search { margin-top: 22px; max-width: 680px; }

/* ===== 页尾：深藏青 + 白字（沉稳收尾） ===== */
.site-footer {
	background: #1e2a44 !important;
	color: rgba(255,255,255,0.75);
	padding: 22px 0;
}
.site-footer__copyright { color: rgba(255,255,255,0.75); font-size: 13px; }
.site-footer a { color: #e6c98a !important; }
.site-footer a:hover { color: #c9a24b !important; }

/* ===== 预约咨询 · 微信二维码模态框 ===== */
.djf-wechat-modal {
	position: fixed;
	inset: 0;
	background: rgba(30, 42, 68, 0.7);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}
.djf-wechat-modal--open { display: flex; }
.djf-wechat-modal__box {
	background: #fff;
	border-radius: 10px;
	padding: 28px 32px 32px;
	text-align: center;
	position: relative;
	max-width: 360px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.djf-wechat-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 4px;
}
.djf-wechat-modal__close:hover { color: #333; background: none !important; }
.djf-wechat-modal__title { margin: 0 0 4px; color: #1e2a44 !important; font-size: 20px; }
.djf-wechat-modal__desc { margin: 0 0 18px; color: #666; font-size: 14px; }
.djf-wechat-modal__qr { width: 220px; height: 220px; object-fit: contain; display: inline-block; }

/* ===== 区块标题 · 渐变色 + 统一字号 ===== */
h2.hkb-archive__title, h2.latest-articles__title {
	font-size: 22px !important;
	font-weight: 700 !important;
	background: linear-gradient(135deg, #8b1e2d, #c9a24b);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent !important;
}

/* ===== 法律服务四领域 · 彩色主题（左侧短色条，不贴边） ===== */
.hkb-category--510, .hkb-category--511, .hkb-category--512, .hkb-category--513 {
	border-left: none !important;
	position: relative;
}
.hkb-category--510::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 4px; background: #2563eb; border-radius: 2px; }
.hkb-category--511::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 4px; background: #7c3aed; border-radius: 2px; }
.hkb-category--512::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 4px; background: #b91c1c; border-radius: 2px; }
.hkb-category--513::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 4px; background: #d97706; border-radius: 2px; }
.hkb-category--510 .hkb-category__title { color: #2563eb !important; }
.hkb-category--511 .hkb-category__title { color: #7c3aed !important; }
.hkb-category--512 .hkb-category__title { color: #b91c1c !important; }
.hkb-category--513 .hkb-category__title { color: #d97706 !important; }

/* ===== 本站最新文章 · 彩色标题 ===== */
.latest-articles__item:nth-child(1) .latest-articles__link { color: #2563eb !important; }
.latest-articles__item:nth-child(2) .latest-articles__link { color: #0891b2 !important; }
.latest-articles__item:nth-child(3) .latest-articles__link { color: #7c3aed !important; }
.latest-articles__item:nth-child(4) .latest-articles__link { color: #db2777 !important; }
.latest-articles__item:nth-child(5) .latest-articles__link { color: #dc2626 !important; }
.latest-articles__item:nth-child(6) .latest-articles__link { color: #ea580c !important; }
.latest-articles__item:nth-child(7) .latest-articles__link { color: #ca8a04 !important; }
.latest-articles__item:nth-child(8) .latest-articles__link { color: #059669 !important; }
.latest-articles__item:nth-child(9) .latest-articles__link { color: #4f46e5 !important; }
.latest-articles__item:nth-child(10) .latest-articles__link { color: #8b1e2d !important; }
.latest-articles__link:hover { color: #8b1e2d !important; text-decoration: underline; }

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
	.djf-hero { flex-direction: column; align-items: flex-start; gap: 22px; }
	.djf-hero__photo { order: -1; flex: 0 0 auto; }
	.djf-hero__photo img { width: 110px; height: 110px; }
	.djf-hero__name { font-size: 30px; }
	.djf-hero__position { font-size: 18px; }
	.djf-hero__trust { gap: 8px 14px; }
	.djf-hero__trust li + li::before { margin-right: 14px; }
}

/* ===== 侧边栏 widget · KnowAll 翡翠绿底色 ===== */
.widget.hkb_widget_articles,
.widget.hkb_widget_exit {
	background: #10b981;
	color: #fff;
	padding: 20px;
	border-radius: 8px;
}
.widget.hkb_widget_articles .widget__title,
.widget.hkb_widget_exit .widget__title {
	color: #fff !important;
	font-size: 17px;
	margin: 0 0 12px;
}
.widget.hkb_widget_articles ul { list-style: none; margin: 0; padding: 0; }
.widget.hkb_widget_articles ul li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
.widget.hkb_widget_articles ul li:last-child { border-bottom: none; }
.widget.hkb_widget_articles a { color: #fff !important; text-decoration: none; }
.widget.hkb_widget_articles a:hover { color: #1e2a44 !important; }
.widget.hkb_widget_articles .hkb-meta li {
	background: rgba(255,255,255,0.25) !important;
	color: rgba(255,255,255,0.95) !important;
}
.hkb_widget_exit__content { color: rgba(255,255,255,0.92); }
.hkb_widget_exit__btn {
	background: #fff !important;
	color: #10b981 !important;
}
.hkb_widget_exit__btn:hover {
	background: #1e2a44 !important;
	color: #fff !important;
}

.widget.hkb_widget_articles ul li { padding: 8px 0; }

/* ===== 3日读者喜爱文章 · 手机端版本（含阅读量计数） ===== */
.ht-mobile-articles {
	background: #10b981;
	color: #fff;
	padding: 20px;
	border-radius: 8px;
	margin: 20px 0;
}
.ht-mobile-articles__title {
	display: block;
	margin: 0 0 14px;
	font-size: 17px;
	color: #fff !important;
	font-weight: 700;
}
.ht-mobile-articles__list { list-style: none; margin: 0; padding: 0; }
.ht-mobile-articles__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255,255,255,0.2);
}
.ht-mobile-articles__item:last-child { border-bottom: none; }
.ht-mobile-articles__link { color: #fff !important; text-decoration: none; flex: 1; font-size: 15px !important; }
.ht-mobile-articles__link:hover { color: #1e2a44 !important; }
.ht-mobile-articles__views { font-size: 12px; color: rgba(255,255,255,0.85); white-space: nowrap; flex: 0 0 auto; }
@media screen and (min-width: 768px) { .ht-mobile-articles { display: none; } }

/* ===== sidebar 字体减小一级，与「本站最新文章」一致 ===== */
.latest-articles__link { font-size: 15px !important; font-weight: 400 !important; line-height: 1.5 !important; }
.widget.hkb_widget_articles .hkb-widget__entry-title { font-size: 15px !important; }

/* ===== 桌面版 sidebar 计数 ===== */
.hkb_widget_articles .hkb-widget__views {
	display: block;
	font-size: 11px;
	color: rgba(255,255,255,0.75);
	margin-top: 2px;
}

/* ===== 手机端「了解杜继锋律师」翡翠绿底色（与「读者喜爱文章」一致） ===== */
.ht-mobile-exit {
	background: #10b981 !important;
	color: #fff;
	border-radius: 8px;
}
.ht-mobile-exit .ht-mobile-exit__title { color: #fff !important; }
.ht-mobile-exit .hkb_widget_exit__content { color: rgba(255,255,255,0.92); }
.ht-mobile-exit .hkb_widget_exit__btn { background: #fff !important; color: #10b981 !important; }

/* ===== 手机端菜单：深色文字 + 右侧 2/3 宽度 + 折叠 ===== */
@media screen and (max-width: 767px) {
	.nav-header ul li a,
	.nav-header ul li a:hover { color: #333 !important; }
	.nav-header ul ul a { color: rgba(0,0,0,0.7) !important; }
	.nav-header > ul { width: 66.66%; left: auto !important; right: 0 !important; }
	.nav-header .sub-menu { display: none; }
	.nav-header .menu-item-has-children.sub-open > .sub-menu { display: block; }
	.cat-count { color: rgba(0,0,0,0.45) !important; }
}

/* ===== 分类文章数量小字 ===== */
.cat-count {
	font-size: 12px;
	font-weight: 400;
	margin-left: 2px;
	color: rgba(0,0,0,0.45);
}
@media screen and (min-width: 768px) {
	.nav-header > ul > li > a > .cat-count { color: rgba(255,255,255,0.65); }
}

/* ===== 桌面端子菜单：深色文字（白底可见，修复反色） ===== */
.nav-header .sub-menu a,
.nav-header .sub-menu a:hover { color: #333 !important; }

/* ===== 分类页头：禁用左侧彩色线（避免与自带图标重叠） ===== */
.ht-categoryheader::before { display: none !important; }
