@charset "utf-8";
/* ==========================================================================
   马店羊肉社区 · 论坛主题皮肤（fshyr-theme.css）v2
   对齐 8082 官网视觉：深红棕 #5a2413 / 金 #c9a25a / 奶油底 #faf6f1 / 砖红 #b8431e
   加载方式：template/default/common/header_common.php 中 {csstemplate} 之后
   说明：本文件只做「覆盖」，不修改 Discuz 编译缓存，避免更新缓存后失效。
   ========================================================================== */

:root {
  --fsh-primary: #b8431e;        /* 砖红：主按钮、强调链接 */
  --fsh-primary-dark: #9a3617;
  --fsh-primary-soft: #f8efe4;   /* 砖红浅底 */
  --fsh-primary-line: #ecd9c3;
  --fsh-gold: #c9a25a;           /* 官网金：点缀、激活、描边 */
  --fsh-gold-light: #d7b875;
  --fsh-deep: #4a2113;           /* 官网顶栏深红棕 */
  --fsh-deep-2: #5a2413;
  --fsh-text: #3d2b1f;
  --fsh-text-sub: #6b5645;
  --fsh-text-mute: #a08d7c;
  --fsh-line: #efe4d4;           /* 奶油系分隔线 */
  --fsh-bg: #faf6f1;             /* 官网奶油底 */
  --fsh-card: #FFFFFF;
  --fsh-radius: 12px;
  --fsh-radius-sm: 8px;
  --fsh-shadow: 0 6px 18px rgba(90, 36, 19, 0.07);
}

/* ---------- 基础 ---------- */
body {
  background: var(--fsh-bg) !important;
  color: var(--fsh-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

#wp { background: transparent; }

/* 正文强调链接统一成品牌色（Discuz 默认 #369 蓝） */
.xi2, .xi2 a, a.xi2,
.xw1, a.xw1 { color: var(--fsh-primary) !important; }

/* ---------- 品牌头部（对齐官网：深红棕 + 金线 + 白 logo 卡） ---------- */
.fsh-brand {
  background: linear-gradient(135deg, #6e2a12 0%, #5a2413 55%, #431b0c 100%);
  color: #fff;
  border-bottom: 2px solid rgba(201, 162, 90, 0.55);
}
.fsh-brand .fsh-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  min-width: 1200px;
  box-sizing: border-box;
}
.fsh-brand .fsh-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.fsh-brand .fsh-logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(201, 162, 90, 0.6);
}
.fsh-brand .fsh-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.fsh-brand .fsh-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.fsh-brand .fsh-sub {
  font-size: 12px;
  color: var(--fsh-gold-light);
  margin-top: 6px;
  letter-spacing: 3px;
}
.fsh-brand .fsh-actions { display: flex; align-items: center; gap: 10px; }
.fsh-brand .fsh-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 17px;
  background: #fff;
  color: var(--fsh-primary) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  transition: all .18s ease;
}
.fsh-brand .fsh-btn:hover { background: #fdf6ec; color: var(--fsh-primary-dark) !important; }
.fsh-brand .fsh-btn.ghost {
  background: transparent;
  color: var(--fsh-gold-light) !important;
  box-shadow: none;
  border: 1px solid rgba(201, 162, 90, 0.65);
}
.fsh-brand .fsh-btn.ghost:hover {
  background: var(--fsh-gold);
  color: #fff !important;
  border-color: var(--fsh-gold);
}

/* ---------- 顶部工具条：对齐官网深色顶栏 ---------- */
#toptb {
  background: var(--fsh-deep) !important;
  border-bottom: 1px solid rgba(201, 162, 90, 0.35) !important;
  color: #d7c4a8 !important;
  line-height: 34px;
}
#toptb a { color: #d7c4a8 !important; }
#toptb a:hover { color: var(--fsh-gold-light) !important; }
#toptb .pipe { color: rgba(201, 162, 90, 0.45); }

/* ---------- 头部（logo + 登录状态）：奶油底 ---------- */
#hd {
  background: var(--fsh-bg) !important;
  border-bottom: 1px solid var(--fsh-line) !important;
}
#hd .wp { padding-top: 12px; padding-bottom: 12px; box-sizing: border-box; }
#hd .hdc { align-items: center; }
/* Discuz 默认 logo（社区动力）替换为品牌文字 */
#hd h2 a img { display: none !important; }
#hd h2 a::before {
  content: '马店羊肉 · 社区';
  font-size: 24px;
  font-weight: 800;
  color: var(--fsh-text);
  letter-spacing: 0.5px;
}
#hd h2 a { text-decoration: none !important; }
#hd h2 a:hover { color: var(--fsh-primary) !important; }

