/* 游戏小站论坛 · 仿 NGA 经典米黄配色 */
:root {
  --bg: #fcf1d6;
  --box: #fff9e8;
  --row1: #fff8e4;
  --row2: #fcefd1;
  --c1: #f8e7bf;
  --c1b: #f5e0b0;
  --line: #e2c796;
  --line2: #efdcb6;
  --brown: #591804;
  --brown2: #7c2d0b;
  --head1: #fbe6b8;
  --head2: #f2d496;
  --text: #4a443c;
  --sub: #9c958b;
  --link: #1a3959;
  --linkh: #2c5787;
  --topic: #10273f;
  --reply: #d0591a;
  --quote: #fdf3d9;
  --red: #c2352a;
  --green: #4f7f3a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Verdana, Tahoma, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--linkh); text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.sub { color: var(--sub); font-size: 12px; }
form.inline { display: inline; margin: 0; }

/* ---------- 顶栏 ---------- */
.topbar { background: linear-gradient(#6d240a, var(--brown) 60%, #4a1403); color: #fbe9c6; border-bottom: 3px solid #b8431a; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff4d6; }
.logo:hover { text-decoration: none; color: #fff; }
.logo-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, #f4a340, #c8541a); color: #fff; font: 900 16px/1 Tahoma, Verdana, sans-serif; letter-spacing: 1px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 0, 0, .3); }
.logo-text { display: flex; flex-direction: column; font-size: 22px; font-weight: 800; letter-spacing: 2px; line-height: 1.15; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.logo-text small { font-size: 11px; font-weight: 400; letter-spacing: 1px; color: #e9c792; }
.userbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; justify-content: flex-end; }
.userbar a, .userbar .linkbtn { color: #fbe9c6; }
.userbar a.me { font-weight: 700; color: #fff; }
.userbar a.reg { background: #d9772b; color: #fff; padding: 2px 12px; border-radius: 3px; }
.noticelink b { display: inline-block; min-width: 18px; margin-left: 3px; padding: 0 5px; border-radius: 9px; background: #e8412c; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--link); }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--red); }

.navbar { background: linear-gradient(#fdf0cf, #f6dfae); border-bottom: 1px solid var(--line); }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; flex-wrap: wrap; }
.navbar nav { display: flex; flex-wrap: wrap; }
.navbar nav a { color: var(--brown); font-weight: 700; padding: 8px 14px; }
.navbar nav a:hover { background: rgba(255, 255, 255, .55); text-decoration: none; }
.search { display: flex; margin: 4px 0; }
.search input { width: 200px; border: 1px solid #d3b57f; border-right: 0; border-radius: 3px 0 0 3px; padding: 3px 8px; background: #fffdf6; outline: none; }
.search button { border: 1px solid #b98c4f; background: linear-gradient(#fff3d6, #efd29c); color: var(--brown); border-radius: 0 3px 3px 0; padding: 3px 12px; cursor: pointer; }

.main { padding-top: 10px; padding-bottom: 20px; min-height: 60vh; }
.crumbs { margin: 2px 0 10px; font-size: 13px; color: var(--sub); }
.crumbs a { color: var(--brown); }
.crumbs .sep { margin: 0 4px; }

/* ---------- 通用模块 ---------- */
.module { background: var(--box); border: 1px solid var(--line); border-radius: 3px; margin-bottom: 12px; overflow: hidden; }
.mod-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; background: linear-gradient(var(--head1), var(--head2)); border-bottom: 1px solid var(--line); padding: 6px 12px; }
.mod-head h2 { margin: 0; font-size: 14px; color: var(--brown); overflow-wrap: anywhere; }
.mod-head.big h2 { font-size: 16px; }
.mod-head .desc { color: #8a7a5e; font-size: 12px; }
.mod-head .more { margin-left: auto; font-size: 12px; color: var(--brown); }
.catbox > .mod-head { background: linear-gradient(#7a2c0c, var(--brown)); border-bottom-color: #3f1002; }
.catbox > .mod-head h2 { color: #fff1d0; letter-spacing: 1px; }

.btn { display: inline-block; border: 1px solid #c9a26a; background: linear-gradient(#fff6de, #f0d7a4); color: var(--brown); border-radius: 3px; padding: 3px 14px; cursor: pointer; font-size: 13px; line-height: 1.6; white-space: nowrap; }
.btn:hover { text-decoration: none; background: linear-gradient(#fffaf0, #f5e0b6); color: var(--brown); }
.btn.primary { border-color: #9c3510; background: linear-gradient(#d4632a, #b0400f); color: #fff; font-weight: 700; }
.btn.primary:hover { background: linear-gradient(#e0733a, #bf4b16); color: #fff; }
.btn.small { padding: 1px 8px; font-size: 12px; }
.btn.big { padding: 6px 30px; font-size: 15px; }
.btn.danger { border-color: #b1473c; color: var(--red); }

.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
.toolbar.bottom { border-top: 1px solid var(--line2); }
.module > .toolbar.bottom:empty, .toolbar:empty { display: none; }
.ordertabs a { font-size: 12px; margin-right: 8px; color: #8a7a5e; }
.ordertabs a.on { color: var(--brown); font-weight: 700; }

.pager { display: inline-flex; flex-wrap: wrap; gap: 3px; margin-left: auto; align-items: center; font-size: 12px; }
.pager a, .pager b { display: inline-block; min-width: 26px; padding: 1px 7px; text-align: center; border: 1px solid #dcc08c; background: #fffaf0; border-radius: 2px; }
.pager b.cur { background: var(--brown); border-color: var(--brown); color: #fff; }
.pager .gap { padding: 0 3px; color: var(--sub); }
.pager .total { color: var(--sub); margin-left: 6px; }

/* ---------- 首页 ---------- */
.announce b.ann { display: inline-block; background: #d9772b; color: #fff; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 2px; margin-right: 6px; }
.announce { background: #fff5d9; border: 1px solid #e6c47c; border-left: 4px solid #d9772b; padding: 8px 12px; margin-bottom: 8px; border-radius: 3px; }
.home-stat { font-size: 12px; color: #8a7a5e; margin: 0 2px 10px; }
.home-stat b { color: var(--reply); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.forum-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.forum-tile { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line2); border-right: 1px solid var(--line2); color: var(--text); background: var(--row1); }
.forum-tile:nth-child(4n+2), .forum-tile:nth-child(4n+3) { background: var(--row2); }
.forum-tile:hover { text-decoration: none; background: #fff3cf; }
.ficon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; color: #fff; font-size: 24px; font-weight: 800; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.finfo { display: flex; flex-direction: column; min-width: 0; }
.fline { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.fname { color: var(--topic); font-size: 15px; }
.today { font-style: normal; font-size: 11px; line-height: 17px; color: #fff; background: var(--reply); border-radius: 8px; padding: 0 7px; }
.fdesc { font-size: 12px; color: #7d725f; margin-top: 2px; }
.fstat { font-size: 12px; color: var(--sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidelist { list-style: none; margin: 0; padding: 4px 10px 8px; }
.sidelist li { padding: 5px 0; border-bottom: 1px dashed var(--line2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.sidelist li:last-child { border-bottom: 0; }
.fname-tag { color: #8a6a3a; font-size: 12px; }

/* ---------- 主题列表 ---------- */
table.forumbox { width: 100%; border-collapse: collapse; }
.topiclist th { background: #f6e3b9; color: #7a5a30; font-weight: 400; font-size: 12px; padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.topiclist td { padding: 7px 8px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.topiclist .row1 { background: var(--row1); }
.topiclist .row2 { background: var(--row2); }
.topiclist tr.topicrow:hover { background: #fff2cc; }
.topiclist .c1 { width: 58px; text-align: center; background: rgba(240, 214, 160, .35); }
.topiclist th.c1 { text-align: center; }
.topiclist .c3 { width: 140px; }
.topiclist .c4 { width: 130px; }
.replies { display: block; font: 700 16px/1.2 Tahoma, Verdana, sans-serif; color: var(--reply); }
.replies:hover { text-decoration: none; color: #e86c28; }
a.topic { color: var(--topic); font-size: 15px; overflow-wrap: anywhere; }
a.topic.hl { color: #a0300c; font-weight: 700; }
.minipager { margin-left: 6px; font-size: 11px; }
.minipager a { display: inline-block; padding: 0 4px; margin-right: 2px; border: 1px solid #e0c592; color: #8a6a3a; line-height: 16px; }
.c3 .author, .c3 .postdate, .c4 .replydate, .c4 .replyer { display: block; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c3 .author { color: #6d4c1f; font-size: 13px; }
.postdate, .replyer { color: var(--sub); font-size: 12px; }
.replydate { color: #6d4c1f; font-size: 12px; }
.tag { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 4px; border-radius: 2px; margin-right: 5px; vertical-align: 2px; color: #fff; }
.tag.sticky { background: #c2352a; }
.tag.digest { background: #d98a14; }
.tag.locked { background: #8b8375; }
td.empty { text-align: center; color: var(--sub); padding: 30px 0 !important; }
.postsearch .c3 { width: 240px; }

/* ---------- 帖子楼层 ---------- */
.thread-head .mod-head h2 { overflow-wrap: anywhere; }
.modbar { padding: 6px 10px; border-top: 1px dashed var(--line); background: #fff3d4; font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.modbar select { font-size: 12px; padding: 1px; }
table.postbox { border: 1px solid var(--line); margin-bottom: 8px; background: var(--row1); table-layout: fixed; }
.postbox td { vertical-align: top; }
.postauthor { width: 190px; background: var(--c1); border-right: 1px solid var(--line); padding: 12px 10px; text-align: center; overflow-wrap: anywhere; }
.row2 .postauthor { background: var(--c1b); }
.postauthor .avatar img { display: block; width: 120px; height: 120px; object-fit: cover; margin: 0 auto 6px; border: 1px solid #d9bb86; border-radius: 3px; background: #fff; }
.postauthor .author { font-size: 15px; font-weight: 700; color: #6b1e05; }
.lz { display: inline-block; margin-left: 4px; font-size: 11px; line-height: 15px; padding: 0 4px; border-radius: 2px; background: #3f7fbf; color: #fff; vertical-align: 2px; }
.stat { margin-top: 6px; font-size: 12px; color: #8a7556; line-height: 1.7; text-align: left; padding-left: 20px; }
.stat span { display: block; }
.admin { color: #c2352a !important; font-weight: 700; }
.banned { color: #8b8375 !important; }
.postcontent { padding: 8px 14px 6px; background: var(--row1); min-width: 0; }
.row2 .postcontent { background: #fdf3da; }
.posttop { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--sub); border-bottom: 1px dashed var(--line); padding-bottom: 5px; margin-bottom: 8px; }
.floor { font: 700 14px Tahoma, Verdana, sans-serif; color: var(--brown); }
.views { margin-left: auto; }
.posttitle { margin: 2px 0 10px; font-size: 17px; color: var(--topic); overflow-wrap: anywhere; }
.ubbcode { font-size: 14.5px; line-height: 1.85; word-wrap: break-word; overflow-wrap: anywhere; min-height: 40px; }
.ubbcode .quote { background: var(--quote); border: 1px solid #e3cc9a; border-left: 3px solid #d6a656; padding: 6px 10px; margin: 6px 0; font-size: 13.5px; color: #5b5144; }
.ubbcode .quote .quote { background: #fff8e6; }
.ubbcode pre.code { background: #fffdf5; border: 1px solid #e3cc9a; padding: 8px 10px; overflow-x: auto; font: 13px/1.5 Menlo, Consolas, monospace; white-space: pre; margin: 6px 0; }
.ubbcode details.collapse { border: 1px solid #dcc08c; background: #fffaeb; margin: 6px 0; border-radius: 2px; }
.ubbcode details.collapse summary { cursor: pointer; padding: 3px 10px; color: var(--brown); font-size: 13px; background: #f8e9c4; }
.ubbcode .collapse-body { padding: 6px 10px; }
.ubbcode .bbh { margin: 10px 0 4px; font-size: 15px; color: var(--brown); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.ubbcode ul.bblist { margin: 4px 0; padding-left: 22px; }
.ubbcode img.bbimg { max-width: 100%; max-height: 800px; height: auto; vertical-align: middle; border: 1px solid #ecd8b0; margin: 2px 0; }
.ubbcode .imglink { display: inline-block; }
.ubbcode .extimg { color: #8a6a3a; font-size: 13px; }
.ubbcode a.at { color: #b8431a; }
.ubbcode .pidlink, .ubbcode .userlink { color: #6d4c1f; font-weight: 700; }
.deleted { color: var(--sub); font-style: italic; padding: 10px 0; }
.edited { font-size: 12px; color: var(--sub); margin-top: 8px; }
.sig { margin-top: 14px; padding-top: 6px; border-top: 1px dashed #d9bb86; font-size: 12px; color: #8a7556; max-height: 120px; overflow: hidden; }
.sig img.bbimg { max-height: 100px; }
.postbtm { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 10px; font-size: 12px; flex-wrap: wrap; }
.postbtm a { color: #8a6a3a; }
.vote { border: 1px solid #e0c592; background: #fffaf0; border-radius: 12px; padding: 0 9px; cursor: pointer; font-size: 12px; line-height: 20px; color: #8a6a3a; }
.vote.on { background: #f6d9a3; border-color: #c9994d; }
.vote.up span:empty { display: none; }
.vote span { color: var(--reply); font-weight: 700; }
:target > tr > td.postcontent { box-shadow: inset 3px 0 0 #d9772b; }

/* ---------- 编辑器 ---------- */
.quickreply.guest { background: var(--box); border: 1px solid var(--line); padding: 14px; text-align: center; margin-bottom: 12px; }
.editor-form { padding: 10px; }
.field { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.field > label { flex: none; width: 70px; text-align: right; color: #7a5a30; }
.field input:not([type=hidden]), .field textarea { flex: 1; min-width: 0; border: 1px solid #d3b57f; background: #fffdf6; padding: 5px 8px; border-radius: 2px; outline: none; }
.field input:focus, .field textarea:focus, .editor textarea:focus { border-color: #b8431a; box-shadow: 0 0 0 2px rgba(184, 67, 26, .12); }
.postform .field input.subject { font-size: 15px; }
.editor { border: 1px solid #d3b57f; background: #fffdf6; border-radius: 2px; }
.ed-toolbar { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; background: #f8ebc9; border-bottom: 1px solid #e0c592; font-size: 12px; align-items: center; }
.ed-toolbar > button, .ed-toolbar .ed-drop > button, .upbtn { border: 1px solid #dcc08c; background: #fffaf0; padding: 1px 8px; cursor: pointer; border-radius: 2px; line-height: 20px; font-size: 12px; color: var(--brown); }
.ed-toolbar > button:hover, .ed-drop > button:hover, .upbtn:hover { background: #fff; border-color: #c9994d; }
.ed-help { margin-left: auto; font-size: 12px; padding: 0 4px; }
.ed-drop { position: relative; }
.ed-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 20; background: #fffdf6; border: 1px solid #c9a26a; padding: 5px; box-shadow: 0 3px 10px rgba(80, 40, 0, .18); border-radius: 3px; }
.ed-drop.open .ed-menu { display: grid; }
.color-menu { grid-template-columns: repeat(5, 22px); gap: 4px; }
.color-menu button { width: 22px; height: 22px; border: 1px solid rgba(0, 0, 0, .2); border-radius: 2px; cursor: pointer; padding: 0; }
.size-menu { grid-template-columns: 1fr; gap: 2px; min-width: 70px; }
.size-menu button { border: 0; background: none; padding: 2px 6px; cursor: pointer; text-align: left; }
.size-menu button:hover, .emoji-menu button:hover { background: #f8e9c4; }
.emoji-menu { grid-template-columns: repeat(8, 32px); gap: 2px; }
.emoji-menu button { border: 0; background: none; font-size: 20px; line-height: 30px; cursor: pointer; padding: 0; border-radius: 3px; }
.editor textarea { display: block; width: 100%; border: 0; background: transparent; padding: 8px 10px; resize: vertical; outline: none; font-size: 14.5px; line-height: 1.7; }
.ed-status { font-size: 12px; color: var(--sub); padding: 0 10px; }
.ed-status:empty { display: none; }
.ed-status.err { color: var(--red); }
.ed-preview { border-top: 1px dashed #d3b57f; padding: 8px 10px; background: var(--row1); }
.formbtns { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.formbtns .hint, .hint { font-size: 12px; color: var(--sub); }
.formerror { background: #fdeae4; border: 1px solid #e8a08e; color: #a3281b; padding: 8px 12px; margin: 10px; border-radius: 3px; }
.formok { background: #eef6e2; border: 1px solid #a9c98a; color: #3d6a22; padding: 8px 12px; margin-bottom: 12px; border-radius: 3px; }

/* ---------- 登录注册 / 设置 / 用户 ---------- */
.authbox { max-width: 520px; margin: 20px auto; }
.authform { padding: 16px 20px 18px; }
.authform .formbtns { padding-left: 80px; }
.captcha img { flex: none; cursor: pointer; border: 1px solid #d3b57f; border-radius: 2px; }
.captcha input { max-width: 140px; }
.setform { padding: 12px 16px; }
.setform .formbtns { padding-left: 80px; }
.avatar-edit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar-edit img { width: 80px; height: 80px; object-fit: cover; border: 1px solid #d9bb86; border-radius: 3px; background: #fff; }
.field .avatar-edit input[type=file] { display: none; }
.ucp-body { display: flex; gap: 20px; padding: 14px; }
.ucp-avatar img { width: 140px; height: 140px; object-fit: cover; border: 1px solid #d9bb86; border-radius: 4px; background: #fff; }
.infotable { border-collapse: collapse; flex: 1; min-width: 0; }
.infotable th { width: 90px; text-align: right; font-weight: 400; color: #8a7556; padding: 4px 12px 4px 0; vertical-align: top; }
.infotable td { padding: 4px 0; overflow-wrap: anywhere; }
.banform { padding: 8px 14px; border-top: 1px dashed var(--line); background: #fff3d4; font-size: 13px; }
.ucp-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.noticelist td { padding: 8px 10px; border-bottom: 1px solid var(--line2); }
.noticelist .row1 { background: var(--row1); }
.noticelist .row2 { background: var(--row2); }
.noticelist tr.unread td.c2 { font-weight: 700; }
.noticelist .c4 { width: 110px; text-align: right; }
.msgbox { max-width: 560px; margin: 30px auto; background: var(--box); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.msgbody { padding: 18px 20px; }
.msgbody p { margin: 0 0 12px; }
.msglinks { display: flex; gap: 8px; flex-wrap: wrap; }
.helpbody { padding: 12px 16px; }
.helptable td, .helptable th { padding: 6px 10px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; }
.helptable th { background: #f6e3b9; font-weight: 400; color: #7a5a30; font-size: 12px; }
.helptable .row1 { background: var(--row1); }
.helptable .row2 { background: var(--row2); }
.helptable code { font-size: 12.5px; color: #6b1e05; overflow-wrap: anywhere; }
.helpbody h3 { font-size: 15px; color: var(--brown); margin: 16px 0 6px; }
.helpbody code { background: #fdf3d9; padding: 0 3px; }

#foot { border-top: 1px solid var(--line); background: #f6e3b9; color: #8a7556; font-size: 12px; text-align: center; padding: 14px 0 18px; }
#foot a { color: var(--brown); }
#foot p { margin: 6px 0 0; }

/* ---------- 手机 ---------- */
@media (max-width: 900px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .ucp-lists { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 8px; }
  .topbar .wrap { min-height: 52px; }
  .logo-mark { width: 38px; height: 38px; font-size: 13px; }
  .logo-text { font-size: 17px; letter-spacing: 1px; }
  .logo-text small { display: none; }
  .userbar { gap: 2px 10px; }
  .navbar .wrap { padding: 0; }
  .navbar nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .navbar nav a { padding: 7px 11px; white-space: nowrap; }
  .search { width: 100%; padding: 0 8px 6px; }
  .search input { flex: 1; width: auto; }
  .forum-tiles { grid-template-columns: minmax(0, 1fr); }
  .forum-tile:nth-child(n) { background: var(--row1); border-right: 0; }
  .forum-tile:nth-child(2n) { background: var(--row2); }
  .ficon { width: 44px; height: 44px; font-size: 20px; }

  .topiclist thead { display: none; }
  .topiclist tbody, .topiclist tr { display: block; }
  .topiclist tr.topicrow { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "c1 c2 c2" "c1 c3 c4"; border-bottom: 1px solid var(--line2); }
  .topiclist tr.topicrow td { border: 0; padding: 0; }
  .topiclist tr.topicrow .c1 { grid-area: c1; grid-row: 1 / 3; width: auto; display: flex; align-items: center; justify-content: center; }
  .topiclist tr.topicrow .c2 { grid-area: c2; padding: 7px 8px 0; }
  .topiclist tr.topicrow .c3, .topiclist tr.topicrow .c4 { width: auto; padding: 0 8px 6px; display: flex; gap: 6px; align-items: baseline; }
  .topiclist tr.topicrow .c3 { grid-area: c3; min-width: 0; overflow: hidden; }
  .topiclist tr.topicrow .c4 { grid-area: c4; }
  .c3 .author, .c3 .postdate, .c4 .replydate, .c4 .replyer { display: inline; font-size: 12px; }
  .c4 .replyer { display: none; }
  .postsearch tr { display: block; padding: 6px 8px; border-bottom: 1px solid var(--line2); }
  .postsearch td { display: block; border: 0 !important; padding: 0 !important; width: auto !important; }
  .replies { font-size: 14px; }
  a.topic { font-size: 15px; }
  .pager { margin-left: 0; }

  table.postbox, .postbox tbody, .postbox tr, .postbox td { display: block; width: 100%; }
  .postbox td.postauthor { width: auto; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; display: flex; gap: 10px; align-items: center; }
  .postauthor .avatar img { width: 42px; height: 42px; margin: 0; }
  .pa-info { min-width: 0; }
  .postauthor .author { font-size: 14px; }
  .stat { margin: 0; padding: 0; line-height: 1.4; }
  .stat span { display: inline; margin-right: 8px; }
  .stat span:nth-child(4) { display: none; }
  .postcontent { padding: 8px 10px 6px; }
  .ubbcode { font-size: 15px; }
  .postbtm { gap: 10px; }

  /* iOS Safari 输入框字号小于 16px 时聚焦会自动放大页面 */
  input:not([type=hidden]), textarea, select, .editor textarea { font-size: 16px !important; }
  .field { flex-direction: column; align-items: stretch; gap: 4px; }
  .field > label { width: auto; text-align: left; }
  .authform .formbtns, .setform .formbtns { padding-left: 0; }
  .authform { padding: 12px; }
  .captcha { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; }
  .captcha > label { width: 100%; }
  .editor-form { padding: 8px; }
  .ucp-body { flex-direction: column; align-items: center; }
  .emoji-menu { grid-template-columns: repeat(6, 34px); }
  .ed-menu { left: auto; right: 0; }
  .ed-toolbar .ed-drop:first-of-type .ed-menu { left: 0; right: auto; }
}
