/*! one_nova — 帖子内容页 viewthread 重制样式
  仅本页生效：所有选择器以 .one-ui.pg_viewthread 开头。
  与 one_pages.css 中的旧 viewthread 规则并存，本文件后加载，负责覆盖。 */

.one-ui.pg_viewthread{
  --one-thread-card:#fff;
  --one-thread-line:#E8EDF3;
  --one-thread-soft:#F8FAFC;
  --one-thread-ink:#0F172A;
  --one-thread-body:#334155;
  --one-thread-faint:#94A3B8;
  --one-thread-radius:14px;
}

/* ---------- 页面骨架 ---------- */
.one-ui.pg_viewthread #ct.wp.one-reading-layout{
  box-sizing:border-box;
  width:auto;
  max-width:1240px;
  margin:0 auto;
  padding:0 20px 28px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:0 20px;
  align-items:start;
}
.one-ui.pg_viewthread #ct.one-reading-layout > .one-thread-intro{
  grid-column:1 / -1;
}
.one-ui.pg_viewthread #ct.one-reading-layout > .one-reading-main{
  grid-column:1;
  min-width:0;
}
.one-ui.pg_viewthread #ct.one-reading-layout > .one-reading-sidebar{
  grid-column:2;
  min-width:0;
}
.one-ui.pg_viewthread .one-thread-breadcrumb{
  max-width:1240px;
  margin:0 auto;
  padding:14px 20px 10px;
  background:none;
  border:0;
  font-size:12px;
  line-height:20px;
  color:var(--one-muted);
}
.one-ui.pg_viewthread .one-thread-breadcrumb .z{float:none;}
.one-ui.pg_viewthread .one-thread-breadcrumb a{color:var(--one-muted);}
.one-ui.pg_viewthread .one-thread-breadcrumb a:hover{color:var(--one-accent);}
.one-ui.pg_viewthread .one-thread-breadcrumb em{
  margin:0 6px;
  color:var(--one-thread-faint);
  font-style:normal;
}

/* ---------- 顶部工具条 ---------- */
.one-ui.pg_viewthread .one-thread-intro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  margin-bottom:12px;
}
.one-ui.pg_viewthread .one-thread-intro #pgt{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  margin:0;
  padding:0;
  background:none;
  border:0;
  font-size:12px;
}
.one-ui.pg_viewthread .one-thread-intro #pgt .pgt{flex:1 1 auto;min-width:0;}
.one-ui.pg_viewthread .one-thread-intro #pgt .pgb a,
.one-ui.pg_viewthread .one-thread-back{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px 10px;
  border:1px solid var(--one-thread-line);
  border-radius:8px;
  background:#fff;
  color:var(--one-muted);
  font-size:12px;
  line-height:18px;
}
.one-ui.pg_viewthread .one-thread-intro #pgt .pgb a:hover,
.one-ui.pg_viewthread .one-thread-back:hover{
  border-color:var(--one-accent);
  color:var(--one-accent);
}
.one-ui.pg_viewthread .one-thread-newtop,
.one-ui.pg_viewthread .one-thread-newbottom{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:6px;
  height:34px;
  padding:0 16px;
  border:0;
  border-radius:8px;
  background:var(--one-accent);
  color:#fff;
  font-size:13px;
  font-weight:500;
  line-height:34px;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(22,119,255,.22);
}
.one-ui.pg_viewthread .one-thread-newtop:hover,
.one-ui.pg_viewthread .one-thread-newbottom:hover{
  background:#0f68e6;
  color:#fff;
}
.one-ui.pg_viewthread .one-thread-newtop .one-icon,
.one-ui.pg_viewthread .one-thread-newbottom .one-icon{width:15px;height:15px;}

