/* ==========================================================================
   折云网络 · 官网「最新活动」页产品展示区
   配合 newestactivity.html 中新增的 {php} 数据块使用。
   配色沿用官网主题变量：--Original(主色) / --txtcl(标题色) / --radius(圆角)
   ========================================================================== */

.actpro-section {
  padding: 8px 0 52px;
}

/* ---------- 区块标题 ---------- */
.actpro-section .actpro-head {
  text-align: center;
  margin-bottom: 34px;
}

.actpro-section .actpro-title {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--txtcl, #181818);
  letter-spacing: 0.5px;
}

.actpro-section .actpro-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--Original, #0052d9);
}

.actpro-section .actpro-sub {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #8a94a6;
}

/* ---------- 分组面板 ---------- */
.actpro-section .actpro-group {
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  padding: 24px 26px 26px;
  margin-bottom: 22px;
  box-shadow: 0 2px 16px rgba(16, 42, 90, 0.06);
}

.actpro-section .actpro-group-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f3f8;
}

.actpro-section .actpro-group-name {
  position: relative;
  padding-left: 14px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--txtcl, #181818);
}

.actpro-section .actpro-group-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--Original, #0052d9);
}

/* 分组角标，取自后台「分类页设置 → 标签」 */
.actpro-section .actpro-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6a3d, #ff2626);
  box-shadow: 0 2px 8px rgba(255, 38, 38, 0.28);
}

.actpro-section .actpro-headline {
  font-size: 13px;
  color: #8a94a6;
}

/* ---------- 产品卡片 ---------- */
/* 固定 3 列：各分组的卡片宽度一致，3 个产品的分组刚好铺满一行 */
.actpro-section .actpro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .actpro-section .actpro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.actpro-section .actpro-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid #eaeff6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcff, #fff);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.actpro-section .actpro-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 82, 217, 0.35);
  box-shadow: 0 10px 24px rgba(0, 82, 217, 0.12);
}

.actpro-section .actpro-name {
  margin-bottom: 12px;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--txtcl, #181818);
}

/* 规格小标签 */
.actpro-section .actpro-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.actpro-section .actpro-spec {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #eef2f8;
  border-radius: 6px;
  background: #f4f7fc;
  font-size: 12px;
  line-height: 1.5;
  color: #5b6678;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 价格 + 按钮 */
.actpro-section .actpro-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed #eef1f6;
}

.actpro-section .actpro-price {
  display: flex;
  align-items: baseline;
  color: #ff2626;
  font-weight: 800;
}

.actpro-section .actpro-cur {
  font-size: 14px;
  margin-right: 1px;
}

.actpro-section .actpro-num {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.5px;
}

.actpro-section .actpro-unit {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #98a2b3;
}

.actpro-section .actpro-ask {
  font-size: 16px;
  font-weight: 700;
  color: #98a2b3;
}

.actpro-section .actpro-btn {
  flex: 0 0 auto;
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--Original, #0052d9);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 82, 217, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.actpro-section .actpro-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(0, 82, 217, 0.3);
}

.actpro-section .actpro-btn.is-disabled {
  background: #c9d1de;
  box-shadow: none;
  cursor: not-allowed;
}

/* 售罄 */
.actpro-section .actpro-card.is-soldout {
  opacity: 0.68;
}

.actpro-section .actpro-card.is-soldout:hover {
  transform: none;
  border-color: #eaeff6;
  box-shadow: none;
}

/* 底部说明 */
.actpro-section .actpro-note {
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: #9aa4b5;
}

/* ---------- 手机端 ---------- */
@media (max-width: 768px) {
  .actpro-section {
    padding: 4px 0 34px;
  }

  .actpro-section .actpro-head {
    margin-bottom: 22px;
  }

  .actpro-section .actpro-title {
    font-size: 21px;
  }

  .actpro-section .actpro-sub {
    font-size: 13px;
    margin-top: 10px;
  }

  .actpro-section .actpro-group {
    padding: 18px 16px 20px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .actpro-section .actpro-group-head {
    padding-bottom: 13px;
    margin-bottom: 16px;
  }

  .actpro-section .actpro-group-name {
    font-size: 16px;
  }

  .actpro-section .actpro-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .actpro-section .actpro-name {
    min-height: 0;
    font-size: 14.5px;
  }

  .actpro-section .actpro-spec {
    font-size: 11.5px;
  }

  .actpro-section .actpro-num {
    font-size: 21px;
  }
}

/* 超窄屏：价格与按钮换行 */
@media (max-width: 360px) {
  .actpro-section .actpro-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .actpro-section .actpro-btn {
    text-align: center;
  }
}
