/* 修行地图弹窗样式 */
.pm-mask {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 3, 12, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9990;
  animation: pm-fade-in 0.3s ease;
}

.pm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 32px);
  max-width: 640px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(40, 26, 70, 0.95) 0%, rgba(20, 12, 40, 0.95) 100%);
  border: 1px solid rgba(159, 122, 234, 0.4);
  border-radius: 20px;
  padding: 48px 32px 32px;
  z-index: 9991;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  animation: pm-pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pm-close {
  position: fixed;
  top: calc(50% - 220px);
  left: calc(50% + 300px - 20px);
  transform: translate(-50%, 0);
  background: none;
  border: none;
  color: rgba(232, 213, 255, 0.5);
  width: 32px;
  height: 32px;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s;
  z-index: 9992;
}
.pm-close:hover {
  color: #c4b0f0;
  transform: translate(-50%, 0) scale(1.1);
}

.pm-header {
  text-align: center;
  margin-bottom: 16px;
}
.pm-title {
  font-size: 20px;
  color: #c4b0f0;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.pm-sub {
  font-size: 12px;
  color: rgba(232, 213, 255, 0.6);
  letter-spacing: 1px;
}

.pm-pagoda {
  margin: 8px auto 4px;
  max-width: 320px;
}

.pm-composite {
  text-align: center;
  margin: 4px 0 16px;
}
.pm-composite-num {
  font-size: 36px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(180deg, #fff 0%, #c4b0f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.pm-composite-label {
  font-size: 12px;
  color: rgba(232, 213, 255, 0.6);
  margin-top: 4px;
  letter-spacing: 1px;
}

.pm-tracks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pm-card {
  background: rgba(159, 122, 234, 0.06);
  border: 1px solid rgba(159, 122, 234, 0.22);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.pm-card:hover {
  background: rgba(159, 122, 234, 0.12);
  border-color: rgba(196, 176, 240, 0.5);
  transform: translateY(-1px);
}
.pm-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.pm-card-name {
  font-size: 16px;
  color: #fff;
  letter-spacing: 1px;
}
.pm-card-stage {
  font-size: 14px;
  color: #c4b0f0;
  font-weight: 600;
}
.pm-card-sub {
  font-size: 12px;
  color: rgba(232, 213, 255, 0.55);
  margin-bottom: 8px;
}
.pm-card-3gates {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: rgba(232, 213, 255, 0.5);
  margin-bottom: 6px;
}
.pm-card-3gates span {
  padding: 2px 8px;
  background: rgba(159, 122, 234, 0.1);
  border-radius: 8px;
}
.pm-card-status {
  font-size: 12px;
  color: #c4b0f0;
  letter-spacing: 1px;
}

.pm-actions {
  text-align: center;
}
.pm-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(90deg, #c4b0f0 0%, #7c5fd8 100%);
  color: #1a1030;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(159, 122, 234, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 200px;
  text-align: center;
}
.pm-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(196, 176, 240, 0.5);
}

@keyframes pm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pm-pop-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 600px) {
  .pm-modal {
    padding: 24px 18px 20px;
  }
  .pm-title { font-size: 18px; }
  .pm-composite-num { font-size: 30px; }
}

/* ============================================================
 * pm-wrap 遮罩层（弹窗背景）——半透明透气
 * ============================================================ */
#pm-wrap {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 3, 12, 0.45);  /* 从 0.75 降到 0.45，更透气 */
  backdrop-filter: blur(3px);        /* 从 6px 降到 3px，背景更清晰 */
  -webkit-backdrop-filter: blur(3px);
  z-index: 9990;
  animation: pm-fade-in 0.3s ease;
}

/* ============================================================
 * C 态介绍页 · 两套测试并列卡片
 * ============================================================ */
.pm-header {
  position: relative;
  text-align: center;
  padding: 32px 40px 8px;
  border-bottom: 1px solid rgba(159, 122, 234, 0.15);
  margin-bottom: 20px;
}
.pm-header-title {
  font-size: 22px;
  font-weight: 600;
  color: #e8d5ff;
  margin-bottom: 6px;
}
.pm-header-sub {
  font-size: 13px;
  color: rgba(196, 176, 240, 0.65);
  letter-spacing: 1px;
}

.pm-subtitle {
  text-align: center;
  font-size: 14px;
  color: rgba(196, 176, 240, 0.75);
  line-height: 1.7;
  margin: 0 30px 24px;
}

/* 左右结构 */
.pm-tracks {
  display: flex;
  gap: 16px;
  padding: 0 24px 16px;
}
.pm-tracks--side {
  flex-direction: row;
}

