/* ==========================================================================
   flexslider 核心样式（补抓取时缺失的部分）
   背景：复刻 bjyczj.com 时只抓到 jquery.flexslider-min.js，没抓到 flexslider.css，
        导致 .slides li 定位失效、banner 背景图不显示（PC 和手机端都白屏）。
   依据 flexslider 官方 flexslider.css 精简，只保留本站在用的必要规则。
   ========================================================================== */

/* flexslider 容器 */
.banner.flexslider {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.banner .slides {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.banner .slides > li {
    -webkit-backface-visibility: hidden;
    display: none;
}
.banner .slides img {
    width: 100%;
    display: block;
}
/* 第一个 slide 默认显示 */
.banner .slides > li:first-child {
    display: block;
}
/* flexslider 初始化后由 JS 加上 flex-active-slide 的 slide 保持可见 */
.banner .slides > li.flex-active-slide {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* 视口 */
.banner .flex-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    z-index: 10;
}

/* 方向导航按钮 */
.banner .flex-direction-nav a {
    display: block;
    position: absolute;
    top: 50%;
    margin-top: -20px;
    width: 40px;
    height: 40px;
    text-indent: -9999px;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity .3s ease;
}
.banner .flex-direction-nav a.flex-prev {
    left: 10px;
}
.banner .flex-direction-nav a.flex-next {
    right: 10px;
}
.banner:hover .flex-direction-nav .flex-prev {
    opacity: 1;
    left: 10px;
}
.banner:hover .flex-direction-nav .flex-next {
    opacity: 1;
    right: 10px;
}

/* 控制圆点 */
.banner .flex-control-nav {
    position: absolute;
    bottom: -40px;
    z-index: 20;
    text-align: center;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    left: 0;
}
.banner .flex-control-nav li {
    display: inline-block;
    margin: 0 3px;
    zoom: 1;
}
.banner .flex-control-nav li a {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bbb;
    cursor: pointer;
    text-indent: -9999px;
}
.banner .flex-control-nav li a.flex-active {
    background: #bf0908;
}
.banner .flex-control-nav li a:hover {
    background: #bf0908;
}

/* ==========================================================================
   flexslider 静态兜底（本站 flexslider JS 未能初始化成 .flex-viewport 结构，
   li 的内联样式已写好 float+margin-right:-100% 的层叠，这里用纯 CSS 兜住）
   ========================================================================== */
.banner .slides {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 450px !important;
    overflow: hidden;
}
.banner .slides > li {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 450px !important;
    float: none !important;
    margin-right: 0 !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity .6s ease;
    z-index: 1 !important;
}
/* 第一张默认显示 */
.banner .slides > li:first-child,
.banner .slides > li.flex-active-slide {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
}
