/* ===== fmce post page: content first ===== */
/* only loaded by forum/viewthread.htm */

/* 1. remove DIY top blocks (showcase + vip banner) on thread pages */
#diynavtop { display: none !important; }

/* 2. compress header on thread pages */
.fmce_hotnav { display: none !important; }
.fmce_v98 { padding-bottom: 8px !important; }

/* 3. layout */
#ct { padding-top: 14px !important; }
#postlist { margin-top: 4px; }
#pt { font-size: 13px; color: #9aa0a6; padding: 6px 0 10px; }
#pt a { color: #9aa0a6; }

/* 4. thread title */
#thread_subject {
  font-size: 26px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #1b1d21 !important;
  letter-spacing: .2px;
}
.ts { font-size: 13px; color: #9aa0a6; }

/* 5. body copy */
#postlist .t_f {
  font-size: 17px !important;
  line-height: 1.95 !important;
  color: #26282b !important;
  letter-spacing: .2px;
  word-break: break-word;
  padding: 6px 0 4px;
}
#postlist .t_f p { margin: 0 0 18px !important; }
#postlist .t_f strong { color: #1b1d21 !important; }
#postlist .t_f h1,
#postlist .t_f h2,
#postlist .t_f h3 {
  color: #1b1d21;
  font-weight: 700;
  letter-spacing: .2px;
}
#postlist .t_f h2 { font-size: 22px; margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid #c8201c; }
#postlist .t_f h3 { font-size: 18px; margin: 24px 0 12px; }

/* 6. images */
#postlist .t_f img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
}
#postlist .t_f .zoom:hover { opacity: .96; }

/* 7. code block */
#postlist .blockcode {
  margin: 22px 0;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f8fa;
}
#postlist .blockcode .p {
  height: auto;
  padding: 9px 14px;
  font-size: 12px;
  color: #6b7280;
  background: #f1f3f6;
  border-bottom: 1px solid #e6e8ec;
  line-height: 1.6;
}
#postlist .blockcode .p em { color: #c8201c; font-style: normal; }
#postlist .blockcode ol {
  margin: 0;
  padding: 14px 18px 14px 46px;
  background: #fff;
  font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.9;
  color: #333a45;
  overflow-x: auto;
  border-radius: 0;
}
#postlist .blockcode li { white-space: pre; }

/* 8. quote */
#postlist .quote {
  margin: 20px 0;
  padding: 14px 18px;
  background: #faf8f4;
  border-left: 4px solid #c8201c;
  border-radius: 0 8px 8px 0;
  color: #4d5259;
  font-size: 15px;
}
#postlist .quote blockquote { margin: 0; padding: 0; background: none; border: 0; }

/* 9. tables */
#postlist .t_f table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14px;
  background: #fff;
}
#postlist .t_f table td,
#postlist .t_f table th {
  border: 1px solid #e8eaee;
  padding: 10px 12px;
  line-height: 1.7;
}
#postlist .t_f table th { background: #fafbfc; font-weight: 600; }

/* 10. floor bar / actions quieter */
#postlist .pi { border-bottom: 1px solid #f0f1f3; }
.pls, .plc { font-size: 13px; }

/* 11. side widgets softer */
#postlist ~ div .bm, .bm_c { border-color: #eef0f3; }

/* 12. headings inside post must be left aligned */
#postlist .t_f h1,
#postlist .t_f h2,
#postlist .t_f h3 { text-align: left !important; }
#postlist .t_f h1 { font-size: 24px !important; line-height: 1.5 !important; margin: 26px 0 14px !important; }

/* 13. kill horizontal scroll */
html, body { overflow-x: hidden !important; }
#postlist, #postlist .t_f { max-width: 100% !important; overflow-wrap: break-word; }
#postlist .t_f table { table-layout: fixed; width: 100% !important; }

/* 14. narrow author column */
#postlist .pls { width: 118px !important; }
#postlist .plc { padding-left: 16px !important; }
#postlist .pls .avatar { width: 90px !important; height: 90px !important; }

/* 15. tone */
#postlist .pgbtn, #postlist .pnc a { color: #c8201c !important; }
/* 16. fix hard-coded 1200px content width (caused clipped body on narrow screens) */
#ct.wp, #ct { width: auto !important; max-width: 1200px !important; box-sizing: border-box !important; }

