/* 悬赏墙 - 中文社区实用风 */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: #faf9f5;
  color: #262524;
  font: 14px/1.65 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
}

a { color: #262524; text-decoration: none; }
a:hover { color: #d84a35; }
a.title:visited { color: #5a5751; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 14px; }
.mono, .num, i em b strong { font-style: normal; }
.num, .coin, .countdown { font-family: Consolas, "Courier New", monospace; }

/* 顶栏 */
.topbar { border-bottom: 1px solid #e6e2d9; background: #faf9f5; }
.bar-inner { display: flex; align-items: center; height: 44px; gap: 14px; }
.logo { font-weight: 700; font-size: 17px; letter-spacing: 1px; }
.logo::before { content: "▍"; color: #d84a35; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a, .adminnav a { padding: 2px 10px; white-space: nowrap; color: #5a5751; }
.nav a.on, .adminnav a.on { color: #d84a35; border-bottom: 2px solid #d84a35; }
.bar-right { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.bar-right .coins { color: #d84a35; font-weight: 600; }
.bar-right .reg { color: #d84a35; }
.notice { position: relative; }
.notice .dot {
  font-style: normal; background: #d84a35; color: #fff; border-radius: 2px;
  font-size: 10px; padding: 0 4px; margin-left: 2px; font-family: monospace;
}

/* 布局 */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; padding: 16px 14px 40px; }
.main-col { min-width: 0; }
.side-col { min-width: 0; }

.zone-title {
  font-size: 15px; font-weight: 700; margin: 18px 0 10px;
  padding-left: 9px; border-left: 3px solid #d84a35;
}
.zone-title .muted { font-weight: 400; font-size: 12px; }
.zone-title .right { float: right; font-weight: 400; }

.box { background: #fff; border: 1px solid #e6e2d9; border-radius: 4px; }
.box.pad { padding: 14px; }
.box-title {
  font-weight: 700; font-size: 13px; padding: 8px 12px;
  border-bottom: 1px solid #e6e2d9; color: #403e3a;
}
.box .pad { padding: 12px; }
.plain-list { list-style: none; padding: 10px 12px; }
.plain-list li { padding: 3px 0 3px 12px; position: relative; color: #5a5751; }
.plain-list li::before { content: "·"; position: absolute; left: 2px; color: #d84a35; }

/* 广告列表行 */
.ad-list { background: #fff; border: 1px solid #e6e2d9; border-radius: 4px; }
.ad-row { padding: 10px 14px; border-bottom: 1px dashed #e6e2d9; }
.ad-row:last-child { border-bottom: 0; }
.ad-row.premium {
  border-left: 3px solid #d84a35; background: #fdf7f3; border-bottom: 1px solid #e6e2d9;
}
.cat {
  display: inline-block; font-size: 12px; color: #5a5751;
  border: 1px solid #d6d1c6; padding: 0 5px; margin-right: 8px; border-radius: 2px;
  vertical-align: 1px;
}
.cat.pending { color: #8a6116; border-color: #d8b96a; }
.cat.approved { color: #3a6b44; border-color: #9dc3a5; }
.cat.rejected { color: #a13a2e; border-color: #d8a49c; }
.ad-row .title { font-weight: 600; font-size: 15px; }
.bounty { color: #d84a35; font-weight: 700; margin-left: 8px; font-size: 13px; }
.row2, .row3 { margin-top: 3px; }
.meta { color: #8a867e; font-size: 13px; }
.stat { color: #8a867e; font-size: 12px; }
.stat .num { color: #5a5751; }

/* 热榜 */
.hotlist { list-style: none; padding: 8px 12px; counter-reset: hot; }
.hotlist li { counter-increment: hot; padding: 4px 0 4px 26px; position: relative;
  display: flex; justify-content: space-between; gap: 8px; }
.hotlist li::before {
  content: counter(hot); position: absolute; left: 4px; width: 16px; text-align: right;
  color: #d84a35; font-family: monospace; font-weight: 700; font-size: 13px;
}
.hotlist li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hotlist .num { color: #8a867e; font-size: 12px; }
.userlist { list-style: none; padding: 8px 12px; }
.userlist li { display: flex; justify-content: space-between; padding: 3px 0; }

/* 详情页 */
.crumb { font-size: 13px; color: #8a867e; margin-bottom: 10px; }
.d-title { font-size: 20px; margin: 8px 0 6px; }
.d-meta { color: #8a867e; font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px; }
.d-summary { margin: 10px 0; padding: 8px 12px; background: #f3f1ea; border-radius: 4px; }
.d-content { white-space: pre-wrap; margin: 12px 0; }
.d-link { word-break: break-all; }
.qr { max-width: 220px; border: 1px solid #e6e2d9; }
.warn-tag { color: #a13a2e; border: 1px solid #e0b6ae; font-size: 12px; padding: 0 5px; border-radius: 2px; }
.premium-tag { color: #d84a35; font-size: 12px; border: 1px solid #e8b7ad; padding: 0 5px; border-radius: 2px; }

.ops { margin: 14px 0; display: flex; gap: 10px; align-items: center; }

/* 楼层评论 */
.floors { background: #fff; border: 1px solid #e6e2d9; border-radius: 4px; }
.floor { padding: 10px 14px; border-bottom: 1px dashed #e6e2d9; }
.floor:last-child { border-bottom: 0; }
.f-head { font-size: 13px; color: #8a867e; display: flex; gap: 10px; }
.f-no { color: #262524; font-family: monospace; font-weight: 700; }
.f-body { margin-top: 4px; white-space: pre-wrap; }

/* 按钮 */
.btn {
  display: inline-block; border: 1px solid #d84a35; color: #d84a35;
  background: #fff; padding: 5px 14px; border-radius: 3px; cursor: pointer;
  font-size: 14px; line-height: 1.5;
}
.btn:hover { background: #fdf3f0; }
.btn.strong { background: #d84a35; color: #fff; }
.btn.strong:hover { background: #c03d29; }
.btn.plain { border-color: #c9c3b6; color: #5a5751; }
.btn.plain:hover { background: #f3f1ea; }
.btn.small { padding: 2px 10px; font-size: 13px; }
.btn.mini { padding: 1px 8px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }

/* 表单 */
.form dl { margin: 10px 0; }
.form dt { font-size: 13px; color: #5a5751; margin-top: 12px; }
.form dd { margin-top: 4px; }
.input {
  width: 100%; border: 1px solid #c9c3b6; border-radius: 3px; padding: 7px 9px;
  background: #fff; font: inherit; color: inherit;
}
.input:focus { outline: none; border-color: #d84a35; }
.input.half { width: 160px; }
textarea.input { resize: vertical; }
.err { color: #a13a2e; margin: 8px 0; }
.hint { color: #8a867e; font-size: 12px; margin: 6px 0; }
.check { display: block; margin: 10px 0 4px; }
.bounty-box { border: 1px dashed #c9c3b6; border-radius: 3px; padding: 10px; margin-top: 12px; }
.three { display: flex; gap: 16px; margin: 8px 0; font-size: 13px; color: #5a5751; flex-wrap: wrap; }
.three .input { margin-top: 4px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row img { height: 36px; cursor: pointer; border: 1px solid #e6e2d9; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form.narrow { max-width: 420px; }
.inline { display: inline-block; }
.inline-search { display: flex; gap: 8px; margin: 10px 0; }
.inline-search .input { width: 300px; }
.reject-form .input { margin-right: 6px; vertical-align: middle; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0; background: #fff; }
.table th, .table td { border: 1px solid #e6e2d9; padding: 6px 9px; text-align: left; vertical-align: top; }
.table th { background: #f3f1ea; font-weight: 600; white-space: nowrap; }
.plus { color: #3a6b44; font-family: monospace; }
.minus { color: #a13a2e; font-family: monospace; }

/* 杂项 */
.flash { background: #fdf6e3; border: 1px solid #e3d5a8; padding: 8px 12px; margin: 10px 0; border-radius: 3px; font-size: 13px; }
.pager { padding: 14px 0; display: flex; gap: 16px; justify-content: center; font-size: 13px; }
.empty { color: #8a867e; padding: 30px 0; text-align: center; }
.muted { color: #8a867e; }
.small { font-size: 12px; }
.coin { color: #d84a35; font-size: 16px; }
.countdown { font-size: 34px; font-weight: 700; color: #d84a35; }
.hidden { display: none; }
.pre { white-space: pre-wrap; background: #f3f1ea; padding: 10px; border-radius: 3px; font-size: 13px; }
.tabs { display: flex; gap: 4px; margin: 10px 0; flex-wrap: wrap; border-bottom: 1px solid #e6e2d9; padding-bottom: 6px; }
.tabs a { padding: 2px 10px; color: #5a5751; font-size: 13px; }
.tabs a.on { color: #d84a35; border-bottom: 2px solid #d84a35; }
.tabs .tab-label { font-size: 13px; color: #8a867e; padding: 2px 6px 2px 0; }
.pill { display: inline-block; border: 1px solid #d6d1c6; border-radius: 2px; padding: 0 6px; font-size: 12px; color: #5a5751; margin: 2px 2px; }
.pill .x { border: 0; background: none; color: #a13a2e; cursor: pointer; font-size: 13px; padding: 0 0 0 3px; }
.kw-wrap { margin-top: 10px; }
.adminnav { display: flex; gap: 2px; border-bottom: 1px solid #e6e2d9; margin-bottom: 6px; flex-wrap: wrap; }
.sub { font-size: 14px; margin: 18px 0 8px; font-weight: 700; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.statgrid > div { background: #fff; border: 1px solid #e6e2d9; padding: 10px 12px; border-radius: 3px; font-size: 12px; color: #8a867e; }
.statgrid i { display: block; font-style: normal; font-size: 20px; color: #262524; font-family: monospace; }
.statbox { margin-bottom: 12px; }
.trend { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin: 10px 0 4px; }
.tcol { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.tcol b { display: block; width: 10px; background: #d84a35; }
.tcol i { font-style: normal; font-size: 9px; color: #8a867e; margin-top: 3px; transform: scale(.8); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sfield { display: block; font-size: 13px; color: #5a5751; }
.sfield span { display: block; margin-bottom: 3px; }
.comment-form { margin-top: 12px; background: #fff; border: 1px solid #e6e2d9; padding: 12px; border-radius: 4px; }
.comment-form textarea { margin-bottom: 8px; }
.topbn { background: #fdf3f0; border: 1px solid #e8b7ad; border-radius: 3px; padding: 7px 12px; font-size: 13px; margin-bottom: 12px; }
.topbn a { color: #a13a2e; }
.topbn .sep { margin: 0 8px; color: #e8b7ad; }
.sidebn { padding: 4px 12px; font-size: 13px; }
.doc h3 { font-size: 15px; margin: 16px 0 6px; padding-left: 9px; border-left: 3px solid #d84a35; }
.doc ul { padding-left: 20px; }
.doc li { margin: 4px 0; color: #403e3a; }

.foot { border-top: 1px solid #e6e2d9; padding: 14px; font-size: 12px; color: #8a867e; margin-top: 20px; }
.foot a { color: #5a5751; margin: 0 2px; }

/* 二轮补充 */
.nav-search { margin-left: auto; }
.nav-search .input { width: 120px; padding: 3px 8px; font-size: 13px; }
.lvl { font-size: 11px; color: #8a6116; border: 1px solid #d8b96a; border-radius: 2px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.fav-btn.on { color: #d84a35; border-color: #d84a35; }
.invite-code { font-family: Consolas, "Courier New", monospace; font-size: 22px; letter-spacing: 3px; background: #f3f1ea; padding: 8px 16px; border-radius: 3px; display: inline-block; }
.invite-link { font-family: monospace; background: #f3f1ea; padding: 6px 10px; border-radius: 3px; display: inline-block; word-break: break-all; }
.uname-big { font-size: 18px; }
.announce { background: #fdf6e3; border: 1px solid #e3d5a8; padding: 8px 12px; border-radius: 3px; margin: 10px 0; font-size: 13px; }
.announce b { color: #8a6116; }
.reply-tag { font-size: 12px; color: #8a6116; }
.reply-tag a { color: #8a6116; }
.reply-btn { border: 0; background: none; color: #8a867e; font-size: 12px; cursor: pointer; padding: 0; }
.reply-btn:hover { color: #d84a35; }
.unread-row { font-weight: 700; }
.unread-row .meta { font-weight: 400; color: #d84a35; }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.report-btn { border: 0; background: none; color: #8a867e; font-size: 12px; cursor: pointer; padding: 0; margin-left: 8px; }
.report-btn:hover { color: #a13a2e; }
.report-btn:disabled { color: #a13a2e; cursor: default; }
.cal { display: flex; flex-wrap: wrap; gap: 3px; margin: 6px 0 4px; }
.cal-day {
  width: 22px; height: 22px; line-height: 22px; text-align: center;
  font-size: 11px; font-family: monospace; color: #b5b0a5;
  background: #f3f1ea; border-radius: 2px;
}
.cal-day.on { background: #d84a35; color: #fff; font-weight: 700; }
.backtop {
  position: fixed; right: 14px; bottom: 18px; z-index: 9;
  border: 1px solid #d6d1c6; background: #fff; color: #5a5751;
  padding: 4px 9px; border-radius: 3px; font-size: 12px;
}
.backtop:hover { color: #d84a35; border-color: #d84a35; }
.checkin-tip { background: #fdf3f0; border: 1px solid #e8b7ad; border-radius: 3px; padding: 7px 12px; font-size: 13px; margin-bottom: 12px; }
.checkin-tip a { color: #a13a2e; font-weight: 600; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side-col { order: 2; }
  .bar-inner { height: auto; flex-wrap: wrap; padding: 6px 0; }
  .nav { order: 3; width: 100%; }
  .input.half { width: 100%; }
  .inline-search .input { width: 100%; }
}
