* { box-sizing: border-box; }
html, body { margin: 0; background: #f5f6f8; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; color: #1f2430; }

.site-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 48px; }

/* 顶部栏 */
.site-header {
  background: #fff; border-bottom: 1px solid #eef0f4; position: sticky; top: 0; z-index: 20;
}
.site-header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 16px; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #1e3a8a; }
.site-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.site-nav { display: flex; gap: 6px; align-items: center; }

/* 轮播 */
.site-banner { margin: 16px 0; border-radius: 12px; overflow: hidden; }
.site-banner img { width: 100%; height: 240px; object-fit: cover; display: block; }
.site-banner .no-banner {
  height: 200px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #0ea5e9 100%);
}

/* 公告 */
.site-marquee {
  display: flex; align-items: center; gap: 8px; background: #fff7ed; color: #c2410c;
  border: 1px solid #fed7aa; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 16px;
}
.site-marquee .tag { flex: none; font-weight: 700; }

/* 区块标题 */
.section-title { font-size: 16px; font-weight: 700; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: #2563eb; }

/* 分类 */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.cat-tab {
  padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid #e5e7eb; cursor: pointer;
  font-size: 14px; color: #475569; transition: all .2s;
}
.cat-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; }

/* 商品网格 */
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.goods-card { background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.goods-card:hover { box-shadow: 0 8px 24px rgba(30, 58, 138, .12); transform: translateY(-2px); }
.goods-card .thumb { width: 100%; height: 150px; object-fit: cover; background: #eef2f7; display: block; }
.goods-card .thumb-empty { width: 100%; height: 150px; background: linear-gradient(135deg, #dbeafe, #eff6ff); display: flex; align-items: center; justify-content: center; color: #93c5fd; font-size: 30px; }
.goods-card .body { padding: 12px; }
.goods-card .name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-card .sub { font-size: 12px; color: #94a3b8; margin: 4px 0 8px; height: 16px; overflow: hidden; }
.goods-card .price-row { display: flex; align-items: baseline; justify-content: space-between; }
.goods-card .price { color: #dc2626; font-weight: 700; font-size: 18px; }
.goods-card .price small { font-size: 12px; }
.goods-card .origin { color: #cbd5e1; text-decoration: line-through; font-size: 12px; margin-left: 6px; }
.goods-card .sales { font-size: 12px; color: #94a3b8; }

/* 门户 */
.portal-hero { text-align: center; padding: 56px 16px 28px; }
.portal-hero h1 { font-size: 30px; margin: 0 0 10px; color: #0f172a; }
.portal-hero p { color: #64748b; margin: 0; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 12px; }
.club-card {
  background: #fff; border-radius: 14px; padding: 22px; text-align: center; cursor: pointer;
  border: 1px solid #eef0f4; transition: all .2s;
}
.club-card:hover { box-shadow: 0 10px 30px rgba(30, 58, 138, .12); transform: translateY(-3px); border-color: #dbeafe; }
.club-card .logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px; object-fit: cover; background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.club-card .name { font-size: 17px; font-weight: 700; }
.club-card .ver { display: inline-block; margin-top: 8px; font-size: 12px; color: #2563eb; background: #eff6ff; padding: 2px 10px; border-radius: 999px; }

/* 详情 / 表单 */
.panel { background: #fff; border-radius: 12px; padding: 20px; margin-top: 16px; }
.detail-head { display: flex; gap: 20px; flex-wrap: wrap; }
.detail-head img { width: 260px; height: 200px; object-fit: cover; border-radius: 10px; background: #eef2f7; }
.detail-info { flex: 1; min-width: 240px; }
.detail-info h2 { margin: 0 0 8px; }
.detail-price { color: #dc2626; font-size: 26px; font-weight: 700; }
.muted { color: #94a3b8; font-size: 13px; }
.empty { text-align: center; color: #94a3b8; padding: 60px 0; }
.site-footer { text-align: center; color: #94a3b8; font-size: 12px; padding: 24px 0; }
