* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: #f5f5f5;
            color: #333;
            overflow-x: hidden;
        }
        
        /* 允许特定元素选择文本 */
        .resource-title, .search-input {
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 电脑端导航样式 - 全新美化 */
        .main-nav {
            background: #ffffff;
            box-shadow: 0 2px 15px rgba(0,0,0,0.08);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid #f0f5ff;
        }
        
        .nav-container {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 电脑端导航列表 - 美化 */
        .nav-list {
            display: flex;
            list-style: none;
            padding: 0;
            justify-content: center;
            align-items: center;
            gap: 2px;
        }
        
        .nav-list li {
            position: relative;
        }
        
        /* 一级导航链接 - 全新美化 */
        .nav-list > li > a {
            display: block;
            padding: 18px 25px;
            text-decoration: none;
            color: #333333;
            font-weight: 600;
            font-size: 16px;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1001;
            white-space: nowrap;
            letter-spacing: 0.5px;
        }
        
        /* 一级导航 hover 和 active 状态 */
        .nav-list > li > a:hover {
            color: #1890ff;
            background-color: #f0f7ff;
        }
        
        .nav-list > li > a.active {
            color: #1890ff;
            border-bottom-color: #1890ff;
            background-color: #f0f7ff;
        }
        
        /* 一级导航主菜单（带下拉）样式 */
        .nav-list > li > a.nav-primary {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        /* 电脑端二级导航容器 - 纵向排列 */
        .subnav-container {
            display: none;
            position: absolute;
            left: 0;
            top: 100%;
            background: #fff;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            z-index: 1000;
            border: 1px solid #f0f5ff;
            border-top: 2px solid #1890ff;
            animation: fadeInDown 0.3s ease;
            min-width: 220px;
            max-width: 280px;
            border-radius: 0 0 8px 8px;
            overflow: hidden;
        }
        
        /* 电脑端二级菜单内容 - 纵向排列 */
        .subnav-content {
            padding: 10px 0;
            max-height: 400px;
            overflow-y: auto;
        }
        
        .subnav-list {
            list-style: none;
        }
        
        .subnav-item {
            padding: 0;
        }
        
        .subnav-link {
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-decoration: none;
            color: #333;
            font-size: 14px;
            padding: 12px 20px;
            transition: all 0.2s ease;
            font-weight: 500;
        }
        
        .subnav-link:hover {
            color: #1890ff;
            background: #f5f8ff;
            padding-left: 25px;
        }
        
        .count-badge {
            display: inline-block;
            background: #1890ff;
            color: white;
            font-size: 11px;
            padding: 1px 6px;
            border-radius: 8px;
            margin-left: 2px;
            min-width: 18px;
            text-align: center;
            font-weight: normal;
        }
        
        /* 移除一级导航的数字徽章样式 */
        .nav-primary-badge {
            display: none;
        }
        
        /* 搜索框样式优化 */
        .search-box {
            padding: 10px 0;
            background: #fff;
            text-align: center;
            margin-bottom: 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            overflow: visible;
        }

        /* 表单改用 flex 布局，消除行内基线间隙，使白色背景高度与搜索框一致 */
        .search-box .search-form {
            display: flex;
            justify-content: center;
        }
        
        /* 修复下载提示下方多余白背景 */
        @media (max-width: 768px) {
            .announcement-container {
                margin-bottom: 0;
            }
            
            .download-notice-container {
                margin-bottom: 10px;
            }
        }
        
        .search-wrapper {
            position: relative;
            display: inline-block;
            width: 90%;
            max-width: 500px;
        }
        
        .search-input {
            width: 100%;
            padding: 14px 20px 14px 20px;
            border: 2px solid #e8e8e8;
            border-radius: 30px;
            font-size: 16px;
            outline: none;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .search-input:focus {
            border-color: #1890ff;
            box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.1);
        }
        
        .search-btn {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            background: #1890ff;
            color: white;
            border: none;
            border-radius: 25px;
            padding: 10px 22px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
        }
        
        .search-btn:hover {
            background: #096dd9;
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
            transform: translateY(-50%) scale(1.05);
        }
        
        /* 搜索结果页头部 */
        .search-results-header {
            background: #fff;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }
        
        .search-results-header .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .search-form-inline {
            flex: 1;
            max-width: 400px;
        }
        
        .search-wrapper-inline {
            position: relative;
            display: flex;
        }
        
        .search-input-inline {
            flex: 1;
            padding: 10px 15px;
            border: 2px solid #e8e8e8;
            border-radius: 25px 0 0 25px;
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
        }
        
        .search-input-inline:focus {
            border-color: #1890ff;
            box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
        }
        
        .search-btn-inline {
            background: #1890ff;
            color: white;
            border: none;
            border-radius: 0 25px 25px 0;
            padding: 10px 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .search-btn-inline:hover {
            background: #096dd9;
        }
        
        /* 搜索排序 */
        .search-sort {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
        }
        
        .sort-label {
            color: #666;
        }
        
        .sort-option {
            color: #666;
            text-decoration: none;
            padding: 6px 15px;
            border-radius: 15px;
            transition: all 0.3s ease;
        }
        
        .sort-option:hover {
            color: #1890ff;
            background: #f0f7ff;
        }
        
        .sort-option.active {
            color: white;
            background: #1890ff;
        }
        
        /* 搜索提示 */
        .search-tips {
            margin-top: 8px;
            font-size: 12px;
            color: #999;
            font-style: italic;
        }
        
        /* 搜索建议 */
        .search-suggestions {
            margin-top: 15px;
            font-size: 14px;
            color: #666;
        }
        
        .suggest-tag {
            display: inline-block;
            padding: 4px 10px;
            margin: 4px 6px;
            background: #f5f5f5;
            color: #333;
            border-radius: 8px;
            font-size: 13px;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .suggest-tag:hover {
            background: #1890ff;
            color: white;
        }
        
        /* 搜索建议自动补全 */
        .search-suggestions-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            border: 1px solid #e8e8e8;
            border-top: none;
            border-radius: 0 0 30px 30px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            z-index: 9999;
            max-height: 300px;
            overflow-y: auto;
            display: none;
            box-sizing: border-box;
            padding: 0;
            margin: 0;
        }
        
        .search-wrapper {
            position: relative;
            display: inline-block;
            width: 90%;
            max-width: 500px;
        }
        
        .search-wrapper .search-suggestions-dropdown {
            width: 100%;
            left: 0;
            border-radius: 0 0 30px 30px;
        }
        
        .search-wrapper-inline {
            position: relative;
            display: flex;
        }
        
        .search-wrapper-inline .search-suggestions-dropdown {
            width: 100%;
            left: 0;
            border-radius: 0 0 25px 25px;
            border-top: 1px solid #e8e8e8;
        }
        
        .search-suggestions-dropdown.active {
            display: block;
        }
        
        .suggestion-item {
            padding: 12px 15px;
            cursor: pointer;
            font-size: 14px;
            color: #333;
            transition: background 0.2s;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .suggestion-item:last-child {
            border-bottom: none;
        }
        
        .suggestion-item:hover {
            background: #f0f7ff;
        }
        
        .suggestion-item strong {
            color: #1890ff;
            font-weight: 600;
        }
        
        .suggestion-item .suggest-icon {
            margin-right: 8px;
            color: #999;
        }
        
        /* 搜索关键词高亮 */
        .highlight {
            background: linear-gradient(120deg, #ffe58f 0%, #ffd54f 100%);
            padding: 2px 4px;
            border-radius: 3px;
            color: #e65100;
            font-weight: 600;
        }
        
        /* 资源统计文字样式 */
        .total-resource-count {
            margin-top: 15px;
            margin-bottom: 0;
            font-size: 15px;
            color: #666;
            text-align: center;
            font-weight: 500;
        }
        
        @media (max-width: 768px) {
            .total-resource-count {
                margin-top: 10px;
                margin-bottom: 5px;
            }
        }
        
        /* 新增：滚动公告样式 */
        .announcement-container {
            background: #fff;
            padding: 10px 20px;
            margin: 0 auto 10px;
            max-width: 1200px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            overflow: hidden;
            position: relative;
            height: 40px;
            line-height: 40px;
        }
        
        .announcement-content {
            position: absolute;
            white-space: nowrap;
            left: 100%;
            top: 0;
            display: flex;
            align-items: center;
            gap: 50px;
        }
        
        .announcement-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }
        
        .announcement-icon {
            color: #e60012;
            font-weight: bold;
        }
        

        
        /* 瀑布流 */
        .waterfall {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }
        
        /* 新增：最近更新瀑布流样式 */
        .recent-updates-section {
            margin-bottom: 30px;
        }
        
        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            margin: 0 0 20px 0;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f5ff;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .section-title::before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 20px;
            background: #1890ff;
            border-radius: 2px;
        }
        
        /* 响应式调整 */
        @media (max-width: 1200px) {
            .waterfall {
                grid-template-columns: repeat(3, 1fr);
                gap: 15px;
            }
        }
        
        /* 手机端样式 - 优化所有二级导航尺寸和位置 */
        @media (max-width: 768px) {
            /* 禁止横向滚动 */
            html, body {
                overflow-x: hidden;
            }
            
            /* 手机端导航容器 */
            .nav-container {
                padding: 0;
                position: relative;
                width: 100%;
                overflow: visible;
            }
            
            /* 手机端导航 - 恢复三列布局，第三行靠左对齐 */
            .nav-list {
                display: flex;
                flex-wrap: wrap;
                gap: 0;
                padding: 0;
                border-bottom: 1px solid #e8e8e8;
                justify-content: flex-start; /* 整体靠左对齐 */
                width: 100%;
            }
            
            .nav-list > li {
                text-align: left; /* 文字靠左 */
                border-right: 1px solid #e8e8e8;
                border-bottom: 1px solid #e8e8e8;
                width: 33.333%;
                position: relative;
            }
            
            /* 手机端一级导航链接 - 加粗 */
            .nav-list > li > a {
                padding: 12px 10px;
                text-align: center;
                font-weight: 600; /* 字体加粗 */
                font-size: 17px;
                padding: 12px 8px;
                text-align: center;
                white-space: nowrap;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                min-height: auto;
                border-bottom: none;
                width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            /* 每第三个元素去掉右边框 */
            .nav-list > li:nth-child(3n) {
                border-right: none;
            }
            
            /* 最后一行不足三个的元素处理 */
            .nav-list > li:last-child:nth-child(3n+1),
            .nav-list > li:last-child:nth-child(3n+2) {
                border-bottom: 1px solid #e8e8e8;
            }
            
            /* 导航文本容器 - 确保一行显示，缩短箭头间距 */
            .nav-text-container {
                display: flex;
                align-items: center;
                justify-content: center;
                flex: 1;
                overflow: hidden;
                margin-right: 2px; /* 缩短与箭头的间距 */
            }
            
            /* 手机端二级导航 - 统一尺寸，确保不超出屏幕 */
            .subnav-container {
                position: absolute;
                display: none;
                box-shadow: 0 8px 24px rgba(0,0,0,0.15);
                border: 1px solid #e8e8e8;
                background: #fff;
                border-top: 2px solid #1890ff;
                /* 关键修改：限制最大宽度为屏幕宽度的90% */
                width: calc(100vw - 20px);
                max-width: 320px; /* 最大宽度不超过320px */
                min-width: 200px; /* 最小宽度保证可用性 */
                animation: none;
                border-radius: 8px;
                margin-top: 5px;
                z-index: 1002; /* 提高层级置顶 */
                top: 100%; /* 紧贴导航底部 */
                transform: translateY(0);
                /* 默认居中显示 */
                left: 50%;
                transform: translateX(-50%);
            }
            
            /* 左侧导航项的二级导航 - 左对齐 */
            .nav-list > li:nth-child(3n-2) .subnav-container {
                left: 0;
                transform: translateX(0);
            }
            
            /* 右侧导航项的二级导航 - 右对齐 */
            .nav-list > li:nth-child(3n) .subnav-container {
                left: auto;
                right: 0;
                transform: translateX(0);
            }
            
            .nav-list > li.active .subnav-container {
                display: block;
            }
            
            .subnav-content {
                max-height: 280px; /* 降低最大高度 */
                padding: 8px 10px; /* 减少内边距 */
                overflow-y: auto;
            }
            
            /* 手机端二级菜单网格布局 - 改为单列，减小尺寸 */
            .subnav-list {
                display: grid;
                grid-template-columns: 1fr; /* 改为单列布局 */
                gap: 5px; /* 减小间距 */
            }
            
            .subnav-item {
                background: white;
                border-radius: 6px;
                overflow: hidden;
                box-shadow: 0 1px 2px rgba(0,0,0,0.08);
                border: 1px solid #eee;
            }
            
            .subnav-link {
                padding: 10px 12px; /* 调整内边距 */
                flex-direction: row; /* 改回横向排列 */
                justify-content: space-between;
                text-align: left;
                font-size: 14px;
                font-weight: 500;
                min-height: auto; /* 取消最小高度 */
            }
            
            .count-badge {
                margin-top: 0; /* 恢复横向排列的徽章位置 */
                margin-left: 5px;
                font-size: 10px;
                padding: 1px 4px;
            }
            
            /* 手机端导航指示箭头 - 缩短间距 */
            .nav-arrow {
                margin-left: 3px;
                font-size: 12px;
                transition: transform 0.3s;
                flex-shrink: 0;
            }
            
            /* 手机端活动状态 */
            .nav-list > li.active > a {
                color: #1890ff;
                background: #f0f7ff;
                font-weight: 600;
            }
            
            /* 手机端搜索按钮适配 */
            .search-btn {
                padding: 8px 15px;
                font-size: 14px;
            }
            
            .waterfall {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            /* 手机端公告样式 */
            .announcement-container {
                height: 36px;
                line-height: 36px;
                padding: 8px 15px;
            }
            
            /* 手机端搜索结果头部 */
            .search-results-header .container {
                flex-direction: column;
                align-items: stretch;
            }
            
            .search-form-inline {
                max-width: 100%;
            }
            
            .search-sort {
                justify-content: center;
                margin-top: 5px;
            }
            
            /* 手机端搜索排序 */
            .sort-option {
                padding: 5px 12px;
                font-size: 13px;
            }
            
            /* 手机端最近更新瀑布流 */
            .recent-updates-section .waterfall {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
        }
        
        @media (max-width: 480px) {
            .waterfall {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            
            .nav-list > li > a {
                font-size: 16px; /* 保持14号字体 */
                padding: 10px 5px;
                font-weight: 600;
            }
            
            /* 小屏幕进一步减小二级导航尺寸 */
            .subnav-container {
                max-width: 280px; /* 更小的最大宽度 */
                width: calc(100vw - 10px);
            }
            
            .subnav-content {
                max-height: 250px;
                padding: 5px 8px;
            }
            
            .subnav-link {
                font-size: 13px;
                padding: 8px 10px;
                font-weight: 500;
            }
        }
        
        /* 为每个一级菜单项对应的二级菜单单独样式 - 电脑端悬停显示 */
        .nav-list > li:hover .subnav-container {
            display: block;
        }
        
        .resource-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
            border: 1px solid #f0f0f0;
            position: relative;
        }
        
        .resource-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.12);
            border-color: #e8f4ff;
        }
        
        /* 置顶标识 - 丝带折角样式 */
        .top-badge {
            position: absolute;
            top: -6px;
            left: -6px;
            z-index: 10;
            width: 76px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1px;
            border-radius: 4px 4px 4px 0;
            box-shadow: 0 2px 6px rgba(255, 107, 53, 0.35);
            pointer-events: none;
            overflow: visible;
        }
        .top-badge::before {
            /* 左下角折角阴影 */
            content: '';
            position: absolute;
            left: 0;
            bottom: -5px;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 0 6px 5px 0;
            border-color: transparent #b33a0a transparent transparent;
        }
        .top-badge::after {
            /* 左上角小图钉效果 */
            content: '';
            position: absolute;
            top: -2px;
            right: -2px;
            width: 10px;
            height: 10px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
        .top-badge .pin-icon {
            font-size: 11px;
            transform: rotate(-15deg);
            display: inline-block;
        }
        
        .resource-img-container {
            width: 100%;
            position: relative;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            aspect-ratio: 3/4;
            cursor: pointer;
        }
        
        .resource-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.3s;
            background: #f8f9fa;
        }
        
        .resource-card:hover .resource-img {
            transform: scale(1.05);
        }
        
        .img-error {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8f9fa;
            color: #999;
            font-size: 14px;
            text-align: center;
            padding: 20px;
            cursor: default;
        }
        
        .no-preview {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
            color: #999;
            flex-direction: column;
            cursor: default;
        }
        
        .no-preview-icon {
            font-size: 48px;
            margin-bottom: 10px;
            opacity: 0.5;
        }
        
        .no-preview-text {
            font-size: 14px;
        }

        /* ========== 分类页顶部：标题行 + 年级/同级科目筛选（参考布局优化） ========== */
        .page-title-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            margin: 0 0 12px 0;
        }
        .page-title-main {
            font-size: 26px;
            font-weight: 700;
            color: #333;
            margin: 0;
        }
        .page-title-count {
            font-size: 14px;
            color: #999;
            white-space: nowrap;
        }
        .category-filter-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin: 0 0 20px 0;
        }
        .filter-label {
            font-size: 14px;
            color: #666;
            white-space: nowrap;
        }
        .filter-select {
            padding: 6px 10px;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            font-size: 14px;
            color: #333;
            background: #fff;
            cursor: pointer;
        }
        .filter-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .filter-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            border: 1px solid #d9d9d9;
            border-radius: 999px;
            font-size: 14px;
            color: #555;
            text-decoration: none;
            background: #fff;
            transition: border-color 0.15s, color 0.15s;
        }
        .filter-pill:hover { border-color: #1890ff; color: #1890ff; }
        .filter-pill.active {
            border-color: #1890ff;
            color: #1890ff;
            background: #f0f8ff;
            font-weight: 600;
        }
        .pill-count {
            font-size: 12px;
            color: #1890ff;
            background: #e8f4ff;
            border-radius: 999px;
            padding: 0 7px;
            line-height: 18px;
        }
        .filter-pill.active .pill-count { background: #1890ff; color: #fff; }

        /* ========== 公告条：黄底横幅 + 关闭按钮（全站显示） ========== */
        .announcement-container.notice-bar {
            background: #fffbe6;
            border: 1px solid #ffe58f;
            box-shadow: none;
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 0 auto;
        }
        .notice-close {
            flex-shrink: 0;
            margin-left: auto;
            border: none;
            background: transparent;
            color: #999;
            font-size: 14px;
            cursor: pointer;
            padding: 4px 6px;
            line-height: 1;
        }
        .notice-close:hover { color: #333; }

        /* ========== 公告显示方式二：逐条淡入淡出（公告栏样式） ========== */
        .announcement-container.notice-bar.notice-fade {
            padding: 0 12px;
            gap: 10px;
        }
        .notice-label {
            flex: none;
            font-size: 13px;
            font-weight: 600;
            color: #d48806;
            white-space: nowrap;
        }
        .notice-viewport {
            position: relative;
            flex: 1;
            min-width: 0;
            height: 40px;
            overflow: hidden;
        }
        .notice-fade .notice-item {
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            display: block;
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            opacity: 0;
            transition: opacity .4s ease;
            text-decoration: none;
        }
        .notice-fade .notice-item.active { opacity: 1; }
        @media (max-width: 768px) {
            .announcement-container.notice-bar.notice-fade { padding: 0 10px; gap: 8px; }
            .notice-fade .notice-viewport { height: 36px; }
            .notice-label { font-size: 12px; }
        }

        /* ========== 文字封面兜底：封面图失效/缺失时显示（渐变底图+分类徽章+标题） ========== */
        .cover-fallback {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            display: flex;
            flex-direction: column;
            padding: 16px 14px;
            color: #fff;
            overflow: hidden;
        }
        .cover-fallback::before,
        .cover-fallback::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            background: rgba(255,255,255,0.10);
            pointer-events: none;
        }
        .cover-fallback::before { width: 150px; height: 150px; right: -50px; top: -50px; }
        .cover-fallback::after  { width: 190px; height: 190px; left: -70px; bottom: -70px; }
        .cover-fallback.cf-0 { background: linear-gradient(150deg, #4f8ef7 0%, #2b6de8 55%, #1e56c8 100%); }
        .cover-fallback.cf-1 { background: linear-gradient(150deg, #2dd4bf 0%, #14a89a 55%, #0d8378 100%); }
        .cover-fallback.cf-2 { background: linear-gradient(150deg, #4ade80 0%, #22b45e 55%, #15803d 100%); }
        .cover-fallback.cf-3 { background: linear-gradient(150deg, #fb923c 0%, #f97316 55%, #d9560b 100%); }
        .cover-fallback.cf-4 { background: linear-gradient(150deg, #a78bfa 0%, #8b5cf6 55%, #6d28d9 100%); }
        .cover-fallback.cf-5 { background: linear-gradient(150deg, #fb7185 0%, #f43f5e 55%, #d92d4b 100%); }
        .cover-fallback .cf-badge {
            align-self: flex-start;
            background: rgba(255,255,255,0.22);
            padding: 3px 12px;
            border-radius: 4px;
            font-size: 14px;
            letter-spacing: 1px;
            position: relative; z-index: 1;
        }
        .cover-fallback .cf-sub {
            font-size: 24px;
            font-weight: 700;
            margin-top: 12px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.12);
            position: relative; z-index: 1;
        }
        .cover-fallback .cf-title {
            font-size: 15px;
            font-weight: 600;
            line-height: 1.55;
            margin-top: 8px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.10);
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            position: relative; z-index: 1;
        }
        .cover-fallback .cf-site {
            margin-top: auto;
            font-size: 12px;
            opacity: 0.7;
            position: relative; z-index: 1;
        }
        /* 相关资源小卡片使用紧凑字号 */
        .related-img-container .cover-fallback { padding: 12px; }
        .related-img-container .cover-fallback .cf-badge { font-size: 12px; padding: 3px 10px; }
        .related-img-container .cover-fallback .cf-sub { font-size: 17px; margin-top: 7px; }
        .related-img-container .cover-fallback .cf-title { font-size: 14px; -webkit-line-clamp: 4; margin-top: 5px; }
        .related-img-container .cover-fallback .cf-site { font-size: 11px; }

        
        .resource-content {
            padding: 15px 15px 10px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .resource-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
            color: #333;
        }
        
        /* 新增：分类路径样式 */
        .resource-category {
            font-size: 12px;
            color: #666;
            padding: 4px 0 0;
            border-top: 1px dashed #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }
        
        /* 新增：时间显示样式 */
        .resource-time {
            font-size: 12px;
            color: #999;
            font-style: italic;
        }
        
        /* 手机端适配：分类和时间分两行显示 */
        @media (max-width: 768px) {
            .resource-category {
                display: block;
                justify-content: flex-start;
                align-items: flex-start;
            }
            
            .resource-time {
                display: block;
                margin-top: 4px;
            }
        }
        
        /* 按钮容器样式 */
        .button-container {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }
        /* 下载按钮样式 */
        .download-btn {
            flex: 1;
            background: #1890ff;
            color: white;
            text-align: center;
            padding: 12px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 15px;
            box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .download-btn:hover {
            background: #096dd9;
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
            transform: translateY(-2px);
        }
        /* 分享按钮样式 */
        .share-btn {
            flex: 1;
            background: #fff;
            color: #666;
            text-align: center;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border: 2px solid #e8e8e8;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .share-btn:hover {
            border-color: #1890ff;
            color: #1890ff;
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
            transform: translateY(-2px);
        }
        /* 按钮图标 */
        .download-btn::before {
            content: '⬇️';
            font-size: 14px;
        }
        .share-btn::before {
            content: '🔗';
            font-size: 14px;
        }
        
        /* 页脚 */
        .footer {
            text-align: center;
            padding: 40px 20px;
            color: #666;
            font-size: 15px;
            margin-top: 50px;
            border-top: 1px solid #e8e8e8;
            background: #fff;
            font-weight: 500;
        }
        
        /* 结果标题 */
        .result-title {
            margin: 0 0 25px 0;
            font-size: 19px;
            color: #333;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f5ff;
            font-weight: 600;
        }
        
        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            color: #999;
            grid-column: 1 / -1;
        }
        
        .empty-state h3 {
            font-size: 20px;
            margin-bottom: 15px;
            color: #666;
            font-weight: 600;
        }
        
        .empty-state p {
            font-size: 15px;
            line-height: 1.6;
        }
        
        /* 动画 */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 导航指示箭头 */
        .nav-arrow {
            display: inline-block;
            margin-left: 6px;
            font-size: 13px;
            transition: transform 0.3s;
        }
        
        .nav-list > li.active .nav-arrow {
            transform: rotate(180deg);
        }
        /* ========== 新增：图片放大预览样式 ========== */
        .image-preview-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.9);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }
        .image-preview-modal.active {
            display: flex;
        }
        .preview-img-container {
            max-width: 90%;
            max-height: 90%;
            position: relative;
        }
        .preview-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 10px;
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
        }
        .close-preview {
            position: absolute;
            top: -40px;
            right: 0;
            color: white;
            font-size: 32px;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transition: all 0.3s ease;
        }
        .close-preview:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }
        /* 移动端适配关闭按钮 */
        @media (max-width: 768px) {
            .close-preview {
                top: -30px;
                font-size: 24px;
                width: 30px;
                height: 30px;
            }
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        /* 分页样式 - 美化 */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 40px 0;
            gap: 8px;
            flex-wrap: wrap;
        }
        .pagination a, .pagination span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 16px;
            border-radius: 8px;
            text-decoration: none;
            color: #333;
            background: #fff;
            border: 1px solid #e8e8e8;
            min-width: 45px;
            height: 45px;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.2s ease;
            box-shadow: 0 2px 5px rgba(0,0,0,0.03);
        }
        .pagination a:hover {
            background: #f0f7ff;
            border-color: #1890ff;
            color: #1890ff;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(24, 144, 255, 0.1);
        }
        .pagination a.active {
            background: #1890ff;
            color: white;
            border-color: #1890ff;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
        }
        .pagination a.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
            background: #f5f5f5;
        }
        .pagination .page-jump {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: 15px;
        }
        .pagination .page-input {
            width: 60px;
            height: 45px;
            padding: 0 10px;
            border: 1px solid #e8e8e8;
            border-radius: 8px;
            text-align: center;
            font-size: 15px;
            font-weight: 500;
            transition: border-color 0.2s;
        }
        
        .pagination .page-input:focus {
            border-color: #1890ff;
            outline: none;
        }
        .pagination .jump-btn {
            padding: 10px 20px;
            background: #1890ff;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 15px;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
        }
        .pagination .jump-btn:hover {
            background: #096dd9;
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
            transform: translateY(-2px);
        }
        @media (max-width: 768px) {
            .pagination {
                gap: 5px;
                margin: 25px 0;
            }
            
            .pagination a, .pagination span {
                padding: 8px 12px;
                min-width: 38px;
                height: 38px;
                font-size: 14px;
            }
            
            .pagination .page-jump {
                width: 100%;
                justify-content: center;
                margin-top: 15px;
                margin-left: 0;
            }
            
            .pagination .page-input {
                height: 38px;
                width: 50px;
            }
            
            .pagination .jump-btn {
                padding: 8px 15px;
                font-size: 14px;
            }
            
            /* 响应式调整 */
            .button-container {
                gap: 8px;
            }
            
            .download-btn,
            .share-btn {
                padding: 10px;
                font-size: 14px;
            }
        }
        
        @media (max-width: 480px) {
            .download-btn,
            .share-btn {
                padding: 10px 8px;
                font-size: 13px;
            }
            
            .download-btn::before,
            .share-btn::before {
                font-size: 12px;
            }
        }
        
        /* 搜索关键词展示样式 */
        .keywords-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 15px 0;
            align-items: center;
        }
        
        .keyword-tag {
            background: #f0f7ff;
            color: #1890ff;
            padding: 5px 12px;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 500;
            border: 1px solid #d9eaff;
            display: inline-flex;
            align-items: center;
        }
        
        .keyword-tag::before {
            content: '✓';
            margin-right: 3px;
            font-size: 12px;
            font-weight: bold;
        }
        
        .keyword-tag.all-match::before {
            content: '✓✓';
            color: #52c41a;
        }
        
        .search-requirements {
            font-size: 14px;
            color: #666;
            margin-top: 5px;
            font-style: italic;
        }
        
        /* 反爬虫警告样式 */
        .anti-crawler-warning {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.95);
            color: white;
            z-index: 99999;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 20px;
            font-family: Arial, sans-serif;
        }
        
        .anti-crawler-warning h1 {
            font-size: 28px;
            margin-bottom: 20px;
            color: #ff6b6b;
        }
        
        .anti-crawler-warning p {
            font-size: 18px;
            margin-bottom: 10px;
            line-height: 1.5;
        }
        
        .anti-crawler-warning button {
            margin-top: 30px;
            padding: 12px 40px;
            font-size: 18px;
            background: #1890ff;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .anti-crawler-warning button:hover {
            background: #096dd9;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
        }
        
        /* 提示消息样式 */
        .index-toast {
            position: fixed;
            top: 30px;
            right: 30px;
            background: #52c41a;
            color: white;
            padding: 15px 25px;
            border-radius: 10px;
            box-shadow: 0 10px 20px rgba(82, 196, 26, 0.3);
            z-index: 10001;
            display: none;
            animation: slideInRight 0.3s ease;
        }
        
        .index-toast.error {
            background: #ff4d4f;
        }

.seo-grade-group ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.seo-grade-group li {
    margin-bottom: 3px;
}
.seo-grade-group a {
    color: #1890ff;
    text-decoration: none;
    font-size: 12px;
}
.seo-grade-group a:hover {
    text-decoration: underline;
}


.nav-list>li:hover .subnav-container,.nav-list>li:focus-within .subnav-container{display:block}
