/* bbzsh.css - 1:1 仿 bbzsh.com 源站样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: #333; text-decoration: none; }
a:hover { color: #4a8b3a; }
img { max-width: 100%; }

/* === 顶部细栏 === */
.top-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #666;
}
.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-greet b { color: #4a8b3a; }
.top-bar-links a {
  margin-left: 16px;
  color: #666;
  font-size: 12px;
}
.top-bar-links a:hover { color: #4a8b3a; }

/* === 主导航 === */
.main-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}
.main-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
}
.brand-icon {
  font-size: 36px;
  color: #4a8b3a;
  line-height: 1;
}
.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: #4a8b3a;
  line-height: 1.1;
}
.brand-sub {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}
.main-nav {
  display: flex;
  gap: 12px;
}
.main-nav-item {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #4a8b3a;
  border-radius: 4px;
  color: #4a8b3a;
  font-size: 14px;
  transition: all 0.15s;
}
.main-nav-item:hover {
  background: #4a8b3a;
  color: #fff;
  text-decoration: none;
}
.main-nav-item.active {
  color: #333;
  border-color: transparent;
  font-weight: 600;
  position: relative;
}
.main-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -17px; left: 0; right: 0;
  height: 2px;
  background: #4a8b3a;
}
.main-nav-item.active:hover {
  background: transparent;
  color: #333;
}

