/* ============================================================
   MTS方块资料集 · 移动端（App 风格）
   只在 <html class="mobile-view"> 时生效，电脑端完全不受影响
   ============================================================ */

html.mobile-view {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

html.mobile-view body {
    font-size: 14px;
    overflow-x: hidden;
    background: #f1f4f9;
}

html.mobile-view body.has-tabbar {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}

html.mobile-view img,
html.mobile-view table {
    max-width: 100%;
}

/* 所有可点元素统一触控反馈 */
html.mobile-view button:active,
html.mobile-view .btn:active,
html.mobile-view .resource-card .btn-download:active,
html.mobile-view .side-btn:active,
html.mobile-view .form-entry:active,
html.mobile-view .tab:active {
    transform: scale(.97);
    opacity: .88;
}

/* ---------- 底部 Tab 栏（App 风格） ---------- */
#mobileTabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    display: flex;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid #e8eef8;
    box-shadow: 0 -2px 14px rgba(20, 50, 100, .07);
    backdrop-filter: blur(10px);
}

#mobileTabbar .mtb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 58px;
    text-decoration: none;
    color: #94a1b5;
    font-size: 11px;
    font-weight: 500;
}

#mobileTabbar .mtb-item .mtb-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* 当前页高亮：图标 + 文字变蓝，图标后面垫一层浅蓝 */
#mobileTabbar .mtb-item.active {
    color: #2f6fd0 !important;
}

#mobileTabbar .mtb-item.active .mtb-icon {
    fill: #2f6fd0 !important;
}

#mobileTabbar .mtb-item.active .mtb-label {
    color: #2f6fd0 !important;
    font-weight: 700;
}

#mobileTabbar .mtb-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: #2f6fd0;
}

#mobileTabbar .mtb-item {
    position: relative;
    white-space: nowrap;
}

#mobileTabbar .mtb-item:active {
    background: #f4f8ff;
}

/* ============================================================
   顶部导航
   ============================================================ */
html.mobile-view header,
html.mobile-view .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 10px 12px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
}

html.mobile-view header .logo,
html.mobile-view .logo {
    font-size: 14px !important;
    white-space: nowrap;
    flex: 0 1 auto;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 4px !important;
}

html.mobile-view header .logo .material-icons-outlined {
    font-size: 17px !important;
}

html.mobile-view .nav-actions {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 6px !important;
}

html.mobile-view .nav-actions .btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
    white-space: nowrap;
    flex: 0 0 auto;
    min-height: 32px;
}

html.mobile-view .nav-actions .btn .material-icons-outlined {
    font-size: 15px !important;
    margin-right: 3px !important;
}

html.mobile-view .user-chip {
    padding: 5px 9px !important;
    font-size: 12px !important;
    flex: 0 0 auto;
}

html.mobile-view .user-chip .who-name {
    max-width: 64px !important;
}

html.mobile-view .user-menu {
    min-width: 150px;
}

html.mobile-view .user-menu-item {
    padding: 12px;
    font-size: 14px;
}

/* ============================================================
   首页
   ============================================================ */
html.mobile-view .page-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 12px 10px 0 !important;
    margin: 10px auto 0 !important;
    max-width: 100% !important;
}

