:root {
    --primary: #006EFF;
    --primary-light: #4D9AFF;
    --primary-dark: #0052CC;
    --primary-bg: #E8F3FF;
    --bg: #F3F5F7;
    --bg-card: #FFFFFF;
    --text: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border: #E5E9EF;
    --border-light: #F0F2F5;
    --success: #00A870;
    --warning: #ED7B2F;
    --danger: #E34D59;
    --info: #0052D9;
    --shadow: 0 1px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --sidebar-width: 220px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
}

/* ========== Layout ========== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ========== Top Bar ========== */
.top-bar {
    height: 52px;
    background: #1A2033;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

.top-bar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-bar .logo-icon {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.top-bar .nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
    align-items: center;
}

.top-bar .nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.top-bar .nav-links a:hover {
    color: #fff;
}

/* ========== Sidebar ========== */
.sidebar {
    width: var(--sidebar-width);
    background: #FFFFFF;
    border-right: 1px solid var(--border);
    position: fixed;
    top: 52px;
    height: calc(100vh - 52px);
    overflow-y: auto;
    z-index: 100;
    padding: 8px 0;
}

.sidebar-nav {
    padding: 4px 8px;
}

.nav-section {
    font-size: 12px;
    color: var(--text-light);
    padding: 16px 16px 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
    color: var(--text);
    gap: 10px;
}

.nav-item:hover {
    background: var(--bg);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.nav-item .nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* ========== Main Content ========== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-top: 52px;
    min-height: calc(100vh - 52px);
}

.page-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 52px;
    z-index: 50;
}

.page-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.page-header .subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.page-body {
    padding: 20px 24px;
}

/* ========== Cards ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s;
    gap: 4px;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    opacity: 0.9;
}

.btn-danger {
    background: #fff;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background: #FFF0F0;
}

.btn-warning {
    background: var(--warning);
    color: #fff;
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 0 8px;
    height: auto;
}

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-sm {
    padding: 0 12px;
    height: 28px;
    font-size: 12px;
}

.btn-lg {
    padding: 0 24px;
    height: 36px;
    font-size: 14px;
}

/* ========== Form ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    padding: 6px 12px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,110,255,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 72px;
    height: auto;
    line-height: 1.5;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

/* ========== Table ========== */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 10px 16px;
    background: var(--bg);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: #F7F9FC;
}

/* ========== Tags / Badges ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.badge-success {
    background: #E3F9EF;
    color: #00A870;
}

.badge-warning {
    background: #FFF3E8;
    color: #ED7B2F;
}

.badge-danger {
    background: #FFF0F0;
    color: #E34D59;
}

.badge-info {
    background: var(--primary-bg);
    color: var(--primary);
}

/* ========== Source Card ========== */
.source-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: #fff;
    transition: all 0.15s;
    cursor: pointer;
}

.source-card:hover {
    border-color: var(--primary-light);
    background: #FAFCFF;
}

.source-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border);
}

.source-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.source-info p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.source-stats {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-light);
}

/* ========== Analysis Result ========== */
.analysis-section {
    margin-bottom: 16px;
}

.analysis-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    padding-bottom: 6px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.analysis-section .content {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap;
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
}

.pagination button {
    padding: 4px 12px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination span {
    color: var(--text-secondary);
    padding: 0 8px;
}

/* ========== Grid ========== */
.grid-2 {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ========== Loading ========== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
    gap: 8px;
    font-size: 13px;
}

.loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(10px);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ========== Toast ========== */
.toast-container {
    position: fixed;
    top: 64px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.2s ease;
    min-width: 200px;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.empty-state p {
    font-size: 12px;
    color: var(--text-light);
}

/* ========== Selected Sources ========== */
.selected-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.selected-source-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: var(--primary-bg);
    border: 1px solid #B5D4FF;
    border-radius: 3px;
    font-size: 12px;
    color: var(--primary);
}

.selected-source-tag .remove {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    margin-left: 2px;
}

.selected-source-tag .remove:hover {
    opacity: 1;
}

/* ========== Rule Row ========== */
.rule-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.rule-row select {
    width: 160px;
}

.rule-row input {
    flex: 1;
}

.rule-row .btn-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--danger);
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.15s;
}

.rule-row .btn-remove:hover {
    background: #FFF0F0;
    border-color: var(--danger);
}

/* ========== Data Source Badge ========== */
.data-source-badge {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 2px;
    background: #E3F9EF;
    color: #00A870;
    margin-left: 8px;
    font-weight: 400;
}

