/* Base styles */ :root { --primary-color: #1a1a1a; --secondary-color: #6b7280; --background-color: #f9fafb; --surface-color: #ffffff; --border-color: #e5e7eb; --accent-color: #2563eb; --accent-hover: #1d4ed8; --accent-light: #eff6ff; --timeline-line: #d1d5db; --dot-color: #2563eb; } [data-theme="dark"] { --primary-color: #f3f4f6; --secondary-color: #9ca3af; --background-color: #111827; --surface-color: #1f2937; --border-color: #374151; --accent-color: #60a5fa; --accent-hover: #93c5fd; --accent-light: #1e3a5f; --timeline-line: #4b5563; --dot-color: #60a5fa; } * { box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; margin: 0; padding: 0; background-color: var(--background-color); color: var(--primary-color); line-height: 1.6; transition: background-color 0.3s ease, color 0.3s ease; -webkit-font-smoothing: antialiased; } /* Header */ header { background-color: var(--surface-color); border-bottom: 1px solid var(--border-color); padding: 0.75rem 2rem; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); transition: background-color 0.3s ease; } header h1 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; } header nav a { color: var(--secondary-color); text-decoration: none; margin-left: 1.5rem; font-size: 0.9rem; font-weight: 500; transition: color 0.2s ease; } header nav a:hover { color: var(--accent-color); } main { padding: 2rem; max-width: 960px; margin: 0 auto; } /* Page headings */ main > h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 1.5rem 0; } /* Newspaper list */ .newspaper-list { list-style: none; padding: 0; margin: 0; } .newspaper-item { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; transition: all 0.15s ease; } .newspaper-item:hover { border-color: var(--accent-color); box-shadow: 0 1px 3px rgba(0,0,0,0.05); } .newspaper-info h2 { margin: 0 0 0.25rem 0; font-size: 1rem; font-weight: 600; } .newspaper-info h2 a { color: var(--primary-color); text-decoration: none; } .newspaper-info h2 a:hover { color: var(--accent-color); } .newspaper-info p { margin: 0; color: var(--secondary-color); font-size: 0.85rem; } .status-success { color: #16a34a; font-weight: 600; } .status-pending { color: #f59e0b; font-weight: 600; } .pull-btn { background: var(--accent-color); color: white; border: none; padding: 0.4rem 0.85rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: background-color 0.15s ease; } .pull-btn:hover { background: var(--accent-hover); } /* Timeline Layout */ .timeline { position: relative; padding-left: 3rem; } .timeline::before { content: ''; position: absolute; left: 1.25rem; top: 0; bottom: 0; width: 2px; background: var(--timeline-line); border-radius: 1px; } .timeline-date { position: relative; margin: 2rem 0 0.75rem; } .timeline-date:first-child { margin-top: 0.5rem; } .timeline-date::before { content: ''; position: absolute; left: -2.15rem; top: 0.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--dot-color); border: 3px solid var(--background-color); box-shadow: 0 0 0 2px var(--dot-color); z-index: 2; } .date-label { font-weight: 700; font-size: 0.95rem; color: var(--primary-color); letter-spacing: -0.01em; } .date-count { margin-left: 0.6rem; font-size: 0.8rem; color: var(--secondary-color); font-weight: 400; } /* Article cards in timeline */ .article-list { list-style: none; padding: 0; margin: 0 0 1rem 0; } .article-item { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 0.5rem; transition: all 0.15s ease; } .article-item:hover { border-color: var(--accent-color); box-shadow: 0 2px 8px rgba(0,0,0,0.06); transform: translateY(-1px); } .article-item h3 { margin: 0 0 0.5rem 0; font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; } .article-item h3 a { color: var(--primary-color); text-decoration: none; } .article-item h3 a:hover { color: var(--accent-color); } .article-summary { color: var(--secondary-color); font-size: 0.875rem; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .article-date { color: var(--secondary-color); font-size: 0.8rem; margin: 0.25rem 0; } /* Pagination */ .pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin: 1.5rem 0; padding: 1rem 0; border-top: 1px solid var(--border-color); } .pagination a { color: var(--accent-color); text-decoration: none; font-weight: 500; font-size: 0.9rem; } .pagination a:hover { text-decoration: underline; } .pagination span { color: var(--secondary-color); font-size: 0.85rem; } /* Article detail view */ .article-view { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 2.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); } .article-source { display: inline-block; background: var(--accent-light); color: var(--accent-color); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; } .article-view h1 { margin: 0 0 1rem 0; font-size: 1.75rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.025em; } .article-meta { border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 1.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; } .article-meta time, .article-meta span { font-size: 0.85rem; color: var(--secondary-color); } .article-meta a { color: var(--accent-color); text-decoration: none; font-size: 0.85rem; word-break: break-all; } .article-meta a:hover { text-decoration: underline; } .article-content { font-size: 1.05rem; line-height: 1.8; } .article-text { white-space: pre-wrap; color: var(--primary-color); } .article-text p { margin: 0 0 1rem 0; } .archived-html { border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem; margin-top: 1rem; background: var(--background-color); } .article-actions { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); display: flex; gap: 1rem; align-items: center; } .back-link { color: var(--accent-color); text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 0.5rem 1rem; background: var(--accent-light); border-radius: 6px; transition: all 0.15s ease; } .back-link:hover { background: var(--accent-color); color: white; text-decoration: none; } /* Disabled feeds */ .source-disabled { color: var(--secondary-color); text-decoration: line-through; } .status-badge { display: inline-block; background: #ef4444; color: white; padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.7rem; margin-left: 0.5rem; } .disable-reason { color: var(--secondary-color); font-size: 0.8rem; margin-top: 0.25rem; font-style: italic; } /* Status page */ .status-page { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; } .status-page h1 { margin: 0 0 1.5rem 0; font-size: 1.5rem; font-weight: 700; } .status-page h2 { font-size: 1.1rem; margin: 1.5rem 0 1rem; font-weight: 600; } .status-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; } .status-item { background: var(--background-color); border-radius: 8px; padding: 1rem; } .status-item h2 { margin: 0 0 0.25rem; font-size: 0.8rem; color: var(--secondary-color); text-transform: uppercase; letter-spacing: 0.05em; } .status-item p { margin: 0; font-size: 1.5rem; font-weight: 700; } .status-online { color: #16a34a; } .status-warning { color: #f59e0b; } /* Not found */ .article-not-found { text-align: center; padding: 4rem 2rem; } .article-not-found h1 { font-size: 1.25rem; margin-bottom: 0.5rem; } .article-not-found p { color: var(--secondary-color); margin-bottom: 1.5rem; } /* Responsive */ @media (max-width: 768px) { header { padding: 0.75rem 1rem; } main { padding: 1rem; } .timeline { padding-left: 2.5rem; } .timeline::before { left: 0.75rem; } .timeline-date::before { left: -1.95rem; width: 10px; height: 10px; } .article-view { padding: 1.5rem; } .article-view h1 { font-size: 1.35rem; } .newspaper-item { flex-direction: column; align-items: flex-start; gap: 0.75rem; } } /* Print */ @media print { header, .pull-btn, .pagination, .article-actions { display: none; } .article-view { border: none; padding: 0; box-shadow: none; } }