html.mobile-view .main-col,
html.mobile-view .side-col {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

html.mobile-view .side-col {
    position: static !important;
    top: auto !important;
    margin-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

html.mobile-view .carousel-container {
    height: 178px !important;
    border-radius: 14px !important;
}

html.mobile-view .carousel-arrow {
    width: 30px !important;
    height: 30px !important;
    font-size: 18px !important;
}

html.mobile-view .resources-panel {
    padding: 18px 12px !important;
    border-radius: 16px !important;
}

html.mobile-view .section-head h2 {
    font-size: 17px !important;
}

html.mobile-view .section-sub {
    font-size: 12px !important;
}

html.mobile-view .resource-search {
    margin-top: 12px !important;
    height: 38px !important;
    max-width: 100% !important;
}

html.mobile-view .select-all-btn {
    top: 12px !important;
    right: 12px !important;
    padding: 4px 11px !important;
    font-size: 11.5px !important;
}

/* 卡片：电脑版一行多个 → 手机两列 */
html.mobile-view .resource-grid,
html.mobile-view .launcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

html.mobile-view .resource-card {
    padding: 12px 11px !important;
    border-radius: 12px !important;
}

html.mobile-view .resource-card h3 {
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html.mobile-view .resource-card .tag {
    font-size: 10.5px !important;
    padding: 2px 8px !important;
}

html.mobile-view .resource-card .sub {
    font-size: 11px !important;
}

html.mobile-view .resource-card .meta-list li {
    font-size: 11.5px !important;
    padding: 3px 0 !important;
}

html.mobile-view .resource-card .btn-download {
    padding: 8px 0 !important;
    font-size: 12px !important;
    margin-top: 8px !important;
}

html.mobile-view .resource-cta {
    padding: 16px 12px !important;
}

html.mobile-view .resource-cta h3 {
    font-size: 13px !important;
}

html.mobile-view .batch-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 9px !important;
    margin: 12px 0 0 !important;
}

html.mobile-view .side-card {
    padding: 15px !important;
    border-radius: 14px !important;
}

html.mobile-view .side-card h3 {
    font-size: 14px !important;
}

html.mobile-view .form-entry {
    padding: 11px 12px !important;
}

html.mobile-view .site-footer {
    padding: 24px 14px 18px !important;
    margin-top: 28px !important;
}

html.mobile-view .footer-feedback {
    max-width: 100% !important;
}

html.mobile-view #feedbackContent {
    min-height: 92px;
}

html.mobile-view .feedback-tip {
    flex-wrap: wrap;
}

/* ============================================================
   资源下载页
   ============================================================ */
html.mobile-view .resources-panel {
    margin: 12px 10px !important;
}

html.mobile-view .notice-bar {
    flex-wrap: wrap;
    gap: 8px;
}

html.mobile-view .btn-batch {
    padding: 7px 13px !important;
    font-size: 12px !important;
}

/* ============================================================
   积分商城
   ============================================================ */
html.mobile-view main {
    padding: 12px 10px !important;
    margin: 10px auto !important;
    gap: 12px !important;
}

html.mobile-view .card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
}

html.mobile-view .card h2 {
    font-size: 15px !important;
    margin-bottom: 12px !important;
}

html.mobile-view .points-card {
    flex-direction: row;
    align-items: center;
}

html.mobile-view .points-value {
    font-size: 30px !important;
}

html.mobile-view .points-right {
    text-align: right;
}

html.mobile-view .points-right .btn {
    padding: 9px 16px !important;
    font-size: 13px !important;
}

html.mobile-view .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

html.mobile-view .item-card {
    padding: 12px 11px !important;
    border-radius: 12px !important;
}

html.mobile-view .item-name {
    font-size: 13px !important;
}

html.mobile-view .item-desc {
    font-size: 11.5px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html.mobile-view .item-card .btn {
    padding: 8px 0 !important;
    font-size: 12px !important;
}

html.mobile-view .admin-block {
    padding: 14px 0 !important;
}

html.mobile-view .row {
    gap: 8px !important;
}

html.mobile-view .row input,
html.mobile-view .row select,
html.mobile-view #userSearch {
    min-width: 0 !important;
    flex: 1 1 130px;
    min-height: 40px;
}

html.mobile-view .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

html.mobile-view .table-wrap table {
    min-width: 520px;
}

html.mobile-view th,
html.mobile-view td {
    padding: 9px 10px !important;
    font-size: 12.5px !important;
}

html.mobile-view .inv-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px !important;
}

html.mobile-view .inv-item .badge {
    font-size: 11px;
}

