/* ==========================================================================
   Telink 社区 v10 · 个人空间皮肤（home.php?mod=space 资料页等）
   仅作用于 body.pg_space，加载在主题样式与 extend_common.css 之后
   ========================================================================== */
body.pg_space{
	--sp-paper:#f6f8fa; --sp-card:#fff;
	--sp-ink:#051023; --sp-navy:#0a2d72;
	--sp-t1:#051023; --sp-t2:#2b3442; --sp-meta:#68727f; --sp-faint:#98a1ac;
	--sp-line:#dde3ea; --sp-line2:#eceff3;
	--sp-font:'Maven Pro','Noto Sans SC',-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
	--sp-display:'Abel','Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
	--sp-gutter:48px;
	background:var(--sp-paper);
	background-image:radial-gradient(rgba(10,45,114,.05) 1px,transparent 1px);
	background-size:24px 24px;
	font-family:var(--sp-font);
}
@media (max-width:1439px){body.pg_space{--sp-gutter:20px;}}
@media (max-width:900px){body.pg_space{--sp-gutter:12px;}}

body.pg_space #wp.wp{width:100%;max-width:1440px;margin:0 auto;padding:0 var(--sp-gutter);box-sizing:border-box;}
/* 顶栏与页脚跟随 v10 内页铺满（≥1440 左右 48px，以下 20/12px） */
body.pg_space .wp{width:100%;max-width:1440px;margin-left:auto;margin-right:auto;padding-left:var(--sp-gutter);padding-right:var(--sp-gutter);box-sizing:border-box;}
body.pg_space #ft.wp{padding-left:var(--sp-gutter);padding-right:var(--sp-gutter);box-sizing:border-box;}
body.pg_space .dz_btm_layer{width:100%;min-width:0;padding-left:var(--sp-gutter);padding-right:var(--sp-gutter);box-sizing:border-box;}

/* 面包屑 */
body.pg_space #pt{background:none;border:0;margin:16px 0 0;padding:0;font-size:11px;line-height:1.6;color:var(--sp-meta);}
body.pg_space #pt a{color:var(--sp-meta);text-decoration:none;}
body.pg_space #pt a:hover{color:var(--sp-navy);}
body.pg_space #pt em{font-style:normal;color:var(--sp-faint);margin:0 5px;}

/* 用户头部卡片 */
body.pg_space #uhd{position:relative;margin:12px 0 20px;padding:0;background:var(--sp-card);border:1px solid var(--sp-line);border-radius:0;box-shadow:none;}
body.pg_space #uhd .h{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:20px;align-items:center;padding:24px 28px 16px;}
body.pg_space #uhd .h .icn.avt{grid-row:1 / span 2;width:72px;height:72px;margin:0;padding:0;border:0;background:none;}
body.pg_space #uhd .h .icn.avt img{width:72px;height:72px;object-fit:cover;border:1px solid var(--sp-line);}
body.pg_space #uhd .h h2{grid-column:2;grid-row:1;margin:0;padding:0;font-family:var(--sp-display);font-size:30px;line-height:1.1;font-weight:400;color:var(--sp-t1);}
body.pg_space #uhd .h p{grid-column:2;grid-row:2;margin:7px 0 0;font-size:11px;line-height:1.5;color:var(--sp-faint);}
body.pg_space #uhd .h p a{color:var(--sp-faint);text-decoration:none;}
body.pg_space #uhd .h p a:hover{color:var(--sp-navy);}

/* 头部操作（发送消息等） */
body.pg_space #uhd .mn{position:absolute;right:28px;top:24px;margin:0;padding:0;}
body.pg_space #uhd .mn ul{display:flex;gap:8px;list-style:none;margin:0;padding:0;}
body.pg_space #uhd .mn li{float:none;margin:0;padding:0;}
body.pg_space #uhd .mn a{display:inline-flex;align-items:center;height:32px;padding:0 14px;border:1px solid var(--sp-line);background:transparent;color:var(--sp-navy);font-size:12px;line-height:1;text-decoration:none;transition:.18s;}
body.pg_space #uhd .mn a:hover{background:var(--sp-navy);border-color:var(--sp-navy);color:#fff;}

/* 空间导航 */
body.pg_space #uhd .tb{display:flex;gap:2px;margin:0;padding:0 28px !important;list-style:none;border-top:1px solid var(--sp-line2);overflow-x:auto;scrollbar-width:none;}
body.pg_space #uhd .tb::-webkit-scrollbar{display:none;}
body.pg_space #uhd .tb li{float:none;margin:0;padding:0;}
body.pg_space #uhd .tb li a{display:block;padding:12px 14px;font-size:12px;line-height:1.2;color:var(--sp-meta);text-decoration:none;background:none;border:0;border-bottom:2px solid transparent;white-space:nowrap;}
body.pg_space #uhd .tb li a:hover{color:var(--sp-navy);}
body.pg_space #uhd .tb li.a a{color:var(--sp-navy);border-bottom-color:var(--sp-navy);font-weight:700;}

