/* ==================== 全局样式 & 变量 ==================== */
        :root {
            --primary-blue: #1780FD;
            --primary-pink: #ec4899;
            --primary-cyan: #06b6d4;
            --primary-orange: #f97316;
            --primary-green: #10b981;
            --primary-purple: #8b5cf6;
            --primary-red: #ef4444;
            --bg-color: #fff;
        }

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

        body {
            background: var(--bg-color);
            font-family: 'Segoe UI', 'Roboto', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
            color: #1e293b;
            line-height: 1.4;
        }

        /* ==================== 顶部导航栏 (纯色 #4465D9 高度70px) ==================== */
        .navbar-custom {
            background: #4465D9;
            border-bottom: none;
            box-shadow: 0 4px 20px rgba(23, 128, 253, 0.3);
            height: 70px;
            padding-top: 0;
            padding-bottom: 0;
        }

        .navbar-custom .container-fluid {
            height: 70px;
        }

        .navbar-brand {
            font-size: 1.2rem;
            font-weight: 700;
            color: #ffffff !important;
            letter-spacing: -0.3px;
            line-height: 1.2;
        }

        .navbar-slogan {
            font-size: 0.75rem;
            color: #ffffff;
            background: rgba(255,255,255,0.2);
            padding: 0.3rem 0.8rem;
            border-radius: 30px;
            margin-left: 12px;
        }

        .navbar-toggler {
            border-color: rgba(255,255,255,0.5);
            padding: 0.5rem;
        }

        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        .navbar-nav {
            height: 70px;
            align-items: center;
        }

        .navbar-nav .nav-link {
            color: rgba(255,255,255,0.9) !important;
            font-weight: 500;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            border-radius: 20px;
            padding: 0.6rem 1.2rem !important;
            margin: 0 0.2rem;
        }

        .navbar-nav .nav-link:hover {
            color: #ffffff !important;
            background: rgba(255,255,255,0.2);
        }

        /* ==================== 主体容器 ==================== */
        .nav-container {
            max-width: 1920px;
            margin: 30px auto;
            padding: 0 1.5rem;
        }

        /* ==================== 分类区块样式 ==================== */
        .category {
            margin-bottom: 2rem;
            padding-top: 0.2rem;
            scroll-margin-top: 85px;  /* 核心修复：为锚点滚动预留偏移量，避开固定导航栏遮挡 */
        }

        .category-title {
            position: relative;
            margin-bottom: 1.2rem;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .category-title h2 {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0;
            padding-bottom: 0;
            position: relative;
            line-height: 2.9rem;
            display: inline-block;
        }

        .category-title h2::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 4px;
            background-color: #4182f2;
            border-radius: 2px;
        }

        /* ==================== 网格布局：桌面5列，响应式适配 ==================== */
        .links-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 18px;
        }

        .link-card {
            position: relative;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 14px 12px;
            text-decoration: none;
            transition: all 0.25s ease;
            min-height: 80px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
        }

        .link-card:hover {
            border-color: #cbd5e0;
            background-color: #fefefe;
            box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08);
            transform: translateY(-3px);
        }

        .card-icon {
            width: 44px;
            height: 44px;
            flex-shrink: 0;
            background-color: #f8fafc;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .card-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .placeholder-icon {
            width: 100%;
            height: 100%;
            background: #eef2f6;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 500;
            color: #7b8a9b;
        }

        .card-info {
            flex: 1;
            overflow: hidden;
        }

        .card-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: #1f2d3d;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card-desc {
            font-size: 0.7rem;
            color: #7c8ba0;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* 浏览量悬停提示 (基于hits字段) */
        .view-count {
            position: absolute;
            top: 8px;
            right: 10px;
            background-color: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(4px);
            color: white;
            font-size: 0.65rem;
            padding: 2px 8px;
            border-radius: 20px;
            display: none;
            align-items: center;
            gap: 4px;
            font-weight: 500;
            z-index: 2;
            pointer-events: none;
        }

        .link-card:hover .view-count {
            display: inline-flex;
        }

        /* ========= 响应式断点 ========= */
        @media (max-width: 1300px) {
            .links-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }

        @media (max-width: 992px) {
            .links-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
            .navbar-custom {
                height: auto;
                min-height: 70px;
            }
            .navbar-custom .container-fluid {
                height: auto;
                padding: 0.5rem 1rem;
            }
            .navbar-nav {
                height: auto;
                padding: 0.5rem 0;
            }
            .navbar-collapse {
                background: rgba(0,0,0,0.1);
                border-radius: 12px;
                margin-top: 0.5rem;
                padding: 0.5rem;
            }
            .navbar-slogan {
                display: none;
            }
            /* 小屏幕下偏移量稍微减小以适应导航栏高度变化 */
            .category {
                scroll-margin-top: 75px;
            }
        }

        @media (max-width: 768px) {
            .nav-container {
                padding: 0 1rem;
            }
            .links-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px;
            }
            .link-card {
                padding: 10px;
            }
            .card-title {
                font-size: 0.85rem;
            }
            .category {
                scroll-margin-top: 70px;
            }
        }

        @media (max-width: 480px) {
            .links-grid {
                grid-template-columns: repeat(1, minmax(0, 1fr));
            }
            .category-title h2 {
                font-size: 1.1rem;
            }
            .category {
                scroll-margin-top: 68px;
            }
        }

        /* ==================== 新页脚样式 ==================== */
        .footer-new {
            width: 100%;
            background: #3a3a3a;
            color: #ffffff;
            padding: 40px 0 30px;
            margin-top: 3rem;
        }

        .footer-content {
            display: flex;
            align-items: flex-start;
            flex-wrap: wrap;
            max-width: 1920px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .footer-left {
            flex: 1;
            padding-right: 20px;
        }

        .company-info {
            margin-bottom: 12px;
        }

        .company-name {
            color: #ffffff;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .copyright-text {
            color: #cccccc;
            font-size: 0.85rem;
            margin-bottom: 6px;
            line-height: 1.4;
        }

        .beian-text a {
            color: #1780FD;
            text-decoration: none;
            font-size: 0.8rem;
        }

        .beian-text a:hover {
            text-decoration: underline;
        }

        .footer-right {
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
            justify-content: flex-end;
            align-items: flex-start;
            padding-left: 30px;
            flex-shrink: 0;
        }

        .qr-item {
            text-align: center;
            min-width: 120px;
        }

        .qr-code {
            width: 120px;
            height: 120px;
            background: #ffffff;
            padding: 6px;
            border-radius: 4px;
            margin-bottom: 8px;
            object-fit: contain;
            display: block;
            transition: transform 0.2s;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }

        .qr-code:hover {
            transform: scale(1.02);
        }

        .qr-text {
            color: #cccccc;
            font-size: 0.85rem;
            margin: 0;
            line-height: 1.3;
            font-weight: 500;
            text-align: center;
        }

        @media (max-width: 768px) {
            .footer-content {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            .footer-left {
                padding-right: 0;
                margin-bottom: 30px;
                text-align: center;
            }
            .footer-right {
                border-left: none;
                padding-left: 0;
                justify-content: center;
                gap: 1.5rem;
            }
            .company-name, .copyright-text, .beian-text {
                text-align: center;
            }
            .qr-item {
                min-width: 100px;
            }
            .qr-code {
                width: 100px;
                height: 100px;
                margin: 0 auto 8px;
            }
        }

        @media (max-width: 480px) {
            .footer-new {
                padding: 30px 20px;
            }
            .footer-right {
                gap: 1.2rem;
            }
            .qr-code {
                width: 90px;
                height: 90px;
                margin: 0 auto 8px;
            }
            .qr-text {
                font-size: 0.75rem;
            }
        }

        .sticky-top {
            z-index: 1030;
        }
        /* 加载提示样式 */
        .loading-placeholder {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
            color: #7c8ba0;
            font-size: 1rem;
        }
        
        /* 平滑滚动全局 */
        html {
            scroll-behavior: smooth;
        }