/* ============ 首页装修样式（仅首页引用） ============ */

/* ---- Hero 大横幅 ---- */
.hero2 {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 76px 0 60px;
  background: linear-gradient(118deg, #052d8f 0%, #1257e0 48%, #2f8bff 100%);
}
.hero2::before, .hero2::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.hero2::before {
  width: 420px; height: 420px;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
}
.hero2::after {
  width: 300px; height: 300px;
  left: -100px; bottom: -140px;
  background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 70%);
}
.hero2 .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero2 .h-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 18px;
}
.hero2 h1 {
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.hero2 h1 .hl {
  background: linear-gradient(90deg, #ffd666, #ffa940);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero2 .h-sub { font-size: 16px; opacity: 0.92; line-height: 1.8; margin-bottom: 26px; }
.hero2 .h-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero2 .btn-main {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 34px;
  background: linear-gradient(90deg, #ffa940, #ffc069);
  color: #fff; font-size: 16px; font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: transform .2s, box-shadow .2s;
}
.hero2 .btn-main:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.22); }
.hero2 .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff; font-size: 16px;
  border-radius: 8px;
  transition: background .2s;
}
.hero2 .btn-ghost:hover { background: rgba(255,255,255,0.12); }
.hero2 .h-stats {
  display: flex; gap: 44px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.hero2 .stat .num { font-size: 26px; font-weight: 800; }
.hero2 .stat .num small { font-size: 13px; font-weight: 400; margin-left: 2px; }
.hero2 .stat .label { font-size: 12px; opacity: 0.82; margin-top: 4px; }

/* Hero 右侧：平台速览卡（静态，源码可见） */
.hero-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 22px 24px;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.hero-card .hc-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero-card .hc-title a { font-size: 12px; font-weight: 400; color: #ffd666; }
.hero-merchant {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.94);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: transform .2s;
}
.hero-merchant:hover { transform: translateX(4px); }
.hero-merchant .hm-logo {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.hero-merchant .hm-name { font-size: 13.5px; font-weight: 700; color: #1f2937; line-height: 1.3; }
.hero-merchant .hm-scope { font-size: 11.5px; color: #6b7280; margin-top: 2px; }
.hero-merchant .hm-go { margin-left: auto; color: #1677ff; font-size: 12px; flex-shrink: 0; }
.hero-card .hc-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.30);
  font-size: 12px; opacity: 0.88; line-height: 1.7;
}

/* ---- 通用区块 ---- */
.h-section { padding: 44px 0; }
.h-section.alt { background: #fff; }
.h-sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.h-sec-head .tt { font-size: 24px; font-weight: 800; color: #1f2937; display: flex; align-items: center; gap: 10px; }
.h-sec-head .tt::before {
  content: '';
  width: 6px; height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, #1677ff, #69b1ff);
}
.h-sec-head .st { font-size: 13px; color: #8c8c8c; margin-top: 8px; }
.h-sec-head .more { font-size: 13.5px; color: #1677ff; flex-shrink: 0; padding-bottom: 4px; }
.h-sec-head .more:hover { text-decoration: underline; }

/* ---- 入驻商家橱窗 ---- */
.merchant-grid2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mcard {
  position: relative;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 24px 22px;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.mcard:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(18,87,224,0.12); border-color: #b8d4ff; }
.mcard::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #1677ff, #69b1ff);
  opacity: 0; transition: opacity .25s;
}
.mcard:hover::after { opacity: 1; }
.mcard .mc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mcard .mc-logo {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.mcard .mc-name { font-size: 16px; font-weight: 800; color: #1f2937; line-height: 1.35; }
.mcard .mc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #16a34a;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 999px; padding: 2px 10px; margin-top: 4px;
}
.mcard .mc-badge i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; display: inline-block;
}
.mcard .mc-scope { font-size: 13px; color: #6b7280; line-height: 1.8; min-height: 44px; }
.mcard .mc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
  font-size: 12.5px;
}
.mcard .mc-goods { color: #8c8c8c; }
.mcard .mc-goods b { color: #1677ff; font-size: 15px; }
.mcard .mc-link { color: #1677ff; font-weight: 600; }
.mcard .mc-ribbon {
  position: absolute; right: -30px; top: 18px;
  transform: rotate(38deg);
  font-size: 10px; letter-spacing: 2px;
  background: linear-gradient(90deg, #ffa940, #ffd666);
  color: #fff; padding: 3px 36px;
}

/* ---- 分类宫格 ---- */
.category-grid2 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat2 {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 22px 10px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.cat2:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,0.08); }
.cat2 .ic {
  width: 54px; height: 54px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.cat2 .nm { font-size: 14px; font-weight: 600; color: #374151; }
.cat2 .ds { font-size: 11.5px; color: #9ca3af; margin-top: 4px; }

/* ---- 商品卡升级 ---- */
.product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card .img-box { aspect-ratio: 1/1; background: #f7f9fc; border-bottom: 1px solid #f0f2f7; }
.product-card .img-box img { transition: transform .35s; }
.product-card:hover .img-box img { transform: scale(1.05); }
.product-card .info { padding: 14px 14px 16px; }
.product-card .name { height: 42px; font-weight: 600; }
.product-card .seller-tag {
  display: inline-flex; align-items: center; gap: 4px;
  max-width: 100%;
  font-size: 11.5px; color: #1257e0;
  background: #eef4ff;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 8px;
}
.product-card .price { font-size: 20px; }

/* ---- 服务保障条 ---- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 24px 22px;
  display: flex; gap: 14px;
  transition: transform .25s, box-shadow .25s;
}
.svc:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.08); }
.svc .ic {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.svc .nm { font-size: 15px; font-weight: 700; color: #1f2937; }
.svc .ds { font-size: 12.5px; color: #8c8c8c; line-height: 1.7; margin-top: 6px; }

/* ---- 品牌墙 ---- */
.brand-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brand-card {
  padding: 20px 12px;
  border: 1px solid #eef1f6;
  box-shadow: none;
}
.brand-card:hover { border-color: #b8d4ff; box-shadow: 0 8px 20px rgba(18,87,224,0.08); }
.brand-card .b-name { color: #374151; }

/* ---- 动效 ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.h-section, .h-section.alt { animation: none; }
.fade-up { animation: fadeUp .5s ease both; }

/* ---- 响应式 ---- */
@media (max-width: 992px) {
  .hero2 .container { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .merchant-grid2 { grid-template-columns: 1fr; }
  .category-grid2 { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}