/* 我的物品：核销 / 回收按钮在窄屏自动换行，避免挤出屏幕 */
html.mobile-view .inv-item > .row {
    flex-wrap: wrap !important;
    justify-content: flex-end;
    width: 100%;
    row-gap: 6px;
}

html.mobile-view .inv-item .btn-sm {
    min-height: 34px;
    padding: 0 12px !important;
    white-space: nowrap;
}

html.mobile-view .inv-item .inv-meta {
    width: 100%;
    font-size: 11.5px;
    line-height: 1.5;
}

/* ============================================================
   后台管理
   ============================================================ */
html.mobile-view .topbar {
    height: auto !important;
    padding: 10px 12px !important;
    flex-wrap: wrap;
    gap: 8px;
}

html.mobile-view .brand {
    font-size: 14px !important;
}

html.mobile-view .top-actions {
    gap: 8px !important;
    flex-wrap: wrap;
    font-size: 12px;
}

html.mobile-view .tabs {
    padding: 0 8px !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

html.mobile-view .tabs::-webkit-scrollbar {
    display: none;
}

html.mobile-view .tab {
    flex: 0 0 auto;
    padding: 13px 10px !important;
    font-size: 13px !important;
    white-space: nowrap;
}

html.mobile-view .toolbar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px !important;
}

html.mobile-view .toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px !important;
}

html.mobile-view .toolbar-actions input,
html.mobile-view .toolbar-actions select,
html.mobile-view .toolbar-actions .btn {
    flex: 1 1 130px;
    min-width: 0 !important;
    min-height: 40px;
}

html.mobile-view .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

html.mobile-view .table-wrap table {
    min-width: 640px;
}

html.mobile-view .field-row-main {
    gap: 6px !important;
}

html.mobile-view .field-label {
    flex: 1 1 100%;
}

html.mobile-view .stat-grid,
html.mobile-view .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

html.mobile-view .pager {
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================================
   弹窗：底部抽屉（App 风格）
   ============================================================ */
html.mobile-view .modal {
    align-items: flex-end !important;
    padding: 0 !important;
}

html.mobile-view .modal-content,
html.mobile-view .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    margin: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    animation: mSheetUp .22s ease-out;
}

html.mobile-view .modal-content.wide,
html.mobile-view .wps-modal,
html.mobile-view .dl-agreement {
    max-width: 100% !important;
    height: 88vh !important;
    max-height: 88vh !important;
}

html.mobile-view .wps-close {
    top: 10px !important;
    right: 10px !important;
}

html.mobile-view #formModalBody {
    padding: 18px 14px !important;
}

html.mobile-view .modal-head,
html.mobile-view .modal-title {
    padding-bottom: 10px;
}

html.mobile-view .modal-foot {
    gap: 10px;
}

html.mobile-view .modal-foot .btn {
    min-height: 42px;
}

