/* 业务页通用 + 列表/详情（产品交易保留） */

/* ========== 门户业务页 ========== */
.page-banner {
  background: linear-gradient(105deg, #10337d 0%, #0d5aa7 55%, #0094e7 100%);
  color: #fff;
  padding: 36px 0 32px;
}
.page-banner.light {
  background: #fff;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}
.page-banner h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
}
.page-banner p {
  margin: 0;
  max-width: 640px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.7;
}
.page-banner.light p {
  color: var(--c-text-2);
}

.section {
  padding: 40px 0;
}
.section-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
}
.section-desc {
  margin: 0 0 24px;
  color: var(--c-text-3);
  font-size: 14px;
}
.section-dark {
  background: var(--c-dark);
  color: #e5e7eb;
  padding: 48px 0;
}
.section-dark .section-title {
  color: #fff;
}
.section-dark .section-desc {
  color: #9ca3af;
}
.section-soft {
  background: var(--c-brand-soft);
}

/* 流程步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}
.step-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 20px 16px;
  position: relative;
  box-shadow: var(--shadow);
}
.step-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-brand);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.step-item h4 {
  margin: 0 0 8px;
  font-size: 15px;
}
.step-item p {
  margin: 0;
  font-size: 12px;
  color: var(--c-text-2);
  line-height: 1.65;
}

/* 案例卡 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.case-card .tag-line {
  font-size: 12px;
  color: var(--c-brand);
  margin-bottom: 8px;
}
.case-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}
.case-card p {
  margin: 0;
  font-size: 12px;
  color: var(--c-text-2);
  line-height: 1.65;
}

/* 功能/优势列表 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 20px 16px;
}
.feature-item h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--c-text);
}
.feature-item p {
  margin: 0;
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.65;
}

/* 深色数据块 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat-item {
  text-align: center;
  padding: 16px 8px;
  border: 1px solid #1f2937;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}
.stat-item strong {
  display: block;
  font-size: 26px;
  color: #93c5fd;
  margin-bottom: 4px;
}
.stat-item span {
  font-size: 12px;
  color: #9ca3af;
}

/* 业务页表单 */
.lead-form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 24px;
  max-width: 560px;
  box-shadow: var(--shadow);
}
.lead-form h3 {
  margin: 0 0 16px;
  font-size: 18px;
}
.lead-form .form-hint {
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 10px;
}

/* 两栏内容 */
.content-2col {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: start;
}

/* 价格/套餐卡 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.pricing-card.featured {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 1px var(--c-brand);
}
.pricing-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.pricing-card .fee {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-brand);
  margin: 12px 0;
}
.pricing-card .fee small {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text-3);
}
.pricing-card ul {
  margin: 0 0 18px;
  padding: 0;
}
.pricing-card li {
  font-size: 13px;
  color: var(--c-text-2);
  padding: 6px 0;
  border-bottom: 1px solid var(--c-border-2);
}

/* ========== 列表 / 搜索 / 详情（产品交易） ========== */
.list-layout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.list-side {
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--c-border);
}
.list-side h3 {
  margin: 0;
  padding: 12px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
}
.list-side a {
  display: block;
  padding: 8px 14px;
  border-bottom: 1px solid var(--c-border-2);
  color: var(--c-text-2);
  font-size: 12px;
}
.list-side a:hover,
.list-side a.active {
  color: var(--c-brand);
  background: var(--c-brand-soft);
}
.list-main {
  flex: 1;
  min-width: 0;
}
.filter-bar {
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.filter-bar .label {
  color: var(--c-text-3);
}
.filter-bar .result-count {
  margin-left: auto;
  color: var(--c-text-2);
}
.filter-bar .result-count em {
  color: var(--c-brand);
  font-style: normal;
  font-weight: 700;
}

.product-table .model a {
  color: var(--c-link);
  font-weight: 600;
}
.product-table .ops {
  display: flex;
  gap: 6px;
}

.detail-top {
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 20px;
  display: flex;
  gap: 28px;
}
.detail-gallery {
  width: 360px;
  flex-shrink: 0;
}
.detail-gallery .big {
  height: 320px;
  border: 1px solid var(--c-border);
  background: linear-gradient(145deg, #fafafa, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-gallery .big .chip-lg {
  width: 140px;
  height: 90px;
  background: linear-gradient(135deg, #0b1220, #1e3a5f);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.detail-info {
  flex: 1;
  min-width: 0;
}
.detail-info h1 {
  margin: 0 0 8px;
  font-size: 20px;
}
.detail-price-box {
  background: #fffaf5;
  border: 1px solid #ffe0c2;
  padding: 14px 16px;
  margin: 12px 0;
  border-radius: var(--radius);
}
.detail-price-box .price strong {
  font-size: 26px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.product-card:hover {
  border-color: var(--c-brand);
  box-shadow: var(--shadow);
}
.product-card .thumb {
  height: 140px;
  background: #f7f8fa;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.product-card .thumb.has-img img {
  max-height: 100%;
  object-fit: contain;
}
.product-card .thumb .chip {
  width: 72px;
  height: 48px;
  background: linear-gradient(135deg, #1e3a5f, #3b82c4);
  border-radius: 3px;
}
.product-card .model {
  font-weight: 600;
  font-size: 13px;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .meta {
  font-size: 12px;
  color: var(--c-text-3);
  margin: 4px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-card .stock {
  font-size: 11px;
  color: var(--c-success);
}
.product-card .stock.out {
  color: var(--c-text-3);
}

.auth-card {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  margin: 0 0 20px;
  font-size: 20px;
  text-align: center;
}

@media (max-width: 992px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-grid,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-2col {
    grid-template-columns: 1fr;
  }
  .list-layout {
    flex-direction: column;
  }
  .list-side {
    width: 100%;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-top {
    flex-direction: column;
  }
  .detail-gallery {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .steps,
  .case-grid,
  .feature-grid,
  .pricing-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .page-banner h1 {
    font-size: 22px;
  }
}


/* ===== 商品列表卡片增强 ===== */
.product-grid, .mall-product-grid, .cate-main .product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
a.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  height: 100%;
}
a.product-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}
a.product-card .thumb,
a.product-card .thumb.has-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #f4f7fb, #e9eef5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
a.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}
a.product-card:hover .thumb img { transform: scale(1.04); }
a.product-card .thumb .chip {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(59,130,246,.12);
}
a.product-card .model {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
  padding: 12px 12px 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
a.product-card .meta {
  font-size: 12px;
  color: #94a3b8;
  padding: 0 12px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.product-card .foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 12px 14px;
  gap: 8px;
}
a.product-card .price,
a.product-card .foot .price,
a.product-card .foot b,
a.product-card .foot .p {
  color: #ea580c;
  font-size: 18px;
  font-weight: 700;
}
a.product-card .stock {
  font-size: 12px;
  color: #16a34a;
  white-space: nowrap;
}
a.product-card .stock.out { color: #94a3b8; }

/* 分类页布局微调 */
.cate-layout { align-items: start; }
.cate-side {
  position: sticky; top: 12px;
  border-radius: 8px !important;
  overflow: hidden;
}
.cate-main {
  border-radius: 8px !important;
  padding: 16px !important;
  min-height: 480px;
}
.cate-main .hd h1 { font-size: 18px; font-weight: 700; }

/* 破图兜底：显示渐变占位 */
a.product-card .thumb img[src=""],
a.product-card .thumb img:not([src]) {
  display: none;
}
