/* 求是水塘 BBS ／2000 年代校园 BBS 风格 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #e9e8ea;
  color: #222;
  font-family: "SimSun", "宋体", "Songti SC", serif;
  font-size: 15px;
  line-height: 1.75;
}
a { color: #1b4f9c; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 12px; }

/* 顶栏 */
.topbar { background: #2c3f63; color: #fff; }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.logo { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 20px; letter-spacing: 1px; }
.logo span { font-size: 11px; opacity: .6; margin-left: 6px; letter-spacing: 2px; }
.topbar .user { font-family: "Microsoft YaHei", sans-serif; font-size: 13px; color: #cfd8e6; }
.topbar .user a { color: #e8eef7; margin: 0 2px; }

/* 版块导航 */
.boards {
  background: #fff; border: 1px solid #cfcdd2; border-top: none;
  font-family: "Microsoft YaHei", sans-serif; font-size: 13px;
  padding: 8px 10px; margin-bottom: 10px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.boards a { padding: 3px 10px; border-radius: 2px; color: #333; }
.boards a.on { background: #2c3f63; color: #fff; }

/* 状态条 */
.statusbar {
  background: #f6f5f7; border: 1px solid #cfcdd2;
  font-family: "Microsoft YaHei", sans-serif; font-size: 12px; color: #666;
  padding: 6px 10px; margin-bottom: 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.statusbar b { color: #b3261e; font-weight: normal; }
.statusbar .search { margin-left: auto; display: flex; gap: 4px; }
.statusbar input {
  font-family: inherit; font-size: 12px; padding: 3px 6px;
  border: 1px solid #c3c0c6; background: #fff; width: 130px;
}
.statusbar button {
  font-family: inherit; font-size: 12px; padding: 3px 10px;
  border: 1px solid #b9b6bc; background: #efedf0; cursor: pointer;
}

/* 搜索（答案框） */
.searchbar {
  background: #fff; border: 1px solid #cfcdd2; padding: 10px;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.searchbar input {
  flex: 1 1 220px; min-width: 0;
  font-family: inherit; font-size: 15px; padding: 8px 10px;
  border: 1px solid #bfbcc4; background: #fff;
}
.searchbar button {
  font-family: inherit; font-size: 14px; padding: 8px 22px; cursor: pointer;
  border: 1px solid #7a8598; background: #eef1f6; color: #2c3f63;
}
.searchbar button:hover { background: #e2e8f2; }
.tip { font-size: 12px; color: #888; }
.tip.ok { color: #2c6b3f; }
.tip.bad { color: #a33; }

td.empty { padding: 40px; text-align: center; color: #999; }

/* 列表 */
table.list {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid #cfcdd2;
}
table.list thead th {
  background: #dfe4ec; font-family: "Microsoft YaHei", sans-serif;
  font-weight: normal; font-size: 12px; color: #4a5568;
  text-align: left; padding: 8px 10px; border-bottom: 1px solid #cfcdd2;
}
table.list tbody td { padding: 10px; border-bottom: 1px solid #eceae7; vertical-align: top; }
table.list tbody tr:nth-child(even) { background: #fafafa; }
table.list tbody tr:hover { background: #f2f5fa; }
td.c-author, td.c-num, td.c-time {
  font-family: "Microsoft YaHei", sans-serif; font-size: 12px; color: #777;
  white-space: nowrap;
}
td.c-num { text-align: center; }
.title-cell .board-tag {
  font-family: "Microsoft YaHei", sans-serif; font-size: 11px; color: #888;
  border: 1px solid #ddd; padding: 0 4px; margin-right: 6px;
}
.title-cell .flag {
  font-family: "Microsoft YaHei", sans-serif; font-size: 11px;
  color: #fff; background: #b3261e; padding: 0 4px; margin-right: 6px;
}
.title-cell .flag.lock { background: #8a8a8a; }
.title-cell .flag.old { background: #6b6b6b; }
.title-cell a { font-size: 15px; }

.pager {
  font-family: "Microsoft YaHei", sans-serif; font-size: 12px; color: #777;
  text-align: center; padding: 12px 0 24px;
}

/* 帖子页 */
.crumb {
  font-family: "Microsoft YaHei", sans-serif; font-size: 12px; color: #888;
  padding: 12px 0 8px;
}
.post-head {
  background: #fff; border: 1px solid #cfcdd2; padding: 18px 20px;
  border-bottom: none;
}
.post-head h1 { margin: 0 0 10px; font-size: 20px; line-height: 1.5; font-weight: bold; }
.post-meta { font-family: "Microsoft YaHei", sans-serif; font-size: 12px; color: #888; }
.post-body { background: #fff; border: 1px solid #cfcdd2; padding: 6px 20px 20px; }
.post-body p { margin: 10px 0; }

.comments { margin-top: 14px; }
.cmt {
  background: #fff; border: 1px solid #cfcdd2; border-top: none;
  padding: 12px 20px; display: flex; gap: 12px;
}
.cmt:first-child { border-top: 1px solid #cfcdd2; }
.avatar {
  width: 38px; height: 38px; flex: 0 0 38px; background: #dfe4ec;
  border: 1px solid #c8ccd4; display: flex; align-items: center; justify-content: center;
  font-family: "Microsoft YaHei", sans-serif; font-size: 12px; color: #6b7280;
}
.avatar.broken { background: #eee; color: #bbb; border-style: dashed; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-meta { font-family: "Microsoft YaHei", sans-serif; font-size: 12px; color: #888; margin-bottom: 2px; }
.cmt-meta .who { color: #1b4f9c; }
.cmt-meta .who.ghost, .cmt-meta .who.dead { color: #6f6f6f; font-style: italic; }
.cmt-meta .floor { float: right; color: #bbb; }
.cmt-text { word-break: break-word; }
.cmt.deleted { color: #aaa; font-style: italic; }
.cmt.sys .cmt-text { color: #8a6d3b; }
.gone { color: #aaa; font-family: "Microsoft YaHei", sans-serif; font-size: 12px; }

/* 回复框 */
.reply {
  margin-top: 16px; background: #fff; border: 1px solid #cfcdd2; padding: 16px 20px;
  font-family: "Microsoft YaHei", sans-serif; font-size: 13px;
}
.reply textarea {
  width: 100%; height: 90px; font-family: inherit; font-size: 13px;
  border: 1px solid #c3c0c6; padding: 8px; resize: vertical; background: #fff;
}
.reply .row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.reply button {
  font-family: inherit; font-size: 13px; padding: 6px 18px; cursor: pointer;
  border: 1px solid #2c3f63; background: #2c3f63; color: #fff;
}
.reply .hint { font-size: 12px; color: #999; }
.locked-tip {
  background: #fbf7e8; border: 1px solid #e8dca8; color: #8a6d3b;
  padding: 10px 12px; font-size: 13px;
}

/* 页脚 */
.foot {
  border-top: 1px solid #d6d3d8; margin-top: 26px; padding: 16px 0 30px;
  font-family: "Microsoft YaHei", sans-serif; font-size: 12px; color: #999;
  text-align: center; line-height: 1.9;
}
.foot .tiny { font-size: 11px; color: #b0adb4; }
.foot p { margin: 2px 0; }

/* 发帖页 */
.compose { background: #fff; border: 1px solid #cfcdd2; padding: 20px; }
.compose h2 { margin: 0 0 16px; font-size: 16px; font-family: "Microsoft YaHei", sans-serif; }
.compose label { display: block; font-family: "Microsoft YaHei", sans-serif; font-size: 13px; color: #555; margin: 14px 0 6px; }
.compose input, .compose select, .compose textarea {
  width: 100%; font-family: "Microsoft YaHei", sans-serif; font-size: 14px;
  border: 1px solid #c3c0c6; padding: 8px; background: #fff;
}
.compose textarea { height: 220px; resize: vertical; line-height: 1.8; }
.compose .row { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.compose button {
  font-family: "Microsoft YaHei", sans-serif; font-size: 14px; padding: 8px 26px;
  border: 1px solid #2c3f63; background: #2c3f63; color: #fff; cursor: pointer;
}
.compose .hint { font-size: 12px; color: #999; font-family: "Microsoft YaHei", sans-serif; }
.done { background: #fff; border: 1px solid #cfcdd2; padding: 40px 24px; text-align: center; }
.done h2 { font-family: "Microsoft YaHei", sans-serif; font-size: 17px; margin: 0 0 10px; }
.done p { color: #666; font-family: "Microsoft YaHei", sans-serif; font-size: 13px; }
.done .small { color: #aaa; font-size: 12px; margin-top: 18px; }

/* ===== 手机版：列表改成卡片 ===== */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.7; }
  .wrap { padding: 0 10px; }

  /* 顶栏 */
  .topbar .wrap {
    height: auto; min-height: 48px; padding: 8px 0;
    flex-wrap: wrap; row-gap: 2px;
  }
  .logo { font-size: 18px; letter-spacing: .5px; }
  .logo span { font-size: 10px; margin-left: 4px; }
  .topbar .user { font-size: 12px; }

  /* 版块导航 */
  .boards { padding: 7px 8px; gap: 3px; font-size: 12.5px; margin-bottom: 8px; }
  .boards a { padding: 3px 8px; }

  /* 状态条 */
  .statusbar { font-size: 11.5px; gap: 10px; padding: 5px 8px; margin-bottom: 8px; }
  .statusbar .search { margin-left: 0; width: 100%; }
  .statusbar input { width: 100%; }

  /* 搜索框 */
  .searchbar { padding: 8px; gap: 6px; margin-bottom: 8px; }
  .searchbar input { flex: 1 1 110px; font-size: 15px; padding: 7px 8px; }
  .searchbar button { flex: 0 0 auto; padding: 7px 14px; font-size: 13.5px; }
  .searchbar .tip { flex: 1 1 100%; font-size: 12px; }

  /* 列表：一行一张卡 */
  table.list { border: none; background: transparent; }
  table.list thead { display: none; }
  table.list tbody tr {
    display: flex; flex-wrap: wrap; align-items: baseline;
    background: #fff; border: 1px solid #dcd9de;
    padding: 9px 11px 8px; margin-bottom: 6px;
  }
  table.list tbody tr:nth-child(even) { background: #fbfbfc; }
  table.list tbody tr:hover { background: #f2f5fa; }
  table.list tbody td { display: block; border: none; padding: 0; text-align: left; }

  td.title-cell { flex: 1 1 100%; order: 0; margin-bottom: 5px; }
  td.title-cell a { font-size: 15.5px; line-height: 1.5; }
  td.title-cell .board-tag, td.title-cell .flag { font-size: 11px; margin-right: 5px; }

  td.c-author { order: 1; }
  td.c-time { order: 2; }
  td.c-num { order: 3; }
  td.c-views { order: 4; }
  td.c-author, td.c-time, td.c-num, td.c-views {
    font-size: 12px; color: #8d8a90; white-space: nowrap;
  }
  td.c-author { color: #6f6c73; }
  td.c-time { color: #aaa7ae; }
  td.c-views { color: #b3b0b7; }
  td.c-author::before, td.c-time::before, td.c-num::before, td.c-views::before {
    content: "· "; color: #d3cfd6;
  }
  td.c-author::before { content: ""; }
  td.c-num::before { content: "· 回复 "; }
  td.c-views::before { content: "· 浏览 "; }
  td.empty { padding: 30px 10px; }

  .pager { padding: 10px 0 18px; }

  /* 帖子页 */
  .crumb { padding: 10px 0 6px; }
  .post-head { padding: 14px 14px 12px; }
  .post-head h1 { font-size: 17.5px; line-height: 1.55; margin-bottom: 8px; }
  .post-body { padding: 4px 14px 16px; font-size: 15.5px; }
  .post-body p { margin: 9px 0; }

  .cmt { padding: 11px 14px; gap: 8px; }
  .avatar { width: 30px; height: 30px; flex: 0 0 30px; font-size: 11px; }
  .cmt-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
  .cmt-meta .floor { order: 2; margin-left: auto; float: none; }
  .cmt-text { font-size: 15px; margin-top: 2px; }

  .reply { padding: 12px 14px; }
  .reply .row { flex-wrap: wrap; gap: 8px; }
  .reply textarea { height: 96px; }
  .locked-tip { font-size: 12.5px; }
  .gone { font-size: 12px; }

  /* 发帖 / 登录 */
  .compose { padding: 14px; }
  .compose textarea { height: 180px; }
  .compose .row { flex-wrap: wrap; }
  .compose input, .compose select, .compose textarea { font-size: 16px; }
  .done { padding: 28px 16px; }

  /* 解密页 */
  .pz-paper { padding: 14px; }
  .pz-note { font-size: 12.5px; }
  .pz-q { font-size: 15.5px; }
  .pz-input { max-width: 100%; font-size: 16px; }
  .pz-row { flex-wrap: wrap; gap: 8px; }
  .pz-key { flex: 0 0 76px; font-size: 12.5px; }
  .pz-val { font-size: 15px; word-break: break-word; }
  .pz-hint { font-size: 13.5px; }

  /* 页脚 */
  .foot { margin-top: 18px; padding: 14px 0 24px; font-size: 11.5px; }
}

/* ===== 解密页 ===== */
.pz-note {
  background: #fbf7e8; border: 1px solid #ddd3b0; padding: 8px 12px; margin: 10px 0;
  font-size: 13px; color: #7a6a3a; font-family: "Microsoft YaHei", sans-serif;
}
.pz { margin-top: 14px; }
.pz-paper { background: #fff; border: 1px solid #cfcdd2; padding: 18px 20px 20px; }
.pz-q { font-size: 16px; margin: 4px 0 14px; }
.pz-label { display: block; font-size: 13px; color: #666; margin: 10px 0 6px; font-family: "Microsoft YaHei", sans-serif; }
.pz-input {
  width: 100%; max-width: 420px; padding: 8px 10px; font-size: 15px;
  border: 1px solid #b9b6bd; background: #fdfdfa; font-family: inherit;
}
.pz-input:focus { outline: none; border-color: #2c3f63; }
.pz-row { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.pz-btn {
  display: inline-block; padding: 7px 18px; border: 1px solid #2c3f63; background: #2c3f63;
  color: #fff; font-size: 14px; cursor: pointer; font-family: "Microsoft YaHei", sans-serif;
}
.pz-btn:hover { background: #3a527f; text-decoration: none; }
.pz-btn.ghost { background: #fff; color: #2c3f63; }
.pz-btn.ghost:hover { background: #eef1f7; text-decoration: none; }
.pz-hints { margin-top: 10px; }
.pz-hint {
  background: #f6f4ee; border-left: 3px solid #c9c2ae; padding: 6px 10px; margin: 6px 0; font-size: 14px;
}
.pz-bad { color: #9b2c2c; margin-top: 10px; font-size: 14px; }
.pz-dim { color: #8a8a8a; font-size: 14px; }
.pz-okpaper { border-color: #b9c9a8; background: #f7fbf2; }
.pz-oktitle { font-size: 17px; margin-bottom: 12px; color: #3c5c2a; }
.pz-line { display: flex; gap: 10px; margin: 8px 0; align-items: baseline; }
.pz-key { flex: 0 0 88px; font-size: 13px; color: #6b7a5a; font-family: "Microsoft YaHei", sans-serif; }
.pz-val { font-size: 16px; color: #1d2b16; }
.pz-tip { margin-top: 14px; font-size: 13px; color: #6b7a5a; }
/* ===== 解密页补充：材料图 / 人机验证 / 恭喜弹窗 ===== */
.pz-gap { height: 10px; }
.pz-fig { margin: 14px 0; text-align: center; }
.pz-fig img {
  max-width: 100%; height: auto;
  border: 1px solid #cfcdd2; background: #fff;
  padding: 6px;
}
.v-title {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px; font-weight: bold; color: #2c3f63;
  border-left: 3px solid #2c3f63; padding-left: 8px; margin: 4px 0 10px;
}
.v-q { color: #333; margin-bottom: 10px; }

.v-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s ease; padding: 16px;
}
.v-mask.on { opacity: 1; }
.v-box {
  background: #fffdf7; border: 1px solid #b9b4a6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  padding: 22px 20px 16px; max-width: 420px; width: 100%;
  text-align: center;
}
.v-ok { font-size: 16px; line-height: 1.9; color: #222; }
.v-blank {
  display: inline-block; margin: 0 2px;
  vertical-align: -0.12em; letter-spacing: .02em;
}

/* ===== 个人主页 ===== */
.pf-card {
  background: #fff; border: 1px solid #cfcdd2;
  margin-bottom: 10px; padding: 14px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.pf-head { display: flex; gap: 14px; align-items: flex-start; }
.pf-avatar {
  width: 72px; height: 72px; flex: 0 0 72px;
  border: 1px solid #cfcdd2; background: #f1f0f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #999; text-align: center; line-height: 1.4;
  overflow: hidden;
}
.pf-name { font-size: 18px; color: #222; margin-bottom: 4px; }
.pf-meta { font-size: 12px; color: #666; line-height: 1.9; }
.pf-stats {
  display: flex; gap: 18px; flex-wrap: wrap;
  border-top: 1px dashed #ddd; margin-top: 12px; padding-top: 10px;
  font-size: 12px; color: #555;
}
.pf-stats b { color: #b3261e; font-weight: normal; }
.pf-sec {
  font-size: 13px; color: #2c3f63; border-left: 3px solid #2c3f63;
  padding-left: 8px; margin: 16px 0 8px;
}
.pf-row {
  border: 1px solid #e2e0e4; background: #fafafa;
  padding: 10px 12px; font-size: 13px; color: #555;
  margin-bottom: 6px; line-height: 1.8;
}
.pf-row.err { color: #b3261e; }
.pf-login {
  border: 1px solid #cfcdd2; background: #f7f6f8;
  padding: 12px; margin-top: 12px;
}
.pf-login .pz-row { margin-top: 8px; }

/* 动态 */
.feed-item { border: 1px solid #e2e0e4; padding: 12px; margin-bottom: 10px; }
.feed-meta {
  font-family: "Microsoft YaHei", sans-serif; font-size: 11px; color: #8a8a8a;
  border-bottom: 1px dashed #e6e4e8; padding-bottom: 6px; margin-bottom: 8px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.feed-meta .only-me { color: #b3261e; }
.feed-body { font-size: 14px; line-height: 2.1; word-break: break-all; }
.feed-line { margin: 2px 0; }
.feed-line.cut { color: #6b6b6b; }

/* ===== 血红主页 ===== */
body.blood { background: #140303; color: #c6b0b0; }
body.blood .topbar { background: #3d0707; border-bottom: 1px solid #6a1010; }
body.blood .topbar .user { color: #b98d8d; }
body.blood a { color: #c16464; }
body.blood .pf-card,
body.blood .feed-item,
body.blood .pf-login { background: #200606; border-color: #5a1212; }
body.blood .pf-avatar { background: #2a0808; border-color: #5a1212; color: #7a4a4a; }
body.blood .pf-name { color: #d8b4b4; }
body.blood .pf-meta, body.blood .pf-stats { color: #967878; }
body.blood .pf-stats { border-top-color: #4a1010; }
body.blood .pf-sec { color: #cf8f8f; border-left-color: #8b1a1a; }
body.blood .pf-row { background: #240707; border-color: #4a1010; color: #a98a8a; }
body.blood .pf-row.err { color: #d06060; }
body.blood .feed-meta { color: #8a6262; border-bottom-color: #4a1010; }
body.blood .feed-body { color: #d2a8a8; }
body.blood .feed-line.cut { color: #9a6a6a; }
body.blood .foot { color: #7a5050; }
body.blood .foot p { border-top-color: #4a1010; }
body.blood .crumb, body.blood .crumb a { color: #a87878; }
body.blood .pz-input { background: #2a0808; border-color: #5a1212; color: #d8b4b4; }
body.blood .pz-btn { background: #6a1010; border-color: #8b1a1a; color: #f0d0d0; }

/* 小高能 */
.scare {
  position: fixed; inset: 0; z-index: 90;
  background: #8b0000;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: "Microsoft YaHei", sans-serif;
  font-size: min(19vw, 140px); letter-spacing: .1em;
  opacity: 0; pointer-events: none;
  transition: opacity .05s linear;
}
.scare.on { opacity: 1; }
.shake { animation: qss-shake .3s linear 2; }
@keyframes qss-shake {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-7px, 4px); }
  40%  { transform: translate(6px, -5px); }
  60%  { transform: translate(-5px, -3px); }
  80%  { transform: translate(4px, 5px); }
  100% { transform: translate(0, 0); }
}

/* 手机 */
@media (max-width: 640px) {
  .pf-avatar { width: 56px; height: 56px; flex-basis: 56px; }
  .pf-name { font-size: 16px; }
  .feed-body { font-size: 13px; line-height: 2; }
  .v-box { padding: 18px 14px 12px; }
}
