        /* H5 切图目录：static/portal/h5/ （与效果图.png 同源） */
        :root {
            --h5-base: "/portal/h5/";
            --mine-base: "/portal/h5/mine/";
            --mine-page-bg: "/portal/h5/mine/Group_319@3x.png?v=20260711";
            --portal-primary: #007aff;
            --portal-primary-soft: rgba(0, 122, 255, 0.35);
            --portal-glass: rgba(42, 42, 46, 0.72);
            --portal-glass-border: rgba(255, 255, 255, 0.14);
            --portal-text: rgba(255, 255, 255, 0.96);
            --portal-muted: rgba(255, 255, 255, 0.48);
            --portal-tab-h: 72px;
            --safe-bottom: env(safe-area-inset-bottom, 0px);
            --safe-top: env(safe-area-inset-top, 0px);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        html {
            height: 100%;
        }

        body {
            font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
            background-color: #030408;
            color: var(--portal-text);
            font-size: 14px;
            line-height: 1.5;
            min-height: 100%;
            min-height: 100dvh;
            padding-bottom: calc(var(--portal-tab-h) + var(--safe-bottom) + 12px);
        }
        body.mine-page {
            background-color: #14141c;
        }

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

        .mobile-only { display: block; }
        .desktop-only { display: none !important; }

        /* 全端统一 H5：大屏居中为「手机宽度」，仅保留一套样式 */
        .portal-h5-shell {
            max-width: 430px;
            margin: 0 auto;
            min-height: 100%;
            min-height: 100dvh;
            position: relative;
            background-color: #030408;
        }
        body.mine-page .portal-h5-shell {
            background-color: #14141c;
            background-image: url("/portal/h5/mine/Group_319@3x.png?v=20260711");
            background-size: cover;
            background-position: top center;
            background-repeat: no-repeat;
        }

        /* —— 移动端顶栏（标题 + 搜索） —— */
        .app-top {
            position: sticky;
            top: 0;
            z-index: 50;
            padding: 4px 16px 12px;
            padding-top: max(4px, var(--safe-top));
            background: transparent;
            box-shadow: none;
        }
        .app-top-title {
            text-align: center;
            font-size: 17px;
            font-weight: 600;
            letter-spacing: 0.02em;
            margin-bottom: 10px;
            color: var(--portal-text);
        }
        .app-top.section-mode {
            display: flex;
            align-items: center;
            gap: 4px;
            padding-bottom: 10px;
        }
        .app-top.section-mode .app-top-title {
            flex: 1;
            margin-bottom: 0;
            padding-right: 28px;
        }
        .section-back-btn {
            display: none;
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            margin-left: -4px;
            padding: 0;
            border: none;
            border-radius: 999px;
            background: transparent;
            color: rgba(255, 255, 255, 0.92);
            cursor: pointer;
        }
        .section-back-btn:not(.is-hidden) {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .section-back-btn svg {
            width: 22px;
            height: 22px;
            display: block;
        }
        .app-top.section-mode .search-pill,
        .search-pill.is-hidden {
            display: none !important;
        }
        /* 与下方 .wrap 内容同宽：顶栏与列表区均为 16px 边距，搜索条铺满可用宽度 */
        .search-pill {
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            position: relative;
            width: 100%;
            height: 36px;
            padding: 0 14px;
            gap: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 18px;
            border: none;
            overflow: hidden;
        }
        .search-pill input {
            flex: 1;
            min-width: 0;
            height: 100%;
            border: none;
            outline: none;
            background: transparent;
            color: var(--portal-text);
            font-size: 14px;
            line-height: 36px;
            text-align: center;
        }
        .search-pill input::placeholder { color: rgba(255, 255, 255, 0.45); }
        .search-pill button {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* —— 首页轮播（效果图 Banner + 指示点） —— */
        .hero-carousel-wrap {
            position: relative;
            margin-bottom: 14px;
        }
        .hero-more {
            display: block;
            margin-top: 8px;
            text-align: right;
            font-size: 13px;
            color: var(--portal-primary);
            text-decoration: none;
        }
        .hero-more.is-hidden { display: none !important; }
        #heroCarouselWrap.is-hidden { display: none !important; }
        .hero-carousel-wrap .hero-carousel {
            margin-bottom: 0;
        }
        .hero-carousel {
            width: 100%;
            border-radius: 16px;
            overflow: hidden;
            margin-bottom: 14px;
            position: relative;
            border: 1px solid var(--portal-glass-border);
            background: rgba(0, 0, 0, 0.35);
        }
        .hero-track {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .hero-track::-webkit-scrollbar { display: none; }
        .hero-slide {
            flex: 0 0 100%;
            width: 100%;
            scroll-snap-align: start;
            aspect-ratio: 16 / 9;
            position: relative;
            display: block;
            background: linear-gradient(135deg, #1a2744, #0d1525);
        }
        .hero-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            position: relative;
            z-index: 0;
        }
        .hero-slide-ph {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--portal-muted);
            font-size: 14px;
        }
        .hero-dots {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 10px;
            display: flex;
            justify-content: center;
            gap: 6px;
            pointer-events: none;
        }
        /* 首页效果图：当前页蓝点，其余白点 */
        .hero-dots button {
            pointer-events: auto;
            width: 6px;
            height: 6px;
            padding: 0;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.95);
            cursor: pointer;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
        }
        .hero-dots button.active {
            background: var(--portal-primary);
            width: 7px;
            height: 7px;
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(0, 122, 255, 0.55);
        }

        /* —— 移动端 Tab 区 chrome（横向留白由 .wrap 统一提供，避免与列表区双重缩进） —— */
        .mobile-chrome {
            padding: 0 0 12px;
        }
        .mobile-chrome.is-hidden { display: none; }

        /* —— 首页分类 Tab（效果图：文字 + 下划线） —— */
        .home-nav-wrap {
            margin-bottom: 12px;
        }
        .home-nav-tabs {
            display: flex;
            gap: 0;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            padding-bottom: 0;
            margin-bottom: 0;
        }
        .home-nav-tabs::-webkit-scrollbar { display: none; }
        .home-nav-tabs .pill {
            flex-shrink: 0;
            padding: 6px 14px 10px;
            border-radius: 0;
            font-size: 14px;
            font-weight: 400;
            border: none;
            border-bottom: 2px solid transparent;
            background: transparent;
            color: rgba(255, 255, 255, 0.48);
            cursor: pointer;
            white-space: nowrap;
        }
        .home-nav-tabs .pill.active {
            color: var(--portal-primary);
            background: transparent;
            border-bottom-color: var(--portal-primary);
            font-weight: 500;
        }

        /* 保留旧磨砂容器类名，避免其它页面引用报错 */
        .home-filter-glass { display: none; }

        .pill-row {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            padding-bottom: 4px;
            margin-bottom: 4px;
        }
        .pill-row::-webkit-scrollbar { display: none; }

        .pill {
            flex-shrink: 0;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            border: 1px solid transparent;
            background: var(--portal-glass);
            color: var(--portal-muted);
            cursor: pointer;
            white-space: nowrap;
        }
        .pill.active {
            background: var(--portal-primary);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.15);
        }

        /* 「分类」Tab：两列网格平铺，避免拆成两个容器换行后出现中间空位 */
        .tag-grid-mobile {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 8px;
        }
        #mobileChromeCategory .tag-grid-mobile .pill {
            width: 100%;
            box-sizing: border-box;
            text-align: center;
        }
        /* 分类 Tab 标签：设计稿 10% 白底 + 8px 圆角 */
        #mobileChromeCategory .pill {
            border-radius: 8px;
        }
        #mobileChromeCategory .pill:not(.active) {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.92);
            border-color: rgba(255, 255, 255, 0.1);
        }

        /* —— 列表卡片（移动端） —— */
        .wrap {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            padding-left: 16px;
            padding-right: 16px;
            box-sizing: border-box;
        }

        .crumb {
            display: none;
        }

        .main {
            display: block;
            margin-top: 0;
            margin-bottom: 16px;
        }

        .list {
            width: 100%;
            background: transparent;
            padding: 0 0 18px;
        }

        .list-head {
            display: none;
        }

        /* 首页多分区：推荐 REC / 限免 FRE / 最新 NEW / 最火 HOT */
        .home-sections.is-hidden { display: none !important; }
        .home-sections { margin-bottom: 8px; }
        .home-section + .home-section {
            margin-top: 18px;
        }
        .home-section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }
        .home-section-more,
        .list-section-more {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            color: rgba(255, 255, 255, 0.72);
        }
        .home-section-more svg,
        .list-section-more svg {
            width: 18px;
            height: 18px;
            display: block;
        }
        .home-section-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--portal-text);
            line-height: 1.3;
        }
        .section-tag {
            font-style: italic;
            font-weight: 700;
            letter-spacing: 0.04em;
        }
        .section-tag-rec { color: #c3a0ff; }
        .section-tag-fre { color: var(--portal-primary); }
        .section-tag-new { color: #ffd36e; }
        .section-tag-hot { color: #ff7eb3; }
        .home-section-grid {
            margin-bottom: 0;
        }
        .home-section-empty {
            grid-column: 1 / -1;
            padding: 28px 12px;
            font-size: 13px;
        }
        #mediaGrid.is-hidden { display: none !important; }
        .list-head.is-hidden,
        #listScrollFooter.is-hidden { display: none !important; }

        /* 保留旧单区块标题样式（兼容） */
        .list-section-head { display: none !important; }

        /* 列表排序 Tab：最新更新 / 本周最热 / 最多观看 / 最多付费 */
        .list-sort-row {
            display: flex;
            align-items: stretch;
            justify-content: space-between;
            gap: 4px;
            margin-bottom: 12px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .list-sort-row::-webkit-scrollbar { display: none; }
        .sort-tab {
            flex: 1 1 0;
            min-width: 72px;
            padding: 6px 2px 10px;
            border: none;
            border-bottom: 2px solid transparent;
            background: transparent;
            color: var(--portal-muted);
            font-size: 13px;
            line-height: 1.3;
            white-space: nowrap;
            cursor: pointer;
            text-align: center;
        }
        .sort-tab.active {
            color: var(--portal-primary);
            border-bottom-color: var(--portal-primary);
            font-weight: 500;
        }

        .list-sort-row.is-hidden { display: none; }

        .manage-panel { display: none; }

        .grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            align-items: stretch;
        }

        .card {
            display: flex;
            flex-direction: column;
            min-width: 0;
            height: 100%;
            background: transparent;
            border: none;
            border-radius: 0;
            overflow: visible;
            text-decoration: none;
            color: inherit;
            transition: transform .18s ease;
        }
        .card:active { transform: scale(0.98); }

        .card .thumb {
            width: 100%;
            aspect-ratio: 16 / 10;
            min-height: 96px;
            border-radius: 10px;
            background: linear-gradient(145deg, #1e2a45, #121a2e);
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }
        .card .thumb-ph {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--portal-muted);
            font-size: 22px;
        }
        .card .thumb img {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            max-width: none;
            object-fit: cover;
            object-position: center;
            display: block;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            transform: translateZ(0);
        }
        .thumb-duration {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            padding: 3px 8px;
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.55);
            color: rgba(255, 255, 255, 0.95);
            font-size: 12px;
            font-weight: 500;
            line-height: 1.2;
            pointer-events: none;
        }
        .thumb-bottom {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 6px 8px;
            z-index: 2;
            pointer-events: none;
        }
        .thumb-views {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.95);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
        }
        .thumb-views .play-glyph {
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 4px 0 4px 7px;
            border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
        }
        /* 兼容旧 overlay 结构 */
        .thumb-overlay {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 6px 8px;
            background: none;
            z-index: 2;
            pointer-events: none;
        }
        /* 列表卡片：右上角单一角标（限免 / 付费 / 运营 badge 如 5钻） */
        .card .thumb .badge {
            position: absolute;
            right: 0;
            top: 0;
            left: auto;
            z-index: 3;
            color: #fff;
            padding: 3px 8px;
            font-size: 11px;
            border-radius: 0 0 0 8px;
            font-weight: 500;
            line-height: 1.2;
        }
        .card .thumb .badge.badge-free {
            background: #00c853;
        }
        .card .thumb .badge.badge-paid,
        .card .thumb .badge.badge-member {
            background: rgba(255, 149, 0, 0.95);
        }
        .card .thumb .badge.badge-orange {
            background: rgba(255, 149, 0, 0.95);
        }
        .card .thumb .badge.badge-yellow {
            background: rgba(255, 204, 0, 0.95);
            color: #1a1a1a;
        }
        .hero-slide .fee-badge {
            position: absolute;
            left: 10px;
            top: 10px;
            z-index: 2;
            padding: 4px 10px;
            font-size: 12px;
            border-radius: 8px;
            font-weight: 600;
            pointer-events: none;
        }
        .hero-slide .fee-badge.fee-free {
            background: #00c853;
            color: #fff;
        }
        .hero-slide .fee-badge.fee-paid {
            background: #e53935;
            color: #fff;
        }

        .card .title {
            margin-top: 8px;
            padding: 0;
            flex-shrink: 0;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.92);
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            white-space: normal;
            line-height: 1.4;
            min-height: calc(1.4em * 2);
        }

        .empty {
            grid-column: 1 / -1;
            color: var(--portal-muted);
            text-align: center;
            padding: 48px 16px;
            background: var(--portal-glass);
            border: 1px dashed var(--portal-glass-border);
            border-radius: 14px;
            font-size: 14px;
        }

        .section-detail-head.is-hidden { display: none !important; }

        /* —— 列表下滑加载（APP 式无限滚动） —— */
        .list-scroll-footer {
            margin-top: 8px;
            padding: 4px 0 16px;
        }
        .list-scroll-footer.is-hidden { display: none; }
        .list-load-more {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            color: var(--portal-muted);
            font-size: 13px;
            line-height: 1.4;
        }
        .list-load-more.is-loading::before {
            content: '';
            width: 16px;
            height: 16px;
            margin-right: 8px;
            border: 2px solid rgba(255, 255, 255, 0.15);
            border-top-color: var(--portal-primary);
            border-radius: 50%;
            animation: list-load-spin 0.7s linear infinite;
        }
        .list-scroll-sentinel {
            width: 100%;
            height: 1px;
            pointer-events: none;
        }
        .list-load-more {
            cursor: default;
        }
        .list-load-more:not(:empty) {
            cursor: pointer;
        }
        @keyframes list-load-spin {
            to { transform: rotate(360deg); }
        }

        /* —— 我的（效果图） —— */
        #mobileMinePanel.is-hidden { display: none !important; }
        #mobileMinePanel {
            padding: 0 0 24px;
        }
        .app-top.mine-mode {
            margin-left: -16px;
            margin-right: -16px;
            padding-left: 16px;
            padding-right: 16px;
            background: transparent;
        }
        .app-top.mine-mode .search-pill { display: none; }
        .app-top.mine-mode .app-top-title {
            margin-bottom: 6px;
        }

        .mine-hero {
            margin: 0 -16px 0;
            padding: 2px 16px 18px;
            background: transparent;
            border-radius: 0;
        }
        .mine-body {
            padding-top: 10px;
        }

        .mine-sheet {
            margin: 0 -16px 0;
            padding: 0 0 8px;
            background: rgba(28, 28, 32, 0.82);
            border-radius: 20px 20px 0 0;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .mine-profile {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 8px 0 16px;
            background: transparent;
            border: none;
            border-radius: 0;
            margin-bottom: 0;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }
        .mine-avatar {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            flex-shrink: 0;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            font-weight: 700;
            color: #4f67b8;
            overflow: hidden;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
        }
        .mine-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: inherit;
        }
        .mine-avatar.is-letter img { display: none; }
        .mine-profile-text { flex: 1; min-width: 0; }
        .mine-profile-text .name {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 6px;
            letter-spacing: 0.02em;
        }
        .mine-profile-text .sub {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.72);
        }
        .mine-chevron {
            flex-shrink: 0;
            width: 18px;
            height: 18px;
            opacity: 0.85;
            color: rgba(255, 255, 255, 0.88);
        }
        .mine-chevron svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .mine-stats {
            display: flex;
            align-items: stretch;
            padding-top: 2px;
        }
        .mine-stat {
            flex: 1;
            text-align: center;
            padding: 4px 8px 2px;
        }
        .mine-stat-num {
            font-size: 28px;
            font-weight: 700;
            line-height: 1.1;
            color: #fff;
            margin-bottom: 6px;
        }
        .mine-stat-label {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.78);
            line-height: 1.3;
        }
        .mine-stat-divider {
            width: 1px;
            align-self: stretch;
            margin: 6px 0;
            background: rgba(255, 255, 255, 0.22);
        }

        .mine-member-block {
            margin: 0 -16px;
            padding: 0 16px;
        }
        .mine-member-card {
            position: relative;
            display: block;
            width: 100%;
        }
        .mine-member-img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 14px;
        }
        .mine-member-btn {
            position: absolute;
            top: 5.4%;
            right: 0;
            min-width: 42%;
            height: 14%;
            padding: 0 28px;
            border: none;
            border-radius: 999px;
            background: transparent;
            color: transparent;
            font-size: 0;
            cursor: pointer;
        }
        .mine-menu {
            margin: 0 16px;
            background: transparent;
            border: none;
            border-radius: 0;
            overflow: hidden;
        }
        .mine-menu a {
            display: flex;
            align-items: center;
            padding: 15px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.26);
            font-size: 15px;
            gap: 12px;
            color: #979797;
        }
        .mine-menu a:last-child { border-bottom: none; }
        .mine-menu a:active { background: rgba(255, 255, 255, 0.04); }
        .mine-menu .mi-icon {
            width: 28px;
            height: 28px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 0;
            background: transparent;
        }
        .mine-menu .mi-icon svg,
        .mine-menu .mi-icon img {
            width: 24px;
            height: 24px;
            display: block;
        }
        .mine-menu .mi-icon img {
            object-fit: contain;
        }
        .mi-icon-blue { color: #6eb0ff; }
        .mi-icon-green { color: #6ddea0; }
        .mi-icon-orange { color: #ffb07a; }
        .mi-icon-purple { color: #c3a0ff; }
        .mi-icon-teal { color: #67d9c2; }
        .mi-icon-yellow { color: #ffd36e; }
        .mi-icon-amber { color: #ffae66; }
        .mine-menu .mi-label {
            flex: 1;
            color: #979797;
        }
        .mine-menu .mi-arrow {
            margin-left: auto;
            width: 16px;
            height: 16px;
            opacity: 0.55;
            flex-shrink: 0;
            color: rgba(255, 255, 255, 0.7);
        }
        .mine-menu .mi-arrow svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .paywall-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 230;
            align-items: center;
            justify-content: center;
            padding: max(24px, var(--safe-bottom));
            box-sizing: border-box;
        }
        .paywall-modal.is-open { display: flex; }
        .paywall-modal__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            cursor: pointer;
        }
        .paywall-modal__box {
            position: relative;
            width: 100%;
            max-width: 340px;
            background: #1c1c1e;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 14px;
            padding: 22px 20px 16px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
        }
        .paywall-modal__title {
            font-size: 17px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 12px;
        }
        .paywall-modal__msg {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.72);
            line-height: 1.55;
            margin-bottom: 20px;
        }
        .paywall-modal__btn {
            display: block;
            width: 100%;
            padding: 12px 16px;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            background: #0a84ff;
            color: #fff;
        }
        .paywall-modal__btn:active { opacity: 0.9; }
        .paywall-modal__actions {
            display: flex;
            gap: 10px;
        }
        .paywall-modal__actions .paywall-modal__btn {
            flex: 1;
        }
        .paywall-modal__btn--ghost {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }

        /* 邀请码弹框：与观影次数用尽提示同款白底居中 */
        #mineInviteModal .paywall-modal__box {
            background: #fff;
            border: none;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
            text-align: center;
            padding: 28px 22px 20px;
        }
        #mineInviteModal .paywall-modal__title {
            color: #1a1a1a;
            font-size: 18px;
            margin-bottom: 14px;
        }
        #mineInviteModal .paywall-modal__msg {
            color: #666;
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 16px;
        }
        #mineInviteModal .paywall-modal__input {
            width: 100%;
            height: 44px;
            border-radius: 10px;
            border: 1px solid #e5e8ed;
            background: #f5f6f8;
            color: #1a1a1a;
            padding: 0 14px;
            font-size: 16px;
            letter-spacing: 0.08em;
            margin-bottom: 8px;
            text-align: center;
        }
        #mineInviteModal .paywall-modal__input::placeholder {
            color: #b0b8c4;
        }
        #mineInviteModal .paywall-modal__error {
            min-height: 18px;
            font-size: 13px;
            color: #e53935;
            margin-bottom: 12px;
        }
        #mineInviteModal .paywall-modal__btn--ghost {
            background: #f2f2f2;
            color: #333;
        }
        #mineInviteModal .paywall-modal__btn {
            font-size: 15px;
            border-radius: 22px;
        }

        /* —— 底栏 —— */
        .mobile-home-indicator {
            position: fixed;
            left: 0;
            right: 0;
            bottom: calc(var(--portal-tab-h) + var(--safe-bottom) - 4px);
            z-index: 99;
            pointer-events: none;
            display: flex;
            justify-content: center;
            padding-bottom: 2px;
        }
        .mobile-home-indicator img {
            width: 134px;
            max-width: 40vw;
            height: auto;
            opacity: 0.9;
        }

        .bottom-tabbar {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 100;
            padding: 0 18px calc(10px + var(--safe-bottom));
            background: transparent;
            border: none;
            display: block;
        }
        .bottom-tabbar-plate {
            background: rgba(245, 245, 247, 0.96);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 24px;
            border: none;
            outline: none;
            box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
            display: flex;
            justify-content: space-around;
            align-items: flex-end;
            padding: 14px 12px 16px;
            min-height: 64px;
        }
        .bottom-tabbar .tab-btn {
            flex: 1;
            max-width: 100px;
            border: none;
            background: transparent;
            color: rgba(120, 120, 128, 0.95);
            font-size: 11px;
            padding: 4px 4px 0;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }
        .bottom-tabbar .tab-btn.active {
            color: var(--portal-primary);
        }
        .bottom-tabbar .tab-ico {
            width: 26px;
            height: 26px;
            display: block;
            flex-shrink: 0;
        }

        #mainContentWrap.is-hidden { display: none !important; }

        /* 避免横向留白与过度橡皮筋滚动 */
        html {
            overflow-x: hidden;
            overscroll-behavior-y: none;
        }
        body {
            overflow-x: hidden;
            overscroll-behavior-y: contain;
            touch-action: pan-y;
        }

        /* 大屏：居中手机框；transform 使 shell 内 fixed 层相对壳层定位，避免 PC 全屏铺满 */
        @media (min-width: 431px) {
            body {
                background-color: #0a0a0f;
            }
            .portal-h5-shell {
                transform: translateZ(0);
                box-shadow:
                    0 0 0 1px rgba(255, 255, 255, 0.06),
                    0 16px 48px rgba(0, 0, 0, 0.42);
            }
        }

        /* 我的身份卡弹窗 */
        .identity-card-modal {
            position: fixed;
            inset: 0;
            z-index: 220;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px 16px 32px;
        }
        .identity-card-modal.is-hidden { display: none !important; }
        .identity-card-mask {
            position: absolute;
            inset: 0;
            background: rgba(5, 5, 8, 0.82);
        }
        .identity-card-wrap {
            position: relative;
            width: 100%;
            max-width: 300px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 18px;
        }
        .identity-card-panel {
            width: 100%;
            padding: 22px 18px 18px;
            border-radius: 18px;
            background: linear-gradient(145deg, #2f7dff 0%, #1a4fd6 48%, #1236a8 100%);
            box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
            color: #fff;
            text-align: center;
        }
        .identity-card-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 14px;
        }
        .identity-card-user {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 16px;
        }
        .identity-card-avatar {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.22);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            font-weight: 600;
            overflow: hidden;
            flex-shrink: 0;
        }
        .identity-card-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .identity-card-id {
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.02em;
        }
        .identity-card-qr-box {
            width: 200px;
            height: 200px;
            margin: 0 auto 14px;
            padding: 10px;
            border-radius: 12px;
            background: #fff;
            box-sizing: border-box;
        }
        .identity-card-qr {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
        }
        .identity-card-tip {
            font-size: 12px;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.88);
            margin-bottom: 10px;
        }
        .identity-card-tip-link {
            color: #8ec5ff;
        }
        .identity-card-address {
            font-size: 11px;
            line-height: 1.7;
            color: rgba(255, 255, 255, 0.72);
            margin-bottom: 16px;
            word-break: break-all;
        }
        .identity-card-addr-link {
            color: #8ec5ff;
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .identity-card-addr-link:active {
            opacity: 0.85;
        }
        .identity-card-save-btn {
            width: 100%;
            height: 44px;
            border: none;
            border-radius: 22px;
            background: #2188ff;
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
        }
        .identity-card-msg {
            min-height: 16px;
            margin-top: 8px;
            font-size: 12px;
            color: #ffd2d2;
        }
        .identity-card-close {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.22);
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
        }
        .identity-card-close svg {
            width: 18px;
            height: 18px;
            display: block;
        }

        .mine-identity-login-pick {
            width: 100%;
            height: 42px;
            margin-bottom: 10px;
            border: 1px dashed rgba(255, 255, 255, 0.28);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.06);
            color: rgba(255, 255, 255, 0.92);
            font-size: 14px;
            cursor: pointer;
        }
        #identityLoginFile.is-hidden { display: none !important; }

        /* 身份卡登录全屏页（深色底 + 顶栏 + 居中扫码按钮） */
        .identity-login-screen {
            position: fixed;
            inset: 0;
            z-index: 230;
            background: #232328;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            padding: 0;
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }
        .identity-login-screen.is-hidden { display: none !important; }
        .identity-login-topbar {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
            min-height: 44px;
            padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
            color: #fff;
        }
        .identity-login-back,
        .identity-login-topbar-spacer {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
        }
        .identity-login-back {
            margin-left: -4px;
            border: none;
            border-radius: 50%;
            background: transparent;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }
        .identity-login-back svg {
            width: 22px;
            height: 22px;
            display: block;
        }
        .identity-login-title {
            flex: 1;
            margin: 0;
            text-align: center;
            font-size: 17px;
            font-weight: 600;
            line-height: 1.2;
            color: #fff;
        }
        .identity-login-body {
            flex: 1;
            width: 100%;
            max-width: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 24px 0;
            text-align: center;
        }
        .identity-login-scan-btn {
            width: 80%;
            max-width: none;
            min-width: 0;
            height: 50px;
            padding: 0 16px;
            border: none;
            border-radius: 25px;
            background: #3d8bfd;
            color: #fff;
            font-size: 16px;
            font-weight: 500;
            letter-spacing: 0.02em;
            cursor: pointer;
            box-shadow: 0 8px 24px rgba(61, 139, 253, 0.35);
        }
        .identity-login-scan-btn:active {
            transform: scale(0.98);
            background: #3580eb;
        }
        .identity-login-msg {
            min-height: 20px;
            margin-top: 16px;
            font-size: 13px;
            color: #ffb4b4;
            text-align: center;
            line-height: 1.5;
        }
        .identity-login-scan-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
