/* RSSPipe - Modern Minimal High-Contrast Design System (Light Mode) */ :root { --bg-app: #f8fafc; --bg-surface: #ffffff; --bg-sidebar: #f8fafc; --bg-list: #ffffff; --bg-reader: #ffffff; --bg-card: #ffffff; --bg-card-hover: #f1f5f9; --bg-card-selected: #e2e8f0; --border: #e2e8f0; --border-light: #f1f5f9; --border-dark: #cbd5e1; --border-focus: #0f172a; --text-main: #0f172a; --text-secondary: #334155; --text-muted: #64748b; --text-dim: #94a3b8; --accent: #0f172a; --accent-hover: #1e293b; --accent-soft: rgba(15, 23, 42, 0.06); --tag-bg: #f1f5f9; --tag-text: #0f172a; --tag-border: #cbd5e1; --star: #d97706; --star-soft: #fef3c7; --unread-dot: #0f172a; --success: #15803d; --danger: #b91c1c; --radius-xs: 4px; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04); --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06); --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.1); --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --font-mono: 'JetBrains Mono', monospace; } * { box-sizing: border-box; margin: 0; padding: 0; } html, body, #root { height: 100%; width: 100%; overflow: hidden; font-family: var(--font-sans); background-color: var(--bg-app); color: var(--text-main); -webkit-font-smoothing: antialiased; } /* Custom Scrollbars */ ::-webkit-scrollbar { width: 5px; height: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } /* Base App Layout */ .app-container { display: flex; flex-direction: column; height: 100vh; width: 100vw; overflow: hidden; background: var(--bg-app); } /* Top Navigation Header */ .app-header { height: 50px; min-height: 50px; background: var(--bg-surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 0.85rem; z-index: 30; gap: 0.75rem; } .logo-area { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--text-main); user-select: none; cursor: pointer; } .logo-badge { background: var(--accent); color: #ffffff; font-size: 0.62rem; font-weight: 700; padding: 2px 5px; border-radius: 4px; letter-spacing: 0.04em; text-transform: uppercase; } .search-bar-container { flex: 1; max-width: 480px; position: relative; display: flex; align-items: center; } .search-input { width: 100%; background: var(--bg-app); border: 1px solid var(--border); border-radius: 20px; padding: 0.38rem 0.9rem 0.38rem 2rem; color: var(--text-main); font-size: 0.84rem; outline: none; transition: all 0.15s ease; } .search-input:focus { border-color: var(--border-focus); background: #ffffff; box-shadow: 0 0 0 2px var(--accent-soft); } .search-icon { position: absolute; left: 0.7rem; color: var(--text-muted); pointer-events: none; } .search-shortcut-hint { position: absolute; right: 0.75rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 4px; font-size: 0.65rem; padding: 1px 5px; color: var(--text-muted); font-family: var(--font-mono); pointer-events: none; } .header-actions { display: flex; align-items: center; gap: 0.35rem; } /* Button & Pill styles */ .btn-icon { background: transparent; border: 1px solid transparent; color: var(--text-secondary); width: 32px; height: 32px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.1s ease; } .btn-icon:hover { background: var(--bg-card-hover); color: var(--text-main); border-color: var(--border); } .btn-icon.active { background: var(--accent); color: #ffffff; } .btn-primary { background: var(--accent); color: #ffffff; border: 1px solid var(--accent); font-weight: 600; font-size: 0.8rem; padding: 0.38rem 0.75rem; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; transition: background 0.1s ease; white-space: nowrap; } .btn-primary:hover { background: var(--accent-hover); } .btn-secondary { background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border); font-weight: 500; font-size: 0.8rem; padding: 0.38rem 0.75rem; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; transition: all 0.1s ease; white-space: nowrap; } .btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-dark); } .view-mode-pill { display: flex; background: var(--bg-app); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; gap: 2px; } .tag-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; background: var(--tag-bg); color: var(--tag-text); border: 1px solid var(--tag-border); } /* Mobile Dropdown Menu */ .mobile-menu-dropdown { position: absolute; top: 48px; right: 10px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); width: 200px; padding: 0.4rem; z-index: 50; display: flex; flex-direction: column; gap: 2px; } .mobile-menu-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; color: var(--text-main); background: transparent; border: none; cursor: pointer; text-align: left; width: 100%; } .mobile-menu-item:hover { background: var(--bg-card-hover); } /* ========================================================================= */ /* 1. REEDER 4 MINIMAL 3-PANE SPLIT VIEW (DESKTOP) */ /* ========================================================================= */ .three-pane-container { display: flex; flex: 1; height: calc(100vh - 50px); overflow: hidden; background: var(--bg-app); } /* Sidebar (Pane 1) - Independent Scrollable */ .sidebar-pane { width: 240px; min-width: 240px; background: var(--bg-sidebar); border-right: 1px solid var(--border); display: flex; flex-direction: column; height: 100%; overflow: hidden; transition: width 0.2s ease, min-width 0.2s ease; } .sidebar-pane.collapsed { width: 0; min-width: 0; border-right: none; overflow: hidden; } .sidebar-scroll-area { flex: 1 1 0%; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0.75rem 0.5rem 2rem 0.5rem; display: flex; flex-direction: column; gap: 2px; } .sidebar-nav-item { display: flex; align-items: center; justify-content: space-between; padding: 0.45rem 0.65rem; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.825rem; font-weight: 500; cursor: pointer; transition: all 0.1s ease; } .sidebar-nav-item:hover { background: var(--bg-card-hover); color: var(--text-main); } .sidebar-nav-item.active { background: var(--bg-card-selected); color: var(--text-main); font-weight: 600; } .sidebar-nav-label { display: flex; align-items: center; gap: 0.55rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sidebar-section-header { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 0.85rem 0.65rem 0.25rem 0.65rem; display: flex; align-items: center; justify-content: space-between; } .feed-item { display: flex; align-items: center; justify-content: space-between; padding: 0.35rem 0.65rem 0.35rem 1.4rem; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.79rem; cursor: pointer; transition: all 0.1s ease; } .feed-item:hover { background: var(--bg-card-hover); color: var(--text-main); } .feed-item.active { background: var(--bg-card-selected); color: var(--text-main); font-weight: 600; } .feed-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .badge { font-size: 0.68rem; font-weight: 600; padding: 1px 6px; border-radius: 10px; background: var(--border); color: var(--text-muted); } .badge.unread { background: var(--accent); color: #ffffff; } /* Article List (Pane 2) - Independent Scrollable */ .article-list-pane { width: 350px; min-width: 300px; max-width: 400px; background: var(--bg-list); border-right: 1px solid var(--border); display: flex; flex-direction: column; height: 100%; overflow: hidden; } .article-list-header { height: 44px; min-height: 44px; padding: 0 0.85rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--bg-list); } .article-list-scroll-area { flex: 1 1 0%; height: 100%; overflow-y: auto; overscroll-behavior: contain; } .article-item-card { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-light); cursor: pointer; display: flex; flex-direction: column; gap: 0.3rem; position: relative; transition: background 0.1s ease; user-select: none; } .article-item-card:hover { background: var(--bg-card-hover); } .article-item-card.selected { background: var(--bg-card-selected); } .article-item-card.selected::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); } .article-item-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.74rem; color: var(--text-muted); } .article-item-source { font-weight: 600; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; } .article-item-title { font-size: 0.88rem; font-weight: 600; line-height: 1.35; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .article-item-card.is-read .article-item-title { font-weight: 400; color: var(--text-secondary); } .article-item-snippet { font-size: 0.76rem; line-height: 1.4; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .unread-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--unread-dot); flex-shrink: 0; } /* Reader Canvas (Pane 3) - Independent Scrollable */ .reader-pane { flex: 1 1 0%; height: 100%; background: var(--bg-reader); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; } .reader-toolbar { position: sticky; top: 0; height: 46px; min-height: 46px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; z-index: 10; } /* Sliding Ball Capsule Toggle Switch */ .capsule-switch-btn { display: inline-flex; align-items: center; border: none; background: transparent; padding: 0; cursor: pointer; outline: none; user-select: none; margin-left: 0.5rem; } .capsule-switch-track { position: relative; display: flex; align-items: center; width: 86px; height: 26px; border-radius: 9999px; background-color: var(--bg-card-hover); border: 1px solid var(--border-dark); padding: 2px; transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05); } .capsule-switch-btn:hover .capsule-switch-track { border-color: var(--border-focus); } .capsule-switch-btn.active .capsule-switch-track { background-color: #0284c7; border-color: #0284c7; } .capsule-switch-btn.scraping .capsule-switch-track { background-color: #0369a1; border-color: #0369a1; cursor: wait; } .capsule-switch-thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background-color: #ffffff; color: #64748b; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1); transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease; z-index: 2; } .capsule-switch-btn.active .capsule-switch-thumb { transform: translateX(60px); color: #0284c7; } .capsule-switch-label { width: 100%; font-size: 0.69rem; font-weight: 600; text-align: center; transition: color 0.25s ease, padding 0.25s ease; z-index: 1; white-space: nowrap; letter-spacing: -0.01em; } /* When thumb is on the left, label is padded to the right */ .capsule-switch-btn:not(.active) .capsule-switch-label { padding-left: 17px; padding-right: 2px; color: var(--text-main); } /* When thumb is on the right, label is padded to the left */ .capsule-switch-btn.active .capsule-switch-label { padding-right: 17px; padding-left: 2px; color: #ffffff; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .spin { animation: spin 1s linear infinite; } .reader-content-canvas { max-width: 680px; width: 100%; margin: 0 auto; padding: 2rem 1.5rem 5rem 1.5rem; } .reader-source-bar { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.85rem; } .reader-headline { font-size: 1.85rem; font-weight: 800; line-height: 1.28; letter-spacing: -0.02em; color: var(--text-main); margin-bottom: 1.5rem; } .reader-headline a { color: inherit; text-decoration: none; } .reader-headline a:hover { text-decoration: underline; } .reader-body { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); overflow-wrap: break-word; } .reader-body p { margin-bottom: 1.25rem; } .reader-body h2, .reader-body h3 { color: var(--text-main); margin-top: 1.8rem; margin-bottom: 0.75rem; line-height: 1.35; } .reader-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1.25rem 0; border: 1px solid var(--border); } .reader-body pre { background: var(--bg-app); border: 1px solid var(--border); padding: 1rem; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.85rem; overflow-x: auto; margin: 1.25rem 0; } .reader-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; } /* ========================================================================= */ /* 2. TRUE XIAOHONGSHU WATERFALL (MASONRY) VIEW (NO SIDEBAR) */ /* ========================================================================= */ .xhs-waterfall-container { display: flex; flex-direction: column; flex: 1; height: calc(100vh - 50px); overflow: hidden; background: var(--bg-app); } /* Top Horizontal Category Tabs (Xiaohongshu style) */ .xhs-tabs-bar { height: 42px; min-height: 42px; background: var(--bg-surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 0.85rem; overflow-x: auto; white-space: nowrap; gap: 0.4rem; scrollbar-width: none; } .xhs-tabs-bar::-webkit-scrollbar { display: none; } .xhs-tab-item { padding: 0.3rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); background: transparent; border: 1px solid transparent; cursor: pointer; transition: all 0.12s ease; user-select: none; display: flex; align-items: center; gap: 4px; } .xhs-tab-item:hover { background: var(--bg-card-hover); color: var(--text-main); } .xhs-tab-item.active { background: var(--accent); color: #ffffff; font-weight: 600; } .xhs-waterfall-scroll { flex: 1 1 0%; overflow-y: auto; padding: 0.75rem; } /* True CSS / Multi-Column Masonry (Staggered Heights) */ .xhs-masonry { column-count: 2; column-gap: 10px; max-width: 1400px; margin: 0 auto; } @media (min-width: 640px) { .xhs-masonry { column-count: 3; column-gap: 12px; } } @media (min-width: 1024px) { .xhs-masonry { column-count: 4; column-gap: 14px; } } @media (min-width: 1400px) { .xhs-masonry { column-count: 5; column-gap: 16px; } } .xhs-masonry-item { break-inside: avoid; margin-bottom: 10px; } @media (min-width: 640px) { .xhs-masonry-item { margin-bottom: 14px; } } .xhs-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; } .xhs-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-dark); } .xhs-card.is-read { opacity: 0.75; } .xhs-cover-wrap { width: 100%; background: var(--bg-app); overflow: hidden; position: relative; } .xhs-cover-img { width: 100%; display: block; object-fit: cover; max-height: 280px; } .xhs-cover-fallback { width: 100%; height: 90px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: var(--text-muted); padding: 0.75rem; text-align: center; } .xhs-card-body { padding: 0.65rem 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; } .xhs-card-title { font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .xhs-card-snippet { font-size: 0.72rem; line-height: 1.38; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .xhs-card-footer { margin-top: 0.25rem; padding-top: 0.4rem; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); } .xhs-publisher-badge { font-weight: 600; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; } /* Mobile Post Reader (Full Page Slide with Back Arrow) */ .mobile-post-reader { position: fixed; inset: 0; background: #ffffff; z-index: 100; display: flex; flex-direction: column; overflow: hidden; } .mobile-post-reader-header { height: 48px; min-height: 48px; background: #ffffff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 0.85rem; z-index: 10; } .mobile-post-reader-content { flex: 1 1 0%; overflow-y: auto; padding: 1.25rem 1rem 5rem 1rem; } /* ========================================================================= */ /* 3. SETTINGS VIEW PAGE - BEAUTIFUL, MODERN, RESPONSIVE */ /* ========================================================================= */ .settings-container { display: flex; flex: 1; height: calc(100vh - 50px); overflow: hidden; background: var(--bg-app); } @media (max-width: 768px) { .settings-container { flex-direction: column; } } .settings-nav { width: 220px; min-width: 220px; background: var(--bg-surface); border-right: 1px solid var(--border); padding: 1rem 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; } @media (max-width: 768px) { .settings-nav { width: 100%; min-width: 100%; height: 44px; min-height: 44px; padding: 0 0.5rem; flex-direction: row; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; white-space: nowrap; align-items: center; } } .settings-nav-item { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.825rem; font-weight: 500; color: var(--text-secondary); background: transparent; border: 1px solid transparent; cursor: pointer; transition: all 0.1s ease; white-space: nowrap; } .settings-nav-item:hover { background: var(--bg-card-hover); color: var(--text-main); } .settings-nav-item.active { background: var(--accent); color: #ffffff; font-weight: 600; } .settings-content-area { flex: 1 1 0%; width: 100%; overflow-y: auto; padding: 1.25rem 1.5rem; } @media (min-width: 1024px) { .settings-content-area { padding: 1.75rem 2.25rem; } } .settings-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; width: 100%; } @media (min-width: 768px) { .settings-card { padding: 1.75rem; } } .settings-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text-main); } .settings-card-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem; } /* Modals & Overlays */ .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem; } .modal-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); overflow: hidden; } .modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; } .modal-header h3 { font-size: 1rem; font-weight: 700; } .modal-body { padding: 1.25rem; } .form-group { margin-bottom: 1rem; } .form-label { display: block; font-size: 0.76rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.35rem; } .form-input, .form-select { width: 100%; background: var(--bg-surface); border: 1px solid var(--border-dark); border-radius: var(--radius-sm); padding: 0.45rem 0.7rem; color: var(--text-main); font-size: 0.825rem; outline: none; } .form-input:focus, .form-select:focus { border-color: var(--border-focus); } /* Empty State */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--text-muted); padding: 3rem 1.5rem; } .empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; } .empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.3rem; } /* Login Screen */ .login-container { height: 100vh; width: 100vw; display: flex; align-items: center; justify-content: center; background: #f1f5f9; padding: 1rem; } .login-card { width: 100%; max-width: 380px; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2.25rem 1.75rem; box-shadow: var(--shadow-md); } .login-logo { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-size: 1.4rem; font-weight: 800; margin-bottom: 0.35rem; } .login-subtitle { text-align: center; font-size: 0.825rem; color: var(--text-muted); margin-bottom: 1.75rem; } .alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.8rem; margin-bottom: 1.1rem; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .animate-spin { animation: spin 1s linear infinite; }