/* 76DC 全站移动端体验覆盖（不改主题大 CSS） */

/* 首页工具区（桌面默认） */
.dc-home-tools{
	margin:0 0 18px;
	padding:16px 16px 8px;
	border:1px solid #e3e9ef;
	border-radius:10px;
	background:linear-gradient(135deg,#f7fbff 0%,#fff 55%,#f4f7fa 100%);
}
.dc-home-tools-head{
	display:flex;
	justify-content:space-between;
	align-items:flex-end;
	gap:12px;
	flex-wrap:wrap;
	margin-bottom:12px;
}
.dc-home-tools-eyebrow{
	font-size:12px;
	color:#0b5fff;
	font-weight:700;
	letter-spacing:.04em;
}
.dc-home-tools-head h2{
	margin:4px 0 0;
	font-size:20px;
	line-height:1.3;
}
.dc-home-tools-head p{
	margin:6px 0 0;
	color:#667788;
	font-size:13px;
}
.dc-home-tools-more{
	font-size:13px;
	color:#0b5fff;
	text-decoration:none;
	font-weight:600;
}
.dc-home-tools-grid{
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
	gap:8px;
	margin-bottom:8px;
}
.dc-home-tools-grid a{
	display:block;
	padding:10px;
	border:1px solid #e3e9ef;
	border-radius:8px;
	background:#fff;
	text-decoration:none;
	color:#0f1b2d;
	font-size:13px;
	font-weight:600;
}
.dc-home-tools-grid a:hover{
	border-color:#9ec0ff;
	color:#0b5fff;
}

.dc-header-actions{
	display:none;
}
.dc-nav-lang{
	float:right;
	margin:18px 0 0 12px;
	font-size:13px;
}
.dc-nav-lang a{
	color:#334155;
	text-decoration:none;
}
.dc-nav-lang span{
	color:#94a3b8;
	margin:0 2px;
}

/* —— ≤959px：汉堡导航生效 —— */
@media only screen and (max-width:959px){
	/* 主题误写 #primary-nav，实际是 #nav.primary-navigation */
	#nav.primary-navigation,
	.primary-navigation{
		display:none !important;
	}
	#slick-mobile-menu,
	.js .slicknav_menu{
		display:block;
	}

	.site-header{
		position:sticky;
		top:0;
		z-index:1200;
		height:auto;
		min-height:56px;
		background:#fff;
	}
	#masthead .container.dc-header-bar{
		display:flex;
		align-items:center;
		gap:8px;
		min-height:56px;
		padding:0 10px;
		box-sizing:border-box;
		width:100%;
		max-width:100%;
	}
	.site-branding{
		float:none;
		flex:0 0 auto;
		max-width:42%;
	}
	.site-branding #logo{
		height:56px;
	}
	.site-branding img{
		max-height:36px;
		width:auto;
	}
	.dc-header-actions{
		display:flex;
		align-items:center;
		justify-content:flex-end;
		gap:2px;
		margin-left:auto;
		flex:0 0 auto;
	}
	.dc-nav-lang{
		float:none;
		margin:0;
		font-size:12px;
		line-height:1;
		padding:10px 6px;
		white-space:nowrap;
	}
	.dc-nav-lang a{
		padding:4px 2px;
	}
	.site-header .search-icon{
		display:flex !important;
		position:static;
		width:44px;
		height:44px;
		align-items:center;
		justify-content:center;
		right:auto;
		top:auto;
	}
	.site-header .search-icon span:before{
		font-size:20px;
	}
	.search-icon span span{
		display:none;
	}
	#slick-mobile-menu{
		width:auto;
		position:relative;
	}
	.slicknav_menu{
		width:auto;
		line-height:1;
		text-align:left;
		background:transparent;
	}
	.slicknav_btn{
		float:none;
		display:flex;
		align-items:center;
		justify-content:center;
		width:44px;
		height:44px;
		margin:0;
		padding:0;
	}
	.slicknav_menu .slicknav_menutxt{
		display:none;
	}
	.slicknav_menu .slicknav_icon{
		float:none;
		margin:0;
	}
	.slicknav_menu .slicknav_icon-bar{
		width:18px;
		height:2px;
		background-color:#1a2332;
		border-radius:1px;
	}
	.slicknav_nav{
		position:absolute;
		top:100%;
		right:0;
		left:auto;
		width:min(86vw,320px);
		margin-top:8px;
		border:1px solid #e6ebf0;
		border-top:3px solid #0b5fff;
		border-radius:10px;
		box-shadow:0 12px 32px rgba(15,27,45,.12);
		max-height:min(70vh,520px);
		overflow:auto;
		-webkit-overflow-scrolling:touch;
	}
	.slicknav_nav a{
		height:48px;
		line-height:48px;
		font-size:15px;
		text-transform:none;
		padding-left:16px;
		color:#0f1b2d;
	}
	.slicknav_nav .slicknav_arrow{
		margin-right:14px;
		line-height:48px;
	}

	/* 搜索面板：全宽贴顶 */
	.site-header .header-search{
		display:none;
		width:100%;
		max-width:100%;
		height:auto;
		left:0;
		right:0;
		top:100%;
		padding:10px;
		box-sizing:border-box;
		border-top:3px solid #0b5fff;
		box-shadow:0 10px 24px rgba(15,27,45,.1);
	}
	.header-search:after{
		top:18px;
		left:22px;
	}
	.header-search .search-input{
		position:static;
		width:100%;
		height:44px;
		padding:0 72px 0 40px;
		box-sizing:border-box;
		font-size:16px; /* 避免 iOS 自动放大 */
		border-radius:8px;
	}
	.header-search .search-submit{
		position:absolute;
		top:16px;
		right:16px;
		width:64px;
		height:40px;
		border-radius:8px;
	}

	.container{
		width:100% !important;
		max-width:100%;
		padding-left:12px;
		padding-right:12px;
		box-sizing:border-box;
	}
	.site-content{
		padding:8px 0 20px;
	}
	#primary,.right-col,#secondary{
		float:none;
		width:100% !important;
	}
	.content-list .hentry,
	.content-list .content-ad{
		padding:12px !important;
	}
	.content-list .entry-title{
		font-size:16px !important;
		line-height:1.4;
	}
	.single .site-main{
		padding:12px !important;
	}
	.single .entry-content{
		font-size:16px;
		line-height:1.75;
		overflow-wrap:anywhere;
	}
	.single .entry-content img{
		max-width:100%;
		height:auto;
	}
	.entry-related .hentry{
		width:100% !important;
		float:none !important;
		margin:0 0 14px !important;
	}
	#back-top{
		right:12px;
		bottom:18px;
		left:auto;
	}

	/* 首页工具区 */
	.dc-home-tools{
		margin:0 0 14px !important;
		padding:14px 12px 10px !important;
		border-radius:12px !important;
	}
	.dc-home-tools-head{
		display:flex;
		flex-direction:column;
		align-items:flex-start;
		gap:8px;
		margin-bottom:10px;
	}
	.dc-home-tools-head h2{
		font-size:18px !important;
	}
	.dc-home-tools-more{
		align-self:flex-start;
		min-height:40px;
		display:inline-flex;
		align-items:center;
		padding:0 2px;
	}
	.dc-home-tools-grid{
		display:grid !important;
		grid-template-columns:1fr 1fr !important;
		gap:8px !important;
	}
	.dc-home-tools-grid a{
		min-height:44px;
		display:flex !important;
		align-items:center;
		justify-content:center;
		text-align:center;
		padding:10px 8px !important;
		font-size:13px !important;
		border-radius:10px !important;
		box-sizing:border-box;
	}
}

@media only screen and (max-width:479px){
	.dc-home-tools-grid{
		grid-template-columns:1fr 1fr !important;
	}
	.site-branding img{
		max-height:32px;
	}
	.dc-nav-lang{
		padding:10px 4px;
		font-size:11px;
	}
}

/* 桌面 / 平板横屏：语言 +（可选）搜索图标 */
@media only screen and (min-width:960px){
	.dc-header-actions{
		float:right;
		display:flex;
		align-items:center;
		gap:4px;
	}
	.dc-header-actions #slick-mobile-menu{
		display:none !important;
	}
	.dc-nav-lang{
		float:none;
		margin:18px 8px 0 0;
	}
}
@media only screen and (min-width:960px) and (max-width:1179px){
	.dc-header-actions .search-icon{
		display:block !important;
		position:relative;
		top:auto;
		right:auto;
		margin-top:16px;
		width:28px;
		height:28px;
	}
}
@media only screen and (min-width:1180px){
	.dc-header-actions .search-icon{
		display:none !important;
	}
	.dc-nav-lang{
		margin-right:250px;
	}
}
