@charset "utf-8";
/* ============================================================
   帝国CMS8.0 列表页模板 - 瀑布流列表区样式 (list_board.css)
   风格来源：Hydrogen HTML5 Template (chinaz 演示页)
   配色适配：新邯郸·溯古通今书法站 (主色 #94070a / #7A2930)
   目录：
     1. Banner 区
     2. 瀑布流网格 #fh5co-board (Salvattore 列布局覆盖)
     3. 列表卡片 .item
     4. 滚动入场动画 .animate-box
     5. 分页 .pages
     6. 响应式
============================================================ */

/* ---------- 1. Banner 区 ---------- */
.subbanner-con { width: 100%; overflow: hidden; }
.subbanner-con img { width: 100%; display: block; }

/* ---------- 2. 内容区全宽(无左侧栏)与瀑布流网格 ---------- */
/* 去掉左侧栏目导航后，内容区占满整行(覆盖 style.css 的 .mode01 .rt{margin-left:360px}) */
.mode01 .rt.list-rt-full { margin-left: 0 !important; }
#fh5co-board { position: relative; z-index: 5; margin: 0 -12px; }
/* 每列左右留 12px 内边距 → 卡片之间 24px 间距，且与容器左右边缘对齐 */
#fh5co-board .column { padding: 0 12px; box-sizing: border-box; }
/* 瀑布流列数由 salvattore.css 原生响应式控制：
   ≥851px 4列 / 701-850px 3列 / 451-700px 2列 / ≤450px 1列(手机单列) */

/* ---------- 3. 列表卡片 .item ---------- */
#fh5co-board .item {
    margin: 0 0 24px 0;
    background: #fff;
    border: 1px solid #e8e4de;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .07);
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}
#fh5co-board .item:hover {
    border-color: #d8d2c8;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .12);
    -webkit-transform: translateY(-4px);
    -moz-transform: translateY(-4px);
    transform: translateY(-4px);
}
#fh5co-board .item a { display: block; }
#fh5co-board .item .fh5co-board-img {
    display: block;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    overflow: hidden;
    background: #f2f1f1;          /* 无图时占位底色 */
    min-height: 120px;
    position: relative;
}
#fh5co-board .item .fh5co-board-img img {
    width: 100%;
    display: block;
    -webkit-transition: all .45s ease-in-out;
    -moz-transition: all .45s ease-in-out;
    transition: all .45s ease-in-out;
}
/* ---------- 图片 hover 特效：放大 + 深红蒙层 (已去掉放大镜图标) ---------- */
#fh5co-board .item:hover .fh5co-board-img img {
    -webkit-transform: scale(1.08);
    -moz-transform: scale(1.08);
    transform: scale(1.08);
}
#fh5co-board .item .fh5co-board-img::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(122, 41, 48, .38);
    opacity: 0;
    z-index: 2;
    -webkit-transition: opacity .4s ease;
    -moz-transition: opacity .4s ease;
    transition: opacity .4s ease;
}
#fh5co-board .item:hover .fh5co-board-img::after { opacity: 1; }
/* 描述区 */
#fh5co-board .item .fh5co-desc { padding: 18px 20px 20px; line-height: 24px; }
#fh5co-board .item .fh5co-item-title {
    font-size: 17px;
    line-height: 26px;
    margin: 0 0 10px;
    font-weight: bold;
}
#fh5co-board .item .fh5co-item-title a {
    color: #333;
    -webkit-transition: color .3s ease;
    -moz-transition: color .3s ease;
    transition: color .3s ease;
}
#fh5co-board .item .fh5co-item-title a:hover { color: #94070a; }
#fh5co-board .item .fh5co-item-text {
    font-size: 13px;
    line-height: 22px;
    color: #828282;
    margin: 0 0 14px;
    overflow: hidden;
    /* 摘要最多显示 3 行 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
#fh5co-board .item .fh5co-item-meta {
    border-top: 1px dashed #ece7e1;
    padding-top: 12px;
    font-size: 12px;
    color: #9a958c;
    overflow: hidden;
}
#fh5co-board .item .fh5co-item-views { float: left; }

/* ---------- 点赞按钮 (大拇指 + "点赞"文字 + 淡红背景胶囊) ---------- */
#fh5co-board .item .fh5co-item-like {
    float: right;
    margin-left: 16px;
    padding: 3px 12px 3px 14px;
    border: 1px solid #f0d8d8;
    border-radius: 18px;
    background: #fbecec;
    color: #8a857c;
    font-size: 12px;
    line-height: 18px;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    transition: all .3s ease;
}
#fh5co-board .item .fh5co-item-like:hover {
    border-color: #d9b3b3;
    color: #94070a;
    background: #f7dddd;
}
#fh5co-board .item .fh5co-item-like.liked {
    border-color: #94070a;
    color: #94070a;
    background: #f6d6d6;
}
#fh5co-board .item .fh5co-item-like .fh5co-like-txt {
    font-style: normal;
    margin-right: 5px;
}
#fh5co-board .item .fh5co-item-like .fh5co-like-icon {
    width: 14px; height: 14px;
    vertical-align: -2px;
    fill: currentColor;
}
#fh5co-board .item .fh5co-item-like .fh5co-like-num {
    font-style: normal;
    margin-left: 4px;
    font-size: 12px;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

