/* MU-GM灵智技术开发 · public/static/mobile/css/m-base.css —— 手机站 APP 外壳(v1.179)
   独立样式体系:不 import PC base.css,仅复用 tokens.css 暗色变量。
   APP 特征:固定顶栏 + 底部 Tab 栏、无 hover 依赖、44px 触控目标、safe-area 适配。
   v1.180:整页限宽 750px 居中(PC 直接打开也不会超宽拉通),吸顶/吸底栏同步限宽。
   v1.187:区块标题 .m-section__hd 居中,「全部」.m-more 绝对定位右侧不占位。
   v1.188:视觉质感升级——页面背景品牌色氛围光晕、标题两侧渐变装饰线、Tab 激活
   顶部指示条、按钮/胶囊渐变+投影+按压缩放;新增局部变量 --line-strong/--m-shadow。
   v1.334:B站/小红书内容APP风——卡片大圆角(--radius-md 局部 12→16px,手机站全卡生效)、
   v1.341:按钮去立体——全站按钮(.m-btn/.m-chip/.m-chip-btn/.m-contact-fab)弃 135° 渐变+同色投影,
   统一纯色 var(--primary) 平面样式;按压缩放反馈保留。
   标题 19px/800 加粗+装饰线改左粉右蓝双色渐变、氛围光晕补紫罗兰、区块间距收紧信息流紧凑。 */

html { background: var(--bg-page); }
.m-app {
    --line-strong: rgba(255, 255, 255, .22);
    --m-shadow: 0 6px 22px rgba(0, 0, 0, .22);
    --radius-md: 16px;
    margin: 0 auto;
    padding: 0;
    max-width: 750px;
    background:
        radial-gradient(120% 44% at 50% -6%, rgba(79, 124, 255, .10), transparent 60%),
        radial-gradient(90% 30% at 88% 32%, rgba(255, 83, 100, .05), transparent 65%),
        radial-gradient(70% 26% at 6% 58%, rgba(157, 123, 255, .06), transparent 65%),
        var(--bg-page);
    color: var(--text-main);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
    overscroll-behavior-y: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.m-app * { box-sizing: border-box; }
.m-app a { color: inherit; text-decoration: none; }
.m-app img { display: block; max-width: 100%; }
.m-app svg { width: 22px; height: 22px; flex: none; }
.svg-sprite { display: none; }

/* ===== 顶栏(吸顶) ===== */
.m-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    max-width: 750px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 52px; padding: 0 14px;
    padding-top: env(safe-area-inset-top);
    background: rgba(10, 15, 29, .92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.m-header__left { display: flex; align-items: center; min-width: 0; }
.m-header__back { flex: none; margin-left: -8px; }
.m-header__brand {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    font-size: 17px; font-weight: 700;
}
.m-header__brand img { height: 28px; width: auto; }
.m-header__brand span {
    max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-header__acts { display: flex; align-items: center; gap: 6px; }
.m-header__btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; color: var(--text-secondary);
}
.m-header__btn:active { color: var(--text-main); }
.m-header__login {
    display: flex; align-items: center; height: 32px; padding: 0 14px;
    border-radius: 8px; background: var(--primary); color: #fff; font-size: 14px;
}

/* ===== 主体留白 ===== */
.m-main {
    padding: calc(52px + env(safe-area-inset-top)) 0 calc(60px + env(safe-area-inset-bottom));
    max-width: 750px; margin: 0 auto;
}

/* ===== 底部 Tab 栏(吸底 + 安全区) ===== */
.m-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    max-width: 750px; margin: 0 auto;
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(15, 23, 40, .96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
}
.m-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; height: 56px; font-size: 11px; color: var(--text-muted);
}
.m-tab svg { width: 24px; height: 24px; }
.m-tab { position: relative; }
.m-tab.is-active { color: var(--primary); font-weight: 600; }
.m-tab.is-active::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
}

