/*
Theme Name: 金浩丰环保资讯 JHF Portal
Theme URI: https://www.jhf2017.com/
Author: jinhaofeng
Description: 报刊式环保资讯门户:朱雀仿宋报头、纸墨红三色、双细线分栏、印章点缀;内置金浩丰旗下业务网站总览。
Version: 1.0.0
Requires PHP: 7.4
Text Domain: jhf-portal
*/

:root {
	--paper: #f6f2e9;
	--paper-2: #eee8d9;
	--card: #fbf9f3;
	--ink: #1b1813;
	--ink-2: #575044;
	--ink-3: #8a8272;
	--red: #b02e1f;
	--red-d: #8c2216;
	--line: #d9d1bf;
	--rule: #201c15;
	--fz: "ZhuqueFangsong", "FangSong", "STFangsong", "Songti SC", "STSong", "SimSun", serif;
	--fs: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
	--fu: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--fu);
	font-size: 15px;
	line-height: 1.8;
	color: var(--ink);
	background: var(--paper);
	background-image: repeating-linear-gradient(0deg, rgba(27, 24, 19, .015) 0 1px, transparent 1px 3px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.shell { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

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

/* ============ 顶条 ============ */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-in {
	display: flex; justify-content: space-between; align-items: center;
	min-height: 34px; font-size: 12px; color: var(--ink-3); letter-spacing: .04em;
}
.topbar-in a { color: var(--ink-2); }
.topbar-in a:hover { color: var(--red); }
.topbar-tel b { color: var(--red); font-weight: 700; letter-spacing: .02em; }

/* ============ 报头 ============ */
.masthead { position: relative; text-align: center; padding: 34px 0 22px; }
.masthead-brand {
	font-family: var(--fz);
	font-size: clamp(42px, 7vw, 82px);
	font-weight: 400;
	letter-spacing: .1em;
	line-height: 1.15;
	color: var(--ink);
}
.masthead-brand a:hover { color: var(--ink); }
.masthead-brand .red { color: var(--red); }
.masthead-sub {
	margin-top: 6px;
	font-size: 12px; letter-spacing: .42em; text-indent: .42em;
	color: var(--ink-3); text-transform: uppercase;
}
.masthead-date {
	margin-top: 14px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
	font-size: 12.5px; color: var(--ink-2); letter-spacing: .06em;
}
.masthead-date span + span { border-left: 1px solid var(--line); padding-left: 18px; }
.masthead-seal {
	position: absolute; right: 24px; top: 38px;
	width: 46px; padding: 10px 0;
	background: var(--red); color: #fff;
	font-family: var(--fz); font-size: 17px; line-height: 1.25;
	writing-mode: vertical-rl; letter-spacing: .18em;
	text-align: center;
	box-shadow: 2px 2px 0 rgba(27, 24, 19, .18);
}
.masthead-org {
	position: absolute; left: 24px; top: 44px; text-align: left;
	font-size: 12px; color: var(--ink-3); line-height: 2;
	border-left: 3px solid var(--red); padding-left: 10px;
}
.masthead-org b { display: block; color: var(--ink-2); font-weight: 600; letter-spacing: .08em; }

/* ============ 栏目导航:上粗下细双墨线 ============ */
.colnav { border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 60; }
.colnav::after { content: ""; display: block; height: 1px; background: transparent; }
.colnav-in { display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.colnav-in::-webkit-scrollbar { display: none; }
.colnav-in a {
	font-family: var(--fz); font-size: 17px; letter-spacing: .12em;
	padding: 11px 22px; white-space: nowrap; position: relative; color: var(--ink);
}
.colnav-in a + a::before {
	content: ""; position: absolute; left: 0; top: 13px; bottom: 13px;
	width: 1px; background: var(--line);
}
.colnav-in a:hover { color: var(--red); }
.colnav-in a.on { background: var(--red); color: #fff; }
.colnav-in a.on::before { display: none; }
.colnav-in a.on + a::before { display: none; }

/* ============ 版块标题 ============ */
.sect { margin-top: 46px; }
.sect-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.sect-num {
	font-family: var(--fz); font-size: 15px; color: #fff; background: var(--red);
	padding: 1px 8px 2px; letter-spacing: .1em; align-self: center;
}
.sect-title { font-family: var(--fz); font-size: clamp(22px, 3vw, 30px); letter-spacing: .1em; font-weight: 400; }
.sect-desc { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
.sect-more { margin-left: auto; font-size: 13px; color: var(--red); white-space: nowrap; }
.sect-more:hover { color: var(--red-d); }

/* ============ 简报区(有文章时) ============ */
.brief { margin-top: 40px; }
.brief-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; border: 1px solid var(--rule); background: var(--card); }
.brief-lead { padding: 30px 34px; border-right: 1px solid var(--line); }
.brief-lead .cat { color: var(--red); font-size: 12.5px; letter-spacing: .2em; }
.brief-lead h2 { font-family: var(--fz); font-size: clamp(24px, 3.4vw, 38px); line-height: 1.4; margin: 10px 0 14px; font-weight: 400; }
.brief-lead h2 a:hover { color: var(--red); }
.brief-lead p { color: var(--ink-2); font-size: 14.5px; }
.brief-lead time { display: block; margin-top: 16px; font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; }
.brief-list { display: flex; flex-direction: column; }
.brief-list li { padding: 16px 24px; border-bottom: 1px solid var(--line); }
.brief-list li:last-child { border-bottom: 0; }
.brief-list .t { font-family: var(--fz); font-size: 17px; line-height: 1.5; display: block; }
.brief-list .t:hover { color: var(--red); }
.brief-list .m { font-size: 12px; color: var(--ink-3); margin-top: 4px; letter-spacing: .05em; }
.brief-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 26px; }
.brief-cat { border-top: 3px solid var(--rule); padding-top: 12px; }
.brief-cat h3 { font-family: var(--fz); font-size: 19px; letter-spacing: .12em; font-weight: 400; }
.brief-cat h3 a:hover { color: var(--red); }
.brief-cat li { border-bottom: 1px dashed var(--line); }
.brief-cat li a { display: flex; gap: 10px; padding: 9px 0; font-size: 14px; color: var(--ink-2); }
.brief-cat li a:hover { color: var(--red); }
.brief-cat li a::before { content: "▪"; color: var(--red); font-size: 10px; line-height: 2.1; }

/* ============ 站点总览 ============ */
.showcase-intro { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.showcase-intro p { color: var(--ink-2); font-size: 14px; }
.showcase-stats { display: flex; gap: 26px; margin-left: auto; }
.showcase-stats div { text-align: center; }
.showcase-stats b { font-family: var(--fz); font-size: 30px; color: var(--red); display: block; line-height: 1.2; }
.showcase-stats span { font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }

.sitegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 22px; }
.sitegrid.en { grid-template-columns: repeat(5, 1fr); }
.scard {
	background: var(--card); border: 1px solid var(--rule);
	display: flex; flex-direction: column; position: relative;
	transition: transform .16s ease, box-shadow .16s ease;
}
.scard:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--rule); }
.scard-shot { position: relative; border-bottom: 1px solid var(--rule); background: var(--paper-2); aspect-ratio: 8 / 5; overflow: hidden; }
.scard-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.scard-shot .noshot {
	display: flex; align-items: center; justify-content: center; height: 100%;
	font-family: var(--fz); font-size: 26px; color: var(--ink-3); letter-spacing: .2em;
}
.scard-lang {
	position: absolute; top: 0; left: 0; z-index: 2;
	background: var(--rule); color: var(--paper); font-size: 11px; letter-spacing: .08em;
	padding: 2px 8px; font-family: var(--fu);
}
.scard-lang.en { background: var(--red); color: #fff; }
.scard-body { padding: 14px 16px 12px; flex: 1; }
.scard-body h4 { font-family: var(--fz); font-size: 18px; font-weight: 400; letter-spacing: .04em; line-height: 1.4; }
.scard-body p { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.7; }
.scard-foot {
	display: flex; justify-content: space-between; align-items: center;
	border-top: 1px dashed var(--line); margin: 0 16px; padding: 9px 0 11px;
	font-size: 12px; color: var(--ink-3);
}
.scard-foot .dom { letter-spacing: .02em; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 11px; }
.scard-foot .go { color: var(--red); font-weight: 600; letter-spacing: .06em; }
.scard a.cover { position: absolute; inset: 0; z-index: 3; }
.scard:hover .go { color: var(--red-d); }

/* ============ 数字带 ============ */
.tally {
	margin-top: 52px; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule);
	background: var(--paper-2);
}
.tally-in { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.tally-in > div { padding: 26px 10px; border-left: 1px solid var(--line); }
.tally-in > div:first-child { border-left: 0; }
.tally-in b { font-family: var(--fz); font-size: 40px; color: var(--ink); display: block; line-height: 1.2; }
.tally-in b i { font-style: normal; color: var(--red); }
.tally-in span { font-size: 12.5px; color: var(--ink-2); letter-spacing: .14em; }

/* ============ 关于 / 联系 ============ */
.aboutrow { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.aboutrow .lead { font-size: 15px; color: var(--ink-2); line-height: 2.05; text-align: justify; }
.aboutrow .lead b { color: var(--ink); }
.contact-card { border: 1px solid var(--rule); background: var(--card); padding: 24px 26px; }
.contact-card h4 { font-family: var(--fz); font-size: 20px; font-weight: 400; letter-spacing: .1em; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.contact-card ul { margin-top: 12px; }
.contact-card li { display: flex; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--ink-2); }
.contact-card li b { color: var(--ink); min-width: 64px; font-weight: 600; }
.contact-card li a:hover { color: var(--red); }
.contact-card .telbig { font-family: var(--fz); font-size: 26px; color: var(--red); letter-spacing: .04em; }

/* ============ 页脚 ============ */
.sitefoot { margin-top: 60px; background: #211d16; color: #cfc7b4; }
.sitefoot a:hover { color: #fff; }
.sitefoot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 44px 0 34px; }
.sitefoot h5 { font-family: var(--fz); font-size: 24px; font-weight: 400; color: #f3eee1; letter-spacing: .12em; }
.sitefoot .fsub { font-size: 12px; letter-spacing: .3em; color: #8d8471; margin-top: 6px; text-transform: uppercase; }
.sitefoot p { font-size: 13px; margin-top: 14px; line-height: 2; color: #a89f8a; }
.sitefoot h6 { font-size: 14px; color: #f3eee1; font-weight: 600; letter-spacing: .14em; margin-bottom: 10px; }
.sitefoot li { padding: 4px 0; font-size: 13.5px; }
.sitefoot li a::before { content: "· "; color: var(--red); }
.sitefoot-bar { border-top: 1px solid #3a3428; }
.sitefoot-bar .shell { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 16px; padding-bottom: 18px; font-size: 12px; color: #8d8471; }

/* ============ 内页通用 ============ */
.pagehead { border-bottom: 1px solid var(--rule); padding: 40px 0 18px; }
.pagehead .crumb { font-size: 12.5px; color: var(--ink-3); letter-spacing: .08em; }
.pagehead .crumb a:hover { color: var(--red); }
.pagehead h1 { font-family: var(--fz); font-size: clamp(28px, 4.4vw, 44px); font-weight: 400; letter-spacing: .1em; margin-top: 8px; }
.pagehead .sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.main-narrow { max-width: 860px; margin: 0 auto; padding: 0 22px; }

/* 列表 */
.newslist { margin-top: 10px; }
.newslist li { border-bottom: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 26px; }
.newslist .t { font-family: var(--fz); font-size: 22px; line-height: 1.5; grid-column: 1; }
.newslist .t:hover { color: var(--red); }
.newslist time { grid-column: 2; grid-row: 1; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; align-self: center; letter-spacing: .05em; }
.newslist .x { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; }
.newslist .c { grid-column: 1 / -1; font-size: 12px; color: var(--red); letter-spacing: .15em; }
.emptybox { border: 1px dashed var(--line); background: var(--card); text-align: center; padding: 70px 20px; margin: 40px 0; }
.emptybox .z { font-family: var(--fz); font-size: 24px; color: var(--ink-2); letter-spacing: .16em; }
.emptybox p { color: var(--ink-3); font-size: 13.5px; margin-top: 10px; }
.emptybox a { color: var(--red); }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin: 36px 0 10px; }
.pager .page-numbers {
	border: 1px solid var(--rule); padding: 6px 14px; font-size: 13.5px; background: var(--card);
}
.pager .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.pager a.page-numbers:hover { background: var(--paper-2); }

/* 文章页 */
.article { background: var(--card); border: 1px solid var(--rule); margin-top: 36px; padding: clamp(24px, 5vw, 56px); }
.article-head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.article-head .cat a { color: var(--red); font-size: 13px; letter-spacing: .25em; }
.article-head h1 { font-family: var(--fz); font-size: clamp(26px, 4vw, 40px); font-weight: 400; line-height: 1.5; margin: 12px 0; }
.article-head .meta { font-size: 12.5px; color: var(--ink-3); letter-spacing: .08em; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.article-body { margin-top: 28px; font-size: 15.5px; line-height: 2.1; color: #2b2721; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 { font-family: var(--fz); font-size: 24px; font-weight: 400; border-left: 4px solid var(--red); padding-left: 14px; margin: 1.6em 0 .8em; letter-spacing: .06em; }
.article-body h3 { font-family: var(--fz); font-size: 20px; font-weight: 400; margin: 1.4em 0 .7em; }
.article-body a { color: var(--red); border-bottom: 1px solid rgba(176, 46, 31, .35); }
.article-body img { margin: 1.4em auto; border: 1px solid var(--line); }
.article-body blockquote { background: var(--paper-2); border-left: 4px solid var(--rule); padding: 16px 22px; margin: 1.4em 0; color: var(--ink-2); }
.article-body ul, .article-body ol { margin: 0 0 1.15em; padding-left: 1.6em; }
.article-body ul { list-style: square; }
.article-body ol { list-style: decimal; }
.article-body table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; }
.article-body th { background: var(--paper-2); font-family: var(--fz); font-weight: 400; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; font-size: 13.5px; }
.article-nav a { color: var(--ink-2); max-width: 46%; }
.article-nav a:hover { color: var(--red); }

/* 相关站点条 */
.xpromo { margin-top: 46px; }
.xpromo .sitegrid { grid-template-columns: repeat(3, 1fr); }

/* 通用页面(关于/联系) */
.plainpage { max-width: 860px; margin: 0 auto; }
.plainpage .article-body { background: var(--card); border: 1px solid var(--rule); padding: clamp(24px, 5vw, 48px); margin-top: 36px; }

/* 404 */
.notfound { text-align: center; padding: 90px 0 40px; }
.notfound .code { font-family: var(--fz); font-size: 110px; color: var(--red); line-height: 1; }
.notfound p { color: var(--ink-2); margin-top: 14px; }
.notfound .back { display: inline-block; margin-top: 26px; border: 1px solid var(--rule); background: var(--card); padding: 10px 30px; font-family: var(--fz); font-size: 16px; letter-spacing: .2em; }
.notfound .back:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* 搜索框(报头右上不放,置于导航下方页面里) */
.searchbar { display: flex; max-width: 460px; margin: 26px auto 0; border: 1px solid var(--rule); background: var(--card); }
.searchbar input[type="search"] {
	flex: 1; border: 0; background: transparent; padding: 10px 14px;
	font-family: var(--fu); font-size: 14px; color: var(--ink); outline: none;
}
.searchbar button {
	border: 0; background: var(--red); color: #fff; padding: 0 22px;
	font-family: var(--fz); font-size: 15px; letter-spacing: .2em; cursor: pointer;
}
.searchbar button:hover { background: var(--red-d); }

/* ============ 悬浮联系件 ============ */
.floatkit { position: fixed; right: 18px; bottom: 90px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fk-btn {
	width: 52px; height: 52px; border: 1px solid var(--rule); background: var(--card);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	font-size: 11px; color: var(--ink-2); cursor: pointer; position: relative;
	box-shadow: 3px 3px 0 rgba(27, 24, 19, .12); transition: .15s;
}
.fk-btn svg { width: 20px; height: 20px; margin-bottom: 2px; fill: var(--red); }
.fk-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.fk-btn:hover svg { fill: #fff; }
.fk-pop {
	position: absolute; right: 62px; top: 50%; transform: translateY(-50%);
	background: var(--rule); color: var(--paper); font-size: 13px; white-space: nowrap;
	padding: 9px 14px; display: none; letter-spacing: .05em;
}
.fk-pop::after { content: ""; position: absolute; right: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-right: 0; border-left-color: var(--rule); }
.fk-btn:hover .fk-pop, .fk-btn.show .fk-pop { display: block; }
.mobilebar { display: none; }

/* ============ 响应式 ============ */
@media (max-width: 1020px) {
	.sitegrid, .sitegrid.en { grid-template-columns: repeat(3, 1fr); }
	.masthead-org { display: none; }
	.tally-in { grid-template-columns: repeat(2, 1fr); }
	.tally-in > div:nth-child(3) { border-left: 0; }
	.tally-in > div { border-top: 1px solid var(--line); }
	.tally-in > div:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 760px) {
	body { font-size: 14.5px; }
	.brief-grid { grid-template-columns: 1fr; }
	.brief-lead { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 22px; }
	.sitegrid, .sitegrid.en, .xpromo .sitegrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.scard-body { padding: 11px 12px 9px; }
	.scard-body h4 { font-size: 16px; }
	.scard-body p { font-size: 12px; }
	.scard-foot { margin: 0 12px; }
	.scard-foot .dom { display: none; }
	.masthead { padding-top: 24px; }
	.masthead-seal { right: 12px; top: 20px; width: 38px; font-size: 14px; padding: 8px 0; }
	.colnav-in { justify-content: flex-start; }
	.colnav-in a { font-size: 15.5px; padding: 10px 15px; }
	.sect-desc { display: none; }
	.aboutrow { grid-template-columns: 1fr; gap: 24px; }
	.sitefoot-in { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 26px; }
	.showcase-stats { margin-left: 0; }
	.newslist li { grid-template-columns: 1fr; }
	.newslist time { grid-column: 1; grid-row: auto; }
	.newslist .t { font-size: 19px; }
	.floatkit { display: none; }
	.mobilebar {
		display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
		border-top: 1px solid var(--rule); background: var(--card);
	}
	.mobilebar a, .mobilebar button {
		display: flex; align-items: center; justify-content: center; gap: 8px;
		padding: 13px 0 calc(13px + env(safe-area-inset-bottom, 0px));
		font-family: var(--fz); font-size: 16px; letter-spacing: .15em;
		border: 0; background: transparent; color: var(--ink); cursor: pointer;
	}
	.mobilebar a.tel { background: var(--red); color: #fff; }
	.mobilebar svg { width: 17px; height: 17px; fill: currentColor; }
	body { padding-bottom: 54px; }
}
@media (max-width: 600px) {
	.masthead-seal { display: none; }
}
@media (max-width: 480px) {
	.sitegrid, .sitegrid.en { grid-template-columns: 1fr 1fr; }
	.masthead-brand { letter-spacing: .05em; }
	.brief-cats { grid-template-columns: 1fr; }
}