/* 登录表单区轻量化 */
#hd .fastlg { border: none; }
#hd .fastlg_fm input,
#hd .fastlg input[type="text"],
#hd .fastlg input[type="password"] {
  border: 1px solid var(--fsh-line);
  border-radius: var(--fsh-radius-sm);
  background: #fff;
  height: 30px;
  padding: 0 10px;
  box-sizing: border-box;
}
#hd .fastlg input:focus { border-color: var(--fsh-gold); background: #fff; }

/* 登录 / 注册按钮 */
#hd .fastlg .pn,
#hd .fastlg .pnc,
#hd .fastlg_l button {
  background: var(--fsh-primary) !important;
  border-color: var(--fsh-primary) !important;
  color: #fff !important;
  border-radius: var(--fsh-radius-sm);
}

/* ---------- 主导航：官网深红棕 + 金色激活 ---------- */
#nv {
  background: linear-gradient(135deg, var(--fsh-deep-2) 0%, var(--fsh-deep) 100%) !important;
  height: 44px;
  border-radius: var(--fsh-radius) var(--fsh-radius) 0 0;
  border-bottom: 2px solid rgba(201, 162, 90, 0.5);
}
#nv a { color: #e8d8c4 !important; }
#nv li a {
  color: #f3e7d3 !important;
  font-size: 15px;
  line-height: 44px;
  padding: 0 18px;
  transition: background-color .18s ease;
  border-radius: 0;
}
#nv li a:hover { background: rgba(201, 162, 90, 0.22) !important; color: #fff !important; }
/* 激活项：金色微底 + 金色底边（对齐官网导航当前项高亮） */
#nv li.a {
  background: rgba(201, 162, 90, 0.18) !important;
  box-shadow: inset 0 -3px 0 var(--fsh-gold) !important;
  border-radius: 0;
  height: 44px;
}
#nv li.a a, #nv li a.a {
  background: transparent !important;
  color: #fff !important;
  font-weight: 700;
  line-height: 44px;
}
/* 导航滚动边缘渐变遮罩（原蓝色）去除 */
#nv > ul { background-image: none !important; }
#nv li.hover a, #nv li.hover a:hover { background: rgba(201, 162, 90, 0.22) !important; }
/* 快捷导航（金色小按钮） */
#qmenu { color: var(--fsh-gold-light) !important; }
#qmenu::after { border-top-color: var(--fsh-gold); }

/* 二级导航 */
#mu ul.cl { background: #FFFFFF; border: 1px solid var(--fsh-line); border-radius: 0 0 var(--fsh-radius) var(--fsh-radius); }
#mu li a { color: var(--fsh-text-sub) !important; }
#mu li.a a, #mu li a:hover { color: var(--fsh-primary) !important; }

/* ---------- 搜索条 ---------- */
#scbar {
  background: #FFFFFF !important;
  border: 1px solid var(--fsh-line) !important;
  border-radius: 22px;
  overflow: visible;
  box-shadow: var(--fsh-shadow);
  margin-top: 12px;
}
#scbar .scbar_txt,
#scbar input[type="text"] {
  border: none !important;
  background: transparent !important;
  height: 40px;
  padding-left: 18px;
  box-sizing: border-box;
}
#scbar .scbar_btn,
#scbar .scbar_btn button {
  background: transparent !important;
  border: none !important;
}
#scbar .scbar_hot { display: none; }
#scbar_btn, .scbar_btn a {
  background: var(--fsh-primary) !important;
  border-color: var(--fsh-primary) !important;
  color: #fff !important;
  border-radius: 18px !important;
}

/* ---------- 内容区块卡片化（白卡 + 奶油描边） ---------- */
.bm {
  background: var(--fsh-card) !important;
  border: 1px solid var(--fsh-line) !important;
  border-radius: var(--fsh-radius) !important;
  box-shadow: var(--fsh-shadow) !important;
  margin-bottom: 14px;
  overflow: hidden;
}
.bm_c, .bm_h { border-color: var(--fsh-line) !important; }
.bm_h {
  background: #fffdf9 !important;
  border-bottom: 1px solid var(--fsh-line) !important;
  font-size: 15px;
  color: var(--fsh-text) !important;
  padding: 12px 16px;
}
.bm_h h2, .bm_h h1 { color: var(--fsh-text); font-weight: 700; }
.bm_h h2::before, .bm_h h1::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--fsh-gold), var(--fsh-primary));
  margin-right: 8px;
  vertical-align: -1px;
}

