/* GoodHub 消息中心 / 私信 / 激活码（前台） */
:root{
	--ghm-c-main: var(--theme-color, #ff5f33);
	--ghm-text: #1f2329;
	--ghm-text-2: #646a73;
	--ghm-text-3: #9aa0a8;
	--ghm-line: #eef0f3;
	--ghm-bg: #fff;
	--ghm-bg-2: #f6f7f9;
	--ghm-bg-3: #f0f2f5;
	--ghm-radius: 10px;
}
body.night{
	--ghm-text: #d6d6d6;
	--ghm-text-2: #a2a2a2;
	--ghm-text-3: #777;
	--ghm-line: #333536;
	--ghm-bg: #202020;
	--ghm-bg-2: #262728;
	--ghm-bg-3: #2d2e2f;
}
.ghm-svg{width:1em;height:1em;fill:currentColor;vertical-align:-.14em;flex-shrink:0}
.ghm-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--ghm-bg-3)}

/* 按钮 / 标签 */
.ghm-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 16px;border-radius:999px;border:0;background:var(--ghm-c-main);color:#fff !important;font-size:14px;line-height:1;cursor:pointer;text-decoration:none !important;white-space:nowrap;transition:filter .15s, transform .1s}
.ghm-btn:hover{filter:brightness(1.06)}
.ghm-btn:active{transform:translateY(1px)}
.ghm-btn[disabled]{opacity:.6;cursor:not-allowed}
.ghm-btn-light{background:var(--ghm-bg-3);color:var(--ghm-text) !important}
.ghm-btn-sm{height:28px;padding:0 12px;font-size:12px}
.ghm-icon-btn{width:34px;height:34px;border-radius:50%;border:0;background:transparent;color:var(--ghm-text-2);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px}
.ghm-icon-btn:hover{background:var(--ghm-bg-3)}
.ghm-vip-tag,.ghm-admin-tag,.ghm-normal-tag{display:inline-block;font-style:normal;font-size:11px;line-height:16px;padding:0 6px;border-radius:4px;background:linear-gradient(90deg,#f7c96b,#f3a43b);color:#5b3600;margin-left:6px;font-weight:600;vertical-align:1px}
.ghm-admin-tag{background:#e8f0ff;color:#2f6bff}
.ghm-normal-tag{background:var(--ghm-bg-3);color:var(--ghm-text-3);font-weight:normal}
.ghm-menu-badge{display:inline-block;min-width:18px;height:18px;line-height:18px;padding:0 5px;border-radius:9px;background:#f43f5e;color:#fff;font-size:11px;text-align:center;margin-left:6px;vertical-align:1px;font-style:normal}
.usermenu li[class*="usermenu-ghm-"] a .ghm-svg{font-size:17px;margin-right:2px;vertical-align:-.18em}
.usermenu li.active[class*="usermenu-ghm-"] .ghm-svg{color:var(--ghm-c-main)}

/* 顶部铃铛 */
.nav-right .nav-ghm-notice .ghm-bell{position:relative}
.nav-right .nav-ghm-notice .ghm-bell-num{position:absolute;top:-2px;left:12px;min-width:16px;height:16px;line-height:16px;padding:0 4px;border-radius:8px;background:#f43f5e;color:#fff;font-size:10px;font-weight:600;text-align:center;font-style:normal;box-shadow:0 0 0 2px #fff}
.nav-right .nav-ghm-notice .ghm-bell-num.is-hidden{display:none}
.nav-right .ghm-drop{min-width:0 !important;width:380px;max-width:calc(100vw - 20px);padding:0 !important;line-height:1.5 !important;overflow:hidden}
.ghm-drop-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 0;border-bottom:1px solid var(--ghm-line)}
.ghm-drop-tabs{display:flex;gap:18px}
.nav-right .ghm-drop-tabs a{padding:0 0 10px !important;color:var(--ghm-text-2) !important;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px}
.nav-right .ghm-drop-tabs a.active{color:var(--ghm-text) !important;font-weight:600;border-color:var(--ghm-c-main)}
.ghm-drop-tabs em{font-style:normal;color:#f43f5e;font-size:12px;margin-left:4px}
.nav-right .ghm-drop-readall{padding:0 0 10px !important;font-size:12px;color:var(--ghm-text-3) !important}
.ghm-drop-body{max-height:380px;overflow:auto;overscroll-behavior:contain}
.ghm-drop-loading,.ghm-drop-empty{padding:36px 0;text-align:center;color:var(--ghm-text-3);font-size:13px}
.ghm-drop-empty .ghm-svg{font-size:36px;opacity:.35;display:block;margin:0 auto 6px}
.ghm-drop-list{list-style:none;margin:0;padding:4px 0}
.nav-right .ghm-drop-list li{float:none !important;width:auto !important}
.nav-right .ghm-drop-list a{display:flex !important;align-items:flex-start;gap:10px;padding:10px 14px !important;color:var(--ghm-text) !important}
.ghm-drop-list a:hover{background:var(--ghm-bg-2)}
.ghm-drop-list .ghm-dot{width:8px;height:8px;border-radius:50%;background:var(--ghm-c);margin-top:6px;flex-shrink:0;opacity:.35}
.ghm-drop-list li.is-unread .ghm-dot{opacity:1}
.ghm-drop-main{flex:1;min-width:0}
.ghm-drop-main b{display:block;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ghm-drop-list li:not(.is-unread) .ghm-drop-main b{font-weight:normal;color:var(--ghm-text-2)}
.ghm-drop-main small{display:block;font-size:12px;color:var(--ghm-text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.ghm-drop-list time{font-size:11px;color:var(--ghm-text-3);white-space:nowrap}
.ghm-drop-list.is-pm .ghm-avatar{width:34px;height:34px}
.ghm-drop-foot{border-top:1px solid var(--ghm-line);text-align:center}
.nav-right .ghm-drop-foot a{display:block;padding:10px !important;font-size:13px;color:var(--ghm-c-main) !important}
@media (max-width:768px){
	.nav-right .nav-ghm-notice .ghm-drop{display:none !important}
	.nav-right .nav-ghm-notice.ghm-hide-wap{display:none}
	.nav-right .nav-ghm-notice .ghm-bell-num{left:10px;top:-3px}
}

/* 面板通用 */
.ghm-uc{color:var(--ghm-text)}
.ghm-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.ghm-panel-title{margin:0;font-size:18px;font-weight:600;display:flex;align-items:center;gap:8px;color:var(--ghm-text)}
.ghm-panel-title .ghm-svg{color:var(--ghm-c-main);font-size:20px}
.ghm-count-pill{font-size:12px;font-weight:normal;padding:2px 9px;border-radius:999px;background:#fff1f2;color:#e11d48}
.ghm-count-pill.is-muted{background:var(--ghm-bg-3);color:var(--ghm-text-2)}
body.night .ghm-count-pill{background:#3a2226}
.ghm-back{display:inline-flex;align-items:center;gap:4px;color:var(--ghm-text-2);font-size:14px}
.ghm-back .ghm-svg{font-size:18px}
.ghm-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:12px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ghm-tabs::-webkit-scrollbar{display:none}
.ghm-tab{flex-shrink:0;padding:6px 14px;border-radius:999px;background:var(--ghm-bg-2);color:var(--ghm-text-2) !important;font-size:13px;white-space:nowrap}
.ghm-tab.active{background:var(--ghm-c-main);color:#fff !important}
.ghm-tab em{font-style:normal;margin-left:4px;font-size:12px;opacity:.9}
.ghm-empty{text-align:center;padding:70px 0;color:var(--ghm-text-3)}
.ghm-empty .ghm-svg{font-size:54px;opacity:.25}
.ghm-empty p{margin:10px 0 0}
.ghm-pager{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:18px;font-size:13px;color:var(--ghm-text-3)}
.ghm-pager a{padding:6px 14px;border-radius:999px;background:var(--ghm-bg-2);color:var(--ghm-text-2)}

/* 消息列表 */
.ghm-msg-list{list-style:none;margin:0;padding:0}
.ghm-msg-item{position:relative;border-bottom:1px solid var(--ghm-line)}
.ghm-msg-item:last-child{border-bottom:0}
.ghm-msg-link{display:flex;gap:12px;padding:14px 44px 14px 4px;color:var(--ghm-text) !important;align-items:flex-start;border-radius:8px}
.ghm-msg-link:hover{background:var(--ghm-bg-2)}
.ghm-msg-icon{width:40px;height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:20px;color:var(--ghm-c);background:color-mix(in srgb, var(--ghm-c) 12%, transparent);flex-shrink:0;position:relative}
.ghm-msg-icon.is-lg{width:52px;height:52px;font-size:26px;border-radius:16px}
.ghm-msg-item.is-unread .ghm-msg-icon:after{content:"";position:absolute;top:-2px;right:-2px;width:10px;height:10px;border-radius:50%;background:#f43f5e;box-shadow:0 0 0 2px var(--ghm-bg)}
.ghm-msg-body{flex:1;min-width:0}
.ghm-msg-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.ghm-msg-title{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ghm-text-2)}
.ghm-msg-item.is-unread .ghm-msg-title{font-weight:600;color:var(--ghm-text)}
.ghm-msg-time{font-size:12px;color:var(--ghm-text-3);white-space:nowrap}
.ghm-msg-excerpt{display:block;font-size:13px;color:var(--ghm-text-3);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ghm-msg-label{display:inline-block;font-size:11px;padding:0 6px;line-height:18px;border-radius:4px;background:var(--ghm-bg-3);color:var(--ghm-text-2);margin-right:6px;vertical-align:1px}
.ghm-article-meta .ghm-msg-label{color:var(--ghm-c);background:color-mix(in srgb, var(--ghm-c) 12%, transparent)}
.ghm-msg-del{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--ghm-text-3);cursor:pointer;font-size:16px;opacity:0;transition:opacity .15s}
.ghm-msg-item:hover .ghm-msg-del{opacity:1}
.ghm-msg-del:hover{background:#fff1f2;color:#e11d48}
@media (hover:none){.ghm-msg-del{opacity:.6}}

/* 消息详情 */
.ghm-article{border:1px solid var(--ghm-line);border-radius:var(--ghm-radius);padding:22px}
.ghm-article-head{display:flex;gap:14px;align-items:center;margin-bottom:16px}
.ghm-article-head h2{margin:0 0 6px;font-size:19px;line-height:1.4;color:var(--ghm-text)}
.ghm-article-meta{margin:0;font-size:12px;color:var(--ghm-text-3)}
.ghm-article-content{font-size:15px;line-height:1.85;color:var(--ghm-text);word-break:break-word}
.ghm-article-content p{margin:0 0 8px}
.ghm-article-content .ghm-quote{display:block;margin-top:6px;padding:8px 12px;border-left:3px solid var(--ghm-line);background:var(--ghm-bg-2);border-radius:4px;color:var(--ghm-text-2)}
.ghm-code-inline{font-family:Consolas,Menlo,monospace;background:var(--ghm-bg-3);padding:2px 8px;border-radius:4px;user-select:all}
.ghm-article-actions{margin:18px 0 0}
.ghm-vipbox{margin-top:16px;padding:14px 16px;border-radius:10px;background:linear-gradient(120deg,#fff8eb,#fff1d6);color:#7a4a00;font-size:14px}
body.night .ghm-vipbox{background:#3a3022;color:#e6c27a}
.ghm-vipbox-name .ghm-svg{color:#f3a43b;font-size:18px;margin-right:4px}
.ghm-vipbox-end{margin-top:4px;font-size:13px;opacity:.85}

/* 激活码 */
.ghm-codes{margin-top:16px;border:1px dashed color-mix(in srgb, var(--ghm-c-main) 45%, transparent);border-radius:var(--ghm-radius);padding:14px 16px;background:color-mix(in srgb, var(--ghm-c-main) 4%, var(--ghm-bg))}
.ghm-codes-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap;font-size:14px;font-weight:600}
.ghm-codes-head > span .ghm-svg{color:var(--ghm-c-main);margin-right:6px;font-size:17px}
.ghm-codes-head small{font-weight:normal;color:var(--ghm-text-3);margin-left:8px;font-size:12px}
.ghm-code-list{list-style:none;margin:0;padding:0;counter-reset:ghmcode}
.ghm-code-list li{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--ghm-line);counter-increment:ghmcode}
.ghm-code-list li:first-child{border-top:0}
.ghm-code-list li:before{content:counter(ghmcode);width:22px;height:22px;border-radius:50%;background:var(--ghm-bg-3);color:var(--ghm-text-3);font-size:11px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.ghm-code-list code{flex:1;min-width:0;font-family:Consolas,Menlo,"SFMono-Regular",monospace;font-size:15px;color:var(--ghm-text);background:transparent;padding:0;word-break:break-all;user-select:all}
.ghm-copy{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--ghm-line);background:var(--ghm-bg);color:var(--ghm-text-2);border-radius:999px;height:28px;padding:0 10px;font-size:12px;cursor:pointer;flex-shrink:0}
.ghm-copy:hover{border-color:var(--ghm-c-main);color:var(--ghm-c-main)}
.ghm-copy.copied{background:#ecfdf5;border-color:#10b981;color:#059669}
.ghm-codes-tip{margin:10px 0 0;font-size:12px;color:#d97706}
.ghm-gift-rule{margin-top:20px;padding:16px;border-radius:var(--ghm-radius);background:var(--ghm-bg-2)}
.ghm-gift-rule-title{font-weight:600;margin-bottom:10px}
.ghm-gift-rule-title .ghm-svg{color:var(--ghm-c-main);margin-right:6px}
.ghm-gift-rule ul{list-style:none;margin:0 0 10px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.ghm-gift-rule li{display:flex;justify-content:space-between;background:var(--ghm-bg);padding:9px 12px;border-radius:8px;font-size:14px}
.ghm-gift-rule li b{color:var(--ghm-c-main)}
.ghm-gift-rule p{font-size:13px;color:var(--ghm-text-2);margin:0 0 12px}

/* 私信 */
.ghm-pm{display:flex;border:1px solid var(--ghm-line);border-radius:var(--ghm-radius);overflow:hidden;height:min(680px, calc(100vh - 160px));min-height:460px;background:var(--ghm-bg)}
.ghm-pm-side{width:290px;border-right:1px solid var(--ghm-line);display:flex;flex-direction:column;background:var(--ghm-bg)}
.ghm-pm-side-head{padding:16px 14px 10px}
.ghm-pm-side-head .ghm-panel-title{font-size:17px;margin-bottom:12px}
.ghm-pm-search{position:relative;display:flex;align-items:center;background:var(--ghm-bg-2);border-radius:999px;padding:0 12px;color:var(--ghm-text-3)}
.ghm-pm-search input{flex:1;border:0;background:transparent;height:36px;padding:0 8px;outline:none;font-size:13px;color:var(--ghm-text);min-width:0}
.ghm-suggest{position:absolute;left:0;right:0;top:42px;background:var(--ghm-bg);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.12);z-index:30;display:none;max-height:320px;overflow:auto;padding:6px 0}
.ghm-suggest.show{display:block}
.ghm-suggest a{display:flex;align-items:center;gap:10px;padding:8px 12px;color:var(--ghm-text) !important}
.ghm-suggest a:hover{background:var(--ghm-bg-2)}
.ghm-suggest .ghm-avatar{width:32px;height:32px}
.ghm-suggest span{flex:1;min-width:0}
.ghm-suggest b{display:block;font-weight:normal;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ghm-suggest small{display:block;font-size:11px;color:var(--ghm-text-3)}
.ghm-suggest-empty{padding:14px;text-align:center;font-size:13px;color:var(--ghm-text-3)}
.ghm-conv-list{list-style:none;margin:0;padding:0 6px 10px;overflow-y:auto;flex:1}
.ghm-conv a{display:flex;align-items:center;gap:10px;padding:10px 8px;border-radius:10px;color:var(--ghm-text) !important;position:relative}
.ghm-conv a:hover{background:var(--ghm-bg-2)}
.ghm-conv.active a{background:color-mix(in srgb, var(--ghm-c-main) 9%, var(--ghm-bg))}
.ghm-conv-body{flex:1;min-width:0}
.ghm-conv-top{display:flex;align-items:center;gap:2px}
.ghm-conv-top b{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ghm-conv-top time{margin-left:auto;font-size:11px;color:var(--ghm-text-3);white-space:nowrap;padding-left:6px}
.ghm-conv-last{display:block;font-size:12px;color:var(--ghm-text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px;padding-right:20px}
.ghm-conv.is-unread .ghm-conv-last{color:var(--ghm-text-2)}
.ghm-conv-badge{position:absolute;right:10px;bottom:12px;min-width:18px;height:18px;line-height:18px;padding:0 5px;border-radius:9px;background:#f43f5e;color:#fff;font-size:11px;text-align:center;font-style:normal}
.ghm-drop-main .ghm-conv-badge{position:static;margin-left:4px}
.ghm-conv-empty{padding:40px 16px;text-align:center;color:var(--ghm-text-3);font-size:14px;line-height:1.8}
.ghm-pm-main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--ghm-bg-2)}
.ghm-pm-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--ghm-line);background:var(--ghm-bg)}
.ghm-pm-head .ghm-avatar{width:36px;height:36px}
.ghm-pm-peer{flex:1;min-width:0;line-height:1.3}
.ghm-pm-peer b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ghm-pm-peer small{font-size:12px;color:var(--ghm-text-3)}
.ghm-pm-back{display:none;color:var(--ghm-text-2);font-size:22px;padding:4px}
.ghm-pm-menu{position:relative}
.ghm-pm-menu-pop{position:absolute;right:0;top:40px;background:var(--ghm-bg);box-shadow:0 10px 30px rgba(0,0,0,.14);border-radius:10px;padding:6px 0;min-width:140px;display:none;z-index:20}
.ghm-pm-menu.open .ghm-pm-menu-pop{display:block}
.ghm-pm-menu-pop a{display:block;padding:9px 16px;font-size:14px;color:var(--ghm-text) !important}
.ghm-pm-menu-pop a:hover{background:var(--ghm-bg-2)}
.ghm-pm-msgs{flex:1;overflow-y:auto;padding:16px;overscroll-behavior:contain}
.ghm-pm-loadmore{text-align:center;margin-bottom:12px;font-size:12px}
.ghm-pm-loadmore a{color:var(--ghm-text-3)}
.ghm-pm-hello{text-align:center;color:var(--ghm-text-3);font-size:13px;margin-top:40px}
.ghm-bubble-row{display:flex;gap:10px;margin-bottom:14px;align-items:flex-start}
.ghm-bubble-row .ghm-avatar{width:34px;height:34px}
.ghm-bubble-row.is-mine{flex-direction:row-reverse}
.ghm-bubble{max-width:72%;display:flex;flex-direction:column}
.ghm-bubble-row.is-mine .ghm-bubble{align-items:flex-end}
.ghm-bubble-text{padding:10px 13px;border-radius:14px;background:var(--ghm-bg);font-size:14px;line-height:1.65;word-break:break-word;box-shadow:0 1px 2px rgba(0,0,0,.04);color:var(--ghm-text);border-top-left-radius:4px}
.ghm-bubble-row.is-mine .ghm-bubble-text{background:var(--ghm-c-main);color:#fff;border-top-left-radius:14px;border-top-right-radius:4px}
.ghm-bubble-row.is-mine .ghm-bubble-text a{color:#fff;text-decoration:underline}
.ghm-bubble-time{font-size:11px;color:var(--ghm-text-3);margin-top:4px}
.ghm-pm-compose{border-top:1px solid var(--ghm-line);background:var(--ghm-bg);padding:10px 12px}
.ghm-pm-compose textarea{width:100%;border:1px solid var(--ghm-line);background:var(--ghm-bg-2);color:var(--ghm-text);border-radius:10px;padding:9px 12px;resize:none;font-size:14px;line-height:1.6;outline:none;min-height:44px;max-height:160px;box-sizing:border-box;font-family:inherit}
.ghm-pm-compose textarea:focus{border-color:color-mix(in srgb, var(--ghm-c-main) 60%, transparent);background:var(--ghm-bg)}
.ghm-pm-compose-bar{display:flex;align-items:center;justify-content:space-between;margin-top:8px;gap:10px}
.ghm-pm-quota{font-size:12px;color:var(--ghm-text-3)}
.ghm-pm-quota.is-out{color:#e11d48}
.ghm-pm-placeholder{margin:auto;text-align:center;color:var(--ghm-text-3);padding:20px}
.ghm-pm-placeholder .ghm-svg{font-size:60px;opacity:.2}
.ghm-pm-placeholder p{margin:10px 0 4px}

/* 手机端模块化首页入口 */
.ghm-wap-box ul li a{display:block;position:relative}
.ghm-wap-icon{display:inline-block !important;position:relative;font-size:26px !important;color:#333;line-height:1.3}
body.night .ghm-wap-icon{color:#999}
.ghm-wap-dot{position:absolute;top:-4px;right:-12px;min-width:16px;height:16px;line-height:16px;padding:0 4px;border-radius:8px;background:#f43f5e;color:#fff;font-size:10px;font-style:normal}

/* 用户资料卡 */
.comt-avatar[data-ghm-uid], .comt-author[data-ghm-uid]{cursor:pointer}
.comt-avatar[data-ghm-uid] img{transition:transform .15s, box-shadow .15s}
.comt-avatar[data-ghm-uid]:hover img{transform:scale(1.05);box-shadow:0 0 0 3px color-mix(in srgb, var(--ghm-c-main) 25%, transparent)}
.ghm-card{position:absolute;z-index:10050;width:280px;background:var(--ghm-bg);color:var(--ghm-text);border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.16);padding:16px;font-size:14px;animation:ghmPop .16s ease-out}
.ghm-card.is-sheet{position:fixed;left:0;right:0;bottom:0;top:auto !important;width:auto;border-radius:18px 18px 0 0;padding:20px 18px calc(18px + env(safe-area-inset-bottom));animation:ghmSheet .2s ease-out}
.ghm-card-mask{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:10049}
.ghm-card-loading{text-align:center;color:var(--ghm-text-3);padding:16px 0}
.ghm-card-close{position:absolute;right:8px;top:8px;width:30px;height:30px;border:0;background:transparent;border-radius:50%;cursor:pointer;color:var(--ghm-text-3);font-size:16px}
.ghm-card-close:hover{background:var(--ghm-bg-3)}
.ghm-card-top{display:flex;gap:12px;align-items:center;padding-right:24px}
.ghm-card-top .ghm-avatar{width:52px;height:52px}
.ghm-card-top b{font-size:16px}
.ghm-card-top small{display:block;color:var(--ghm-text-3);font-size:12px;margin-top:4px}
.ghm-card-bio{margin:12px 0 0;font-size:13px;color:var(--ghm-text-2)}
.ghm-card-admin{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:12px 0 0;padding:10px 12px;background:var(--ghm-bg-2);border-radius:8px;font-size:12px}
.ghm-card-admin dt{color:var(--ghm-text-3)}
.ghm-card-admin dd{margin:0;word-break:break-all}
.ghm-card-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.ghm-card-actions .ghm-btn{flex:1;justify-content:center;height:34px;font-size:13px}
@keyframes ghmPop{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes ghmSheet{from{transform:translateY(100%)}to{transform:none}}

/* 轻提示 */
.ghm-toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);background:rgba(30,30,30,.92);color:#fff;padding:10px 18px;border-radius:999px;font-size:14px;z-index:10060;opacity:0;pointer-events:none;transition:all .2s;max-width:86vw;text-align:center}
.ghm-toast.show{opacity:1;transform:translate(-50%,0)}
.ghm-toast[data-type="error"]{background:rgba(225,29,72,.95)}

/* 手机 */
@media (max-width:768px){
	.ghm-panel-title{font-size:17px}
	.ghm-article{padding:16px;border:0;padding:4px 0}
	.ghm-msg-link{padding:12px 36px 12px 0}
	.ghm-msg-icon{width:38px;height:38px;font-size:19px}
	.ghm-pm{height:calc(100vh - 150px);height:calc(100dvh - 150px);min-height:420px;border-radius:12px}
	.ghm-pm-side{width:100%;border-right:0}
	.ghm-pm .ghm-pm-main{display:none}
	.ghm-pm.has-peer .ghm-pm-side{display:none}
	.ghm-pm.has-peer .ghm-pm-main{display:flex}
	.ghm-pm-back{display:inline-flex}
	.ghm-bubble{max-width:80%}
	.ghm-code-list code{font-size:14px}
	.ghm-copy span{display:none}
	.ghm-copy{width:32px;justify-content:center;padding:0}
	.ghm-copy.copied span{display:inline}
	.ghm-copy.copied{width:auto;padding:0 10px}
}
@media (max-width:640px){
	.ghm-pm{height:calc(100vh - 130px);height:calc(100dvh - 130px);border-radius:0;border-left:0;border-right:0;margin:0 -10px}
}

/* 手机端返回个人中心 */
.ghm-uc-home{display:none;align-items:center;gap:2px;color:var(--ghm-text-2) !important;font-size:14px;margin-bottom:12px}
.ghm-uc-home .ghm-svg{font-size:18px}
.ghm-pm-kbd{font-size:11px;color:var(--ghm-text-3);margin-left:auto;margin-right:10px}
@media (max-width:768px){
	.ghm-uc-home{display:inline-flex}
	.ghm-pm-kbd{display:none}
	.ghm-panel-head .ghm-btn{height:32px;font-size:13px;padding:0 14px}
}

/* ---------- 正文图片原图预览 ---------- */
.article-content img.ghm-zoomable{cursor:zoom-in}
.ghm-lightbox .fancybox-bg{background:#0d0e10}
.ghm-lightbox.fancybox-is-open .fancybox-bg{opacity:1}
.ghm-lightbox .fancybox-caption:after{display:none}
.ghm-lightbox .fancybox-caption{background:none}
.ghm-lightbox .fancybox-slide--image{padding:56px 76px 64px}
.ghm-lightbox .fancybox-thumbs{background:rgba(20,21,24,.96)}
.ghm-lightbox .fancybox-thumbs__list a:before{border-color:#ff5f33}
.ghm-lightbox .fancybox-caption{text-align:center;padding:16px 60px 18px;font-size:14px;line-height:1.6}
.ghm-lightbox .ghm-lb-cap{display:block;margin-bottom:6px}
.ghm-lightbox .ghm-lb-size{display:inline-block;font-size:12px;line-height:20px;padding:0 10px;border-radius:10px;background:rgba(255,255,255,.14);color:rgba(255,255,255,.85)}
.ghm-lightbox .fancybox-infobar{font-size:14px}
.ghm-lightbox .fancybox-navigation .fancybox-button{width:48px;height:48px;padding:8px;border-radius:50%;margin-top:-24px;background:rgba(30,30,30,.55)}
.ghm-lightbox .fancybox-navigation .fancybox-button--arrow_left{left:14px}
.ghm-lightbox .fancybox-navigation .fancybox-button--arrow_right{right:14px}
.ghm-lightbox .fancybox-navigation .fancybox-button.disabled{opacity:0 !important;pointer-events:none}
@media (max-width:768px){
	.ghm-lightbox .fancybox-slide--image{padding:50px 0 56px}
	.ghm-lightbox .fancybox-caption{padding:10px 14px 14px;font-size:13px}
	.ghm-lightbox .fancybox-navigation .fancybox-button{width:40px;height:40px;margin-top:-20px;padding:6px}
	.ghm-lightbox .fancybox-navigation .fancybox-button--arrow_left{left:6px}
	.ghm-lightbox .fancybox-navigation .fancybox-button--arrow_right{right:6px}
}
