/* 定价页对比表（templates/_plan_compare.html）。styles.css 是裁剪过的 Tailwind 产物且不重新构建，
   sticky、border-collapse、table-fixed 等都不存在，所以单独放在这里；选择器全部以 .plan-compare 开头 */

.plan-compare {
  max-width: 1100px;
  margin: 64px auto 0;
  scroll-margin-top: 16px;
}
.plan-compare h2 {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
}
.plan-compare .pc-sub {
  text-align: center;
  color: #d1d5db;
  font-size: 15px;
  margin: 0 0 28px;
}
.plan-compare .pc-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.plan-compare .pc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}
.plan-compare .pc-table th,
.plan-compare .pc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #374151;
  vertical-align: middle;
}
.plan-compare thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #111827;
  font-size: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #374151;
}
.plan-compare thead th.pc-feat {
  text-align: left;
  color: #9ca3af;
  font-weight: 600;
}
.plan-compare thead th.pc-plan {
  text-align: center;
  width: 19%;
}
.plan-compare thead small {
  display: block;
  font-weight: 400;
  color: #9ca3af;
  font-size: 13px;
}
.plan-compare .pc-hl {
  background: rgba(45, 106, 224, 0.12);
}
.plan-compare thead th.pc-hl {
  background: #16264a;
}
.plan-compare .pc-pop {
  display: inline-block;
  background: #ffa11b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: 2px;
}
.plan-compare tbody th {
  text-align: left;
  font-weight: 500;
  color: #e5e7eb;
}
.plan-compare tbody th a {
  border-bottom: 1px dotted #6b7280;
}
.plan-compare tbody th a:hover {
  color: #60a5fa;
}
.plan-compare .pc-cost {
  display: block;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 400;
}
.plan-compare tbody td {
  text-align: center;
  color: #e5e7eb;
}
.plan-compare .pc-note {
  display: block;
  font-size: 12px;
  color: #9ca3af;
}
.plan-compare .pc-ico {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  color: #2d6ae0;
}
.plan-compare .pc-ico.pc-no {
  color: #dc2626;
}
.plan-compare tr.pc-group th {
  background: #1f2937;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 0;
}
.plan-compare tr.pc-group th span {
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
  color: #9ca3af;
  font-weight: 400;
}
.plan-compare .pc-foot {
  color: #d1d5db;
  font-size: 14px;
  text-align: center;
  margin: 16px 0 0;
}

/* 手机端：同一张表压缩为 4 列，不横向滚动（清单 Q14-1 版本 A） */
@media (max-width: 767px) {
  .plan-compare {
    margin-top: 48px;
  }
  .plan-compare h2 {
    font-size: 24px;
  }
  .plan-compare .pc-table {
    font-size: 13px;
    table-layout: fixed;
  }
  .plan-compare .pc-table th,
  .plan-compare .pc-table td {
    padding: 9px 4px;
    overflow-wrap: anywhere;
  }
  .plan-compare thead th {
    font-size: 13px;
    padding: 10px 2px;
  }
  .plan-compare thead th.pc-feat {
    width: 40%;
    padding-left: 6px;
  }
  .plan-compare thead th.pc-plan {
    width: 20%;
  }
  .plan-compare thead small {
    font-size: 11px;
  }
  .plan-compare .pc-pop {
    display: none;
  }
  .plan-compare tbody th {
    padding-left: 6px;
    font-size: 13px;
  }
  .plan-compare .pc-cost {
    font-size: 11px;
  }
  .plan-compare tbody td {
    font-size: 12px;
  }
  .plan-compare .pc-note {
    font-size: 10px;
  }
  .plan-compare tr.pc-group th {
    font-size: 11px;
    padding: 8px 6px;
  }
  .plan-compare tr.pc-group th span {
    display: block;
    margin: 2px 0 0;
  }
  .plan-compare .pc-ico {
    width: 18px;
    height: 18px;
  }
}
