/* 满分星球 PC — 公共基础（设计稿：设计初稿/通用弹窗.html，非 H5） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ========== 轻提示 Toast（顶栏，同套色彩语言） ========== */
.mfpc-toast-stack {
  position: fixed;
  left: 50%;
  top: 24px;
  z-index: 4500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(92vw, 400px);
  transform: translateX(-50%);
  pointer-events: none;
}

.mfpc-toast-stack .mfpc-toast {
  pointer-events: auto;
}

.mfpc-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mfpc-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.mfpc-toast.is-out {
  opacity: 0;
  transform: translateY(-8px);
}

.mfpc-toast--success {
  border-color: #d1fae5;
}

.mfpc-toast--error {
  border-color: #fecaca;
}

.mfpc-toast-ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}

.mfpc-toast--success .mfpc-toast-ico {
  background: #ecfdf5;
  color: #10b981;
}

.mfpc-toast--error .mfpc-toast-ico {
  background: #fff1f2;
  color: #f43f5e;
}

.mfpc-toast-msg {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  line-height: 1.5;
}

/* ========== 全屏模态（成功 / 失败 / 确认 / 单按钮提示） ========== */
.mfpc-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.mfpc-modal-mask.is-open {
  opacity: 1;
  visibility: visible;
}

.mfpc-modal-card {
  width: 100%;
  max-width: 384px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease;
}

.mfpc-modal-mask.is-open .mfpc-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* —— 结果类：成功 / 失败（设计稿 modal-success / modal-error） —— */
.mfpc-modal-card--success {
  padding: 32px;
  text-align: center;
  border: 1px solid #ecfdf5;
}

.mfpc-modal-card--error {
  padding: 32px;
  text-align: center;
  border: 1px solid #fff1f2;
}

.mfpc-modal-result-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
}

.mfpc-modal-result-icon--success {
  background: #ecfdf5;
  color: #10b981;
}

.mfpc-modal-result-icon--error {
  background: #fff1f2;
  color: #f43f5e;
}

.mfpc-modal-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  color: #1e293b;
}

.mfpc-modal-desc {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.65;
  white-space: pre-line;
}

.mfpc-modal-foot-btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  transition: background 0.2s, transform 0.15s;
}

.mfpc-modal-foot-btn:active {
  transform: scale(0.98);
}

.mfpc-modal-foot-btn--success {
  background: #10b981;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.25);
}

.mfpc-modal-foot-btn--success:hover {
  background: #059669;
}

.mfpc-modal-foot-btn--error {
  background: #f43f5e;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(244, 63, 94, 0.2);
}

.mfpc-modal-foot-btn--error:hover {
  background: #e11d48;
}

/* —— 单按钮提示（showAlertDialog，橙色系与站点一致） —— */
.mfpc-modal-card--notice {
  padding: 32px;
  text-align: center;
  border: 1px solid #ffedd5;
}

.mfpc-modal-result-icon--notice {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
}

.mfpc-modal-foot-btn--primary {
  background: #ea580c;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.2);
}

.mfpc-modal-foot-btn--primary:hover {
  background: #c2410c;
}

.mfpc-vip-mask {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mfpc-vip-mask.is-open {
  opacity: 1;
  visibility: visible;
}

.mfpc-vip-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 24px);
  position: relative;
  border-radius: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #fed7aa;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.22);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.28s ease;
  -webkit-overflow-scrolling: touch;
}

.mfpc-vip-mask.is-open .mfpc-vip-card {
  transform: translateY(0) scale(1);
}

.mfpc-vip-head {
  position: relative;
  padding: 14px 40px 12px 16px;
  background: linear-gradient(115deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
}

.mfpc-vip-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.mfpc-vip-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mfpc-vip-crown {
  font-size: 22px;
  line-height: 1;
}

.mfpc-vip-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
}

.mfpc-vip-subtitle {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0.92;
}

.mfpc-vip-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mfpc-vip-badges span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mfpc-vip-body {
  padding: 14px 14px 12px;
}

.mfpc-vip-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.mfpc-vip-section-head h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mfpc-vip-section-head span {
  font-size: 12px;
  font-weight: 900;
  color: #f97316;
  font-style: italic;
}

.mfpc-vip-grid {
  display: grid;
  gap: 8px;
}

.mfpc-vip-grid--flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 26px 6px;
  margin-bottom: 12px;
  width: 100%;
}

.mfpc-vip-grid--flex .vip-card {
  box-sizing: border-box;
  flex: 0 1 calc((100% - 12px) / 3);
  max-width: calc((100% - 12px) / 3);
  min-width: 0;
}

