/* ============ 基础重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f4f5f7;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #e4393c; }
ul, ol { list-style: none; }
img { max-width: 100%; vertical-align: middle; border: 0; }
input, select, textarea, button { font-family: inherit; font-size: inherit; outline: none; }
.container { width: 1200px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* 工具类 */
.text-red { color: #e4393c !important; }
.text-gray { color: #999 !important; }
.text-mid { color: #666; }
.price { color: #ff5c00; font-weight: 700; }
.tag {
  display: inline-block; padding: 1px 6px; margin: 0 4px 4px 0;
  font-size: 12px; color: #e4393c; border: 1px solid #ffd1d1; background: #fff; border-radius: 3px;
}
.tag-blue { color: #0a90d2; border-color: #bfe0f5; }

/* ============ Header ============ */
.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 90; }
.header-inner { display: flex; align-items: center; padding: 12px 0; }
.logo { display: flex; align-items: center; }
.logo-icon {
  width: 40px; height: 40px; line-height: 40px; text-align: center;
  background: linear-gradient(135deg,#e4393c,#ff7a3d); color: #fff;
  font-size: 22px; font-weight: 800; border-radius: 10px; margin-right: 8px;
}
.logo-text { font-size: 22px; font-weight: 800; color: #e4393c; line-height: 1.1; }
.logo-text em { display: block; font-size: 11px; font-style: normal; font-weight: 400; color: #888; letter-spacing: 2px; }

.header-search { flex: 1; max-width: 480px; margin: 0 24px; display: flex; border: 2px solid #e4393c; border-radius: 22px; overflow: hidden; background: #fff; }
.header-search input { flex: 1; border: 0; padding: 9px 16px; font-size: 14px; background: transparent; }
.header-search button { border: 0; background: #e4393c; color: #fff; padding: 0 24px; cursor: pointer; font-size: 14px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.btn-release {
  background: linear-gradient(135deg,#ff5c1a,#e4393c); color: #fff !important;
  padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; box-shadow: 0 2px 6px rgba(228,57,60,.3);
}
.btn-release .ic { font-size: 18px; margin-right: 4px; font-weight: 800; }
.btn-release:hover { filter: brightness(1.08); color: #fff; }

.login-box { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.login-box i { width: 1px; height: 14px; background: #ddd; }
.login-box a { color: #555; }
.login-box a:hover { color: #e4393c; }

.user-mini { position: relative; margin-left: 28px; }
.avatar-link { display: flex; align-items: center; gap: 6px; }
.avatar-mini {
  width: 34px; height: 34px; border-radius: 50%; line-height: 34px; text-align: center;
  background: #e8b04b; color: #fff; font-weight: 700; font-size: 16px; overflow: hidden;
}
.avatar-mini img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.uname { color: #555; font-size: 14px; }
.user-drop {
  position: absolute; right: 0; top: 100%; background: #fff; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); min-width: 140px; padding: 6px; display: none;
}
.user-mini:hover .user-drop { display: block; }
.user-drop a { display: block; padding: 8px 14px; border-radius: 6px; color: #555; }
.user-drop a:hover { background: #f5f5f5; color: #e4393c; }

.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 3px; background: #333; border-radius: 2px; }

/* ============ 主导航 ============ */
.main-nav { background: #e4393c; }
.nav-inner { display: flex; align-items: center; }
.nav-item {
  color: #fff; padding: 13px 24px; font-size: 16px; font-weight: 500;
  position: relative; display: block;
}
.nav-item:hover { background: rgba(0,0,0,.15); color: #fff; }
.nav-item.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  border: 6px solid transparent; border-bottom-color: #f4f5f7;
}
.admin-link { margin-left: auto; opacity: .9; font-size: 13px; }
.nav-search-m { display: none; }

/* ============ Main wrap ============ */
.main-wrap { padding: 16px 0 40px; min-height: 60vh; }

/* 面包屑 */
.crumb { padding: 12px 0; color: #888; }
.crumb a { color: #888; }
.crumb a:hover { color: #e4393c; }
.crumb .sep { margin: 0 6px; }

/* 板块页底/页脚 */
.site-footer { background: #2a2a2e; color: #bbb; margin-top: 20px; }
.footer-top { display: flex; justify-content: space-between; padding: 34px 0 20px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-col a, .footer-col p { display: block; color: #999; margin-bottom: 8px; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { background: #222226; padding: 14px 0; font-size: 12px; color: #666; }
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: #999; margin: 0 4px; }

/* ============ 面板通用 ============ */
.panel { background: #fff; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.panel-hd {
  padding: 14px 18px; border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
}
.panel-hd h3 { font-size: 17px; font-weight: 700; border-left: 4px solid #e4393c; padding-left: 10px; }
.panel-hd .more { font-size: 13px; color: #888; }
.panel-hd .more:hover { color: #e4393c; }
.panel-bd { padding: 16px 18px; }

/* 空状态 */
.empty { text-align: center; color: #aaa; padding: 50px 0; }
.empty .e-icon { font-size: 46px; margin-bottom: 8px; }

/* ============ 卡片信息列表(通用) ============ */
.info-list .info-item {
  display: flex; padding: 16px; border-bottom: 1px solid #f3f3f3; gap: 16px;
  transition: background .2s;
}
.info-list .info-item:hover { background: #fafafa; }
.info-cover {
  width: 160px; height: 110px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  background: #eee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect width='60' height='60' fill='%23e8e8e8'/%3E%3Ctext x='30' y='36' fill='%23aaa' font-size='18' text-anchor='middle'%3E图%3C/text%3E%3C/svg%3E") no-repeat center/40%;
}
.info-cover img { width: 100%; height: 100%; object-fit: cover; }
.info-item-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.info-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.info-title a:hover { color: #e4393c; }
.info-tagrow { margin-bottom: 6px; }
.info-desc { color: #888; font-size: 13px; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-meta { color: #aaa; font-size: 12px; display: flex; align-items: center; gap: 14px; margin-top: auto; }
.info-price-side { text-align: right; display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0; min-width: 90px; }
.info-price-side .price { font-size: 20px; }
.info-meta .tag { margin: 0; }

/* ============ 分页 ============ */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 20px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 7px 13px; background: #fff; border: 1px solid #e4e4e4; border-radius: 4px; color: #555; font-size: 14px;
}
.pagination a:hover { border-color: #e4393c; color: #e4393c; }
.pagination .cur { background: #e4393c; border-color: #e4393c; color: #fff; }
.pagination .disabled { color: #bbb; }

/* 响应式断点 */
@media (max-width: 1240px){
  .container { width: auto; margin: 0 14px; }
}