/* 17. legacy <font size> / <center> tags inside posts */
#postlist .t_f center { text-align: left !important; }
#postlist .t_f font[size="7"] { font-size: 26px !important; line-height: 1.5 !important; }
#postlist .t_f font[size="6"] { font-size: 23px !important; line-height: 1.55 !important; }
#postlist .t_f font[size="5"] { font-size: 19px !important; line-height: 1.6 !important; }
#postlist .t_f font[size="4"] { font-size: 17px !important; }
/* 18. root cause: .wp fixed 1200px clipped everything on narrower screens */
.wp, #wp, #ct.wp { width: auto !important; max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }
/* 19. force left align on legacy centered title blocks */
#postlist .t_f center,
#postlist .t_f [align="center"],
#postlist .t_f div[style*="center"],
#postlist .t_f p[style*="center"] { text-align: left !important; }

/* 20. keep body clear of the fixed service widget on narrow screens */
@media (max-width: 1150px) {
  #postlist .plc { padding-right: 96px !important; }
}
/* 21. code lines: source pasted as one long line, allow wrap so it is readable */
#postlist .blockcode li { white-space: pre-wrap !important; word-break: break-all; overflow-wrap: anywhere; }
#postlist .blockcode ol { max-height: none; }
/* 22. move service widget down so first screen belongs to the article */
@media (max-width: 1150px) {
  .main-im { top: auto !important; bottom: 130px !important; }
}

/* 23. primary buttons tone */
#newspecial, #newspecialtmp { background: #c8201c !important; border-color: #a91a17 !important; }
/* ===== 帖子页：去左栏 + 右栏 ===== */
body.fmce-thread #ct{padding-right:266px!important;position:relative;}
body.fmce-thread #postlist .pls{display:none!important;}
body.fmce-thread #postlist .pl{overflow:visible!important;}
body.fmce-thread #postlist .pct{margin-left:0!important;width:auto!important;float:none!important;}
body.fmce-thread #postlist .pcb{margin:0!important;padding-left:0!important;}

