@charset "utf-8";
/**
 * 窄屏 / 移动端响应式（首页、列表页、详情页）
 * 断点：1200 → 992 → 768 → 480 → 375
 */

:root {
	--tpl-gutter: 16px;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* ========== 全局：版心留白、禁止横向溢出 ========== */
@media (max-width: 1200px) {
	.tpl-container,
	.wrapper .inner,
	#container .inner,
	.tpl-subpage-wrap .tpl-subpage-inner,
	#footer .inner {
		padding-left: var(--tpl-gutter);
		padding-right: var(--tpl-gutter);
		box-sizing: border-box;
	}

	body.tpl-subpage {
		min-width: 0;
		overflow-x: hidden;
	}

	body {
		overflow-x: hidden;
	}
}

/* ========== 顶栏 ========== */
@media (max-width: 992px) {
	.tpl-header {
		min-height: 0;
	}

	.tpl-header-inner {
		flex-wrap: wrap;
		align-items: center;
		min-height: 0;
		padding: 10px var(--tpl-gutter);
		gap: 12px;
	}

	.tpl-header-logo .sitelogo img,
	.tpl-header-logo .sitelogo .tpl-header-site-img {
		max-height: 56px;
		max-width: min(180px, 38vw);
	}

	.tpl-header-logo .sitelogo .tpl-header-site-title,
	.tpl-header-logo .sitelogo a .sitetitle {
		font-size: clamp(1.05rem, 4.2vw, 1.45rem);
		padding-left: 10px;
		margin-left: 8px;
	}

	.tpl-header-search {
		flex: 1 1 100%;
		max-width: none;
		width: 100%;
		order: 3;
	}

	.tpl-header-search input[type="text"],
	.tpl-header-search input.keyword,
	.tpl-header-search #keyword {
		width: 100%;
		flex: 1 1 auto;
		min-width: 0;
	}
}

@media (max-width: 480px) {
	.tpl-header-inner {
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.tpl-header-logo .sitelogo a {
		flex-wrap: wrap;
	}

	.tpl-header-logo .sitelogo .tpl-header-site-title,
	.tpl-header-logo .sitelogo a .sitetitle {
		border-left: 0;
		margin-left: 0;
		padding-left: 0;
		margin-top: 4px;
		width: 100%;
		font-size: 1.05rem;
		line-height: 1.35;
	}

	.tpl-header-search input[type="text"],
	.tpl-header-search input.keyword,
	.tpl-header-search #keyword {
		font-size: 16px;
		height: 40px;
		line-height: 40px;
	}

	.tpl-header-search input[type="submit"],
	.tpl-header-search input.search {
		width: 40px;
		height: 40px;
		min-width: 40px;
	}
}

/* ========== 主导航 ========== */
@media (max-width: 992px) {
	#wp_nav_w43 .wp_nav {
		flex-wrap: wrap;
		height: auto;
		min-height: 48px;
	}

	#wp_nav_w43 .wp_nav > li.nav-item {
		flex: 1 1 25%;
		min-width: 0;
		line-height: 48px;
	}

	#wp_nav_w43 .wp_nav > li.nav-item > a {
		font-size: 15px;
		letter-spacing: 0.02em;
	}

	#wp_nav_w43 .wp_nav > li.nav-item > a .item-name {
		line-height: 48px;
		height: 48px;
		padding: 0 6px;
	}
}

@media (max-width: 768px) {
	.tpl-nav {
		min-height: 0;
	}

	#wp_nav_w43 .wp_nav > li.nav-item {
		flex: 1 1 33.333%;
	}

	#wp_nav_w43 .wp_nav > li.nav-item > a {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	#wp_nav_w43 .wp_nav > li.nav-item {
		flex: 1 1 50%;
	}

	#wp_nav_w43 .wp_nav > li.nav-item > a {
		font-size: 13px;
		white-space: normal;
		text-overflow: clip;
		overflow: visible;
		line-height: 1.3;
	}

	#wp_nav_w43 .wp_nav > li.nav-item > a .item-name {
		line-height: 1.35;
		height: auto;
		min-height: 44px;
		padding: 8px 4px;
		display: flex;
		align-items: center;
		justify-content: center;
		white-space: normal;
		word-break: break-all;
	}
}