.vip-card {
  position: relative;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 18px 6px 10px;
}

.vip-card.active {
  border-color: #ea580c;
  background-color: #fff7ed;
  box-shadow: 0 6px 14px -4px rgba(234, 88, 12, 0.18);
}

.save-tag {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: #f43f5e;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.35;
}

.save-tag--hot {
  background: #ea580c;
}

.vip-card-period,
.vip-card-benefit,
.vip-card-origin {
  margin: 0;
}

.vip-card-period {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
  line-height: 1.2;
}

.vip-card-price {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #1e293b;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.vip-card.active .vip-card-price {
  color: #ea580c;
}

.vip-card-origin {
  font-size: 12px;
  color: #cbd5e1;
  text-decoration: line-through;
  margin-top: 2px;
}

.vip-card-benefit {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.25;
}

.vip-card--row {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.vip-card-row-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.vip-card-row-price {
  text-align: right;
}

.vip-card-row-price p,
.vip-card-row-price span {
  margin: 0;
}

.vip-card-row-price p {
  font-size: 16px;
  font-weight: 900;
  color: #1e293b;
}

.vip-card.active .vip-card-row-price p {
  color: #ea580c;
}

.vip-card-row-price span {
  font-size: 12px;
  color: #cbd5e1;
  text-decoration: line-through;
}

.mfpc-vip-pay-btn {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  max-height: 48px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(to right, #fb923c, #ea580c);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 20px -6px rgba(251, 146, 60, 0.55);
  transition: transform 0.18s ease;
  cursor: pointer;
}

.mfpc-vip-pay-btn:active {
  transform: scale(0.98);
}

.mfpc-vip-pay-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.mfpc-vip-pay-result {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.mfpc-vip-pay-result.is-hidden {
  display: none;
}

.mfpc-vip-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mfpc-vip-pay-head strong {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.mfpc-vip-pay-head span {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.mfpc-vip-qrcode-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 10px;
}

.mfpc-vip-qrcode {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #fed7aa;
  background: #fff;
}

.mfpc-vip-pay-empty,
.mfpc-vip-loading,
.mfpc-vip-pay-tip {
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.mfpc-vip-loading {
  width: 100%;
  text-align: center;
  padding: 20px 8px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .mfpc-vip-grid--flex .vip-card {
    flex: 0 1 calc((100% - 6px) / 2);
    max-width: calc((100% - 6px) / 2);
  }
}

@media (max-width: 640px) {
  .mfpc-vip-mask {
    padding: 10px;
  }

  .mfpc-vip-card {
    border-radius: 16px;
    max-height: calc(100vh - 20px);
  }

  .mfpc-vip-head {
    padding: 12px 36px 10px 12px;
  }

  .mfpc-vip-body {
    padding: 12px 10px 10px;
  }

  .mfpc-vip-grid--flex .vip-card {
    flex: 1 1 calc(50% - 3px);
    max-width: calc(50% - 3px);
  }

  .mfpc-vip-pay-btn {
    width: 100%;
    height: 42px;
    max-height: 48px;
    font-size: 13px;
  }

  .mfpc-vip-qrcode {
    width: 160px;
    height: 160px;
  }
}

/* —— 双按钮确认（设计稿 modal-confirm） —— */
.mfpc-modal-card--confirm {
  padding: 32px;
  text-align: left;
  border: 1px solid #ffedd5;
}

.mfpc-modal-confirm-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.mfpc-modal-confirm-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff7ed;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
}

.mfpc-modal-confirm-titles .mfpc-modal-h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #1e293b;
  line-height: 1.2;
}

.mfpc-modal-tag {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 900;
  color: #ea580c;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mfpc-modal-confirm-msg {
  margin: 0 0 32px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.65;
  white-space: pre-line;
}

.mfpc-modal-confirm-actions {
  display: flex;
  gap: 12px;
}

.mfpc-modal-foot-btn--ghost {
  flex: 1;
  max-height: 48px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: #64748b;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  transition: background 0.2s, border-color 0.2s;
}

.mfpc-modal-foot-btn--ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.mfpc-modal-confirm-actions .mfpc-modal-foot-btn--primary {
  flex: 1;
  width: auto;
}

.mfpc-modal-foot-btn--block {
  width: 100%;
}

.mfpc-practice-settings-mask {
  z-index: 3400;
}

.mfpc-practice-settings-card {
  position: relative;
  width: min(612px, calc(100vw - 48px));
  border-radius: 36px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
  padding: 28px 30px 24px;
  overflow: hidden;
}

.mfpc-practice-settings-card::before,
.mfpc-practice-settings-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  pointer-events: none;
}

.mfpc-practice-settings-card::before {
  left: -80px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.14) 0%, rgba(96, 165, 250, 0) 72%);
}

