/* 豫考罗盘 2.0 — 基础样式（照搬旧站视觉） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --text: #1E1E1E;
  --muted: #9AA3AF;
  --line: #F3F5F7;
  --blue: #2B5CE7;
  --red: #FE2C55;
  --radius: 8px;
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#app { max-width: 560px; margin: 0 auto; padding: 0 12px 88px; }

/* ---------- 顶部 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,246,248,.92);
  backdrop-filter: blur(10px);
  padding: 12px 0 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.brand em { color: var(--blue); font-style: normal; }

/* ---------- 卡片 ---------- */
.postcard {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  padding: 14px 14px 0 14px;
  margin: 0 0 10px 0;
}
.cardlink { display: block; text-decoration: none; color: inherit; }

.urow { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 30px; height: 30px; border-radius: 7px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.uname { font-size: 13.5px; font-weight: 600; }
.utime { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.badge-boss {
  display: inline-block; font-size: 10px; font-weight: 700; color: #fff;
  background: #E8730C; border-radius: 3px; padding: 0 4px; margin-left: 4px;
  vertical-align: middle;
}

.ptitle { font-size: 15.5px; font-weight: 700; margin: 9px 0 4px; }
.pbody {
  font-size: 14px; color: #444B56; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 操作栏 ---------- */
.actbar {
  display: flex; flex-direction: row; align-items: center;
  justify-content: flex-start; gap: 16px;
  margin: 10px 0 0 0;
  padding: 9px 0 11px 0;
  border-top: 1px solid var(--line);
}
.actitem {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; text-decoration: none; cursor: pointer;
  background: none; border: 0; padding: 0; color: #9AA3AF;
  line-height: 1.2; white-space: nowrap; font-family: inherit;
}
.actitem.liked { color: var(--red); }
.actitem:active { opacity: .6; }

/* ---------- 底部导航 ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid #EEF0F3;
  display: flex;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto;
}
.navitem {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; color: var(--muted); text-decoration: none;
  background: none; border: 0; padding: 3px 0; cursor: pointer;
  font-family: inherit;
}
.navitem .ic { font-size: 18px; line-height: 1; }
.navitem.active { color: var(--blue); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: block; width: 100%; border: 0; border-radius: 10px;
  padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit; background: var(--blue); color: #fff;
}
.btn:active { opacity: .85; }
.btn.ghost { background: #fff; color: #444B56; border: 1px solid #E3E7ED; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: #5A6474; margin-bottom: 5px; }
.field input {
  width: 100%; padding: 11px 12px; border-radius: 10px;
  border: 1px solid #E3E7ED; background: #fff; font-size: 15px;
  font-family: inherit; outline: none;
}
.field input:focus { border-color: var(--blue); }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(17,24,39,.92); color: #fff;
  padding: 14px 24px; border-radius: 12px; font-size: 14px; z-index: 99999;
  box-shadow: 0 8px 28px rgba(0,0,0,.28); text-align: center; line-height: 1.6;
  pointer-events: none;
  animation: toastIn .18s ease-out;
}
.toast small { display: block; font-size: 12.5px; opacity: .75; margin-top: 3px; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ---------- 骨架屏 ---------- */
.skel {
  background: linear-gradient(90deg, #EFF1F4 25%, #F7F8FA 37%, #EFF1F4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; padding: 48px 20px;
  border: 1px dashed #D8DEE8; border-radius: 14px; background: #FAFBFC;
}
.empty .ic { font-size: 36px; }
.empty .t { font-size: 15px; font-weight: 700; color: #5A6474; margin-top: 10px; }
.empty .s { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

.section-t { font-size: 15px; font-weight: 700; margin: 16px 0 10px; }

/* ===== 注册页：邮箱验证码 ===== */
.code-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.code-row input {
  flex: 1;
  min-width: 0;
  letter-spacing: 3px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.code-send {
  flex: 0 0 auto;
  min-width: 100px;
  padding: 0 12px;
  border: 1px solid #2f6df6;
  background: #fff;
  color: #2f6df6;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
  -webkit-tap-highlight-color: transparent;
}

.code-send:active {
  background: #eef3ff;
}

.code-send.off,
.code-send:disabled {
  border-color: #d5dbe6;
  color: #9aa4b5;
  background: #f6f8fb;
  cursor: default;
}

.code-hint {
  font-size: 12px;
  color: #8b94a5;
  margin-top: 6px;
  line-height: 1.6;
}

.code-hint.ok {
  color: #1a9c4a;
}

.code-hint.err {
  color: #e34a4a;
}

/* ===== 表单字段提示 ===== */
.field-hint {
  font-size: 12px;
  color: #8b94a5;
  line-height: 1.6;
  margin: -6px 0 14px 2px;
}

/* ---------- 找回密码 ---------- */
.fp-link {
  text-align: center;
  font-size: 13px;
  color: #2b6cb0;
  padding: 10px 0 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fp-link:active { opacity: .6; }

.fp-tip {
  font-size: 12.5px;
  color: #7a869a;
  line-height: 1.6;
  background: #f5f8ff;
  border-left: 3px solid #4a90e2;
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.fp-code-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.fp-code-row > input { flex: 1; min-width: 0; }
.fp-code-row > .fp-send {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
  padding: 0 12px;
  letter-spacing: 0;
}
.fp-send:disabled { opacity: .55; }

/* ===== 管理员：评论置顶 / 管理按钮 ===== */
.pinbadge {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 2px;
  font-size: 10.5px;
  line-height: 16px;
  color: #fff;
  background: #E67E22;
  border-radius: 4px;
  vertical-align: middle;
}

.cmt.ispinned {
  background: #FFF9F0;
  border-left: 3px solid #E67E22;
  padding-left: 10px;
  border-radius: 6px;
}

.actitem.modbtn {
  color: #E67E22;
  font-weight: 500;
}

.actitem.modbtn.danger {
  color: #C0392B;
}

/* ===== 管理员面板（用户治理）===== */
.mod-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #F0F2F5;
}

.mod-user .info { flex: 1; min-width: 0; }
.mod-user .nm { font-size: 14px; font-weight: 600; color: #1F2937; }
.mod-user .meta { font-size: 12px; color: #8A94A6; margin-top: 2px; }

.mod-user .tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10.5px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.tag-admin  { background: #2B5CE7; color: #fff; }
.tag-banned { background: #C0392B; color: #fff; }

.btn-ban, .btn-unban {
  padding: 6px 14px;
  font-size: 12.5px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-ban   { background: #FDECEA; color: #C0392B; border-color: #F5C6C2; }
.btn-unban { background: #E8F5EC; color: #27AE60; border-color: #BFE3CB; }

/* ===== 治理中心标签页 ===== */
.modtabs {
  display: flex;
  gap: 8px;
  padding: 4px 0 12px;
  overflow-x: auto;
}

.modtab {
  flex: 0 0 auto;
  padding: 7px 16px;
  font-size: 13px;
  color: #5A6474;
  background: #F2F4F7;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
}

.modtab.on {
  color: #fff;
  background: #2B5CE7;
  font-weight: 600;
}
/* ===== 用户反馈样式 ===== */

/* ---------- 表单 ---------- */
.fb-label {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 8px;
  font-weight: 500;
}

.fb-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fb-mod {
  padding: 7px 14px;
  border: 1px solid #E5E7EB;
  background: #fff;
  border-radius: 18px;
  font-size: 13px;
  color: #4B5563;
  cursor: pointer;
  transition: all .15s;
}

.fb-mod:hover { border-color: #2B5CE7; color: #2B5CE7; }

.fb-mod.on {
  background: #2B5CE7;
  border-color: #2B5CE7;
  color: #fff;
  font-weight: 600;
}

.fb-textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #1F2937;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

.fb-textarea:focus,
.fb-input:focus {
  outline: none;
  border-color: #2B5CE7;
}

.fb-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  color: #1F2937;
  box-sizing: border-box;
  font-family: inherit;
}

.fb-count {
  text-align: right;
  font-size: 12px;
  color: #9AA3AF;
  margin-top: 4px;
}

/* ---------- 图片上传 ---------- */
.fb-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.fb-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }

.fb-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background: #F3F4F6;
}

.fb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.fb-pick {
  width: 76px;
  height: 76px;
  border: 1px dashed #D1D5DB;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #9AA3AF;
  cursor: pointer;
  transition: all .15s;
}

.fb-pick:hover { border-color: #2B5CE7; color: #2B5CE7; }

/* ---------- 图片放大遮罩 ---------- */
.fb-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 20px;
}

.fb-mask img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}

/* ---------- 我的反馈 / 治理中心卡片 ---------- */
.mfb-card,
.fb-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #F0F1F3;
}

.fb-card.is-pending {
  border-left: 3px solid #E67E22;
}

.mfb-head,
.fb-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mfb-mod,
.fb-mod-tag {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 10px;
  background: #EEF2FF;
  color: #2B5CE7;
  font-weight: 600;
}

.mfb-st,
.fb-st {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid;
  line-height: 1.5;
}

.fb-who {
  font-size: 12px;
  color: #9AA3AF;
  margin-left: auto;
}

.mfb-content,
.fb-card-content {
  font-size: 14px;
  color: #1F2937;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.mfb-imgs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.mfb-img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  background: #F3F4F6;
}

.mfb-reply {
  margin-top: 10px;
  padding: 9px 12px;
  background: #F0FDF4;
  border-left: 3px solid #27AE60;
  border-radius: 6px;
  font-size: 13px;
  color: #166534;
  line-height: 1.6;
}

.fb-contact {
  margin-top: 8px;
  font-size: 12px;
  color: #6B7280;
}

.mfb-time,
.fb-card-foot {
  font-size: 12px;
  color: #9AA3AF;
  margin-top: 10px;
}

/* ---------- 治理中心：筛选 + 操作 ---------- */
.fb-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fb-filter {
  padding: 6px 13px;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  background: #fff;
  font-size: 12px;
  color: #6B7280;
  cursor: pointer;
}

.fb-filter.on {
  background: #2B5CE7;
  color: #fff;
  border-color: #2B5CE7;
  font-weight: 600;
}

.fb-acts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.fb-act {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
}

.fb-act.done {
  color: #27AE60;
  border-color: #27AE60;
}

.fb-act.done:hover { background: #27AE60; color: #fff; }

.fb-act.ignore {
  color: #9AA3AF;
  border-color: #D1D5DB;
}

.fb-act.ignore:hover { background: #6B7280; color: #fff; border-color: #6B7280; }

.fb-handled {
  font-size: 12px;
  color: #9AA3AF;
}

/* ---------- 标签页角标 ---------- */
.modtab-badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 8px;
  background: #E74C3C;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
  vertical-align: middle;
}

/* ===== 我的评论 mycomments ===== */
.mc-item { border-radius: 10px; }
.mc-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.mc-post {
  font-size: 12px; color: #2B5CE7; background: #EEF3FF;
  border-radius: 4px; padding: 1px 6px;
  max-width: 68%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-time { font-size: 11.5px; color: #9AA3AF; flex-shrink: 0; }
.mc-content {
  font-size: 14px; line-height: 1.6; color: #23282F;
  word-break: break-word; white-space: pre-wrap;
}
.mc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.mc-likes { font-size: 12px; color: #D03050; }
.mc-acts { display: flex; gap: 14px; }
.mc-link {
  background: none; border: none; padding: 0;
  font-size: 12.5px; color: #5A6474; cursor: pointer;
}
.mc-link:active { opacity: 0.6; }
.mc-del { color: #D03050; }
.mc-del:disabled { color: #C9CEd6; cursor: default; }
.mc-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  color: #2B5CE7; background: #EEF3FF; border-radius: 3px;
  padding: 0 4px; margin-right: 5px; vertical-align: middle;
}
.badge-pin {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  line-height: 18px;
  border-radius: 9px;
  color: #fff;
  background: #F59E0B;
  vertical-align: middle;
  white-space: nowrap;
}

/* my content tabs */
.mc-tabs { display: flex; gap: 8px; margin: 4px 0 14px; }
.mc-tab { flex: 1; padding: 9px 0; border: 0; background: #F1F3F6; color: #6B7280; font-size: 13.5px; font-weight: 600; border-radius: 8px; cursor: pointer; }
.mc-tab.active { background: #2B5CE7; color: #fff; }
.mc-title { font-size: 14px; font-weight: 600; color: #1F2937; margin: 2px 0 4px; line-height: 1.45; }
.mc-tag-pin { color: #F59E0B; background: #FEF3C7; }


/* ---------- 顶部右上角：登录入口 / 用户信息 ---------- */
#topright { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

/* 未登录：登录 / 注册按钮 */
.top-login {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3B6DF0, #2B5CE7);
  border-radius: 999px;
  padding: 6px 14px;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(43, 92, 231, .28);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.top-login:active {
  transform: scale(.95);
  box-shadow: 0 1px 4px rgba(43, 92, 231, .22);
}

/* 已登录：头像 + 昵称 */
.top-user {
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .78);
  border-radius: 999px;
  padding: 3px 11px 3px 3px;
  max-width: 190px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: transform .12s ease, background .12s ease;
}
.top-user:active { transform: scale(.96); background: rgba(235, 239, 250, .95); }
.top-ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
}
.top-uname {
  font-size: 12.5px;
  font-weight: 600;
  color: #2E3644;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-user .badge-boss {
  font-size: 9.5px;
  padding: 0 3px;
  margin-left: 0;
  flex: 0 0 auto;
}

/* ===== feed quote hero ===== */
.quote-hero {
  margin: 0 0 22px 0;
  padding: 30px 4px 26px 4px;
  background: transparent;
  border: none;
  text-align: left;
  position: relative;
}
.quote-hero .qh-txt {
  font-size: 31px;
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -.5px;
  color: #10131A;
}
.quote-hero .qh-txt span {
  display: block;
}
.quote-hero .qh-red {
  color: #10131A;
}
.quote-hero .qh-blue {
  color: var(--blue);
}
.quote-hero .qh-sub {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #8A93A0;
  font-weight: 400;
  letter-spacing: .2px;
}

/* ---------- 备案号 ---------- */
.site-footer {
  text-align: center;
  padding: 18px 12px 24px;
  margin-top: 8px;
  font-size: 12px;
  color: #9AA3AF;
}
.site-footer a {
  color: #9AA3AF;
  text-decoration: none;
}
.site-footer a:hover { color: var(--blue); }