/* 版块列表行 */
#wp .fl_g, .fl_g { border-color: var(--fsh-line) !important; }
.fl_g dt a, .fl_g .fl_i { color: var(--fsh-text); }
#threadlisttableid tbody tr:hover { background: #fbf5ec; }
th, .th { background: var(--fsh-bg) !important; color: var(--fsh-text-sub) !important; border-bottom: 1px solid var(--fsh-line) !important; }

/* ---------- 按钮统一：砖红主按钮（对齐官网主 CTA） ---------- */
.pn, .pnc, .pnpc, .pn.vm, .btn, button.pn {
  background: var(--fsh-primary) !important;
  border-color: var(--fsh-primary) !important;
  color: #FFFFFF !important;
  border-radius: var(--fsh-radius-sm) !important;
  transition: background-color .18s ease;
}
.pn:hover, .pnc:hover, button.pn:hover {
  background: var(--fsh-primary-dark) !important;
  border-color: var(--fsh-primary-dark) !important;
}
/* 次要按钮保持浅底 */
.pn.plain, .pn.gray, #modmenu .pn { background: var(--fsh-primary-soft) !important; color: var(--fsh-primary) !important; border-color: var(--fsh-primary-soft) !important; }

/* 分页 */
.pg a, .pg strong {
  border-radius: 6px !important;
  border-color: var(--fsh-line) !important;
}
.pg strong, .pg a:hover { background: var(--fsh-primary) !important; border-color: var(--fsh-primary) !important; color: #fff !important; }

/* ---------- 页脚 ---------- */
#ft {
  background: transparent !important;
  border-top: none !important;
  color: var(--fsh-text-mute) !important;
  padding: 18px 0 24px;
}
#ft a { color: var(--fsh-text-sub) !important; }
#ft a:hover { color: var(--fsh-primary) !important; }
#ft strong a { color: var(--fsh-text) !important; }

/* 回到顶部按钮 */
#scrolltop a { border-radius: var(--fsh-radius-sm); }
#scrolltop .scrolltopa b { background: var(--fsh-gold); }

/* 发帖 / 回复按钮强调 */
#newspecial, #newspecialmm {
  background: var(--fsh-primary) !important;
  border-radius: var(--fsh-radius-sm) !important;
  color: #fff !important;
  border: none !important;
}
#newspecial:hover, #newspecialmm:hover { background: var(--fsh-primary-dark) !important; }

/* 表格 / 帖子列表里的小标签 */
.xs1, .xg1 { color: var(--fsh-text-mute) !important; }
.xg2 { color: var(--fsh-text-sub) !important; }

/* 弹层与提示 */
.p_pop, .tip, .alert_right, .alert_info {
  border-radius: var(--fsh-radius-sm);
  border-color: var(--fsh-line);
}

/* ---------- 内容区强调链接统一品牌色（原 #369 蓝） ---------- */
.bm_h a, .bm_h h1 a, .bm_h h2 a,
.fl_g dt a, .fl_g .fl_title,
#threadlist a.s, #threadlist a.xst,
.pbn a, .ntc_l a, .nts a,
a.xi1 { color: var(--fsh-primary) !important; }
.bm_h a:hover, .fl_g dt a:hover, #threadlist a.xst:hover { color: var(--fsh-primary-dark) !important; }

/* 快捷导航小按钮 */
#qmenu { font-size: 12px; font-weight: 700; color: var(--fsh-gold-light) !important; }
#qmenu_menu { border-radius: var(--fsh-radius-sm); }

/* 头部右上登录/注册链接 */
#hd .fastlg_fm a, #hd a[href*="register"], #hd a[href*="lostpasswd"] { color: var(--fsh-primary) !important; }

/* 面包屑 */
#nv_ .nvhm, #pt a { color: var(--fsh-text-sub) !important; }
#pt a:hover { color: var(--fsh-primary) !important; }