/* ========== Trigger Button ========== */
.trigger-btn {
    background: transparent;
    border: 1px solid var(--warning);
    color: var(--warning);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    height: 28px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trigger-btn:hover {
    background: #FFF3E8;
}

/* ========== Stat Cards ========== */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========== Status Dot ========== */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.status-dot.active { background: var(--success); }
.status-dot.inactive { background: var(--text-light); }

/* ========== Log Entry ========== */
.log-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry .log-time {
    color: var(--text-light);
    font-size: 12px;
    white-space: nowrap;
}

.log-entry .log-status {
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 2px;
}

/* ========== Mobile Menu Toggle ========== */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* ========== Sidebar Overlay ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* ========== Responsive: Tablet (<=1024px) ========== */
@media (max-width: 1024px) {
    :root { --sidebar-width: 180px; }
    .page-body { padding: 16px; }
    .page-header { padding: 12px 16px; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .article-thumb { width: 110px; height: 72px; }
    .modal { width: 95%; max-width: 600px; }
}

/* ========== Responsive: Mobile (<=768px) ========== */
@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; }

    .sidebar {
        display: block;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 240px;
        z-index: 150;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .page-body { padding: 12px; }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .page-header > div:last-child {
        width: 100%;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .top-bar {
        padding: 0 12px;
    }

    .top-bar .logo span {
        font-size: 13px;
    }

    .top-bar .nav-links { display: none; }

    /* Table scroll */
    .table-container { font-size: 12px; }
    th, td { padding: 8px 10px; }

    /* Article cards */
    .article-card { padding: 12px; }
    .article-card-main { flex-direction: column; }
    .article-thumb { width: 100%; height: 160px; }
    .article-card-actions { flex-wrap: wrap; }
    .article-card-actions .btn { font-size: 11px; padding: 0 8px; height: 26px; }
    .article-meta { gap: 6px; font-size: 11px; }

    /* Cards */
    .card { padding: 14px; }
    .card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .card-header > div:last-child { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }

    /* Modal */
    .modal { width: 96%; max-height: 90vh; }
    .modal-body { padding: 14px; }

    /* Source detail */
    .source-detail-header { padding: 12px; gap: 10px; }
    .source-detail-avatar { width: 36px; height: 36px; }

    /* Buttons */
    .btn { height: 30px; font-size: 13px; }
    .btn-sm { height: 26px; font-size: 11px; }
    .trigger-btn { height: 26px; font-size: 11px; }

    /* RSS link box */
    .card > div[style*="FFF8F0"] { flex-wrap: wrap; padding: 8px; }

    /* Toast */
    .toast-container { right: 8px; left: 8px; }
    .toast { min-width: auto; font-size: 12px; }

    /* Pagination */
    .pagination { font-size: 12px; gap: 4px; }
    .pagination button { padding: 4px 8px; font-size: 12px; }
}

/* ========== Responsive: Small Mobile (<=480px) ========== */
@media (max-width: 480px) {
    .top-bar { height: 46px; }
    .top-bar .logo-icon { width: 24px; height: 24px; font-size: 12px; }
    .top-bar .logo span { font-size: 12px; }

    .sidebar { top: 46px; height: calc(100vh - 46px); }
    .main-content { margin-top: 46px; }
    .page-header { top: 46px; }

    .page-body { padding: 8px; }
    .page-header h2 { font-size: 15px; }
    .page-header .subtitle { font-size: 11px; }

    .card { padding: 10px; margin-bottom: 10px; }
    .article-card { padding: 10px; }
    .article-thumb { height: 120px; }

    .empty-state { padding: 32px 12px; }
    .empty-state .icon { font-size: 32px; }
    .empty-state h3 { font-size: 13px; }

    .form-group label { font-size: 12px; }
    .form-control { font-size: 13px; height: 30px; }
    textarea.form-control { font-size: 13px; }
}

/* ========== Disabled / Grey Button ========== */
.btn-disabled-grey {
    background: #E5E9EF !important;
    color: #999 !important;
    border: 1px solid #D0D5DD !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* ========== Source Name Link ========== */
.source-name-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}
.source-name-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========== Source Detail Header ========== */
.source-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.source-detail-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border);
}

/* ========== Article Date Group ========== */
.article-date-group {
    margin-bottom: 20px;
}

.article-date-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 0 6px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
}

/* ========== Article Card ========== */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.article-card-main {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
}

.article-thumb {
    width: 140px;
    height: 90px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg);
}

.article-card-body {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

/* ========== Reading Split View ========== */
#reading-grid {
    transition: grid-template-columns 0.3s ease;
}

#reading-raw-content .card {
    font-size: 13px;
    line-height: 1.8;
}

/* ========== Recommendation Source Badges ========== */
.rec-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 4px;
    font-weight: 500;
}

.rec-badge-official { background: rgba(0,168,112,0.1); color: #00A870; }
.rec-badge-media { background: rgba(0,110,255,0.1); color: #006EFF; }
.rec-badge-selfmedia { background: rgba(237,123,47,0.1); color: #ED7B2F; }
.rec-badge-academic { background: rgba(156,39,176,0.1); color: #9C27B0; }

/* ========== Cached Articles Page ========== */
#page-articles .article-card {
    transition: transform 0.15s, box-shadow 0.2s;
}

#page-articles .article-card:hover {
    transform: translateY(-1px);
}
