/* Telink 全站移动端适配（telink_v2 / telink 共用，由 common/header.php 引入） */
/* 断点：900px 以下进入平板/手机布局，600px 以下为手机 */

/* ========== 汉堡菜单按钮（默认仅移动端显示） ========== */
.dz_mobile_btn{display:none;width:38px;height:38px;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:8px;background:none;border:0;cursor:pointer;padding:0;margin-left:8px;}
.dz_mobile_btn i{display:block;width:20px;height:2px;background:var(--dz-fa,#333);border-radius:2px;transition:transform .25s ease,opacity .25s ease;}
#dz_btm_layer.open .dz_mobile_btn i:nth-child(1){transform:translateY(7px) rotate(45deg);}
#dz_btm_layer.open .dz_mobile_btn i:nth-child(2){opacity:0;}
#dz_btm_layer.open .dz_mobile_btn i:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ========== 900px 以下（平板 / 手机） ========== */
@media screen and (max-width:900px){

	/* ---- 顶部导航 ---- */
	.dz_btm_layer{min-width:0 !important;width:100% !important;height:auto;padding:0 12px;box-sizing:border-box;}
	.dz_nav{height:56px;position:relative;flex-wrap:nowrap;}
	.dz_nav .dz_nav_logo{height:56px;margin-right:0;}
	.dz_nav .dz_nav_logo img{width:auto;height:28px;}
	.dz_layer_dl{float:none;margin-left:auto;}
	.dz_mobile_btn{display:flex;}
	/* 隐藏非必要的头部右侧元素 */
	.header-searcher,.header-i18n,.header-client{display:none !important;}
	.header-notice{display:none !important;}
	.header-right{height:56px;}

	/* 折叠导航 */
	.dz_layer_nav{float:none;display:none;position:absolute;top:56px;left:-12px;right:-12px;width:auto;height:auto;max-height:calc(100vh - 56px);overflow-y:auto;background:var(--dz-bgf,#fff);box-shadow:0 12px 28px rgba(0,0,0,.12);z-index:300;}
	#dz_btm_layer.open .dz_layer_nav{display:block;}
	.dz_layer_nav ul{display:flex;flex-direction:column;padding:6px 0;}
	.dz_layer_nav ul li{float:none;width:100%;}
	.dz_layer_nav ul li a{display:block;height:44px;line-height:44px;text-align:left;padding:0 18px;margin-right:0;font-size:15px;border-bottom:1px solid var(--dz-borderb,#f0f0f0);}
	.dz_layer_nav ul li:last-child a{border-bottom:0;}
	.dz_layer_nav ul li a:before,.dz_layer_nav ul li a:after{display:none;}

	/* ---- 页面容器 ---- */
	body{min-width:0 !important;}
	.wp,#wp{width:auto !important;min-width:0 !important;max-width:100% !important;box-sizing:border-box;}
	#wp{padding:0 12px;}

	/* ---- 页脚 ---- */
	.dz_footc_nav{margin-right:0;padding:12px 12px;height:auto;line-height:24px;}
	.dz_footc_nav a{float:none;display:inline-block;margin-right:12px;}
	.dz_footc_nav .pipe{float:none;}
	.dz_footc_copy{padding:8px 12px 20px;font-size:12px;}
	.dz_footc_dico{float:none;padding:14px 12px 0;text-align:center;}
	.dz_footc_dico .ewmimg{float:none;display:inline-block;}

	/* ---- 右侧悬浮导航隐藏 ---- */
	.dz_rnav{display:none !important;}

	/* ---- 论坛版块列表 ---- */
	.forumportal_listc li.kmlist{flex-wrap:wrap;padding:10px 0;}
	.forumportal_listc .kmtitle{width:100%;}
	.forumportal_listc .kmtit{height:auto;line-height:1.5;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
	.forumportal_listc .kmmeta{width:100%;margin-top:6px;}
	.forumportal_listc .kmcol{float:left;}
	.forumportal_listc .kmcol_author,.forumportal_listc .kmcol_last{display:none !important;}
	.forumportal_listc .kmcol_stats{min-width:0;}
	.forumportal_listc .kmfoot{margin-top:6px;}
	.forumportal_listc li .kmimg_onebox{min-width:0;max-width:100%;margin-left:0;}

	/* ---- 论坛首页版块 ---- */
	.forumportal_lista li,.forumportal_listb li{min-width:0;}
	.forumportal_listb li .kmimg_onebox{min-width:0;max-width:100%;margin-left:0;}

	/* ---- 帖子详情 ---- */
	#postlist .posthead td.pls{display:none;}
	#postlist .posthead td.plc{width:auto !important;}
	.vwthd{padding:12px !important;}
	.vwthd h1.ts{font-size:20px;line-height:1.4;}
	.vwthd .y{display:none !important;}
	#postlist table.plhin td.pls{display:none;}
	#postlist table.plhin td.plc{width:100% !important;padding:10px !important;}
	.pct{width:auto !important;padding:12px !important;}
	.pi{padding:8px 0 !important;}
	.pcb{margin-left:0 !important;overflow:hidden;}

	/* ---- 快速回复 / 发帖 ---- */
	#f_pst{padding:10px !important;}
	#fastpostmessage{min-height:80px;}
	.pbt{margin-bottom:8px;}
	.tedt{margin:0 !important;}

	/* ---- 分页 ---- */
	.rfm{width:100% !important;max-width:100% !important;}
	.rfm table{width:100% !important;max-width:100% !important;}
	.rfm td{white-space:normal !important;}
	.pg{float:none;text-align:center;margin:8px auto;}
	.pg a,.pg strong,.pgb a{display:inline-block;min-width:14px;height:28px;line-height:28px;padding:0 8px;margin-left:4px;}
	.pgs{text-align:center;overflow:hidden;}
	#pgt.pgs{clear:both !important;float:none !important;width:100% !important;max-width:100%;margin-left:0 !important;margin-right:0 !important;}
	.pgs .pgb{float:none;display:inline-block;margin:4px 6px;}
	.pgsbtn{display:inline-block;white-space:nowrap;margin:4px 6px;padding:8px 16px;}
	.pgs #newspecial,.pgs #newspecialtmp,.pgs #post_reply,.pgs #post_replytmp{float:none !important;margin:4px 6px !important;}

	/* ---- 社区门户 ---- */
	.community-wrap{padding:12px 12px 8px;}
	.cm-notice{padding:8px 12px;font-size:13px;}
	.cm-banner-slide img{height:200px;}
	.cm-banner-text{left:20px;bottom:24px;}
	.cm-banner-text h2{font-size:24px;margin-bottom:4px;}
	.cm-banner-text p{font-size:14px;}
	.cm-section{padding:14px;margin-bottom:18px;}
	.cm-section-head{padding-bottom:10px;margin-bottom:12px;}
	.cm-section-head h3{font-size:16px;}
	.cm-cards{gap:10px;}
	.cm-wide{min-height:0;padding:12px;gap:10px;}
	.cm-wide-ico{width:44px;height:44px;flex:0 0 44px;}
	.cm-wide-name{font-size:15px;}
	.cm-split{gap:14px;margin-bottom:18px;}
	.cm-act-mini-title{font-size:15px;}
	.cm-two-col{gap:0;}
	.cm-stats{gap:8px;}
	.cm-stat b{font-size:22px;}
	.cm-stat span{font-size:12px;}
	.cm-blog-item{flex-direction:column;gap:10px;}
	.cm-blog-thumb{flex:0 0 auto;width:100%;height:auto;aspect-ratio:16/9;}
	.cm-blog-thumb img{height:100%;}
	.cm-article-title{font-size:22px;}
	.cm-article-content{font-size:15px;line-height:1.8;}
	.cm-videos{gap:12px;}
	.cm-inline{flex-direction:column;align-items:stretch;gap:8px;}
	.cm-form-row label{font-size:13px;}
	.cm-form-actions{flex-wrap:wrap;}
}

/* ========== 600px 以下（手机） ========== */
@media screen and (max-width:600px){
	.cm-cards{grid-template-columns:repeat(2,1fr);}
	.cm-split-side{width:100%;}
	.cm-stats{gap:4px;}
	.cm-stat b{font-size:17px;}
	.cm-stat span{font-size:11px;}
	.cm-section-head{flex-wrap:wrap;gap:6px;}
	.cm-more{margin-left:0;}
	.cm-banner-slide img{height:150px;}
	.cm-banner-text{display:none;}
	.cm-banner-dots{bottom:8px;}
	.cm-blog-grid{grid-template-columns:1fr;}
	.cm-videos{grid-template-columns:repeat(2,1fr);gap:10px;}
	.cm-video-title{font-size:13px;}
	/* 帖子正文图片自适应 */
	.pcb img,.pct img{max-width:100% !important;height:auto !important;}
	.dz_layer_nav ul li a{padding:0 14px;font-size:14px;}
}