/* ---------- 主卡片 ---------- */
.one-ui.pg_viewthread #postlist.one-reading-article{
  float:none;
  margin:0;
  padding:0;
  border:1px solid var(--one-thread-line);
  border-radius:var(--one-thread-radius);
  background:var(--one-thread-card);
  box-shadow:0 8px 24px rgba(15,23,42,.04);
  overflow:visible;
}
.one-ui.pg_viewthread .one-thread-heading-panel{
  padding:26px 30px 18px;
  border-bottom:0;
}
.one-ui.pg_viewthread .one-thread-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.one-ui.pg_viewthread .one-thread-heading-main{min-width:0;flex:1 1 auto;}
.one-ui.pg_viewthread .one-thread-heading h1.ts{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  color:var(--one-thread-ink);
  font-size:25px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:-.2px;
}
.one-ui.pg_viewthread .one-thread-heading h1.ts #thread_subject{min-width:0;overflow-wrap:anywhere;}
.one-ui.pg_viewthread .one-thread-heat{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:1px 7px;
  border-radius:5px;
  background:#fff1f0;
  color:#f5222d;
  font-size:11px;
  font-weight:600;
  line-height:18px;
}
.one-ui.pg_viewthread .one-thread-heat .one-icon{width:12px;height:12px;}
.one-ui.pg_viewthread .one-thread-title-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
  color:var(--one-thread-faint);
  font-size:12px;
  line-height:20px;
}
.one-ui.pg_viewthread .one-thread-title-meta .one-meta-avatar{
  display:inline-flex;
  flex:0 0 22px;
  width:22px;height:22px;
  overflow:hidden;
  border-radius:50%;
}
.one-ui.pg_viewthread .one-thread-title-meta .one-meta-avatar img,
.one-ui.pg_viewthread .one-thread-title-meta .one-meta-avatar .user_avatar{
  width:22px;height:22px;
  border-radius:50%;
  object-fit:cover;
}
.one-ui.pg_viewthread .one-thread-title-meta .one-meta-author{
  color:var(--one-thread-body);
  font-weight:600;
}
.one-ui.pg_viewthread .one-thread-title-meta .one-meta-author:hover{color:var(--one-accent);}
.one-ui.pg_viewthread .one-thread-title-meta .one-meta-link{color:var(--one-thread-faint);}
.one-ui.pg_viewthread .one-thread-title-meta .one-meta-link:hover{color:var(--one-accent);}
.one-ui.pg_viewthread .one-thread-title-meta .pipe{color:#CBD5E1;}
.one-ui.pg_viewthread .one-thread-counts{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:6px;
  color:var(--one-thread-faint);
}
.one-ui.pg_viewthread .one-thread-counts .one-icon{width:13px;height:13px;}
.one-ui.pg_viewthread .one-thread-heading-side{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:12px;
  padding-top:4px;
}
.one-ui.pg_viewthread .one-thread-badge{
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 9px;
  border-radius:6px;
  background:rgba(22,119,255,.08);
  color:var(--one-accent);
  font-size:12px;
  font-weight:500;
}
.one-ui.pg_viewthread .one-elevator{
  display:flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  color:var(--one-thread-faint);
}
.one-ui.pg_viewthread .one-elevator label{white-space:nowrap;}
.one-ui.pg_viewthread .one-elevator .p_fre{
  box-sizing:border-box;
  width:42px;
  height:26px;
  padding:0 5px;
  border:1px solid var(--one-thread-line);
  border-radius:6px;
  background:#fff;
  color:var(--one-thread-body);
  font-size:12px;
  text-align:center;
}
.one-ui.pg_viewthread .one-elevator #fj_btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;height:26px;
  border:1px solid var(--one-thread-line);
  border-radius:6px;
  color:var(--one-muted);
}
.one-ui.pg_viewthread .one-elevator #fj_btn:hover{border-color:var(--one-accent);color:var(--one-accent);}
.one-ui.pg_viewthread .one-elevator #fj_btn .one-icon{width:13px;height:13px;}
.one-ui.pg_viewthread .one-thread-tools{display:flex;align-items:center;gap:4px;}
.one-ui.pg_viewthread .one-thread-tools a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;height:28px;
  border-radius:6px;
  color:var(--one-thread-faint);
}
.one-ui.pg_viewthread .one-thread-tools a:hover{background:var(--one-thread-soft);color:var(--one-accent);}
.one-ui.pg_viewthread .one-thread-tools .one-icon{width:15px;height:15px;}