/* === 搜索栏 === */
.search-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 18px 0;
}
.search-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-label {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  flex-shrink: 0;
}
.search-form {
  flex: 1;
  display: flex;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  max-width: 600px;
}
.search-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  color: #333;
  outline: 0;
}
.search-input::placeholder { color: #b0b0b0; }
.search-btn {
  background: #4a8b3a;
  color: #fff;
  border: 0;
  padding: 0 28px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-btn:hover { background: #3d7a30; }

/* === Container === */
.container {
  max-width: 1400px;
  margin: 16px auto;
  padding: 0 20px;
}

/* === 高级筛选 === */
.filter-bar {
  background: #fff;
  border-radius: 6px;
  padding: 14px 20px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  align-items: center;
}
.filter-label {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 6px;
}
.filter-btn {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  padding: 4px 14px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  transition: all 0.15s;
  height: 26px;
}
.filter-btn:hover {
  border-color: #4a8b3a;
  color: #4a8b3a;
}

/* === 排序区 === */
.sort-bar {
  background: #fff;
  border-radius: 6px;
  padding: 0 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  flex-wrap: wrap;
  gap: 12px;
}
.sort-tabs { display: flex; gap: 6px; padding: 8px 0; }
.sort-tab {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 14px;
  font-size: 13px;
  color: #333;
  position: relative;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.sort-tab:hover { background: #f5f5f5; }
.sort-tab.active {
  background: #4a8b3a;
  color: #fff;
  font-weight: 600;
}
.sort-tab-special { padding-right: 32px; }
.sort-tab-badge {
  position: absolute;
  top: -6px; right: 4px;
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 6px 6px 6px 0;
  font-weight: 600;
  line-height: 1.2;
}

.sort-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.sort-item a {
  display: inline-block;
  padding: 4px 10px;
  color: #333;
  font-size: 13px;
  border-radius: 3px;
}
.sort-item a:hover { background: #f5f5f5; }
.sort-item.active a { color: #4a8b3a; font-weight: 600; }
.sort-arrow { color: #999; font-size: 11px; margin-left: 2px; }
.sort-item.active .sort-arrow { color: #4a8b3a; }

.sort-check { padding: 4px 10px; }
.sort-check label { font-size: 12px; color: #666; cursor: pointer; }
.sort-check input { vertical-align: middle; margin-right: 4px; accent-color: #4a8b3a; }

/* === tips === */
.tips-bar {
  background: #fff8e1;
  border: 1px solid #ffe58f;
  border-radius: 4px;
  padding: 8px 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #996300;
}
.tips-icon { margin-right: 6px; }

/* === 表格 === */
.table-wrap {
  background: #fff;
  border-radius: 6px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.goods-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 1600px;
}
.goods-table thead th {
  background: #3a3a3a;
  color: #fff;
  padding: 10px 8px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.goods-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goods-table tbody tr:nth-child(even) { background: #fafafa; }
.goods-table tbody tr:hover { background: #f0f7ed; }
.goods-table tbody tr:last-child td { border-bottom: 0; }

.col-id { min-width: 90px; }
.col-id b { color: #333; font-weight: 600; }
.col-beizhu { max-width: 140px; }
.col-action { width: 60px; text-align: center; }

.moon-icon { color: #4a8b3a; margin-right: 2px; }
.badge-special {
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 600;
}

/* === 标签 === */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}
/* 区服 */
.sv-qq { background: #e8f5ed; color: #2d5a3d; border: 1px solid #b8e0c5; }
.sv-wechat { background: #e8f5ed; color: #07c160; border: 1px solid #b8e0c5; }
/* 登录方式 */
.lg-pwd { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.lg-scan { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
/* 安全箱 */
.bx-top { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; }
.bx-high { background: #fff7e6; color: #d46b08; border: 1px solid #ffd591; }
.bx-low { background: #f5f5f5; color: #666; border: 1px solid #d9d9d9; }
/* 段位 */
.dw-diamond { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; font-weight: 600; }
.dw-gold-peak { background: #fffbe6; color: #d48806; border: 1px solid #ffe58f; font-weight: 600; }
.dw-gold { background: #fff7e6; color: #d46b08; border: 1px solid #ffd591; font-weight: 600; }
.dw-platinum { background: #f0f5ff; color: #2f54eb; border: 1px solid #adc6ff; }
.dw-silver { background: #f5f5f5; color: #595959; border: 1px solid #d9d9d9; }
.dw-blackeagle { background: #262626; color: #f5f5f5; border: 1px solid #434343; font-weight: 600; }
.dw-default { background: #fafafa; color: #666; border: 1px solid #e8e8e8; }

/* 数字/价格 */
.bili { color: #333; font-weight: 600; }
.price { color: #ff4d4f; font-weight: 700; font-size: 14px; }
.deposit { color: #fa8c16; font-weight: 600; }

/* 操作按钮 */
.btn-order {
  display: inline-block;
  background: #4a8b3a;
  color: #fff;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-order:hover { background: #3d7a30; color: #fff; text-decoration: none; }

.empty-cell { text-align: center; padding: 60px 0 !important; color: #999; }

/* === 分页 === */
.pager {
  margin: 16px 0;
  text-align: center;
}
.pager-btn {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 2px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  font-size: 12px;
  color: #333;
}
.pager-btn:hover { border-color: #4a8b3a; color: #4a8b3a; }
.pager-btn.active {
  background: #4a8b3a;
  color: #fff;
  border-color: #4a8b3a;
}
.pager-info { margin-left: 12px; color: #999; font-size: 12px; }

/* === Footer === */
.site-footer {
  background: #2a2a2a;
  color: #b0b0b0;
  margin-top: 40px;
  font-size: 12px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h3 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-col p { margin: 6px 0; color: #b0b0b0; }
.footer-col a { color: #b0b0b0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #3a3a3a;
  font-size: 12px;
  color: #888;
}
.footer-bottom a { color: #888; margin-left: 12px; }

/* === 客服浮窗 === */
.chat-float {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 100;
}
.chat-float a {
  display: block;
  width: 56px;
  height: 56px;
  background: #4a8b3a;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  padding-top: 8px;
  box-shadow: 0 4px 12px rgba(74,139,58,0.3);
  transition: all 0.2s;
}
.chat-float a:hover {
  background: #3d7a30;
  color: #fff;
  transform: scale(1.05);
  text-decoration: none;
}

/* === 响应式 === */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .main-nav { flex-wrap: wrap; }
  .filter-bar { padding: 12px; }
}
