/* 免抠素材网 移动版样式表（m.mksucai.com）
 * 与 PC 端 style.css 完全独立，仅复用品牌色 #c20c0c 与图片 CDN。
 */
:root {
    --brand: #c20c0c;
    --brand-dark: #a90a0a;
    --brand-soft: #fff2f2;
    --ink: #1d2129;
    --ink-2: #5a6069;
    --ink-3: #9aa0aa;
    --line: #ececf0;
    --bg: #f5f6f8;
    --card: #fff;
    --radius: 14px;
    --topbar-h: 52px;
    --tabbar-h: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body.m-body {
    margin: 0;
    /* 宽屏时页面呈一列居中，四周留浅灰背景；手机全宽时该背景不可见 */
    background: #e9ebef;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, p, ul, dl { margin: 0; padding: 0; }
ul { list-style: none; }
.mk-icon { width: 22px; height: 22px; flex: none; }

/* 全站统一为一条居中列：所有固定层（顶栏/底栏/操作栏/弹层）都按同一宽度居中 */
.m-app {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    box-shadow: 0 0 32px rgba(29,33,41,.08);
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
}
.m-body.has-actionbar .m-app { padding-bottom: calc(68px + var(--safe-bottom)); }
.m-main { padding: 0 12px 16px; }

/* ---------- 顶栏 ---------- */
.m-topbar {
    position: sticky; top: 0; z-index: 40;
    height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.m-topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.m-top-btn {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--ink); flex: none;
}
.m-top-btn:active { background: #f2f2f4; }
.m-top-btn .mk-icon { width: 21px; height: 21px; }
.m-top-brand { display: flex; align-items: center; flex: none; }
.m-brand-logo { display: block; width: auto; height: 30px; }
.m-top-title {
    flex: 1; min-width: 0; font-size: 17px; font-weight: 600; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-top-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.m-top-avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.m-top-avatar .mk-icon { width: 21px; height: 21px; }

/* ---------- 搜索框 ---------- */
.m-searchbar {
    position: relative; display: flex; align-items: center; gap: 6px;
    height: 46px; padding: 0 6px 0 12px;
    background: #fff; border: 1px solid #f0d9d9; border-radius: 24px;
    box-shadow: 0 6px 18px rgba(194,12,12,.08);
}
.m-searchbar.is-compact { height: 42px; box-shadow: none; border-color: var(--line); }
.m-search-ico { display: flex; color: var(--brand); }
.m-search-ico .mk-icon { width: 19px; height: 19px; }
.m-search-input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
    color: var(--ink); font-size: 15px; appearance: none;
}
.m-search-input::-webkit-search-cancel-button { display: none; }
.m-search-clear { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink-3); }
.m-search-clear .mk-icon { width: 16px; height: 16px; }
.m-search-submit {
    flex: none; height: 34px; padding: 0 16px; border: 0; border-radius: 18px;
    background: var(--brand); color: #fff; font-weight: 600; font-size: 14px;
}
.m-searchbar.is-compact .m-search-submit { height: 30px; padding: 0 13px; font-size: 13px; }
.m-search-sticky { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 30; padding: 10px 0 8px; background: var(--bg); }
.search-suggest-panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12); overflow: hidden; display: none;
}
.search-suggest-item { padding: 11px 14px; border-bottom: 1px solid #f5f5f7; color: var(--ink-2); }
.search-suggest-item:last-child { border-bottom: 0; }
.search-suggest-item.is-active { background: var(--brand-soft); color: var(--brand); }
.search-suggest-item b { color: var(--brand); }

/* ---------- 通用组件 ---------- */
.m-card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(29,33,41,.04); }
.m-section { margin-bottom: 16px; }
.m-section-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 10px; }
.m-section-head h2 { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; }
.m-section-head h2 .mk-icon { width: 19px; height: 19px; color: var(--brand); }
.m-section-head a, .m-section-head .m-count { display: flex; align-items: center; gap: 2px; font-size: 13px; color: var(--ink-3); }
.m-section-head a .mk-icon { width: 14px; height: 14px; }
.m-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px;
    font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.m-btn .mk-icon { width: 18px; height: 18px; }