.fmce-thread-side{position:absolute;right:0;top:58px;width:250px;}
.ts-forum a{display:block;background:#fff;border:1px solid #e9ecf1;border-radius:8px;padding:12px 14px;margin-bottom:12px;}
.ts-forum b{display:block;font-size:13.5px;color:#3a3f47;}
.ts-forum span{display:block;font-size:11.5px;color:#e8465e;margin-top:4px;}
.ts-box{background:#fff;border:1px solid #e9ecf1;border-radius:8px;padding:12px 14px;margin-bottom:12px;}
.ts-box h3{font-size:13.5px;color:#3a3f47;margin:0 0 10px;padding-left:9px;border-left:3px solid #e8465e;line-height:1.1;font-weight:700;}
.ts-rank{list-style:none;margin:0;padding:0;}
.ts-rank li{padding:7px 0;border-bottom:1px dashed #eef0f4;font-size:12.5px;line-height:1.5;}
.ts-rank li:last-child{border:0;}
.ts-rank i{display:inline-block;width:16px;height:16px;line-height:16px;text-align:center;background:#f0f2f5;color:#8b93a1;border-radius:3px;font-size:11px;font-style:normal;margin-right:7px;}
.ts-rank li:nth-child(1) i{background:#e8465e;color:#fff;}
.ts-rank li:nth-child(2) i{background:#f5873c;color:#fff;}
.ts-rank li:nth-child(3) i{background:#f0b429;color:#fff;}
.ts-rank a{color:#3a3f47;}
.ts-rank a:hover{color:#e8465e;}
.ts-new{list-style:none;margin:0;padding:0;}
.ts-new li{padding:7px 0;border-bottom:1px dashed #eef0f4;}
.ts-new li:last-child{border:0;}
.ts-new em{display:block;font-style:normal;font-size:12.5px;line-height:1.5;color:#3a3f47;max-height:38px;overflow:hidden;}
.ts-new i{display:block;font-style:normal;font-size:11px;color:#a3aab6;margin-top:2px;}
.ts-vip a{display:block;background:linear-gradient(135deg,#e8465e,#c9304a);border-radius:8px;padding:14px;color:#fff;text-align:center;}
.ts-vip b{display:block;font-size:15px;}
.ts-vip span{display:block;font-size:11.5px;opacity:.9;margin-top:4px;}

.fmce-dl-tip{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff8f4;border:1px solid #fbdccb;border-radius:8px;padding:14px 16px;margin:14px 0;}
.fmce-dl-tip .dt-l b{display:block;font-size:14px;color:#c9304a;}
.fmce-dl-tip .dt-l p{margin:5px 0 0;font-size:12.5px;color:#7d8794;line-height:1.6;}
.fmce-dl-tip .dt-btn{flex:none;display:inline-block;background:linear-gradient(135deg,#e8465e,#c9304a);color:#fff;font-size:13px;padding:9px 18px;border-radius:20px;white-space:nowrap;}
/* v3 微调：右栏避开客服竖条 */
body.fmce-thread #ct{padding-right:330px!important;}
.fmce-thread-side{right:78px!important;width:238px!important;}
#main-im{right:0!important;}
#open_im{right:0!important;}
/* v3 微调：右栏避开客服竖条 */
body.fmce-thread #ct{padding-right:330px!important;}
.fmce-thread-side{right:78px!important;width:238px!important;}
#main-im{right:0!important;}
#open_im{right:0!important;}

.fmce-unlock-vip{display:inline-block;margin-left:10px;height:38px;line-height:38px;padding:0 18px;border-radius:19px;background:#fff;border:1px solid #f0b9c3;color:#e8465e;font-size:13.5px;font-weight:700;text-decoration:none;vertical-align:middle}
.fmce-unlock-vip:hover{background:#fff5f7}

.fmce_disclaimer{margin:18px 0 8px;padding:16px 20px 15px;background:#fbf8f9;border:1px solid #efe2e8;border-left:3px solid #c2185b;border-radius:8px;}
.fmce_disclaimer .fmce_dc_h{font-size:14px;font-weight:700;color:#a3164c;margin:0 0 8px;letter-spacing:.5px;}
.fmce_disclaimer .fmce_dc_h i{display:inline-block;width:4px;height:13px;background:#c2185b;border-radius:2px;margin-right:8px;vertical-align:-1px;}
.fmce_disclaimer .fmce_dc_b{font-size:12px;line-height:23px;color:#7b6b71;}
.fmce_disclaimer .fmce_dc_b em{font-style:normal;color:#a3164c;}
.ts-user{position:relative;background:#fff;border:1px solid #eef0f4;border-radius:10px;padding:14px;margin-bottom:14px;box-shadow:0 1px 4px rgba(17,24,39,.05);}
.ts-u-top{display:flex;align-items:center;gap:11px;}
.ts-u-av{width:52px;height:52px;border-radius:50%;object-fit:cover;display:block;background:#f2f3f5;border:2px solid #fff;box-shadow:0 0 0 1px #eef0f4;}
.ts-u-av-guest{display:flex;align-items:center;justify-content:center;color:#b8bdc6;font-size:22px;font-weight:700;border:1px dashed #d9dde3;box-shadow:none;}
.ts-u-meta{min-width:0;flex:1 1 auto;}
.ts-u-meta b{display:block;font-size:14.5px;color:#1b1f24;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ts-u-meta span{display:inline-block;margin-top:4px;font-size:11px;line-height:1.5;color:#c9184a;background:#fdeef1;padding:1px 7px;border-radius:3px;}
.ts-u-warn .ts-u-av{box-shadow:0 0 0 2px rgba(232,70,94,.55),0 0 14px 3px rgba(232,70,94,.45);border-color:#ffe3e8;animation:tsGlow 1.6s ease-in-out infinite;}
@keyframes tsGlow{0%,100%{box-shadow:0 0 0 2px rgba(232,70,94,.45),0 0 10px 2px rgba(232,70,94,.30);}50%{box-shadow:0 0 0 3px rgba(232,70,94,.70),0 0 18px 5px rgba(232,70,94,.55);}}
.ts-u-exp{margin-top:11px;padding-top:10px;border-top:1px dashed #f0f1f4;font-size:12px;color:#8a929c;display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.ts-u-exp em{font-style:normal;color:#1b1f24;font-weight:700;font-size:12.5px;}
.ts-u-exp i{font-style:normal;color:#c9184a;background:#fdeef1;border-radius:3px;padding:1px 6px;font-size:11px;}
.ts-u-stat{display:grid;grid-template-columns:repeat(3,1fr);margin-top:10px;text-align:center;}
.ts-u-stat a{text-decoration:none!important;display:block;padding:5px 0;}
.ts-u-stat b{display:block;font-size:14px;color:#1b1f24;font-weight:800;line-height:1.3;}
.ts-u-stat span{display:block;font-size:11px;color:#a3aab3;margin-top:2px;}
.ts-u-login{display:block;margin-top:11px;text-align:center;background:#c8201c;color:#fff!important;border-radius:6px;line-height:32px;font-size:12.5px;text-decoration:none!important;font-weight:600;}
.ts-u-login:hover{background:#a91613;}

.ts-notice h3{margin:0 0 5px;font-size:12.5px;font-weight:800;color:#1b1f24;padding-left:0;border:none;}
.ts-notice h3 + p{margin:0 0 11px;font-size:11.5px;line-height:1.75;color:#8b929c;}
.ts-notice h3:last-of-type + p{margin-bottom:0;}
