/* ==========================
   Membership Page Styles
   ========================== */

/*顶部跑马灯（Purchase Ticker）相关样式*/
.purchase-ticker {
  background: transparent;
  border-bottom: none;
  padding: 12px 0;
}

.ticker-viewport {
  width: min(400px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid #e6eef8;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow:
    0 8px 18px rgba(31, 122, 224, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
  /* 防止透明渐隐背景溢出 */
  background-clip: padding-box;
}

.ticker-track {
  display: block;
  position: relative;
  overflow: hidden;
  /* 仅裁剪内容，轨道本身保持固定 */
  flex: 1 1 auto;
}

.ticker-row {
  display: inline-flex;
  gap: 0;
  /* 两组 .ticker-items 之间不引入外部间距，保证无缝 */
  white-space: nowrap;
  will-change: transform;
  /* 优化动画性能 */
  animation: ticker-scroll 40s linear infinite;
  /* 左移 -50%，形成无缝循环 */
}

.purchase-ticker:hover .ticker-row {
  animation-play-state: paused;
}

.ticker-items {
  display: inline-flex;
  align-items: center;
  gap: 0;
  /* 交由分隔符 margin 控制间距，跨容器也一致 */
  padding-right: 0;
  /* 去除尾部留白，避免拼接处出现空隙 */
}

.ticker-item {
  font-size: 12px;
  color: #2d3f55;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* 分段之间的细间距 */
}

.ticker-sep {
  color: #c6d3e3;
  margin: 0 10px;
  /* 统一分隔符左右间距，跨容器也生效 */
}

.ticker-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  filter: drop-shadow(0 1px 2px rgba(31, 122, 224, 0.15));
}

/* 分段着色，提升可读性与层次 */
.t-name {
  color: #1f7ae0;
  font-weight: 600;
}

.t-time {
  color: #ff4d4f;
}

.t-action {
  color: #6b7a88;
}

.t-product {
  color: #1f7ae0;
}

/* 左右渐隐遮罩，柔化文本边缘 */
.ticker-viewport::before,
.ticker-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  /* 收紧左右渐隐宽度，避免超长 */
  pointer-events: none;
}

.ticker-viewport::before {
  left: 0;
  background: linear-gradient(to right, rgba(246, 251, 255, 1), rgba(246, 251, 255, 0));
}

.ticker-viewport::after {
  right: 0;
  background: linear-gradient(to left, rgba(246, 251, 255, 1), rgba(246, 251, 255, 0));
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.membership {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(241, 248, 255, 0.8));
  padding: 28px 0 24px;
}

.membership-hero {
  text-align: center;
  margin-bottom: 16px;
}

.membership-title {
  font-size: 34px;
  font-weight: 700;
  color: #1d2733;
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .membership {
    padding-top: 20px;
  }

  .membership-title {
    font-size: 30px;
  }
}

.membership-subtitle {
  font-size: 15px;
  color: #5b6b7b;
  margin: -6px 0 24px;
}

.membership-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.membership-icons .micon {
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 32, 128, 0.06);
}

