/* ==========================================================================
   91助考 手机站样式（application/m）
   说明：按参考手机站版式还原，仅本文件承载 m 站样式
   ========================================================================== */

:root {
    --m-primary: #FF8A00;
    --m-primary-2: #F5A623;
    --m-red: #FF3B30;
    --m-bg: #F5F6F8;
    --m-text: #222;
    --m-sub: #666;
    --m-muted: #999;
    --m-line: #F2F3F5;
    --m-tab-h: 50px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--m-text);
    background: var(--m-bg);
    padding-bottom: calc(var(--m-tab-h) + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}

input {
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ---------- 顶部栏 ---------- */
.m-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 12px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
}

.m-logo {
    display: flex;
    align-items: center;
    gap: 7px;
}

.m-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FFB44D, #FF7A00);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.m-logo-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .3px;
}

.m-header-acts {
    display: flex;
    align-items: center;
    gap: 14px;
}

.m-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.m-header-btn svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #333;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.m-header-center {
    justify-content: center;
    position: relative;
}

.m-header-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* ---------- 首页轮播 ---------- */
.m-banner {
    padding: 2px 12px 14px;
    background: #fff;
}

/* 轮播可视区：用 padding-bottom 撑高，兼容不支持 aspect-ratio 的内置浏览器 */
.m-banner-view {
    position: relative;
    width: 100%;
    padding-bottom: 46.76%;
    border-radius: 8px;
    overflow: hidden;
    background: #EDF1F7;
}

.m-banner-track {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .4s ease;
    will-change: transform;
}

.m-banner-slide {
    flex: 0 0 100%;
    display: block;
    width: 100%;
    height: 100%;
}

.m-banner-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.m-banner-dot {
    width: 5px;
    height: 5px;
    border-radius: 3px;
    background: #E0E2E7;
    transition: all .25s ease;
}

.m-banner-dot.is-active {
    width: 12px;
    background: var(--m-primary);
}

/* ---------- 金刚区（2 行 5 列） ---------- */
.m-quick {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 16px;
    padding: 4px 4px 16px;
    background: #fff;
}

.m-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.m-quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 138, 0, .18);
}

.m-quick-name {
    font-size: 11.5px;
    color: #333;
    white-space: nowrap;
}

/* ---------- 卡片通用 ---------- */
.m-card {
    background: #fff;
    border-radius: 8px;
}

.m-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.m-card-more {
    font-size: 12px;
    color: var(--m-muted);
}

/* ---------- 推荐课程 ---------- */
.m-recommend {
    margin: 10px 12px 14px;
    padding: 12px 12px 14px;
}

.m-course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 8px;
    margin-top: 10px;
}

.m-course-card {
    display: block;
    min-width: 0;
}

.m-course-cover {
    aspect-ratio: 172 / 112;
    border-radius: 6px;
}

.m-course-info {
    padding-top: 8px;
}

