/* ============================================
   甲壳虫 - 价格页（topwms 布局 + 品牌风格）
   ============================================ */

/* 顶部 Banner：与打单一致；顶栏高 68px，不依赖全局 CSS 变量 */
.price-hero {
  position: relative;
  padding: 156px 0 88px;
  background: #fff;
  overflow: hidden;
}

.price-hero__bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center 56px;
  background-size: cover;
  pointer-events: none;
}

.price-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
}

.price-hero__title {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 700;
  color: #1b1b1c;
  letter-spacing: -.3px;
  line-height: 1.35;
}

.price-hero__note {
  margin: 0;
  font-size: 14px;
  color: #7e8795;
  line-height: 1.8;
}

/* 表格区：叠在 Banner 下方白底 */
.price-section {
  position: relative;
  z-index: 2;
  margin-top: -24px;
  padding: 0 0 72px;
  background: #fff;
}

.price-table-shell {
  border-radius: 14px;
  border: 1px solid #e8e8e8;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 27, 61, .08);
  overflow: visible;
}

.price-table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.price-col-highlight {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  border: 2px solid #2969ff;
  border-radius: 10px;
  background: transparent;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity .2s ease, left .2s ease, top .2s ease, width .2s ease, height .2s ease;
}

.price-col-highlight::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 8px;
  right: 8px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(95deg, #108bff 0%, #2969ff 100%);
}

.price-col-highlight.is-visible {
  opacity: 1;
}

.price-col-highlight.is-default {
  border-width: 2px;
  border-color: #2969ff;
  box-shadow: 0 8px 28px rgba(41, 105, 255, .18);
}

.price-table {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.price-table col.col-label { width: 22%; }
.price-table col.col-plan { width: 39%; }

.price-table--cols-3 col.col-label { width: 20%; }
.price-table--cols-3 col.col-plan { width: 20%; }

.price-table--cols-4 col.col-label { width: 18%; }
.price-table--cols-4 col.col-plan { width: 20.5%; }

.price-table th,
.price-table td {
  border: 1px solid #ebebeb;
  vertical-align: middle;
}

/* 表头：左说明 + 右四列价卡（topwms 堆叠结构） */
.price-table thead th {
  padding: 0;
  vertical-align: top;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.price-table thead .th-rights {
  padding: 24px 18px;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}

.th-rights-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1b1b1c;
  margin-bottom: 8px;
}

.th-rights-note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #7e8795;
  line-height: 1.65;
}

.th-rights-note + .th-rights-note {
  margin-top: 2px;
}

.plan-col {
  background: #f5f5f5;
  font-weight: normal;
}

.plan-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 12px 20px;
  text-align: center;
}

.plan-name {
  font-size: 17px;
  font-weight: 700;
  color: #1b1b1c;
  letter-spacing: .2px;
}

.plan-capacity {
  font-size: 15px;
  font-weight: 600;
  color: #1b1b1c;
  margin-top: 4px;
}

.plan-price {
  font-size: 28px;
  font-weight: 700;
  color: #ff4d4f;
  line-height: 1.2;
  margin-top: 2px;
}

.plan-validity {
  font-size: 13px;
  color: #7e8795;
}

.plan-unit {
  font-size: 13px;
  color: #7e8795;
  min-height: 20px;
}

.plan-unit.is-dash {
  color: #a0a8b4;
}

/* 功能对比区 */
.price-table tbody th,
.price-table tbody td {
  padding: 14px 12px;
  font-size: 14px;
  color: #4a4a4d;
  text-align: center;
  transition: background-color .2s ease;
}

.price-table tbody th.col-feature {
  text-align: left;
  font-weight: 500;
  color: #1b1b1c;
  background: #fafafa;
  padding-left: 18px;
}

.price-table tbody tr.row-feature-start th,
.price-table tbody tr.row-feature-start td {
  border-top: 2px solid #e8e8e8;
}

.price-table.is-col-2 thead th:nth-child(2),
.price-table.is-col-3 thead th:nth-child(3),
.price-table.is-col-4 thead th:nth-child(4),
.price-table.is-col-5 thead th:nth-child(5) {
  background: #fff;
}

.price-table.is-col-2 tbody td:nth-child(2),
.price-table.is-col-3 tbody td:nth-child(3),
.price-table.is-col-4 tbody td:nth-child(4),
.price-table.is-col-5 tbody td:nth-child(5) {
  background: #fff;
}

.price-table.is-col-2 .plan-col--entry .price-btn,
.price-table.is-col-2 thead th:nth-child(2) .price-btn,
.price-table.is-col-3 .plan-col--entry .price-btn,
.price-table.is-col-3 thead th:nth-child(3) .price-btn {
  background: #2969ff;
  color: #fff;
  box-shadow: 0 4px 16px rgba(41, 105, 255, .28);
}

.price-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  margin-top: 8px;
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #2969ff;
  border: 1px solid #2969ff;
  background: #fff;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.price-btn:hover {
  background: #2969ff;
  color: #fff;
  box-shadow: 0 4px 16px rgba(41, 105, 255, .28);
}

.price-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #52c41a;
}

.price-check svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .price-hero {
    padding: 124px 0 52px;
  }

  .price-hero__bg {
    background-position: center 36px;
  }

  .price-hero__title {
    font-size: 24px;
  }

  .price-section {
    margin-top: -12px;
    padding-bottom: 48px;
  }

  .price-table-shell {
    border-radius: 10px;
  }

  .plan-price {
    font-size: 22px;
  }

  .plan-card-head {
    padding: 16px 8px 14px;
  }

  .price-btn {
    min-width: 92px;
    padding: 7px 14px;
    font-size: 13px;
  }
}
