/*=============================================
  yklunli.top — Modern Dark Theme v2.0
  基于 Bootstrap 3 定制
=============================================*/

/* ===== 变量/基础 ===== */
body, button, dd, div, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, html, img, input, li, ol, p, select, span, sub, sup, table, td, textarea, th, ul {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
body {
  color: #e0e0e0;
  background-color: #0d0d0d;
  background-image: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
}
a { color: #ccc; text-decoration: none; transition: color 0.2s; }
a:hover { color: #f5c518; text-decoration: none; }
a:focus { outline: 0; color: #f5c518; }

/* ===== 导航栏 ===== */
.nav-feifei {
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  border-bottom: 1px solid #222;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  position: sticky; top: 0; z-index: 100;
}
.nav-bar {
  display: flex; align-items: center;
  height: 50px;
  gap: 8px;
  padding: 0 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.nav-bar::-webkit-scrollbar { height: 0; }
.nav-bar .ff-goback {
  color: #888; font-size: 1.1em; padding: 0 2px;
  flex-shrink: 0;
}
.nav-bar .ff-goback:hover { color: #f5c518; }
.nav-bar .nav-logo {
  display: flex; align-items: center; gap: 5px;
  color: #f5c518; font-size: 1.1em; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
  padding: 0 4px;
}
.nav-logo-icon { font-size: 1.2em; }
.nav-logo-text { letter-spacing: 0.5px; }
.nav-bar .nav-link {
  color: #aaa; font-size: 0.88em;
  padding: 4px 10px; border-radius: 14px;
  white-space: nowrap; flex-shrink: 0;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.nav-bar .nav-link:hover,
.nav-bar .nav-link.active {
  color: #f5c518;
  background: rgba(245,197,24,0.08);
  border-color: rgba(245,197,24,0.25);
}
.nav-bar .nav-search {
  display: flex; align-items: center;
  margin-left: auto; flex-shrink: 0;
  position: relative;
}
.nav-search-input {
  width: 140px; height: 32px;
  background: #1a1a1a; border: 1px solid #333;
  color: #ccc; font-size: 0.82em;
  border-radius: 16px; padding: 0 35px 0 12px;
  outline: none; transition: all 0.3s;
}
.nav-search-input:focus {
  width: 190px; background: #222;
  border-color: #f5c518;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(245,197,24,0.12);
}
.nav-search-input::placeholder { color: #666; }
.nav-search-btn {
  position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: #888; padding: 6px 8px;
  cursor: pointer; font-size: 0.85em;
  border-radius: 50%;
}
.nav-search-btn:hover { color: #f5c518; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  color: #ccc; font-size: 1.3em;
  padding: 4px 8px; flex-shrink: 0;
}
.nav-toggle:hover { color: #f5c518; }

/* 移动端展开菜单 */
.nav-mobile {
  background: #111;
  border-bottom: 1px solid #222;
  padding: 8px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.nav-mobile li {
  list-style: none;
  padding: 10px 8px;
  border-bottom: 1px solid #1a1a1a;
}
.nav-mobile li:last-child { border-bottom: none; }
.nav-mobile li a {
  color: #ccc; font-size: 1em; display: block;
}
.nav-mobile li a:hover { color: #f5c518; }
.nav-mobile-search { padding-top: 10px; }

/* 响应式 */
@media (max-width: 767px) {
  .nav-bar .nav-link { display: none; }
  .nav-bar .nav-toggle { display: block; }
  .nav-bar .nav-search { display: none; }
}

/* 旧样式兼容（如果有其他引用） */
.nav-feifei :focus { outline: 0; }
.nav-feifei-toggle { display: none; }
.nav-feifei-collapse { display: none; }
.nav-gallery { padding: 10px 0 10px 5px; overflow: hidden; }
.nav-gallery li { font-size: 1.1em; float: left; min-width: 60px; text-align: center; }
.nav-gallery li a { color: #f5c518; }
.nav-gallery li.active a { color: #fff; font-weight: 600; }

/* ===== 自动完成 ===== */
.autocomplete-suggestions {
  font-size: 0.8em;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #ccc;
  cursor: default;
  overflow: auto;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.autocomplete-suggestion { padding: 6px 8px; white-space: nowrap; overflow: hidden; }
.autocomplete-no-suggestion { padding: 4px 8px; color: #666; }
.autocomplete-selected { background: rgba(245,197,24,0.1); }
.autocomplete-suggestions strong { font-weight: bold; color: #f5c518; }

/* ===== 焦点图 ===== */
.ff-slide { margin: 5px 0; border-radius: 8px; overflow: hidden; }
.ff-slide .carousel-inner .item img { min-height: 160px; max-height: 230px; object-fit: cover; }

/* ===== 容器通用 ===== */
.ff-bg {
  background: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 2px;
}
.container.ff-bg {
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ===== 标题 ===== */
.page-header {
  border-bottom: 1px solid #2a2a2a;
  margin: 5px 0 15px 0;
}
.page-header h2 {
  margin-top: 0;
  font-size: 1.15em;
  position: relative;
  color: #e8e8e8;
  padding-bottom: 8px;
}
.page-header h2 .glyphicon { color: #f5c518; margin-right: 4px; }
.page-header h2 a { color: #e8e8e8; }
.page-header h2 a:hover { color: #f5c518; }
.page-header h2 small { color: #888; }
.page-header h2 .pull-right a { font-size: 0.85em; }

/* ===== 视频列表 ===== */
.vod-item-ol { color: #f5c518; padding-left: 35px; }
.vod-item-ol li { padding: 0 0 12px 0; }
.vod-item-ol li strong { color: #f5c518; font-size: 1.1em; font-weight: normal; }

.vod-item-img { position: relative; margin-left: -5px; margin-right: -5px; }
.vod-item-img li { padding-left: 5px; padding-right: 5px; margin-bottom: 10px; }
.vod-item-img li p { margin: 0; padding: 0; }
.vod-item-img li .image {
  position: relative; overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.vod-item-img li:hover .image {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245,197,24,0.15);
}
.vod-item-img li .image .continu {
  position: absolute;
  bottom: 6px; right: 8px;
  color: #fff;
  z-index: 2;
  font-size: 0.75em;
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 3px;
}
.vod-item-img li .image i {
  position: absolute;
  top: 0; left: 0;
  display: block;
  width: 100%; height: 100%;
}
.vod-item-img li .image .ff-img { z-index: 1; width: 100%; object-fit: cover; }
.vod-item-img li .image a:hover .playbg {
  z-index: 3;
  background: rgba(0,0,0,0.25);
  opacity: 1;
}
.vod-item-img li .image a:hover .playbtn {
  z-index: 4;
  background: rgba(245,197,24,0.8) url(Images/v_playBtn.png) center center no-repeat;
  background-size: 40%;
  border-radius: 50%;
  width: 44px; height: 44px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0.95;
}
.vod-item-img li h2 {
  margin: 0;
  font-size: 0.95em;
  overflow: hidden;
  padding: 6px 2px 0px 2px;
}
.vod-item-img li h2 a { color: #e0e0e0; }
.vod-item-img li h2 a:hover { color: #f5c518; }
.vod-item-img li h4 {
  margin: 0;
  font-size: 0.8em;
  overflow: hidden;
  padding: 2px;
}
.vod-item-img li h4 a { color: #888; }
.vod-item-img li h4 a:hover { color: #aaa; }

/* ===== 图片尺寸 ===== */
.ff-img-90 .ff-img { height: 90px; object-fit: cover; border-radius: 4px; }
.ff-img-90 h4 { height: 36px; line-height: 1.4em; }
.ff-img-140 .ff-img { height: 140px; object-fit: cover; border-radius: 4px; }
.ff-img-140 h4 { margin-bottom: 5px; }

/* ===== 首页 ===== */
.index ul.vod-type { padding: 8px 0; overflow: hidden; }
.index ul.vod-type li { padding-top: 5px; }
.index ul.vod-type li .btn-default {
  background: #252525;
  color: #aaa;
  border: 1px solid #333;
  border-radius: 18px;
  font-size: 0.85em;
  transition: all 0.2s;
}
.index ul.vod-type li .btn-default:hover {
  background: #f5c518;
  color: #000;
  border-color: #f5c518;
}

/* ===== 频道页 ===== */
.vod-channel .type-all { margin-top: 0; border: none; }
.vod-channel .type-all a { display: block; }
.vod-channel .type-more { overflow: hidden; margin: 5px 0; }

/* ===== 分类筛选 ===== */
.vod-type .container { position: relative; }
.vod-type .dl-fixed { width: 100%; }
.vod-type .dl-fixed.fixed {
  padding-left: 5px; padding-right: 5px; padding-top: 5px;
  margin-left: -5px;
  position: fixed; top: 0;
  background: #1a1a1a;
  z-index: 9;
}
.vod-type dl dt { width: auto; padding: 5px 5px 0 5px; text-align: left; float: left; display: none; }
.vod-type dl dd { margin-bottom: 10px; }
.vod-type dl .gallery-cell {
  font-size: 0.9em; margin-right: 10px;
  border: 1px solid #333;
  padding: 4px 12px;
  border-radius: 18px;
  color: #aaa;
  transition: all 0.2s;
  background: #222;
}
.vod-type dl .gallery-cell:hover, .vod-type dl .gallery-cell.active {
  background: #f5c518;
  color: #000;
  border-color: #f5c518;
}

/* ===== 视频详情 ===== */
.vod-detail-inc { position: relative; }
.vod-detail-inc .media-left { margin-right: 10px; }
.vod-detail-inc .media-left .ff-img {
  width: 130px; height: 170px;
  object-fit: cover;
  border-radius: 6px;
}
.vod-detail-inc .media-body { position: relative; color: #ccc; }
.vod-detail-inc .media-body h2 { font-size: 1.25em; margin-bottom: 4px; }
.vod-detail-inc .media-body h2 a { color: #f5c518; }
.vod-detail-inc .media-body dt { color: #888; }
.vod-detail-inc .media-body dd { color: #ccc; }
.vod-detail-inc .dd-more { position: absolute; left: 195px; bottom: 3px; }

/* dl-horizontal PC对齐 */
.vod-detail-inc .dl-horizontal dt {
  float: left;
  width: 50px;
  overflow: hidden;
  clear: left;
  text-align: left;
  padding: 2px 0;
  color: #888;
}
.vod-detail-inc .dl-horizontal dd {
  margin-left: 55px;
  padding: 2px 0;
  color: #ccc;
}
@media (max-width: 767px) {
  .vod-detail-inc .dl-horizontal dt {
    float: none;
    width: auto;
    clear: none;
  }
  .vod-detail-inc .dl-horizontal dd {
    margin-left: 0;
  }
}

/* ===== 播放标签 ===== */
.vod-detail .nav-tabs { border-bottom: 1px solid #333; }
.vod-detail .nav-tabs > li { width: 50%; margin-bottom: -1px; }
.vod-detail .nav-tabs > li > a {
  color: #888;
  margin-right: 0;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  font-size: 1.15em;
  transition: all 0.2s;
}
.vod-detail .nav-tabs > li > a:hover { color: #ccc; background: rgba(255,255,255,0.02); }
.vod-detail .nav-tabs > li.active > a,
.vod-detail .nav-tabs > li.active > a:focus,
.vod-detail .nav-tabs > li.active > a:hover {
  color: #f5c518;
  cursor: default;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-bottom-color: #f5c518;
}
.vod-detail .vod-nav-play { padding-top: 15px; }
.vod-detail .vod-nav-play .page-header h2 { margin-top: 0; }
.vod-detail .vod-nav-content { padding: 10px 0; font-size: 1em; line-height: 2em; color: #bbb; }

/* ===== 视频列表表格 ===== */
.table { background: #1a1a1a; color: #ccc; }
.table-striped > tbody > tr:nth-of-type(odd) { background-color: #1f1f1f; }
.table-bordered { border: 1px solid #333; }
.table-bordered > tbody > tr > td { border: 1px solid #2a2a2a; color: #ccc; }
.table a { color: #ccc; }
.table a:hover { color: #f5c518; }
.table a.text-success, .table span.text-green { color: #4caf50 !important; }

/* ===== 分页 ===== */
.pager li > a {
  background: #222;
  color: #ccc;
  border: 1px solid #333;
  border-radius: 18px;
  padding: 6px 18px;
  transition: all 0.2s;
}
.pager li > a:hover {
  background: #f5c518;
  color: #000;
  border-color: #f5c518;
}

/* ===== 按钮 ===== */
.btn-success {
  background: #f5c518;
  color: #000;
  border: none;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-success:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,197,24,0.3);
}
.btn-default {
  background: #252525;
  color: #aaa;
  border: 1px solid #333;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-default:hover {
  background: #333;
  color: #fff;
  border-color: #555;
}
.btn-link { color: #f5c518; }
.btn-link:hover { color: #ffd700; }
.btn-block { border-radius: 6px; font-weight: 600; font-size: 1.1em; }

/* ===== 页脚 ===== */
.ff-bg.pt-2 {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  color: #666;
  font-size: 0.85em;
  border-top: 1px solid #222;
  margin-top: 10px;
}
.ff-bg.pt-2 p { margin: 3px 0; }

/* ===== 表单 ===== */
.form-control {
  background: #222;
  border: 1px solid #333;
  color: #ccc;
  border-radius: 6px;
}
.form-control:focus {
  background: #2a2a2a;
  border-color: #f5c518;
  box-shadow: 0 0 0 2px rgba(245,197,24,0.15);
  color: #fff;
}
.input-group-addon {
  background: #252525;
  border: 1px solid #333;
  color: #888;
}

/* ===== 搜索 ===== */
.vod-search .page-header small { color: #888; }

/* ===== 下拉菜单 ===== */
.dropdown-menu {
  background: #1f1f1f;
  border: 1px solid #333;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  border-radius: 6px;
}
.dropdown-menu > li > a { color: #ccc; }
.dropdown-menu > li > a:hover {
  background: rgba(245,197,24,0.1);
  color: #f5c518;
}
.dropdown-menu .divider { background-color: #333; }

/* ===== 模态框 ===== */
.modal-content {
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.modal-header {
  border-bottom: 1px solid #333;
  color: #e0e0e0;
}
.modal-footer { border-top: 1px solid #333; }
.close { color: #888; text-shadow: none; opacity: 0.5; }
.close:hover { color: #fff; opacity: 1; }

/* ===== 工具提示 ===== */
.tooltip-inner {
  background: #333;
  color: #ccc;
  border-radius: 4px;
  padding: 6px 12px;
}

/* ===== label/badge ===== */
.label-success {
  background-color: #f5c518;
  color: #000;
}
.badge {
  background: #333;
  color: #888;
}

/* ===== 轮播 ===== */
.carousel-control.left, .carousel-control.right {
  background-image: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.carousel:hover .carousel-control.left,
.carousel:hover .carousel-control.right { opacity: 0.8; }

/* ===== Well ===== */
.well {
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  color: #ccc;
  border-radius: 6px;
}

/* ===== 告警 ===== */
.alert {
  border-radius: 6px;
  border: none;
}
.alert-success { background: #1b3a1b; color: #7ecf7e; }

/* ===== Panel ===== */
.panel {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
}
.panel-heading { border-bottom: 1px solid #2a2a2a; background: #1f1f1f; color: #e0e0e0; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ===== 媒体列表 ===== */
.media { border-bottom: 1px solid #222; }
.media:last-child { border-bottom: none; }
.media-heading { color: #e0e0e0; }
.media-heading a { color: #e0e0e0; }
.media-heading a:hover { color: #f5c518; }
.ff-forum .media { padding: 12px 0; }
.ff-forum .forum-content { color: #bbb; }
.ff-forum .forum-report { color: #555; font-size: 0.8em; }
.ff-forum .forum-report:hover { color: #e74c3c; }

/* ===== 评论按钮 ===== */
.ff-forum .ff-updown-set,
.ff-forum .forum-reply-set,
.ff-forum .forum-reply-get {
  background: transparent;
  border: 1px solid #333;
  color: #888;
  margin-right: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}
.ff-forum .ff-updown-set:hover,
.ff-forum .forum-reply-set:hover,
.ff-forum .forum-reply-get:hover {
  border-color: #f5c518;
  color: #f5c518;
}
.ff-forum .user-name { color: #ccc; }

/* ===== 导航面包屑 ===== */
.breadcrumb {
  background: transparent;
  padding: 8px 0;
  margin-bottom: 0;
  font-size: 0.9em;
}
.breadcrumb > li + li:before { color: #555; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #f5c518; }
.breadcrumb > .active { color: #ccc; }

/* ===== 标签 ===== */
.nav-pills > li > a {
  background: #252525;
  color: #aaa;
  border-radius: 18px;
  margin: 2px;
  transition: all 0.2s;
}
.nav-pills > li > a:hover { background: #333; color: #fff; }
.nav-pills > li.active > a {
  background: #f5c518;
  color: #000;
}
.nav-pills > li.active > a:hover { background: #ffd700; }

/* ===== 响应式小屏 ===== */
@media (max-width: 767px) {
  .vod-item-img li .image .playbtn {
    width: 36px; height: 36px;
    background-size: 35%;
  }
  .ff-img-140 .ff-img { height: 120px; }
  .ff-img-90 .ff-img { height: 72px; }
  .vod-detail-inc .media-left .ff-img { width: 100px; height: 130px; }
}

/* ===== 动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.vod-item-img li { animation: fadeIn 0.4s ease-out; }

/* ===== 论坛相关 ===== */
.forum-detail-news,
.forum-detail-guestbook { display: none; }
.guestbook-channel,
.guestbook-list,
.guestbook-type,
.guestbook-search,
.guestbook-detail,
.guestbook-detial-forum { display: none; }

/* ===== 播放器区域 ===== */
.vod-play .ff-player-tool { overflow: hidden; padding-bottom: 5px; }

/* ===== 评分 ===== */
.vod-detail-pingfen .ff-score dt { display: none; }
.vod-detail-pingfen .ff-score dd {
  text-align: center;
  width: 100%;
  font-size: 1.4em;
  padding: 20px 0 10px 0;
  color: #f5c518;
}
.vod-detail-pingfen .ff-score sup { display: none; }
.vod-detail-pingfen .ff-score sup.ff-score-val {
  font-size: 1.2em;
  display: inline;
  font-weight: bold;
  color: #f5c518;
}

/* ===== text helpers ===== */
.text-green { color: #f5c518 !important; }
.text-muted { color: #888 !important; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-mr-1 { margin-right: 5px; }

/* ===== clearfix ===== */
.mb-1 { margin-bottom: 8px; }
.pt-1 { padding-top: 8px; }
.pb-1 { padding-bottom: 8px; }
.pt-2 { padding-top: 16px; }
.pb-2 { padding-bottom: 16px; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

/* ===== 用户头像 ===== */
.img-circle.user-face {
  width: 40px; height: 40px;
  border: 2px solid #333;
  object-fit: cover;
}

/* ===== Grid fixes ===== */
.ff-row { margin-left: -5px; margin-right: -5px; }
.ff-row > .ff-col { padding-left: 5px; padding-right: 5px; }

/* ===== 站点加载 ===== */
body { padding-bottom: 40px; }