.m-course-title {
    font-size: 13px;
    line-height: 1.45;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-course-region {
    margin-top: 4px;
    font-size: 11px;
    color: var(--m-muted);
}

.m-course-class {
    display: inline-block;
    max-width: 100%;
    margin-top: 6px;
    padding: 1px 5px;
    border-radius: 2px;
    background: #F5F6F8;
    color: var(--m-muted);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-course-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 6px;
}

.m-price {
    color: var(--m-red);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.2px;
}

.m-price i {
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    margin-right: 1px;
}

.m-price-old {
    color: #BBB;
    font-size: 10px;
    text-decoration: line-through;
}

/* ---------- 底部导航 ---------- */
.m-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    height: calc(var(--m-tab-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #EFEFEF;
}

.m-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #B9BDC6;
}

.m-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-tab-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.m-tab-name {
    font-size: 10px;
}

.m-tab-item.is-active {
    color: #FF7A00;
}

/* ---------- 课程商品列表页 ---------- */
.m-store-top {
    background: #fff;
}

.m-searchform {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

.m-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 17px;
    background: #F3F4F6;
}

.m-search-box svg {
    width: 15px;
    height: 15px;
    flex: none;
    fill: none;
    stroke: #B9BDC6;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.m-search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333;
}

.m-search-box input::placeholder {
    color: #B9BDC6;
}

.m-search-submit {
    flex: none;
    height: 34px;
    padding: 0 15px;
    border-radius: 17px;
    background: #F3F4F6;
    font-size: 13px;
    color: #333;
}

.m-filterbar {
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.m-filter {
    position: relative;
    flex: 1;
    min-width: 0;
}

.m-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 40px;
    font-size: 13px;
    color: var(--m-sub);
}

.m-filter-text {
    max-width: 96px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-caret {
    flex: none;
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid #C3C7CF;
    transition: transform .2s ease;
}

.m-filter.is-open .m-caret {
    transform: rotate(180deg);
}

.m-filter.is-open .m-filter-btn {
    color: var(--m-primary);
}

.m-filter-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    min-width: 100%;
    padding: 6px 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.m-filter.is-open .m-filter-panel {
    display: block;
}

.m-filter-opt {
    display: block;
    width: 100%;
    padding: 9px 16px;
    font-size: 13px;
    color: #444;
    text-align: left;
    white-space: nowrap;
}

.m-filter-opt.is-active {
    color: var(--m-primary);
}

.m-store-list {
    background: #fff;
    margin-top: 8px;
}

.m-store-item {
    display: flex;
    gap: 10px;
    padding: 13px 12px;
    border-bottom: 1px solid #F6F6F8;
}

.m-store-cover {
    flex: none;
    width: 110px;
    height: 68px;
    border-radius: 4px;
}

.m-store-info {
    position: relative;
    flex: 1;
    min-width: 0;
}

.m-store-title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-store-region {
    margin-top: 5px;
    font-size: 11px;
    color: var(--m-muted);
}

.m-store-class {
    display: inline-block;
    max-width: 60%;
    margin-top: 6px;
    padding: 2px 6px;
    border: 1px solid #F0D5B0;
    border-radius: 2px;
    color: #E19A3B;
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-store-price {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.m-store-price .m-price {
    font-size: 17px;
}

.m-store-price .m-price-old {
    font-size: 11px;
}

/* ---------- 我的 ---------- */
.page-my {
    background: var(--m-bg);
}

.m-my-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 16px 58px;
    background: linear-gradient(170deg, #FFF0D8 0%, #FFF8EE 55%, #F5F6F8 100%);
}

.m-my-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.m-my-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    flex: none;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .95);
    background: linear-gradient(135deg, #FFD79B, #FFAE45);
    box-shadow: 0 4px 12px rgba(255, 160, 40, .25);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.m-my-name {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.m-my-name i {
    font-style: normal;
    margin-left: 4px;
    color: #B9BDC6;
    font-weight: 400;
}

.m-my-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: 4px;
}

.m-my-bell svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #333;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.m-my-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: -42px 12px 12px;
    padding: 18px 0;
}

.m-my-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.m-my-grid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #FFF3E4;
    color: #FF8A00;
    font-size: 16px;
    font-weight: 600;
}

.m-my-grid-name {
    font-size: 12px;
    color: #444;
}

.m-my-list {
    margin: 0 12px 12px;
    padding: 0 14px;
}

.m-my-row {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 53px;
    border-bottom: 1px solid #F6F6F8;
}

.m-my-row:last-child {
    border-bottom: none;
}

.m-my-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    border: 1px solid #FFD9B0;
    color: #FF8A00;
    font-size: 12px;
}

.m-my-row-name {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.m-chevron {
    width: 8px;
    height: 8px;
    flex: none;
    border-top: 1.5px solid #C9CDD4;
    border-right: 1.5px solid #C9CDD4;
    transform: rotate(45deg);
}

/* ---------- 直播 ---------- */
.page-live {
    background: #fff;
}

.m-live-hero {
    background: linear-gradient(180deg, #FAD07F 0%, #F3B23F 100%);
    padding: 0 12px;
}

.m-live-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.m-live-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
}

.m-live-tab {
    position: relative;
    padding-bottom: 5px;
    font-size: 16px;
    color: rgba(255, 255, 255, .78);
}

.m-live-tab.is-active {
    color: #fff;
    font-weight: 600;
}

.m-live-tab.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    transform: translateX(-50%);
}

.m-live-acts {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-live-act {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.m-live-act svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.m-live-subtabs {
    display: flex;
    align-items: flex-end;
    padding-top: 6px;
}

.m-live-subtab {
    height: 36px;
    padding: 0 22px;
    border-radius: 7px 7px 0 0;
    background: rgba(255, 255, 255, .28);
    color: #fff;
    font-size: 13px;
}

.m-live-subtab.is-active {
    background: #fff;
    color: #F0A02A;
    font-weight: 600;
}

.m-live-filter {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #F6F6F8;
}

.m-live-filter .m-filter-btn {
    justify-content: flex-start;
    width: auto;
    height: 42px;
    font-size: 13px;
    color: #333;
}

.m-live-filter .m-filter-panel {
    min-width: 128px;
}

.m-live-list {
    padding: 6px 12px 16px;
    background: #fff;
}

.m-live-item {
    position: relative;
    display: flex;
    padding-top: 12px;
}

.m-live-item::before {
    content: "";
    position: absolute;
    left: 52px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #EEF0F4;
}

.m-live-time {
    position: relative;
    z-index: 2;
    width: 46px;
    flex: none;
    padding: 2px 10px 0 0;
    text-align: right;
}

.m-live-day {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.m-live-clock {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--m-muted);
}

.m-live-dot {
    position: absolute;
    left: 49px;
    top: 22px;
    z-index: 3;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4A9BFF;
    box-shadow: 0 0 0 3px rgba(74, 155, 255, .16);
}

.m-live-dot.next {
    background: #D6DAE1;
    box-shadow: none;
}

.m-live-card {
    flex: 1;
    min-width: 0;
    margin: 0 0 12px 16px;
    padding: 12px 12px 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.m-live-title {
    font-size: 14px;
    line-height: 1.55;
    color: #222;
}

.m-live-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.m-live-teacher {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-size: 12px;
    color: var(--m-muted);
}

.m-live-teacher svg {
    width: 14px;
    height: 14px;
    flex: none;
    fill: none;
    stroke: #B9BDC6;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.m-live-sub {
    flex: none;
    height: 26px;
    padding: 0 12px;
    border-radius: 13px;
    background: linear-gradient(90deg, #FFB840, #F5A623);
    color: #fff;
    font-size: 12px;
}

/* ---------- 登录 ---------- */
.page-login {
    background: linear-gradient(160deg, #FCC95F 0%, #F5A623 55%, #EE970B 100%);
    padding-bottom: 0;
    min-height: 100vh;
}

.m-login {
    position: relative;
    min-height: 100vh;
    padding: 0 15px;
}

.m-login-back {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.m-login-back svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.m-login-card {
    margin: 92px 15px 0;
    padding: 38px 26px 26px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(170, 95, 0, .16);
}

.m-login-title {
    margin: 0;
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    color: #333;
}

.m-login-title-line {
    width: 18px;
    height: 3px;
    margin: 10px auto 24px;
    border-radius: 2px;
    background: var(--m-primary-2);
}

.m-field {
    position: relative;
    margin-bottom: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #EFEFEF;
}

.m-field input {
    width: 100%;
    height: 42px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.m-field input::placeholder {
    color: #B9BDC6;
}

.m-field-eye {
    position: absolute;
    right: 0;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
}

.m-field-eye svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #CCC;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.m-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 18px 0 20px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--m-muted);
}

.m-agree input {
    width: 15px;
    height: 15px;
    flex: none;
    margin: 2px 0 0;
    accent-color: var(--m-primary-2);
}

.m-agree em {
    font-style: normal;
    color: #F0A02A;
    text-decoration: underline;
}

.m-field-code input {
    padding-right: 104px;
}

.m-field-code-btn {
    position: absolute;
    right: 0;
    top: 8px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #F5A623;
    border-radius: 15px;
    background: transparent;
    color: #F5A623;
    font-size: 12px;
    line-height: 1;
}

.m-field-code-btn:disabled {
    border-color: #DDD;
    color: #AAA;
}

.m-login-tip {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--m-sub);
}

.m-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border-radius: 22px;
    background: linear-gradient(90deg, #FFC14D, #F5A623);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.m-login-register {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    color: var(--m-sub);
}

/* ---------- 演示提示 ---------- */
.m-tip {
    position: fixed;
    left: 50%;
    bottom: 96px;
    z-index: 200;
    max-width: 78%;
    padding: 9px 16px;
    border-radius: 18px;
    background: rgba(0, 0, 0, .76);
    color: #fff;
    font-size: 12.5px;
    line-height: 1.5;
    transform: translateX(-50%);
}

/* ---------- 渐变占位图（无文字） ---------- */
.mb1 { background: linear-gradient(120deg, #7AC5FF 0%, #3E9BFF 55%, #2B7CFF 100%); }
.mb2 { background: linear-gradient(120deg, #FFD08A 0%, #FFA857 60%, #FF8A3D 100%); }
.mb3 { background: linear-gradient(120deg, #B7A6FF 0%, #8C7BFF 55%, #6E5BFF 100%); }

.qi1 { background: linear-gradient(135deg, #FF9B8A, #FF6B5B); }
.qi2 { background: linear-gradient(135deg, #FFC469, #FF9A2E); }
.qi3 { background: linear-gradient(135deg, #FF9BB9, #FF6A96); }
.qi4 { background: linear-gradient(135deg, #A9B6FF, #7C8CFF); }
.qi5 { background: linear-gradient(135deg, #8FD3FF, #4FA8F5); }

.c1 { background: linear-gradient(135deg, #FFB46B, #FF8A3D); }
.c2 { background: linear-gradient(135deg, #5AA6FF, #2B6BFF); }
.c3 { background: linear-gradient(135deg, #B07BFF, #7A4BFF); }
.c4 { background: linear-gradient(135deg, #7FD4FF, #3FA9F5); }

.sc1 { background: linear-gradient(135deg, #6FB8FF, #3A86F7); }
.sc2 { background: linear-gradient(135deg, #7FD0FF, #3FA0F0); }
.sc3 { background: linear-gradient(135deg, #8FB6FF, #5A7CF5); }
.sc4 { background: linear-gradient(135deg, #75C4F5, #3E8BE0); }
.sc5 { background: linear-gradient(135deg, #9BC8FF, #5D94EE); }
.sc6 { background: linear-gradient(135deg, #6FA9F0, #4272D6); }

/* ---------- 小屏适配 ---------- */
@media (max-width: 340px) {
    .m-quick-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .m-store-cover {
        width: 96px;
        height: 62px;
    }

    .m-live-subtab {
        padding: 0 16px;
    }
}

/* ---------- 我的推广功能 ---------- */
.m-promo {
    margin: 0 12px 16px;
    padding: 14px 14px 18px;
}

.m-promo-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.m-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.m-promo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.m-promo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
}

.m-promo-name {
    font-size: 13px;
    color: #333;
}

/* ---------- 子页顶栏 ---------- */
.m-pagebar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    background: #fff;
    border-bottom: 1px solid #F2F2F4;
}

.m-pagebar-title {
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.m-pagebar-back {
    position: absolute;
    left: 8px;
    top: 50%;
    padding: 10px;
    transform: translateY(-50%);
}

.m-chevron-left {
    transform: rotate(-135deg);
}

/* ---------- 专属二维码 ---------- */
.page-my-qrcode {
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.m-qr-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.m-qr-navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    padding-top: calc(14px + env(safe-area-inset-top));
}

.m-qr-navbar-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.m-qr-back {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
}

.m-qr-main {
    padding: 12px 16px 40px;
}

.m-qr-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.m-qr-card-main {
    text-align: center;
}

.m-qr-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.m-qr-subtitle {
    font-size: 12px;
    color: #999;
    margin-bottom: 18px;
}

.m-qr-box {
    width: 220px;
    height: 220px;
    margin: 0 auto 18px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.m-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.m-qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.m-qr-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-qr-btn:active {
    transform: scale(0.96);
}

.m-qr-btn-share {
    background: #ff6b6b;
    color: #fff;
}

.m-qr-btn-save {
    background: #f5f5f5;
    color: #666;
}

.m-qr-linkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.m-qr-link-ico {
    font-size: 18px;
    flex-shrink: 0;
}

.m-qr-link-text {
    flex: 1;
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

.m-qr-copy {
    flex-shrink: 0;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 12px;
}

.m-qr-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.m-qr-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.m-qr-stat {
    text-align: center;
}

.m-qr-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.m-qr-stat-label {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.m-qr-tips {
    list-style: none;
    margin: 0;
    padding: 0;
}

.m-qr-tips li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.m-qr-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.m-qr-fab {
    position: fixed;
    right: 16px;
    bottom: 90px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #07c160;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(7, 193, 96, 0.4);
}

.m-qr-fab-ico {
    font-size: 20px;
    line-height: 1;
}

.m-qr-fab-text {
    font-size: 10px;
    margin-top: 2px;
}

.m-qr-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    display: none;
}

.m-qr-toast.show {
    display: block;
}

/* ---------- 海报转发 ---------- */
.m-poster-intro {
    margin: 12px;
    padding: 18px;
    text-align: center;
}

.m-poster-intro-title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.m-poster-intro p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.m-poster-tabs {
    display: flex;
    gap: 8px;
    margin: 0 12px;
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.m-poster-tabs::-webkit-scrollbar {
    display: none;
}

.m-poster-tab {
    flex: 0 0 auto;
    padding: 7px 15px;
    border-radius: 16px;
    background: #F1F3F5;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.m-poster-tab.active {
    background: linear-gradient(135deg, var(--m-primary-2), var(--m-primary));
    color: #fff;
}

.m-poster-tip {
    margin: 12px;
    padding: 10px 12px;
    border: 1px solid #FFD9B3;
    border-radius: 8px;
    background: linear-gradient(135deg, #FFF6EC, #FFEFE6);
    font-size: 12px;
    line-height: 1.7;
    color: #9A5B00;
    word-break: break-all;
}

.m-poster-cards {
    padding: 0 12px 12px;
}

.m-poster-card {
    margin-bottom: 12px;
    padding: 14px;
}

.m-poster-copy {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
}

.m-poster-pic {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #F5F6F8;
}

.m-poster-pic img {
    display: block;
    width: 100%;
    height: auto;
}

.m-poster-btns {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.m-poster-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 8px;
    background: #F1F3F5;
    font-size: 14px;
    color: #333;
}

.m-poster-btn-primary {
    background: linear-gradient(135deg, var(--m-primary-2), var(--m-primary));
    color: #fff;
}

.m-poster-empty {
    padding: 60px 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* ---------- 海报下载弹窗 ---------- */
.m-poster-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
}

.m-poster-dialog {
    width: 100%;
    max-width: 320px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
}

.m-poster-dialog-title {
    margin-bottom: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.m-poster-dialog-desc {
    margin-bottom: 12px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.m-poster-dialog-pic {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.m-poster-dialog-pic img {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.m-poster-dialog-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}

.m-poster-dialog-back {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--m-primary-2), var(--m-primary));
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.m-share-wrap {
    padding: 12px;
}

.m-share-imgbox {
    overflow: hidden;
}

.m-share-imgbox img {
    display: block;
    width: 100%;
    height: auto;
}

.m-share-text {
    margin-top: 12px;
    padding: 14px;
}

.m-share-text-label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.m-share-text-content {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ---------- 空白占位页 ---------- */
.m-share-empty {
    padding: 90px 0 60px;
    text-align: center;
}

.m-share-empty-icon {
    font-size: 44px;
}

.m-share-empty-text {
    margin-top: 14px;
    font-size: 14px;
    color: #999;
}

/* ---------- 静态提示文字 ---------- */
.m-note {
    margin: 14px 4px 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    color: #999;
}
