/* ===== 查次元论坛 · 橙白亮色风格 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC","Microsoft YaHei","Hiragino Sans GB",system-ui,-apple-system,"Segoe UI",sans-serif;
  background: #fffaf4; color: #2b2118; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.f-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,250,244,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffe0c7;
}
.f-head-inner {
  max-width: 880px; margin: 0 auto; padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.f-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; }
.f-logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 19px;
  background: linear-gradient(135deg, #ff7a18, #ff5e3a);
  box-shadow: 0 4px 12px rgba(255,122,24,.35);
}
.f-nav { display: flex; align-items: center; gap: 12px; }
.f-nav > a { color: #7c6a58; font-size: 14px; }
.f-nav > a:hover { color: #ff5e3a; }
.f-user { color: #d9540d; font-weight: 700; font-size: 14px; }

.f-container { max-width: 880px; margin: 0 auto; padding: 26px 18px 60px; }
.f-page-title { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.f-page-sub { color: #ab9782; font-size: 13px; margin-bottom: 20px; }

.f-card {
  background: #fff; border: 1px solid #ffe0c7; border-radius: 16px;
  padding: 16px 18px; margin-bottom: 12px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.f-card:hover { border-color: #ff9d3c; box-shadow: 0 6px 22px rgba(255,122,24,.10); }

.f-btn {
  display: inline-block; cursor: pointer; border: 0; color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 10px;
  background: linear-gradient(135deg, #ff7a18, #ff5e3a);
  box-shadow: 0 4px 14px rgba(255,122,24,.3);
}
.f-btn:hover { filter: brightness(1.05); }
.f-btn.ghost { background: transparent; color: #ff5e3a; border: 1px solid #ffd2ad; box-shadow: none; }
.f-btn.ghost:hover { background: #fff1e3; }
.f-btn.full { display: block; width: 100%; text-align: center; padding: 12px; }
.f-btn.sm { padding: 6px 12px; font-size: 13px; }

.f-input, .f-textarea, .f-select {
  width: 100%; background: #fffaf4; border: 1px solid #ffe0c7; border-radius: 10px;
  padding: 10px 12px; color: #2b2118; font-size: 14px; font-family: inherit; outline: none;
}
.f-input:focus, .f-textarea:focus, .f-select:focus { border-color: #ff7a18; box-shadow: 0 0 0 3px rgba(255,122,24,.15); }
.f-textarea { resize: vertical; min-height: 90px; }

.f-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.f-spacer { flex: 1; }
.f-err { color: #d9330d; font-size: 13px; margin: 6px 0; }
.f-ok { color: #1f9d55; font-size: 13px; margin: 6px 0; }

/* 帖子列表 */
.thread-item { display: flex; gap: 14px; align-items: flex-start; }
.thread-main { flex: 1; min-width: 0; }
.thread-title { font-weight: 800; font-size: 16px; color: #2b2118; }
.thread-title:hover { color: #ff5e3a; }
.thread-meta { color: #ab9782; font-size: 12.5px; margin-top: 4px; }
.thread-stats {
  flex-shrink: 0; text-align: center; min-width: 56px; color: #ab9782; font-size: 12px;
  background: #fff1e3; border: 1px solid #ffd2ad; border-radius: 12px; padding: 8px 6px;
}
.thread-stats b { display: block; font-size: 18px; color: #d9540d; }

/* 帖子详情 */
.post-item { border-left: 3px solid #ffd2ad; padding: 10px 14px; margin-bottom: 12px; background: #fffaf4; border-radius: 0 12px 12px 0; }
.post-item.op { border-left-color: #ff7a18; background: #fff6ee; }
.post-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.post-author { font-weight: 700; color: #d9540d; font-size: 14px; }
.post-time { color: #ab9782; font-size: 12px; }
.post-body { white-space: pre-wrap; color: #4a3c2e; font-size: 14.5px; }
.tag-official { font-size: 11px; color: #fff; background: #ff7a18; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }

/* 表单卡片 */
.form-card { max-width: 420px; margin: 0 auto; }
.form-card h2 { font-size: 20px; margin-bottom: 4px; }
.form-card .f-page-sub { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: #7c6a58; margin: 10px 0 5px; }
.form-toggle { text-align: center; margin-top: 14px; font-size: 13px; color: #7c6a58; }
.form-toggle a { color: #ff5e3a; font-weight: 700; }

.f-footer { border-top: 1px solid #ffe0c7; background: #fff; margin-top: 30px; }
.f-foot-inner { max-width: 880px; margin: 0 auto; padding: 22px 18px; text-align: center; color: #ab9782; font-size: 13px; }
.f-foot-inner p { margin-top: 4px; }
.f-icp a { color: #ff5e3a; }

@media (max-width: 600px) {
  .thread-stats { display: none; }
  .f-head-inner { padding: 10px 14px; }
}
