.membership-page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 90px;
}

.m-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px 28px;
  color: #fff;
  background: linear-gradient(120deg, #0d8068 0%, #0b6d5c 54%, #075246 100%);
  box-shadow: 0 16px 40px rgba(8, 78, 62, 0.16);
}
.m-hero h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
}

.m-plans-tabs {
  display: none;
}
.m-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.m-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2ebf0;
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 10px 26px rgba(35, 64, 77, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}
.m-plan:hover,
.m-plan.is-active {
  border-color: #12a388;
  background: linear-gradient(180deg, #f4fbfa, #ffffff);
  box-shadow: 0 18px 42px rgba(13, 127, 110, 0.15);
  transform: translateY(-3px);
}
.m-plan-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7c25a, #d9951d);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.m-plan-name {
  font-size: 16px;
  font-weight: 800;
  color: #12333f;
}
.m-plan-meta {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 163, 136, 0.1);
  color: #0d7f6c;
  font-size: 12px;
  font-weight: 800;
}
.m-plan-price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.m-plan-price b {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
  color: #12333f;
}
.m-plan-price span {
  font-size: 12px;
  color: #6b7f8d;
}
.m-plan-price s {
  margin-left: 4px;
  color: #a7b7c0;
  font-size: 13px;
}
.m-plan-feats {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}
.m-plan-feat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #425c6a;
}
.m-plan-feat i {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(18, 163, 136, 0.14);
  color: #0d7f6c;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}
.m-plan-cta {
  width: 100%;
  margin-top: 18px;
  padding: 12px 0;
  border: 0;
  border-radius: 13px;
  background: #eef5f4;
  color: #0d7f6c;
  font: inherit;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.m-plan:hover .m-plan-cta,
.m-plan.is-active .m-plan-cta {
  color: #fff;
  background: linear-gradient(135deg, #12a388, #0b6d5c);
  box-shadow: 0 12px 22px rgba(13, 127, 110, 0.24);
}

.m-compare {
  margin-top: 18px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid #e2ebf0;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(35, 64, 77, 0.06);
}
.m-compare-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.m-compare-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: #12333f;
}
.m-compare-head p {
  margin: 0;
  font-size: 12px;
  color: #6b7f8d;
}
.m-table {
  width: 100%;
  border-collapse: collapse;
}
.m-table-wrap {
  overflow-x: auto;
}
.m-table th,
.m-table td {
  padding: 13px 14px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid #eef3f6;
  color: #425c6a;
}
.m-table th:first-child,
.m-table td:first-child {
  text-align: left;
  color: #425c6a;
  font-weight: 700;
}
.m-table thead th {
  color: #64798a;
  font-size: 13px;
  font-weight: 800;
}
.m-table thead th.m-table-hot {
  background: linear-gradient(135deg, #fff8e8, #fff2d3);
  color: #9a6c0f;
}
.m-table td.m-table-hot {
  background: #fffbf0;
  font-weight: 900;
  color: #12333f;
}
.m-table .m-yes {
  color: #0d7f6c;
  font-weight: 900;
}
.m-table .m-no {
  color: #b8c5cd;
}
.m-table tbody tr:last-child th,
.m-table tbody tr:last-child td {
  border-bottom: 0;
}
.m-compare-note {
  margin-top: 14px;
  font-size: 12px;
  color: #8ba0ac;
}

.m-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.m-pay-modal[hidden] {
  display: none;
}
.m-pay-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(11, 32, 42, 0.46);
  backdrop-filter: blur(2px);
}
.m-pay-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 30px 28px 26px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(13, 44, 56, 0.28);
  text-align: center;
}
.m-pay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f6f8;
  color: #5b7382;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.m-pay-close:hover {
  background: #e2edf0;
  color: #12333f;
}
.m-pay-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 900;
  color: #12333f;
}
.m-pay-wechat-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #07c160;
  color: #fff;
}
.m-pay-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #7d919d;
}
.m-pay-price-title {
  margin: 16px 0 0;
  font-size: 26px;
  font-weight: 900;
  color: #12333f;
}
.m-pay-box {
  width: 100%;
  margin-top: 20px;
  display: grid;
  justify-items: center;
}
.m-pay-qr {
  width: 100%;
  min-height: 220px;
  border-radius: 16px;
  border: 1px solid #dfe9ee;
  background: #f7fafc;
  display: grid;
  place-items: center;
  color: #7d919d;
  font-size: 12px;
}
.m-pay-qr img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}
.m-pay-note {
  margin-top: 12px;
  display: grid;
  gap: 4px;
  justify-items: center;
  font-size: 12px;
  line-height: 1.6;
  color: #8ba0ac;
}
.m-pay-note[hidden] {
  display: none;
}
.m-pay-status {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #6b7f8d;
}
.m-pay-status.is-vip {
  color: #0d7f6c;
  font-weight: 800;
}
body.has-pay-modal {
  overflow: hidden;
}

@media (max-width: 980px) {
  .m-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .m-hero-badge {
    display: none;
  }
}

@media (max-width: 760px) {
  .membership-page {
    width: min(100% - 22px, 680px);
    padding: 14px 0 110px;
  }
  .m-hero {
    padding: 16px 18px;
    border-radius: 18px;
  }
  .m-hero h1 {
    font-size: 20px;
  }
  .m-hero-stats {
    gap: 20px;
    margin-top: 20px;
  }
  .m-hero-stat strong {
    font-size: 20px;
  }
  .m-plans-tabs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
  }
  .m-plan-tab {
    flex: 1;
    min-width: 0;
    padding: 9px 0;
    border: 1px solid #dce8ec;
    border-radius: 999px;
    background: #fff;
    color: #5b7382;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }
  .m-plan-tab.is-active {
    background: #0d7f6c;
    border-color: #0d7f6c;
    color: #fff;
  }
  .m-plans .m-plan.is-hidden {
    display: none;
  }
  .m-plans {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
  }
  .m-plan {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .m-plan-price b {
    font-size: 30px;
  }
  .m-compare {
    padding: 16px 12px;
    border-radius: 16px;
    margin-top: 14px;
  }
  .m-compare-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .m-compare-head h3 {
    font-size: 16px;
  }
  .m-table th,
  .m-table td {
    padding: 9px 6px;
    font-size: 11px;
  }
  .m-pay-modal {
    padding: 14px;
  }
  .m-pay-modal-card {
    padding: 24px 18px 20px;
  }
  .m-pay-qr {
    min-height: 200px;
  }
  .m-pay-qr img {
    width: 180px;
    height: 180px;
  }
}