@keyframes mSheetUp {
    from { transform: translateY(26px); opacity: .5; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   说明页（PDF 阅读）/ 维护页
   ============================================================ */
/* PDF 阅读页要全屏铺满，去掉通用 main 的内边距 */
html.mobile-view body.doc-page main {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

html.mobile-view body.doc-page iframe {
    width: 100% !important;
    height: 100% !important;
}

html.mobile-view body.doc-page header {
    padding: 10px 12px !important;
}

html.mobile-view body.doc-page .btn {
    padding: 7px 12px !important;
    font-size: 12.5px !important;
}

/* 维护页用的是 btn-outline，单独适配 */
html.mobile-view body.plain-page .btn-outline {
    padding: 7px 14px !important;
    font-size: 12.5px !important;
}

/* ============================================================
   超小屏兜底
   ============================================================ */
@media (max-width: 360px) {
    html.mobile-view .carousel-container {
        height: 158px !important;
    }

    html.mobile-view .nav-actions .btn {
        padding: 6px 8px !important;
    }

    html.mobile-view .user-chip .who-name {
        max-width: 48px !important;
    }

    html.mobile-view .resource-card {
        padding: 10px 9px !important;
    }
}

/* ============================================================
   资源卡片：手机端一行三个（电脑版一行多个）
   ============================================================ */
html.mobile-view .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

html.mobile-view .resource-grid .resource-card {
    display: flex;
    flex-direction: column;
    padding: 9px 7px !important;
    border-radius: 10px !important;
}

html.mobile-view .resource-grid .resource-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 5px 0 0 !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}

html.mobile-view .resource-grid .resource-card .sub,
html.mobile-view .resource-grid .resource-card .meta-list {
    display: none !important;
}

html.mobile-view .resource-grid .resource-card .tag {
    padding: 1px 6px !important;
    font-size: 9.5px !important;
}

html.mobile-view .resource-grid .resource-card .btn-download {
    margin-top: auto !important;
    padding: 6px 0 !important;
    font-size: 11px !important;
    border-radius: 8px !important;
}

html.mobile-view .resource-grid .resource-card .btn-download .material-icons-outlined {
    margin-right: 2px !important;
    font-size: 12px !important;
}

html.mobile-view .resource-grid .resource-cta {
    grid-column: 1 / -1;
}

html.mobile-view .resource-grid .resource-cta h3 {
    font-size: 13px !important;
}

/* ============================================================
   登录 / 注册 / 邮箱验证
   ============================================================ */
html.mobile-view body.auth-page {
    display: block !important;
    padding: 0 12px 32px !important;
    align-items: stretch !important;
    min-height: 100vh;
    overflow-x: hidden !important;
}

/* 登录 / 注册 / 验证页也带底部 Dock，给它留出高度 */
html.mobile-view body.auth-page.has-tabbar {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
}

html.mobile-view body.auth-page .auth-header {
    width: calc(100% + 24px) !important;
    margin: 0 -12px !important;
    padding: 12px !important;
}

html.mobile-view body.auth-page .auth-logo {
    font-size: 15px !important;
}

html.mobile-view body.auth-page .auth-home {
    padding: 6px 13px !important;
    font-size: 12.5px !important;
}

html.mobile-view body.auth-page .card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 18px auto 0 !important;
    padding: 24px 16px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 18px rgba(20, 50, 100, .08) !important;
}

html.mobile-view body.auth-page .card h2 {
    margin-bottom: 18px !important;
    font-size: 20px !important;
}

html.mobile-view body.auth-page input,
html.mobile-view body.auth-page select,
html.mobile-view body.auth-page textarea {
    min-height: 46px;
    font-size: 16px !important; /* 防止 iOS 聚焦时自动放大 */
}

html.mobile-view body.auth-page .btn,
html.mobile-view body.auth-page button[type="submit"] {
    min-height: 48px;
    font-size: 16px !important;
}

html.mobile-view body.auth-page .login-tabs {
    margin-bottom: 18px !important;
}

html.mobile-view body.auth-page .login-tab {
    min-height: 40px;
    font-size: 14px !important;
}

html.mobile-view body.auth-page .captcha-group {
    gap: 8px;
}

html.mobile-view body.auth-page .bottom-link {
    margin-top: 18px;
    font-size: 13.5px;
}

/* ============================================================
   个人中心
   ============================================================ */
html.mobile-view body.center-page {
    padding: 0 !important;
}

/* 个人中心也要给底部 Tab 栏留位置，否则内容会被挡 */
html.mobile-view body.center-page.has-tabbar {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
}

html.mobile-view body.center-page .topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    height: auto !important;
    padding: 10px 12px !important;
    flex-wrap: wrap;
    gap: 8px;
}

html.mobile-view body.center-page main {
    max-width: 100% !important;
    padding: 12px 10px 26px !important;
}

html.mobile-view body.center-page .card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
}

