﻿/* ===================================================
   华哥版本库 - 前台公共样式 site.css
   =================================================== */

/* 整体 */
body { background: #f4f6f9; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }

/* 导航 logo */
.navbar-brand img { max-height: 46px; }
.navbar { background: #fff !important; border-bottom: 2px solid #17a2b8; }
.navbar .nav-link { font-weight: 600; color: #333 !important; transition: color .2s; }
.navbar .nav-link:hover, .navbar .nav-item.active .nav-link { color: #17a2b8 !important; }

/* Banner / Jumbotron */
.site-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f4c75 100%);
  padding: 56px 0 40px;
  color: #fff;
  margin-bottom: 0;
}
.site-banner h1 { font-size: 2rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.site-banner p { color: rgba(255,255,255,.8); font-size: 1rem; }
.site-banner .banner-badge {
  display: inline-block;
  background: rgba(23,162,184,.3);
  border: 1px solid rgba(23,162,184,.6);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  margin-bottom: 12px;
  color: #7dd3fc;
}

/* 公告条 */
.notice-bar {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 8px 16px;
  font-size: 13px;
  color: #856404;
  overflow: hidden;
}
.notice-bar marquee { vertical-align: middle; }

/* 筛选区 */
.filter-section {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.filter-row { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter-row .filter-label { font-size: 13px; color: #666; font-weight: 600; min-width: 56px; }
.filter-btn {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid #dee2e6;
  color: #555;
  background: #f8f9fa;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: #17a2b8; color: #17a2b8; text-decoration: none; background: #e8fafc; }
.filter-btn.active { background: #17a2b8; color: #fff; border-color: #17a2b8; }

/* 搜索框 */
.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.search-bar input { border-radius: 24px; padding-left: 16px; }
.search-bar button { border-radius: 24px; padding: 0 22px; background: #17a2b8; border-color: #17a2b8; }
.search-bar button:hover { background: #138496; border-color: #138496; }

/* 版本行列表 */
.ver-list { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ver-list-header {
  display: grid;
  grid-template-columns: 80px 1fr 100px 200px;
  padding: 10px 16px;
  background: #f0f9fb;
  border-bottom: 2px solid #17a2b8;
  font-size: 13px;
  font-weight: 700;
  color: #17a2b8;
  gap: 12px;
}
.ver-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 200px;
  padding: 12px 16px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.ver-row:hover { background: #f8fdff; }
.ver-row:last-child { border-bottom: none; }

.ver-thumb { width: 72px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid #e0e0e0; }
.ver-thumb-empty {
  width: 72px; height: 52px; border-radius: 6px;
  background: #eef2f5; display: flex; align-items: center; justify-content: center;
  color: #ccc; font-size: 22px;
}

.ver-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2942;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.ver-title:hover { color: #17a2b8; text-decoration: underline; }

.ver-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.badge-engine {
  background: #e3f7fa; color: #0e7490; font-size: 11px;
  padding: 1px 8px; border-radius: 10px; border: 1px solid #bae6fd;
}
.badge-type {
  background: #fef3c7; color: #92400e; font-size: 11px;
  padding: 1px 8px; border-radius: 10px; border: 1px solid #fde68a;
}
.ver-date { font-size: 11px; color: #999; }
.ver-size { font-size: 11px; color: #6b7280; }

.link-site {
  color: #17a2b8; font-size: 13px; font-weight: 600;
  text-decoration: none;
  border: 1px solid #17a2b8;
  padding: 3px 10px; border-radius: 4px;
  display: inline-block;
  transition: all .2s;
}
.link-site:hover { background: #17a2b8; color: #fff; text-decoration: none; }

.ver-row-actions { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.btn-detail {
  font-size: 12px; color: #fff; background: #6c757d;
  padding: 4px 10px; border-radius: 4px; text-decoration: none; display: inline-block;
  transition: background .2s;
}
.btn-detail:hover { background: #5a6268; color: #fff; text-decoration: none; }
.btn-buy img { height: 28px; display: inline-block; }
.btn-buy-qq {
  font-size: 12px; color: #fff; background: #1e88e5;
  padding: 4px 10px; border-radius: 4px; text-decoration: none; display: inline-block;
}

/* 版本卡片（首页网格）*/
.ver-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.ver-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.ver-card-img { width: 100%; height: 130px; object-fit: cover; background: #eef2f5; }
.ver-card-img-empty { width: 100%; height: 130px; background: linear-gradient(135deg,#1e3a5f,#0f4c75); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: 36px; }
.ver-card-body { padding: 12px 14px; }
.ver-card-title { font-size: 13px; font-weight: 700; color: #1a2942; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; text-decoration: none; }
.ver-card-title:hover { color: #17a2b8; }
.ver-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.ver-card-footer { display: flex; justify-content: space-between; align-items: center; }
.ver-card-footer .ver-date { font-size: 11px; color: #aaa; }
.ver-card-footer a { font-size: 12px; color: #17a2b8; text-decoration: none; font-weight: 600; }
.ver-card-footer a:hover { text-decoration: underline; }

/* 详情页 */
.detail-img-main { width: 100%; max-height: 360px; object-fit: contain; background: #f4f6f9; border-radius: 8px; border: 1px solid #e0e0e0; }
.detail-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.detail-thumbs img { width: 70px; height: 52px; object-fit: cover; border-radius: 5px; border: 2px solid transparent; cursor: pointer; }
.detail-thumbs img.active, .detail-thumbs img:hover { border-color: #17a2b8; }
.detail-info h2 { font-size: 1.2rem; font-weight: 700; line-height: 1.5; }
.detail-meta-item { padding: 9px 0; border-bottom: 1px dashed #e8e8e8; font-size: 14px; color: #555; }
.detail-meta-item strong { color: #333; min-width: 72px; display: inline-block; }
.detail-buy-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.detail-buy-btns img { height: 40px; }
.detail-content { margin-top: 20px; }
.detail-content h5 { border-bottom: 3px solid #17a2b8; padding-bottom: 8px; font-size: 1rem; color: #17a2b8; }
.detail-content-body { line-height: 1.9; color: #444; font-size: 14px; }
.detail-content-body img { max-width: 100%; border-radius: 6px; margin: 6px 0; }

/* 引擎分类卡片 */
.engine-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.engine-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 12px 14px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
  transition: all .2s;
  border: 2px solid transparent;
  color: #333;
}
.engine-card:hover, .engine-card.active {
  border-color: #17a2b8;
  color: #17a2b8;
  box-shadow: 0 4px 14px rgba(23,162,184,.15);
  text-decoration: none;
}
.engine-card-count { font-size: 1.5rem; font-weight: 800; color: #17a2b8; display: block; margin-bottom: 4px; }
.engine-card-name { font-size: 13px; font-weight: 600; }

/* 开区网站卡片 */
.site-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: all .2s;
  border-left: 4px solid #17a2b8;
}
.site-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.site-card h5 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #1a2942; }
.site-card .site-url { font-size: 12px; color: #17a2b8; word-break: break-all; }
.site-card .site-desc { font-size: 13px; color: #666; margin: 8px 0; }
.site-status-on { color: #10b981; font-size: 12px; }
.site-status-off { color: #aaa; font-size: 12px; }

/* 分页 */
.pagination .page-link { color: #17a2b8; font-size: 13px; border-radius: 5px !important; margin: 0 2px; }
.pagination .page-item.active .page-link { background: #17a2b8; border-color: #17a2b8; color: #fff; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: #aaa; }
.empty-state i { font-size: 48px; margin-bottom: 14px; display: block; }
.empty-state p { font-size: 15px; }

/* 统计条 */
.stats-bar {
  display: flex; gap: 20px; flex-wrap: wrap; padding: 14px 20px;
  background: linear-gradient(90deg,#0f172a,#1e3a5f);
  border-radius: 10px;
  margin-bottom: 20px;
}
.stats-item { text-align: center; }
.stats-item .num { font-size: 1.6rem; font-weight: 800; color: #38bdf8; line-height: 1; }
.stats-item .label { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 3px; }

/* 脚步 */
.site-footer {
  background: #fff;
  border-top: 1px solid #e9ecef;
  padding: 16px 0 8px;
  margin-top: 32px;
  text-align: center;
  color: #999;
  font-size: 12px;
}
.site-footer a { color: #17a2b8; }

/* 在线客服 */
.online-service {
  position: fixed;
  right: 18px;
  bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.online-btn {
  background: #17a2b8;
  color: #fff;
  border-radius: 50%;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 3px 12px rgba(23,162,184,.5);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.online-btn:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(23,162,184,.6); color: #fff; text-decoration: none; }
.online-btn.qq-btn { background: #1d72f3; box-shadow: 0 3px 12px rgba(29,114,243,.5); }
.online-btn.top-btn { background: #6c757d; box-shadow: 0 3px 12px rgba(108,117,125,.3); font-size: 18px; }

/* 响应式 */
@media(max-width: 767px) {
  .ver-list-header { display: none; }
  .ver-row {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }
  .ver-row-site { display: none; }
  .ver-row-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .site-banner h1 { font-size: 1.4rem; }
  .stats-bar { gap: 12px; }
  .engine-cards { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
}