.membership-icons .micon span {
  font-size: 24px;
  font-weight: 800;
  color: #1f7ae0;
  /* fallback color */
  font-family: "Poppins", "Noto Sans SC", "DIN Alternate", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Gradient text effect */
  background-image: linear-gradient(90deg, #2d7bd9 0%, #8fb9ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Per-letter gradient variations for visual richness */
.membership-icons .micon:nth-child(1) span {
  background-image: linear-gradient(90deg, #2d7bd9 0%, #845ef7 100%);
}

.membership-icons .micon:nth-child(2) span {
  background-image: linear-gradient(90deg, #0fb9b1 0%, #47e56b 100%);
}

.membership-icons .micon:nth-child(3) span {
  background-image: linear-gradient(90deg, #ff7a59 0%, #ff9fb3 100%);
}

.membership-icons .micon:nth-child(4) span {
  background-image: linear-gradient(90deg, #1f7ae0 0%, #33c3fa 100%);
}

.membership-icons .micon small {
  font-size: 12px;
  color: #5b6b7b;
}

.pricing-tabs {
  display: flex;
  gap: 12px;
  margin: 20px auto 22px;
  flex-wrap: wrap;
  width: min(780px, 96%);
  background: #eaf4ff;
  border: 1px solid #dfe8f3;
  border-radius: 12px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(143, 185, 255, 0.18);
  justify-content: center;
  align-items: center;
}

.ptab {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #2d3f55;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ptab:hover {
  background: rgba(77, 166, 255, 0.10);
}

.ptab.active {
  background: #fff;
  color: #1f7ae0;
  border-color: #cfe0f2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Remove focus visual for tab buttons */
.ptab:focus,
.ptab:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 240px);
  gap: 16px;
  justify-content: center;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 240px);
  }
}

@media (max-width: 760px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 240px);
  }
}

@media (max-width: 520px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Variant: exactly 3 columns for selector pricing */
.grid-3 {
  grid-template-columns: repeat(3, 240px);
}

@media (max-width: 760px) {
  .grid-3 {
    grid-template-columns: repeat(2, 240px);
  }
}

@media (max-width: 520px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: #fff;
  border: 1px solid #e3ecf7;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
  min-height: 180px;
}

.pricing-card.hot {
  border-color: #ffd3b3;
  box-shadow: 0 12px 30px rgba(255, 143, 79, 0.15);
}

.pricing-card.free {
  background: #f9fbff;
}

.pc-top {
  text-align: center;
}

.pc-top h3 {
  font-size: 16px;
  color: #1d2733;
  margin: 6px 0;
}

.pc-sub {
  font-size: 12px;
  color: #6b7a88;
}

.pc-badges {
  display: flex;
  gap: 6px;
}

.badge {
  background: #ffedd8;
  color: #b04d05;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}

.badge.alt {
  background: #eaf3ff;
  color: #1f7ae0;
}

.pc-price {
  margin: 12px 0;
  font-size: 14px;
  color: #ff4d4f;
  text-align: center;
}

.pc-price strong {
  font-size: 28px;
  margin-left: 2px;
  margin-right: 6px;
}

.pc-price .del {
  color: #8ea1b5;
  text-decoration: line-through;
  font-size: 12px;
}

.pc-btn {
  width: 100%;
  margin-top: auto;
}



.pricing-cta {
  text-align: center;
  margin-top: 18px;
}

.pricing-note {
  margin-top: 6px;
  font-size: 13px;
  color: #5f738b;
}

.pricing-note a {
  color: #2d7bd9;
  text-decoration: none;
  font-weight: 500;
  transition: color .15s ease, text-decoration-color .15s ease;
}

.pricing-note a:hover {
  color: #1a5fb4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* extra helper links under CTA */
.note-links {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.note-links .sep {
  color: #c6d3e3;
}

.note-links a {
  color: #2d7bd9;
  text-decoration: none;
  font-weight: 500;
}

.note-links a:hover {
  color: #1a5fb4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Video area alignment on membership page */
.section-muted {
  background: #f6f9ff;
  padding: 36px 0;
}

.product-video {
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16/9;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0;
  object-fit: cover;
}

/* Redeem area */
.hidden {
  display: none !important;
}

/* Service QR block (below tabs) */
.service-qr {
  display: grid;
  place-items: center;
  margin: 16px 0 8px;
}

.service-qr-card {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #f2f8ff;
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(61, 148, 239, 0.14);
}

.service-qr-img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  border: 1px solid #cfe0f2;
  box-shadow: 0 8px 16px rgba(61, 148, 239, 0.12);
  background: #fff;
  object-fit: contain;
}

.service-qr-tip {
  color: #274560;
}

.service-qr-tip .em {
  color: #1f7ae0;
  font-weight: 700;
}

.service-qr-desc {
  color: #2d3f55;
}

.redeem-wrap {
  width: min(320px, 88%);
  margin: 12px auto 0;
}

.redeem-form {
  display: grid;
  gap: 12px;
}

.redeem-title {
  font-weight: 700;
  color: #1d2733;
  margin-top: 12px;
}

.redeem-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #6b7a88;
}

.redeem-list li {
  line-height: 1.6;
  margin-bottom: 6px;
}

.redeem-list.numbered {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
}

.redeem-list.numbered li {
  position: relative;
  padding-left: 28px;
}

.redeem-list.numbered li::before {
  counter-increment: item;
  content: counter(item) '、';
  position: absolute;
  left: 0;
  top: 0;
  color: #1d2733;
  font-weight: 400;
}

.redeem-tip {
  min-height: 20px;
  font-size: 14px;
  color: #1f7ae0;
  text-align: center;
  margin-top: 8px;
}

/* Login hint bar above redeem area when not logged in */
.redeem-login-hint {
  font-size: 18px;
  color: #2d7bd9;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  text-align: center;
  margin: 12px 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.redeem-login-hint:hover {
  color: #1a5fb4;
}

/* Pay type selector modal */
.paytype-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.paytype-modal {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e6eef8;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(61, 148, 239, 0.10);
  padding: 14px 16px;
  width: min(320px, 90%);
}

.paytype-title {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1d2733;
}

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

.paytype-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.paytype-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d9e4f5;
  color: #1d2733;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .08s ease, border-color .15s ease;
}

.paytype-btn .paytype-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  display: inline-block;
  object-fit: contain;
}

.paytype-btn:hover {
  background: #f7faff;
  border-color: #bcd2ef;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.paytype-btn:active {
  transform: translateY(0.5px);
}

.paytype-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(153, 195, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.paytype-cancel {
  width: 100%;
}

/* Benefits Table */
.benefits {
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.6), rgba(244, 249, 255, 0.4));
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e3ecf7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(61, 148, 239, 0.10);
}

.benefits-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  table-layout: fixed;
}

.benefits-table thead th {
  position: sticky;
  top: 0;
  background: #f2f7ff;
  color: #274560;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid #e3ecf7;
}

.benefits-table th,
.benefits-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef3fb;
  font-size: 14px;
  color: #23354a;
  text-align: center;
}