html.mobile-view body.center-page .card h2 {
    font-size: 15px !important;
}

html.mobile-view body.center-page .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

html.mobile-view body.center-page .filter-row {
    flex-wrap: wrap;
    gap: 8px;
}

html.mobile-view body.center-page .filter-row input,
html.mobile-view body.center-page .filter-row .btn {
    flex: 1 1 120px;
    min-height: 40px;
}

html.mobile-view body.center-page .table-wrap table {
    min-width: 460px;
}

html.mobile-view body.center-page .btn {
    min-height: 42px;
}

html.mobile-view body.center-page input {
    min-height: 44px;
    font-size: 15px !important;
}

/* ============================================================
   服务器地图页（PDF / 地图共用 doc-page）
   ============================================================ */
html.mobile-view body.doc-page .map-notice {
    padding: 8px 12px !important;
    font-size: 12px !important;
}

html.mobile-view body.doc-page .map-loading {
    padding: 20px 16px !important;
    font-size: 13px !important;
}

html.mobile-view body.doc-page .map-loading small {
    font-size: 11.5px !important;
}

/* 超窄屏只保留「返回首页」，把次要按钮收起来 */
@media (max-width: 420px) {
    html.mobile-view body.doc-page .nav-actions .btn:not(.primary) {
        display: none;
    }
}

/* ============================================================
   登录 / 注册页细节
   ============================================================ */
html.mobile-view body.auth-page {
    height: auto !important;
    min-height: 100vh !important;
}

html.mobile-view body.auth-page h2 {
    margin-bottom: 22px !important;
    font-size: 20px !important;
}

html.mobile-view body.auth-page .card {
    box-sizing: border-box !important;
    padding: 24px 16px !important;
}

html.mobile-view body.auth-page .floating-group {
    margin-bottom: 18px !important;
}

html.mobile-view body.auth-page .floating-group input {
    padding: 14px 12px !important;
    font-size: 16px !important;
}

html.mobile-view body.auth-page .floating-group label {
    left: 12px;
    font-size: 15px;
}

html.mobile-view body.auth-page .captcha-group {
    gap: 8px !important;
}

html.mobile-view body.auth-page .captcha-img {
    width: 96px !important;
    height: 50px !important;
    flex-shrink: 0;
}

html.mobile-view body.auth-page .code-row {
    gap: 8px !important;
}

html.mobile-view body.auth-page .btn-code {
    width: 108px !important;
    min-height: 50px;
    font-size: 13px !important;
}

html.mobile-view body.auth-page .agree-list {
    margin-bottom: 20px !important;
}

html.mobile-view body.auth-page .agree-item {
    gap: 8px !important;
    font-size: 13.5px !important;
    line-height: 1.6;
}

html.mobile-view body.auth-page .agree-item input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

html.mobile-view body.auth-page .agree-tip,
html.mobile-view body.auth-page .tip {
    font-size: 12px !important;
}

html.mobile-view body.auth-page .bottom-link {
    margin-top: 20px !important;
    font-size: 13.5px !important;
}

html.mobile-view body.auth-page .toast {
    max-width: calc(100vw - 32px);
    padding: 10px 18px !important;
    font-size: 13.5px !important;
}

html.mobile-view body.auth-page .modal-content {
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: 86vh !important;
}

html.mobile-view body.auth-page .modal-close {
    margin-top: 16px !important;
    min-height: 46px;
}

/* ============================================================
   （登录 / 注册 / 验证页的适配统一由 UA 判断后的 mobile-view 类控制）
   ============================================================ */

/* ============================================================
   忘记密码 / 重置密码页
   ============================================================ */
html.mobile-view body.auth-page .sub {
    font-size: 12.5px !important;
    line-height: 1.7 !important;
    margin-bottom: 22px !important;
}

html.mobile-view body.auth-page .result,
html.mobile-view body.auth-page .state {
    padding: 2px 0 0 !important;
}

