
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
            background: #f5f7fa;
            min-height: 100vh;
            color: #191e26;
            /* 勿对 iOS 写 overflow-x:hidden：会破坏底栏 position:fixed，切 TAB 时位置不统一且偏高 */
        }

        html.app-android-client,
        html.app-android-client body {
            overflow-x: hidden;
            max-width: 100%;
        }
        
        html {
            background: #1e8fff;
        }
        
        .message-page {
            min-height: 100vh;
            min-height: 100dvh;
            background: #f5f7fa;
        }
        
        .message-header-wrap {
            position: relative;
            z-index: 1;
        }

        /* 对齐 APK .zdj-message-container 顶栏：蓝底 + 筛选 / 清除未读 */
        .message-header-toolbar {
            background: linear-gradient(180deg, #1e8fff 0%, #3d96ff 55%, #4da0ff 100%);
            padding: 12px 16px 18px;
            padding-top: calc(12px + env(safe-area-inset-top, 0px));
            position: relative;
            border-radius: 0;
            box-shadow: none;
        }

        .message-header-title {
            margin: 0 0 12px;
            padding: 0 0 0 2px;
            font-size: 26px;
            font-weight: 700;
            color: #fff;
            letter-spacing: 0.5px;
            line-height: 1.2;
        }

        /* 蓝渐变从屏幕顶缘铺进安全区，文字用 padding 避让 */
        html.app-top-safe-shell .message-header-toolbar {
            padding-top: calc(12px + var(--app-shell-statusbar-top, env(safe-area-inset-top, 0px)));
            padding-left: 16px;
            padding-right: 16px;
            padding-bottom: 18px;
        }

        html.app-ios-client.app-top-safe-shell body.page-message::before {
            content: '';
            display: block !important;
            position: fixed;
            left: 0;
            right: 0;
            top: 0;
            height: var(--app-shell-statusbar-top, 59px);
            background: #1e8fff;
            z-index: 40;
            pointer-events: none;
        }

        /* APK .list-box：圆角 24px + 顶部浅灰渐变 */
        .message-list {
            background-image: linear-gradient(180deg, #f5f7fa 0%, #fff 28%);
            background-color: #fff;
            border-radius: 24px 24px 0 0;
            margin-top: -8px;
            position: relative;
            z-index: 2;
            padding-top: 4px;
            padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
            min-height: calc(100vh - 140px);
            overflow: hidden;
        }

        html.app-android-xiaomi-14.app-top-safe-shell .message-header-toolbar {
            padding-bottom: 18px;
        }

        html.app-android-xiaomi-14.app-top-safe-shell .message-header-title {
            margin-bottom: 14px;
        }

        /* iQOO Neo8 Pro：Cordova 沉浸，标题须避开系统时间 */
        html.app-android-iqoo-neo8.app-top-safe-shell .message-header-toolbar,
        html.app-android-iqoo-neo8pro.app-top-safe-shell .message-header-toolbar,
        html.app-android-immersive-white-top.app-top-safe-shell body.page-message .message-header-toolbar {
            padding-top: calc(14px + 40px) !important;
        }

        .message-header-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            min-height: 26px;
        }

        /* APK .search-btn：76×26、圆角 4、字号 12 */
        .msg-filter-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            height: 26px;
            min-width: 76px;
            padding: 0 16px;
            border: none;
            border-radius: 4px;
            font-size: 12px;
            line-height: 26px;
            color: #fff;
            background: rgba(255, 255, 255, 0.28);
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            transition: background 0.2s ease, box-shadow 0.2s ease;
        }

        .msg-filter-chip:active {
            opacity: 0.92;
        }

        .msg-filter-chip.active {
            background: rgba(255, 255, 255, 0.45);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
        }

        .msg-filter-icon {
            width: 12px;
            height: 12px;
            flex-shrink: 0;
            opacity: 0.95;
        }

        /* APK .clear-btn */
        .msg-clear-unread {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 2px;
            border: none;
            background: transparent;
            font-size: 14px;
            font-weight: 400;
            line-height: 20px;
            color: rgba(255, 255, 255, 0.92);
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .msg-clear-unread span {
            font-weight: 400;
            letter-spacing: 0.02em;
        }

        .msg-clear-unread:active {
            opacity: 0.78;
        }

        .msg-clear-icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            opacity: 0.95;
            object-fit: contain;
            display: block;
        }

        .message-header-custom-img {
            width: 100%;
            display: none;
            vertical-align: top;
        }
        
        /* 左滑删除：底层删除按钮 + 前景条目 */
        .message-swipe-row {
            position: relative;
            overflow: hidden;
            background: #fff;
        }

        .message-swipe-row:last-child .message-item {
            border-bottom: none;
        }

        .message-swipe-actions {
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            z-index: 0;
            display: flex;
            align-items: stretch;
        }

        .msg-swipe-delete {
            width: 76px;
            border: none;
            margin: 0;
            padding: 0;
            background: #f51f0c;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.04em;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .msg-swipe-delete:active {
            background: #d91a0a;
        }

        .msg-swipe-delete:disabled {
            opacity: 0.7;
        }

        /* APK .messsage-item */
        .message-item {
            display: flex;
            align-items: flex-start;
            padding: 20px 24px 20px 0;
            margin-left: 24px;
            gap: 16px;
            border-bottom: 1px solid #f7f7f7;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            position: relative;
            z-index: 1;
            background: #fff;
            transform: translate3d(0, 0, 0);
            transition: transform 0.2s ease;
            touch-action: pan-y;
            will-change: transform;
        }

        .message-item.is-dragging {
            transition: none;
        }

        .message-item:active {
            background: #fafbfc;
        }
        
        .msg-item-icon {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: transparent;
        }
        
        .msg-item-icon img {
            width: 48px;
            height: 48px;
            object-fit: contain;
            display: block;
        }
        
        .message-content {
            flex: 1;
            min-width: 0;
            padding-right: 8px;
        }
        
        .message-content-title {
            font-size: 14px;
            color: #191e26;
            font-weight: 700;
            line-height: 20px;
            margin-bottom: 4px;
            padding-right: 64px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
        
        .message-content-desc {
            font-size: 12px;
            color: #4d5259;
            line-height: 18px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-right: 24px;
        }
        
        .message-meta {
            position: absolute;
            top: 20px;
            right: 24px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
            flex-shrink: 0;
        }
        
        .message-date {
            font-size: 12px;
            color: #b2b7bf;
            line-height: 18px;
        }
        
        .message-dot {
            width: 8px;
            height: 8px;
            background: #f51f0c;
            border-radius: 50%;
            margin-top: 6px;
        }

        .message-empty {
            text-align: center;
            padding: 72px 24px 40px;
            color: #999da6;
        }

        .message-empty img {
            width: 180px;
            max-width: 56%;
            height: auto;
            display: block;
            margin: 0 auto 16px;
        }

        .message-empty p {
            font-size: 14px;
            line-height: 20px;
            color: #999da6;
        }

        /* 华为 TAS-AN00（Mate 40 等）：消息页字号整体小两号 */
        html.app-android-huawei-tas-an00 body.page-message .message-header-title {
            font-size: 24px;
        }

        html.app-android-huawei-tas-an00 body.page-message .msg-filter-chip {
            font-size: 11px;
        }

        html.app-android-huawei-tas-an00 body.page-message .msg-clear-unread {
            font-size: 12px;
        }

        html.app-android-huawei-tas-an00 body.page-message .message-content-title {
            font-size: 12px;
        }

        html.app-android-huawei-tas-an00 body.page-message .message-content-desc {
            font-size: 10px;
        }

        html.app-android-huawei-tas-an00 body.page-message .message-date {
            font-size: 9px;
        }
        
        

/* Fixed message page: header stays in place and only the list scrolls. */
html,
body.page-message {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
body.page-message {
  overscroll-behavior: none;
}
body.page-message .message-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body.page-message .message-header-wrap {
  flex: 0 0 auto;
}
body.page-message .message-list {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: calc(100px + var(--app-safe-bottom, env(safe-area-inset-bottom, 0px)));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* Message list must sit on a pure white surface; no gray gradient strip. */
body.page-message .message-list {
  background-image: none !important;
  background-color: #ffffff !important;
}
body.page-message .message-item,
body.page-message .msg-item-icon {
  background: #ffffff !important;
}
