/* 首页与顶栏。主题色走后台写入的 --tb--main */

.header.hq-header {
	padding: 0;
	margin-bottom: 16px;
}

.header.hq-header .container {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 64px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.header.hq-header .logo {
	float: none;
	flex: 0 1 auto;
	max-width: 42%;
	margin: 0;
	position: static;
}

.header.hq-header .logo a {
	display: flex;
	align-items: center;
	gap: 8px;
	height: auto;
	color: var(--tb--main);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
}

.header.hq-header .logo img {
	height: 32px;
	width: auto;
}

.header.hq-header .logo img.-dark {
	display: none;
}

.darking .header.hq-header .logo img.-dark {
	display: block;
}

.darking .header.hq-header .logo:has(img.-dark) img:not(.-dark) {
	display: none;
}

.header.hq-header .hq-nav {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 18px;
	row-gap: 4px;
	margin: 0;
	font-size: 15px;
}

.header.hq-header .hq-nav > li {
	margin-left: 0;
}

.header.hq-header .m-icon-nav {
	display: none;
}

.nav-fixed .header.hq-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding: 0;
	z-index: 999;
}

.hq-front .content {
	background: transparent;
	padding: 0;
	min-height: 0;
}

.hq-block + .hq-block {
	margin-top: 16px;
}

.hq-block h2,
.hq-side h3 {
	margin: 0 0 12px;
	padding-left: 10px;
	border-left: 3px solid var(--tb--main);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.hq-block h2 small {
	margin-left: 6px;
	color: var(--tb--gray);
	font-size: 13px;
	font-weight: 400;
}

.hq-headlines ul {
	margin: 0;
	padding: 10px 16px;
	background: var(--tb--white);
}

.hq-headlines li {
	position: relative;
	padding: 5px 0 5px 14px;
	font-size: 16px;
	line-height: 1.5;
}

.hq-headlines li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--tb--base);
}

.hq-focus {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 8px;
	height: 420px;
}

.hq-focus.is-single {
	grid-template-columns: 1fr;
}

.hq-focus-left,
.hq-focus-right {
	display: grid;
	gap: 8px;
	min-height: 0;
	min-width: 0;
}

.hq-focus-item {
	position: relative;
	display: block;
	min-height: 0;
	overflow: hidden;
	background: var(--tb--dark);
}

.hq-focus-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hq-focus-item span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 12px 10px;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
	font-size: 14px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.hq-focus-left .hq-focus-item span {
	font-size: 18px;
}

.hq-brief {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 8px 14px;
	background: var(--tb--tint);
}

.hq-brief b {
	flex: 0 0 auto;
	color: var(--tb--main);
	font-size: 16px;
}

.hq-brief a {
	min-width: 0;
}

.hq-hot ul,
.hq-latest-list {
	margin: 0;
	padding: 0 4px;
	background: var(--tb--white);
}

.hq-hot ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 22px;
}

.hq-hot li,
.hq-latest-list li {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 12px 8px;
	border-bottom: 1px solid var(--tb--line);
}

.hq-latest-list li.no-thumb {
	grid-template-columns: 1fr;
}

.hq-hot img,
.hq-latest-thumb img {
	width: 120px;
	height: 80px;
	object-fit: cover;
	display: block;
}

.hq-hot h3,
.hq-latest-list h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.45;
}

.hq-hot time,
.hq-latest-list time {
	display: block;
	margin-top: 6px;
	color: var(--tb--gray);
	font-size: 12px;
}

.hq-front .sidebar .hq-side {
	margin-bottom: 14px;
	padding: 12px 14px 8px;
	background: var(--tb--white);
}

.hq-side h3 {
	font-size: 16px;
}

.hq-side h3 a:hover {
	color: var(--tb--main);
}

.hq-side-list {
	margin: 0;
	padding: 0;
}

.hq-side-list li {
	display: flex;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px solid var(--tb--line);
	font-size: 14px;
	line-height: 1.45;
}

.hq-side-list li span {
	flex: 0 0 auto;
	width: 1.2em;
	color: var(--tb--main);
	font-weight: 500;
}

.hq-side-plain {
	list-style: none;
}

.hq-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 6px;
}

.hq-tags a {
	padding: 2px 8px;
	background: var(--tb--bdbg);
	font-size: 13px;
	line-height: 1.6;
}

.hq-tags a:hover {
	color: #fff;
	background: var(--tb--main);
}

.hq-side-ad img {
	width: 100%;
	height: auto;
}

@media (max-width: 1024px) {
	.hq-front .content {
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	.hq-front .sidebar {
		display: block !important;
		float: none;
		width: auto;
		margin: 16px 0 0 !important;
		position: static;
	}
}

@media (max-width: 768px) {
	body {
		padding-top: 0;
	}

	.header.hq-header,
	.nav-fixed .header.hq-header {
		position: sticky;
		top: 0;
		height: auto;
		text-align: left;
		padding: 0;
	}

	.header.hq-header .container {
		min-height: 52px;
		padding-right: 48px;
	}

	.header.hq-header .logo {
		max-width: none;
	}

	.header.hq-header .logo a {
		font-size: 18px;
	}

	.header.hq-header .m-icon-nav {
		display: flex;
		position: absolute;
		top: 0;
		right: 4px;
		left: auto;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 52px;
		padding: 0;
		line-height: 1;
	}

	.hq-focus {
		grid-template-columns: 1fr;
		height: auto;
	}

	.hq-focus-item {
		height: 168px;
	}

	.hq-focus-left .hq-focus-item span {
		font-size: 16px;
	}

	.hq-hot ul {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.hq-hot li,
	.hq-latest-list li {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.hq-hot img,
	.hq-latest-thumb img {
		width: 96px;
		height: 68px;
	}

	.hq-focus-item {
		height: 150px;
	}
}