.m-btn-primary { background: var(--brand); color: #fff; }
.m-btn-primary:active { background: var(--brand-dark); }
.m-btn-primary:disabled, .m-btn-primary[disabled] { background: #d8b5b5; color: #fff; cursor: not-allowed; }
.m-btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.m-btn-soft { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.m-btn-block { display: flex; width: 100%; }
.m-link { display: inline-block; color: var(--brand); font-size: 14px; }

.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m-card-item { display: block; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(29,33,41,.05); }
.m-thumb, .m-record-thumb {
    position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
    background-color: #f5f5f7;
    background-image: linear-gradient(45deg, #ececef 25%, transparent 25%, transparent 75%, #ececef 75%),
                      linear-gradient(45deg, #ececef 25%, transparent 25%, transparent 75%, #ececef 75%);
    background-size: 16px 16px; background-position: 0 0, 8px 8px;
}
.m-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.m-item-title { padding: 8px 10px 10px; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-empty { padding: 40px 16px; text-align: center; color: var(--ink-3); }
.m-empty .mk-icon { width: 42px; height: 42px; color: #d5d8de; }
.m-empty p { margin: 10px 0 16px; font-size: 14px; }
.m-empty-page { padding: 60px 16px; }
.m-empty-page h1 { margin: 12px 0 4px; font-size: 22px; color: var(--ink); }
.m-empty-page p { margin-bottom: 20px; }
.m-empty-page .m-btn { margin-bottom: 12px; }
.m-empty-page .m-link { display: block; }

.m-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.m-chips::-webkit-scrollbar { display: none; }
.m-chip { flex: none; padding: 7px 15px; border-radius: 18px; background: #fff; color: var(--ink-2); font-size: 14px; border: 1px solid var(--line); }
.m-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.m-related-tags, .m-detail-tags, .m-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
/* 搜索页相关关键词：默认收起两行，可展开 */
.m-related-box { margin-bottom: 6px; }
.m-related-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; font-size: 13px; color: var(--ink-3); }
.m-related-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border: 0; background: none; color: var(--brand); font-size: 13px; }
.m-related-toggle[style*="display: none"], .m-related-toggle[hidden] { display: none; }
.m-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .2s; }
.m-related-toggle.is-up .m-caret { transform: rotate(180deg); }
.m-related-tags.is-collapsed { max-height: 76px; overflow: hidden; }
.m-related-tags a, .m-detail-tags a, .m-tag-cloud a, .m-hot-tags a {
    display: inline-block; padding: 6px 12px; border-radius: 16px; background: #fff;
    color: var(--ink-2); font-size: 13px; border: 1px solid var(--line);
}
.m-detail-tag-box .m-detail-tags { margin-bottom: 0; }

/* 分页（兼容 Page 工具类输出的 class） */
.m-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 8px; }
.m-pager-btn { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.m-pager-btn.is-disabled { opacity: .45; pointer-events: none; }
.m-pager-info { font-size: 13px; color: var(--ink-3); }
.m-pager-info b { color: var(--brand); }
/* 数字页码已移除，仅保留上一页 / 下一页 */

/* ---------- 首页 ---------- */
.m-hero {
    margin: 12px 0 14px; padding: 22px 16px 18px; border-radius: 18px;
    background: #fff; border: 1px solid #f0e4e4; color: #1f2329;
}
.m-hero-eyebrow { font-size: 12px; letter-spacing: 1.5px; color: #d41515; }
.m-hero-title { margin: 6px 0 4px; font-size: 23px; font-weight: 700; line-height: 1.35; }
.m-hero-title em { font-style: normal; color: #d41515; }
.m-hero-sub { margin-bottom: 16px; font-size: 13px; color: #646a73; }
.m-hero .m-searchbar { background: #f7f8fa; border-color: #e5e6eb; box-shadow: none; }
.m-hero .m-search-ico { color: #d41515; }
.m-hero .m-search-submit { background: #d41515; }
.m-hot-tags { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.m-hot-tags::-webkit-scrollbar { display: none; }
.m-hero .m-hot-tags a { flex: none; white-space: nowrap; background: #fff1f0; border-color: transparent; color: #c53030; }
.m-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.m-quick-vertical { grid-template-columns: 1fr; }
.m-quick-card {
    display: flex; align-items: center; gap: 10px; padding: 14px 12px;
    background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(29,33,41,.05);
}
.m-quick-ico { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: #fff; }
.m-quick-ico.is-png { background: linear-gradient(135deg,#ff7a45,#e1401d); }
.m-quick-ico.is-bg { background: linear-gradient(135deg,#5b8cff,#2d55c8); }
.m-quick-ico .mk-icon { width: 20px; height: 20px; }
.m-quick-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-quick-txt b { font-size: 15px; }
.m-quick-txt small { font-size: 11px; color: var(--ink-3); }
.m-quick-card > .mk-icon { width: 16px; height: 16px; color: var(--ink-3); }
.m-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 4px; padding: 12px 4px; background: #fff; border-radius: 12px; }
.m-metrics div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.m-metrics b { font-size: 14px; color: var(--brand); }
.m-metrics span { font-size: 11px; color: var(--ink-3); }
/* ---------- 搜索入口页 /search/explore ---------- */
.m-explore .m-main { padding-top: 14px; padding-bottom: 20px; }
.m-explore .m-explore-search {
    padding: 20px 16px 18px; margin:16px 0 0; border-radius: 16px;
}
.m-explore .m-explore-search h1 { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.m-explore .m-explore-search p { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.m-explore .m-section { margin-bottom: 0; }
.m-explore .m-section-head { margin: 20px 2px 12px; }
.m-explore .m-section-head h2 { font-size: 16px; font-weight: 600; }
.m-explore .m-tag-cloud { gap: 8px; margin-bottom: 0; }
.m-explore .m-tag-cloud a { padding: 7px 14px; border-radius: 16px; font-size: 13px; }
.m-explore .m-quick { gap: 10px; margin-bottom: 0; }
.m-explore .m-quick-card { gap: 12px; padding: 14px; }
.m-explore .m-quick-ico { width: 42px; height: 42px; border-radius: 12px; }
.m-explore .m-quick-txt b { font-size: 15px; }
.m-explore .m-quick-txt small { font-size: 12px; margin-top: 2px; }

/* ---------- 详情页 ---------- */
.m-preview-card { padding: 0; overflow: hidden; }
.m-preview-stage { background-color: #f7f7f9; background-image: linear-gradient(45deg,#ececef 25%,transparent 25%,transparent 75%,#ececef 75%),linear-gradient(45deg,#ececef 25%,transparent 25%,transparent 75%,#ececef 75%); background-size: 18px 18px; background-position: 0 0,9px 9px; min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.m-preview-stage img { max-width: 100%; max-height: 420px; object-fit: contain; }
.m-attrs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.m-preview-card .m-attrs { margin-bottom: 0; padding: 14px 16px 16px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.m-preview-card .m-attrs > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.m-attrs div { display: flex; flex-direction: column; gap: 2px; }
.m-attrs span { font-size: 12px; color: var(--ink-3); }
.m-attrs b { font-size: 14px; font-weight: 600; word-break: break-all; }
.m-license h2 { font-size: 16px; margin-bottom: 8px; }
.m-license p { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.m-license a { display: inline-flex; align-items: center; gap: 3px; margin-top: 10px; color: var(--brand); font-size: 13px; }
.m-license a .mk-icon { width: 14px; height: 14px; }
.m-actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px calc(10px + var(--safe-bottom));
    background: rgba(255,255,255,.98); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,0,0,.05);
}
.m-action-mini { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 46px; font-size: 11px; color: var(--ink-2); }
.m-action-mini .mk-icon { width: 21px; height: 21px; }
.m-action-mini.is-fav, .btn-fav.is-fav { color: var(--brand); }
.is-fav .mk-icon { fill: currentColor; stroke: none; }
.m-action-main { flex: 1; }
.m-down-actionbar { flex-wrap: wrap; }
.m-down-actionbar .m-btn { flex: 1; }
.m-down-actionbar .m-btn-ghost { flex: 0 0 34%; }

/* ---------- 下载页 ---------- */
.m-vip-tip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: #fff8e8; color: #8a6200; font-size: 12px; }
.m-vip-tip a { display: inline-flex; align-items: center; white-space: nowrap; color: var(--brand); font-weight: 600; }
.m-vip-tip a .mk-icon { width: 13px; height: 13px; }
.m-down-card { text-align: center; padding: 18px 16px; }
.m-down-thumb { display: block; width: 140px; height: 140px; margin: 0 auto 12px; border-radius: 10px; overflow: hidden; background-color: #f5f5f7; background-image: linear-gradient(45deg,#ececef 25%,transparent 25%,transparent 75%,#ececef 75%),linear-gradient(45deg,#ececef 25%,transparent 25%,transparent 75%,#ececef 75%); background-size: 16px 16px; background-position: 0 0,8px 8px; }
.m-down-thumb img { width: 100%; height: 100%; object-fit: contain; }
.m-down-card h1 { font-size: 18px; margin-bottom: 8px; }
.m-down-attrs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 12px; }
.m-down-attrs span { padding: 3px 9px; border-radius: 12px; background: var(--bg); color: var(--ink-2); font-size: 12px; }
.m-down-mini { display: flex; justify-content: center; gap: 20px; padding: 8px 0 4px; border-top: 1px solid var(--line); }
.m-down-mini a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; }
.m-down-mini a .mk-icon { width: 16px; height: 16px; }
.m-down-mini a.is-fav { color: var(--brand); }
.m-direct-download { margin: 0 0 4px; }
.m-down-msg { margin-top: 10px; padding: 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 13px; text-align: left; }
.m-down-msg:empty { display: none; }
.m-down-msg a { color: var(--brand); text-decoration: underline; }
.m-verify-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.m-verify-row input { flex: 1; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.m-verify-row img { width: 100px; height: 40px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.m-down-link { margin-top: 10px; font-size: 12px; color: var(--ink-2); word-break: break-all; text-align: left; }
.m-down-link a { color: var(--brand); }

/* ---------- 登录 / 注册 ---------- */
.m-auth-page .m-main { padding-top: 0; }
.m-auth-hero { padding: 26px 0 18px; text-align: center; }
.m-auth-logo { display: block; width: 178px; max-width: 62%; height: auto; margin: 0 auto; }
.m-auth-hero p { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.m-auth-card { padding: 6px 16px 16px; }
.m-auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.m-auth-tab { flex: 1; height: 46px; border: 0; background: none; color: var(--ink-3); font-size: 16px; font-weight: 600; position: relative; }
.m-auth-tab.is-on { color: var(--brand); }
.m-auth-tab.is-on::after { content: ''; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 32px; height: 3px; border-radius: 2px; background: var(--brand); }
.m-auth-pane { display: block; }
.m-field { display: flex; align-items: center; gap: 8px; height: 48px; margin-bottom: 12px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafafb; }
.m-field:focus-within { border-color: var(--brand); background: #fff; }
.m-field-ico { display: flex; color: var(--ink-3); }
.m-field-ico .mk-icon { width: 18px; height: 18px; }
.m-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 15px; }
.m-code-row { display: flex; gap: 8px; align-items: center; }
.m-code-row .m-field { flex: 1; margin-bottom: 12px; }
.m-code-btn { flex: none; height: 48px; margin-bottom: 12px; padding: 0 12px; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; }
.m-code-btn:disabled { opacity: .55; }
.m-auth-msg { min-height: 20px; margin: 2px 0 8px; font-size: 13px; color: var(--brand); }
.m-auth-msg.is-ok { color: #2e9e4f; }
.m-auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.m-auth-links a { color: var(--brand); }
.m-auth-agree { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; }
.m-auth-agree a { color: var(--brand); }
.m-auth-heading-row { display: flex; align-items: center; justify-content: space-between;padding:20px 0 0; }
.m-auth-back { color: var(--ink-2); font-size: 14px; }
.m-auth-title { font-size: 20px; line-height: 1.4; }
.m-auth-sub { margin: 8px 0 18px; font-size: 13px; color: var(--ink-3); }
.m-auth-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.m-auth-note .mk-icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.m-auth-benefits { display: flex; justify-content: center; gap: 18px; margin: 16px 0; font-size: 12px; color: var(--ink-3); }
.m-auth-benefits span { display: inline-flex; align-items: center; gap: 3px; }
.m-auth-benefits .mk-icon { width: 14px; height: 14px; color: #2e9e4f; }

/* ---------- 用户中心 ---------- */
.m-user-hero { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 16px; border-radius: 16px; background: linear-gradient(135deg,#d41515,#a30a0a); color: #fff; }
.m-user-face { width: 54px; height: 54px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); object-fit: cover; background: #fff; }
.m-user-meta { flex: 1; min-width: 0; }
.m-user-meta h1 { font-size: 18px; }
.m-user-meta p { font-size: 12px; opacity: .8; word-break: break-all; }
.m-vip-badge { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.2); font-size: 11px; }
.m-vip-badge.is-vip { background: #ffde8a; color: #7a4800; font-weight: 700; }
.m-vip-badge .mk-icon { width: 13px; height: 13px; }
.m-user-vip-link { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 12px; background: #fff; color: var(--brand); padding: 6px 10px; border-radius: 16px; font-weight: 600; }
.m-user-vip-link .mk-icon { width: 12px; height: 12px; }
.m-user-face-guest { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.22); }
.m-user-face-guest .mk-icon { width: 28px; height: 28px; }
.m-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.m-stats a, .m-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 4px; background: #fff; border-radius: 12px; }
.m-stats b { font-size: 20px; color: var(--brand); }
.m-stats span { font-size: 12px; color: var(--ink-3); }
.m-quota-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.m-quota-head h2 { font-size: 15px; }
.m-quota-head span { font-size: 12px; color: var(--brand); }
.m-progress { height: 8px; border-radius: 5px; background: #f0f0f2; overflow: hidden; }
.m-progress i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg,#f0664a,var(--brand)); }
.m-quota p { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.m-quota p a { color: var(--brand); }
.m-menu { padding: 4px 16px; }
.m-menu-row { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.m-menu-row:last-child { border-bottom: 0; }
.m-menu-row > .mk-icon:first-child { width: 20px; height: 20px; color: var(--brand); }
.m-menu-row > .mk-icon:last-child { width: 15px; height: 15px; color: var(--ink-3); }
.m-menu-row span { flex: 1; font-size: 15px; }
.m-menu-row em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.m-logout { margin-top: 4px; }
.m-list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 2px 10px; }
.m-list-head h1 { font-size: 17px; }
.m-list-head span { font-size: 12px; color: var(--ink-3); }
.m-record-list { background: #fff; border-radius: 12px; overflow: hidden; }
.m-record { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.m-record:last-child { border-bottom: 0; }
.m-record-thumb { width: 62px; height: 62px; flex: none; border-radius: 8px; }
.m-record-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-record-info b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-record-info span { font-size: 12px; color: var(--ink-3); }
.m-record > .mk-icon { width: 16px; height: 16px; color: var(--ink-3); }
.m-vip-status { display: flex; align-items: center; gap: 12px;margin:20px 0 0;}
.m-vip-status > .mk-icon { width: 32px; height: 32px; color: #e2a52c; }
.m-vip-status div { flex: 1; display: flex; flex-direction: column; }
.m-vip-status b { font-size: 16px; }
.m-vip-status span { font-size: 12px; color: var(--ink-3); }
.m-vip-status .m-btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.m-timeline { padding: 4px 16px; background: #fff; border-radius: 12px; }
.m-tl-item { position: relative; padding: 14px 0 14px 20px; border-bottom: 1px solid var(--line); }
.m-tl-item:last-child { border-bottom: 0; }
.m-tl-dot { position: absolute; left: 2px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.m-tl-row { display: flex; justify-content: space-between; }
.m-tl-row b { color: var(--brand); }
.m-tl-row em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.m-tl-item p { margin-top: 2px; font-size: 14px; }
.m-tl-item small { font-size: 12px; color: var(--ink-3); }
.m-invite { text-align: center; }
.m-invite > .mk-icon { width: 42px; height: 42px; color: var(--brand); }
.m-invite h1 { margin: 8px 0 4px; font-size: 18px; }
.m-invite p { margin-bottom: 14px; font-size: 13px; color: var(--ink-3); }
.m-invite textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafafb; font-size: 13px; line-height: 1.6; resize: none; margin-bottom: 12px; }

/* ---------- 支付页 ---------- */
.m-pay-hero { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 18px 16px; border-radius: 16px; background: linear-gradient(135deg,#2c2c34,#141419); color: #fff; }
.m-pay-hero > .mk-icon { width: 34px; height: 34px; color: #ffd76a; }
.m-pay-hero h1 { font-size: 18px; }
.m-pay-hero p { font-size: 12px; opacity: .75; }
.m-upgrade-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: #fff6e2; color: #8a6200; font-size: 13px; }
.m-upgrade-banner span { display: inline-flex; align-items: center; gap: 6px; }
.m-upgrade-banner .mk-icon { width: 17px; height: 17px; }
.m-plans { display: flex; flex-direction: column; gap: 10px; }
.m-plan { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.m-plan.is-on { border-color: var(--brand); background: var(--brand-soft); }
.m-plan-radio { width: 18px; height: 18px; flex: none; border: 2px solid #cfd2d8; border-radius: 50%; }
.m-plan.is-on .m-plan-radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px #fff; }
.m-plan-info { flex: 1; display: flex; flex-direction: column; }
.m-plan-info b { font-size: 16px; }
.m-plan-info small { font-size: 12px; color: var(--ink-3); }
.m-plan-price { font-size: 24px; font-weight: 700; color: var(--brand); }
.m-plan-price small { font-size: 14px; }
.m-plan-tag { position: absolute; top: -8px; right: 12px; padding: 1px 8px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; font-style: normal; }
.m-benefits ul { display: flex; flex-direction: column; gap: 8px; }
.m-benefits li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.m-benefits li .mk-icon { width: 16px; height: 16px; color: #2e9e4f; }
.m-pay-method-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.m-pay-method-row > .mk-icon { width: 28px; height: 28px; color: #1677ff; }
.m-pay-method-row span { flex: 1; font-weight: 600; }
.m-pay-method-row em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.m-pay-method p { font-size: 12px; color: var(--ink-3); }
.m-pay-notice { margin: 12px 0; padding: 12px; border-radius: 10px; background: #fff8e8; color: #8a6200; font-size: 13px; }
.m-pay-actionbar { justify-content: space-between; }
.m-pay-total { font-size: 13px; color: var(--ink-2); }
.m-pay-total b { font-size: 21px; color: var(--brand); }
.m-pay-actionbar .m-btn { min-width: 150px; }
.m-upgrade-price .m-price-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.m-upgrade-price h1 { margin-bottom: 8px; font-size: 18px; }
.m-upgrade-price .is-total { border-bottom: 0; font-weight: 700; }
.m-upgrade-price .is-total b { color: var(--brand); font-size: 20px; }
.m-pay-result-actions { display: flex; flex-direction: column; gap: 10px; }
.m-pay-hint { padding: 0 12px 16px; text-align: center; font-size: 12px; color: var(--ink-3); }

/* ---------- 帮助中心 ---------- */
.m-help-nav { padding-top: 10px; }
.m-help-body h1 { margin-bottom: 14px; font-size: 19px; }
.m-help-body p { margin-bottom: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.m-help-body h2 { margin: 18px 0 8px; font-size: 16px; }
.m-help-body a { color: var(--brand); }
.m-help-body .help-info { padding: 12px; border-radius: 10px; background: var(--bg); font-size: 13px; line-height: 2; }
.m-help-body .help-qa { margin: 14px 0; padding-left: 12px; border-left: 3px solid var(--brand); }
.m-help-body .pd { color: var(--ink-2); }

/* ---------- 底部 ---------- */
.m-sitefoot { padding: 20px 12px 10px; text-align: center; color: var(--ink-3); font-size: 11px; }
.m-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 8px; font-size: 12px; }
.m-sitefoot p { margin-bottom: 10px; }
.m-pc-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink-2); font-size: 12px; }
.m-pc-link .mk-icon { width: 15px; height: 15px; }
.m-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    height: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
    background: rgba(255,255,255,.98); border-top: 1px solid var(--line);
}
.m-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); font-size: 11px; }
.m-tab .mk-icon { width: 22px; height: 22px; }
.m-tab.is-active { color: var(--brand); font-weight: 600; }
.m-toast {
    position: fixed; left: 50%; top: 45%; z-index: 100; transform: translate(-50%,-50%) scale(.95);
    max-width: 78%; padding: 11px 18px; border-radius: 10px; background: rgba(29,33,41,.9); color: #fff;
    font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.m-toast.is-show { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.m-sheet-mask { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); display: none; }
.m-sheet-mask.is-show { display: block; }
.m-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    max-height: 78vh; overflow-y: auto; border-radius: 18px 18px 0 0; background: #fff;
    transform: translateY(102%); transition: transform .25s ease;
    padding-bottom: var(--safe-bottom);
    pointer-events: none;
}
.m-sheet.is-show { transform: translateY(0); pointer-events: auto; }
.m-sheet.is-center {
    top: 50%; bottom: auto; left: 50%; right: auto; margin: 0;
    width: calc(100% - 48px); max-width: 360px; border-radius: 16px;
    transform: translate(-50%, -46%) scale(.96); opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}
.m-sheet.is-center.is-show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.m-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.m-sheet-head h2 { font-size: 17px; }
.m-sheet-close {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: #f2f3f5; color: var(--ink-3);
    font-size: 18px; line-height: 1; cursor: pointer;
}
.m-sheet-close:active { background: #e6e8eb; }
.m-sheet-body { padding: 6px 18px 20px; }
.m-form-tip { padding: 10px 12px; margin-bottom: 14px; border-radius: 8px; background: var(--brand-soft); color: var(--ink-2); font-size: 12px; }
.m-radio-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.m-radio { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.m-radio.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.m-radio input { accent-color: var(--brand); margin: 0; }
.m-form-label { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.m-sheet-body textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; resize: vertical; }
.m-form-count { margin: 4px 0 14px; text-align: right; font-size: 12px; color: var(--ink-3); }
.m-dialog-msg { margin: 0 0 18px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.m-dialog-actions { display: flex; gap: 10px; }
.m-dialog-actions .m-btn { flex: 1; }
.m-user-mini { display: flex; align-items: center; gap: 8px; padding: 10px; font-size: 14px; }
.m-user-mini img { width: 36px; height: 36px; border-radius: 50%; }
.m-user-mini a { color: var(--brand); }

/* ---------- 适配 ---------- */
/* 固定层与 .m-app 使用同一套居中规则：left/right 归零 + margin:auto + 相同 max-width，
   不使用 transform 居中，避免 sticky 顶栏和 fixed 底栏被横向偏移。 */
.m-tabbar, .m-actionbar, .m-sheet {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 640px) {
    .m-app { box-shadow: 0 0 40px rgba(29,33,41,.12); }
    .m-toast { max-width: 400px; }
}
@media (max-width: 359px) {
    .m-grid { gap: 8px; }
    .m-hero-title { font-size: 20px; }
    .m-brand-logo { height: 26px; }
}