/* 内容卡片 */
body.pg_space #ct.ct1{width:auto;max-width:none;margin:0;padding:0 0 56px;background:none;border:0;}
body.pg_space #ct>.mn{width:100%;float:none;}
body.pg_space #ct .bm.bw0{background:var(--sp-card) !important;border:1px solid var(--sp-line);border-radius:0;box-shadow:none;overflow:hidden;}
body.pg_space #ct .bm_c{padding:30px 32px;background:none;}
body.pg_space #ct .bm_c.u_profile{padding:0;}

/* 资料分节 */
body.pg_space .u_profile>div{border-bottom:1px solid var(--sp-line2);padding:0 0 26px;margin:0 0 26px;}
body.pg_space .u_profile>div:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0;}
body.pg_space .u_profile h2{font-family:var(--sp-display);font-size:18px;line-height:1.25;font-weight:400;color:var(--sp-t1);margin:0 0 16px;padding:0 0 0 12px;border-left:2px solid var(--sp-navy);background:none;}
body.pg_space .u_profile>.pbm:first-child>h2{display:none;}

/* 两列资料栅格 */
body.pg_space .u_profile ul{list-style:none;margin:0 0 12px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 40px;}
body.pg_space .u_profile ul:last-child{margin-bottom:0;}
body.pg_space .u_profile ul li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0;padding:0;border:0;min-width:0;font-size:13px;line-height:1.7;color:var(--sp-t2);}
body.pg_space .u_profile ul li em{flex:0 0 88px;font-style:normal;font-size:11.5px;line-height:1.7;color:var(--sp-faint);white-space:nowrap;}
body.pg_space .u_profile ul li a{color:var(--sp-navy);text-decoration:none;}
body.pg_space .u_profile ul li a:hover{text-decoration:underline;}
body.pg_space .u_profile ul li img{max-height:22px;width:auto;vertical-align:middle;}
body.pg_space .u_profile .pipe{margin:0 2px;color:var(--sp-line);}
body.pg_space .u_profile .bbda{border-bottom:0;padding-bottom:0;}

/* 版块 / 群组入口 */
body.pg_space .u_profile>div>a{display:inline-flex;align-items:center;height:28px;padding:0 10px;margin:0 8px 8px 0;border:1px solid var(--sp-line);color:var(--sp-navy);font-size:12px;text-decoration:none;transition:.18s;}
body.pg_space .u_profile>div>a:hover{border-color:var(--sp-navy);}

/* 违规记录表 */
body.pg_space .u_profile table.dt{width:100%;border-collapse:collapse;font-size:12px;}
body.pg_space .u_profile table.dt th,
body.pg_space .u_profile table.dt td{padding:10px 12px;border-bottom:1px solid var(--sp-line2);text-align:left;color:var(--sp-t2);}
body.pg_space .u_profile table.dt th{font-weight:400;font-size:11px;color:var(--sp-faint);background:var(--sp-paper);}

@media (max-width:760px){
	body.pg_space #uhd .h{grid-template-columns:56px minmax(0,1fr);column-gap:14px;padding:18px 16px 14px;}
	body.pg_space #uhd .h .icn.avt,
	body.pg_space #uhd .h .icn.avt img{width:56px;height:56px;}
	body.pg_space #uhd .h h2{font-size:22px;}
	body.pg_space #uhd .mn{position:static;padding:0 16px 12px;}
	body.pg_space #uhd .mn ul{justify-content:flex-start;}
	body.pg_space #uhd .tb{padding:0 8px !important;}
	body.pg_space #ct .bm_c{padding:20px 16px;}
	body.pg_space .u_profile ul{grid-template-columns:minmax(0,1fr);gap:8px;}
	body.pg_space .u_profile ul li em{flex:0 0 84px;}
}

/* 深色模式 */
html[data-theme="dark"] body.pg_space{
	--sp-paper:#0f1420; --sp-card:#1a2233;
	--sp-ink:#e8edf7; --sp-navy:#8fb0ff;
	--sp-t1:#e8edf7; --sp-t2:#b8c2d8; --sp-meta:#7c88a6; --sp-faint:#66718b;
	--sp-line:#2a3450; --sp-line2:#232c42;
	background:var(--sp-paper);
	background-image:none;
}
@media (prefers-color-scheme: dark){
	html:not([data-theme="light"]) body.pg_space{
		--sp-paper:#0f1420; --sp-card:#1a2233;
		--sp-ink:#e8edf7; --sp-navy:#8fb0ff;
		--sp-t1:#e8edf7; --sp-t2:#b8c2d8; --sp-meta:#7c88a6; --sp-faint:#66718b;
		--sp-line:#2a3450; --sp-line2:#232c42;
		background:var(--sp-paper);
		background-image:none;
	}
}
