/* ---------- 帖子详情 ---------- */
.f-topic-head { background: var(--f-card); border: 1px solid var(--f-line); border-radius: var(--f-radius); padding: 18px 20px; margin-bottom: 14px; }
.f-topic-title { margin: 0 0 8px; font-size: 20px; line-height: 1.4; }
.f-topic-meta { display: flex; gap: 14px; align-items: center; color: var(--f-sub); font-size: 12.5px; flex-wrap: wrap; }
.f-topic-actions { margin-top: 10px; display: flex; gap: 8px; }
.f-action-btn { height: 30px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--f-line); background: #fff; color: #6b7280; font-size: 12.5px; cursor: pointer; }
.f-action-btn:hover { border-color: var(--f-primary); color: var(--f-primary); }
.f-action-btn.faved { background: #eef4ff; border-color: var(--f-primary); color: var(--f-primary); }

/* 楼主帖：独立强调卡片（浅蓝底 + 品牌色左边条 + 红色楼主标） */
.f-floor-op { border-color: #c9d9f9; border-left: 3px solid var(--f-primary); background: linear-gradient(180deg, #f8fbff, #ffffff); margin-bottom: 14px; padding-top: 14px; }
.f-floor-name-op { font-size: 14.5px; }
.f-floor-content-op { font-size: 15px; line-height: 1.85; }
.f-ubadge-owner { background: #fee2e2; color: #dc2626; }
/* 楼主帖作者行下方的浏览/回帖/时间 */
.f-op-meta { display: flex; gap: 14px; margin-top: 2px; padding-left: 54px; color: var(--f-sub); font-size: 12px; }
/* 楼主帖卡片左下角（收藏 + 签名） */
.f-floor-ftleft { display: flex; align-items: center; gap: 12px; min-width: 0; }
.f-floor-ftleft .f-action-btn { height: 28px; padding: 0 12px; font-size: 12px; }

/* 回帖区：贴吧式两栏列表（左头像 + 右侧昵称/内容/操作列） */
.f-replies { background: var(--f-card); border: 1px solid var(--f-line); border-radius: var(--f-radius); margin-bottom: 12px; }
.f-replies-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--f-line); font-size: 13.5px; font-weight: 700; }
.f-replies-sub { font-size: 11.5px; color: var(--f-sub); font-weight: 400; }
.f-reply { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 14px 18px; border-bottom: 1px solid #f0f2f5; }
.f-reply:hover { background: #fafbfd; }
.f-reply:last-child { border-bottom: 0; border-radius: 0 0 var(--f-radius) var(--f-radius); }
.f-reply .uc-avatar { margin-top: 2px; }
.f-reply-main { min-width: 0; }
.f-reply-hd { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.f-reply-nameline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; width: 100%; min-width: 0; }
.f-reply-floorno { margin-left: auto; color: var(--f-sub); font-size: 12.5px; font-weight: 600; }
.f-reply-content { margin-top: 6px; font-size: 14px; line-height: 1.75; color: var(--f-text); word-break: break-word; overflow-wrap: anywhere; }
.f-reply-ft { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.f-reply-time { color: var(--f-sub); font-size: 11.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-reply-ft .act-reply { background: none; border: 0; padding: 2px 10px; color: var(--f-primary); font-size: 12.5px; cursor: pointer; border-radius: 6px; }
.f-reply-ft .act-reply:hover { background: #eef4ff; }

/* ---------- 楼层暴击标识 ---------- */
.f-crit-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 5px 12px; border-radius: 999px; background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; font-size: 12.5px; cursor: pointer; user-select: none; }
.f-crit-badge:hover { background: #fee2e2; border-color: #fca5a5; }
.f-crit-badge svg { width: 15px; height: 15px; flex: none; }
.f-crit-badge b { font-weight: 800; }
.f-crit-badge .f-crit-view { text-decoration: underline; opacity: .85; }
.f-subreply .f-crit-badge { margin-top: 6px; padding: 3px 10px; font-size: 11.5px; }
.f-subreply .f-crit-badge svg { width: 13px; height: 13px; }

/* 楼中楼（子回复嵌套在父楼层内） */
.f-subreplies { margin-top: 10px; background: #f7f9fc; border: 1px solid #eef1f5; border-radius: 8px; padding: 4px 12px; }
.f-subreply { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px dashed #e8ecf1; }
.f-subreply:last-child { border-bottom: 0; }
.f-subreply .uc-avatar { margin-top: 1px; }
.f-subreply-body { min-width: 0; }
.f-subreply-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.f-subreply-name { font-size: 12.5px; font-weight: 600; color: var(--f-primary); }
.f-subreply-to { font-size: 11.5px; color: var(--f-accent); }
.f-subreply-to-name { color: var(--f-accent); text-decoration: none; font-weight: 600; }
.f-subreply-to-name:hover { text-decoration: underline; }
.f-subreply-time { margin-left: auto; font-size: 11px; color: var(--f-sub); }
.f-subreply-content { font-size: 13px; line-height: 1.65; margin-top: 2px; word-break: break-word; overflow-wrap: anywhere; }
.f-subreply-acts { margin-top: 3px; }
.f-subreply-acts .act-reply { background: none; border: 0; padding: 0; color: var(--f-sub); font-size: 11.5px; cursor: pointer; }
.f-subreply-acts .act-reply:hover { color: var(--f-primary); }

/* 回复目标指示条（回复某楼时显示） */
.f-reply-target { display: flex; align-items: center; gap: 10px; background: #eef4ff; border: 1px solid #c9d9f9; color: var(--f-primary); border-radius: 8px; padding: 7px 12px; font-size: 12.5px; margin-bottom: 10px; }
.f-reply-target span { font-weight: 600; }
.f-reply-target button { margin-left: auto; background: none; border: 0; color: var(--f-sub); font-size: 12px; cursor: pointer; }
.f-reply-target button:hover { color: #dc2626; }

/* 楼层间「回复 N楼」标签 */
.f-ubadge-to { background: #fff7ed; color: #ea580c; }

/* ---------- 发卡表单：商品信息卡 ---------- */
.f-fieldcard { margin-top: 16px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fbfcfe; padding: 14px 16px; }
.f-fieldcard-title { font-size: 13px; font-weight: 700; color: #1f2733; margin-bottom: 10px; }
.f-fieldgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
@media (max-width: 640px) { .f-fieldgrid { grid-template-columns: 1fr; } }
.f-fielditem { display: flex; gap: 8px; font-size: 13px; line-height: 1.7; min-width: 0; }
.f-fieldlabel { color: #9aa4b2; flex: 0 0 76px; }
.f-fieldvalue { color: #1f2733; word-break: break-word; overflow-wrap: anywhere; }
.f-fieldvalue a { color: var(--f-primary); }
.f-fieldexpire { margin-top: 10px; padding-top: 9px; border-top: 1px dashed #e2e8f0; font-size: 12px; color: #9aa4b2; }
.f-fieldexpire.is-expired { color: #b91c1c; font-weight: 600; }

/* ---------- 主题红包（微信风红包封套） ---------- */
.f-rp { margin-top: 16px; width: 300px; max-width: 100%; }
.f-rp-card { position: relative; overflow: hidden; border-radius: 14px; padding: 32px 18px 24px; text-align: center;
  min-height: 378px; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(172deg, #e85b50 0%, #d2453a 48%, #c53a2f 100%); color: #fff;
  box-shadow: 0 16px 32px -16px rgba(170,45,36,.75); }
.f-rp-card.is-opened { min-height: 250px; background: linear-gradient(172deg, #dd554a 0%, #c03a30 100%); }
/* 底部弧形封盖（微信红包下半段的浅红色弧） */
.f-rp-flap { position: absolute; left: -32%; bottom: -36%; width: 164%; height: 58%; border-radius: 50%;
  background: #ee6f61; }
/* 居中大福字水印 */
.f-rp-fu { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font-size: 148px; line-height: 1;
  font-weight: 700; color: rgba(255,255,255,.14); pointer-events: none; user-select: none; z-index: 1; }
.f-rp-ava { position: relative; z-index: 3; width: 48px; height: 48px; border-radius: 10px; background: #fff;
  padding: 3px; box-sizing: border-box; box-shadow: 0 2px 8px rgba(0,0,0,.20); }
.f-rp-ava img { width: 100%; height: 100%; border-radius: 7px; display: block; }
.f-rp-name { position: relative; z-index: 3; margin-top: 12px; font-size: 15px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.f-rp-bless { position: relative; z-index: 3; margin-top: 7px; font-size: 16px; font-weight: 800; color: #ffe08a; letter-spacing: 2px; }
.f-rp-type { position: relative; z-index: 3; margin-top: 16px; padding: 4px 15px; border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px; font-size: 12px; color: #fff; background: rgba(255,255,255,.10); }
.f-rp-body { position: relative; z-index: 3; margin-top: auto; padding-top: 26px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.f-rp-open { width: 68px; height: 68px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); cursor: pointer;
  font-size: 21px; font-weight: 800; color: #a2470f; font-family: inherit;
  background: radial-gradient(circle at 35% 28%, #fff3c4, #f9c74f 58%, #eeab35); box-shadow: 0 8px 18px -6px rgba(0,0,0,.4);
  transition: transform .16s, box-shadow .16s; }
.f-rp-open:hover { transform: scale(1.07); box-shadow: 0 10px 22px -6px rgba(0,0,0,.45); }
.f-rp-open:active { transform: scale(.95); }
.f-rp-open:disabled { opacity: .65; cursor: default; transform: none; }
.f-rp-tip { font-size: 12.5px; color: rgba(255,255,255,.94); text-shadow: 0 1px 2px rgba(0,0,0,.12); }
.f-rp-got { font-size: 30px; font-weight: 800; color: #ffe08a; line-height: 1.1; text-shadow: 0 2px 6px rgba(0,0,0,.2); }
.f-rp-claims { margin-top: 10px; background: #fff; border: 1px solid var(--f-line); border-radius: 12px; padding: 12px 14px; }
.f-rp-sum { font-size: 12.5px; color: #6b7280; padding-bottom: 9px; border-bottom: 1px solid #f1f3f6; }
.f-rp-sum b { color: #c73a2e; }
/* 进行中且未领取：明细不公开 */
.f-rp-hidden { padding: 6px 0; text-align: center; font-size: 12.5px; color: #9aa4b2; }
.f-rp-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.f-rp-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f7f8fa; }
.f-rp-row:last-child { border-bottom: 0; }
.f-rp-row img { border-radius: 50%; flex: 0 0 auto; }
.f-rp-u { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.f-rp-u a { font-size: 13px; font-weight: 600; color: #1f2733; text-decoration: none; }
.f-rp-u a:hover { color: var(--f-primary); }
.f-rp-date { font-size: 11.5px; color: #9aa4b2; }
.f-rp-best { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: #fff7e6; color: #b45309; font-weight: 700; }
.f-rp-amt { font-size: 13.5px; font-weight: 800; color: #c73a2e; white-space: nowrap; }
.f-rp-row.is-best .f-rp-amt { font-size: 14.5px; }
@keyframes f-rp-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.f-rp-opening .f-rp-got { animation: f-rp-pop .5s ease-out; }
/* 红包徽章：按「自己发的 / 已领取 / 已领完 / 可领取」区分图标与配色 */
.f-badge-rp { background: #fee2e2; color: #c73a2e; font-weight: 700; }
.f-badge-rp.is-got { background: #ecfdf5; color: #059669; }
.f-badge-rp.is-mine { background: #fff7e6; color: #b45309; }
.f-badge-rp.is-done { background: #f1f5f9; color: #94a3b8; font-weight: 600; }
/* 列表标题行：标题 + 红包徽章并排 */
.f-row-titleline { display: flex; align-items: center; gap: 7px; min-width: 0; }
.f-row-titleline .f-row-title { flex: 1; min-width: 0; }

.f-floor { background: var(--f-card); border: 1px solid var(--f-line); border-radius: var(--f-radius); margin-bottom: 10px; padding: 14px 18px 12px; }
.f-floor-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-floor-who { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.f-floor-nameline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
/* 徽章行：UID / 等级 / 称号 / 楼主 独立一行、尺寸统一，避免横排拥挤与高低不齐 */
.f-floor-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* 徽章统一尺寸：UID / 等级 / 称号 / 楼主 / 版主 高度一致，避免高低不齐 */
.f-floor-nameline .f-ubadge, .f-reply-nameline .f-ubadge, .f-floor-badges > * { display: inline-flex; align-items: center; height: 20px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.f-floor-badges .f-ubadge { padding-left: 7px; padding-right: 7px; }
.f-floor-badges .uc-lv-badge { padding-left: 6px; padding-right: 6px; }
.f-floor-badges .uc-title-badge.fx-big { font-size: 11px; padding: 1px 6px 1px 2px; }
.f-floor-badges .uc-title-badge.fx-big .uc-title-ico { flex-basis: 15px; width: 15px; height: 15px; }
.f-floor-badges .uc-title-badge.fx-big .uc-title-ico svg { width: 11px; height: 11px; }
.f-floor-name { font-size: 13.5px; font-weight: 700; word-break: break-all; }
.f-ubadge { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.f-ubadge-uid { background: #374151; color: #fff; }
.f-ubadge-lv { background: #fff7ed; color: #ea580c; }
.f-ubadge-mod { background: #fee2e2; color: #b91c1c; }
.f-ubadge-member { background: #eef4ff; color: #2f6fed; }
.f-ubadge-owner { background: #ecfdf5; color: #059669; }
.f-floor-hd-time { margin-left: auto; color: var(--f-sub); font-size: 12px; }
.f-floor-content { margin-top: 10px; font-size: 14.5px; line-height: 1.8; word-break: break-word; overflow-wrap: anywhere; }
.f-floor-content img { max-width: 100%; height: auto; border-radius: 8px; }
.f-floor-content table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.f-floor-content table th, .f-floor-content table td { border: 1px solid var(--f-line); padding: 6px 10px; }
.f-floor-ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 9px; border-top: 1px dashed var(--f-line); flex-wrap: wrap; }
.f-floor-sig2 { color: #059669; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.f-floor-acts { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.f-floor-acts .act-reply { background: none; border: 0; padding: 0; color: #6b7280; font-size: 12.5px; cursor: pointer; }
.f-floor-acts .act-reply:hover { color: var(--f-primary); }
.f-floor-no2 { color: var(--f-sub); font-size: 12px; font-weight: 700; }

/* 面包屑 */
.f-crumb { display: flex; align-items: center; gap: 8px; color: var(--f-sub); font-size: 12.5px; margin-bottom: 10px; }
.f-crumb a { color: var(--f-primary); text-decoration: none; }
.f-crumb a:hover { text-decoration: underline; }
.f-crumb i { font-style: normal; color: #cbd2dc; }

/* ---------- 分页 ---------- */
.f-pager { display: flex; gap: 8px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.f-pager a, .f-pager span { min-width: 34px; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--f-line); background: #fff; color: #4b5563; font-size: 13px; text-decoration: none; }
.f-pager a:hover { border-color: var(--f-primary); color: var(--f-primary); }
.f-pager span.on { background: var(--f-primary); border-color: var(--f-primary); color: #fff; }
.f-pager-end { text-align: center; color: var(--f-sub); font-size: 12px; margin: 16px 0; }

/* ---------- 回帖框 ---------- */
.f-replybox { background: var(--f-card); border: 1px solid var(--f-line); border-radius: var(--f-radius); padding: 16px 18px; margin-top: 16px; transition: border-color .15s, box-shadow .15s; }
.f-replybox:focus-within { border-color: #c7d7f7; box-shadow: 0 6px 22px rgba(47, 111, 237, .08); }
.f-replybox-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; }
.f-replybox-head svg { width: 17px; height: 17px; color: var(--f-primary); flex: none; }
.f-replybox-lv { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--f-primary); background: #eef4ff; border: 1px solid #d7e4ff; border-radius: 999px; padding: 2px 10px; }
.f-reply-textarea { width: 100%; border: 1.5px solid var(--f-line); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; line-height: 1.6; resize: vertical; outline: none; }
.f-reply-textarea:focus { border-color: var(--f-primary); }
.f-replybox-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.f-replybox-hint { font-size: 12px; color: var(--f-sub); }
.f-replybox-hint b { color: var(--f-primary); }
.f-replybox-hint b.f-replybox-crit { color: #dc2626; }
.f-replybox .f-btn-accent { height: 38px; padding: 0 26px; border-radius: 9px; font-size: 14px; }
.f-replybox .f-btn-accent:disabled { opacity: .6; cursor: default; }
.f-replybox-guest { text-align: center; color: var(--f-sub); }
.f-replybox-guest a { color: var(--f-primary); text-decoration: none; font-weight: 600; }

/* 回帖富文本编辑器：比发帖更紧凑、与回帖框融为一体 */
.f-replybox .qp-editor { border-color: var(--f-line); border-radius: 10px; }
.f-replybox .qp-editor:focus-within { border-color: var(--f-primary); }
.f-replybox .qp-toolbar { padding: 5px 6px; gap: 1px; background: #f8fafc; }
.f-replybox .qp-btn { min-width: 28px; height: 28px; }
.f-replybox .qp-btn svg { width: 15px; height: 15px; }
.f-replybox .qp-area { min-height: 148px; max-height: 46vh; padding: 12px 14px; line-height: 1.75; font-size: 14px; }

@media (max-width: 640px) {
  .f-replybox { padding: 13px 13px; }
  .f-replybox .qp-area { min-height: 128px; }
  .f-replybox-hint { width: 100%; text-align: center; }
  .f-replybox .f-btn-accent { width: 100%; }
}

.f-topic-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.f-topic-nav a { color: #6b7280; font-size: 12.5px; text-decoration: none; }
.f-topic-nav a:hover { color: var(--f-primary); }