.mfpc-practice-settings-card::after {
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 72%);
}

.mfpc-practice-settings-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mfpc-practice-settings-head,
.mfpc-practice-settings-body,
.mfpc-practice-settings-actions {
  position: relative;
  z-index: 1;
}

.mfpc-practice-settings-head {
  text-align: center;
  margin-bottom: 18px;
}

.mfpc-practice-settings-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  color: #f97316;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.mfpc-practice-settings-head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #1e293b;
}

.mfpc-practice-settings-pack {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
}

.mfpc-practice-settings-section + .mfpc-practice-settings-section {
  margin-top: 16px;
}

.mfpc-practice-settings-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  color: #475569;
  text-align: left;
}

.mfpc-practice-settings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mfpc-practice-settings-grid.is-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mfpc-practice-settings-grid.is-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mfpc-practice-settings-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 40px;
  max-height: 40px;
  padding: 7px 10px;
  border-radius: 9999px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  color: #2563eb;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.mfpc-practice-settings-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.08);
}

.mfpc-practice-settings-option.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #667eea 0%, #3b82f6 100%);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.24);
}

.mfpc-practice-settings-option-text {
  display: block;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
}

.mfpc-practice-settings-option-desc {
  display: block;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 700;
  opacity: 0.9;
}

.mfpc-practice-settings-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.mfpc-practice-settings-btn {
  box-sizing: border-box;
  min-width: 148px;
  height: 40px;
  max-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.mfpc-practice-settings-btn--cancel {
  border: 1px solid #fecdd3;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  color: #be123c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.mfpc-practice-settings-btn--save {
  border: 0;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.24);
}

.mfpc-practice-mode-mask {
  z-index: 3400;
}

.mfpc-practice-mode-card {
  position: relative;
  width: min(920px, calc(100vw - 48px));
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
  padding: 38px 34px 30px;
  overflow: hidden;
}

.mfpc-practice-mode-card::before,
.mfpc-practice-mode-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  pointer-events: none;
}

.mfpc-practice-mode-card::before {
  top: -110px;
  right: -70px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0) 72%);
}

.mfpc-practice-mode-card::after {
  left: -70px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 72%);
}

.mfpc-practice-mode-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mfpc-practice-mode-head,
.mfpc-practice-mode-grid {
  position: relative;
  z-index: 1;
}

.mfpc-practice-mode-head {
  text-align: center;
  margin-bottom: 28px;
}

.mfpc-practice-mode-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  color: #f97316;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.mfpc-practice-mode-head h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: #1e293b;
}

.mfpc-practice-mode-pack {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
}

.mfpc-practice-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mfpc-practice-mode-option {
  border: 2px solid #f8fafc;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mfpc-practice-mode-option:hover {
  transform: translateY(-2px);
}

.mfpc-practice-mode-option.is-current {
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.1);
}

.mfpc-practice-mode-option.is-orange.is-current {
  border-color: #fed7aa;
}

.mfpc-practice-mode-option.is-blue.is-current {
  border-color: #bfdbfe;
}

.mfpc-practice-mode-option.is-emerald.is-current {
  border-color: #a7f3d0;
}

.mfpc-practice-mode-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.mfpc-practice-mode-option.is-orange .mfpc-practice-mode-icon {
  background: #fff7ed;
}

.mfpc-practice-mode-option.is-blue .mfpc-practice-mode-icon {
  background: #eff6ff;
}

.mfpc-practice-mode-option.is-emerald .mfpc-practice-mode-icon {
  background: #ecfdf5;
}

.mfpc-practice-mode-title {
  font-size: 18px;
  font-weight: 900;
  color: #1e293b;
}

.mfpc-practice-mode-desc {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  color: #94a3b8;
}

.mfpc-user-profile-card {
  box-sizing: border-box;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 20px 24px 16px;
  position: relative;
  border: 1px solid #ffedd5;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12), 0 12px 24px rgba(249, 115, 22, 0.1);
  -webkit-overflow-scrolling: touch;
}

.mfpc-user-profile-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mfpc-user-profile-head-copy {
  margin-bottom: 14px;
  padding-right: 48px;
}

.mfpc-user-profile-head-copy h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #1e293b;
  line-height: 1.25;
}

