/* membership.css v20260408-membership-page-2 */

.membership-page {
  width: min(1180px, calc(100% - 24px));
  margin: 20px auto 40px;
}

.membership-hero {
  border-radius: 12px;
  padding: 28px 28px 24px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #ffffff;
  background: linear-gradient(135deg, #0f5fa6 0%, #1d8df3 58%, #5aaefc 100%);
  box-shadow: 0 12px 30px rgba(17, 93, 160, 0.2);
}

.membership-hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.membership-hero p {
  margin: 0;
  font-size: 14px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.membership-cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.membership-subjects {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid #dce7f6;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(18, 48, 89, 0.08);
  padding: 14px;
}

.membership-subjects-head h2 {
  margin: 0;
  font-size: 18px;
  color: #1a2d45;
}

.membership-subjects-head p {
  margin: 6px 0 0;
  color: #526b86;
  font-size: 13px;
  line-height: 1.7;
}

.subject-selector {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subject-pill {
  min-width: 92px;
  height: 36px;
  border: 1px solid #bfd5ec;
  border-radius: 999px;
  background: #f6fbff;
  color: #2b4c70;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subject-pill:hover {
  border-color: #74a7db;
}

.subject-pill.is-active {
  border-color: #1b82eb;
  color: #ffffff;
  background: linear-gradient(180deg, #1f8ef5 0%, #1b82eb 100%);
}

.subject-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #5f738b;
}

.subject-hint.is-error {
  color: #cb3b30;
}

.membership-card {
  background: #ffffff;
  border: 1px solid #dce7f6;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(18, 48, 89, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 390px;
}

.membership-card.featured {
  border-color: #82b8ee;
  box-shadow: 0 10px 22px rgba(17, 94, 160, 0.15);
}

.membership-card.partner {
  border-color: #f0c977;
  box-shadow: 0 10px 22px rgba(169, 118, 18, 0.13);
}

.membership-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #13588f;
  background: #e8f3ff;
  width: fit-content;
}

.membership-card.partner .membership-tag {
  color: #7d5402;
  background: #fff4dc;
}

.membership-name {
  margin: 12px 0 10px;
  font-size: 24px;
  color: #1a2d45;
}

.membership-price {
  margin: 0 0 6px;
  color: #d93025;
}

.membership-price .price-current {
  font-size: 34px;
  font-weight: 700;
}

.membership-price .price-current.is-placeholder {
  font-size: 22px;
  font-weight: 600;
  color: #4e6784;
}

.membership-price .price-unit {
  font-size: 14px;
  font-weight: 600;
  color: #627b97;
}

.membership-price .price-original {
  margin-left: 8px;
  font-size: 14px;
  color: #90a4b9;
  text-decoration: line-through;
}

.membership-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #5f738b;
}

.membership-perks {
  margin: 0;
  padding-left: 18px;
  color: #2b3f57;
  line-height: 1.8;
  font-size: 14px;
  flex: 1;
}

.membership-footer {
  margin-top: 10px;
  font-size: 12px;
  color: #71879f;
  border-top: 1px dashed #d7e3f3;
  padding-top: 8px;
}

.membership-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.membership-action-btn {
  min-width: 96px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(180deg, #1f8ef5 0%, #1b82eb 100%);
}

.membership-action-btn:focus-visible {
  outline: 2px solid #0f5fa6;
  outline-offset: 1px;
}

.membership-action-btn.is-outline {
  background: #ffffff;
  border: 1px solid #1b82eb;
  color: #1b82eb;
}

.membership-action-btn.is-disabled {
  background: #f1f4f8;
  color: #8ca0b6;
  border: 1px solid #d7e1ec;
  pointer-events: none;
}

.membership-note {
  margin-top: 16px;
  font-size: 12px;
  color: #667f9a;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .membership-cards {
    grid-template-columns: 1fr;
  }

  .membership-card {
    min-height: auto;
  }
}