@media (max-width: 375px) {
	#wp_nav_w43 .wp_nav > li.nav-item {
		flex: 1 1 100%;
	}

	#wp_nav_w43 .wp_nav > li.nav-item > a .item-name {
		justify-content: flex-start;
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* 触屏：二级菜单改为静态展开（避免 hover 不可用） */
@media (max-width: 768px) and (hover: none) {
	#wp_nav_w43 .wp_nav > li.nav-item::after {
		display: none;
	}

	#wp_nav_w43 .wp_nav .sub-nav {
		position: static !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		box-shadow: none;
		display: none;
		width: 100% !important;
	}

	#wp_nav_w43 .wp_nav > li.nav-item.parent > .sub-nav,
	#wp_nav_w43 .wp_nav > li.nav-item.selected > .sub-nav {
		display: block;
	}

	#wp_nav_w43 .sub-nav .nav-item a {
		font-size: 13px !important;
		padding: 10px 8px !important;
	}
}

/* ========== 轮播 ========== */
@media (max-width: 768px) {
	.tpl-banner .focus-box img {
		min-height: 160px;
		object-fit: cover;
	}
}

/* ========== box1 ========== */
@media (max-width: 992px) {
	.tpl-box1 > .tpl-container {
		flex-direction: column;
		align-items: stretch;
	}

	.tpl-box1-news,
	.tpl-box1-trend {
		flex: none;
		width: 100%;
		max-width: none;
		padding-right: 0;
		padding-top: 0;
	}

	.tpl-box1-trend {
		margin-top: 16px;
	}

	.tpl-feature-pic {
		height: auto;
		min-height: 200px;
		max-height: 56vw;
	}

	.tpl-news-pager {
		top: calc(var(--box1-feature-img-h, 280px) / 2 + 20px);
	}
}