.mfpc-user-profile-head-copy p {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
}

.mfpc-user-profile-grid-top {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 10px 16px;
  align-items: start;
}

.mfpc-user-profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mfpc-user-profile-field span {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  line-height: 1.2;
}

.mfpc-user-profile-field-primary {
  grid-column: 1;
}

.mfpc-user-profile-avatar-panel {
  grid-column: 2;
  grid-row: 1 / span 3;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.mfpc-user-profile-avatar-preview {
  width: 100%;
  min-height: 120px;
  max-height: 160px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mfpc-user-profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mfpc-user-profile-avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fdba74, #f97316);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.2);
}

.mfpc-user-profile-avatar-btn {
  box-sizing: border-box;
  min-width: 120px;
  height: 40px;
  min-height: 40px;
  max-height: 48px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.2);
}

.mfpc-user-profile-avatar-btn:disabled,
.mfpc-user-profile-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.mfpc-user-profile-avatar-tip {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  line-height: 1.35;
}

.mfpc-user-profile-grid-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 10px;
}

.mfpc-user-profile-field input,
.mfpc-user-profile-field select {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  min-height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  outline: none;
  line-height: 1.2;
}

.mfpc-user-profile-field input:focus,
.mfpc-user-profile-field select:focus {
  border-color: #fb923c;
  background: #fff;
}

.mfpc-user-profile-field input:disabled {
  color: #94a3b8;
  background: #f8fafc;
}

.mfpc-user-profile-tip {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.45;
}

.mfpc-user-profile-submit {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 48px;
  margin-top: 12px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.2);
  font-size: 14px;
  font-weight: 800;
}

.mfpc-user-profile-actions {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 10px;
  margin-top: 10px;
}

