/* ============================================================
   绝客论坛 · 怀旧主题
   纸张、油墨、印章：2010 年代中文 BBS 的秩序感，
   用现代排版与留白重新装订。
   ============================================================ */

:root {
  --paper:        #f5f0e3;
  --paper-2:      #ece5d2;
  --paper-3:      #e3dac3;
  --card:         #fffdf6;
  --ink:          #241f1a;
  --ink-2:        #4a443b;
  --ink-3:        #7b7365;
  --line:         #d6ccb4;
  --line-2:       #bfb39a;
  --seal:         #a9342a;
  --seal-2:       #7f231c;
  --link:         #1d567f;
  --link-hover:   #a9342a;
  --visited:      #5c4373;
  --gold:         #9a7623;
  --green:        #3c6647;
  --shadow:       3px 3px 0 rgba(60, 50, 35, .10);
  --shadow-sm:    2px 2px 0 rgba(60, 50, 35, .10);
  --serif:        "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --sans:         "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono:         "SFMono-Regular", "JetBrains Mono", Consolas, "Courier New", monospace;
  --radius:       2px;
  --wrap:         1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, .55), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(196, 178, 140, .16), transparent 46%),
    repeating-linear-gradient(0deg, rgba(120, 100, 60, .028) 0 1px, transparent 1px 3px);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
a:visited { color: var(--visited); }
a:hover:visited { color: var(--link-hover); }

code, kbd, pre, .mono { font-family: var(--mono); font-size: .92em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 8px; z-index: 99; background: var(--card); padding: 6px 12px; border: 1px solid var(--ink); }

.muted { color: var(--ink-3); }
.sep { color: var(--line-2); margin: 0 6px; }
.serif { font-family: var(--serif); }

