/* ==========================================================================
   便捷学习平台 — 移动端底部三 Tab 导航
   主页 / 订单 / 我的
   ========================================================================== */
@import url("/assets/common/fonts/material-icons.css");

.uc-tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid rgba(0, 0, 0, .07);
    box-shadow: 0 -1px 10px rgba(0, 0, 0, .05);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.uc-tabbar__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px 7px;
    color: #8a8f99;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.1;
    transition: color .15s ease, transform .1s ease;
    -webkit-tap-highlight-color: transparent;
}
.uc-tabbar__item:active { transform: scale(.94); }
.uc-tabbar__item .uc-tabbar__ico { font-size: 22px; line-height: 1; display: block; }
.uc-tabbar__item .uc-tabbar__ico .material-icons-outlined { font-size: 24px; }
.uc-tabbar__item.is-active { color: rgb(19, 150, 85); font-weight: 600; }
.uc-tabbar__label { white-space: nowrap; }

body.uc-has-tabbar { padding-bottom: 64px; }
body.uc-has-tabbar .uc-main { padding-bottom: 72px; }

@media (min-width: 992px) {
    .uc-tabbar { display: none; }
    body.uc-has-tabbar,
    body.uc-has-tabbar .uc-main { padding-bottom: 0; }
}

/* ==========================================================================
   主页商品列表（不分类，竖向列表）
   ========================================================================== */
.uc-home { padding: 12px 12px 6px; }
.uc-home__hd {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 700; color: #222;
    margin: 2px 2px 10px;
}
.uc-home__hd .material-icons-outlined { font-size: 20px; color: rgb(19,150,85); }

