/* 手机端：大字号底部选择器，替代原生 select 弹出层 */
body.mp-sheet-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .mp-root {
    position: relative;
    width: 100%;
  }

  .mp-root select.mp-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .mp-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 2px solid var(--border, #e2ddd3);
    border-radius: 14px;
    background: #fff;
    color: var(--text, #0f172a);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 33, 71, 0.04);
  }

  .mp-trigger:active {
    background: #f8fafc;
  }

  .mp-trigger-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mp-trigger-caret {
    flex-shrink: 0;
    font-size: 12px;
    opacity: 0.55;
  }

  .mp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: mp-fade-in 0.2s ease both;
  }

  .mp-backdrop[hidden] {
    display: none !important;
  }

  .mp-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 301;
    max-height: min(72vh, 520px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 33, 71, 0.18);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: mp-slide-up 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .mp-sheet[hidden] {
    display: none !important;
  }

  .mp-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
  }

  .mp-sheet-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy, #002147);
  }

  .mp-sheet-done {
    border: none;
    background: none;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-light, #1e5a8a);
    padding: 6px 4px;
    cursor: pointer;
  }

  .mp-sheet-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 12px;
  }

  .mp-group-label {
    padding: 12px 20px 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--muted, #64748b);
  }

  .mp-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: none;
    background: none;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--text, #0f172a);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mp-option:active {
    background: #f1f5f9;
  }

  .mp-option.active {
    background: #e8f1f8;
    color: var(--navy, #002147);
  }

  .mp-option-check {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-light, #1e5a8a);
    opacity: 0;
  }

  .mp-option.active .mp-option-check {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .mp-trigger,
  .mp-backdrop,
  .mp-sheet {
    display: none !important;
  }
}

@keyframes mp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mp-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
