/* 大千社区 全站统一样式 v1 */
*{box-sizing:border-box}
body{background:#f6f7f9;color:#333}
body,#wp,.wp{font-family:"Microsoft YaHei","PingFang SC",Tahoma,Arial,sans-serif}
a{color:#333}
a:hover{color:#307ED7}

/* ---- 隐藏 Discuz 默认头部/底部 ---- */
#toptb,#hd,#nv,#ft,#qmenu_menu{display:none!important}

/* ---- 自定义头部 ---- */
.dq-inner{width:1150px;margin:0 auto}
.dq-top{height:36px;background:#fff;border-bottom:1px solid #eee;color:#888;font-size:12px}
.dq-top .dq-inner{height:36px;display:flex;align-items:center;justify-content:space-between}
.dq-top a{color:#666}
.dq-top a:hover{color:#307ED7}
.dq-tright{display:flex;align-items:center}
.dq-sp{margin:0 8px;color:#ddd}
.dq-social{display:flex;align-items:center;gap:6px;margin-left:10px}
.dq-ico{width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff!important}
.dq-ico:hover{opacity:.85}
.dq-wb{background:#e6162d}
.dq-wc{background:#1aad19}
.dq-qq{background:#12b7f5}
.dq-wx{position:relative;color:#666;cursor:default}
.dq-qr{position:absolute;top:24px;left:50%;transform:translateX(-50%);background:#222;color:#fff;font-style:normal;font-size:12px;line-height:1.6;padding:6px 10px;border-radius:3px;white-space:nowrap;opacity:0;visibility:hidden;transition:all .15s;z-index:999}
.dq-wx:hover .dq-qr{opacity:1;visibility:visible}
.dq-head{background:#fff}
.dq-head .dq-inner{height:92px;display:flex;align-items:center;gap:28px}
.dq-logo img{height:72px;width:72px;display:block}
.dq-search{flex:1;max-width:560px;height:42px;display:flex;border:2px solid #307ED7;border-radius:4px;overflow:hidden;background:#fff}
.dq-search input[type=text]{flex:1;border:0;padding:0 14px;font-size:14px;outline:none;color:#333;background:#fff;min-width:0}
.dq-search button{width:56px;border:0;background:#307ED7;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.dq-search button:hover{background:#1d6ec4}
.dq-hright{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:13px;color:#666}
.dq-has-ico{display:inline-flex;align-items:center;gap:5px}
.dq-post{display:inline-block;height:34px;line-height:34px;padding:0 18px;background:#e85d4c;color:#fff!important;border-radius:3px}
.dq-post:hover{background:#d94f3f;color:#fff!important}
.dq-nav{background:#307ED7}
.dq-nav .dq-inner{height:46px;display:flex;align-items:center}
.dq-nav a{color:#fff;padding:0 17px;line-height:46px;font-size:16px;position:relative;white-space:nowrap}
.dq-nav a.on,.dq-nav a:hover{background:#1d6ec4;color:#fff}
.dq-badge{position:absolute;top:7px;right:1px;font-style:normal;font-size:9px;line-height:1;padding:2px 3px;border-radius:2px;color:#fff;background:#e85d4c}
.dq-badge-hot{background:#f0a202}
.dq-nav .dq-app{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:0 14px;font-size:14px}

/* ---- 页脚 ---- */
.dq-foot{background:#fff;border-top:1px solid #eee;margin-top:24px;padding:22px 0 26px;color:#888;text-align:center;font-size:13px}
.dq-flinks a{color:#666;margin:0 8px}
.dq-flinks span{color:#ddd}
.dq-copy{margin:10px 0 0}
.dq-dim{color:#bbb;font-size:12px}

/* ---- 中间区域宽度/布局 ---- */
.wp{width:1150px!important;min-width:0!important;margin:0 auto}
#wp{padding-top:12px}
#pt{padding:0 0 10px;color:#999;font-size:13px;background:none;border:0;height:auto;line-height:1.8}
#pt a{color:#666}
#pt em{padding:0 4px}
#ct{overflow:hidden}
#ct .mn{float:left!important;width:100%!important;margin:0!important;padding:0!important}
#ct:has(.sd) .mn{width:calc(100% - 286px)!important}
#ct .sd{float:right!important;width:270px!important;margin:0!important;padding:0!important}
#ct .mn .bm:last-child{margin-bottom:0}

/* ---- 卡片化 ---- */
#wp .bm{background:#fff;border:1px solid #eee;border-radius:2px;margin:0 0 12px;box-shadow:none}
#wp .bm_h{background:#fafbfc;border-bottom:1px solid #eee;color:#333;height:44px;line-height:44px;padding:0 14px}
#wp .bm_h h2,#wp .bm_h h3{font-size:16px;font-weight:700;color:#333}
#wp .bm_c{background:#fff}
#wp .bm_c .bm_c{background:transparent}
#wp .datatable th{background:#fafafa;color:#777;font-weight:400}
#wp .datatable td{border-bottom:1px solid #f5f5f5}
#wp .datatable tr:hover td{background:#fbfdff}

/* ---- 帖子阅读页 ---- */
#postlist .pl,#postlist .plc,#postlist .pls{background:#fff}
#postlist .t_f{font-size:15px;line-height:1.9;color:#333}
#postlist .pi{color:#999}
/* X5 renders the author name and the 发表于 line inside .pi, but the stock
   style still caps .pi at 16px with overflow:hidden, so the post time and the
   author name get cut in half. Keep the box a BFC (it holds floats) but let it
   grow to its content. */
#postlist .pi,.pl .pi{height:auto;overflow:hidden;min-height:16px;line-height:1.6}
#postlist .pti{overflow:hidden}
.pg_viewthread #ct .mn{background:#fff;border:1px solid #eee;border-radius:2px;padding:0}

/* ---- 按钮/输入/分页 ---- */
#wp .pn{background:#307ED7;border:1px solid #307ED7;color:#fff;border-radius:3px}
#wp .pn em,#wp .pn strong{color:#fff}
#wp .pn:hover{background:#1d6ec4;border-color:#1d6ec4}
#wp .pg a,#wp .pg strong,#wp .pg label{background:#fff;border:1px solid #e5e7eb;color:#555;border-radius:3px}
#wp .pg strong{background:#307ED7;border-color:#307ED7;color:#fff}
#wp .pg a:hover{border-color:#307ED7;color:#307ED7}
#wp .px,#wp .pt{border:1px solid #e5e7eb;border-radius:3px}

/* ---- 版块列表 ---- */
#wp .boardnav,#wp .bmw{background:transparent}
#wp .fl_g,#wp .fl_icn_g{border-radius:2px}
#wp .subforum a{color:#555}

/* ---- 表单/发帖页 ---- */
.pg_post #ct .mn,.pg_post #ct .sd{background:#fff;border:1px solid #eee;border-radius:2px;padding:14px}
.pg_post .bm{border:0}

/* ---- 登录/注册 ---- */
.pg_logging #wp .bm,.pg_register #wp .bm{border:1px solid #eee}

/* ---- 首页（portal_home 复用） ---- */
.dq-home .shortcuts,.dq-home .hero,.dq-home .side,.dq-home .feedbox,.dq-home .rail{border:1px solid #eee}

@media (max-width:1220px){
	.wp,.dq-inner{width:100%!important;padding-left:12px;padding-right:12px}
	.dq-head .dq-inner{height:auto;flex-wrap:wrap;padding-top:10px;padding-bottom:10px;gap:10px}
	.dq-logo{order:1}
	.dq-hright{order:2;margin-left:auto}
	.dq-search{order:3;flex:1 1 100%;max-width:none;width:100%}
	.dq-nav .dq-inner{overflow-x:auto}
	#ct .mn,#ct:has(.sd) .mn{width:100%!important}
	#ct .sd{display:none}
	#postlist .t_f{font-size:15px}
}
