/* Touch forum refresh: loaded after the original Discuz mobile stylesheet. */
html, body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif; font-size: 15px; color: #293e34; }
body.bg { background: #f7f4ec; }
input, select, textarea, button { font-size: 16px; }
input, textarea, select { box-sizing: border-box; max-width: 100%; }
.nav { background: #fff; border-bottom: 1px solid #dedbcf; color: #293e34; padding: 12px 16px; height: 32px; }
.nav .name { font-size: 18px; font-weight: 600; text-overflow: ellipsis; }
.nav > a.z { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -6px 0; }
.nav .icon_edit a { width: 44px; height: 44px; margin-top: -6px; background: #edf0e8; text-indent: 0; line-height: 44px; border-radius: 12px; color: #304f42; }
.nav .icon_edit a:after { content: "+"; font-size: 28px; }
.nav .icon_edit a:hover { background: #e4e9dd; }
.btn_pn, .button, .button2 { min-height: 44px; background: #304f42; border: 0; border-radius: 10px; color: #fff; padding: 0 14px; width: auto; }
.ui-threadlist { background: #fff; margin: 12px; border-radius: 14px; overflow: hidden; border: 1px solid #dedbcf; }
.ui-threadlist li { border-bottom: 1px solid #edf0f5; }
.ui-threadlist li:last-child { border-bottom: 0; }
.ui-threadlist li > a { padding: 18px 16px; }
.ui-thread-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; line-height: 1.55; font-weight: 600; color: #293e34; padding-right: 12px; }
.ui-threadlist .by { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding-right: 80px; font-size: 13px; line-height: 1.5; color: #65758b; }
.ui-threadlist .by > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-thread-time { flex-shrink: 0; }
.ui-threadlist .num { background: none; right: 16px; bottom: 18px; padding: 0; color: #65758b; font-size: 13px; }
.ui-threadlist .icon_top, .ui-threadlist .icon_tu { left: auto; right: 5px; top: 5px; }
.ui-postlist { background: #fff; padding-bottom: 8px; }
.ui-postlist h2 { margin: 0; padding: 24px 16px 20px; font-size: 23px; line-height: 1.5; overflow-wrap: anywhere; }
.ui-postlist .plc { border-color: #dedbcf; padding: 16px; overflow: visible; }
.ui-postlist .plc .avatar { left: 16px; top: 16px; }
.ui-postlist .avatar img { border: 0; padding: 0; border-radius: 50%; }
.ui-postlist .plc .pi { margin: 0; padding: 0; }
.ui-postlist .authi { padding-left: 46px; min-height: 40px; font-size: 13px; color: #65758b; }
.ui-postlist .plc .pi .message { margin-top: 16px; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.ui-postlist .plc .pi .message img, .ui-postlist .plc .pi .img_one img { max-width: 100%; max-height: none; height: auto; box-sizing: border-box; }
.ui-postlist .message img[smilieid] { max-width: 32px; vertical-align: middle; }
.ui-postlist .message table { display: block; max-width: 100%; overflow-x: auto; }
.ui-postlist .message pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.ui-postlist .plc .pi .message .quote { border: 0; border-left: 3px solid #9fb8e1; background: #f3f6fb; border-radius: 0 10px 10px 0; padding: 12px 14px; margin: 16px 0; font-size: 15px; color: #53647d; }
.ui-quote-reply { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 14px; background: #edf0e8; border-radius: 10px; }
a.ui-quote-reply { color: #304f42; font-size: 14px; }
.ui-postlist .fastpost { margin-left: 46px; }
.ui-postlist .fastpost .input { min-height: 46px; border-radius: 10px; border-color: #d2dbe8; }
.ui-reply-dock { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: flex; gap: 12px; padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #dedbcf; box-shadow: 0 -4px 20px rgba(30, 50, 80, .06); }
.ui-reply-dock > a, .ui-reply-dock > span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.ui-dock-back { flex: 1; background: #f0f3f8; }
a.ui-dock-primary { flex: 2; background: #304f42; color: #fff; }
.ui-dock-disabled { flex: 2; background: #f0f3f8; color: #65758b; }
body:has(.ui-reply-dock) { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
.ui-postlist ~ .footer { padding-bottom: 90px; }
.ui-postlist ~ .scrolltop { bottom: 88px; }
.footer { padding: 24px 12px; line-height: 2; }
.footer a { display: inline-block; padding: 6px 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #9b8651; outline-offset: 3px; }
@media (min-width: 760px) {
 .ui-threadlist, .ui-postlist { max-width: 720px; margin-left: auto; margin-right: auto; }
 .ui-reply-dock { max-width: 720px; margin: auto; box-sizing: border-box; }
}
.ui-postlist .plc .pi .message { margin-left: 0; } .ui-threadlist li > a > img { float: right; max-width: 18px; } .ui-postlist .pi .img_one { margin-left: 0; }
body#wrap .s-daohang { background: #304f42; } .ui-postlist ~ #bottomhint { display: none; } .postbutton a.post { background: #304f42 !important; border-radius: 10px; min-height: 44px; line-height: 44px; } .ui-threadlist li { border-top: 0; }
.footer { box-sizing: border-box; width: 100%; } .ui-thread-time { font-weight: normal; } .ui-postlist .pi { position: relative; } body:has(.ui-reply-dock) #bottomhint { display: none; }

/* Shared visual language with the modern case library. */
body.bg, #sb-site.bg { background: #f7f4ec; }
body#wrap .s-daohang { height: 72px; background: #f7f4ec; border-bottom: 1px solid #dedbcf; box-sizing: border-box; }
#sb-site { padding-top: 72px; }
.s-daohang > .s-width-50 { height: 72px; display: flex; align-items: center; }
.s-daohang > .s-width-50 > a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 6px; border-radius: 50%; background: #304f42; }
.s-daohang > .s-width-50 > a img { height: 36px; width: 36px; }
.s-daohang .ui-brand { display: flex; align-items: center; justify-content: flex-start; gap: 10px; height: 72px; margin-left: 60px; color: #304f42; text-align: left; }
.ui-brand-seal { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #9b8651; border-radius: 50%; font: 23px Georgia, "Noto Serif TC", "PMingLiU", serif; }
.ui-brand-copy { display: flex; flex-direction: column; gap: 2px; }
.ui-brand-copy strong { font: 600 20px/1.4 Georgia, "Noto Serif TC", "PMingLiU", serif; letter-spacing: 1px; }
.ui-brand-copy small { color: #8a754b; font-size: 11px; letter-spacing: 3px; }
.ui-forum-heading { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 22px 16px 10px; box-sizing: border-box; }
.ui-forum-copy { flex: 1; min-width: 0; }
.ui-eyebrow { display: block; margin-bottom: 5px; color: #8a754b; font-size: 11px; letter-spacing: 2px; }
.ui-forum-heading h1 { font: 600 24px/1.4 Georgia, "Noto Serif TC", "PMingLiU", serif; color: #304f42; overflow-wrap: anywhere; }
.ui-forum-heading a.ui-new-thread { float: none; margin: 0; padding: 0 16px; white-space: nowrap; flex-shrink: 0; font-size: 14px; border-radius: 24px; }
.ui-forum-heading .qt { flex-shrink: 0; }
.ui-threadlist { margin: 12px 16px 20px; border-color: #dedbcf; background: #fffdf8; border-radius: 14px; }
.ui-threadlist li { border-color: #e8e5dc; }
.ui-thread-title { color: #293e34; font-weight: 600; }
.ui-threadlist .by, .ui-threadlist .num { color: #6b756e; }
.ui-threadlist .by { gap: 8px; padding-right: 62px; }
.ui-postlist { background: #fffdf8; }
.ui-postlist h2 { color: #293e34; font-family: Georgia, "Noto Serif TC", "PMingLiU", serif; border-color: #e8e5dc; }
.ui-postlist .plc { border-color: #e8e5dc; }
.ui-postlist .plc .pi .message { color: #303c35; }
.ui-postlist .plc .pi .message .quote { border-left-color: #9b8651; background: #f3f0e6; color: #5c665e; }
.ui-quote-reply, .ui-dock-back { background: #edf0e8; }
a.ui-quote-reply { color: #304f42; }
.ui-reply-dock { background: #f7f4ec; border-color: #dedbcf; }
a.ui-dock-primary, .postbutton a.post { background: #304f42 !important; }
.ui-reply-dock > a, .ui-reply-dock > span { border-radius: 24px; }
.nav { background: #fffdf8; border-color: #dedbcf; color: #304f42; }
.footer { color: #6b756e; border-top: 1px solid #dedbcf; margin-top: 20px; }
.sb-slidebar { background: #304f42; }
.ui-threadlist a:active { background: #f0eee4; }
@media (max-width: 350px) {
 .ui-brand-seal { display: none; }
 .ui-brand-copy strong { font-size: 18px; }
 .ui-forum-heading { padding-left: 12px; padding-right: 12px; }
 .ui-forum-heading h1 { font-size: 22px; }
 .ui-threadlist { margin-left: 12px; margin-right: 12px; }
 .ui-threadlist .by { gap: 6px; font-size: 12px; }
}
.forumlistnve.ui-forum-heading { height: auto; min-height: 96px; width: 100%; margin: 0; background: #f7f4ec; } .ui-forum-heading h1 { margin: 0; }
.ui-postlist a.blue, .ui-postlist a.blue:visited, .ui-postlist a.blue:hover { color: #304f42; } .ui-postlist .authi a { font-weight: 600; }
/* Distinguish the active forum from the modern articles and case library. */
.ui-brand-copy strong { font-size: 17px; letter-spacing: 0; white-space: nowrap; }
.ui-forum-label { display: inline-block; margin-left: 7px; padding: 2px 6px; border: 1px solid #b9c6b9; border-radius: 4px; background: #edf0e8; font: 600 11px/1.5 -apple-system, BlinkMacSystemFont, 'Microsoft JhengHei', sans-serif; vertical-align: middle; }
.ui-brand-copy small { font-size: 11px; letter-spacing: 1px; color: #667468; }
.ui-site-switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #dedbcf; background: #edf0e8; font-size: 11px; color: #667468; }
.ui-site-switch a { display: inline-flex; align-items: center; min-height: 32px; color: #304f42; font-weight: 600; white-space: nowrap; }
@media (max-width: 350px) { .ui-brand-copy strong { font-size: 16px; } .ui-forum-label { margin-left: 5px; padding: 2px 4px; font-size: 10px; } .ui-site-switch { padding-left: 12px; padding-right: 12px; gap: 4px; } }
/* Historical context remains visible above the original forum content. */
.history-notice { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 18px 0; padding: 18px 22px; border: 1px solid #d8ceb6; border-left: 4px solid #98815a; border-radius: 6px; background: #f7f3e9; color: #555b50; }
.history-notice strong { display: block; margin-bottom: 5px; font-size: 16px; color: #594e36; }
.history-notice p { margin: 0; font-size: 13px; line-height: 1.7; }
.history-notice > a { flex-shrink: 0; color: #304f42; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

#sb-site > .history-notice, body.bg > .history-notice { display: block; margin: 12px; padding: 14px 16px; }
#sb-site > .history-notice strong, body.bg > .history-notice strong { font-size: 14px; }
#sb-site > .history-notice p, body.bg > .history-notice p { font-size: 12px; }
#sb-site > .history-notice > a, body.bg > .history-notice > a { display: inline-flex; align-items: center; min-height: 40px; margin-top: 3px; font-size: 12px; }
.ui-brand-copy small { letter-spacing: 0; font-size: 10px; }

/* Compact brand image; archive label remains readable on narrow screens. */
.s-daohang .ui-brand { margin-right: 12px; }
.s-daohang .ui-brand-copy { min-width: 0; gap: 3px; }
.s-daohang .history-brand-logo { display: block; width: 190px; max-width: 100%; height: auto; }
.s-daohang .history-mobile-label { color: #594e36; font: 600 12px/1.4 'Microsoft JhengHei', sans-serif; letter-spacing: 1px; }
.history-default-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; background: #f7f4ec; color: #594e36; }
.history-default-brand .history-brand-logo { width: 220px; max-width: 100%; height: auto; }
.history-default-brand strong { font-size: 12px; }
@media (max-width: 350px) { .s-daohang .history-brand-logo { width: 170px; } }