.pm-track-card {
  flex: 1;
  background: rgba(159, 122, 234, 0.08);
  border: 1px solid rgba(159, 122, 234, 0.25);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.pm-track-card:hover {
  border-color: rgba(159, 122, 234, 0.5);
  background: rgba(159, 122, 234, 0.12);
}

/* 阴阳图标 */
.pm-track-icon {
  font-size: 28px;
  line-height: 1;
}
.pm-yang {
    display: inline-block;
    transform: rotate(-90deg);
  color: #c4b0f0;           /* 阳：亮紫 */
  text-shadow: 0 0 12px rgba(196, 176, 240, 0.5);
}
.pm-yin {
    display: inline-block;
    transform: rotate(90deg);
  color: rgba(196, 176, 240, 0.55);  /* 阴：暗紫 */
  text-shadow: 0 0 8px rgba(196, 176, 240, 0.3);
}

.pm-track-name {
  font-size: 16px;
  font-weight: 600;
  color: #c4b0f0;
}
.pm-track-tag {
  font-size: 11px;
  color: rgba(196, 176, 240, 0.5);
  letter-spacing: 1px;
  padding: 2px 10px;
  background: rgba(159, 122, 234, 0.1);
  border-radius: 10px;
}
.pm-track-desc {
  font-size: 12px;
  color: rgba(196, 176, 240, 0.6);
  text-align: center;
  line-height: 1.6;
}
.pm-track-progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.pm-track-bar {
  flex: 1;
  height: 6px;
  background: rgba(159, 122, 234, 0.2);
  border-radius: 3px;
  overflow: hidden;
}
.pm-track-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c5fd8, #c4b0f0);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.pm-track-pct {
  font-size: 12px;
  color: rgba(196, 176, 240, 0.8);
  min-width: 30px;
  text-align: right;
}
.pm-track-progress-empty {
  font-size: 11px;
  color: rgba(196, 176, 240, 0.35);
  margin-top: 4px;
}

.pm-btn-done {
  background: rgba(159, 122, 234, 0.15);
  border: 1px solid rgba(159, 122, 234, 0.4);
  color: rgba(196, 176, 240, 0.8);
}
.pm-btn-done:hover {
  transform: none;
  box-shadow: none;
}

.pm-all-done-banner {
  margin: 0 24px 16px;
  background: rgba(159, 122, 234, 0.12);
  border: 1px solid rgba(159, 122, 234, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pm-all-done-banner span {
  font-size: 15px;
  color: #c4b0f0;
}
.pm-btn-large {
  min-width: 240px;
  padding: 12px 32px;
  font-size: 15px;
}

.pm-tip {
  text-align: center;
  font-size: 11px;
  color: rgba(196, 176, 240, 0.4);
  padding: 12px 24px 24px;
  letter-spacing: 0.5px;
}

/* 弹窗半透明背景 */
#pm-modal {
  background: linear-gradient(160deg, rgba(40, 26, 70, 0.82) 0%, rgba(20, 12, 40, 0.82) 100%);  /* 从 0.95 降到 0.82 */
  border: 1px solid rgba(159, 122, 234, 0.35);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);  /* 阴影更轻 */
}

@media (max-width: 480px) {
  .pm-tracks { flex-direction: column; gap: 12px; padding: 0 16px 16px; }
  .pm-tracks--side { flex-direction: column; }
  .pm-header { padding: 24px 20px 8px; }
  .pm-subtitle { margin: 0 16px 20px; }
  .pm-btn-large { min-width: 200px; }
}
/* ============================================================
 * 会员引导弹窗（B态）
 * ============================================================ */
.pm-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 3, 12, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.pm-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pm-modal-card {
  width: calc(100vw - 32px);
  max-width: 520px;
  background: linear-gradient(160deg, rgba(40, 26, 70, 0.95) 0%, rgba(20, 12, 40, 0.95) 100%);
  border: 1px solid rgba(159, 122, 234, 0.4);
  border-radius: 20px;
  padding: 40px 32px 32px;
  position: relative;
  z-index: 9991;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pm-modal-overlay.active .pm-modal-card {
  transform: scale(1);
}

.pm-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(232, 213, 255, 0.5);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}
.pm-modal-close:hover {
  color: #c4b0f0;
}

.pm-modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #e8d5ff;
  text-align: center;
  margin-bottom: 12px;
}
.pm-modal-desc {
  font-size: 14px;
  color: rgba(196, 176, 240, 0.75);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 20px;
}

.pm-modal-features {
  margin-bottom: 24px;
}
.pm-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(196, 176, 240, 0.7);
  line-height: 1.5;
}
.pm-feature-dot {
  width: 6px;
  height: 6px;
  background: #c4b0f0;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.pm-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.pm-btn--primary {
  background: linear-gradient(90deg, #c4b0f0 0%, #7c5fd8 100%);
  color: #1a1030;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pm-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(196, 176, 240, 0.4);
}
.pm-btn--ghost {
  background: transparent;
  color: rgba(196, 176, 240, 0.8);
  border: 1px solid rgba(159, 122, 234, 0.4);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.pm-btn--ghost:hover {
  background: rgba(159, 122, 234, 0.1);
  border-color: rgba(159, 122, 234, 0.6);
}

.pm-modal-foot {
  text-align: center;
  font-size: 12px;
  color: rgba(196, 176, 240, 0.4);
}
.pm-modal-foot a {
  color: #c4b0f0;
  text-decoration: none;
}
