/* ============================================================
 * 靴下小屋皮肤补丁
 * ============================================================ */

/* ===== 发新帖按钮 =====
   旧皮肤的 .showmenu 用 background 简写（只带 arrwd.gif 箭头）
   把 .pgsbtn 的蓝色底重置成了透明，这里把底色与箭头一起补回来 */
.pgsbtn {
    background-color: #2B7ACD;
    color: #FFF;
}

.pgsbtn.showmenu,
#newspecial,
#newspecialtmp {
    background: #2B7ACD url(../image/common/arrwd.gif) no-repeat 100% 50%;
    color: #FFF;
    padding: 10px 22px 10px 16px;
    border-radius: 3px;
}

.pgsbtn.showmenu:hover,
#newspecial:hover,
#newspecialtmp:hover {
    background-color: #005AB4;
}

/* ===== 搜索按钮 =====
   旧皮肤把放大镜画在 .scbar_btn_td 的单元格背景上，X3.5 默认又用
   dzicon 字体图标在 #scbar_btn:before 上画了一个，导致出现两个放大镜。
   这里去掉单元格背景，只保留按钮上的那个图标 */
.scbar_btn_td {
    background: none !important;
}

#scbar_btn {
    background: #2B7ACD;
    width: 28px;
    height: 28px;
    margin: 0 0 0 8px;
    padding: 0;
    border: 0;
    box-shadow: none;
}

#scbar_btn::before {
    content: "\f101";
    font-family: dzicon;
    font-size: 18px;
    line-height: 28px;
    color: #FFF;
}

/* 旧皮肤用这行把「搜索」两个字顶出可视区，保留 */
#scbar_btn strong {
    line-height: 84px;
}

/* ===== 用户名前的图标 =====
   旧皮肤用 user_online.gif 做背景图，X3.5 默认又用 dzicon 字体图标
   画了一个（.vwmy:before），两个图标会叠在一起。这里只保留字体图标 */
#um .vwmy {
    background: none;
    padding-left: 0;
}

/* ===== 下拉箭头去重 =====
   原站皮肤用 arrwd.gif / qmenu.png 画箭头，X3.5 默认又用 CSS 三角
   （.showmenu::after、#qmenu::after）画一个，所以会看到两个箭头。
   这里去掉 CSS 三角，只保留原站图片箭头 */
.showmenu::after,
#qmenu::after {
    content: none;
    border: 0;
}

/* ===== 返回顶部放到页面右侧 =====
   默认让它跟着 JS 计算的 left 走，窗口宽度不足时会飘到左边 */
#scrolltop {
    left: auto !important;
    right: 24px;
}


/* ===== 统计行 =====
   旧皮肤里 .chart 同时被「辩论柱状图」和「今日/昨日统计」复用，
   前者把宽高写死成 279×78 并带背景图，导致统计行多出一个图标、
   行高也不对。这里把统计行恢复成单行 + 一个图标 */
#chart .chart {
    position: static;
    margin: 0;
    width: auto;
    height: auto;
    padding-left: 22px;
    background: url(../image/common/chart.png) no-repeat 0 50%;
}

/* ===== 图标去重（续） =====
   X3.5 默认给这些元素加了 dzicon 字体图标，原站皮肤又用背景图，
   同一个位置会出现两个图标。统一保留原站图片，去掉字体图标 */
.notice:before,
.oshr:before,
.tbms:before,
.god:before,
#scrolltop a:before,
.p_right:after {
    content: none;
}

/* ===== 导航项颜色（还原原站：最新合集/同人导航 青色，改名/招募 橙色） ===== */
#nv ul li:nth-child(2) a {
    color: #0FF;
    font-weight: bold;
}

#nv ul li:nth-child(3) a {
    color: #0FF;
}

#nv ul li:nth-child(4) a {
    color: #FFA500;
}

#nv ul li:nth-child(5) a {
    color: #FFA500;
    font-weight: bold;
}

/* ===== 版块两列排列 =====
   原站版块图标是 210×90 的横幅图，而 X3.2 的 .fl_icn_g 是按 31×31 小图标写的
   （宽 31、dl 只让开 31px），两列排列时大图会压到版块名/统计上。
   这里按 210px 的横幅尺寸重新排版 */
.fl_tb .fl_g {
    vertical-align: top;
}

.fl_tb .fl_icn_g {
    float: left;
    width: 210px;
    height: 90px;
    overflow: hidden;
}

.fl_tb .fl_icn_g img {
    display: block;
    width: 210px;
    height: 90px;
    object-fit: cover;
}

.fl_tb .fl_g dl {
    margin-left: 210px;
    padding-left: 10px;
    min-height: 90px;
}

.fl_tb .fl_g dl dd {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 统计行第二个图标 =====
   页面级 CSS（style_1_forum_index.css / style_1_module.css）给 .chart 加了
   dzicon 字体图标 .chart:before，和原站背景图 chart.png 重复，去掉字体图标 */
.chart::before {
    content: none !important;
}

/* ===== 关闭宽屏，恢复 960 定宽 =====
   X3.5 的 widthauto.css 给 #wp、#hd .wp 强加了 min-width:1200px，
   而原站皮肤是 960 定宽（nv.png 也只有 960 宽），
   导航条会在 960 处出现接缝、右边一截是纯色。这里把最小宽度去掉 */
#wp,
#hd .wp {
    min-width: 0 !important;
}

#wp {
    width: 960px;
    margin: 0 auto;
}

body {
    min-width: 960px;
}






/* ===== 用户组权限对比页 =====
   模板已改成一张三列表（标签 / 我的组 / 对方组），天然逐行对齐 */
.percmp .tdat {
    width: 100%;
}

.percmp .tdat th,
.percmp .tdat td {
    height: 28px;
    padding: 4px 6px;
    vertical-align: middle;
}

.percmp .tdat th {
    height: 44px;
}

.percmp .tdat .h th {
    height: 26px;
}

.percmp .tdat th:first-child,
.percmp .tdat td:first-child {
    width: 160px;
}

.percmp .tdat td:first-child {
    color: #444;
}
/* ===== 版块简介（两列网格里的说明文字） =====
   简介是一整段文字，不限制会撑破 49.9% 的单元格 */
.fl_g dl dd.xg2 {
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
    margin: 4px 0 0;
    max-height: 4.6em;
    overflow: hidden;
}
/* ===== 搜索框：占位提示用 placeholder，文字消失 ===== */
#scbar_txt {
    height: 18px;
    padding: 5px 6px;
    line-height: 18px;
    border: 1px solid #FFF;
    background: transparent;
}

#scbar_txt::placeholder {
    color: #999;
}

/* ===== 返回顶部：只保留箭头图标，隐藏按钮里的文字 ===== */
#scrolltop a b {
    display: none;
}
/* fix: default rule is #scrolltop a.scrolltopa:before (higher specificity), override it */
#scrolltop a.scrolltopa:before,
#scrolltop a.replyfast:before {
    content: none !important;
}
