/* Original skin.css is preserved. These rules repair layout and scope its global selectors. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
#body { min-width: 960px; }
button, input, select, textarea { font-family: "宋体", SimSun, Arial, sans-serif; font-size: 13px; }
button, input[type="submit"], input[type="reset"] { cursor: pointer; }
img { border: 0; }
a { color: #006; }
a:visited { color: #369; }
a:hover { color: #f66; text-decoration: underline; }
#header { display: flex; align-items: stretch; }
#header #logo { display: block; flex: 0 0 180px; margin: 0; float: none; }
#header #banner { flex: 1; width: auto; margin: 0; float: none; }
#header #banner #bannermenu { float: none; }
#formlogin input:not([type="hidden"]) { height: 19px; padding: 0 2px; font-size: 12px; }
.inline-form { display: inline; }
.link-button { border: 0; padding: 0; color: #147; text-decoration: underline; background: none; font: inherit; }
#mmenu { display: flex; justify-content: space-between; }
#mmenu #mmtext { width: auto; float: none; }
.frame-actions { margin-right: 20px; }
.frame-actions a { font-size: 13px; }
#mainbody { overflow: auto; }
#mainbody #location { display: flex; justify-content: space-between; align-items: center; min-height: 43px; height: auto; gap: 10px; padding: 8px 5px 4px; }
#mainbody #location #l_name { float: none; clear: none; width: auto; margin: 0; }
#mainbody #location #r_ol { float: none; clear: none; width: auto; margin: 0; flex-shrink: 0; }
#mainbody #onlinelistbox #lists a:visited { color: #f66; }
.classic-nav { display: flex; justify-content: space-between; align-items: center; height: 35px; padding: 3px 8px; text-align: left; }
.classic-nav .button_menu { margin-right: 8px; }
.button-link { display: inline-block; text-decoration: none; min-width: 60px; text-align: center; line-height: 17px; }
.page-links { white-space: nowrap; }
.page-links a { margin: 0 3px; }
.page-input { width: 45px; height: 20px; }
.button_tj { min-width: 46px; padding-left: 7px; padding-right: 7px; }
#mainbody #mainbox { padding: 4px 2px; }
.tree-list .topic-tree { margin-top: 4px !important; margin-bottom: 5px !important; }
.tree-row { line-height: 20px; }
.tree-row img { vertical-align: middle; }
.post-face { vertical-align: middle; }
.post-flag { vertical-align: middle; }
.post-length { font-size: 12px; }
.post-date { white-space: nowrap; }
.read-count { color: #f00; }
.current-post > .tree-row { background: #dce9f2; }
.current-post > .tree-row > a[aria-current] { font-weight: bold; color: #b31c1c; }
.empty-state { padding: 16px; text-align: left; margin: 0; }
.muted, .editor-hint { color: #666; }
.home-body { padding: 0 3px 3px; }
.home-layout { width: 100%; }
.board-column { vertical-align: top; }
.home-sidebar { width: 300px; vertical-align: top; }
.category-box { border: 1px solid #afc6dd; width: 99%; margin: 4px 0; }
.category-heading { height: 24px; line-height: 24px; font-size: 14px; font-weight: bold; padding-left: 6px; text-align: left; background: #d3e0ed; }
.board-summary { display: flex; margin: 0 7px 0 12px; border-bottom: 1px solid #afc6dd; min-height: 93px; padding: 7px 0; text-align: left; }
.board-summary:last-child { border-bottom: 0; }
.board-icon { width: 78px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.board-icon img { max-width: 70px; max-height: 66px; }
.board-description { flex: 1; min-width: 0; }
.board-name { font-size: 14px; line-height: 24px; }
.board-name img { vertical-align: middle; }
.board-moderators { float: right; font-size: 12px; padding: 3px 0; }
.board-intro { line-height: 22px; clear: left; }
.board-statistics { font-size: 12px; line-height: 20px; }
.sidebar-box { margin: 4px 2px; border: 1px solid #afc6dd; width: 97%; }
.sidebar-heading { min-height: 22px; line-height: 22px; padding-left: 6px; text-align: left; background: #d3e0ed; font-weight: bold; }
.sidebar-content { text-align: left; padding: 3px; line-height: 18px; }
.recent-post { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.online-box { border: 1px solid #afc6dd; margin: 3px 2px; width: 99%; }
.post-detail { width: 100%; table-layout: fixed; }
.left_detail { width: 180px; vertical-align: top; padding: 6px; }
.avatar { margin: 6px 0; }
.right_detail { vertical-align: top; padding: 6px; }
.post-heading { font-size: 14px; min-height: 28px; padding: 2px 0 5px; }
.post-meta { font-size: 12px; border-bottom: 1px solid #afc6dd; padding: 3px 0 5px; }
.reply-context { font-size: 12px; color: #666; margin: 8px 0; }
.post-content { min-height: 150px; padding: 12px 0 18px; line-height: 1.65; overflow-wrap: anywhere; white-space: normal; }
.signature { padding: 5px 0; color: #555; }
.post-image { max-width: min(100%, 800px); height: auto; }
blockquote { margin: 8px 20px; padding: 8px; border: 1px solid #afc6dd; }
pre { white-space: pre-wrap; border: 1px solid #afc6dd; background: #f7f7f7; padding: 8px; }
.ubb-center { text-align: center; }
.ubb-red { color: #f00; } .ubb-blue { color: #000099; } .ubb-green { color: #009900; } .ubb-gray { color: #808080; }
.ubb-size-1 { font-size: 10px; } .ubb-size-2 { font-size: 13px; } .ubb-size-3 { font-size: 16px; }
.ubb-size-4 { font-size: 18px; } .ubb-size-5 { font-size: 24px; } .ubb-size-6 { font-size: 32px; } .ubb-size-7 { font-size: 40px; }
.unsupported-media { color: #777; }
.reply-target { padding: 7px; text-align: left; }
.posttb { width: 100%; }
.editor-label { width: 90px; }
.tdleft { padding: 4px 8px; vertical-align: middle; }
.tdright { padding: 5px; }
.topic-input { width: min(78%, 760px); height: 24px; }
.face-cell { padding: 6px; }
.no-face { display: block; margin-bottom: 3px; }
.face-picker { display: grid; grid-template-columns: repeat(12, 44px); width: max-content; row-gap: 3px; }
.face-option { display: flex; align-items: center; height: 24px; border: 1px solid transparent; cursor: pointer; }
.face-option:has(input:checked) { border-color: #7a9bb9; background: #d3e0ed; }
.face-option input { margin: 0 3px 0 0; }
.face-option img { object-fit: fill; }
.ubb-toolbar button { border: 0; padding: 1px; background: none; vertical-align: middle; }
.ubb-toolbar img { vertical-align: middle; }
.content-cell textarea { display: block; width: min(100%, 860px); padding: 4px; line-height: 1.5; resize: vertical; }
.submit-cell { height: 36px; }
.login-form { padding: 30px 0; text-align: center; }
.login-form > div { margin: 9px; }
.login-form label { display: inline-block; width: 70px; }
.login-form input { width: 180px; height: 25px; }
.profile-table { margin: 18px auto; min-width: 600px; text-align: left; }
.profile-table .ltd { width: 120px; }
.search-form { text-align: left; margin: 15px; }
.search-form input { width: 360px; }
.search-result { padding: 8px; border-bottom: 1px solid #afc6dd; }
.search-pages { padding: 12px; text-align: right; }
.help-content { padding: 8px 14px; text-align: left; line-height: 1.6; }
.face-gallery { display: grid; grid-template-columns: repeat(12, 1fr); padding: 12px; gap: 6px; }
.face-gallery figure { margin: 0; border: 1px solid #afc6dd; padding: 6px 3px; min-height: 65px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 5px; }
.face-gallery img { max-width: 100%; }
.message-wrap { padding: 50px 0; }
.msgtable { padding-bottom: 8px; }
.msgtable p { margin: 18px 10px; }
#footer { height: auto; min-height: 80px; padding: 9px 0; line-height: 19px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.frame-body { display: flex; margin: 0; height: 100vh; overflow: hidden; background: #607080; font: 13px "宋体", SimSun, sans-serif; }
.frame-sidebar { flex: 0 0 140px; background: #eee; padding: 5px; overflow: auto; }
.frame-sidebar > a > img { max-width: 125px; }
.frame-sidebar p { text-align: left; padding-left: 4px; }
.frame-sidebar p img { vertical-align: middle; }
.frame-divider { width: 8px; border: 0; padding: 0; color: #eee; background: #607080; font-size: 14px; }
.frame-content { border: 0; flex: 1; min-width: 0; height: 100vh; }