/* 点赞图标弹跳动画 (来源: chinaz 点赞演示 niceIn) */
.niceIn {
    -webkit-animation: niceIn .8s .2s ease;
    -moz-animation: niceIn .8s .2s ease;
    animation: niceIn .8s .2s ease;
}
@-webkit-keyframes niceIn {
    0% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.5); transform: scale(1.5); }
    70% { -webkit-transform: scale(.8); transform: scale(.8); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes niceIn {
    0% { -webkit-transform: scale(1); -ms-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.5); -ms-transform: scale(1.5); transform: scale(1.5); }
    70% { -webkit-transform: scale(.8); -ms-transform: scale(.8); transform: scale(.8); }
    100% { -webkit-transform: scale(1); -ms-transform: scale(1); transform: scale(1); }
}
/* +1 上浮动画文本 (由JS动态生成) */
.fh5co-num {
    font-weight: bold;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    pointer-events: none;
    text-shadow: 0 0 4px rgba(255,255,255,.6);
}

/* ---------- 4. 滚动入场动画 (html.js 时才隐藏, 无JS不隐藏) ---------- */
.js #fh5co-board .animate-box {
    opacity: 0;
    -webkit-transform: translateY(26px);
    -moz-transform: translateY(26px);
    transform: translateY(26px);
    -webkit-transition: opacity .7s ease, -webkit-transform .7s ease;
    -moz-transition: opacity .7s ease, -moz-transform .7s ease;
    transition: opacity .7s ease, transform .7s ease;
}
.js #fh5co-board .animate-box.fh5co-in {
    opacity: 1;
    -webkit-transform: none;
    -moz-transform: none;
    transform: none;
}

/* ---------- 5. 分页 .pages (兼容帝国CMS [!--show.listpage--] 输出) ---------- */
.pages { text-align: center; margin: 36px 0 10px; padding-top: 6px; }
.pages a,
.pages b,
.pages span {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    padding: 0 10px;
    margin: 4px 4px 0;
    font-size: 14px;
    font-weight: normal;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: #666;
    background: #fff;
    border: 1px solid #e5e2dd;
    border-radius: 4px;
    vertical-align: middle;
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    transition: all .25s ease;
    text-decoration: none;
}
.pages a:hover {
    background: #94070a;
    border-color: #94070a;
    color: #fff;
}
.pages b {                       /* 当前页 */
    background: #94070a;
    border-color: #94070a;
    color: #fff;
}

/* ---------- 6. 移动端适配 ---------- */
@media screen and (max-width: 768px) {
    /* 列表标题在手机上缩小 */
    .articleList01 .listTitle01 { font-size: 20px; padding: 8px 12px; }
    #fh5co-board .item .fh5co-item-title { font-size: 15px; }
    #fh5co-board .item .fh5co-desc { padding: 14px 15px 16px; }
}
@media screen and (max-width: 480px) {
    /* 分页按钮在手机上收紧 */
    .pages a, .pages b, .pages span { min-width: 32px; height: 32px; line-height: 32px; padding: 0 7px; font-size: 13px; margin: 3px 3px 0; }
}
