/* member_price_show 前台样式（商品详情页 - 仿智充网街设计） */
.mps-price-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5757 0%, #ff8a4c 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(255, 87, 87, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    margin: 4px 0 6px;
}
.mps-price-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 87, 87, 0.4);
    filter: brightness(1.04);
}
.mps-price-btn:active { transform: translateY(0); }
.mps-price-btn i { font-size: 14px; }

html.dark-mode .mps-price-btn {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff7a35 100%);
    box-shadow: 0 4px 14px rgba(255, 77, 77, 0.4);
}

/* 弹窗遮罩 */
.mps-mask {
    position: fixed; inset: 0;
    background: rgba(20, 24, 38, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    animation: mpsFadeIn 0.18s ease-out;
}
@keyframes mpsFadeIn { from { opacity: 0; } to { opacity: 1; } }
.mps-mask[hidden] { display: none; }

/* 弹窗面板 */
.mps-panel {
    position: relative;
    width: min(420px, 100%);
    max-height: 80vh;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 26px 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: mpsSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
@keyframes mpsSlideUp { from { transform: translateY(18px) scale(0.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

html.dark-mode .mps-panel {
    background: #23272f;
    color: #e6e8ee;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.mps-close {
    position: absolute; top: 14px; right: 14px;
    width: 28px; height: 28px;
    border: none; background: transparent;
    color: #8a8a8a; font-size: 16px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.mps-close:hover { background: rgba(0,0,0,0.06); color: #333; }
html.dark-mode .mps-close { color: #aab0bc; }
html.dark-mode .mps-close:hover { background: rgba(255,255,255,0.08); color: #fff; }

.mps-title {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    color: #2c3142;
}
html.dark-mode .mps-title { color: #f0f3f8; }

.mps-body {
    max-height: 56vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mps-body::-webkit-scrollbar { width: 6px; }
.mps-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
html.dark-mode .mps-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }

/* 等级行 */
.mps-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #f7f8fa;
    border: 1px solid transparent;
    transition: border-color 0.15s, background 0.15s;
}
.mps-row:last-child { margin-bottom: 0; }
.mps-row.is-current {
    background: linear-gradient(135deg, #fff1ed 0%, #ffe4dc 100%);
    border-color: #ff5757;
}
html.dark-mode .mps-row { background: #2a2f38; }
html.dark-mode .mps-row.is-current {
    background: linear-gradient(135deg, #3a2a2a 0%, #4a2f24 100%);
    border-color: #ff6b4a;
}
.mps-row-name {
    font-size: 14px;
    color: #4a4f5a;
    display: flex; align-items: center; gap: 8px;
}
html.dark-mode .mps-row-name { color: #c8ccd4; }
.mps-row.is-current .mps-row-name { color: #c23838; font-weight: 600; }
html.dark-mode .mps-row.is-current .mps-row-name { color: #ff8a6b; }

.mps-current-badge {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ff5757;
    color: #fff;
    font-weight: 500;
}
.mps-row-price {
    font-size: 15px;
    font-weight: 600;
    color: #ff5757;
    font-feature-settings: 'tnum';
}
.mps-row.is-current .mps-row-price { font-size: 17px; }

/* 空/加载/错误状态 */
.mps-loading, .mps-empty, .mps-error {
    text-align: center;
    padding: 40px 0;
    color: #8a8a8a;
    font-size: 14px;
}
.mps-loading i { margin-right: 6px; }
.mps-error { color: #e64a4a; }

/* footer 提示 */
.mps-footer-tip {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: #8a8a8a;
    line-height: 1.6;
}
.mps-footer-tip a {
    color: #ff5757;
    text-decoration: none;
    margin: 0 4px;
    font-weight: 600;
}
.mps-footer-tip a:hover { text-decoration: underline; }

/* 移动端适配 */
@media (max-width: 768px) {
    .mps-panel { border-radius: 14px; padding: 22px 18px 18px; }
    .mps-price-btn { height: 32px; padding: 0 12px; font-size: 12px; }
    .mps-row { padding: 10px 12px; }
    .mps-row-price { font-size: 14px; }
}