/* ---------- 顶部细条 ---------- */
.topbar {
  background: #2c2620;
  color: #cfc6b3;
  font-size: 12.5px;
  letter-spacing: .02em;
  border-bottom: 1px solid #1a1611;
}
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.topbar a { color: #e6ddc8; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.topbar .dot { width: 6px; height: 6px; background: #7d9a6a; display: inline-block; margin-right: 7px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(125,154,106,.18); }
.topbar .tb-user { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-avatar { width: 18px; height: 18px; border: 1px solid #5d5546; object-fit: cover; background: #fff; }

/* ---------- 报头 ---------- */
.masthead {
  background:
    linear-gradient(180deg, rgba(255,253,246,.9), rgba(245,240,227,.65)),
    repeating-linear-gradient(90deg, rgba(140,120,80,.05) 0 1px, transparent 1px 6px);
  border-bottom: 1px solid var(--line);
}
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.seal {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px;
  background: var(--seal);
  color: #fff4e6;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px #fff4e6, inset 0 0 0 4px var(--seal), 2px 2px 0 rgba(120, 40, 30, .25);
  transform: rotate(-1.5deg);
  letter-spacing: 0;
  padding-bottom: 2px;
}
.seal-sm { width: 26px; height: 26px; font-size: 15px; box-shadow: inset 0 0 0 2px #fff4e6, inset 0 0 0 3px var(--seal); transform: none; }
.seal-logo { display: block; width: 54px; height: 54px; flex: 0 0 auto; object-fit: contain; }
.seal-logo-sm { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 30px; letter-spacing: .16em; font-weight: 700; }
.brand-text em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: var(--ink-3); margin-top: 7px; }

.mast-search { display: flex; align-items: stretch; border: 1px solid var(--line-2); background: var(--card); box-shadow: var(--shadow-sm); height: 38px; }
.mast-search input {
  border: 0; background: transparent; padding: 0 12px; width: 230px; font: inherit; font-size: 13.5px; color: var(--ink); outline: none;
}
.mast-search input::placeholder { color: #a79c87; }
.mast-search button {
  border: 0; border-left: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2);
  width: 42px; cursor: pointer; display: grid; place-items: center;
}
.mast-search button:hover { background: var(--seal); color: #fff; }

/* ---------- 主导航 ---------- */
.mainnav { background: var(--paper-2); border-bottom: 2px solid var(--ink); position: relative; }
.mainnav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.mainnav-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mainnav-in::-webkit-scrollbar { display: none; }
.mainnav a {
  padding: 11px 16px 10px; color: var(--ink-2); font-size: 14.5px; letter-spacing: .04em;
  border-left: 1px solid transparent; border-right: 1px solid transparent; white-space: nowrap;
}
.mainnav a:hover { color: var(--seal); background: rgba(255,255,255,.5); text-decoration: none; }
.mainnav a.on { color: var(--ink); background: var(--paper); border-color: var(--line); font-weight: 600; }

/* ---------- 公告 ---------- */
.announce { display: flex; align-items: stretch; margin: 18px 0 0; border: 1px solid var(--line-2); background: var(--card); box-shadow: var(--shadow-sm); }
.announce-tag {
  flex: 0 0 auto; display: grid; place-items: center; padding: 0 14px; background: var(--seal); color: #fff4e6;
  font-family: var(--serif); letter-spacing: .3em; font-size: 13px; text-indent: .3em;
}
.announce-body { padding: 8px 14px; font-size: 13.5px; color: var(--ink-2); }
.announce-body a { border-bottom: 0; }

/* ---------- flash ---------- */
.flash { margin: 16px 0 0; padding: 10px 14px; border: 1px solid var(--line-2); background: #fbf6e6; font-size: 13.5px; box-shadow: var(--shadow-sm); }
.flash-err { border-color: #c88b83; background: #fbeee9; color: #7f231c; }
.flash-ok { border-color: #a9bb9a; background: #f0f5e9; color: #35502f; }

/* ---------- 主体 ---------- */
.main { padding-top: 22px; padding-bottom: 10px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); margin-bottom: 22px; position: relative; }
.card::after {
  content: ""; position: absolute; inset: 3px; border: 1px solid rgba(190, 175, 145, .28); pointer-events: none;
}
.card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fffdf6, #f7f2e4);
}
.card-head h2, .card-head h3 { margin: 0; font-family: var(--serif); font-size: 17px; letter-spacing: .08em; font-weight: 700; }
.card-head .more { font-size: 12.5px; color: var(--ink-3); }
.card-body { padding: 14px 16px; }
.card-body.tight { padding: 0; }

/* ---------- 首页横幅 ---------- */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 16px 18px; border: 1px solid var(--line-2); background:
    linear-gradient(135deg, #fffdf6, #f3ecda 60%, #efe6d0); box-shadow: var(--shadow); margin-bottom: 22px; }
.hero h1 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; letter-spacing: .06em; }
.hero p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.hero-stats { display: flex; gap: 0; border: 1px solid var(--line); background: var(--card); }
.hero-stats div { padding: 8px 16px; text-align: center; border-left: 1px solid var(--line); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.hero-stats span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .1em; }

/* ---------- 版块列表 ---------- */
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 760px) { .boards { grid-template-columns: 1fr; } }
.board-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px dotted var(--line); border-right: 1px dotted var(--line); }
.board-row:nth-child(2n) { border-right: 0; }
.board-row:hover { background: #fbf7ea; }
.board-icon {
  width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--line-2); box-shadow: inset 0 0 0 3px var(--card), var(--shadow-sm);
}
.board-main { min-width: 0; }
.board-main h3 { margin: 0; font-family: var(--serif); font-size: 16px; letter-spacing: .05em; display: flex; align-items: center; gap: 8px; }
.board-main h3 a { color: var(--ink); }
.board-main h3 a:hover { color: var(--seal); text-decoration: none; }
.board-main p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-count { text-align: right; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.board-count b { font-family: var(--mono); color: var(--ink-2); font-weight: 500; }

/* ---------- 主题列表 ---------- */
.thread-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.thread-table thead th {
  text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--ink-3);
  padding: 9px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line-2);
}
.thread-table td { padding: 11px 12px; border-bottom: 1px dotted var(--line); vertical-align: middle; }
.thread-table tr:hover td { background: #fbf7ea; }
.thread-table .col-title { width: 100%; }
.thread-table .col-author, .thread-table .col-count, .thread-table .col-last { white-space: nowrap; font-size: 12.5px; color: var(--ink-3); text-align: left; }
.thread-table .col-count { font-family: var(--mono); }
.thread-table .col-last { text-align: right; }
.t-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.t-title a { color: var(--ink); font-size: 14.5px; }
.t-title a:hover { color: var(--seal); }
.t-title .sub { font-size: 12px; color: var(--ink-3); }

.tag { display: inline-block; font-size: 10.5px; line-height: 1.5; padding: 0 5px; letter-spacing: .08em; border: 1px solid var(--line-2); color: var(--ink-3); background: var(--card); vertical-align: 1px; }
.tag-top { border-color: #c9a3a0; color: var(--seal); background: #fdf0ec; }
.tag-digest { border-color: #c8b17a; color: var(--gold); background: #fbf4e0; }
.tag-lock { border-color: #a7a7a7; color: #666; }
.tag-new { border-color: #9fb37f; color: var(--green); background: #f1f6e8; }
.tag-hot { border-color: #ce9b74; color: #a4562a; background: #fdf1e6; }

.badge-count { display: inline-block; min-width: 20px; text-align: center; font-family: var(--mono); font-size: 11px; padding: 0 5px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--paper-2); }

/* ---------- 分页 ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); background: #faf6ea; }
.pager .pg { display: inline-block; min-width: 30px; text-align: center; padding: 3px 9px; font-size: 13px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); font-family: var(--mono); }
.pager a.pg:hover { border-color: var(--seal); color: var(--seal); text-decoration: none; }
.pager .pg.cur { background: var(--ink); border-color: var(--ink); color: #f5f0e3; }
.pager .pg.disabled { color: #bdb3a0; background: transparent; border-color: var(--line); }
.pager .pg.gap { border: 0; background: transparent; color: var(--ink-3); }
.pager .pg.info { margin-left: auto; border: 0; background: transparent; color: var(--ink-3); font-family: var(--sans); }

/* ---------- 帖子 ---------- */
.post { display: grid; grid-template-columns: 168px 1fr; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .post { grid-template-columns: 1fr; } }
.post:last-child { border-bottom: 0; }
.post-side { padding: 16px 14px; border-right: 1px dotted var(--line); background: linear-gradient(180deg, #fbf7ea, #f7f1e1); }
@media (max-width: 720px) { .post-side { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; border-right: 0; border-bottom: 1px dotted var(--line); } }
.post-avatar { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--line-2); box-shadow: inset 0 0 0 3px #fff, var(--shadow-sm); background: #fff; image-rendering: -webkit-optimize-contrast; }
@media (max-width: 720px) { .post-avatar { width: 56px; height: 56px; } }
.post-user { margin-top: 10px; }
.post-user .name { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--ink); word-break: break-all; }
.post-user .uid { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; }
.post-user dl { margin: 10px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }
.post-user dl div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted var(--line); padding: 2px 0; }
.post-user dt { margin: 0; }
.post-user dd { margin: 0; color: var(--ink-2); font-family: var(--mono); }
.lvl { display: inline-block; font-size: 10.5px; padding: 0 6px; border: 1px solid #b9a06a; color: #7a5f21; background: #fbf3dd; letter-spacing: .06em; }
.post-main { padding: 14px 18px 20px; min-width: 0; }
.post-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px dotted var(--line); padding-bottom: 8px; margin-bottom: 12px; font-size: 12px; color: var(--ink-3); }
.post-floor { font-family: var(--mono); }
.post-floor b { color: var(--seal); font-size: 15px; }
.post-date { font-family: var(--mono); }
.post-body { font-size: 15px; line-height: 1.85; word-wrap: break-word; overflow-wrap: anywhere; }
.post-body img { max-width: 100%; }
.post-foot { margin-top: 16px; padding-top: 8px; border-top: 1px dotted var(--line); display: flex; gap: 10px; font-size: 12px; color: var(--ink-3); }
.post-foot a { color: var(--ink-3); }
.post-foot a:hover { color: var(--seal); }

/* UBB 内容 */
.ubb-text p { margin: 0 0 .7em; }
.ubb-text p:last-child { margin-bottom: 0; }
.ubb-quote { margin: .6em 0; padding: 8px 12px; border-left: 3px solid var(--line-2); background: #f7f2e4; color: var(--ink-2); font-size: 13.5px; }
.ubb-code { margin: .8em 0; padding: 10px 12px; background: #26221d; color: #e8dfc9; overflow: auto; border-left: 3px solid var(--seal); }
.ubb-code code { font-size: 12.5px; }
.ubb-img img { display: block; margin: 8px 0; max-height: 720px; object-fit: contain; border: 1px solid var(--line-2); background: #fff; padding: 2px; }
.ubb-face { display: inline; vertical-align: -3px; width: 22px; height: 22px; }
.ubb-hide { border: 1px dashed var(--line-2); padding: 8px 10px; background: #f8f3e5; margin: .6em 0; }
.ubb-hide-tip { font-size: 11.5px; color: var(--seal); letter-spacing: .1em; }
.ubb-media { max-width: 100%; margin: 8px 0; }
.ubb-center { text-align: center; }
.ubb-right { text-align: right; }
.ubb-size { font-size: 1.1em; }
.ubb-hr { border: 0; border-top: 1px dashed var(--line-2); margin: 1em 0; }

/* ---------- 附件 ---------- */
.attach-list { margin-top: 14px; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.attach-list h4 { margin: 0 0 6px; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; font-weight: 500; }
.attach { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; color: var(--ink-2); }
.attach .ext { font-family: var(--mono); font-size: 10px; text-transform: uppercase; border: 1px solid var(--line-2); padding: 0 4px; color: var(--ink-3); background: var(--paper-2); }
.attach .sz { color: var(--ink-3); font-size: 11.5px; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; letter-spacing: .05em; }
.form-row .hint { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
input[type=text], input[type=password], input[type=email], input[type=search], textarea, select {
  width: 100%; border: 1px solid var(--line-2); background: var(--card); padding: 8px 10px; font: inherit; font-size: 14px; color: var(--ink);
  box-shadow: inset 1px 1px 0 rgba(120, 105, 75, .08); border-radius: 0; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--seal); box-shadow: inset 1px 1px 0 rgba(169, 52, 42, .12), 0 0 0 3px rgba(169, 52, 42, .08); }
textarea { min-height: 150px; resize: vertical; line-height: 1.7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border: 1px solid var(--ink); background: var(--paper-2); color: var(--ink);
  font: inherit; font-size: 14px; letter-spacing: .05em; cursor: pointer; box-shadow: var(--shadow-sm);
  border-radius: 0;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.btn-primary { background: var(--seal); border-color: var(--seal-2); color: #fff4e6; }
.btn-primary:hover { background: var(--seal-2); color: #fff; }
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); color: var(--ink); }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }

/* ---------- 侧栏 ---------- */
.side .card-body { padding: 12px 14px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px dotted var(--line); font-size: 13px; }
.side-list li:last-child { border-bottom: 0; }
.side-list .n { font-family: var(--mono); font-size: 11px; color: var(--ink-3); width: 18px; flex: 0 0 auto; }
.side-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list .t a { color: var(--ink-2); }
.side-list .t a:hover { color: var(--seal); }
.side-list .m { font-size: 11px; color: var(--ink-3); white-space: nowrap; font-family: var(--mono); }
.side-user { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.side-user img { width: 24px; height: 24px; border: 1px solid var(--line-2); background: #fff; }
.side-user .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .nm a { color: var(--ink-2); }

/* 今日速览 */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats-grid div { background: var(--card); padding: 10px 12px; }
.stats-grid b { display: block; font-family: var(--serif); font-size: 18px; }
.stats-grid span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .08em; }

/* ---------- 用户页 ---------- */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 22px; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; } }
.profile-card { text-align: center; padding: 20px 16px; }
.profile-card .avatar { width: 112px; height: 112px; border: 1px solid var(--line-2); background: #fff; padding: 3px; }
.profile-card h1 { font-family: var(--serif); font-size: 20px; margin: 10px 0 2px; letter-spacing: .05em; }
.profile-meta { list-style: none; margin: 14px 0 0; padding: 0; text-align: left; font-size: 12.5px; }
.profile-meta li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dotted var(--line); }
.profile-meta span { color: var(--ink-3); }
.profile-meta b { font-family: var(--mono); font-weight: 500; color: var(--ink-2); }

/* ---------- 认证页 ---------- */
.auth-wrap { max-width: 420px; margin: 30px auto 50px; }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head h1 { font-family: var(--serif); font-size: 24px; letter-spacing: .12em; margin: 0 0 6px; }
.auth-head p { margin: 0; color: var(--ink-3); font-size: 12.5px; }
.auth-alt { text-align: center; font-size: 12.5px; color: var(--ink-3); padding: 12px; border-top: 1px dotted var(--line); }

/* ---------- 游戏 ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.game-card { border: 1px solid var(--line-2); background: var(--card); box-shadow: var(--shadow-sm); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.game-card .gi { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--paper-2); color: var(--seal); }
.game-card h3 { margin: 0; font-family: var(--serif); font-size: 16px; }
.game-card p { margin: 0; font-size: 12px; color: var(--ink-3); flex: 1; }
.game-card .gfoot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); }

/* 游戏台 */
.tabletop { max-width: 720px; margin: 0 auto; }
.tabletop .stage { border: 1px solid var(--line-2); background: radial-gradient(circle at 50% 40%, #fffdf6, #efe7d4); box-shadow: var(--shadow); padding: 26px; text-align: center; }
.dice-row { display: flex; justify-content: center; gap: 14px; margin: 18px 0; }
.die { width: 62px; height: 62px; border: 2px solid var(--ink); background: #fffdf6; box-shadow: 4px 4px 0 rgba(60,50,35,.12); display: grid; place-items: center; font-family: var(--serif); font-size: 30px; font-weight: 700; }
.bet-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.result-line { font-family: var(--serif); font-size: 17px; margin-top: 14px; min-height: 26px; }

/* ---------- 页脚 ---------- */
.footer { margin-top: 28px; border-top: 2px solid var(--ink); background: #2c2620; color: #b9b09d; font-size: 12px; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 16px 0 12px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: #e6ddc8; text-decoration: none; }
.footer-brand:hover { color: #fff; text-decoration: none; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.25; }
.footer-brand strong { color: #e6ddc8; font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: .1em; }
.footer-brand small { margin-top: 2px; color: #9a907d; font-size: 10.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 15px; font-size: 12px; }
.footer-links a { color: #cdc3ad; white-space: nowrap; }
.footer-links a:hover { color: #fff; }
.footer .foot-bottom { display: flex; flex-wrap: wrap; padding: 8px 0 14px; border-top: 1px solid #40382e; color: #8b8272; font-size: 11px; }
.foot-bottom span + span::before { content: "·"; margin: 0 7px; color: #6e6455; }

/* ---------- 404 ---------- */
.error-box { max-width: 520px; margin: 50px auto; text-align: center; }
.error-box .code { font-family: var(--serif); font-size: 68px; color: var(--seal); line-height: 1; letter-spacing: .1em; }
.error-box p { color: var(--ink-2); }

/* ---------- 档案馆 ---------- */
.archive-year { font-family: var(--serif); font-size: 20px; letter-spacing: .2em; margin: 22px 0 8px; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.archive-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.archive-list li { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--line); }
.archive-list .d { font-family: var(--mono); color: var(--ink-3); white-space: nowrap; }
.archive-list .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 小工具 ---------- */
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.section-title h2 { font-family: var(--serif); font-size: 19px; letter-spacing: .1em; margin: 0; }
.section-title .rule { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }

.quote-hint { background: #f7f2e4; border: 1px solid var(--line); padding: 8px 12px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 10px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.toolbar button { border: 1px solid var(--line-2); background: var(--paper-2); font: inherit; font-size: 12px; padding: 3px 9px; cursor: pointer; color: var(--ink-2); }
.toolbar button:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.empty .big { font-family: var(--serif); font-size: 40px; color: var(--line-2); display: block; margin-bottom: 6px; }

@media (max-width: 520px) {
  .brand-text strong { font-size: 24px; }
  .mast-search input { width: 130px; }
  .hero { grid-template-columns: 1fr; }
  .topbar-left { display: none; }
  .thread-table .col-author, .thread-table .col-count { display: none; }
}

/* ---------- 补丁：面包屑 / 主题标题 / 行内表单 ---------- */
.crumbs { font-size: 12.5px; color: var(--ink-3); padding: 4px 0 0; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--seal); }
.thread-title { font-family: var(--serif); font-size: 22px; letter-spacing: .02em; margin: 0; line-height: 1.45; }
.thread-sub { font-size: 12.5px; color: var(--ink-3); padding: 0 2px 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.inline-form { display: inline; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--link); cursor: pointer; }
.linkbtn:hover { color: var(--seal); }
@media (max-width: 720px) {
  .thread-title { font-size: 18px; }
  .post-side { padding: 12px; }
  .post-user dl { grid-column: 2; }
}

/* ---------- 细屏适配 ---------- */
.brand-text strong { white-space: nowrap; }
@media (max-width: 880px) {
  .masthead-in { flex-wrap: wrap; row-gap: 12px; }
  .mast-search { width: 100%; }
  .mast-search input { flex: 1; width: auto; }
}
@media (max-width: 720px) {
  .post-user { grid-column: 2; }
  .post-user dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .post-user dl div { border-bottom: 0; }
}

/* ---------- 资料馆 ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.lib-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line-2); background: var(--card); box-shadow: var(--shadow-sm); color: var(--ink); }
.lib-card:hover { text-decoration: none; border-color: var(--seal); background: #fdf9ee; }
.lib-card .li { color: var(--seal); margin-bottom: 4px; }
.lib-card strong { font-family: var(--serif); font-size: 16px; letter-spacing: .08em; }
.lib-card em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.gallery-lg { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.g-item { display: block; border: 1px solid var(--line-2); background: #fff; padding: 3px; box-shadow: var(--shadow-sm); overflow: hidden; }
.g-item:hover { border-color: var(--seal); text-decoration: none; }
.g-item img { display: block; width: 100%; height: 110px; object-fit: cover; background: var(--paper-2); }
.gallery-lg .g-item img { height: 130px; }
.g-item span { display: block; padding: 4px 2px 2px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bc-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.bc-list li { padding: 5px 0; border-bottom: 1px dotted var(--line); color: var(--ink-2); }
.bc-list li:last-child { border-bottom: 0; }
.bc-list .m { display: block; font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }

.article { font-size: 15px; line-height: 1.95; }
.article p { margin: 0 0 .8em; }

.gblist { list-style: none; margin: 0; padding: 0; }
.gblist li { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px dotted var(--line); }
.gblist img { width: 36px; height: 36px; border: 1px solid var(--line-2); background: #fff; flex: 0 0 auto; }
.gb-head { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 10px; align-items: baseline; }
.gb-head a { color: var(--ink); font-weight: 600; font-size: 13px; }
.gb-body { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.75; }

.meta-table { border-collapse: collapse; font-size: 13px; }
.meta-table th { text-align: left; color: var(--ink-3); font-weight: 400; padding: 4px 18px 4px 0; width: 88px; }
.meta-table td { padding: 4px 0; color: var(--ink-2); border-bottom: 1px dotted var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line-2); background: var(--card); font-size: 12.5px; color: var(--ink-2); }
.chip:hover { border-color: var(--seal); color: var(--seal); text-decoration: none; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip em { font-style: normal; font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.chip.on em { color: var(--paper-3); }

.bc-wall li { font-size: 13.5px; line-height: 1.8; }
.bc-wall .who a { color: var(--seal); font-weight: 600; margin-right: 6px; }
.bc-wall .m { display: inline; margin-left: 8px; }

/* ---------- 牌桌 ---------- */
.poker-row { display: flex; gap: 10px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.pcard { width: 64px; height: 92px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; font-weight: 700; box-shadow: var(--shadow-sm); }
.pcard.back { background: repeating-linear-gradient(45deg, #e8dfc9 0 6px, #f4efe3 6px 12px); color: var(--ink-3); }
.slot-row { display: flex; gap: 12px; justify-content: center; margin: 18px 0; }
.reel { width: 84px; height: 84px; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 38px;
  background: #fffdf6; box-shadow: 4px 4px 0 rgba(60,50,35,.12); }

/* ---------- 社区 ---------- */
.clan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clan-grid-lg { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
@media (max-width: 680px) { .clan-grid { grid-template-columns: 1fr; } }
.clan-card { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.clan-card:hover { border-color: var(--seal); background: #fdf9ee; text-decoration: none; }
.clan-mark { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; background: var(--seal); color: #fff4e6;
  font-family: var(--serif); font-size: 20px; border-radius: 2px; box-shadow: inset 0 0 0 2px #fff4e6; }
.clan-mark-lg { width: 72px; height: 72px; font-size: 36px; }
.clan-img { width: 38px; height: 38px; object-fit: cover; border: 1px solid var(--line-2); background: #fff; flex: 0 0 auto; }
.clan-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.clan-body strong { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.clan-body em { font-style: normal; font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.clan-desc { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.clan-hero { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-2);
  background: linear-gradient(135deg, #fffdf6, #f3ecda); box-shadow: var(--shadow); margin-bottom: 18px; }
.clan-logo { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line-2); background: #fff; padding: 2px; }
.clan-meta h1 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; letter-spacing: .06em; }
.clan-facts { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--ink-3); }
.clan-facts b { color: var(--ink-2); font-family: var(--mono); font-weight: 500; }

.chat-list { list-style: none; margin: 0; padding: 0; }
.chat-list li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.chat-list li:last-child { border-bottom: 0; }
.chat-list img { width: 28px; height: 28px; border: 1px solid var(--line-2); background: #fff; flex: 0 0 auto; }
.chat-meta { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.chat-meta b { color: var(--ink-2); font-weight: 600; font-size: 12.5px; }
.chat-meta .to { color: var(--seal); }
.chat-meta .t { font-family: var(--mono); font-size: 10.5px; }
.chat-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.chat-list-lg li { padding: 10px 0; }
.chat-list-lg img { width: 34px; height: 34px; }

.dating-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 680px) { .dating-grid { grid-template-columns: 1fr; } }
.dating-card { border: 1px solid var(--line); background: var(--paper); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.dating-card h3 { margin: 2px 0 0; font-family: var(--serif); font-size: 15px; }
.dating-card p { margin: 0; font-size: 12.5px; color: var(--ink-3); flex: 1; }
.dt-head { display: flex; gap: 8px; align-items: center; }
.dt-head img { width: 34px; height: 34px; border: 1px solid var(--line-2); background: #fff; }
.dt-name { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.dt-meta { font-size: 11px; color: var(--ink-3); }
.dt-state { margin-left: auto; font-size: 10.5px; border: 1px solid var(--line-2); padding: 0 5px; color: var(--ink-3); }
.dt-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); border-top: 1px dotted var(--line); padding-top: 5px; }

/* ---------- 农场 ---------- */
.farm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--line-2); background: linear-gradient(135deg, #fffdf6, #f2ecd9); padding: 12px 16px;
  box-shadow: var(--shadow); margin-bottom: 16px; }
.farm-me { display: flex; align-items: center; gap: 10px; }
.farm-me img { width: 44px; height: 44px; border: 1px solid var(--line-2); background: #fff; }
.farm-me strong { font-family: var(--serif); font-size: 16px; }
.farm-lvl { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.farm-lvl b { color: var(--seal); font-family: var(--mono); }
.farm-lvl .bar { width: 90px; height: 6px; background: var(--paper-3); border: 1px solid var(--line-2); display: inline-block; }
.farm-lvl .bar i { display: block; height: 100%; background: #7d9a6a; }
.farm-purse { font-size: 12.5px; color: var(--ink-3); }
.farm-purse b { font-family: var(--mono); color: var(--ink); font-size: 15px; margin: 0 5px 0 3px; }

.farm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 620px) { .farm-grid { grid-template-columns: repeat(2, 1fr); } }
.plot { border: 1px solid var(--line-2); background: #f8f3e4; padding: 10px; min-height: 148px;
  display: flex; flex-direction: column; gap: 6px; position: relative; }
.plot-no { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.plot-crop { font-family: var(--serif); font-size: 17px; margin-top: 4px; }
.plot-timer { font-size: 11.5px; color: var(--ink-3); flex: 1; }
.plot.empty { background: repeating-linear-gradient(45deg, #f4eeda 0 8px, #f8f3e4 8px 16px); }
.plot.growing { background: linear-gradient(180deg, #f6f1e0, #eee6d0); }
.plot.ripe { background: linear-gradient(180deg, #fbf6e3, #f0e7c9); border-color: #c8b17a; box-shadow: inset 0 0 0 2px #fdf8e8; }
.plant-form { display: flex; gap: 6px; flex-wrap: wrap; }
.plant-form select { flex: 1; min-width: 0; font-size: 12px; padding: 4px 6px; }
.plant-form .btn { padding: 3px 8px; font-size: 12px; }

.crop-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.crop-item { border: 1px solid var(--line); background: var(--paper); padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.crop-item strong { font-family: var(--serif); font-size: 14px; }
.crop-item span { font-size: 11px; color: var(--ink-3); }

.farm-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px;
  border: 1px solid var(--line-2); background: linear-gradient(120deg, #f7f1de, #eef4e3 70%, #f6efdc);
  box-shadow: var(--shadow); color: var(--ink); }
.farm-banner:hover { text-decoration: none; border-color: var(--seal); }
.fb-mark { width: 46px; height: 46px; display: grid; place-items: center; background: #3c6647; color: #f3f7ec;
  font-family: var(--serif); font-size: 24px; border-radius: 2px; box-shadow: inset 0 0 0 2px #f3f7ec; }
.fb-body { display: flex; flex-direction: column; flex: 1; }
.fb-body strong { font-family: var(--serif); font-size: 17px; letter-spacing: .06em; }
.fb-body em { font-style: normal; font-size: 12px; color: var(--ink-3); }

.plot-icon { font-size: 30px; line-height: 1.1; }
.plot-icon.muted { color: var(--line-2); font-family: var(--serif); }

/* ---------- 管理条 ---------- */
.modbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 12px;
  border: 1px dashed #c9a3a0; background: #fdf1ee; margin-top: 12px; }
.modbar form { display: inline; }
.modbar-tag { font-size: 11px; letter-spacing: .16em; color: var(--seal); border: 1px solid #c9a3a0; padding: 1px 6px; }
.btn-danger { border-color: #a9342a; color: #a9342a; background: #fdf1ee; }
.btn-danger:hover { background: #a9342a; color: #fff; }
.linkbtn.danger { color: var(--seal); }

/* ---------- 投票 ---------- */
.poll { margin-top: 16px; border: 1px solid var(--line-2); background: #fbf7ea; padding: 12px 14px; }
.poll-head { font-family: var(--serif); font-size: 14px; letter-spacing: .06em; margin-bottom: 8px; color: var(--ink-2); }
.poll-opt { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; cursor: pointer; }
.poll-opt input { width: auto; }
.poll-result { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin-bottom: 4px;
  border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.poll-result.mine { border-color: var(--seal); }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: #e9e1cb; z-index: 0; }
.poll-bar i { display: block; height: 100%; background: #dfd3b4; }
.poll-result.mine .poll-bar i { background: #e8c9c4; }
.poll-text, .poll-num { position: relative; z-index: 1; }
.poll-text { flex: 1; font-size: 13.5px; }
.poll-num { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* ---------- 上传 ---------- */
.upl { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.upl-list { font-size: 12px; }
.attach { flex-wrap: wrap; }
.attach .thumb { display: inline-block; margin-left: 8px; }
.attach .thumb img { height: 54px; width: auto; border: 1px solid var(--line-2); background: #fff; padding: 1px; vertical-align: middle; }

/* ---------- 评论 ---------- */
.cmt-list { list-style: none; margin: 0; padding: 0; }
.cmt-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.cmt-list li:last-child { border-bottom: 0; }
.cmt-list img { width: 28px; height: 28px; border: 1px solid var(--line-2); background: #fff; flex: 0 0 auto; }
.cmt-head { font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; }
.cmt-head a { color: var(--ink); font-weight: 600; }
.cmt-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 留言回复 ---------- */
.gb-reps { list-style: none; margin: 6px 0 0; padding: 6px 0 0 12px; border-left: 2px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.gb-reps li { padding: 2px 0; }
.gb-reps b { color: var(--ink-2); }
.gb-reps .m { font-family: var(--mono); font-size: 10.5px; margin-left: 6px; }

/* ---------- 用户页操作 ---------- */
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.user-actions form { display: inline; }

.plot-acts { display: flex; gap: 4px; flex-wrap: wrap; }
.plot-acts form { display: inline; }

/* ---------- 赛马 / 战争 / 射击 ---------- */
.track { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.lane { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--line-2); padding: 4px 10px; background: #fffdf6; }
.lane.win { border-color: var(--green); background: #f2f7ec; }
.lane-no { font-family: var(--mono); width: 16px; color: var(--ink-3); }
.lane-name { font-family: var(--serif); width: 70px; text-align: left; }
.lane-odds { font-size: 11px; color: var(--ink-3); width: 44px; }
.lane-horse { margin-left: auto; font-size: 20px; }

.targets { display: flex; gap: 16px; justify-content: center; margin: 14px 0; }
.target { width: 96px; height: 96px; position: relative; display: grid; place-items: center; }
.target .rings { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--line-2);
  background: repeating-radial-gradient(circle, #f4eee0 0 10px, #fffdf6 10px 20px); }
.target span { position: relative; z-index: 1; font-size: 11px; color: var(--ink-3); }
.target.hit .rings { border-color: var(--green); }
.target.miss .rings { border-color: var(--seal); opacity: .65; }

.war-line { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 8px 0; }
.war-side { font-family: var(--mono); font-size: 12px; color: var(--ink-3); width: 80px; text-align: right; }
.poker-row.small .pcard { width: 48px; height: 66px; font-size: 15px; }

/* ---------- 等级：星星月亮太阳 ---------- */
.lvl-line { margin-top: 6px; }
.lvl-badge { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.lvl-icon { vertical-align: middle; image-rendering: -webkit-optimize-contrast; }
.lvl-name { font-size: 11px; line-height: 1.5; color: #7a5f21; background: #fbf3dd; border: 1px solid #b9a06a; padding: 0 5px; letter-spacing: .02em; }
.lvl-num { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }

/* ---------- 安全/举报 ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-box { display: inline-block; font-size: 12px; margin-left: 8px; }
.report-box summary { cursor: pointer; color: var(--ink-3); list-style: none; }
.report-box summary::-webkit-details-marker { display: none; }
.report-box summary:hover { color: var(--seal); }
.report-box form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.report-box select, .report-box input { font-size: 12px; padding: 3px 6px; width: auto; }

/* ---------- 后台 ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 16px; border-bottom: 2px solid var(--ink); }
.admin-tabs a { padding: 7px 16px; background: var(--paper-2); border: 1px solid var(--line-2); border-bottom: 0; font-size: 13.5px; color: var(--ink-2); }
.admin-tabs a:hover { background: var(--paper); color: var(--seal); text-decoration: none; }
.admin-tabs a.on { background: var(--paper); color: var(--ink); font-weight: 600; border-color: var(--ink); }
.adm-form { display: inline-flex; gap: 4px; align-items: center; margin: 2px 0; }
.adm-form input[type=text], .adm-form select { font-size: 12px; padding: 3px 6px; }

/* ---------- 签到日历 / 战绩 / 友链 ---------- */
.calendar { width: 100%; border-collapse: collapse; font-size: 13px; }
.calendar th { font-weight: 400; color: var(--ink-3); padding: 6px 0; border-bottom: 1px solid var(--line); }
.calendar td { text-align: center; padding: 9px 0; border: 1px solid var(--line); color: var(--ink-2); position: relative; }
.calendar td.empty { border: 0; background: var(--paper); }
.calendar td.on { background: #eef4e5; color: var(--green); font-weight: 600; }
.calendar td.on::after { content: "签"; position: absolute; right: 3px; top: 0; font-size: 9px; color: var(--green); }
.calendar td.today { outline: 2px solid var(--seal); outline-offset: -2px; }

.bar { display: block; height: 5px; background: var(--paper-3); border: 1px solid var(--line-2); }
.bar i { display: block; height: 100%; background: #7d9a6a; }
.up { color: var(--green); }
.down { color: var(--seal); }

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.link-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 10px; background: var(--paper); color: var(--ink); }
.link-item:hover { border-color: var(--seal); text-decoration: none; }
.link-item img { width: 26px; height: 26px; object-fit: contain; border: 1px solid var(--line-2); background: #fff; }
.link-mark { width: 26px; height: 26px; display: grid; place-items: center; background: var(--seal); color: #fff4e6; font-family: var(--serif); }
.link-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 个人设置 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; padding: 6px; border: 1px solid var(--line); background: var(--paper); }
.av-item { border: 1px solid transparent; padding: 2px; cursor: pointer; line-height: 0; }
.av-item.on { border-color: var(--seal); background: #fff; }
.av-item input { display: none; }
.av-item img { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--line-2); background: #fff; }

/* ============================================================
   2010 蓝 · 主题覆盖
   把纸张风换成 2010 年前后中文论坛的蓝色调：白底、蓝导航、
   浅蓝表头、细边框。保留原有布局与字号层级。
   ============================================================ */

:root {
  --paper:   #eef2f6;
  --paper-2: #e4ebf3;
  --paper-3: #d7e1eb;
  --card:    #ffffff;
  --ink:     #1f2f3f;
  --ink-2:   #405367;
  --ink-3:   #7b8c9e;
  --line:    #d5dfea;
  --line-2:  #bccbdb;
  --link:    #2a65a3;
  --link-hover: #1f4e80;
  --visited: #6a5a8a;
  --seal:    #b03a2e;       /* 印章红保持不变 */
  --seal-2:  #8c2c22;
  --brand:   #2f6fb2;       /* 2010 蓝 */
  --brand-2: #245a94;
  --gold:    #a9761c;
  --green:   #3d7a4d;
  --shadow:  0 1px 2px rgba(28, 56, 88, .10);
  --shadow-sm: 0 1px 1px rgba(28, 56, 88, .08);
}

body {
  background-color: #eef2f6;
  background-image: linear-gradient(180deg, #e9eff6 0, #f4f7fa 220px, #f4f7fa 100%);
  font-size: 13.5px;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

.wrap { max-width: 1080px; }

/* 顶部信息条 */
.topbar { background: #22384e; border-bottom: 1px solid #16283a; }
.topbar .dot { background: #7fd18b; }

/* 报头 */
.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 1px 0 #fff inset;
}
.masthead-in { padding-top: 18px; padding-bottom: 16px; }
.brand-text strong { font-size: 27px; letter-spacing: .12em; color: #1d3b5c; }
.brand-text em { color: #8698ab; }
.mast-search { border-color: var(--line-2); box-shadow: none; height: 34px; }
.mast-search button { background: var(--brand); color: #fff; border-left: 0; }
.mast-search button:hover { background: var(--brand-2); }

/* 主导航：2010 蓝色渐变条 */
.mainnav {
  background: linear-gradient(180deg, #4285c6 0%, #2f6fb2 55%, #2a66a6 100%);
  border-bottom: 2px solid #1f4f80;
  box-shadow: 0 1px 2px rgba(20, 50, 85, .18);
}
.mainnav::after { display: none; }
.mainnav a { color: #eaf3fc; padding: 9px 18px 8px; font-size: 14px; border: 0; text-shadow: 0 1px 0 rgba(0,0,0,.12); }
.mainnav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.mainnav a.on {
  background: #1f4f80;
  color: #fff;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.28);
  font-weight: 600;
  border: 0;
}

/* 卡片 */
.card { border: 1px solid var(--line-2); border-radius: 3px; box-shadow: var(--shadow); }
.card::after { display: none; }
.card-head {
  background: linear-gradient(180deg, #f6fafd, #e9f1f9);
  border-bottom: 1px solid var(--line-2);
  border-left: 3px solid var(--brand);
  border-radius: 2px 2px 0 0;
  padding: 9px 14px;
}
.card-head h2, .card-head h3 { font-size: 15px; letter-spacing: .04em; color: #1d3b5c; }
.card-body { padding: 12px 14px; }

/* 首页横幅 */
.hero {
  background: linear-gradient(180deg, #ffffff, #eef5fc);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.hero h1 { font-size: 22px; color: #1d3b5c; }
.hero p { font-size: 13px; color: var(--ink-2); }
.hero-stats { border-color: var(--line-2); }
.hero-stats div { border-left-color: var(--line); }
.hero-stats b { color: #1d3b5c; font-size: 17px; }

/* 版块列表 */
.boards { gap: 0; }
.board-row { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 11px 14px; }
.board-row:nth-child(2n) { border-right: 0; }
.board-row:hover { background: #f6fafd; }
.board-icon {
  width: 34px; height: 34px; background: #eef4fb; border: 1px solid var(--line-2);
  box-shadow: none; border-radius: 3px; color: var(--brand);
}
.board-main h3 { font-size: 14.5px; color: #1d3b5c; }
.board-main h3 a:hover { color: var(--brand); }
.board-main p { font-size: 12px; color: var(--ink-3); }
.board-count { font-size: 11.5px; }

/* 主题表格 */
.thread-table { font-size: 13.5px; }
.thread-table thead th {
  background: linear-gradient(180deg, #f2f7fc, #e7eff8);
  border-bottom: 1px solid var(--line-2);
  color: #5a7893;
  font-size: 11.5px;
  padding: 8px 12px;
}
.thread-table td { border-bottom: 1px dotted var(--line); padding: 9px 12px; }
.thread-table tr:hover td { background: #f5fafe; }
.t-title a { color: #24445f; }
.t-title a:hover { color: var(--brand); }

/* 分页 */
.pager { background: #f6f9fc; border-top: 1px solid var(--line); }
.pager .pg { border-color: var(--line-2); background: #fff; border-radius: 2px; }
.pager a.pg:hover { border-color: var(--brand); color: var(--brand); }
.pager .pg.cur { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 帖子 */
.post-side { background: linear-gradient(180deg, #f7fafd, #eef4fa); border-right: 1px solid var(--line); }
.post-avatar { border: 1px solid var(--line-2); box-shadow: none; }
.post-user .name { font-size: 14px; color: #1d3b5c; }
.post-user dl div { border-bottom: 1px dotted var(--line); }
.post-head { border-bottom: 1px dotted var(--line); }
.post-floor b { color: var(--brand); }
.post-body { font-size: 14.5px; line-height: 1.9; }
.post-main { padding: 12px 16px 18px; }
.ubb-quote { background: #f2f7fc; border-left-color: var(--brand); }

/* 按钮与表单 */
.btn { border-radius: 3px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #fff, #eef3f8); box-shadow: none; }
.btn:hover { background: linear-gradient(180deg, #3f80c2, #2f6fb2); border-color: #245a94; color: #fff; }
.btn-primary { background: linear-gradient(180deg, #3f80c2, #2c6aae); border-color: #245a94; color: #fff; }
.btn-primary:hover { background: linear-gradient(180deg, #2f6fb2, #235a93); color: #fff; }
.btn-ghost { background: #fff; }
.btn-danger { background: #fff; border-color: #c0655c; color: #a9342a; }
.btn-danger:hover { background: #b03a2e; color: #fff; border-color: #8c2c22; }

input[type=text], input[type=password], input[type=email], input[type=search], textarea, select {
  border: 1px solid var(--line-2); border-radius: 2px; box-shadow: none; background: #fff;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(47, 111, 178, .15);
}

/* 侧栏 */
.side .card-body { padding: 10px 12px; }
.side-list li { border-bottom: 1px dotted var(--line); }
.side-list .t a { color: #24445f; }

/* 帖子右侧统计数据 */
.post-user dl { font-size: 11px; }
.lvl-name { background: #eef4fb; border-color: #a9c0d8; color: #2a5a86; }

/* 签到日历 */
.calendar td.on { background: #e8f2fd; color: var(--brand); }
.calendar td.today { outline-color: var(--brand); }

/* 页脚 */
.footer { background: #2b3d52; border-top: 2px solid #1f2f3f; }
.footer h4 { color: #dbe7f3; }
.footer a { color: #c3d4e5; }
.foot-bottom { border-top-color: #3d5069; color: #93a7bc; }

/* 后台 */
.admin-tabs { border-bottom: 2px solid var(--brand); }
.admin-tabs a { background: #eff4fa; border-color: var(--line-2); }
.admin-tabs a.on { border-color: var(--brand); color: var(--brand); }

/* 移动端微调 */
@media (max-width: 880px) {
  .masthead-in { padding-top: 14px; padding-bottom: 12px; }
  .mainnav a { padding: 8px 13px; }
}

/* ---------- 移动端：导航吸顶 ---------- */
@media (max-width: 880px) {
  .mainnav { position: sticky; top: 0; z-index: 30; }
  .thread-table td { padding: 8px 10px; }
  .post-body { font-size: 14px; }
  .lvl-icon { vertical-align: -2px; }
}

/* ---------- 帖子底部操作：举报 / 引用 靠右下 ---------- */
.post-foot { justify-content: flex-end; align-items: center; gap: 12px; position: relative; }
.post-foot-owner { margin-top: 16px; padding-top: 8px; border-top: 1px dotted var(--line); display: flex; justify-content: flex-end; }
.post-foot .report-box { position: relative; margin-left: 0; }
.post-foot .report-box summary { font-size: 12px; color: var(--ink-3); padding: 2px 4px; }
.post-foot .report-box summary:hover { color: var(--seal); }
.post-foot .report-box form {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  width: 300px; max-width: 78vw; background: #fff; border: 1px solid var(--line-2);
  box-shadow: 0 6px 18px rgba(24, 48, 76, .18); padding: 10px; display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: flex-end; border-radius: 3px;
}
.post-foot .report-box select,
.post-foot .report-box input { flex: 1 1 100%; width: 100%; font-size: 12px; }
.post-foot .report-box button { margin-left: auto; }
.post-foot form { margin: 0; }
@media (max-width: 720px) {
  .post-foot { gap: 10px; }
  .post-foot .report-box form { right: -4px; width: 260px; }
}

/* ---------- 标题里的表情 + 帖子底部操作贴到底 ---------- */
.title-face { width: 18px; height: 18px; vertical-align: -3px; margin-right: 3px; }
.thread-title .title-face { width: 22px; height: 22px; vertical-align: -4px; }
.post-main { display: flex; flex-direction: column; }
.post-foot { margin-top: auto; }
.post-foot-owner { margin-top: auto; }

/* ---------- 勋章 ---------- */
.medal-line { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; align-items: center; }
.medal { height: 22px; width: auto; vertical-align: middle; }
.medal-more { font-size: 10px; color: var(--ink-3); font-family: var(--mono); }

/* ---------- 后台勋章选择 ---------- */
.medal-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.medal-item { position: relative; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; padding: 8px 4px; cursor: pointer; border-radius: 3px; }
.medal-item img { height: 26px; width: auto; }
.medal-item input { position: absolute; top: 4px; left: 4px; width: auto; }
.medal-item.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(47,111,178,.15); }
.medal-item:hover { border-color: var(--brand); }

/* ============================================================
   帖子卡片重排
   ============================================================ */
.post-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.post-list .post {
  display: grid; grid-template-columns: 174px minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line-2); border-radius: 4px;
  box-shadow: var(--shadow-sm); overflow: hidden; border-bottom: 1px solid var(--line-2);
}
.post-list .post:last-child { border-bottom: 1px solid var(--line-2); }

.post-side {
  padding: 16px 14px 14px; text-align: center;
  background: linear-gradient(180deg, #f8fbfe, #edf3fa);
  border-right: 1px solid var(--line);
}
.post-avatar {
  width: 92px; height: 92px; object-fit: cover; display: block; margin: 0 auto;
  border: 1px solid #cfdbe7; background: #fff; padding: 2px; border-radius: 3px; box-shadow: none;
}
.post-user { margin-top: 0; }
.post-user .name { font-size: 15px; margin-top: 9px; line-height: 1.4; }
.post-user .uid { font-size: 10.5px; margin-top: 2px; letter-spacing: .04em; }
.post-user .lvl-line { display: flex; justify-content: center; margin-top: 7px; }
.post-user .lvl-badge { justify-content: center; gap: 4px; }
.post-user .lvl-icon { height: 14px; width: auto; }
.post-user .lvl-name { font-size: 10.5px; padding: 0 4px; }
.post-user .medal-line { justify-content: center; margin-top: 6px; gap: 2px; }
.post-user .medal { height: 20px; }
.post-user dl { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 11.5px; }
.post-user dl div { display: flex; justify-content: space-between; gap: 6px; padding: 2.5px 0; border-bottom: 0; }
.post-user dt { color: var(--ink-3); }
.post-user dd { color: var(--ink-2); font-family: var(--mono); }

.post-main { padding: 14px 18px 12px; display: flex; flex-direction: column; }
.post-head { border-bottom: 1px solid #eef3f8; padding-bottom: 8px; margin-bottom: 12px; font-size: 12px; }
.post-floor {
  font-family: var(--sans); font-size: 12px; color: var(--ink-3);
  background: #f2f7fc; border: 1px solid var(--line); border-radius: 10px; padding: 1px 9px;
}
.post-floor b { font-family: var(--mono); color: var(--brand); font-size: 12px; }
.post-list .post:first-child .post-floor { background: #e8f2fd; border-color: #b9d3ec; color: var(--brand); }
.post-date { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.post-body { font-size: 14.5px; line-height: 1.95; }
.post-sign { margin-top: 14px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.post-foot { margin-top: auto; border-top: 1px solid #eef3f8; padding-top: 8px; font-size: 12px; }
.post-foot a, .post-foot .report-box summary { color: var(--ink-3); }
.post-foot a:hover, .post-foot .report-box summary:hover { color: var(--brand); }
.post-pager { margin-top: 14px; }
.post-pager .pager { border: 1px solid var(--line-2); border-radius: 4px; background: #fff; }

/* 回复表单卡片化 */
#reply.card { border-radius: 4px; margin-top: 14px; }

@media (max-width: 720px) {
  .post-list .post { grid-template-columns: 1fr; }
  .post-side {
    display: flex; align-items: center; gap: 12px; text-align: left;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px;
    background: linear-gradient(180deg, #f8fbfe, #eff4fa);
  }
  .post-avatar { width: 54px; height: 54px; margin: 0; flex: 0 0 auto; }
  .post-user { flex: 1; min-width: 0; }
  .post-user .name { margin-top: 0; text-align: left; font-size: 14px; }
  .post-user .lvl-line, .post-user .medal-line { justify-content: flex-start; }
  .post-user dl { display: none; }
  .post-main { padding: 12px 14px 10px; }
  .post-body { font-size: 14px; }
}

/* 正文按容器铺满，不做宽度限制 */
.post-body { max-width: none; }
.post-user .medal { height: 18px; }
.post-user .medal-more { font-size: 10px; }

/* 侧栏再紧凑一点 */
.post-side { padding: 14px 12px 12px; }
.post-avatar { width: 84px; height: 84px; }
.post-user .name { margin-top: 8px; }
.post-user dl { margin-top: 10px; padding-top: 8px; }
.post-user dl div { padding: 2px 0; }

/* 等级：图标一行、称号一行，别再挤在一起 */
.lvl-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.lvl-icons { display: inline-flex; flex-wrap: wrap; gap: 2px; align-items: center; min-height: 15px; }
.lvl-meta { display: inline-flex; align-items: center; gap: 5px; }
.post-user .lvl-badge { align-items: center; gap: 7px; }
.post-user .lvl-line { margin-top: 9px; }
.post-user .medal-line { margin-top: 8px; }
@media (max-width: 720px) {
  .post-user .lvl-badge { align-items: flex-start; }
}

/* 等级称号：Lv 和称号合成一个徽章 */
.lvl-meta { display: inline-flex; align-items: center; }
.lvl-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #a9c0d8; background: #eef4fb; border-radius: 3px;
  padding: 1px 8px; line-height: 1.6;
}
.lvl-pill .lvl-num { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: #2a5a86; letter-spacing: .02em; }
.lvl-pill .lvl-name { border: 0; background: none; padding: 0; font-size: 11px; color: #2a5a86; }

/* ---------- 回到单张卡片的帖子列表（保留紧凑侧栏） ---------- */
.post-container { padding: 0; overflow: hidden; }
.post-container .post {
  display: grid; grid-template-columns: 174px minmax(0, 1fr);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; box-shadow: none; overflow: visible;
}
.post-container .post:last-of-type { border-bottom: 0; }
.post-container .post-side { border-right: 1px solid var(--line); }
.post-container .post-pager { margin: 0; }
.post-container .post-pager .pager {
  border: 0; border-top: 1px solid var(--line); background: #f7fafc; padding: 12px 16px;
}
@media (max-width: 720px) {
  .post-container .post { grid-template-columns: 1fr; }
}

/* ============================================================
   资料卡片（按参考图）
   ============================================================ */
.post-user .name a { color: #2f6fb2; font-weight: 600; font-size: 16px; }
.post-user .uid { font-size: 10.5px; color: #8a9aab; margin-top: 3px; letter-spacing: .02em; }
.post-user .uid::before { content: "UID: "; }

.post-user .lvl-badge { gap: 7px; }
.post-user .lvl-pill {
  background: linear-gradient(180deg, #4c93da, #3577bd);
  border: 1px solid #2f6fb2; border-radius: 12px;
  padding: 2px 12px; box-shadow: 0 1px 2px rgba(30, 70, 120, .18);
}
.post-user .lvl-pill .lvl-num { color: #fff; font-size: 11px; letter-spacing: .03em; }
.post-user .lvl-pill .lvl-name { color: #fff; font-size: 11px; }
.post-user .lvl-icons { justify-content: center; margin-top: 2px; }
.post-user .lvl-icon { height: 16px; }

.post-user dl { margin-top: 12px; padding-top: 0; border-top: 1px solid #e6eef6; }
.post-user dl div {
  padding: 4px 8px; border-bottom: 0; background: #f6f9fc; font-size: 12px;
}
.post-user dl div:nth-child(even) { background: #ffffff; }
.post-user dl div:first-child { border-radius: 3px 3px 0 0; }
.post-user dl div:last-child { border-radius: 0 0 3px 3px; }
.post-user dt { color: #7b8c9e; }
.post-user dd { color: #1f2f3f; font-family: var(--mono); font-size: 12px; }

/* 个人主页资料卡也统一 */
.profile-card .lvl-pill {
  background: linear-gradient(180deg, #4c93da, #3577bd);
  border-color: #2f6fb2;
}
.profile-card .lvl-pill .lvl-num,
.profile-card .lvl-pill .lvl-name { color: #fff; }
.profile-card .lvl-icons { justify-content: center; }

.post-avatar { box-shadow: 0 1px 4px rgba(30, 60, 90, .12); }
.post-user .medal-line { margin-top: 7px; }

/* 楼主信息移到楼主楼层头部 */
.post-head-owner { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.ph-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ph-meta { font-size: 12.5px; color: var(--ink-3); }
.ph-meta a { color: #2f6fb2; font-weight: 600; }
.ph-meta .post-date { font-size: 11.5px; }
.ph-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.ph-stat { white-space: nowrap; }
.ph-right .linkbtn { font-size: 11.5px; }
@media (max-width: 720px) {
  .ph-right { margin-left: 0; gap: 8px; }
}

/* ---------- QQ 等级图标（PNG 36px） ---------- */
.lvl-icon { height: 18px; width: auto; vertical-align: -3px; image-rendering: auto; margin-right: 1px; }
.post-user .lvl-icon { height: 20px; vertical-align: -4px; }
.post-user .lvl-icons { gap: 3px; }

/* 等级图标与勋章之间加一道细分隔，避免混在一起 */
.post-user .medal-line { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); }
.post-user .lvl-icons { min-height: 22px; }

/* 经典立体 QQ 图标：16px 原件，按倍数放大保持像素感 */
.lvl-icon { height: 18px; width: auto; image-rendering: pixelated; vertical-align: -4px; margin-right: 1px; }
.post-user .lvl-icon { height: 20px; vertical-align: -5px; }

/* 经典图标按 16px 原生尺寸显示，最清晰 */
.lvl-icon { height: 16px !important; vertical-align: -3px; }
.post-user .lvl-icon { height: 16px !important; vertical-align: -3px; }

/* 新版立体图标（去白底 PNG，64px 导出，显示 18/20px） */
.lvl-icon { height: 18px !important; width: auto; image-rendering: auto; vertical-align: -3px; margin-right: 1px; }
.post-user .lvl-icon { height: 20px !important; vertical-align: -4px; }
.post-user .lvl-icons { gap: 4px; }

/* 帖子里的等级图标缩小一半（20px → 10px） */
.post-user .lvl-icon { height: 10px !important; vertical-align: -1px; margin-right: 0; }
.post-user .lvl-icons { gap: 2px; min-height: 12px; }

/* ============================================================
   首页怀旧版：信息条 + 版块表 + 在线会员
   ============================================================ */
.statbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px;
  background: #f7fbff; border: 1px solid var(--line-2); border-radius: 3px;
  padding: 7px 12px; font-size: 12px; color: var(--ink-2); margin-bottom: 14px;
}
.statbar b { font-family: var(--mono); color: #1d3b5c; font-weight: 600; }
.statbar em { font-style: normal; color: var(--ink-3); font-size: 11px; }
.statbar .sep { color: #c3d4e4; }
.statbar a { color: var(--brand); }

.forum-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.forum-table th {
  text-align: left; font-size: 11.5px; color: #5a7893; font-weight: 600;
  background: #eaf2fa; border-bottom: 1px solid var(--line-2); padding: 7px 12px;
}
.forum-table td { border-bottom: 1px solid #e6eef6; padding: 10px 12px; vertical-align: middle; }
.forum-table tbody tr:last-child td { border-bottom: 0; }
.forum-table tbody tr:hover td { background: #f7fbff; }
.forum-table .col-n { width: 76px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.forum-table .col-last { width: 250px; }
.f-cell { display: flex; gap: 10px; align-items: center; }
.f-cell .board-icon { width: 34px; height: 34px; flex: 0 0 auto; }
.f-main h3 { margin: 0 0 3px; font-size: 14px; letter-spacing: 0; }
.f-main h3 a { color: #1d3b5c; }
.f-main h3 a:hover { color: var(--brand); }
.f-main p { margin: 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.lt { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #24445f; }
.lt:hover { color: var(--brand); }
.lm { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.side-note {
  margin-top: 10px; padding-top: 8px; border-top: 1px dotted var(--line);
  font-size: 11.5px; color: var(--ink-3); line-height: 1.7;
}

.online-strip {
  background: #f7fbff; border: 1px solid var(--line-2); border-radius: 3px;
  padding: 8px 12px; font-size: 12px; color: var(--ink-2); margin-top: 14px;
}
.online-strip b { color: #1d3b5c; margin-right: 4px; }
.online-strip a { margin: 0 6px; }
.online-strip .muted { font-size: 11.5px; }

@media (max-width: 880px) {
  .forum-table .col-last { display: none; }
  .forum-table .col-n { width: 58px; }
  .f-main p { display: none; }
  .statbar { font-size: 11.5px; gap: 2px 8px; }
}

/* 最后发表里的标题表情小一点，避免压字 */
.lt .title-face { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }
.lt { line-height: 1.5; }

/* 首页版块表：图例与紧凑行高 */
.statbar b { white-space: nowrap; }
.card-tools { display: flex; align-items: center; gap: 12px; }
.legend { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.lg-new { background: #d9534f; }
.lg-old { background: #bccbdb; }
.forum-table td { padding: 8px 12px; }

.forum-table .col-n { white-space: nowrap; }
@media (max-width: 880px) {
  .forum-table .col-n { width: 66px; font-size: 11px; }
  .forum-table td { padding: 8px 8px; }
  .forum-table th { padding: 6px 8px; }
}

/* ---------- 全站隐藏滚动条（仍可滚动） ---------- */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