.mfpc-user-profile-logout,
.mfpc-user-profile-secondary {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  max-height: 48px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.mfpc-user-profile-logout {
  background: #fff1f2;
  color: #e11d48;
}

.mfpc-user-profile-secondary {
  background: #fff7ed;
  color: #ea580c;
}

.mfpc-user-profile-loading {
  padding: 40px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #f97316;
}

@media (max-width: 960px) {
  .mfpc-user-profile-card {
    max-width: 92vw;
    max-height: calc(100vh - 24px);
    padding: 16px 14px 12px;
    border-radius: 14px;
  }

  .mfpc-user-profile-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .mfpc-user-profile-head-copy {
    padding-right: 44px;
    margin-bottom: 12px;
  }

  .mfpc-practice-settings-card {
    width: min(92vw, 760px);
    padding: 22px 16px 18px;
    border-radius: 24px;
  }

  .mfpc-practice-settings-close {
    top: 14px;
    right: 14px;
  }

  .mfpc-practice-settings-head {
    margin-bottom: 22px;
  }

  .mfpc-practice-settings-head h3 {
    font-size: 22px;
  }

  .mfpc-practice-settings-grid,
  .mfpc-practice-settings-grid.is-cols-2,
  .mfpc-practice-settings-grid.is-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mfpc-practice-settings-actions {
    flex-direction: column;
  }

  .mfpc-practice-settings-btn {
    width: 100%;
  }

  .mfpc-practice-mode-card {
    width: min(92vw, 760px);
    padding: 24px 18px 20px;
    border-radius: 24px;
  }

  .mfpc-practice-mode-close {
    top: 14px;
    right: 14px;
  }

  .mfpc-practice-mode-head h3 {
    font-size: 22px;
  }

  .mfpc-practice-mode-grid {
    grid-template-columns: 1fr;
  }

  .mfpc-user-profile-head-copy h3 {
    font-size: 18px;
  }

  .mfpc-user-profile-head-copy p {
    font-size: 12px;
    margin-top: 4px;
  }

  .mfpc-user-profile-grid-top,
  .mfpc-user-profile-grid-pair,
  .mfpc-user-profile-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mfpc-user-profile-avatar-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .mfpc-user-profile-avatar-preview {
    min-height: 100px;
    max-height: 140px;
  }

  .mfpc-user-profile-avatar-fallback {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 24px;
  }

  .mfpc-user-profile-field span,
  .mfpc-user-profile-tip {
    font-size: 12px;
  }

  .mfpc-user-profile-field input,
  .mfpc-user-profile-field select,
  .mfpc-user-profile-submit,
  .mfpc-user-profile-logout,
  .mfpc-user-profile-secondary {
    height: 40px;
    min-height: 40px;
    border-radius: 8px;
    font-size: 14px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* 顶栏荣誉：Font Awesome 6 Free 类名图标尺寸 */
.mfxq-header-tool-honor-icon i {
  font-size: 15px;
  line-height: 1;
  color: #ea580c;
}

/* 单词/句子仓库资源卡公共组件 */
.pack-card {
  min-height: 140px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid transparent;
}

.pack-card:hover {
  transform: translateY(-6px);
  border-color: #fb923c;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(251, 146, 60, 0.1);
}

.pack-compact-card {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 14px;
}

.pack-compact-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pack-compact-cover {
  width: 126px;
  min-width: 126px;
  height: 168px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.08);
  position: relative;
}

.pack-compact-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
}

.pack-compact-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.pack-compact-line {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pack-compact-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.pack-compact-value {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: #1e293b;
  word-break: break-all;
}

.pack-compact-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.pack-compact-title {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pack-compact-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pack-compact-joiners {
  font-size: 12px;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pack-compact-hint {
  font-size: 12px;
  font-weight: 900;
  color: #6366f1;
  letter-spacing: 0.1em;
}

.resource-empty-card {
  min-height: 140px;
  display: flex;
  align-items: center;
}

@media (max-width: 1280px) {
  .pack-compact-head {
    gap: 10px;
  }

  .pack-compact-cover {
    width: 96px;
    min-width: 96px;
    height: 128px;
  }
}

/* ========== 全页数据加载遮罩（各业务页 init 调用 show/hide） ========== */
.mfxq-page-loading {
  position: fixed;
  inset: 0;
  z-index: 120000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  isolation: isolate;
}

.mfxq-page-loading[hidden] {
  display: none !important;
}

.mfxq-page-loading__panel {
  min-width: 240px;
  padding: 28px 36px 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
}

.mfxq-page-loading__spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 3px solid #fed7aa;
  border-top-color: #ea580c;
  border-radius: 50%;
  animation: mfxq-page-loading-spin 0.72s linear infinite;
}

@keyframes mfxq-page-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.mfxq-page-loading__text {
  margin: 18px 0 0;
  font-size: 16px;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: 0.06em;
}

.mfxq-page-loading__sub {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

/* 顶栏 VIP +「手机版」同高并排（#pcTopStudySummary） */
.mfpc-top-vip-mobile-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mfpc-top-vip-mobile-wrap [data-open-vip="1"],
.mfpc-top-vip-mobile-wrap .mfpc-top-mobile-h5-btn {
  box-sizing: border-box;
  min-height: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mfpc-inline-metrics .mfpc-top-vip-mobile-wrap [data-top-action="vip"],
.mfpc-inline-metrics .mfpc-top-vip-mobile-wrap .mfpc-top-mobile-h5-btn {
  min-height: 38px;
  height: 38px;
}

/* 顶栏「手机版」→ H5 二维码弹窗（靛紫与 VIP 橙区分） */
.mfpc-top-mobile-h5-btn {
  flex-shrink: 0;
  margin-left: 0;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #eef2ff;
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 42%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.mfpc-top-mobile-h5-btn:hover {
  color: #fff;
  filter: brightness(1.06);
  box-shadow: 0 4px 16px rgba(67, 56, 202, 0.45);
  transform: translateY(-1px);
}

.mfpc-top-mobile-h5-btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

/* 与 mfpc-pill-btn 并存时覆盖 pages.css 里的灰白药丸样式 */
.mfpc-pill-btn.mfpc-top-mobile-h5-btn {
  min-height: 38px;
  height: 38px;
  padding: 0 14px;
  color: #eef2ff;
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 42%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.mfpc-pill-btn.mfpc-top-mobile-h5-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 42%, #4f46e5 100%);
  transform: translateY(-1px);
}

.mfpc-inline-metrics .mfpc-top-vip-pill.mfpc-pill-btn {
  min-height: 38px;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mfpc-mobile-h5-qr-card {
  position: relative;
  max-width: 340px;
  padding: 28px 24px 22px;
  text-align: center;
}

.mfpc-mobile-h5-qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  color: #94a3b8;
  background: #f1f5f9;
  cursor: pointer;
}

.mfpc-mobile-h5-qr-close:hover {
  color: #f97316;
  background: #ffedd5;
}

.mfpc-mobile-h5-qr-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.mfpc-mobile-h5-qr-frame {
  display: inline-flex;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.mfpc-mobile-h5-qr-img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.mfpc-mobile-h5-qr-canvas {
  display: block;
  width: 220px;
  height: 220px;
  vertical-align: top;
}

.mfpc-mobile-h5-qr-tip {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}