/* ===== 通用区块 ===== */
.m-section { margin-top: 16px; padding: 0 14px; }
.m-section__hd {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.m-section__hd h3 {
    display: flex; align-items: center; gap: 10px;
    margin: 0; font-size: 19px; font-weight: 800; text-align: center;
    letter-spacing: 1px;
}
.m-section__hd h3::before, .m-section__hd h3::after {
    content: ""; width: 30px; height: 2px; flex: none;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(251, 114, 153, .85));
}
.m-section__hd h3::after { background: linear-gradient(90deg, rgba(79, 124, 255, .85), transparent); }
.m-more {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; gap: 2px; min-height: 44px;
    color: var(--text-muted); font-size: 13px;
}
.m-more svg { width: 16px; height: 16px; }

.m-chip {
    display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
    border-radius: 13px;
    background: var(--primary); color: #fff; font-size: 12px;
}
.m-chip-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 32px; padding: 0 16px; border: 0; border-radius: 8px;
    background: var(--primary); color: #fff; font-size: 13px; font-weight: 600;
}
.m-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 28px; border: 0; border-radius: 8px;
    background: var(--primary); color: #fff; font-size: 15px; font-weight: 600;
    transition: transform .15s;
}
.m-btn:active { transform: scale(.97); }
.m-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); font-size: 14px; }

/* ===== 客服悬浮按钮 + 二维码弹窗(v1.331,全站布局级:后台站点配置任一客服二维码上传后显示) ===== */
.m-contact-fab {
    position: fixed; right: 14px; bottom: calc(56px + env(safe-area-inset-bottom) + 16px); z-index: 95;
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; border-radius: 50%; padding: 0;
    background: var(--primary); color: #fff; cursor: pointer;
    transition: transform .15s ease;
}
.m-contact-fab:active { transform: scale(.92); }
.m-contact-fab svg { width: 24px; height: 24px; }
.m-contact { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.m-contact[hidden] { display: none; }
.m-contact__mask {
    position: absolute; inset: 0;
    background: rgba(5, 9, 18, .68);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.m-contact__box {
    position: relative; width: 100%; max-width: 340px;
    background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--m-shadow);
}
.m-contact__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.m-contact__head h3 { margin: 0; font-size: 15px; }
.m-contact__close {
    width: 32px; height: 32px; border: 0; border-radius: 8px; padding: 0;
    background: var(--bg-card-light); color: var(--text-secondary); font-size: 18px; line-height: 1; cursor: pointer;
}
.m-contact__body { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 16px 14px 6px; }
.m-contact__card { text-align: center; }
.m-contact__qr { display: inline-block; padding: 8px; border-radius: 10px; background: #fff; line-height: 0; }
.m-contact__qr img { width: 132px; height: auto; max-width: 100%; }
.m-contact__name {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    margin: 8px 0 0; font-size: 13px; color: var(--text-main);
}
.m-contact__ico { width: 16px; height: 16px; }
.m-contact__ico--qq { color: #12b7f5; }
.m-contact__ico--wx { color: #07c160; }
.m-contact__tip { margin: 0; padding: 4px 14px 14px; font-size: 12px; color: var(--text-muted); text-align: center; }

/* v1.344 视觉隐藏 h1(手机首页补标题层级用,读屏可见/视觉不可见) */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* v1.474 前台内容保护(后台开关开启,content-protect.js 给 body 挂 cp-protect 类):
   禁长按/划词选择文本与图片菜单,输入框放行 */
body.cp-protect,
body.cp-protect *:not(input):not(textarea):not([contenteditable]) {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
body.cp-protect img { -webkit-user-drag: none; -webkit-touch-callout: none; }


/* v1.475 前台内容保护俏皮提示(手机版:右下角,bottom 避让底栏 56px 与客服/发布悬浮钮) */
.cp-toast {
    position: fixed;
    right: 12px;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 84px);
    z-index: 960;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 262px;
    padding: 10px 13px;
    border: 1px solid rgba(79, 124, 255, .42);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    background: rgba(13, 20, 36, .94);
    box-shadow: var(--m-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(26px);
    transition: opacity .26s ease, transform .26s ease, visibility .26s;
    pointer-events: none;
}
.cp-toast.is-show { opacity: 1; visibility: visible; transform: none; }
.cp-toast__ico { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--primary); }
.cp-toast__ico svg { display: block; width: 100%; height: 100%; }
.cp-toast__bd { display: block; min-width: 0; }
.cp-toast__tt { display: block; margin: 0; font-size: .88rem; font-weight: 700; color: var(--text-main); }
.cp-toast__tx { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.5; color: var(--text-secondary); }