        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            background: #f5f7fb;
            color: #0f172a;
            line-height: 1.5;
            min-height: 100vh;
        }

        .app-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0;
        }

        /* 顶部白色区域 */
        .top-white-section {
            background: white;
            border-radius: 0 0 2rem 2rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.03);
            padding: 1.2rem 1.5rem 1.5rem;
            margin-bottom: 1rem;
        }

        .header-stats-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin-bottom: 1.2rem;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #667eea 0%, #00a1ff 100%);
            border-radius: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 12px rgba(102,126,234,0.2);
        }

        .logo-icon i {
            font-size: 24px;
            color: white;
        }

        .site-name {
            font-size: 1.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, #1e293b, #334155);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            letter-spacing: -0.3px;
        }

        .stats-inline {
            display: flex;
            gap: 0.8rem;
            background: #f8fafc;
            padding: 0.4rem 0.9rem;
            border-radius: 60px;
        }

        .stat-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            color: #475569;
        }

        .stat-badge i {
            font-size: 0.85rem;
        }

        .stat-badge strong {
            font-size: 0.9rem;
            font-weight: 800;
            color: #0f172a;
            margin-left: 2px;
        }

        .fa-cloud-download-alt { color: #3b82f6; }
        .fa-sync-alt { color: #10b981; }

        .search-actions-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.8rem;
            margin-top: 0.5rem;
        }

        .search-wrapper {
            flex: 1;
            min-width: 180px;
            background: #f1f5f9;
            border-radius: 48px;
        }

        .search-box {
            display: flex;
            align-items: center;
            padding: 0.2rem 0.2rem 0.2rem 1.2rem;
            background: #f1f5f9;
            border-radius: 48px;
        }

        .search-box input {
            flex: 1;
            padding: 0.7rem 0.5rem;
            font-size: 0.9rem;
            border: none;
            background: transparent;
            outline: none;
            font-weight: 500;
        }

        .search-box input::placeholder {
            color: #94a3b8;
            font-size: 0.85rem;
        }

        .search-box button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            width: 42px;
            height: 42px;
            border-radius: 42px;
            color: white;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .action-buttons {
            display: flex;
            gap: 0.6rem;
            flex-shrink: 0;
        }

        .group-button {
            background: #f1f5f9;
            border: none;
            padding: 0.55rem 1.2rem;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.8rem;
            color: #1e293b;
            cursor: pointer;
            transition: 0.2s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        .hot-tags {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-start;
            gap: 10px;
            margin-top: 1rem;
            padding-top: 0.5rem;
            border-top: 1px solid #eef2ff;
        }
        
        .search-tip {
            background: #f8fafc;
            padding: 0.3rem 1rem;
            border-radius: 30px;
            font-size: 0.75rem;
            font-weight: 500;
            color: #1e40af;
            cursor: pointer;
            transition: all 0.2s;
        }

        /* 内容区域 - 横向滑动 */
        .content-area {
            padding: 0 1rem 1.5rem;
        }

        .category-slide {
            margin-bottom: 2rem;
            background: transparent;
        }

        .category-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            padding: 0 0.25rem 0.8rem 0.25rem;
            margin-bottom: 0.5rem;
        }

        .category-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .scroll-container {
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: thin;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
            border-radius: 1rem;
            cursor: grab;
        }

        .scroll-container:active {
            cursor: grabbing;
        }

        .scroll-container::-webkit-scrollbar {
            height: 4px;
        }

        .scroll-container::-webkit-scrollbar-track {
            background: #e2e8f0;
            border-radius: 10px;
        }

        .scroll-container::-webkit-scrollbar-thumb {
            background: #94a3b8;
            border-radius: 10px;
        }

        .horizontal-list {
            display: flex;
            gap: 1rem;
            padding: 0.25rem 0.25rem 0.75rem;
        }

        /* 资源卡片 */
        .resource-card {
            flex: 0 0 auto;
            width: 180px;
            background: white;
            border-radius: 1rem;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            transition: all 0.25s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            border: 1px solid #f0f2f5;
        }

        .resource-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 20px -12px rgba(0,0,0,0.15);
        }

        .card-img {
            position: relative;
            width: 100%;
            padding-top: 120%;
            overflow: hidden;
            background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
        }

        .card-img img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .ranking-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.65rem;
            font-weight: 700;
            z-index: 2;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }

        .hot-score {
            position: absolute;
            top: 8px;
            right: 8px;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(4px);
            color: #ffb347;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.65rem;
            font-weight: 700;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 3px;
        }

        .card-info {
            padding: 0.75rem 0.7rem 0.8rem;
        }

        .card-title {
            font-weight: 700;
            font-size: 0.85rem;
            color: #0f172a;
            margin-bottom: 0.5rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* 关键词标签 - 支持换行显示完整 */
        .card-keywords {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            min-height: 32px;
        }

        .keyword-tag-sm {
            background: #eef2ff;
            color: #353535;
            padding: 3px 8px;
            border-radius: 16px;
            font-size: 0.8rem;
            font-weight: 500;
            line-height: 1.3;
            word-break: break-word;
            white-space: normal;
            max-width: 100%;
            display: inline-block;
        }

        /* 加群弹窗 - 电脑端放大 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1200;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(6px);
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background: white;
            border-radius: 2rem;
            max-width: 450px;
            width: 90%;
            text-align: center;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
            animation: modalZoom 0.2s ease;
        }
        
        @keyframes modalZoom {
            from { transform: scale(0.95); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        
        .modal-header {
            padding: 1.2rem 1.5rem;
            border-bottom: 1px solid #f0f2f5;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, #667eea10, #764ba210);
        }
        
        .modal-header h3 {
            font-size: 1.3rem;
            font-weight: 700;
            color: #1e293b;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .modal-header h3 i {
            color: #667eea;
            font-size: 1.4rem;
        }
        
        .close {
            font-size: 32px;
            cursor: pointer;
            color: #94a3b8;
            transition: color 0.2s;
            line-height: 1;
        }
        
        .close:hover {
            color: #475569;
        }
        
        .modal-body {
            padding: 2rem 1.5rem;
        }
        
        .qrcode-image {
            display: flex;
            justify-content: center;
            margin-bottom: 1rem;
        }
        
        .qrcode-image img {
            max-width: 220px;
            width: 100%;
            border-radius: 20px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        }
        
        .modal-body p {
            color: #475569;
            font-size: 0.9rem;
            margin-top: 0.5rem;
        }

        /* 公告弹窗 */
        .announcement-modal {
            display: <?php echo $showAnnouncement ? 'flex' : 'none'; ?>;
            position: fixed;
            z-index: 1100;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(8px);
            align-items: center;
            justify-content: center;
        }
        
        .announcement-card {
            background: white;
            border-radius: 1.5rem;
            width: 90%;
            max-width: 520px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: modalZoom 0.2s ease;
        }
        
        .announcement-header {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid #eef2ff;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .announcement-close {
            font-size: 28px;
            cursor: pointer;
        }
        
        .announcement-body {
            padding: 1.2rem;
            overflow-y: auto;
        }
        
        .announcement-footer {
            padding: 0.8rem 1.2rem 1.2rem;
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }
        
        .btn-know {
            background: #667eea;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
        }
        
        .btn-today {
            background: transparent;
            border: 1px solid #cbd5e1;
            padding: 8px 20px;
            border-radius: 40px;
            cursor: pointer;
        }

        .footer {
            margin-top: 2rem;
            text-align: center;
            padding: 1.2rem 1rem;
            border-top: 1px solid rgba(0,0,0,0.05);
            font-size: 0.7rem;
            color: #64748b;
            background: white;
        }
        
        .loading {
            text-align: center;
            padding: 2rem;
            color: #667eea;
        }

        /* 手机端优化 */
        @media (max-width: 640px) {
            .auto-scroll-hint {
                display: none;
            }
            .top-white-section {
                padding: 1rem 1rem 1.2rem;
            }
            .header-stats-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.6rem;
            }
            .stats-inline {
                width: auto;
                padding: 0.3rem 0.8rem;
            }
            .site-name {
                font-size: 1.2rem;
            }
            .logo-icon {
                width: 36px;
                height: 36px;
            }
            .search-actions-row {
                flex-direction: column;
                align-items: stretch;
            }
            .action-buttons {
                justify-content: center;
            }
            .resource-card {
                width: 150px;
            }
            .category-title {
                font-size: 1rem;
            }
            .modal-content {
                max-width: 340px;
            }
            .qrcode-image img {
                max-width: 180px;
            }
            .keyword-tag-sm {
                font-size: 0.7rem;
                padding: 2px 6px;
            }
        }
        
        @media (min-width: 641px) and (max-width: 1024px) {
            .resource-card {
                width: 170px;
            }
        }
        
        /* 自动滑动提示 */
        .auto-scroll-hint {
            font-size: 0.7rem;
            color: #94a3b8;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .auto-scroll-hint i {
            font-size: 0.65rem;
            animation: slideHint 1s ease-in-out infinite;
        }
        
        @keyframes slideHint {
            0%, 100% { transform: translateX(0); opacity: 0.5; }
            50% { transform: translateX(3px); opacity: 1; }
        }