/* Shared community surfaces */
body.nhead_body, body.board-profile, body.board-editor {
  background: #f1f1f3;
  color: #292637;
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}
.nhead_body .main.canvi-content, .board-profile .container640, .board-profile #user-comment,
body.board-editor, .board-editor #box {
  width: 100%; max-width: 960px !important; margin: 0 auto; box-sizing: border-box;
}
.nhead_body .main.canvi-content { background: #fff; }
.board-layout { padding: 0 40px 40px; }
.board-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.board-actions a { color: #595766; font-size: 14px; }
.board-mast {
  margin: 0; min-height: 88px; padding: 16px 0; box-sizing: border-box; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff;
}
.board-mast h1 { margin: 0; padding: 0; border: 0; color: #292936; font: 650 26px/1.2 -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; }
.board-mast .board-back { display: inline-block; color: #6259be; font-size: 13px; margin-bottom: 10px; }
.board-write { flex: none; border: 0; background: #665add; color: #fff; padding: 8px 16px; border-radius: 5px; font: inherit; font-size: 14px; cursor: pointer; }
.board-layout .xy-head { position: static; border-radius: 0; display: flex; justify-content: flex-start; background: #fff; border: 0; border-bottom: 1px solid #e7e7ee; box-sizing: border-box; margin: 0; padding: 0; width: 100%; height: auto; }
.board-layout .xy-head a { flex: 0 1 110px; float: none; color: #555560; line-height: 42px; font-size: 14px; border-radius: 0; border-bottom: 2px solid transparent; }
.board-layout .xy-head a.cur { background: transparent; color: #564acf; border-color: #766af3; font-weight: 600; }
.board-layout #d-talk { background: transparent; width: 100%; margin: 0; }
.board-mast + #d-talk { margin-top: 14px; }
.board-layout .n-item, .board-profile .n-item, .board-layout .roof-placement, .board-layout .none-msg {
  padding: 20px; margin: 0 0 10px; box-sizing: border-box; background: #fff; border: 1px solid #e9e9ed; border-radius: 6px;
}
.board-layout .n-item, .board-layout .roof-placement {
  margin: 0; border: 0; border-bottom: 1px solid #e9e9ee; border-radius: 0;
}
.board-layout .n-item { padding: 24px 0; }
.board-layout .roof-placement { padding: 14px 0; background: #fff; }
.board-layout .roof-placement a { color: #484852; }
.board-layout .roof-placement span.zd { background: #eeedff; color: #534ab3; margin-right: 9px; }
.n-item .meta { min-width: 0; }
.n-item .meta .title .man { color: #5049a3; font-weight: 650; }
.n-item .meta .desc, .n-item .meta .desc a { color: #2b2935; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.n-item .r-game { border-radius: 10px; background-color: #f6f6f9; }
.n-item .r-game .r-btn { color: #57416e; }
.n-item .r-com .com-inner, .n-item .r-com .like-com-inner { background-color: #f6f6f9; }
.n-item .r-com .c-name { color: #614d76; }
.board-layout .n-item .u-img a { overflow: hidden; border-radius: 8px; }
.n-item .u-img a img { border-radius: 8px; object-fit: cover; object-position: center; }
.board-layout .n-item .r-game .r-btn, .board-profile .n-item .r-game .r-btn { background: #eeedff; color: #5147b2; box-shadow: none; }
.board-layout .n-item .r-com .com-inner, .board-layout .n-item .r-com .like-com-inner { border-radius: 8px; }
.board-layout .more-info { text-align: center; color: #655c72; }
.board-layout a:focus-visible, .board-write:focus-visible { outline: 3px solid #9a7cba; outline-offset: 2px; }
.board-layout.board-touch { display: flex; flex-direction: column; height: 100vh; height: 100dvh; box-sizing: border-box; padding-bottom: 0; }
.board-touch > .board-mast, .board-touch > .xy-head { flex: none; }
.board-layout.board-touch #d-talk { position: relative; inset: auto; top: auto; bottom: auto; flex: 1; min-height: 0; overflow: hidden; }
.weui_dialog.weui_dialog_comment { border-radius: 16px; max-width: 480px; }
.board-profile .container, .board-profile #user-comment { max-width: 960px; margin: auto; }
.board-profile-nav { padding: 12px 18px; background: #fff; text-align: left; }
.board-profile-nav a { color: #574cc6; font-size: 14px; }
.board-editor #box { padding: 18px; background: white; min-height: 60vh; border-radius: 0 0 16px 16px; }
.board-editor #box .module-topbar { background: #5049a3; color: white; max-width: 960px !important; left: 0; right: 0; margin: auto; }
.board-editor .module-topbar a, .board-editor .module-topbar .title, .board-editor .module-topbar .zishu { color: white; }
.board-editor .txt-publisher-wrapper { padding: 12px; border: 1px solid #ded8e6; border-radius: 12px; background: #faf9fc; }
.board-editor #txt-publisher { width: 100%; min-height: 160px; box-sizing: border-box; background: transparent; color: #302b39; line-height: 1.65; font-family: inherit; font-size: 16px; }
.board-editor #txt-publisher:focus { outline: 2px solid #b6a7c4; outline-offset: 3px; }
.board-editor #submit_bar .submit, .weui_dialog_ft #resub { background: #665add; color: white; border-radius: 8px; }
@media (max-width: 640px) {
  .board-layout { padding: 0 14px 24px; }
  .board-actions { gap: 12px; }
  .board-mast { min-height: 66px; padding: 12px 0; }
  .board-mast h1 { font-size: 21px; }
  .board-write { padding: 9px 13px; font-size: 13px; }
  .board-layout .xy-head { margin: 0; padding: 0; }
  .board-layout .xy-head a { flex: 1; font-size: 13px; line-height: 38px; }
  .board-layout .n-item { padding: 16px 0; }
  .board-layout .roof-placement { padding: 12px 0; }
  .board-profile .n-item { padding: 13px 11px; }
  .n-item .meta .desc, .n-item .meta .desc a { font-size: 15px; }
  .board-editor #box { padding: 12px; }
}
/* Profile, reply list and attachment previews */
.board-profile .board-profile-nav, .board-editor #box .module-topbar {
  background-color: #fff; border-bottom: 1px solid #e7e7ee; box-sizing: border-box;
}
.board-profile .board-profile-nav { display: flex; align-items: center; gap: 18px; min-height: 48px; }
.board-profile-nav .board-brand { width: 118px; height: 28px; background: url("https://game.zixia.com/static/rx/logo.png?22") center / contain no-repeat; }
.board-profile .user-header { background: #fff; color: #292936; border-bottom: 1px solid #e7e7ee; }
.board-profile .user-menu .menu-selected .y { color: #564acf; border-color: #766af3; }
.board-profile .base-footer { width: 100%; max-width: 960px; box-sizing: border-box; left: 0; right: 0; margin: auto; }
.board-editor #box .module-topbar .title { color: #292936; font-weight: 600; }
.board-editor #box .module-topbar .txt-link { color: #564acf; }
.board-editor #box .module-topbar .zishu { color: #656575; }
.board-editor #box .module-topbar .zicol { color: #564acf; }
.board-editor .add-pic .added-pic { width: 60px; height: 60px; }
.board-editor .added-pic .J_img img, #recon .added-pic .J_img img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 5px;
}
.board-profile .u-img a.swipebox img, .board-layout .u-img a.swipebox img { width: 90px; height: 90px; padding: 0; box-sizing: border-box; object-fit: cover; object-position: center; }
.board-layout #board-list-empty { text-align: center; padding: 34px 16px; color: #666674; }
/* Board polish: header, tabs, cards, trade box, detail */
.board-mast { border-bottom: 1px solid #efeff4; }
.board-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.board-mast h1 { white-space: nowrap; }
.board-mast h1 a { letter-spacing: .5px; }
.board-mast .board-back { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 0; color: #3f3a52; font-size: 16px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.board-mast .board-back::before { content: "\2039"; font-size: 26px; line-height: 20px; margin-top: -3px; color: #665add; }
.board-actions a { padding: 7px 4px; }
.board-write { display: inline-flex; align-items: center; gap: 4px; padding: 9px 18px; border-radius: 999px; background: linear-gradient(135deg, #7b6ff0, #5a4bd6); box-shadow: 0 4px 12px rgba(90, 75, 214, .28); font-weight: 600; transition: transform .15s, box-shadow .15s; }
.board-write:hover { box-shadow: 0 6px 16px rgba(90, 75, 214, .36); transform: translateY(-1px); }
.board-write:active { transform: none; box-shadow: 0 2px 6px rgba(90, 75, 214, .3); }
.board-layout .xy-head a { position: relative; border-bottom: 0; transition: color .15s; }
.board-layout .xy-head a.cur::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 28px; height: 3px; margin-left: -14px; border-radius: 3px; background: linear-gradient(90deg, #8a7ff5, #5a4bd6); }
.board-layout .roof-placement { margin: 12px 0 2px; padding: 11px 14px; border: 0; border-radius: 10px; background: #f6f5ff; }
.board-layout .roof-placement a { display: block; color: #3d3a4f; font-size: 14px; line-height: 1.5; }
.board-layout .roof-placement span.zd { background: linear-gradient(135deg, #ff7a45, #ff4d2d); color: #fff; font-weight: 600; }
.board-layout .n-item .meta .title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.board-layout .n-item .meta .title .man { font-size: 15px; }
.board-layout .n-item .meta .title .operate-box { margin-left: auto; color: #b3b2be; }
.board-layout .n-item .cover a img { border-radius: 50%; box-shadow: 0 0 0 1px #ececf2; background: #f4f4f8; }
.board-layout .n-item .r-time { color: #9a99a8; }
.board-layout .n-item .r-game { border: 1px solid #ececf3; background: linear-gradient(180deg, #fbfbfe, #f5f5fa); }
.board-layout .n-item .r-game .r-meta strong { color: #ff4d2d; font-size: 1.2em; font-weight: 700; }
.board-layout .n-item .r-game .r-btn, .board-profile .n-item .r-game .r-btn { background: linear-gradient(135deg, #7b6ff0, #5a4bd6); color: #fff; border-radius: 999px; font-weight: 600; box-shadow: 0 3px 8px rgba(90, 75, 214, .25); }
.board-layout .n-item .r-game .r-btn i { color: #fff; }
.board-layout .n-item .r-com .com-inner, .board-layout .n-item .r-com .like-com-inner { background: #f6f6fa; }
.board-layout .n-item .r-com .com-inner .flag-wrapper { display: none; }
.board-layout .n-item .r-com .com-inner { padding-left: 12px; }
.board-layout .n-item .r-com .c-name { color: #5a4fb8; font-weight: 500; }
.board-detail #tclick, .board-detail #tclick + div { display: none; }
@media (min-width: 641px) {
  .board-layout .n-item { padding: 22px 24px; margin: 14px 0 0; border: 1px solid #ececf2; border-radius: 14px; transition: box-shadow .2s, border-color .2s; }
  .board-layout .n-item:hover { border-color: #e0ddf6; box-shadow: 0 8px 24px rgba(60, 50, 140, .08); }
}
@media (max-width: 640px) {
  .board-mast { min-height: 60px; }
  .board-mast .board-back { font-size: 15px; }
  .board-heading { min-width: 0; }
  .board-mast h1 { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .board-write { padding: 8px 14px; }
  .board-layout .n-item .info-item { display: block; position: relative; }
  .board-layout .n-item .cover { position: absolute; left: 0; top: 0; }
  .board-layout .n-item .meta { margin-left: 0; }
  .board-layout .n-item .meta .title { min-height: 40px; padding-left: 50px; }
  .board-layout .n-item .meta .desc { padding-top: 6px; }
}
.board-detail #pullUp .loader { visibility: hidden !important; }
/* Site tone (not dark, not white) for the board list/detail; same palette in jy-polish.css and zx-ui.css: bg #dcdfe5, card #e8eaee, inset #ced2da, line #c2c7d0 */
@media all {
  body.nhead_body:has(.board-layout), body.nhead_body:has(.board-layout) .main.canvi-content { background: #dcdfe5; color: #23262f; }
  body.nhead_body:has(.board-layout) footer.ft { background: #dcdfe5; color: #6f7484; }
  body.nhead_body:has(.board-layout) footer.ft a { color: #656a7a; }
  .board-layout, .board-layout .board-mast, .board-layout .xy-head, .board-layout #d-talk, .board-layout #d-talk-inner { background: #dcdfe5; color: #23262f; }
  .board-layout .board-mast, .board-layout .xy-head { border-bottom-color: #c2c7d0; }
  .board-layout .board-mast h1, .board-layout .board-mast h1 a, .board-layout .board-mast .board-back { color: #1f2230 !important; }
  .board-layout .board-actions a { color: #4d5262; }
  .board-layout .board-write { box-shadow: 0 4px 14px rgba(40, 50, 90, .18); }
  .board-layout .xy-head a { color: #555a6b; }
  .board-layout .xy-head a.cur { color: #5b4fd6; }
  .board-layout .roof-placement { background: #ced2da; }
  .board-layout .roof-placement a { color: #353946; }
  .board-layout .n-item { background: #dcdfe5; border-color: #c2c7d0; }
  .board-layout .n-item .meta .desc, .board-layout .n-item .meta .desc a { color: #23262f; }
  .board-layout .n-item .meta .title .man { color: #5b4fd6; }
  .board-layout .n-item .meta .title .operate-box { color: #6f7484; }
  .board-layout .n-item .cover a img { box-shadow: 0 0 0 1px #b9bec9; background: #ced2da; }
  .board-layout .n-item .r-game { background: #ced2da; border-color: #b9bec9; }
  .board-layout .n-item .r-game .r-meta, .board-layout .n-item .r-game .r-meta p { color: #353946; }
  .board-layout .n-item .r-game .tsinfo { color: #6f7484; }
  .board-layout .n-item .r-time, .board-layout .n-item .r-time span, .board-layout .n-item .t-info span { color: #656a7a; }
  .board-layout .n-item .r-com .com-inner, .board-layout .n-item .r-com .like-com-inner { background: #ced2da; color: #353946; }
  .board-layout .n-item .r-com .c-name { color: #5b4fd6; }
  .board-layout .n-item .r-com .areply, .board-layout .n-item .r-com .c-comen { color: #353946; }
  .board-layout .n-item .r-com:after { border-bottom-color: #ced2da; }
  .board-layout .n-item .pladebox { background-color: #ced2da; }
  .board-layout .n-item .u-img img { filter: none; }
  .board-layout .more-info, .board-layout .more-info span, .board-layout #board-list-empty, .board-layout .none-msg { color: #656a7a; background: transparent; }
  .board-layout a:focus-visible, .board-layout .board-write:focus-visible { outline-color: #5b4fd6; }
}
@media (min-width: 641px) {
  body.nhead_body:has(.board-layout) { background: #d0d3da; }
  .board-layout .n-item { background: #e8eaee; border-color: #c2c7d0; }
  .board-layout .n-item:hover { border-color: #a9a2e8; box-shadow: 0 8px 24px rgba(40, 50, 90, .12); }
}
side.user-side { background: #e8eaee; }
side.user-side ul { background: #dcdfe5; }
/* profile feed (template/o_user.html, use.php $zx_feed) */
.board-profile .zx-feed { margin: 10px 12px; padding: 4px 14px 6px; background: #e8eaee; border-radius: 14px; box-shadow: 0 1px 3px rgba(40, 50, 90, .08); }
.board-profile .zx-feed-h { margin: 8px 0 4px; font-size: 15px; font-weight: 600; color: #23262f; }
.board-profile .zx-feed-item { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid #c9cdd6; color: #353946; text-decoration: none; font-size: 13px; line-height: 1.4; }
.board-profile .zx-feed-h + .zx-feed-item { border-top: 0; }
.board-profile .zx-feed-tag { flex: none; min-width: 44px; padding: 1px 6px; border-radius: 6px; font-size: 12px; text-align: center; background: #d7dae2; color: #4d5262; }
.board-profile .zx-feed-post .zx-feed-tag { background: rgba(91, 79, 214, .12); color: #5b4fd6; }
.board-profile .zx-feed-reply .zx-feed-tag { background: rgba(61, 107, 255, .12); color: #3d6bff; }
.board-profile .zx-feed-trade .zx-feed-tag { background: rgba(255, 77, 45, .12); color: #e04a2a; }
.board-profile .zx-feed-play .zx-feed-tag { background: rgba(46, 138, 62, .12); color: #2e8a3e; }
.board-profile .zx-feed-main { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.board-profile .zx-feed-main b { font-weight: 600; color: #23262f; margin-right: 4px; }
.board-profile .zx-feed-time { flex: none; color: #6f7484; font-size: 12px; }
/* bigger screenshot thumbs on wide screens */
@media (min-width: 641px) {
  .board-profile .u-img a.swipebox, .board-layout .u-img a.swipebox, .board-profile .u-img a.swipebox img, .board-layout .u-img a.swipebox img { width: 150px; height: 150px; }
}