/* ---------- 主贴 ---------- */
.one-ui.pg_viewthread .one-post-wrap{position:relative;}
.one-ui.pg_viewthread .one-post-first{padding:0 30px 4px;}
.one-ui.pg_viewthread .one-post-first .one-post-meta{
  display:none;
  margin:0;
  padding:0;
}
.one-ui.pg_viewthread .one-post-first-wrap .one-post-content,
.one-ui.pg_viewthread .one-reply-content{padding:0;}
.one-ui.pg_viewthread .one-post-pcb{padding:0;}
.one-ui.pg_viewthread .one-post-body .t_f{
  padding:0;
  color:var(--one-thread-body);
  font-size:15px;
  line-height:1.92;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.one-ui.pg_viewthread .one-post-first .one-post-body .t_f{
  font-size:15px;
  line-height:1.92;
}
.one-ui.pg_viewthread .t_f p{margin:0 0 1em;}
.one-ui.pg_viewthread .t_f img,
.one-ui.pg_viewthread .t_f img.zoom{
  display:block;
  max-width:100%;
  height:auto;
  margin:18px auto;
  border-radius:10px;
}
.one-ui.pg_viewthread .t_f img.zoom{cursor:zoom-in;}
.one-ui.pg_viewthread .t_f blockquote{
  margin:14px 0;
  padding:12px 16px;
  border-left:3px solid #dbeafe;
  border-radius:0 8px 8px 0;
  background:var(--one-thread-soft);
  color:var(--one-muted);
}
.one-ui.pg_viewthread .t_f .quote,
.one-ui.pg_viewthread .t_f .blockcode{
  margin:14px 0;
  padding:12px 16px;
  border:1px solid var(--one-thread-line);
  border-radius:8px;
  background:var(--one-thread-soft);
  font-size:13px;
}
.one-ui.pg_viewthread .t_f table{max-width:100%;}
.one-ui.pg_viewthread .t_f .attach_nopermission{margin:14px 0;padding:10px 14px;border-radius:8px;background:#fff7e6;color:#ad6800;font-size:13px;}

/* 标签行 */
.one-ui.pg_viewthread .one-post-tags{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:20px 0 0;
  padding:16px 0 0;
  border-top:1px dashed transparent;
}
.one-ui.pg_viewthread .one-post-tag{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 10px;
  border-radius:999px;
  background:var(--one-thread-soft);
  color:var(--one-muted);
  font-size:12px;
  line-height:18px;
}
.one-ui.pg_viewthread .one-post-tag:hover{background:#eef4ff;color:var(--one-accent);}
.one-ui.pg_viewthread .one-post-tag .one-icon{width:12px;height:12px;}

/* 主贴操作条 */
.one-ui.pg_viewthread .one-post-actions{padding:0 30px;}
.one-ui.pg_viewthread .one-post-first #p_btn{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 6px;
  margin:22px 0 0;
  padding:12px 0;
  border-top:1px solid var(--one-thread-line);
}
.one-ui.pg_viewthread .one-action{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 12px;
  border-radius:8px;
  color:var(--one-muted);
  font-size:13px;
  line-height:20px;
}
.one-ui.pg_viewthread .one-action:hover{background:var(--one-thread-soft);color:var(--one-accent);}
.one-ui.pg_viewthread .one-action .one-icon{width:15px;height:15px;}
.one-ui.pg_viewthread .one-action-num{color:var(--one-thread-faint);font-size:11px;}
.one-ui.pg_viewthread .one-action-static{cursor:default;}

/* 主贴底部回复/道具/举报 */
.one-ui.pg_viewthread .one-post-footer{
  margin-top:0;
  padding:0 30px;
}
.one-ui.pg_viewthread .one-post-footer .pob,
.one-ui.pg_viewthread .one-reply-actions .pob{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0 16px;
  border-top:1px solid var(--one-thread-line);
  font-size:12px;
}
.one-ui.pg_viewthread .one-post-footer em,
.one-ui.pg_viewthread .one-reply-actions em{font-style:normal;}
.one-ui.pg_viewthread .one-post-footer .fastre,
.one-ui.pg_viewthread .one-reply-actions .fastre{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 14px;
  border:1px solid var(--one-thread-line);
  border-radius:8px;
  background:#fff;
  color:var(--one-thread-body);
  font-size:13px;
}
.one-ui.pg_viewthread .one-post-footer .fastre:hover,
.one-ui.pg_viewthread .one-reply-actions .fastre:hover{border-color:var(--one-accent);color:var(--one-accent);}
.one-ui.pg_viewthread .one-post-footer .fastre .one-icon,
.one-ui.pg_viewthread .one-reply-actions .fastre .one-icon{width:14px;height:14px;}
.one-ui.pg_viewthread .one-post-tools{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0;
  padding:0;
  color:var(--one-thread-faint);
}
.one-ui.pg_viewthread .one-post-tool{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:var(--one-thread-faint);
  font-size:12px;
}
.one-ui.pg_viewthread .one-post-tool:hover{color:var(--one-accent);}
.one-ui.pg_viewthread .one-post-tool .one-icon{width:13px;height:13px;}
.one-ui.pg_viewthread .one-post-comments,
.one-ui.pg_viewthread .one-post-rate{margin:0;padding:0;}
.one-ui.pg_viewthread .one-post-comments:empty,
.one-ui.pg_viewthread .one-post-rate:empty{display:none;}

/* ---------- 相关帖子 ---------- */
.one-ui.pg_viewthread .one-related-threads{
  margin:22px 0 0;
  padding:20px 30px 24px;
  border-top:1px solid var(--one-thread-line);
  background:var(--one-thread-soft);
}
.one-ui.pg_viewthread .one-related-threads h3{
  margin:0 0 12px;
  color:var(--one-thread-ink);
  font-size:16px;
  font-weight:600;
  line-height:24px;
}
.one-ui.pg_viewthread .one-related-threads ol{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:2px 28px;
  margin:0;
  padding:0;
  list-style:none;
}
.one-ui.pg_viewthread .one-related-threads li{min-width:0;}
.one-ui.pg_viewthread .one-related-threads a{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  color:var(--one-thread-body);
  font-size:13px;
  line-height:20px;
}
.one-ui.pg_viewthread .one-related-threads a:hover{color:var(--one-accent);}
.one-ui.pg_viewthread .one-related-marker{
  flex:0 0 4px;
  width:4px;height:4px;
  border-radius:50%;
  background:#cbd5e1;
}
.one-ui.pg_viewthread .one-related-subject{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* ---------- 回复区 ---------- */
.one-ui.pg_viewthread .one-reading-replies{
  margin:0;
  padding:0 30px 8px;
  border-top:0;
  background:#fff;
}
.one-ui.pg_viewthread .one-reading-replies-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:24px 0 14px;
  border-bottom:1px solid var(--one-thread-line);
}
.one-ui.pg_viewthread .one-reading-replies-heading h2{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  color:var(--one-thread-ink);
  font-size:19px;
  font-weight:600;
  line-height:28px;
}
.one-ui.pg_viewthread .one-reply-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:19px;
  padding:0 6px;
  border-radius:999px;
  background:var(--one-thread-soft);
  color:var(--one-muted);
  font-size:11px;
  font-weight:500;
}
.one-ui.pg_viewthread .one-reading-reply-order{
  display:flex;
  align-items:center;
  gap:2px;
  padding:2px;
  border-radius:7px;
  background:var(--one-thread-soft);
}
.one-ui.pg_viewthread .one-reading-reply-order a{
  padding:3px 12px;
  border-radius:5px;
  color:var(--one-thread-faint);
  font-size:12px;
  line-height:18px;
}
.one-ui.pg_viewthread .one-reading-reply-order a.is-active{
  background:#fff;
  color:var(--one-thread-ink);
  font-weight:500;
  box-shadow:0 1px 3px rgba(15,23,42,.12);
}
.one-ui.pg_viewthread .one-reply-list{display:block;}
.one-ui.pg_viewthread .one-reply{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:14px;
  padding:20px 0 16px;
  border-bottom:1px solid var(--one-thread-line);
}
.one-ui.pg_viewthread .one-reply:last-child{border-bottom:0;}
.one-ui.pg_viewthread .one-reply-avatar{width:44px;}
.one-ui.pg_viewthread .one-reply-avatar a{display:block;}
.one-ui.pg_viewthread .one-reply-avatar img,
.one-ui.pg_viewthread .one-reply-avatar .user_avatar{
  display:block;
  width:40px;height:40px;
  border-radius:50%;
  object-fit:cover;
}
.one-ui.pg_viewthread .one-reply-main{min-width:0;}
.one-ui.pg_viewthread .one-reply-meta{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:2px 0 8px;
}
.one-ui.pg_viewthread .one-reply-authi{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  min-width:0;
  font-size:12px;
  line-height:18px;
}
.one-ui.pg_viewthread .one-reply-authi .one-post-name{
  color:var(--one-thread-body);
  font-size:13px;
  font-weight:600;
}
.one-ui.pg_viewthread .one-reply-authi .one-post-name:hover{color:var(--one-accent);}
.one-ui.pg_viewthread .one-post-owner{
  flex:0 0 auto;
  padding:0 5px;
  border-radius:4px;
  background:#eef4ff;
  color:var(--one-accent);
  font-size:10px;
  line-height:16px;
}
.one-ui.pg_viewthread .one-authi-time{color:var(--one-thread-faint);font-style:normal;}
.one-ui.pg_viewthread .one-authi-link{color:var(--one-thread-faint);}
.one-ui.pg_viewthread .one-authi-link:hover{color:var(--one-accent);}
.one-ui.pg_viewthread .one-reply-meta .pipe{color:#CBD5E1;}
.one-ui.pg_viewthread .one-reply-floor{
  order:3;
  margin-left:auto;
  padding-left:8px;
  color:var(--one-thread-faint);
  font-size:12px;
  font-weight:500;
  white-space:nowrap;
}
.one-ui.pg_viewthread .one-reply-floor a{color:var(--one-thread-faint);}
.one-ui.pg_viewthread .one-reply-floor a:hover{color:var(--one-accent);}
.one-ui.pg_viewthread .one-reply-pcb{padding:0;}
.one-ui.pg_viewthread .one-reply-pcb .t_f{
  color:var(--one-thread-body);
  font-size:14px;
  line-height:1.85;
}
.one-ui.pg_viewthread .one-reply-actions .pob{border-top:0;padding:8px 0 0;}
.one-ui.pg_viewthread .one-reply-actions .fastre{
  padding:3px 10px;
  border-color:transparent;
  background:var(--one-thread-soft);
  color:var(--one-muted);
  font-size:12px;
}
.one-ui.pg_viewthread .one-reply-actions .pob > p{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0;
  color:var(--one-thread-faint);
}
.one-ui.pg_viewthread .one-reply-actions .pob > p a{color:var(--one-thread-faint);font-size:12px;}
.one-ui.pg_viewthread .one-reply-actions .pob > p a:hover{color:var(--one-accent);}

/* 快速回复 */
.one-ui.pg_viewthread .one-fast-reply{
  margin:22px 0 26px;
  border:1px solid var(--one-thread-line);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
.one-ui.pg_viewthread .one-fast-reply-heading{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0;
  padding:13px 18px;
  border-bottom:1px solid var(--one-thread-line);
  background:var(--one-thread-soft);
  color:var(--one-thread-ink);
  font-size:14px;
  font-weight:600;
}
.one-ui.pg_viewthread .one-fast-reply-heading .one-icon{width:15px;height:15px;color:var(--one-muted);}
.one-ui.pg_viewthread .one-fast-reply-body{padding:14px 18px 0;}
.one-ui.pg_viewthread .one-fast-reply-body textarea.pt{
  box-sizing:border-box;
  display:block;
  width:100%;
  min-height:118px;
  padding:12px 14px;
  border:1px solid var(--one-thread-line);
  border-radius:9px;
  background:#fbfdff;
  color:var(--one-thread-body);
  font-size:14px;
  line-height:1.75;
  resize:vertical;
  outline:none;
}
.one-ui.pg_viewthread .one-fast-reply-body textarea.pt:focus{
  border-color:var(--one-accent);
  background:#fff;
  box-shadow:0 0 0 3px rgba(22,119,255,.1);
}
.one-ui.pg_viewthread .one-fast-reply-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 18px 16px;
}
.one-ui.pg_viewthread .one-fast-reply-tip{color:var(--one-thread-faint);font-size:12px;}
.one-ui.pg_viewthread .one-fast-reply-tools{display:inline-flex;align-items:center;gap:14px;}
.one-ui.pg_viewthread .one-fast-reply-full{color:var(--one-thread-faint);font-size:12px;}
.one-ui.pg_viewthread .one-fast-reply-full:hover{color:var(--one-accent);}
.one-ui.pg_viewthread .one-fast-reply-submit{
  height:34px;
  padding:0 18px;
  border:0;
  border-radius:7px;
  background:var(--one-accent);
  color:#fff;
  font-size:13px;
  cursor:pointer;
}
.one-ui.pg_viewthread .one-fast-reply-submit:hover{background:#0f68e6;}

/* ---------- 右栏 ---------- */
.one-ui.pg_viewthread .one-reading-sidebar{
  position:sticky;
  top:84px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.one-ui.pg_viewthread .one-author-summary{
  margin:0;
  padding:24px 20px 20px;
  border:1px solid var(--one-thread-line);
  border-radius:var(--one-thread-radius);
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
  text-align:center;
}
.one-ui.pg_viewthread .one-author-identity{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
}
.one-ui.pg_viewthread .one-author-avatar{
  position:relative;
  display:block;
  flex:0 0 72px;
  width:72px;height:72px;
  border:0;
  border-radius:50%;
}
.one-ui.pg_viewthread .one-author-avatar img,
.one-ui.pg_viewthread .one-author-avatar .user_avatar{
  display:block;
  width:72px;height:72px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 0 0 3px #fff,0 0 0 4px #e2e8f0;
}
.one-ui.pg_viewthread .one-author-online{
  position:absolute;
  right:4px;bottom:3px;
  width:12px;height:12px;
  border:2px solid #fff;
  border-radius:50%;
  background:#22c55e;
}
.one-ui.pg_viewthread .one-author-labels{display:flex;flex-direction:column;align-items:center;gap:3px;}
.one-ui.pg_viewthread .one-author-labels h2{margin:0;font-size:16px;font-weight:600;line-height:24px;}
.one-ui.pg_viewthread .one-author-labels h2 a{color:var(--one-thread-ink);}
.one-ui.pg_viewthread .one-author-labels h2 a:hover{color:var(--one-accent);}
.one-ui.pg_viewthread .one-author-group{color:var(--one-thread-faint);font-size:11px;}
.one-ui.pg_viewthread .one-author-description{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0 0 12px;
  color:var(--one-muted);
  font-size:12px;
  line-height:1.7;
  text-align:left;
}
.one-ui.pg_viewthread .one-stat-row{
  display:flex;
  justify-content:space-around;
  gap:8px;
  margin:0;
  padding:12px 0;
  border-top:1px solid var(--one-thread-line);
  border-bottom:1px solid var(--one-thread-line);
}
.one-ui.pg_viewthread .one-stat{
  display:flex;
  flex-direction:column;
  gap:2px;
  color:var(--one-thread-faint);
  font-size:11px;
  line-height:16px;
}
.one-ui.pg_viewthread .one-stat strong{color:var(--one-thread-ink);font-size:16px;font-weight:600;line-height:22px;}
.one-ui.pg_viewthread .one-author-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:14px;
}
.one-ui.pg_viewthread .one-author-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex:1 1 0;
  height:32px;
  padding:0 10px;
  border:1px solid var(--one-thread-line);
  border-radius:7px;
  background:#fff;
  color:var(--one-thread-body);
  font-size:12px;
  line-height:32px;
}
.one-ui.pg_viewthread .one-author-actions a .one-icon{width:14px;height:14px;}
.one-ui.pg_viewthread .one-author-actions a:hover{border-color:var(--one-accent);color:var(--one-accent);}
.one-ui.pg_viewthread .one-author-follow{background:var(--one-accent)!important;border-color:var(--one-accent)!important;color:#fff!important;}
.one-ui.pg_viewthread .one-author-follow:hover{background:#0f68e6!important;}

.one-ui.pg_viewthread .one-side-card{
  margin:0;
  padding:16px 18px 14px;
  border:1px solid var(--one-thread-line);
  border-radius:var(--one-thread-radius);
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}
.one-ui.pg_viewthread .one-side-title{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0 0 10px;
  padding:0;
  color:var(--one-thread-ink);
  font-size:15px;
  font-weight:600;
  line-height:24px;
}
.one-ui.pg_viewthread .one-hot-list,
.one-ui.pg_viewthread .one-read-list,
.one-ui.pg_viewthread .one-forum-list{margin:0;padding:0;list-style:none;}
.one-ui.pg_viewthread .one-hot-item + .one-hot-item{border-top:1px solid #f1f5f9;}
.one-ui.pg_viewthread .one-hot-item a{display:flex;gap:10px;padding:9px 0;align-items:center;}
.one-ui.pg_viewthread .one-hot-thumb{
  flex:0 0 62px;
  width:62px;height:46px;
  overflow:hidden;
  border-radius:7px;
  background:linear-gradient(135deg,#e0f2fe,#eef2ff 55%,#f5f3ff);
}
.one-ui.pg_viewthread .one-hot-thumb img{display:block;width:100%;height:100%;object-fit:cover;}
.one-ui.pg_viewthread .one-hot-info{display:flex;flex-direction:column;gap:3px;min-width:0;}
.one-ui.pg_viewthread .one-hot-subject{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:var(--one-thread-body);
  font-size:12px;
  line-height:17px;
}
.one-ui.pg_viewthread .one-hot-meta{display:flex;align-items:center;gap:6px;color:var(--one-thread-faint);font-size:10px;line-height:14px;}
.one-ui.pg_viewthread .one-hot-meta em{margin-left:auto;font-style:normal;}
.one-ui.pg_viewthread .one-hot-item a:hover .one-hot-subject{color:var(--one-accent);}

.one-ui.pg_viewthread .one-read-list{counter-reset:one-read;}
.one-ui.pg_viewthread .one-read-list li{counter-increment:one-read;display:flex;gap:8px;padding:8px 0;border-top:1px solid #f1f5f9;}
.one-ui.pg_viewthread .one-read-list li:first-child{border-top:0;}
.one-ui.pg_viewthread .one-read-list li::before{
  content:counter(one-read);
  flex:0 0 17px;
  height:17px;
  margin-top:1px;
  border-radius:4px;
  background:#f1f5f9;
  color:var(--one-thread-faint);
  font-size:10px;
  font-weight:600;
  line-height:17px;
  text-align:center;
}
.one-ui.pg_viewthread .one-read-list li:nth-child(1)::before{background:#fee2e2;color:#ef4444;}
.one-ui.pg_viewthread .one-read-list li:nth-child(2)::before{background:#ffedd5;color:#f97316;}
.one-ui.pg_viewthread .one-read-list li:nth-child(3)::before{background:#fef3c7;color:#d97706;}
.one-ui.pg_viewthread .one-read-list a{display:flex;flex-direction:column;gap:2px;min-width:0;}
.one-ui.pg_viewthread .one-read-subject{
  overflow:hidden;
  color:var(--one-thread-body);
  font-size:12px;
  line-height:18px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.one-ui.pg_viewthread .one-read-list a:hover .one-read-subject{color:var(--one-accent);}
.one-ui.pg_viewthread .one-read-meta{display:flex;gap:6px;color:var(--one-thread-faint);font-size:10px;line-height:14px;}
.one-ui.pg_viewthread .one-read-meta em{margin-left:auto;font-style:normal;}

.one-ui.pg_viewthread .one-forum-list li + li{border-top:1px solid #f1f5f9;}
.one-ui.pg_viewthread .one-forum-list a{display:flex;align-items:center;gap:10px;padding:9px 0;}
.one-ui.pg_viewthread .one-forum-icon{
  display:flex;
  flex:0 0 36px;
  align-items:center;
  justify-content:center;
  width:36px;height:36px;
  border-radius:9px;
  background:linear-gradient(135deg,#dbeafe,#ede9fe);
  color:#4f6ef7;
}
.one-ui.pg_viewthread .one-forum-icon .one-icon{width:17px;height:17px;}
.one-ui.pg_viewthread .one-forum-info{display:flex;flex-direction:column;gap:1px;min-width:0;}
.one-ui.pg_viewthread .one-forum-name{color:var(--one-thread-body);font-size:13px;line-height:18px;font-weight:500;}
.one-ui.pg_viewthread .one-forum-meta{color:var(--one-thread-faint);font-size:11px;line-height:16px;}
.one-ui.pg_viewthread .one-forum-more{margin-left:auto;width:13px;height:13px;color:#cbd5e1;}
.one-ui.pg_viewthread .one-forum-list a:hover .one-forum-name{color:var(--one-accent);}

/* ---------- 底部 ---------- */
.one-ui.pg_viewthread .one-thread-bottom-bar{max-width:1240px;margin:0 auto;padding:0 20px 30px;}
.one-ui.pg_viewthread .one-thread-bottom-tools{
  display:flex;
  align-items:center;
  gap:12px;
  padding:0;
  border:0;
  background:none;
  font-size:12px;
}
.one-ui.pg_viewthread .one-thread-bottom-tools .pg{margin:0;}
.one-ui.pg_viewthread .one-thread-bottom-tools .one-thread-newbottom{margin-left:auto;}

/* ---------- 左侧浮动栏 ---------- */
.one-ui.pg_viewthread .one-thread-rail{
  position:fixed;
  z-index:90;
  top:158px;
  left:max(14px,calc(50% - 658px));
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:8px 6px;
  border:1px solid var(--one-thread-line);
  border-radius:16px;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 28px rgba(15,23,42,.1);
  backdrop-filter:blur(8px);
}
.one-ui.pg_viewthread .one-rail-btn{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  width:40px;height:40px;
  padding:0;
  border:0;
  border-radius:11px;
  background:transparent;
  box-shadow:none;
  color:#64748b;
  cursor:pointer;
}
.one-ui.pg_viewthread .one-rail-btn:hover{background:#eef4ff;color:var(--one-accent);}
.one-ui.pg_viewthread .one-rail-btn .one-icon{width:18px;height:18px;}
.one-ui.pg_viewthread .one-rail-label{font-size:9px;line-height:11px;color:inherit;}
.one-ui.pg_viewthread .one-rail-sep{width:22px;height:1px;margin:3px 0;background:#eef2f7;}

/* ---------- 分享浮层 ---------- */
.one-ui.pg_viewthread .one-share-pop{
  position:fixed;
  z-index:190;
  width:288px;
  padding:16px;
  border:1px solid var(--one-thread-line);
  border-radius:12px;
  background:#fff;
  box-shadow:0 16px 48px rgba(15,23,42,.16);
}
.one-ui.pg_viewthread .one-share-pop[hidden]{display:none;}
.one-ui.pg_viewthread .one-share-title{margin:0 0 10px;color:var(--one-thread-ink);font-size:13px;font-weight:600;}
.one-ui.pg_viewthread .one-share-link{display:flex;gap:6px;margin-bottom:10px;}
.one-ui.pg_viewthread .one-share-link input{
  flex:1 1 auto;
  min-width:0;
  height:28px;
  padding:0 8px;
  border:1px solid var(--one-thread-line);
  border-radius:6px;
  background:#f8fafc;
  color:var(--one-muted);
  font-size:11px;
}
.one-ui.pg_viewthread .one-share-link button{
  flex:0 0 auto;
  height:28px;
  padding:0 10px;
  border:0;
  border-radius:6px;
  background:var(--one-accent);
  color:#fff;
  font-size:11px;
  cursor:pointer;
}
.one-ui.pg_viewthread .one-share-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;}
.one-ui.pg_viewthread .one-share-grid a{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:7px 0;
  border-radius:7px;
  color:var(--one-muted);
  font-size:11px;
}
.one-ui.pg_viewthread .one-share-grid a:hover{background:var(--one-thread-soft);color:var(--one-accent);}
.one-ui.pg_viewthread .one-share-grid .one-icon{width:18px;height:18px;}
.one-ui.pg_viewthread .one-thread-toast{
  position:fixed;
  z-index:9999;
  left:50%;bottom:64px;
  padding:8px 16px;
  border-radius:8px;
  background:rgba(15,23,42,.86);
  color:#fff;
  font-size:12px;
  transform:translateX(-50%);
}

/* ---------- 分页/旧结构兜底 ---------- */
.one-ui.pg_viewthread #postlist .pg{margin:0;}
.one-ui.pg_viewthread #postlist .plhin{width:100%;}
.one-ui.pg_viewthread #postlist .viewthread_table{width:100%;}

/* ---------- 响应式 ---------- */
@media (max-width:1319px){
  .one-ui.pg_viewthread .one-thread-rail{display:none;}
}
@media (max-width:1050px){
  .one-ui.pg_viewthread #ct.wp.one-reading-layout{
    grid-template-columns:minmax(0,1fr) 280px;
    gap:0 14px;
  }
  .one-ui.pg_viewthread .one-thread-heading-panel{padding:22px 22px 16px;}
  .one-ui.pg_viewthread .one-post-first,
  .one-ui.pg_viewthread .one-post-actions,
  .one-ui.pg_viewthread .one-post-footer,
  .one-ui.pg_viewthread .one-reading-replies{padding-left:22px;padding-right:22px;}
  .one-ui.pg_viewthread .one-related-threads{padding-left:22px;padding-right:22px;}
}
@media (max-width:860px){
  .one-ui.pg_viewthread #ct.wp.one-reading-layout{
    grid-template-columns:minmax(0,1fr);
    gap:16px;
    padding:0 14px 24px;
  }
  .one-ui.pg_viewthread #ct.one-reading-layout > .one-thread-intro{grid-column:1;}
  .one-ui.pg_viewthread #ct.one-reading-layout > .one-reading-main{grid-column:1;}
  .one-ui.pg_viewthread #ct.one-reading-layout > .one-reading-sidebar{grid-column:1;position:static;top:auto;}
  .one-ui.pg_viewthread .one-thread-breadcrumb{padding:12px 14px 8px;}
  .one-ui.pg_viewthread .one-thread-heading{padding:0;}
  .one-ui.pg_viewthread .one-thread-heading-side{flex-wrap:wrap;justify-content:flex-end;gap:8px;}
  .one-ui.pg_viewthread .one-thread-counts{display:none;}
}
@media (max-width:700px){
  .one-ui.pg_viewthread #ct.wp.one-reading-layout{padding:0 10px 20px;gap:12px;}
  .one-ui.pg_viewthread .one-thread-breadcrumb{padding:10px 10px 6px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .one-ui.pg_viewthread .one-thread-intro{min-height:0;margin-bottom:10px;}
  .one-ui.pg_viewthread .one-thread-intro #pgt{flex-wrap:wrap;gap:8px;}
  .one-ui.pg_viewthread .one-thread-intro #pgt .pgb{display:none;}
  .one-ui.pg_viewthread .one-thread-newtop{height:30px;padding:0 12px;font-size:12px;line-height:30px;}
  .one-ui.pg_viewthread #postlist.one-reading-article{border-radius:12px;}
  .one-ui.pg_viewthread .one-thread-heading-panel{padding:18px 16px 12px;}
  .one-ui.pg_viewthread .one-thread-heading{flex-direction:column;gap:10px;}
  .one-ui.pg_viewthread .one-thread-heading h1.ts{font-size:19px;line-height:1.45;}
  .one-ui.pg_viewthread .one-thread-heading-side{width:100%;justify-content:flex-start;padding-top:0;}
  .one-ui.pg_viewthread .one-thread-badge{height:22px;font-size:11px;}
  .one-ui.pg_viewthread .one-elevator label{display:none;}
  .one-ui.pg_viewthread .one-thread-title-meta{font-size:11px;gap:6px;margin-top:9px;}
  .one-ui.pg_viewthread .one-post-first,
  .one-ui.pg_viewthread .one-post-actions,
  .one-ui.pg_viewthread .one-post-footer,
  .one-ui.pg_viewthread .one-reading-replies{padding-left:16px;padding-right:16px;}
  .one-ui.pg_viewthread .one-post-first .one-post-body .t_f{font-size:14px;line-height:1.85;}
  .one-ui.pg_viewthread .t_f img,
  .one-ui.pg_viewthread .t_f img.zoom{margin:12px auto;border-radius:8px;}
  .one-ui.pg_viewthread .one-post-first #p_btn{margin-top:14px;padding:8px 0;gap:2px;}
  .one-ui.pg_viewthread .one-action{padding:5px 8px;font-size:12px;}
  .one-ui.pg_viewthread .one-action .one-icon{width:14px;height:14px;}
  .one-ui.pg_viewthread .one-post-footer .pob{flex-direction:column;align-items:flex-start;gap:8px;padding:10px 0 14px;}
  .one-ui.pg_viewthread .one-post-tools{flex-wrap:wrap;gap:12px;}
  .one-ui.pg_viewthread .one-related-threads{padding:16px;margin-top:16px;}
  .one-ui.pg_viewthread .one-related-threads ol{grid-template-columns:minmax(0,1fr);gap:0;}
  .one-ui.pg_viewthread .one-reading-replies-heading{padding:18px 0 12px;}
  .one-ui.pg_viewthread .one-reading-replies-heading h2{font-size:17px;}
  .one-ui.pg_viewthread .one-reply{grid-template-columns:36px minmax(0,1fr);gap:10px;padding:16px 0 12px;}
  .one-ui.pg_viewthread .one-reply-avatar{width:36px;}
  .one-ui.pg_viewthread .one-reply-avatar img,
  .one-ui.pg_viewthread .one-reply-avatar .user_avatar{width:34px;height:34px;}
  .one-ui.pg_viewthread .one-reply-meta{flex-wrap:wrap;gap:4px 6px;}
  .one-ui.pg_viewthread .one-reply-floor{order:3;margin-left:auto;padding-left:0;}
  .one-ui.pg_viewthread .one-reply-pcb .t_f{font-size:13px;}
  .one-ui.pg_viewthread .one-fast-reply{margin:16px 0 18px;}
  .one-ui.pg_viewthread .one-fast-reply-body{padding:12px 12px 0;}
  .one-ui.pg_viewthread .one-fast-reply-footer{flex-wrap:wrap;gap:8px;padding:10px 12px 12px;}
  .one-ui.pg_viewthread .one-fast-reply-tip{display:none;}
  .one-ui.pg_viewthread .one-reading-sidebar{position:static;top:auto;gap:12px;}
  .one-ui.pg_viewthread .one-side-card{padding:14px;}
  .one-ui.pg_viewthread .one-author-summary{padding:20px 16px 16px;}
  .one-ui.pg_viewthread .one-thread-bottom-bar{padding:0 10px 22px;}
  .one-ui.pg_viewthread .one-thread-bottom-tools{flex-wrap:wrap;gap:8px;}
  .one-ui.pg_viewthread .one-thread-bottom-tools .one-thread-newbottom{margin-left:0;height:32px;font-size:12px;line-height:32px;}
  .one-ui.pg_viewthread .one-share-pop{left:10px!important;right:10px;width:auto;}
}