html.mobile-view body.auth-page .result h3,
html.mobile-view body.auth-page .state h3 {
    font-size: 17px !important;
    margin-bottom: 8px !important;
}

html.mobile-view body.auth-page .result p,
html.mobile-view body.auth-page .state p {
    font-size: 13px !important;
    line-height: 1.8 !important;
}

html.mobile-view body.auth-page .result .btn,
html.mobile-view body.auth-page .state .btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 50px !important;
    text-decoration: none !important;
    box-sizing: border-box;
}

/* 密码框眼睛：移动端加大触摸区域 */
html.mobile-view body.auth-page .pwd-eye {
    width: 44px !important;
    height: 44px !important;
    right: 2px !important;
}

/* ============================================================
   首页顶部黄色滚动公告
   ============================================================ */
html.mobile-view .notice-ticker {
    padding: 7px 10px !important;
    font-size: 12px !important;
    gap: 8px !important;
}

html.mobile-view .notice-ticker .ticker-badge {
    padding: 2px 6px !important;
    font-size: 11px !important;
}

html.mobile-view .notice-ticker .ticker-close {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
}

/* ============================================================
   全站移动端统一收尾（表格 / 工具条 / 卡片 / 按钮）
   ============================================================ */
@media (max-width: 820px) {
    html.mobile-view .page-main,
    html.mobile-view .container,
    html.mobile-view .wrap {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    html.mobile-view .card {
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }

    html.mobile-view .card h2 {
        font-size: 17px !important;
        margin-bottom: 10px !important;
    }

    html.mobile-view .card .hint {
        font-size: 12px !important;
        line-height: 1.65 !important;
    }

    /* 工具条：标题在上，操作区换行铺满 */
    html.mobile-view .toolbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    html.mobile-view .toolbar-actions {
        width: 100%;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    html.mobile-view .toolbar-actions input,
    html.mobile-view .toolbar-actions select {
        flex: 1 1 100% !important;
        width: 100%;
        min-width: 0 !important;
        min-height: 42px;
        box-sizing: border-box;
    }

    html.mobile-view .toolbar-actions .btn {
        flex: 1 1 auto;
        min-height: 42px;
    }

    /* 表格横向滚动，别把页面撑宽 */
    html.mobile-view .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -4px;
        padding: 0 4px;
    }

    html.mobile-view .table-wrap table {
        min-width: 560px;
    }

    /* 按钮统一高度，方便手指点 */
    html.mobile-view .btn {
        min-height: 42px;
        font-size: 13.5px !important;
    }

    html.mobile-view .btn-sm {
        min-height: 34px;
        font-size: 12.5px !important;
        padding: 6px 10px !important;
    }

    html.mobile-view .badge {
        font-size: 11px !important;
        padding: 3px 7px !important;
    }

    /* 表单控件统一 */
    html.mobile-view input[type="text"],
    html.mobile-view input[type="search"],
    html.mobile-view input[type="number"],
    html.mobile-view input[type="email"],
    html.mobile-view input[type="password"],
    html.mobile-view select,
    html.mobile-view textarea {
        font-size: 16px !important;
        min-height: 42px;
        box-sizing: border-box;
        max-width: 100%;
    }

    /* 商城管理员区：输入框一行一个 */
    html.mobile-view .admin-card .row {
        flex-wrap: wrap !important;
    }

    html.mobile-view .admin-card .row input,
    html.mobile-view .admin-card .row select {
        flex: 1 1 100% !important;
        width: 100%;
    }

    /* 弹窗铺满屏宽 */
    html.mobile-view .modal-box,
    html.mobile-view .modal-content {
        width: calc(100vw - 24px) !important;
        max-width: none !important;
        max-height: 88vh;
        overflow-y: auto;
    }
}

/* ============================================================
   首页左栏：手机端不吸顶，随页面正常滚动
   ============================================================ */
html.mobile-view .side-col {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
}