/* 帖子列表分类 tab（原蓝色块）：金边 + 砖红字 */
.ttp li a { background: #FFFFFF !important; border-color: var(--fsh-line) !important; color: var(--fsh-text-sub) !important; }
.ttp li.a, .ttp li.a a, .ttp li.xw1.a a {
  background: var(--fsh-primary-soft) !important;
  color: var(--fsh-primary) !important;
  border-color: var(--fsh-gold) !important;
  font-weight: 700;
}
.ttp li.a a { border-bottom-color: var(--fsh-primary-soft) !important; }

/* 统计条（今日/昨日/帖子/会员）：奶油浅底 */
#chart, .chart, #online { color: var(--fsh-text-sub) !important; }
#chart em, .chart em { color: var(--fsh-primary) !important; }

/* 帖子列表缩略图/版块图标圆角 */
.fl_g .fl_icn_g img, .fl_icn img, #threadlist .authicn img { border-radius: 8px; }

/* ---------- 品牌页脚（照搬 8083 官网底部，CTA 条用头部同款深红棕） ---------- */
.fsh-cta {
  background: linear-gradient(135deg, #6e2a12 0%, #5a2413 55%, #431b0c 100%);
  color: #fff;
  margin-top: 26px;
  border-bottom: 2px solid rgba(201, 162, 90, 0.45);
}
.fsh-cta-in {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 0;
  min-width: 1200px;
  box-sizing: border-box;
}
.fsh-cta-t { flex: 1; min-width: 420px; }
.fsh-cta-t b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.fsh-cta-t span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--fsh-gold-light);
  letter-spacing: 1px;
}
.fsh-cta-tel {
  color: #fff !important;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.fsh-cta-tel::before { content: '☎'; margin-right: 8px; opacity: 0.9; }
.fsh-cta-btn {
  background: #fff;
  color: var(--fsh-primary) !important;
  font-weight: 800;
  font-size: 14px;
  height: 44px;
  line-height: 44px;
  padding: 0 28px;
  border-radius: 22px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background .18s ease;
}
.fsh-cta-btn:hover { background: #fdf6ec; }

.fsh-footer { background: #191614; color: #a8a29e; }
.fsh-ft-in {
  display: flex;
  gap: 44px;
  padding: 40px 0 32px;
  min-width: 1200px;
  box-sizing: border-box;
}
.fsh-ft-brand { width: 330px; flex-shrink: 0; }
.fsh-ft-brand .fsh-ft-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 14px;
  text-decoration: none;
}
.fsh-ft-brand .fsh-ft-logo img { width: 34px; height: 34px; object-fit: contain; }
.fsh-ft-brand .fsh-ft-logo b { color: var(--fsh-primary); font-size: 16px; letter-spacing: 1px; }
.fsh-ft-brand .fsh-ft-desc {
  font-size: 13px;
  line-height: 1.9;
  color: #a8a29e;
  margin: 14px 0;
}
.fsh-ft-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fsh-ft-tags span {
  border: 1px solid #3f3a36;
  color: #d6d3d1;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 14px;
}
.fsh-ft-col { flex: 1; min-width: 150px; }
.fsh-ft-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 4px 0 18px;
}
.fsh-ft-col ul { list-style: none; margin: 0; padding: 0; }
.fsh-ft-col li { margin-bottom: 11px; }
.fsh-ft-col a { color: #a8a29e !important; text-decoration: none; font-size: 13px; }
.fsh-ft-col a:hover { color: var(--fsh-gold-light) !important; }
.fsh-ft-contact .tel {
  color: #fff !important;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}
.fsh-ft-contact .hot { font-size: 12px; color: #78716c; margin: 8px 0 16px; }
.fsh-ft-contact p { font-size: 13px; color: #a8a29e; line-height: 2; margin: 0; }
.fsh-ft-bar {
  border-top: 1px solid #2e2a27;
  padding: 16px 0;
  font-size: 12px;
  color: #78716c;
}
.fsh-ft-bar-in { min-width: 1200px; box-sizing: border-box; }
.fsh-ft-bar a { color: #a8a29e !important; text-decoration: none; }
.fsh-ft-bar a:hover { color: var(--fsh-gold-light) !important; }

/* ---------- 发帖按钮（.pgsbtn）：砖红渐变胶囊 ---------- */
a.pgsbtn, #k_misign_btn, .pgs .pgsbtn {
  display: inline-block;
  background: linear-gradient(135deg, #c9501f, #b8431e);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  height: 38px;
  line-height: 38px;
  padding: 0 26px;
  border-radius: 19px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(184, 67, 30, 0.32);
  border: none;
  transition: background .18s ease, box-shadow .18s ease;
}
a.pgsbtn:hover, .pgs .pgsbtn:hover {
  background: #9a3617;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(184, 67, 30, 0.4);
}
/* 「返回」等次要按钮：奶油描边幽灵款 */
.pgb a {
  background: #fff;
  color: var(--fsh-brown) !important;
  border: 1px solid var(--fsh-cream-border);
  border-radius: 19px;
  height: 38px;
  line-height: 36px;
  padding: 0 20px;
  text-decoration: none;
}
.pgb a:hover {
  border-color: var(--fsh-gold);
  color: var(--fsh-primary) !important;
}
/* 发帖弹出的版块选择菜单 */
.p_pop {
  border: 1px solid var(--fsh-cream-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 28px rgba(90, 36, 19, 0.16) !important;
}
.p_pop a { color: var(--fsh-brown) !important; }
.p_pop a:hover { background: #faf6f1 !important; color: var(--fsh-primary) !important; }
