/* 回岸檔案室 · 共用樣式 */
html, body { margin: 0; background: #16130f; -webkit-font-smoothing: antialiased; }

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 48px 16px 64px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 0%, #221d16 0%, #16130f 60%);
  font-family: "Songti SC", "SimSun", "PMingLiU", "MingLiU", serif;
  color: #2a2521;
}

.sheet {
  position: relative;
  width: 720px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 58px 68px 46px;
  background: #ece3cf;
  font-size: 15px;
  line-height: 2.1;
  box-shadow: 0 24px 70px rgba(0,0,0,.62), 0 0 0 1px rgba(0,0,0,.35);
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 8%,  rgba(150,128,88,.10), transparent 42%),
    radial-gradient(circle at 82% 84%, rgba(140,118,78,.13), transparent 46%),
    radial-gradient(circle at 60% 40%, rgba(255,255,255,.18), transparent 55%),
    repeating-linear-gradient(0deg, rgba(90,70,40,.018) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.sheet::after {
  content: "";
  position: absolute;
  top: 26px; right: 40px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #16130f;
  opacity: .5;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.8);
}

.head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid rgba(42,37,33,.35);
  padding-bottom: 10px; margin-bottom: 26px;
  position: relative; z-index: 1;
}
.room { font-size: 13px; letter-spacing: 4px; color: #5c5348; }
.no   { font-size: 13px; letter-spacing: 5px; }

.meta { font-size: 12.5px; color: #5c5348; line-height: 1.95; margin-bottom: 26px; position: relative; z-index: 1; }
.meta b { font-weight: normal; display: inline-block; width: 78px; color: #7a6f60; letter-spacing: 1px; }

.rule { height: 1px; background: rgba(42,37,33,.28); margin: 26px 0; position: relative; z-index: 1; }

.pen {
  position: relative; z-index: 1;
  margin: 30px 0 0; padding-left: 26px;
  color: #2b4a7a;
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  font-size: 17px; line-height: 2.0; letter-spacing: 1px;
  transform: rotate(-.25deg);
}
.pen::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: rgba(43,74,122,.18);
}

.note {
  position: relative; z-index: 1;
  margin-top: 34px; padding: 18px 22px;
  border: 1px solid rgba(42,37,33,.22);
  background: rgba(255,250,236,.38);
  font-size: 14px; line-height: 2.0; color: #3a332b;
}
.note-h { font-size: 12px; letter-spacing: 3px; color: #6c6152; margin-bottom: 8px; }
.note p { margin: 0 0 10px; }
.note p:last-child { margin-bottom: 0; }

.foot {
  position: relative; z-index: 1;
  margin-top: 40px; padding-top: 18px;
  border-top: 1px solid rgba(42,37,33,.25);
  font-size: 13px; line-height: 2.0; color: #4a4238;
}
.uid  { margin-top: 14px; font-size: 11.5px; letter-spacing: 2px; color: #8d8171; }
.next { margin-top: 8px; font-size: 11.5px; letter-spacing: 1px; color: #9a8f7d; }

/* 轉寫稿 */
.transcript {
  position: relative; z-index: 1;
  font-family: "Courier New", "SimSun", monospace;
  font-size: 13.5px; line-height: 2.0;
  color: #241f1a;
  margin: 6px 0 0;
  white-space: pre-wrap;
}

/* 印章 */
.stamp {
  display: inline-block;
  padding: 6px 18px;
  border: 2px solid rgba(140, 40, 40, .55);
  color: rgba(140, 40, 40, .72);
  font-size: 15px; letter-spacing: 6px;
  transform: rotate(-6deg);
  margin: 10px 0 0;
}

/* 檢索框 */
.gate {
  position: relative; z-index: 1;
  margin-top: 34px; padding-top: 22px;
  border-top: 1px dashed rgba(42,37,33,.35);
}
.gate label { display: block; font-size: 12px; letter-spacing: 3px; color: #6c6152; margin-bottom: 10px; }
.gate .row { display: flex; gap: 10px; }
.gate input {
  flex: 1; min-width: 0;
  background: rgba(255,250,236,.5);
  border: 1px solid rgba(42,37,33,.35);
  color: #1e1a16;
  font-family: "Courier New", monospace;
  font-size: 15px; letter-spacing: 3px;
  padding: 9px 12px;
}
.gate input:focus { outline: none; border-color: #8a7a5e; background: rgba(255,252,242,.85); }
.gate button {
  background: #2a2521; color: #ece3cf;
  border: 1px solid #2a2521;
  font-family: inherit; font-size: 13px; letter-spacing: 3px;
  padding: 9px 20px; cursor: pointer;
}
.gate button:hover { background: #3a332b; }
.gate .msg { margin-top: 10px; font-size: 12px; letter-spacing: 1px; color: #8c3a3a; min-height: 18px; }

/* 已刪除 */
.deleted .sheet { background: #e6ddc8; }
.delbadge {
  display: inline-block; padding: 2px 10px;
  border: 1px solid rgba(42,37,33,.45);
  font-size: 11px; letter-spacing: 2px; color: #6c6152;
}

/* RPG 對話 */
.screen {
  position: relative; z-index: 1;
  background: #0d0f0c;
  border: 2px solid #2a2521;
  padding: 18px;
  margin: 20px 0 0;
}
.map { height: 210px; background: #10130f; border: 1px solid #1e241c; position: relative; overflow: hidden; }
.map::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(90,140,90,.05) 0 32px, transparent 32px 64px),
    repeating-linear-gradient(0deg, rgba(90,140,90,.05) 0 32px, transparent 32px 64px);
}
.dlg {
  margin-top: 14px;
  border: 2px solid #6f8a6a;
  background: #0a0c09;
  color: #cfe0c8;
  font-family: "SimSun", "MingLiU", serif;
  font-size: 15px; line-height: 1.9;
  padding: 16px 18px;
  min-height: 74px;
  letter-spacing: 1px;
}
.dlg .npc { color: #9fd08f; }
.dlg .tip { color: #6f8a6a; font-size: 11px; letter-spacing: 2px; margin-top: 8px; }
.code {
  margin-top: 12px; color: #9fd08f;
  font-family: "Courier New", monospace; letter-spacing: 3px; font-size: 14px;
}

/* 對話框（06） */
.chatbox {
  position: relative; z-index: 1;
  margin-top: 24px; border: 1px solid rgba(42,37,33,.3);
  background: rgba(255,252,242,.45);
  padding: 20px 22px;
  min-height: 96px;
  font-size: 15.5px; line-height: 2.1;
}
.chatbox .who { font-size: 11px; letter-spacing: 3px; color: #8d8171; margin-bottom: 8px; }
.chatbox .say { color: #1e1a16; }
.chatinput { display: flex; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.chatinput input {
  flex: 1; min-width: 0;
  background: rgba(255,250,236,.6);
  border: 1px solid rgba(42,37,33,.35);
  color: #1e1a16; font-family: inherit; font-size: 15px;
  padding: 9px 12px;
}
.chatinput input:focus { outline: none; border-color: #8a7a5e; }
.chatinput button {
  background: #2a2521; color: #ece3cf; border: 1px solid #2a2521;
  font-family: inherit; font-size: 13px; letter-spacing: 2px; padding: 9px 18px; cursor: pointer;
}
.small { font-size: 12px; color: #8d8171; letter-spacing: 1px; }

/* 封存 */
.sealed {
  position: relative; z-index: 1;
  margin-top: 26px; padding: 40px 20px;
  border: 1px dashed rgba(42,37,33,.4);
  text-align: center;
  color: #6c6152;
  letter-spacing: 3px;
}
.sealed .big { font-size: 26px; letter-spacing: 12px; color: #8c3a3a; margin-bottom: 14px; }

@media (max-width: 760px) {
  body { padding: 0; background: #ece3cf; }
  .sheet { width: 100%; box-shadow: none; padding: 34px 22px 34px; font-size: 14.5px; }
  .meta b { width: 64px; }
  .pen { padding-left: 8px; font-size: 16px; }
  .transcript { font-size: 12.5px; }
  .gate .row { flex-direction: column; }
}

/* ---------- v1.1 追加 ---------- */
.hidden { display: none !important; }

/* 選項 */
.choices { position: relative; z-index: 1; margin-top: 26px; padding-top: 22px; border-top: 1px dashed rgba(42,37,33,.35); }
.choices .q { font-size: 12px; letter-spacing: 3px; color: #6c6152; margin-bottom: 12px; }
.choices button {
  display: block; width: 100%; box-sizing: border-box; text-align: left;
  background: rgba(255,250,236,.45); border: 1px solid rgba(42,37,33,.3);
  color: #2a2521; font-family: inherit; font-size: 15px; line-height: 1.8;
  padding: 12px 16px; margin-bottom: 10px; cursor: pointer; letter-spacing: .5px;
}
.choices button:hover { background: rgba(255,252,242,.9); border-color: #8a7a5e; }

/* 音檔 */
.audiobox { position: relative; z-index: 1; margin: 20px 0 0; border: 1px solid rgba(42,37,33,.3); background: rgba(255,250,236,.4); padding: 14px 16px; }
.audiobox .lbl { font-size: 11px; letter-spacing: 3px; color: #6c6152; margin-bottom: 8px; }
.audiobox audio { width: 100%; display: block; }

/* 系統改寫 */
.sysline { position: relative; z-index: 1; font-family: "Courier New", monospace; font-size: 12.5px; color: #8c3a3a; letter-spacing: 1px; margin-top: 10px; min-height: 18px; }
.rewrite { position: relative; z-index: 1; margin-top: 14px; padding: 14px 16px; border-left: 3px solid rgba(140,58,58,.5); background: rgba(140,58,58,.06); font-size: 14px; color: #5a2a2a; }
.rewrite b { font-weight: normal; color: #8c3a3a; letter-spacing: 1px; font-size: 12px; display: block; margin-bottom: 6px; }

/* 兩個選擇 */
.pick { position: relative; z-index: 1; margin-top: 18px; display: flex; gap: 12px; }
.pick button {
  flex: 1; background: #0a0c09; color: #cfe0c8; border: 2px solid #6f8a6a;
  font-family: inherit; font-size: 15px; letter-spacing: 3px; padding: 12px 0; cursor: pointer;
}
.pick button:hover { background: #16241a; color: #eaffdf; }

/* 開封 */
.unseal { position: relative; z-index: 1; margin-top: 26px; padding-top: 22px; border-top: 1px dashed rgba(42,37,33,.35); }
.unseal textarea {
  width: 100%; box-sizing: border-box; min-height: 78px; resize: vertical;
  background: rgba(255,250,236,.55); border: 1px solid rgba(42,37,33,.35);
  color: #1e1a16; font-family: inherit; font-size: 15px; line-height: 1.9; padding: 12px;
}
.unseal textarea:focus { outline: none; border-color: #8a7a5e; }
.unseal .btn { margin-top: 12px; }
.unseal button {
  background: #2a2521; color: #ece3cf; border: 1px solid #2a2521;
  font-family: inherit; font-size: 13px; letter-spacing: 3px; padding: 10px 22px; cursor: pointer;
}

/* ---------- 講義／名冊／索引 ---------- */
.worksheet {
  position: relative; z-index: 1;
  margin: 18px 0 0; padding: 24px 26px;
  border: 1px solid rgba(42,37,33,.35);
  background: rgba(255,252,242,.5);
  font-family: "Courier New", "SimSun", monospace;
  font-size: 13.5px; line-height: 2.2; color: #241f1a;
}
.worksheet .ttl { letter-spacing: 2px; margin-bottom: 12px; }
.worksheet .hr { height: 1px; background: rgba(42,37,33,.25); margin: 10px 0 14px; }
.circled {
  border: 2px solid rgba(170, 50, 40, .55);
  border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
  padding: 2px 8px;
  color: #7a2a24;
  display: inline-block;
  transform: rotate(-.6deg);
}
.roster {
  position: relative; z-index: 1;
  margin: 18px 0 0; width: 100%; border-collapse: collapse;
  font-size: 13.5px;
}
.roster th, .roster td {
  border-bottom: 1px dotted rgba(42,37,33,.3);
  padding: 7px 8px; text-align: left; font-weight: normal;
}
.roster th { font-size: 11px; letter-spacing: 2px; color: #7a6f60; border-bottom: 1px solid rgba(42,37,33,.35); }
.roster .mark { color: #2b4a7a; font-family: "KaiTi", "STKaiti", serif; }

.grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 22px;
}
.slot {
  border: 1px solid rgba(42,37,33,.3);
  background: rgba(255,250,236,.35);
  padding: 14px 10px; text-align: center;
  font-size: 12px; letter-spacing: 2px; color: #9a8f7d;
  min-height: 74px; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.slot .no { font-size: 18px; color: #b3a894; }
.slot.on { background: rgba(255,252,242,.85); border-color: #8a7a5e; color: #2a2521; }
.slot.on .no { color: #2b4a7a; }
.slot a { color: #2b4a7a; text-decoration: none; }
.slot .sub { font-size: 10px; letter-spacing: 1px; color: #8d8171; }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 原件縮圖與紙紋 ---------- */
.scanwrap { position: relative; z-index: 1; margin: 24px 0 0; text-align: center; }
.scanwrap img {
  display: block; width: 100%; max-width: 540px; height: auto;
  margin: 0 auto; border: 1px solid rgba(42,37,33,.3);
  box-shadow: 0 4px 18px rgba(0,0,0,.28);
}
.scanwrap figcaption { margin-top: 8px; font-size: 11px; letter-spacing: 1px; color: #8d8171; }

.sheet {
  background-color: #ece3cf;
  background-image: url("css/paper.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* 指向下一件的句子 */
.nextline {
  margin-top: 14px;
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  font-size: 15.5px; color: #2b4a7a; letter-spacing: 1px; line-height: 1.9;
}
/* 開場 */
.open { position: relative; z-index: 1; margin: 0 0 28px; padding-left: 16px; border-left: 3px solid rgba(43,74,122,.35); color: #4a4238; line-height: 2.2; }
.open p { margin: 0 0 6px; }
/* ---------- 論壇 ---------- */
.fbar { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: baseline;
        border-bottom: 2px solid #8a7a5e; padding-bottom: 8px; margin-bottom: 4px; }
.fname { font-size: 21px; letter-spacing: 7px; color: #3a332b; }
.fsub { font-size: 11.5px; color: #8d8171; letter-spacing: 2px; }
.fnav { position: relative; z-index: 1; font-size: 12px; color: #8d8171; letter-spacing: 1px; margin: 10px 0 18px; }

.searchbox { position: relative; z-index: 1; display: flex; gap: 10px; margin: 0 0 22px; }
.searchbox input {
  flex: 1; min-width: 0; background: rgba(255,250,236,.6);
  border: 1px solid rgba(42,37,33,.35); color: #1e1a16;
  font-family: inherit; font-size: 14px; padding: 9px 12px;
}
.searchbox input:focus { outline: none; border-color: #8a7a5e; }
.searchbox button {
  background: #2a2521; color: #ece3cf; border: 1px solid #2a2521;
  font-family: inherit; font-size: 13px; letter-spacing: 2px; padding: 9px 18px; cursor: pointer;
}

.tlist { position: relative; z-index: 1; width: 100%; border-collapse: collapse; }
.tlist td { padding: 10px 6px; border-bottom: 1px dotted rgba(42,37,33,.25); font-size: 14px; vertical-align: top; }
.tlist .st { font-size: 11px; color: #a09280; letter-spacing: 1px; white-space: nowrap; }
.tlist a { color: #2b4a7a; }
.tlist .dead { color: #a09280; text-decoration: line-through; }

.post { position: relative; z-index: 1; }
.post-head { display: flex; justify-content: space-between; align-items: baseline;
             font-size: 12px; color: #7a6f60; border-bottom: 1px solid rgba(42,37,33,.3); padding-bottom: 7px; }
.post-head .who { color: #2b4a7a; letter-spacing: 1px; }
.post-body { padding: 18px 0 6px; font-size: 15px; line-height: 2.15; white-space: pre-wrap; }
.post-body .quote { color: #6b6357; border-left: 2px solid rgba(42,37,33,.25); padding-left: 12px; margin: 12px 0; }

.reply { border-top: 1px dotted rgba(42,37,33,.3); padding: 13px 0; font-size: 14px; line-height: 1.95; }
.reply .who { font-size: 12px; color: #2b4a7a; margin-bottom: 5px; letter-spacing: 1px; }
.reply .when { color: #a09280; font-size: 11px; margin-left: 10px; letter-spacing: 0; }
.reply .me { color: #7a2a24; }

.fnote { position: relative; z-index: 1; margin-top: 26px; padding: 14px 16px;
         border: 1px dashed rgba(42,37,33,.35); font-size: 12px; line-height: 1.9; color: #6b6357; }

/* 搜尋快取摘要 */
.snip { margin-top: 6px; font-size: 12.5px; color: #6b6357; line-height: 1.8;
        border-left: 2px solid rgba(140,110,60,.35); padding-left: 10px; }
/* ---------- 老式家園網外框 ---------- */
.wrap { width: 100%; max-width: 940px; }

.fhead {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #4a4437 0%, #3a352b 100%);
  color: #e8e0cc; padding: 14px 18px;
  border: 1px solid #2a2521;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.fhead .brand { font-size: 19px; letter-spacing: 6px; }
.fhead .brand small { display: block; font-size: 10px; letter-spacing: 2px; color: #a89e88; margin-top: 4px; }
.fhead .stat { font-size: 11.5px; color: #c9c0a8; letter-spacing: 1px; text-align: right; line-height: 1.9; }
.fhead .stat b { color: #f0e6c8; font-weight: normal; }

.navbar {
  position: relative; z-index: 1;
  background: #cdc3ab;
  border: 1px solid #a89e88; border-top: none;
  padding: 7px 12px; font-size: 12.5px; letter-spacing: 1px;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.navbar a { color: #3a352b; text-decoration: none; }
.navbar a:hover { text-decoration: underline; }
.navbar .on { color: #7a2a24; font-weight: bold; }
.navbar .lock { color: #8a8172; }

.cols { position: relative; z-index: 1; display: flex; gap: 14px; margin-top: 14px; align-items: flex-start; }
.main { flex: 1; min-width: 0; }
.side { width: 210px; flex: none; }

.tbl { width: 100%; border-collapse: collapse; background: rgba(255,252,242,.35); border: 1px solid #a89e88; }
.tbl th {
  background: #ddd4bd; color: #4a4238; font-size: 11.5px; letter-spacing: 2px;
  font-weight: normal; padding: 7px 8px; border-bottom: 1px solid #a89e88; text-align: left;
}
.tbl td { padding: 9px 8px; border-bottom: 1px dotted #b9af97; font-size: 13px; vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .ico { width: 26px; text-align: center; color: #8a8172; }
.tbl .au { width: 86px; color: #6b6357; font-size: 12px; }
.tbl .rp { width: 52px; color: #6b6357; font-size: 12px; text-align: center; }
.tbl .lr { width: 108px; color: #8a8172; font-size: 11px; }
.tbl a { color: #2b4a7a; }
.tbl .dead { color: #a09280; text-decoration: line-through; }

.box {
  border: 1px solid #a89e88; background: rgba(255,252,242,.35);
  margin-bottom: 12px;
}
.box h4 {
  margin: 0; background: #ddd4bd; color: #4a4238; font-size: 11.5px; letter-spacing: 2px;
  font-weight: normal; padding: 6px 10px; border-bottom: 1px solid #a89e88;
}
.box .in { padding: 10px; font-size: 11.5px; line-height: 1.95; color: #5a5248; }
.box .in a { color: #2b4a7a; text-decoration: none; }
.ad {
  border: 1px dashed #b9af97; padding: 8px; margin-bottom: 8px; text-align: center;
  font-size: 11px; color: #6b6357; line-height: 1.7;
}
.ad b { display: block; font-size: 12px; color: #7a2a24; margin-bottom: 3px; font-weight: normal; }

.ffoot {
  position: relative; z-index: 1; margin-top: 16px; padding: 10px 12px;
  border: 1px solid #a89e88; background: #cdc3ab;
  font-size: 11px; color: #4a4238; line-height: 1.9; letter-spacing: 1px;
}
.ffoot .tiny { color: #6b6357; }

@media (max-width: 820px) {
  .cols { flex-direction: column; }
  .side { width: 100%; }
  .tbl .au, .tbl .lr { display: none; }
}

/* ---------- 2000 年代老論壇（紙色版） ---------- */
body.old { display: block; padding: 0; background: #b9af97; }

.page {
  width: 100%; max-width: 1100px; margin: 0 auto; min-height: 100vh;
  background: #ece3cf url("css/paper.png") center / cover no-repeat;
}

.topbar {
  background: linear-gradient(180deg, #4a4437 0%, #35302a 100%);
  color: #e8e0cc; padding: 6px 12px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 1px;
}
.topbar .logo { font-size: 14px; letter-spacing: 3px; }
.topbar .stats span { margin-left: 12px; }
.topbar .stats b { color: #f4ecd8; font-weight: normal; }

.loginbar {
  background: #d8ceb8; border-bottom: 1px solid #a89e88;
  padding: 6px 12px; font-size: 12px; color: #3a352b;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.loginbar input {
  width: 110px; background: #fffdf4; border: 1px solid #8a8172;
  border-top-color: #b9af97; border-left-color: #b9af97;
  font-family: inherit; font-size: 12px; padding: 3px 6px;
}
.wbtn {
  background: #d8ceb8; border: 1px solid #8a8172;
  border-top-color: #f4ecd8; border-left-color: #f4ecd8;
  font-family: inherit; font-size: 12px; color: #2a2521;
  padding: 3px 12px; cursor: pointer; letter-spacing: 1px;
}
.wbtn:active { border-top-color: #8a8172; border-left-color: #8a8172; border-bottom-color: #f4ecd8; border-right-color: #f4ecd8; }

.navrow {
  background: #cfc4ab; border-bottom: 1px solid #a89e88;
  padding: 6px 12px; display: flex; flex-wrap: wrap; gap: 3px;
}
.tab {
  display: inline-block; padding: 5px 16px; text-decoration: none;
  background: #d8ceb8; border: 1px solid #8a8172;
  border-top-color: #f4ecd8; border-left-color: #f4ecd8;
  font-size: 12.5px; letter-spacing: 1px; color: #2a2521;
}
.tab.on { background: #ece3cf; border-bottom-color: #ece3cf; font-weight: bold; }
.tab.lock { color: #8a8172; }

.searchrow {
  background: #d8ceb8; border-bottom: 1px solid #a89e88;
  padding: 5px 12px; display: flex; gap: 6px; align-items: center;
}
.searchrow input {
  flex: 1; background: #fffdf4; border: 1px solid #8a8172;
  border-top-color: #b9af97; border-left-color: #b9af97;
  font-family: inherit; font-size: 12px; padding: 3px 6px;
}

.content { padding: 22px 12px 30px; }

.ftable { width: 100%; max-width: 1000px; margin: 0 auto; border-collapse: collapse; border: 1px solid #8a8172; }
.ftable th {
  background: #4a4437; color: #f0e6cc; font-size: 12px; font-weight: normal;
  letter-spacing: 3px; padding: 6px 8px; text-align: left; border-right: 1px solid #6b6357;
}
.ftable th:last-child { border-right: none; }
.ftable td {
  background: #f6efdd; border-bottom: 1px solid #d8cfb8;
  padding: 6px 8px; font-size: 13px; color: #2a2521;
}
.ftable tr:nth-child(even) td { background: #f2ead6; }
.ftable tr:hover td { background: #fffaf0; }
.ftable a { color: #2b4a7a; text-decoration: none; }
.ftable a:hover { text-decoration: underline; }
.ftable .au { width: 110px; color: #5a5248; font-size: 12px; }
.ftable .rp { width: 56px; text-align: center; color: #5a5248; font-size: 12px; }
.ftable .lr { width: 120px; color: #6b6357; font-size: 11.5px; }
.ftable .dead { color: #a09280; text-decoration: line-through; font-style: italic; }

.pagerline { max-width: 1000px; margin: 10px auto 0; font-size: 12px; color: #4a4238; letter-spacing: 1px; }
.pagerline a { color: #2b4a7a; }

.adstrip {
  max-width: 1000px; margin: 22px auto 0; border: 1px solid #a89e88;
  background: #e6dcc4; padding: 8px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.adbox {
  border: 1px solid #b9af97; background: #f6efdd; padding: 6px 10px;
  font-size: 11px; color: #5a5248; line-height: 1.6; text-align: center; min-width: 130px;
}
.adbox b { display: block; color: #7a2a24; font-weight: normal; font-size: 12px; }

.pfoot {
  margin-top: 26px; text-align: center; font-size: 11.5px; color: #6b6357;
  line-height: 2; letter-spacing: 1px; padding-bottom: 30px;
}
.pfoot .tiny { color: #8a8172; font-size: 10.5px; }

@media (max-width: 760px) {
  .ftable .au, .ftable .lr { display: none; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* 帖子頁：老論壇兩欄 */
.ftable .poster {
  width: 130px; background: #e9e0c9; border-right: 1px solid #d8cfb8;
  vertical-align: top; font-size: 12px; color: #3a352b; line-height: 1.8;
}
.ftable .poster .nm { color: #2b4a7a; font-size: 12.5px; }
.ftable .poster .meta { color: #8a8172; font-size: 10.5px; }
.ftable .body { background: #f6efdd; vertical-align: top; line-height: 2.05; font-size: 14px; }
.ftable .body .when { color: #8a8172; font-size: 11px; }
.topicbar {
  background: #4a4437; color: #f0e6cc; padding: 6px 10px;
  font-size: 12.5px; letter-spacing: 2px; display: flex; justify-content: space-between;
}

/* ---------- 拆掉 Win98 外殼，留下骨架 ---------- */
.topbar {
  background: none; border-bottom: 2px solid #2a2521;
  color: #2a2521; padding: 14px 16px 10px;
}
.topbar .logo { font-size: 17px; letter-spacing: 8px; }
.topbar .stats { color: #6b6357; font-size: 11.5px; }
.topbar .stats b { color: #2a2521; }

.loginbar {
  background: none; border-bottom: 1px solid #ddd3bb;
  color: #6b6357; font-size: 11.5px; padding: 7px 16px; letter-spacing: 1px;
}

.navrow {
  background: none; border-bottom: 1px solid #ddd3bb;
  padding: 0 16px; gap: 0;
}
.tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 10px 14px; font-size: 13px; letter-spacing: 2px; color: #4a4238;
}
.tab:hover { color: #2a2521; }
.tab.on { background: none; border-bottom-color: #7a2a24; color: #7a2a24; font-weight: normal; }
.tab.lock { color: #b3a894; }

.searchrow { background: none; border-bottom: 1px solid #ddd3bb; padding: 10px 16px; }
.searchrow input {
  background: none; border: none; border-bottom: 1px solid #b3a894;
  font-size: 12.5px; padding: 4px 2px; color: #2a2521;
}
.searchrow input:focus { outline: none; border-bottom-color: #2a2521; }

.content { padding: 24px 16px 30px; }

.ftable { border: none; }
.ftable th {
  background: none; color: #6b6357; border-bottom: 2px solid #2a2521;
  border-right: none; padding: 6px 8px; font-size: 11px; letter-spacing: 3px;
}
.ftable td {
  background: none !important; border-bottom: 1px dotted #c9bea8; padding: 9px 8px; font-size: 13.5px;
}
.ftable tr:hover td { background: rgba(255,252,242,.5) !important; }
.ftable .me td { background: rgba(140,110,60,.05) !important; }

.wbtn {
  background: none; border: 1px solid #a89e88;
  color: #3a352b; padding: 5px 14px; font-size: 12px;
}
.wbtn:hover { border-color: #6b6357; background: rgba(255,252,242,.4); }
.wbtn:active { background: rgba(140,110,60,.12); }

.adstrip {
  background: none; border: none; border-top: 1px dashed #c9bea8;
  margin-top: 26px; padding: 14px 0 0; gap: 22px;
}
.adbox {
  background: none; border: none; padding: 0; min-width: auto;
  font-size: 11px; color: #8a8172; line-height: 1.7; text-align: left;
}
.adbox b { color: #6b6357; font-size: 11.5px; letter-spacing: 1px; }

.pfoot { border-top: 1px solid #ddd3bb; padding-top: 16px; margin-top: 30px; }

/* 帖子頁：去掉色塊，只留線 */
.ftable .poster {
  background: none; border-right: 1px dotted #c9bea8;
  width: 120px; font-size: 12px; color: #4a4238;
}
.ftable .poster .nm { color: #2b4a7a; }
.ftable .poster .meta { color: #a09280; }
.ftable .body { background: none; }
.topicbar { background: none; color: #2a2521; padding: 0; letter-spacing: 2px; }

/* 置頂 / 精華 */
.tag {
  display: inline-block; font-size: 10px; letter-spacing: 1px;
  padding: 1px 5px; margin-right: 6px; vertical-align: 1px;
  border: 1px solid #a89e88; color: #6b6357; text-decoration: none;
}
.tag.st { border-color: #7a2a24; color: #7a2a24; }
.tag.es { border-color: #8b6b3a; color: #8b6b3a; }
.ftable th .tag { border-color: rgba(240,230,204,.5); color: #f0e6cc; }