.benefits-table .stick {
  position: sticky;
  left: 0;
  background: #fff;
  border-right: 1px solid #e8eef7;
  text-align: left;
  width: 200px;
  min-width: 200px;
  max-width: 220px;
  word-wrap: break-word;
  line-height: 1.4;
  z-index: 1;
}

.benefits-table .item {
  text-align: left;
  color: #2b3f57;
  width: 200px;
  min-width: 200px;
  max-width: 220px;
  word-wrap: break-word;
  line-height: 1.4;
}

.benefits-table .group td {
  background: #f7fbff;
  color: #1d2733;
  font-weight: 700;
  border-bottom-color: #e3ecf7;
  text-align: left;
}

.benefits-table .tick {
  color: #1f7ae0;
  font-weight: 700;
}

.benefits-table .cross {
  color: #c33;
  font-weight: 700;
}

@media (max-width: 760px) {
  .benefits-table thead {
    display: none;
  }

  .benefits-table,
  .benefits-table tbody,
  .benefits-table tr,
  .benefits-table td {
    display: block;
    width: 100%;
  }

  .benefits-table .group td {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .benefits-table tr {
    border-bottom: 1px solid #eef3fb;
  }

  .benefits-table td {
    text-align: left;
  }

  .benefits-table td::before {
    content: attr(data-label);
    display: block;
    color: #6b7a88;
    font-size: 12px;
    margin-bottom: 4px;
  }
}

/* Selector feature bullets (four sentences row) */
.selector-feats {
  margin: 14px 0 8px;
}

.selector-feats-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;
  justify-content: center;
  align-items: center;
}

.selector-feats-list li {
  color: #2e4664;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.paytype-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #5f738b;
  font-size: 20px;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.paytype-close:hover {
  background: #eff5fb;
  color: #1d2733;
}

.paytype-close:focus {
  outline: 2px solid #99c3ff;
  outline-offset: 2px;
}