:root {
            --bg: #f2f3f5;
            --card-bg: #ffffff;
            --border: #e9ebef;
            --border-strong: #dfe2e6;
            --text: #1a1a1a;
            --text-2: #5f6470;
            --text-3: #9aa0a6;
            --accent: #c0182b;
            --accent-soft: #fbecee;
        }

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

        html {
            -webkit-text-size-adjust: 100%;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
            background: var(--bg);
            min-height: 100vh;
            color: var(--text);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .container {
            max-width: 1320px;
            margin: 0 auto;
            padding: 0 20px 48px;
        }

        /* 报头 */
        .header {
            padding: 28px 0 18px;
            margin-bottom: 24px;
            text-align: center;
        }

        .header h1 {
            font-size: 1.6rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        

        .header p {
            font-size: 0.92rem;
            color: var(--text-2);
            margin-top: 8px;
        }

        .header .update-time {
            margin-top: 10px;
            font-size: 0.8rem;
            color: var(--text-3);
        }
        .header-time {
            margin-top: 14px;
            text-align: center;
        }
        .header-time-digital {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text);
            font-variant-numeric: tabular-nums;
            letter-spacing: 1px;
        }
        .header-time-lunar {
            font-size: 1.15rem;
            color: var(--text-2);
            margin-top: 4px;
        }

        .footer-copyright,
        .footer-icp,
        .footer-declare {
            margin: 0 0 5px 0;
            font-size: 0.85rem;
            color: var(--text-2);
        }
        .footer-copyright a,
        .footer-icp a,
        .footer-declare a {
            color: #666;
    text-decoration: none;
        }

        /* 分类导航 */
        .category-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 22px;
            justify-content: center;
        }

        .category-btn {
            padding: 7px 16px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: var(--text-2);
            cursor: pointer;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
            font-size: 0.88rem;
        }

        .category-btn:hover {
            color: var(--text);
            border-color: var(--border-strong);
        }

        .category-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #fff;
        }

        /* 新闻源卡片网格 - 默认自适应 */
        .sources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 16px;
        }

        /* 新闻源卡片 */
        .source-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .source-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
            border-color: var(--border-strong);
        }

        /* 统一、克制的卡头（不再使用分类渐变色） */
        .card-header,
        .card-header.social,
        .card-header.tech,
        .card-header.finance,
        .card-header.video,
        .card-header.dev {
            padding: 14px 18px;
            background: var(--card-bg);
            color: var(--text);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
        }

        .card-header h3 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text);
        }

        .card-header .badge {
            background: var(--accent-soft);
            color: var(--accent);
            padding: 2px 9px;
            border-radius: 4px;
            font-size: 0.72rem;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        .card-body {
            padding: 4px 0;
            max-height: 420px;
            overflow-y: auto;
            flex: 1;
        }

        .card-body::-webkit-scrollbar {
            width: 6px;
        }

        .card-body::-webkit-scrollbar-track {
            background: transparent;
        }

        .card-body::-webkit-scrollbar-thumb {
            background: #dcdfe3;
            border-radius: 3px;
        }

        .card-body::-webkit-scrollbar-thumb:hover {
            background: #c4c8cd;
        }

        .news-item {
            display: flex;
            align-items: center;
            padding: 9px 18px;
            transition: background 0.12s ease;
            text-decoration: none;
            color: var(--text);
        }

        .news-item:hover {
            background: #f7f8fa;
        }

        .news-item .rank {
            min-width: 22px;
            text-align: center;
            color: var(--text-3);
            font-weight: 600;
            font-size: 0.85rem;
            line-height: 1.5;
            margin-right: 12px;
            flex-shrink: 0;
            font-variant-numeric: tabular-nums;
        }

        /* 前三名用强调色突出 */
        .news-item .rank.top {
            color: var(--accent);
        }

        .news-item .content {
            flex: 1;
            min-width: 0;
        }

        .news-item .title {
            font-size: 0.9rem;
            line-height: 1.5;
            color: var(--text);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.12s ease;
        }

        .news-item:hover .title {
            color: var(--accent);
        }

        .news-item .meta {
            font-size: 0.76rem;
            color: var(--text-3);
            margin-top: 2px;
        }

        .news-item .hot-value {
            min-width: 52px;
            text-align: right;
            color: var(--text-3);
            font-weight: 500;
            font-size: 0.78rem;
            line-height: 1.5;
            margin-left: 10px;
            flex-shrink: 0;
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
        }

        .news-item .score-badge {
            min-width: 48px;
            text-align: right;
            color: var(--accent);
            font-weight: 600;
            font-size: 0.72rem;
            line-height: 1.5;
            margin-left: 8px;
            flex-shrink: 0;
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
        }

        .news-item .reading-badge {
            min-width: 60px;
            text-align: right;
            color: var(--text-3);
            font-weight: 400;
            font-size: 0.68rem;
            line-height: 1.5;
            margin-left: 8px;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .news-item .ks-tag-icon {
            width: 28px;
            height: 16px;
            margin-left: 4px;
            flex-shrink: 0;
            object-fit: contain;
            vertical-align: middle;
        }

        /* 加载动画 */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 160px;
        }

        .spinner {
            width: 28px;
            height: 28px;
            border: 3px solid #eef0f2;
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

        /* 响应式适配 */
        @media (max-width: 768px) {
            .header {
                padding: 22px 0 14px;
            }

            .header h1 {
                font-size: 1.35rem;
            }

            .sources-grid {
                grid-template-columns: 1fr;
            }

            .news-list-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 14px 36px;
            }

            .header h1 {
                font-size: 1.2rem;
            }

            .card-header {
                padding: 12px 14px;
            }

            .news-item {
                padding: 9px 14px;
            }

            .news-item .title {
                font-size: 0.88rem;
            }
        }

        /* 底部 */
        .footer {
            text-align: center;
            margin-top: 32px;
            padding: 28px 20px 20px;
            border-top: 1px solid var(--border);
            color: var(--text-3);
            font-size: 0.8rem;
        }
        .footer-source {
            margin: 0 0 8px 0;
            color: var(--text-2);
        }
        .footer-time {
            margin: 0;
            font-size: 0.85rem;
            color: var(--text-3);
        }

        /* 友情链接 */
        .footer-links {
            background: var(--bg);
            padding: 28px 0;
        }

        .footer-links .container {
            max-width: 1320px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .footer-links h3 {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 18px;
        }

        .footer-links .links-wrap {
            display: flex;
            flex-wrap: wrap;
            gap: 12px 14px;
        }

        .footer-links .links-wrap a {
            display: inline-block;
            padding: 7px 18px;
            font-size: 0.84rem;
            color: var(--text-2);
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 3px;
            text-decoration: none;
            transition: color 0.15s ease, border-color 0.15s ease;
        }

        .footer-links .links-wrap a:hover {
            color: var(--accent);
            border-color: var(--accent);
            text-decoration: none;
        }

        @media (max-width: 768px) {
            .footer-links {
                padding: 20px 0;
            }
            .footer-links .container {
                padding: 0 16px;
            }
            .footer-links .links-wrap {
                gap: 10px 12px;
            }
            .footer-links .links-wrap a {
                padding: 6px 14px;
                font-size: 0.82rem;
            }
        }

        @media (max-width: 480px) {
            .footer-links h3 {
                font-size: 0.95rem;
                margin-bottom: 14px;
            }
            .footer-links .links-wrap {
                gap: 8px 10px;
            }
            .footer-links .links-wrap a {
                padding: 5px 12px;
                font-size: 0.78rem;
            }
            .footer-links .links-wrap {
                gap: 6px 8px;
            }
            .footer-links .links-wrap a {
                padding: 3px 9px;
                font-size: 0.75rem;
            }
        }

        /* 热点资讯卡片 */
        .hot-news-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 24px;
            transition: box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .hot-news-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
            border-color: var(--border-strong);
        }

        .hot-news-header {
            padding: 14px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
        }

        .hot-news-header h3 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text);
        }

        .hot-news-header .badge {
            background: var(--accent-soft);
            color: var(--accent);
            padding: 2px 9px;
            border-radius: 4px;
            font-size: 0.72rem;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        .hot-news-body {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px 24px;
            padding: 4px 0;
            position: relative;
        }

        /* 中间分隔线 */
        .hot-news-body::before {
            content: '';
            position: absolute;
            top: 8px;
            bottom: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 1px;
            background: var(--border);
        }

        .hot-news-body .news-item {
            padding: 10px 18px;
            align-items: flex-start;
        }

        .hot-news-body .news-item .title {
            white-space: normal;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.45;
            font-size: 0.85rem;
            padding-right: 10px;
        }

        .hot-news-body .news-item .hot-value {
            margin-top: 2px;
            flex-shrink: 0;
        }

        @media (max-width: 768px) {
            .hot-news-body {
                grid-template-columns: 1fr;
                gap: 10px 0;
            }
            .hot-news-body::before {
                display: none;
            }
        }