@media (max-width: 480px) {
	.tpl-feature-meta {
		flex-direction: column;
		gap: 10px;
	}

	.tpl-feature-date {
		flex: 0 0 auto;
		width: 64px;
		height: 64px;
	}

	.tpl-feature-title {
		font-size: 16px;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

/* ========== box4 ========== */
@media (max-width: 992px) {
	.tpl-box4 .tpl-container.tpl-box4-layout {
		flex-direction: column;
		align-items: stretch;
	}

	.tpl-box4-col {
		flex: none;
		width: 100%;
		max-width: none;
	}

	.tpl-box4-col + .tpl-box4-col {
		margin-top: 16px;
	}
}

/* ========== box2 ========== */
/* 中等宽度：标题通栏，下方仍保持左列表 + 右业务办理双栏 */
@media (max-width: 1200px) {
	.tpl-box2 .post.tpl-box2-notice-card > .tt,
	.tpl-box2 .post.tpl-post-notice.tpl-box2-notice-card > .tt {
		grid-column: 1 / -1 !important;
	}
}

@media (max-width: 992px) {
	.tpl-box2 .post.tpl-box2-notice-card,
	.tpl-box2 .post.tpl-post-notice.tpl-box2-notice-card {
		display: flex !important;
		flex-direction: column !important;
		gap: 16px;
	}

	.tpl-box2 .post.tpl-box2-notice-card > .tt,
	.tpl-box2 .post.tpl-box2-notice-card > .con,
	.tpl-box2 .post.tpl-box2-notice-card > .tpl-box2-system,
	.tpl-box2 .post.tpl-post-notice.tpl-box2-notice-card > .tt,
	.tpl-box2 .post.tpl-post-notice.tpl-box2-notice-card > .con,
	.tpl-box2 .post.tpl-post-notice.tpl-box2-notice-card > .tpl-box2-system {
		grid-column: unset !important;
		grid-row: unset !important;
		align-self: auto !important;
		width: 100%;
		max-width: none;
		flex: 0 0 auto;
		min-height: 0;
	}

	.tpl-box2 .post.tpl-box2-notice-card > .tt,
	.tpl-box2 .post.tpl-post-notice.tpl-box2-notice-card > .tt {
		order: 1;
	}

	.tpl-box2 .post.tpl-box2-notice-card > .tpl-box2-system,
	.tpl-box2 .post.tpl-post-notice.tpl-box2-notice-card > .tpl-box2-system {
		order: 2;
	}

	.tpl-box2 .post.tpl-box2-notice-card > .con,
	.tpl-box2 .post.tpl-post-notice.tpl-box2-notice-card > .con {
		order: 3;
		flex: 1 1 auto;
	}

	.tpl-box2-system-inner {
		min-height: 220px;
	}
}

/* ========== box3 ========== */
@media (max-width: 992px) {
	.tpl-box3-row {
		flex-direction: column;
	}

	.tpl-box3-party,
	.tpl-box3-service {
		flex: none;
		width: 100%;
		margin-top: 0 !important;
		min-height: 0;
	}

	.tpl-box3-service {
		margin-top: 16px;
	}
}

/* ========== 列表行：标题 + 日期 ========== */
@media (max-width: 480px) {
	.post:is(.tpl-post-duo-feed, .tpl-post-service, .tpl-box4-feed-duo, .tpl-box4-feed-service) .tpl-trend-list > li {
		flex-wrap: wrap;
		align-items: flex-start;
		row-gap: 4px;
	}

	.post:is(.tpl-post-duo-feed, .tpl-post-service, .tpl-box4-feed-duo, .tpl-box4-feed-service) .tpl-trend-list > li > a {
		flex: 1 1 calc(100% - 90px);
		min-width: 0;
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		line-height: 1.45;
	}

	.post:is(.tpl-post-duo-feed, .tpl-post-service, .tpl-box4-feed-duo, .tpl-box4-feed-service) .tpl-trend-list > li .news-time2 {
		flex: 0 0 auto;
		margin-right: 0;
		float: none;
		font-size: 12px;
		line-height: 1.45;
	}
}

@media (max-width: 375px) {
	:root {
		--tpl-gutter: 12px;
		--tpl-red-inner-pl: 18px;
		--tpl-red-inner-pr: 14px;
	}

	.post.tpl-post-trend .tpl-trend-list > li:not(:first-child) .tpl-trend-body {
		min-width: 0;
	}
}

/* ========== 页脚 ========== */
@media (max-width: 992px) {
	#footer {
		padding: 36px 0 28px;
	}

	.tpl-foot-message,
	.tpl-foot-links,
	.tpl-foot-dept {
		float: none;
		width: 100%;
		min-width: 0;
		margin-left: 0;
		margin-bottom: 24px;
	}

	.news_list.tpl-foot-link-list {
		grid-template-columns: 1fr;
		column-gap: 0;
	}

	.tpl-foot-links-title {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	#footer .inner p,
	#footer .tpl-foot-line {
		font-size: 13px;
		line-height: 1.65;
		padding-left: 22px;
	}

	.tpl-foot-logo {
		max-height: 48px;
	}
}

/* ========== 列表页 / 详情页 ========== */
@media (max-width: 992px) {
	.tpl-subpage-wrap .col_menu {
		width: 100%;
		float: none;
		margin-bottom: 16px;
	}

	.tpl-subpage-wrap .col_news {
		width: 100%;
		float: none;
		margin-bottom: 24px;
	}

	.col_news {
		width: 100% !important;
		float: none !important;
	}

	.tpl-subpage-wrap .col_metas .col_path {
		float: none;
		display: block;
		white-space: normal;
		margin-top: 8px;
		line-height: 1.5;
	}
}

@media (max-width: 768px) {
	.tpl-subpage-wrap .col_metas .col_title {
		float: none;
		display: block;
		width: 100%;
	}

	.tpl-subpage-wrap .col_metas .col_title h2 {
		font-size: 17px;
		padding-right: 0;
	}

	#container .col_news_list .titleLine {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	#container .col_news_list .news_date {
		margin-left: 14px;
		white-space: normal;
	}

	.tpl-subpage-wrap .article h1.arti_title {
		font-size: 18px;
		padding: 20px 16px 14px;
	}

	.tpl-subpage-wrap .article .arti_metas {
		padding: 12px 16px 16px;
	}

	.tpl-subpage-wrap .article .arti_metas span {
		display: inline-block;
		margin: 4px 8px;
	}

	.tpl-subpage-wrap .article .entry {
		padding: 16px 16px 8px;
	}
}

@media (max-width: 480px) {
	.tpl-subpage-wrap .col_list .wp_listcolumn > .wp_column > a {
		font-size: 16px;
		padding: 10px 0;
	}

	.tpl-subpage-wrap .col_list .wp_listcolumn .wp_subcolumn .wp_column a {
		font-size: 14px;
		padding: 12px 10px;
	}
}
