/* 遊戲空間論壇 封存館 — static archive styles */
:root {
  --ink: #2a2420;
  --ink-2: #5b524a;
  --muted: #8a8076;
  --paper: #f4f0e6;
  --card: #ffffff;
  --line: #e3dccd;
  --accent: #8c2f1e;      /* 朱紅 */
  --accent-2: #b8862f;    /* 金 */
  --link: #1f5f8b;
  --radius: 10px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.75 var(--font); color: var(--ink); background: var(--paper); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
h1, h2 { font-family: var(--serif); line-height: 1.35; }
h1 { font-size: 1.6rem; margin: .6em 0 .4em; }
h2 { font-size: 1.2rem; margin: 0 0 .6em; }
small { color: var(--muted); }

/* header / footer */
.top { background: var(--ink); color: #f3e9d2; border-bottom: 3px solid var(--accent-2); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { color: inherit; display: flex; flex-direction: column; }
.brand:hover { text-decoration: none; }
.brand-t { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: .08em; }
.brand-s { font-size: .82rem; color: #cbbd9f; letter-spacing: .04em; }
.qs { display: flex; gap: 6px; }
.qs input { width: 220px; max-width: 52vw; padding: 7px 10px; border: 1px solid #6d6157; border-radius: 6px; background: #3a332d; color: #fff; font: inherit; font-size: .92rem; }
.qs input::placeholder { color: #b5a993; }
.qs button { padding: 7px 14px; border: 0; border-radius: 6px; background: var(--accent-2); color: #241d16; font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
.foot { margin-top: 48px; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot p { margin: .3em 0; }

/* breadcrumbs, pager */
.crumbs { margin: 16px 0 4px; font-size: .9rem; color: var(--muted); }
.crumbs .sep { margin: 0 4px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.pager a, .pager span { padding: 4px 11px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); font-size: .9rem; }
.pager .cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .gap { border: 0; background: none; }

/* home */
.intro { margin: 18px 0 26px; padding: 22px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); border-left: 5px solid var(--accent); }
.intro h1 { margin-top: 0; }
.intro p { margin: .4em 0; color: var(--ink-2); }
.intro .stats b { color: var(--accent); }
.group { margin: 0 0 28px; }
.group > h2 { padding-left: 10px; border-left: 4px solid var(--accent-2); }
.board { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.bname { font-size: 1.08rem; font-weight: 700; }
.bdesc { margin: .2em 0 0; color: var(--muted); font-size: .88rem; }
.subs { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .88rem; }
.subs a::before { content: "└ "; color: var(--muted); }
.bstat { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; min-width: 110px; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.bstat b { color: var(--ink); }
.subboards { margin: 0 0 18px; padding: 12px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.subboards h2 { font-size: 1rem; margin-bottom: .3em; }
.subboards ul { margin: 0; padding-left: 1.2em; columns: 2; }
.empty { color: var(--muted); }

/* thread list */
.tlist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tlist table { width: 100%; border-collapse: collapse; }
.tlist th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--muted); background: #faf7f0; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tlist td { padding: 9px 12px; border-bottom: 1px solid #f0ebe0; vertical-align: top; }
.tlist tr:last-child td { border-bottom: 0; }
.tlist tbody tr:hover { background: #fcfaf5; }
.tlist small { display: block; font-size: .78rem; }
.c-title { word-break: break-word; }
.c-title a { color: var(--ink); font-weight: 500; }
.c-title a:visited { color: #6b5f78; }
.c-author, .c-last { width: 150px; font-size: .88rem; }
.c-num { width: 96px; white-space: nowrap; text-align: right; font-size: .88rem; }
th.c-num small { display: inline; margin-left: 4px; }
.tp { color: var(--accent-2); font-size: .9em; }
.bd { display: inline-block; margin-right: 5px; padding: 0 6px; border-radius: 4px; font-size: .74rem; line-height: 1.6; vertical-align: 1px; color: #fff; }
.bd-top { background: var(--accent); }
.bd-dg { background: var(--accent-2); }
.bd-poll { background: #4d7a5a; }

/* thread */
.thread > h1 { margin-bottom: .2em; word-break: break-word; }
.tmeta { margin: 0 0 18px; color: var(--muted); font-size: .88rem; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 14px; overflow: hidden; }
.ph { display: flex; align-items: baseline; gap: 12px; padding: 8px 16px; background: #faf7f0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.pa { font-weight: 700; color: var(--ink); }
.ph time { color: var(--muted); }
.fl { margin-left: auto; color: var(--muted); }
.psub { padding: 10px 18px 0; font-weight: 700; }
.pc { padding: 14px 18px 18px; word-wrap: break-word; overflow-wrap: anywhere; }
.pc img { max-width: 100%; height: auto; vertical-align: middle; }
.pc img.sm { max-height: 2.2em; }
.pc .quote { margin: .6em 0; padding: 8px 14px; background: #f7f4ec; border-left: 4px solid #d7ccb6; border-radius: 4px; color: var(--ink-2); font-size: .94em; }
.pc .quote blockquote { margin: 0; }
.pc blockquote.indent { margin: .3em 0 .3em 2em; }
.pc .code { margin: .6em 0; background: #2b2b2b; color: #eee; border-radius: 6px; overflow: auto; }
.pc .code pre { margin: 0; padding: 12px 14px; font: 13px/1.55 Consolas, "Courier New", monospace; white-space: pre; }
.pc .tbl { overflow-x: auto; margin: .5em 0; }
.pc table.t { border-collapse: collapse; max-width: 100%; }
.pc table.t td { border: 1px solid #d9d1c0; padding: 4px 8px; vertical-align: top; }
.pc .hidebox { margin: .6em 0; padding: 8px 14px; border: 1px dashed var(--accent-2); border-radius: 6px; background: #fffaf0; }
.pc .hidebox-h { font-size: .8rem; color: var(--accent-2); margin-bottom: 4px; }
.pc fieldset.fbox { border: 1px solid #b9d3c2; border-radius: 6px; margin: .6em 0; padding: .6em 1em; }
.pc fieldset.fbox legend { color: seagreen; padding: 0 6px; }
.pc .box { margin: .6em 1em; padding: 6px 10px; border: 1px dashed #dde3ec; border-radius: 4px; }
.pc .rainbow { background: linear-gradient(90deg, #d33, #e90, #2a2, #26c, #93c); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.pc .pstatus { display: block; font-size: .8rem; color: var(--muted); font-style: normal; margin-bottom: .4em; }
.pc ul.l-1 { list-style: decimal; } .pc ul.l-a { list-style: lower-alpha; } .pc ul.l-A { list-style: upper-alpha; }
.pc .backlink { color: var(--muted); margin-left: 4px; }
.pc .ext-img { display: inline-block; white-space: nowrap; padding: 0 6px; border: 1px dashed #c6bba7; border-radius: 4px; font-size: .85em; color: var(--muted); }
.att-missing, .att-file { color: var(--muted); font-size: .9em; }
.attachments { margin: 0 18px 16px; padding-top: 10px; border-top: 1px dashed var(--line); }
.att-h { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.attachments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.attachments img { max-width: 260px; max-height: 220px; border: 1px solid var(--line); border-radius: 4px; }
.poll { margin: 0 0 16px; padding: 12px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.poll-h { font-weight: 700; margin-bottom: 6px; }
.poll ul { list-style: none; margin: 0; padding: 0; }
.poll li { display: grid; grid-template-columns: 1fr 160px 60px; gap: 10px; align-items: center; padding: 3px 0; font-size: .92rem; }
.pbar { height: 8px; background: #efe9dc; border-radius: 4px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--accent-2); }
.pv { text-align: right; color: var(--muted); }
.back { margin: 20px 0; }

/* search page */
.sform { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 14px; }
.sform input[type=search] { flex: 1 1 360px; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.sform label { font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.sform button, .smore { padding: 9px 18px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sstatus { color: var(--muted); font-size: .92rem; margin: 6px 0 10px; }
.sresults { list-style: none; margin: 0; padding: 0; }
.sresults li { padding: 12px 16px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.sr-t { font-weight: 700; font-size: 1.04rem; }
.sr-m { font-size: .8rem; color: var(--muted); margin: 2px 0 4px; }
.sr-s { font-size: .9rem; color: var(--ink-2); word-break: break-word; }
.sr-s mark { background: #fbe7a8; color: inherit; padding: 0 1px; }
.smore { display: block; margin: 8px auto 24px; }

@media (max-width: 720px) {
  body { font-size: 15px; }
  .top .wrap { flex-direction: column; align-items: stretch; }
  .qs input { flex: 1; width: auto; max-width: none; }
  .board { flex-direction: column; }
  .bstat { flex-direction: row; gap: 12px; align-items: baseline; justify-content: flex-start; }
  .c-last, .tlist th.c-last { display: none; }
  .c-author { width: 96px; }
  .c-num { width: 56px; }
  .subboards ul { columns: 1; }
  .pc { padding: 12px 14px 16px; }
  .poll li { grid-template-columns: 1fr 80px 50px; }
}
.pc .img-dead { display: inline-block; white-space: nowrap; padding: 0 6px; border: 1px dashed #d6cdbb; border-radius: 4px; font-size: .85em; color: var(--muted); }
