/* 小程序预览 · 手机外壳与小程序风格组件 */
.mp-body { margin: 0; min-height: 100vh; background: radial-gradient(900px 500px at 15% -10%, #e3ebff, transparent 60%), #eef2f9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #1b2436; }
.mp-stage { display: flex; align-items: flex-start; justify-content: center; gap: 44px; padding: 34px 30px 40px; flex-wrap: wrap; }
.mp-side { width: 290px; padding-top: 60px; }
.mp-side h1 { font-size: 25px; font-weight: 700; letter-spacing: .5px; }
.mp-side .lead { color: #7b879c; font-size: 13px; line-height: 1.8; margin: 12px 0 22px; }
.mp-side .feat { background: #fff; border: 1px solid #e5eaf2; border-radius: 14px; padding: 16px 18px; box-shadow: 0 8px 28px rgba(28,45,90,.06); }
.mp-side .feat li { font-size: 12.5px; color: #47536b; padding: 7px 0 7px 20px; position: relative; }
.mp-side .feat li::before { content: '✓'; position: absolute; left: 0; color: #3d6bf5; font-weight: 700; }
.mp-side .links { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.mp-side .links a { font-size: 12.5px; color: #3d6bf5; }
.mp-side .note { font-size: 11.5px; color: #93a0b5; line-height: 1.7; margin-top: 18px; }

.phone { width: 390px; height: 800px; flex: none; background: #101828; border-radius: 48px; padding: 10px; box-shadow: 0 30px 80px rgba(16, 30, 60, .28), inset 0 0 0 2px #2b3a55; position: relative; }
.mp-screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #f6f8fc; display: flex; flex-direction: column; }
.mp-statusbar { height: 30px; flex: none; background: #3d6bf5; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 11px; font-weight: 600; }
.mp-navbar { height: 48px; flex: none; background: #3d6bf5; color: #fff; display: flex; align-items: center; justify-content: center; position: relative; }
.mp-navbar .nav-title { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.mp-capsule { position: absolute; right: 12px; top: 9px; height: 30px; border: 1px solid rgba(255,255,255,.45); border-radius: 16px; display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12px; }
.mp-capsule i { width: 1px; height: 15px; background: rgba(255,255,255,.4); }
.mp-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 14px 18px; }
.mp-content::-webkit-scrollbar { width: 0; }
.mp-tabbar { height: 58px; flex: none; background: #fff; border-top: 1px solid #e9edf5; display: flex; }
.mp-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; color: #8491a8; }
.mp-tabbar button .tb-ico { font-size: 18px; line-height: 1; }
.mp-tabbar button.on { color: #3d6bf5; font-weight: 700; }
.mp-tabbar.hidden { display: none; }
.mp-homebar { height: 16px; flex: none; background: #fff; display: flex; align-items: center; justify-content: center; }
.mp-homebar i { width: 110px; height: 4px; border-radius: 4px; background: #1b2436; opacity: .8; }

.mp-toast { position: absolute; left: 50%; bottom: 90px; transform: translate(-50%, 8px); background: rgba(20, 32, 56, .9); color: #fff; font-size: 12px; padding: 9px 16px; border-radius: 20px; opacity: 0; pointer-events: none; transition: .2s; max-width: 300px; text-align: center; z-index: 60; }
.mp-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 小程序组件 */
.m-card { background: #fff; border: 1px solid #e9edf5; border-radius: 12px; padding: 13px; margin-bottom: 12px; }
.m-row { display: flex; align-items: center; }
.m-between { justify-content: space-between; }
.m-spacer { flex: 1; }
.m-title { font-size: 14px; font-weight: 700; }
.m-muted { color: #8491a8; font-size: 11px; }
.m-bold { font-weight: 700; }
.m-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 600; background: #eaf0ff; color: #3d6bf5; }
.m-tag.green { background: #e4f7f0; color: #12a37a; }
.m-tag.orange { background: #fff3df; color: #c47c14; }
.m-tag.red { background: #fdecec; color: #eb5c5c; }
.m-up { color: #12a37a; }
.m-down { color: #eb5c5c; }
.m-section { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 9px; }
.m-section .st { font-size: 13px; font-weight: 700; }
.m-section .ss { font-size: 10.5px; color: #8491a8; }

.m-banner { display: flex; align-items: center; gap: 10px; background: linear-gradient(110deg, #eaf0ff, #f4f7ff); border: 1px solid #dce6ff; border-radius: 12px; padding: 11px 12px; margin-bottom: 12px; }
.m-banner.closed { background: linear-gradient(110deg, #fff5e6, #fffaf2); border-color: #fae3bf; }
.m-banner .bi { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.m-banner .bt { font-size: 12.5px; font-weight: 700; }
.m-banner .bs { font-size: 10.5px; color: #6c7891; margin-top: 1px; }

.m-filter { display: flex; gap: 8px; margin-bottom: 4px; }
.m-filter select, .m-filter input, .m-input { height: 34px; border: 1px solid #e5eaf2; border-radius: 9px; background: #fff; color: #1b2436; font-size: 12px; padding: 0 10px; min-width: 0; }
.m-filter select { flex: none; width: 118px; }
.m-filter input { flex: 1; }
.m-input:focus, .m-filter input:focus { outline: none; border-color: #3d6bf5; }

.m-class-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.m-class { background: #fff; border: 1px solid #e9edf5; border-radius: 11px; padding: 11px; position: relative; text-align: left; }
.m-class.on { border-color: #3d6bf5; box-shadow: 0 0 0 2px rgba(61,107,245,.13); }
.m-class .cn { font-size: 14px; font-weight: 700; }
.m-class .cd { position: absolute; right: 9px; top: 9px; font-size: 10px; font-weight: 700; }
.m-class .cb { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 9px; }
.m-class .cs { font-size: 21px; font-weight: 700; line-height: 1; }
.m-class .cs small { font-size: 9px; color: #8491a8; font-weight: 400; }

.m-recent { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0f3f8; font-size: 11.5px; }
.m-recent:last-child { border-bottom: none; }
.m-recent .rm { flex: 1; }
.m-undo { width: 26px; height: 26px; border-radius: 8px; background: #f2f5fb; color: #eb5c5c; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.m-empty { text-align: center; color: #8491a8; font-size: 12px; padding: 26px 0; }

.m-head { background: linear-gradient(135deg, #3d6bf5, #5a83ff); color: #fff; border-radius: 14px; padding: 15px; margin-bottom: 12px; }
.m-head .ht { font-size: 15px; font-weight: 700; }
.m-head .hs { font-size: 10.5px; opacity: .85; margin-top: 3px; }
.m-kpis { display: flex; margin-top: 14px; }
.m-kpis .k { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,.22); }
.m-kpis .k:last-child { border-right: none; }
.m-kpis .k .kl { font-size: 10px; opacity: .85; }
.m-kpis .k .kv { font-size: 19px; font-weight: 700; }
.m-datebar { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e9edf5; border-radius: 10px; padding: 7px 10px; margin-bottom: 12px; font-size: 11.5px; }
.m-datebar button { color: #3d6bf5; font-size: 11.5px; font-weight: 600; }
.m-datebar button.off { color: #c3ccdb; }
.m-rank { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0f3f8; font-size: 12px; }
.m-rank:last-child { border-bottom: none; }
.m-rank .rn { width: 22px; height: 22px; border-radius: 6px; background: #f2f5fb; color: #8491a8; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.m-rank .rn.t1 { background: #fff0cf; color: #c8890c; }
.m-rank .rn.t2 { background: #e9edf5; color: #6d7c96; }
.m-rank .rn.t3 { background: #f9e4d4; color: #b87844; }
.m-rank .rname { flex: 1; font-weight: 600; }
.m-rank .rbar { width: 58px; height: 5px; border-radius: 5px; background: #eef2f9; overflow: hidden; }
.m-rank .rbar span { display: block; height: 100%; background: linear-gradient(90deg, #6d94ff, #3d6bf5); border-radius: 5px; }
.m-rank .rs { width: 34px; text-align: right; font-weight: 700; font-size: 14px; }

.m-me { display: flex; align-items: center; gap: 12px; }
.m-avatar { width: 48px; height: 48px; border-radius: 50%; background: #eaf0ff; color: #3d6bf5; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.m-kv { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f3f8; font-size: 12px; }
.m-kv:last-child { border-bottom: none; }
.m-btn { width: 100%; height: 38px; border-radius: 9px; background: #3d6bf5; color: #fff; font-size: 13px; font-weight: 700; }
.m-btn.ghost { background: #f2f5fb; color: #47536b; }
.m-btn.danger { background: #fdecec; color: #eb5c5c; }
.m-link { color: #3d6bf5; font-size: 11.5px; }

/* 登录 */
.m-login { padding: 30px 4px 10px; text-align: center; }
.m-logo { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px; background: linear-gradient(145deg, #5a83ff, #3161ee); box-shadow: 0 8px 20px rgba(61,107,245,.28); display: flex; align-items: center; justify-content: center; }
.m-logo svg { width: 32px; height: 32px; }
.m-login h2 { font-size: 18px; font-weight: 700; }
.m-login .sub { font-size: 11px; color: #8491a8; margin: 5px 0 20px; }
.m-login-card { background: #fff; border: 1px solid #e9edf5; border-radius: 16px; padding: 16px; text-align: left; box-shadow: 0 8px 24px rgba(28,45,90,.06); }
.m-seg { display: flex; background: #eff2f8; border-radius: 22px; padding: 4px; margin-bottom: 18px; }
.m-seg button { flex: 1; height: 32px; border-radius: 18px; font-size: 12px; color: #7d8aa1; font-weight: 600; }
.m-seg button.on { background: #fff; color: #1b2436; box-shadow: 0 2px 8px rgba(25,45,90,.1); }
.m-label { display: block; font-size: 11.5px; font-weight: 600; color: #47536b; margin: 0 0 5px; }
.m-login .m-input { width: 100%; height: 40px; margin-bottom: 12px; }
.m-login .m-btn { margin-top: 6px; }
.m-quick { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.m-quick button { width: 100%; height: 32px; border: 1px dashed #c9d8ff; border-radius: 9px; background: #f7f9ff; color: #3d6bf5; font-size: 11px; }
.m-error { background: #fdecec; color: #eb5c5c; border-radius: 8px; padding: 8px 10px; font-size: 11px; margin-bottom: 12px; }

/* 底部评分面板 */
.m-mask { position: absolute; inset: 0; background: rgba(18,30,55,.42); z-index: 40; display: flex; align-items: flex-end; }
.m-sheet { width: 100%; background: #fff; border-radius: 18px 18px 0 0; max-height: 76%; display: flex; flex-direction: column; }
.m-sheet-head { padding: 14px 16px 12px; border-bottom: 1px solid #e9edf5; display: flex; align-items: center; justify-content: space-between; }
.m-sheet-close { font-size: 22px; color: #8491a8; line-height: 1; }
.m-sheet-extra { padding: 10px 16px; background: #f7f9fd; border-bottom: 1px solid #e9edf5; }
.m-ex-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.m-ex-row .m-label { width: 68px; margin: 0; flex: none; }
.m-ex-row .m-input { flex: 1; height: 30px; font-size: 11.5px; }
.m-sheet-body { overflow-y: auto; padding: 4px 16px 18px; }
.m-dim { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f0f3f8; }
.m-dim-ico { width: 32px; height: 32px; border-radius: 9px; background: #eaf0ff; color: #3d6bf5; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.m-dim-info { flex: 1; min-width: 0; }
.m-dim-info .dn { font-size: 12.5px; font-weight: 700; }
.m-dim-info .dd { font-size: 10px; color: #8491a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-op { width: 30px; height: 30px; border-radius: 9px; border: 1px solid #e5eaf2; background: #fff; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.m-op.minus { color: #eb5c5c; }
.m-op.plus { color: #12a37a; }
.m-op.off { opacity: .3; }
.m-op-val { font-size: 10px; color: #8491a8; width: 28px; text-align: center; flex: none; }

@media (max-width: 1100px) { .mp-side { display: none; } }
@media (max-height: 880px) { .mp-stage { padding-top: 12px; } .phone { transform: scale(.88); transform-origin: top center; margin-bottom: -90px; } }