.uc-goods {
    display: flex; flex-direction: column; gap: 8px;
}
.uc-goods__item {
    display: flex; align-items: center; gap: 11px;
    background: #fff; border-radius: 12px;
    padding: 10px 12px;
    text-decoration: none; color: inherit;
    box-shadow: 0 1px 5px rgba(0,0,0,.05);
    border: 1px solid rgba(0,0,0,.04);
    transition: transform .1s ease, box-shadow .15s ease;
}
.uc-goods__item:active { transform: scale(.985); }
.uc-goods__icon {
    width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 10px;
    background: center/cover no-repeat #f3f4f6;
}
.uc-goods__body { flex: 1 1 auto; min-width: 0; }
.uc-goods__name {
    font-size: 14px; font-weight: 600; color: #1a1a1a;
    margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uc-goods__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.uc-goods__price-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.uc-goods__price { color: #e60012; font-weight: 700; font-size: 15px; }
.uc-goods__price .unit { font-size: 11px; font-weight: 600; margin-right: 1px; }
.uc-goods__nonvip { color: #98a0ab; font-size: 10px; text-decoration: line-through; margin-top: 1px; }
.uc-goods__sold { color: #98a0ab; font-size: 11px; }
/* 下单必填未填高亮 */
.uc-input-error { border-color: #e60012 !important; box-shadow: 0 0 0 3px rgba(230,0,18,.12) !important; }
/* 付款方式里的余额数额 */
.pay-list .pay .pay-balance { margin-left: 2px; font-size: 12px; font-weight: 700; color: #e60012; font-style: normal; }
/* 选中的支付方式 */
.pay-list .pay.is-selected { border-color: #e60012 !important; background: #fff5f5 !important; box-shadow: 0 0 0 3px rgba(230,0,18,.10); }
/* 确认支付按钮 */
.pay-confirm-btn { display: block; width: 100%; margin-top: 14px; padding: 13px 0; border: 0; border-radius: 10px; background: linear-gradient(135deg,#ff5a3c,#e60012); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.pay-confirm-btn:active { opacity: .85; }
/* 安全设置：一列纵向列表 */
.uc-setting-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.uc-setting-item { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 12px; background: rgba(255,255,255,.55); border: 1.5px solid rgba(31,38,60,.08); text-decoration: none; color: #1f2733; transition: border-color .15s ease, background-color .15s ease; }
.uc-setting-item:hover { border-color: #0d1219; background: rgba(31,39,51,.05); }
.uc-setting-item__ico { font-size: 22px; color: #58606e; flex: 0 0 auto; }
.uc-setting-item__txt { flex: 1 1 auto; font-size: 15px; font-weight: 600; }
.uc-setting-item__go { font-size: 20px; color: #a6a7ae; flex: 0 0 auto; }
.uc-goods__go {
    flex: 0 0 auto; color: #c3c8d0;
}
.uc-goods__go .material-icons-outlined { font-size: 20px; }

.uc-empty {
    text-align: center; color: #98a0ab; padding: 60px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.uc-empty .material-icons-outlined { font-size: 46px; opacity: .5; }

/* ==========================================================================
   联系客服弹窗
   ========================================================================== */
.me-kefu-box { padding: 18px 16px 20px; font-size: 14px; color: #333; }
.me-kefu-tip { color: #666; margin-bottom: 14px; line-height: 1.6; }
.me-kefu-row {
    display: flex; align-items: center; gap: 10px;
    background: #f6f8fa; border-radius: 10px; padding: 12px 14px;
}
.me-kefu-label { color: #98a0ab; flex: 0 0 auto; }
.me-kefu-val {
    flex: 1 1 auto; font-weight: 700; color: #1a1a1a;
    font-size: 17px; letter-spacing: .5px;
}
.me-kefu-row .me-copy {
    flex: 0 0 auto; border: 0; background: rgb(19,150,85); color: #fff;
    border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer;
}
.me-kefu-row .me-copy:active { opacity: .85; }
.me-kefu-hint { color: #c0392b; font-size: 12px; line-height: 1.6; margin-top: 14px; }

/* ==========================================================================
   下单须知弹窗
   ========================================================================== */
.order-notice__hd {
    display: flex; align-items: center; gap: 6px;
    font-size: 17px; font-weight: 700; color: #e60012;
    padding-bottom: 10px; border-bottom: 1px solid #f0f0f0;
}
.order-notice__hd .material-icons-outlined { font-size: 22px; }
.order-notice__bd {
    padding: 14px 2px 6px; font-size: 14px; line-height: 1.7; color: #333;
    max-height: 46vh; overflow-y: auto;
}
.order-notice__bd p { margin: 0 0 10px; }
.order-notice__bd b { color: #e60012; }
.order-notice__noask {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #666; padding: 8px 2px;
    cursor: pointer; user-select: none;
}
.order-notice__noask input { width: 16px; height: 16px; }
.order-notice__ft { padding-top: 8px; }
.order-notice__btn {
    width: 100%; border: 0; border-radius: 12px;
    background: rgb(19,150,85); color: #fff;
    font-size: 16px; font-weight: 600; padding: 12px 0;
    cursor: pointer;
}
.order-notice__btn:active { opacity: .88; }

/* 弹窗在 layui layer 内的对齐修复（避免内容左侧被裁切） */
.layui-layer-page .layui-layer-content { overflow: visible !important; }
.layui-layer .order-notice { box-sizing: border-box; width: 100%; padding: 16px 16px 18px; }
.order-notice__bd { padding-left: 0; padding-right: 0; }

/* ==========================================================================
   我的订单卡片
   ========================================================================== */
.mo-list { display: flex; flex-direction: column; gap: 12px; }
.mo-empty {
    text-align: center; color: #98a0ab; padding: 60px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.mo-empty .material-icons-outlined { font-size: 44px; opacity: .5; }
.mo-item {
    background: #fff; border-radius: 14px; padding: 14px;
    border: 1px solid rgba(0,0,0,.05); box-shadow: 0 1px 8px rgba(0,0,0,.05);
}
.mo-hd { display: flex; align-items: center; gap: 10px; }
.mo-cover { width: 44px; height: 44px; border-radius: 10px; background: #f3f4f6 center/cover no-repeat; flex: 0 0 44px; }
.mo-hd__main { flex: 1 1 auto; min-width: 0; }
.mo-name { font-size: 15px; font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-time { font-size: 12px; color: #98a0ab; margin-top: 2px; }
.mo-badge { font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.mo-badge--green { background: rgba(24,121,78,.12); color: #18794e; }
.mo-badge--orange { background: rgba(204,78,0,.12); color: #cc4e00; }
.mo-badge--gray { background: rgba(85,88,96,.12); color: #555860; }
.mo-info { margin-top: 10px; background: #f8f9fb; border-radius: 10px; padding: 8px 10px; }
.mo-row { display: flex; font-size: 13px; line-height: 1.9; }
.mo-k { flex: 0 0 44px; color: #98a0ab; }
.mo-v { flex: 1 1 auto; color: #333; word-break: break-all; }
.mo-ft { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.mo-amount { color: #e60012; font-weight: 700; font-size: 16px; }
.mo-no { font-size: 11px; color: #b6bcc5; }
.mo-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
.mo-edit {
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid rgb(19,150,85); color: rgb(19,150,85);
    background: rgba(19,150,85,.06); border-radius: 10px;
    font-size: 13px; font-weight: 600; padding: 7px 14px; cursor: pointer;
}
.mo-edit .material-icons-outlined { font-size: 16px; }
.mo-edit:active { opacity: .8; }

/* 卡密展示（订单页）*/
.mo-secret { margin-top: 10px; background: #f0faf5; border: 1px solid rgba(24,121,78,.18); border-radius: 10px; padding: 10px 12px; }
.mo-secret__label { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #18794e; font-weight: 600; margin-bottom: 6px; }
.mo-secret__label .material-icons-outlined { font-size: 15px; }
.mo-secret__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px; font-weight: 700; letter-spacing: .5px; color: #0f5132;
    background: #fff; border: 1px dashed rgba(24,121,78,.4); border-radius: 8px;
    padding: 9px 10px; word-break: break-all; user-select: text; -webkit-user-select: text;
}
.mo-secret__copy {
    margin-top: 8px; display: inline-flex; align-items: center; justify-content: center;
    width: 100%; border: 1px solid rgb(19,150,85); color: #fff; background: rgb(19,150,85);
    border-radius: 9px; font-size: 13px; font-weight: 600; padding: 8px 14px; cursor: pointer;
}
.mo-secret__copy:active { opacity: .85; }
/* APK 下载（订单页）*/
.mo-download { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.mo-download__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(135deg,#22b573,#17915a); color: #fff; text-decoration: none;
    border-radius: 10px; font-size: 14px; font-weight: 700; padding: 11px 14px;
}
.mo-download__btn .material-icons-outlined { font-size: 18px; }
.mo-download__btn:active { opacity: .88; }
.mo-download__hint { font-size: 12px; color: #98a0ab; text-align: center; }


/* ==========================================================================
   我的
   ========================================================================== */
.me-page { display: flex; flex-direction: column; gap: 12px; }
.me-card {
    background: #fff; border-radius: 16px; padding: 16px;
    border: 1px solid rgba(0,0,0,.05); box-shadow: 0 1px 8px rgba(0,0,0,.05);
}
.me-profile { display: flex; align-items: center; gap: 14px; }
.me-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: #f3f4f6; flex: 0 0 60px; }
.me-profile__main { min-width: 0; }
.me-username { font-size: 19px; font-weight: 700; color: #1a1a1a; }
.me-level { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #cc4e00; margin-top: 4px; background: rgba(204,78,0,.1); padding: 2px 9px; border-radius: 999px; }
.me-level img { width: 14px; height: 14px; }

.me-balance { background: linear-gradient(135deg, #139655, #0f7a45); color: #fff; border: 0; }
.me-balance__label { font-size: 13px; opacity: .85; }
.me-balance__value { font-size: 34px; font-weight: 800; line-height: 1.3; margin: 2px 0 12px; letter-spacing: .5px; }
.me-balance__value .cur { font-size: 20px; font-weight: 600; margin-right: 2px; }
.me-balance__ops { display: flex; gap: 10px; }
.me-btn {
    flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    background: rgba(255,255,255,.18); color: #fff; text-decoration: none;
    border-radius: 10px; font-size: 14px; font-weight: 600; padding: 9px 0;
    border: 1px solid rgba(255,255,255,.3);
}
.me-btn .material-icons-outlined { font-size: 18px; }
.me-btn--primary { background: #fff; color: #0f7a45; border-color: #fff; }
.me-btn:active { opacity: .85; }
.me-vip-tip {
    margin-top: 12px; font-size: 12px; line-height: 1.6;
    background: rgba(255,255,255,.14); border-radius: 10px; padding: 8px 10px;
    display: flex; align-items: center; gap: 6px;
}
.me-vip-tip .material-icons-outlined { font-size: 16px; }
.me-vip-tip b { font-weight: 800; }

.me-invite__hd { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: #1a1a1a; }
.me-invite__hd .material-icons-outlined { font-size: 20px; color: #d4380d; }
.me-invite__desc { font-size: 13px; color: #555; line-height: 1.7; margin: 8px 0 10px; }
.me-invite__desc b { color: #1a1a1a; }
.me-red { color: #e60012 !important; font-weight: 800; }
.me-invite__link { display: flex; gap: 8px; }
.me-invite__link input {
    flex: 1 1 auto; min-width: 0; border: 1px solid #dfe3e8; border-radius: 10px;
    padding: 9px 11px; font-size: 13px; color: #555; background: #f8f9fb;
}
.me-copy {
    flex: 0 0 auto; border: 0; border-radius: 10px; background: rgb(19,150,85); color: #fff;
    font-size: 14px; font-weight: 600; padding: 0 18px; cursor: pointer;
}
.me-copy:active { opacity: .85; }
.me-invite__hint { font-size: 12px; color: #98a0ab; margin-top: 8px; }

.me-menu { padding: 4px 16px; }
.me-menu__item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0; font-size: 15px; color: #333; text-decoration: none;
    border-bottom: 1px solid #f2f3f5;
}
.me-menu__item:last-child { border-bottom: 0; }
.me-menu__item .material-icons-outlined { font-size: 20px; color: #139655; }
.me-menu__go { margin-left: auto; color: #c3c8d0 !important; font-size: 20px !important; }
.me-menu__item.logout { color: #d4380d; }
.me-menu__item.logout .material-icons-outlined { color: #d4380d; }

/* ===== 顶部导航精简：只留一个菜单按钮 ===== */
.uc-nav.uc-nav--solo { justify-content: flex-end; padding: 0 12px; }
.uc-nav.uc-nav--solo .uc-burger { display: inline-flex !important; }

/* ===== 学校模糊搜索下拉 ===== */
.school-search-wrap { position: relative; }
.school-search-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 3000; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid rgba(31,38,60,.12); border-radius: 10px; box-shadow: 0 10px 28px rgba(15,20,35,.16); padding: 4px; }
.school-search-panel .school-item { padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #1f2733; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.school-search-panel .school-item b { color: #e60012; font-weight: 700; }
.school-search-panel .school-item:hover, .school-search-panel .school-item.is-active { background: rgba(230,0,18,.07); }

/* 非卡密商品：订单页「发货信息」中性块（区别于绿色卡密块） */
.mo-secret--note { background: #f4f5f7; border: 1px solid rgba(127,127,127,.18); }
.mo-secret--note .mo-secret__label { color: #555; }
