        /* Temporarily hide AI summary & comment buttons (low usage, can re-enable later) */
        .news-summary-btn, .news-comment-btn, .news-ai-indicator { display: none !important; }

        :root {
            --primary-color: #1d1d1f;
            --secondary-color: #86868b;
            --cross-platform-color: #0071e3;
            --apple-bg: #f5f5f7;
            --apple-card-bg: #ffffff;
        }

        .news-checkbox {
            display: none !important;
        }

        html {
            scrollbar-gutter: stable;
            scrollbar-width: none;
        }

        html::-webkit-scrollbar {
            display: none;
        }

        body {
            background: var(--apple-bg);
            min-height: 100vh;
            padding: 24px 0 20px;
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
            overflow-y: scroll;
        }

        body.tr-rss-reading {
            background:
                linear-gradient(rgba(250, 248, 243, 0.92), rgba(250, 248, 243, 0.92)),
                url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
        }

        .main-container {
            width: 96vw;
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 15px;
            box-sizing: border-box;
            min-height: calc(100vh - 80px);
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        /* ===== 毛玻璃导航卡片 ===== */
        .nav-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border-radius: 10px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 12px;
            z-index: 100;
            margin-bottom: 0;
            overflow: visible;
        }

        .nav-top {
            display: flex;
            align-items: center;
            padding: 10px 20px;
        }
        .main-nav { display: flex; gap: 2px; }
        .nav-spacer { flex: 1; }
        .nav-tools { display: flex; align-items: center; gap: 6px; }

        /* 主导航按钮 */
        .main-nav-item {
            padding: 6px 16px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.2s ease;
            user-select: none;
            letter-spacing: 0.3px;
            border: none;
            background: none;
            color: #86868b;
        }
        .main-nav-item:hover {
            color: #1d1d1f;
            background: rgba(0, 0, 0, 0.05);
        }
        .main-nav-item.active {
            color: #1d1d1f;
            background: rgba(0, 0, 0, 0.07);
        }

        .nav-divider {
            height: 0.5px;
            background: rgba(0, 0, 0, 0.08);
            margin: 0 20px;
        }

        /* 子栏目容器 */
        .sub-tabs {
            display: flex;
            gap: 0;
            overflow-x: auto;
            scrollbar-width: none;
            padding: 0 20px;
            position: relative;
        }
        .sub-tabs::-webkit-scrollbar { display: none; }

        /* 子栏目标签 */
        .sub-tab {
            padding: 9px 14px 11px;
            font-size: 13px;
            font-weight: 500;
            color: #86868b;
            cursor: pointer;
            white-space: nowrap;
            position: relative;
            transition: color 0.25s ease;
            border: none;
            background: none;
            flex-shrink: 0;
        }
        .sub-tab:hover { color: #1d1d1f; }
        .sub-tab.active {
            color: #1d1d1f;
            font-weight: 600;
        }

        /* 滑动指示器 */
        .sub-tabs-indicator {
            position: absolute;
            bottom: 0;
            height: 2px;
            background: #1d1d1f;
            border-radius: 1px;
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                        width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        /* 工具按钮 */
        .nav-tools .icon-btn {
            width: 30px;
            height: 30px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            background: rgba(0, 0, 0, 0.04);
            color: #6b7280;
        }
        .nav-tools .icon-btn:hover {
            background: rgba(0, 0, 0, 0.08);
            color: #374151;
        }

        /* 拖拽手柄（子栏目内）— 已隐藏，排序统一在栏目设置中 */
        .sub-tab .category-drag-handle {
            display: none !important;
        }
        .sub-tab.dragging {
            opacity: 0.7;
        }

        /* 栏目末尾的 + 订阅按钮 */
        .sub-tab-add {
            padding: 9px 14px 11px;
            font-size: 13px;
            font-weight: 500;
            color: #86868b;
            cursor: pointer;
            white-space: nowrap;
            border: none;
            background: none;
            flex-shrink: 0;
            transition: color 0.2s ease;
        }
        .sub-tab-add:hover {
            color: #4f46e5;
        }

        #searchInput {
            flex: 0 0 140px !important;
            width: 140px !important;
            min-width: 140px !important;
            max-width: 140px !important;
            transition: width 160ms ease, max-width 160ms ease, flex-basis 160ms ease;
            border: none !important;
            box-shadow: none !important;
            background: rgba(0, 0, 0, 0.04) !important;
        }

        #searchInput:hover {
            background: rgba(0, 0, 0, 0.06) !important;
        }

        #searchInput:focus {
            flex-basis: 320px !important;
            width: 320px !important;
            max-width: 320px !important;
            border: none !important;
            outline: none !important;
            box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.22) !important;
            background: rgba(255, 255, 255, 0.92) !important;
        }

        .category-settings-btn {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8rem;
            font-weight: 500;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
        }

        /* Nav card - 默认隐藏，防止刷新时闪烁 */
        .nav-card {
            display: none;
        }

        /* 栏目准备就绪后显示 */
        body.categories-ready .nav-card {
            display: block;
        }

        body.categories-ready .tab-content-area {
            display: block;
        }

        .tr-footer-top-toggle {
            margin-left: 10px;
            color: rgba(0, 0, 0, 0.45);
            font-size: 12px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
        }

        .tr-footer-top-toggle:hover,
        .tr-footer-top-toggle:focus-visible {
            color: rgba(0, 0, 0, 0.7);
            text-decoration: underline;
            outline: none;
        }
        
        /* Desktop-only tip - hide on mobile */
        .tr-footer-tip-desktop {
            cursor: default;
        }
        
        .tr-footer-tip-desktop:hover {
            text-decoration: none;
        }
        
        @media (max-width: 640px) {
            .tr-footer-tip-desktop {
                display: none;
            }
        }

        /* Update indicator red dot */
        .update-dot {
            position: absolute;
            top: -2px;
            right: -2px;
            width: 8px;
            height: 8px;
            background: #ef4444;
            border-radius: 50%;
            display: none;
            box-shadow: 0 0 0 2px white;
        }

        .update-dot.show {
            display: block;
            animation: pulse-dot 2s infinite;
        }

        @keyframes pulse-dot {

            0%,
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 2px white;
            }

            50% {
                transform: scale(1.2);
                box-shadow: 0 0 0 2px white, 0 0 8px rgba(239, 68, 68, 0.5);
            }
        }

        .tab-content-area {
            background: white;
            border-radius: 10px;
            padding: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            min-height: 520px;
            --tr-platform-card-height: clamp(860px, calc(100vh - 220px), 1240px);
            flex: 1;
            display: none;
            /* 默认隐藏，由 JS 添加 .categories-ready 后显示 */
        }

        body.tr-rss-reading .tab-content-area {
            background: transparent;
            box-shadow: none;
        }

        body.tr-mobile-top-collapsed .nav-card {
            display: none !important;
        }

        @media (max-width: 640px) {
            html, body {
                overflow-x: hidden;
            }
            
            .main-container {
                width: 100%;
                max-width: 100%;
                padding: 0 4px;
                gap: 8px;
                overflow-x: hidden;
            }

            .nav-card {
                top: 4px;
                border-radius: 12px;
            }
            .nav-top { padding: 8px 12px; }
            .main-nav-item { padding: 5px 12px; font-size: 13px; }
            .sub-tabs { padding: 0 12px; }
            .sub-tab { padding: 7px 10px 9px; font-size: 12.5px; }
            .nav-tools .icon-btn { width: 26px; height: 26px; font-size: 0.85rem; }

            .tab-content-area {
                background: transparent;
                box-shadow: none;
                border-radius: 0;
                padding: 0;
                min-height: 420px;
            }

            #tab-explore {
                padding: 0;
            }

            .platform-grid {
                gap: 8px;
                padding-bottom: 4px;
            }

            .platform-card {
                padding: 8px;
            }
        }

        .tab-pane {
            display: none;
        }

        .tab-pane.active {
            display: block;
        }

        .tab-pane {
            display: none;
        }

        .tab-pane.active {
            display: block;
        }

        .platform-grid {
            display: flex;
            flex-wrap: nowrap;
            gap: 10px;
            overflow-x: auto;
            overflow-anchor: auto;
            padding-bottom: 8px;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            /* Performance optimizations for smoother scrolling */
            will-change: scroll-position;
            transform: translateZ(0);
            /* GPU acceleration */
            contain: layout style;
            /* Reduce repaints */
            -webkit-overflow-scrolling: touch;
            /* iOS momentum scrolling */
        }

        /* Disable smooth scroll during drag for instant response */
        body.tr-platform-title-dragging .platform-grid {
            scroll-behavior: auto;
            scroll-snap-type: none;
            /* Disable snap during drag */
        }

        /* Disable scroll-snap when page is hidden to prevent jump on return */
        body.tr-page-hidden .platform-grid,
        body.tr-snap-paused .platform-grid {
            scroll-snap-type: none;
            scroll-behavior: auto;
        }

        .platform-grid {
            scrollbar-width: thin;
            /* Firefox */
            scrollbar-color: rgba(156, 163, 175, 0.4) transparent;
        }


        .platform-grid::-webkit-scrollbar {
            height: 8px;
        }

        .platform-grid::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.03);
            border-radius: 4px;
        }

        .platform-grid::-webkit-scrollbar-thumb {
            background: rgba(156, 163, 175, 0.4);
            border-radius: 4px;
        }

        .platform-grid::-webkit-scrollbar-thumb:hover {
            background: rgba(156, 163, 175, 0.6);
        }
        
        /* Mobile: hide scrollbar but keep scrolling functional */
        @media (max-width: 640px) {
            .platform-grid {
                scrollbar-width: none;
                /* Disable smooth scroll on mobile for better touch performance */
                scroll-behavior: auto;
            }
            
            .platform-grid::-webkit-scrollbar {
                height: 0;
            }
            
            /* Disable transition during scroll for better performance */
            .platform-card {
                transition: none;
            }
        }

        .platform-card {
            background: #f9fafb;
            border-radius: 12px;
            padding: 10px;
            flex: 0 0 calc((100% - 30px) / 4);
            width: calc((100% - 30px) / 4);
            border: 1px solid #e5e7eb;
            transition: all 0.2s ease;
        }

        .tab-content-area .platform-grid>.platform-card {
            flex: 0 0 calc((100% - 20px) / 3);
            width: calc((100% - 20px) / 3);
            height: var(--tr-platform-card-height);
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        @media (max-width: 1024px) {
            .tab-content-area {
                --tr-platform-card-height: clamp(820px, calc(100vh - 260px), 1160px);
            }

            .platform-card {
                flex: 0 0 calc((100% - 10px) / 2);
                width: calc((100% - 10px) / 2);
            }

            .tab-content-area .platform-grid>.platform-card {
                flex: 0 0 calc((100% - 10px) / 2);
                width: calc((100% - 10px) / 2);
            }
        }

        @media (max-width: 640px) {
            .tab-content-area {
                --tr-platform-card-height: clamp(780px, calc(100vh - 240px), 1020px);
            }

            .platform-card {
                flex: 0 0 100%;
                width: 100%;
                scroll-snap-align: start;
                scroll-margin-left: 0;
            }

            .tab-content-area .platform-grid {
                padding-left: 0;
                padding-right: 0;
                gap: 0;
            }

            .tab-content-area .platform-grid>.platform-card {
                flex: 0 0 100%;
                width: 100%;
                border-radius: 12px 12px 0 0;
                border: none;
                border-bottom: 1px solid #f3f4f6;

                /* Reset 3D transforms for mobile to prevent flickering */
                transform: none !important;
                transform-style: flat !important;
                backface-visibility: visible !important;
                perspective: none !important;
            }

            .platform-grid {
                perspective: none !important;
            }
        }

        @media (max-width: 640px) {
            .news-title {
                font-size: 0.95rem;
            }
        }

        @media (hover: hover) {
            .platform-card:hover {
                border-color: var(--primary-color);
                box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
            }
        }

        .platform-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: 1px solid #e5e7eb;
        }

        .platform-header,
        .platform-name {
            touch-action: pan-y;
            cursor: grab;
            /* Indicate draggable */
        }

        .platform-header:active,
        .platform-name:active {
            cursor: grabbing;
        }

        body.tr-platform-title-dragging .platform-header,
        body.tr-platform-title-dragging .platform-name {
            cursor: grabbing;
        }

        body.tr-platform-title-dragging,
        body.tr-platform-title-dragging * {
            user-select: none;
        }

        /* Shift+scroll mode: disable vertical scrolling on page and cards */
        body.tr-shift-scroll-mode {
            overflow: hidden;
        }
        
        body.tr-shift-scroll-mode .news-list {
            overflow: hidden;
        }
        
        body.tr-shift-scroll-mode .platform-grid {
            scroll-snap-type: none;
            scroll-behavior: auto;
        }


        .news-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .tab-content-area .platform-card .news-list {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            padding-right: 2px;
            scrollbar-width: none;
            /* Firefox */
            -ms-overflow-style: none;
            /* IE/Edge Legacy */
        }

        .tab-content-area .platform-card .news-list::-webkit-scrollbar {
            width: 0;
            height: 0;
        }

        .news-placeholder {
            padding: 10px 8px;
            color: #9ca3af;
            font-size: 0.78rem;
            line-height: 1.4;
        }

        .category-empty-state {
            padding: 16px 12px;
            color: #6b7280;
            font-size: 0.85rem;
            text-align: center;
        }

        .news-item {
            padding: 4px 0;
            border-bottom: 1px solid #f3f4f6;
            font-size: 0.8rem;
            box-sizing: border-box;
            min-height: calc(1.4em + 8px);
        }

        .tab-content-area .news-item {
            padding: 8px 0;
            font-size: 0.8rem;
            min-height: calc(1.55em + 12px);
        }

        .news-item:last-child {
            border-bottom: none;
        }

        .news-title {
            font-size: 0.85rem;
            color: #1f2937;
            line-height: 1.4;
            margin-bottom: 0;
            white-space: normal;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            line-clamp: 2;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            flex: 1;
            min-width: 0;
        }

        .tab-content-area .news-title {
            font-size: 0.9rem;
            line-height: 1.45;
        }

        .news-title.nba-title {
            font-size: 0.78rem;
        }

        .news-subtitle {
            font-size: 0.72rem;
            line-height: 1.2;
            color: #6b7280;
            margin-top: 2px;
            margin-left: 24px;
            text-align: right;
        }

        .news-item.preview .news-meta,
        .news-item:hover .news-meta,
        .news-item:focus-within .news-meta {
            display: none;
        }

        .news-item.preview .news-title,
        .news-item:hover .news-title,
        .news-item:focus-within .news-title {
            white-space: normal;
            display: -webkit-box;
            line-clamp: 2;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .news-item.filtered {
            display: none !important;
        }

        .news-item.search-hidden {
            display: none !important;
        }

        .news-item.paged-hidden {
            display: none !important;
        }

        .news-item.nba-hidden {
            display: none !important;
        }

        .news-item.read {
            opacity: 0.62;
        }

        .news-item.read .news-title {
            color: #6b7280;
        }

        .news-item.read:hover {
            opacity: 0.85;
        }

        .platform-refresh-btn {
            display: inline-flex;
            align-items: center;
            gap: 0;
            padding: 6px 10px;
            background: #eef2ff;
            color: #4338ca;
            border: 1px solid #c7d2fe;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            user-select: none;
            transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
        }

        .platform-refresh-btn:hover {
            background: #e0e7ff;
            border-color: #a5b4fc;
        }

        .platform-refresh-btn:active {
            transform: translateY(1px);
        }

        /* NBA 赛程双按钮 */
        .nba-mode-btns {
            display: flex;
            gap: 4px;
        }

        .nba-mode-btn {
            padding: 4px 8px;
            font-size: 0.7rem;
        }

        .nba-mode-btn.active {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            color: white;
            border-color: #4f46e5;
        }

        .news-checkbox {
            display: none !important;
            width: 14px;
            height: 14px;
            margin-right: 6px;
            align-self: flex-start;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .news-index {
            width: 18px;
            flex-shrink: 0;
            text-align: right;
            color: #9ca3af;
            font-size: 0.75rem;
            line-height: 1.4;
            margin-top: 1px;
            margin-right: 6px;
        }

        .news-item-content {
            display: flex;
            align-items: flex-start;
            flex-wrap: wrap;
        }

        /* RSS content snippet below title — now hidden, replaced by preview popover */
        .news-content-snippet {
            display: none !important;
        }

        .news-content-img {
            display: none !important;
        }

        /* PC: hover buttons visibility handled by news-item.css */

        /* New content indicator red dot */
        .news-item .tr-new-dot {
            width: 6px;
            height: 6px;
            background: #ef4444;
            border-radius: 50%;
            flex-shrink: 0;
            margin-right: 4px;
            margin-top: 6px;
            display: inline-block;
        }

        .news-item.read .tr-new-dot {
            display: none;
        }

        #tab-rsscol-rss {
            background:
                linear-gradient(rgba(250, 248, 243, 0.92), rgba(250, 248, 243, 0.92)),
                url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
            border-radius: 18px;
            padding: 16px 14px 18px;
            min-height: 100%;
        }

        #tab-rsscol-rss .platform-grid {
            max-width: 1100px;
            margin: 0 auto;
        }

        .tr-rss-src-empty {
            padding: 18px 12px;
            color: #6b7280;
            font-size: 0.92rem;
        }

        .platform-grid {
            perspective: 1400px;
        }

        .platform-card {
            transform-style: preserve-3d;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

        .platform-card.tr-explore-flip-out {
            animation: trExploreFlipOut 360ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
            transform-origin: 50% 50%;
        }

        .platform-card.tr-explore-flip-in {
            animation: trExploreFlipIn 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
            transform-origin: 50% 50%;
        }

        .tr-platform-card-close {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            border: 1px solid rgba(200, 195, 185, 0.40);
            background: rgba(255, 255, 255, 0.80);
            color: #6b7280;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            line-height: 1;
            padding: 0;
        }

        .tr-platform-card-delete {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            border: 1px solid rgba(248, 113, 113, 0.35);
            background: rgba(255, 255, 255, 0.86);
            color: #ef4444;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            line-height: 1;
            padding: 0;
        }

        .tr-platform-card-hide {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            border: 1px solid rgba(200, 195, 185, 0.40);
            background: rgba(255, 255, 255, 0.80);
            color: #6b7280;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            line-height: 1;
            padding: 0;
        }

        .platform-header-actions {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .tr-confirm-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.35);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

        .tr-confirm-overlay.show {
            display: flex;
        }

        .tr-confirm-modal {
            width: min(420px, calc(100vw - 32px));
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid rgba(200, 195, 185, 0.45);
            border-radius: 14px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
            padding: 16px 16px 14px;
        }

        .tr-confirm-message {
            color: #111827;
            font-size: 14px;
            line-height: 1.55;
            margin-bottom: 14px;
            white-space: pre-wrap;
        }

        .tr-confirm-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .tr-confirm-btn {
            height: 34px;
            padding: 0 12px;
            border-radius: 10px;
            border: 1px solid rgba(200, 195, 185, 0.45);
            background: rgba(255, 255, 255, 0.92);
            color: #374151;
            cursor: pointer;
            font-size: 13px;
            line-height: 1;
        }

        .tr-confirm-btn.tr-confirm-ok {
            border-color: rgba(239, 68, 68, 0.35);
            color: #ef4444;
            background: rgba(255, 255, 255, 0.98);
        }

        #tab-explore {
            position: relative;
            padding: 0;
            min-height: 100%;
        }

        @media (max-width: 640px) {
            #tab-explore {
                padding: 0 !important;
            }
        }

        #tab-explore #trExploreGrid {
            flex-direction: row;
            flex-wrap: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            padding-bottom: 8px;
            perspective: 1400px;
        }

        #tab-explore #trExploreGrid .platform-card {
            transform-style: preserve-3d;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

        #tab-explore #trExploreGrid .platform-card.tr-explore-flip-out {
            animation: trExploreFlipOut 360ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
            transform-origin: 50% 50%;
        }

        #tab-explore #trExploreGrid .platform-card.tr-explore-flip-in {
            animation: trExploreFlipIn 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
            transform-origin: 50% 50%;
        }

        @keyframes trExploreFlipOut {
            0% {
                opacity: 1;
                transform: translateZ(0px) rotateY(0deg) scale(1);
                filter: none;
                box-shadow: 0 10px 28px rgba(100, 100, 120, 0.12);
            }

            45% {
                opacity: 0.95;
                transform: translateZ(8px) rotateY(48deg) scale(0.995);
                filter: brightness(1.02) contrast(1.02);
                box-shadow: 0 16px 44px rgba(40, 40, 60, 0.20);
            }

            100% {
                opacity: 0;
                transform: translateZ(0px) rotateY(92deg) scale(0.985);
                filter: brightness(0.98) contrast(1.02);
                box-shadow: 0 8px 18px rgba(40, 40, 60, 0.10);
            }
        }

        @keyframes trExploreFlipIn {
            0% {
                opacity: 0;
                transform: translateZ(0px) rotateY(-92deg) scale(0.985);
                filter: brightness(0.98) contrast(1.02);
                box-shadow: 0 8px 18px rgba(40, 40, 60, 0.10);
            }

            55% {
                opacity: 1;
                transform: translateZ(10px) rotateY(-18deg) scale(1);
                filter: brightness(1.03) contrast(1.02);
                box-shadow: 0 18px 52px rgba(40, 40, 60, 0.22);
            }

            100% {
                opacity: 1;
                transform: translateZ(0px) rotateY(0deg) scale(1);
                filter: none;
                box-shadow: 0 10px 28px rgba(100, 100, 120, 0.12);
            }
        }

        #tab-explore .tr-explore-card-close {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            border: 1px solid rgba(200, 195, 185, 0.40);
            background: rgba(255, 255, 255, 0.80);
            color: #6b7280;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            line-height: 1;
            padding: 0;
            margin-right: 6px;
        }

        #tab-explore .tr-explore-card-close:hover {
            color: #ef4444;
            border-color: rgba(239, 68, 68, 0.45);
        }

        #rssCatalogPreviewModal .settings-modal {
            background:
                linear-gradient(rgba(250, 248, 243, 0.94), rgba(250, 248, 243, 0.94)),
                url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
            border: 1px solid rgba(255, 255, 255, 0.40);
        }

        #rssCategoryCarouselGrid .platform-card,
        #rssCatalogPreviewGrid .platform-card {
            background: rgba(255, 255, 255, 0.78);
            border-color: rgba(255, 255, 255, 0.55);
            box-shadow: 0 10px 32px rgba(100, 100, 120, 0.12);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        #rssCategoryCarouselGrid .platform-card:hover,
        #rssCatalogPreviewGrid .platform-card:hover {
            border-color: rgba(99, 102, 241, 0.30);
            box-shadow: 0 12px 36px rgba(100, 100, 120, 0.16);
        }

        #rssCategoryCarouselGrid .news-item-content,
        #rssCatalogPreviewGrid .news-item-content {
            align-items: baseline;
        }

        #rssCategoryCarouselGrid .news-index,
        #rssCatalogPreviewGrid .news-index {
            margin-top: 0;
        }

        #rssCategoryCarouselGrid .news-title,
        #rssCatalogPreviewGrid .news-title {
            line-height: 1.45;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
            line-clamp: unset;
            -webkit-line-clamp: unset;
            -webkit-box-orient: initial;
        }

        #rssCategoryCarouselGrid .news-item:not(.rss-entry-placeholder):hover,
        #rssCatalogPreviewGrid .news-item:not(.rss-entry-placeholder):hover {
            background-color: rgba(250, 248, 243, 0.60);
            border-radius: 10px;
            box-shadow: inset 0 0 0 1px rgba(200, 195, 185, 0.22);
        }

        #rssCategoryCarouselGrid .news-item.preview .news-title,
        #rssCatalogPreviewGrid .news-item.preview .news-title,
        #rssCategoryCarouselGrid .news-item:hover .news-title,
        #rssCatalogPreviewGrid .news-item:hover .news-title,
        #rssCategoryCarouselGrid .news-item:focus-within .news-title,
        #rssCatalogPreviewGrid .news-item:focus-within .news-title {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
            line-clamp: unset;
            -webkit-line-clamp: unset;
            -webkit-box-orient: initial;
        }

        #rssCategoryCarouselGrid .news-item,
        #rssCatalogPreviewGrid .news-item {
            padding: 6px 0;
            min-height: calc(1.45em + 16px);
        }

        #rssCategoryCarouselGrid .news-title.tr-title-overflow-shrink,
        #rssCatalogPreviewGrid .news-title.tr-title-overflow-shrink {
            font-size: 0.84rem !important;
        }

        #rssCategoryCarouselGrid .rss-entry-placeholder,
        #rssCatalogPreviewGrid .rss-entry-placeholder {
            visibility: hidden;
            pointer-events: none;
            user-select: none;
        }

        @media (max-width: 640px) {

            #rssCategoryCarouselGrid .rss-carousel-nav-hints,
            #rssCatalogPreviewGrid .rss-carousel-nav-hints {
                display: none !important;
            }

            #rssCategoryCarouselGrid .rss-carousel-frame,
            #rssCatalogPreviewGrid .rss-carousel-frame {
                padding: 16px 14px !important;
            }

            #rssCategoryCarouselGrid .news-title,
            #rssCatalogPreviewGrid .news-title {
                white-space: normal !important;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box !important;
                line-clamp: 2;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
            }

            #rssCategoryCarouselGrid .news-item,
            #rssCatalogPreviewGrid .news-item {
                padding: 4px 0;
            }
        }

        .platform-header {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            margin-bottom: 6px;
            padding-bottom: 4px;
            border-bottom: 1px solid #e5e7eb;
        }

        .platform-header-actions {
            margin-left: auto;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .platform-drag-handle {
            color: #9ca3af;
            cursor: grab;
            user-select: none;
            padding: 2px 6px;
            border-radius: 6px;
        }

        .platform-drag-handle:hover {
            background: rgba(0, 0, 0, 0.04);
        }

        .platform-card.dragging {
            opacity: 0.6;
        }

        .news-title {
            color: inherit;
            text-decoration: none;
            cursor: pointer;
        }

        .news-title:visited {
            color: inherit;
        }

        /* 跨平台高亮 */
        .news-title.cross-platform {
            color: var(--cross-platform-color);
            font-weight: 600;
            border-left: 3px solid var(--cross-platform-color);
            padding-left: 8px;
        }

        .news-title.cross-platform:visited {
            color: var(--cross-platform-color);
        }

        .news-title.cross-platform:hover {
            color: #ea580c;
        }

        .cross-platform-badge {
            display: inline-flex;
            background: linear-gradient(135deg, #f97316, #ea580c);
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.75rem;
            margin-left: 8px;
            cursor: help;
        }

        .news-meta {
            display: flex;
            gap: 10px;
            font-size: 0.75rem;
            line-height: 1.2;
            color: #6b7280;
            white-space: nowrap;
        }

        .rank-text {
            display: inline-flex;
            align-items: center;
            font-size: 0.7rem;
            font-weight: 700;
            color: #9ca3af;
            letter-spacing: 0.2px;
        }

        /* 过滤面板 */
        .filter-input-row {
            display: flex;
            gap: 6px;
            margin-bottom: 6px;
        }

        .filter-input {
            flex: 1;
            padding: 4px 8px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 0.8rem;
        }

        .filter-add-btn {
            padding: 4px 10px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 0.8rem;
            cursor: pointer;
        }

        .filter-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        .filter-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            background: #fee2e2;
            color: #dc2626;
            border-radius: 12px;
            font-size: 0.7rem;
        }

        .filter-tag-remove,
        .filter-remove {
            cursor: pointer;
            font-weight: bold;
            opacity: 0.7;
        }

        .filter-tag-remove:hover,
        .filter-remove:hover {
            opacity: 1;
        }

        .filter-toggle-btn {
            padding: 4px 10px;
            background: #fee2e2;
            color: #dc2626;
            border: none;
            border-radius: 6px;
            font-size: 0.75rem;
            cursor: pointer;
        }

        .new-badge {
            display: inline-block;
            margin-left: 6px;
            padding: 1px 6px;
            border-radius: 9999px;
            font-size: 0.65rem;
            line-height: 1.2;
            font-weight: 800;
            letter-spacing: 0.3px;
            background: #f97316;
            color: #fff;
            vertical-align: middle;
        }

        .filter-mode-toggle {
            display: inline-flex;
            align-items: center;
            cursor: pointer;
            user-select: none;
            flex-shrink: 0;
        }

        .filter-mode-toggle input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
            width: 1px;
            height: 1px;
        }

        .filter-mode-pill {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 0;
            padding: 0;
            border-radius: 6px;
            border: 1px solid #e5e7eb;
            background: #f3f4f6;
            font-size: 0.8rem;
            line-height: 1;
            overflow: hidden;
        }

        .filter-mode-off,
        .filter-mode-on {
            position: relative;
            z-index: 1;
            padding: 6px 12px;
            text-align: center;
            font-weight: 600;
            transition: all 0.15s ease;
            color: #6b7280;
        }

        .filter-mode-off {
            background: #dc2626;
            color: #fff;
            border-radius: 5px 0 0 5px;
        }

        .filter-mode-toggle input:checked+.filter-mode-pill .filter-mode-off {
            background: transparent;
            color: #6b7280;
        }

        .filter-mode-toggle input:checked+.filter-mode-pill .filter-mode-on {
            background: #2563eb;
            color: #fff;
            border-radius: 0 5px 5px 0;
        }

        .filter-mode-thumb {
            display: none;
        }


        .platform-card.platform-empty-hidden {
            display: none !important;
        }


        /* ============================================
         * 统一 Skeleton Loading 组件
         * 用于所有数据加载过程的占位动画
         * ============================================ */

        @keyframes tr-shimmer {
            0% { background-position: -400px 0; }
            100% { background-position: 400px 0; }
        }

        .tr-skeleton-bar {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
            background-size: 800px 100%;
            animation: tr-shimmer 1.6s ease-in-out infinite;
            border-radius: 4px;
        }

        /* --- Skeleton Card: 模拟 platform-card 的占位 --- */
        .tr-skeleton-card {
            background: #f9fafb;
            border-radius: 12px;
            padding: 10px;
            border: 1px solid #e5e7eb;
            display: flex;
            flex-direction: column;
            gap: 0;
            min-width: 0;
        }

        /* 卡片内的 header 占位 */
        .tr-skeleton-card-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 4px 10px;
        }

        .tr-skeleton-card-header .tr-skeleton-bar:first-child {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .tr-skeleton-card-header .tr-skeleton-bar:last-child {
            width: 40%;
            height: 14px;
        }

        /* 卡片内的列表行占位 */
        .tr-skeleton-card-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 9px 4px;
            border-bottom: 1px solid #f3f4f6;
        }

        .tr-skeleton-card-row:last-child {
            border-bottom: none;
        }

        .tr-skeleton-card-row .tr-skeleton-idx {
            width: 18px;
            height: 14px;
            flex-shrink: 0;
        }

        .tr-skeleton-card-row .tr-skeleton-title {
            height: 14px;
            flex: 1;
        }

        /* 行宽度交错，看起来更自然 */
        .tr-skeleton-card-row:nth-child(odd) .tr-skeleton-title { width: 85%; }
        .tr-skeleton-card-row:nth-child(even) .tr-skeleton-title { width: 65%; }
        .tr-skeleton-card-row:nth-child(3n) .tr-skeleton-title { width: 75%; }

        /* --- 在 platform-grid 中的 skeleton card 尺寸跟随真实卡片 --- */
        .tab-content-area .platform-grid > .tr-skeleton-card {
            flex: 0 0 calc((100% - 20px) / 3);
            width: calc((100% - 20px) / 3);
            height: var(--tr-platform-card-height);
        }

        @media (max-width: 1024px) {
            .tab-content-area .platform-grid > .tr-skeleton-card {
                flex: 0 0 calc((100% - 10px) / 2);
                width: calc((100% - 10px) / 2);
            }
        }

        @media (max-width: 640px) {
            .tab-content-area .platform-grid > .tr-skeleton-card {
                flex: 0 0 100%;
                width: 100%;
                border-radius: 12px 12px 0 0;
                border: none;
                border-bottom: 1px solid #f3f4f6;
            }
        }

        /* --- Explore 时间线 skeleton（横向滚动卡片） --- */
        .tr-skeleton-card.tr-skeleton-explore {
            min-width: 360px;
            flex: 0 0 auto;
        }

        @media (max-width: 640px) {
            .tr-skeleton-card.tr-skeleton-explore {
                min-width: 100%;
                flex: 0 0 100%;
                border-radius: 12px 12px 0 0;
            }
        }

        /* --- 通用 inline loading（用于面板/弹窗内） --- */
        .tr-skeleton-inline {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 20px;
        }

        .tr-skeleton-inline .tr-skeleton-bar {
            height: 14px;
        }

        .tr-skeleton-inline .tr-skeleton-bar:nth-child(1) { width: 90%; }
        .tr-skeleton-inline .tr-skeleton-bar:nth-child(2) { width: 70%; }
        .tr-skeleton-inline .tr-skeleton-bar:nth-child(3) { width: 80%; }
        .tr-skeleton-inline .tr-skeleton-bar:nth-child(4) { width: 55%; }

        /* --- 护眼模式 skeleton --- */
        body.eye-protection-mode .tr-skeleton-bar {
            background: linear-gradient(90deg, #2a2d33 25%, #363940 37%, #2a2d33 63%);
            background-size: 800px 100%;
            animation: tr-shimmer 1.6s ease-in-out infinite;
        }

        body.eye-protection-mode .tr-skeleton-card {
            background: #1e2025;
            border-color: #373a40;
        }

        body.eye-protection-mode .tr-skeleton-card-row {
            border-bottom-color: #2a2d33;
        }

        /* --- Sentinel (加载更多指示器) --- */
        .tr-load-sentinel {
            min-width: 40px;
            height: 100%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tr-load-sentinel-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #d1d5db;
            animation: tr-sentinel-pulse 1.2s ease-in-out infinite;
        }

        .tr-load-sentinel-dot:nth-child(2) { animation-delay: 0.2s; }
        .tr-load-sentinel-dot:nth-child(3) { animation-delay: 0.4s; }

        @keyframes tr-sentinel-pulse {
            0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
            40% { opacity: 1; transform: scale(1.2); }
        }

        body.eye-protection-mode .tr-load-sentinel-dot {
            background: #6b7280;
        }
