/* 全局样式重置 - 完全复用原页面 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft Yahei", Arial, sans-serif;
        }

        html, body {
            height: 100%;
            min-height: 100vh;
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
            min-width: 320px;
            display: flex;
            flex-direction: column;
            /* 防止body重排影响导航栏 */
            overflow-x: hidden;
        }

        /* 头部样式 - 核心修改：固定高度 + 防止重排 */
        .header {
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            text-align: center;
            /* 改用固定高度 + 最小/最大限制，移除vh单位 */
            height: 170px;
            min-height: 170px;
            max-height: 285px;
            /* 关键：防止布局偏移 */
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 10px;
            margin-bottom: 20px;
            /* 锁定导航栏布局 */
            flex-shrink: 0;
        }

        .header-container {
            max-width: 1200px;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px; /* 固定间距，移除vh单位 */
            height: 100%;
            /* 防止容器重排 */
            flex-shrink: 0;
        }

        /* 图片Logo样式 */
        .logo {
            width: 100%;
            max-width: 280px;
            height: auto;
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 3px;
        }
        .logo a {
                display: block;
                width: 100%;
                height: 100%;
            }
        .logo-img {
            width: 100%;
            max-width: 260px;
            height: auto;
            max-height: 80px; /* 替换9vh为固定值，适配header高度 */
            object-fit: contain;
            border-radius: 8px;
            display: block;
        }

        /* 搜索框容器 - 移除多余的min-height，仅做布局容器 */
        .search-wrapper {
            width: 100%;
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 3px 0 8px;
            /* 移除min-height: 60px，避免强制拉高容器 */
        }

        .search-box {
            flex: 1;
            max-width: 600px;
            min-width: 280px;
            position: relative;
            /* 防止搜索框重排 */
            flex-shrink: 0;
        }

        /* 搜索框 - 固定高度+精准padding，消除高度冗余 */
        .search-input {
            width: 100%;
            padding: 10px 20px; /* 减少垂直padding，降低整体高度 */
            border: 1px solid #ddd;
            border-radius: 30px;
            font-size: 16px;
            outline: none;
            transition: border-color 0.3s, box-shadow 0.3s;
            height: 50px; /* 用固定height替代min-height，锁定高度 */
            line-height: 24px; /* 固定行高，避免文字撑开高度 */
        }

        .search-input:focus {
            border-color: #3498db;
            box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
        }

        /* 搜索按钮 - 匹配搜索框高度，统一视觉基线 */
        .search-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background-color: #3498db;
            color: white;
            border: none;
            padding: 0 20px; /* 移除垂直padding，用height控制高度 */
            border-radius: 25px;
            cursor: pointer;
            font-size: 15px;
            white-space: nowrap;
            font-weight: 500;
            height: 42px; /* 固定高度，替代min-height */
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 筛选栏样式 - 简化折叠功能，仅移动端生效 */
        .filter-container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto 0; /* 手机版底边距设为0 */
            padding: 0 10px;
            /* 防止筛选栏影响导航栏 */
            flex-shrink: 0;
        }
        
        .filter-section {
            width: 100%;
            padding: 0; /* 完全移除内边距，确保三角顶边距为0 */
            background-color: transparent;
            border-radius: 8px;
            box-shadow: none;
            border: none !important;
        }

        /* 筛选折叠按钮样式 - 默认隐藏，仅移动端显示 */
        .filter-toggle-btn {
            display: none;
            width: 100%;
            background: transparent; /* 透明背景 */
            border: none; /* 移除边框 */
            /* 顶边距0，底边距5px，左右15px，无上下内边距 */
            padding: 0 15px 5px;
            font-size: 15px;
            justify-content: center; /* 居中显示三角 */
            align-items: flex-start; /* 顶部对齐，确保顶边距0 */
            cursor: pointer;
            margin: 0; /* 移除所有外边距 */
            line-height: 1; /* 行高1，避免额外高度 */
        }

        /* 倒三角样式 - 默认向下，顶边距0 */
        .filter-toggle-btn .triangle-icon {
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            /* 倒三角默认向下：上边框有颜色 */
            border-top: 8px solid #666; 
            transition: transform 0.3s ease;
            margin-top: 0; /* 强制顶边距0 */
            display: inline-block;
        }

        /* 展开状态下三角旋转180度（朝上） */
        .filter-toggle-btn:not(.collapsed) .triangle-icon {
            transform: rotate(180deg); 
        }

        /* 折叠按钮文字样式 */
        .filter-toggle-btn .toggle-text {
            margin-left: 8px;
            font-size: 15px;
            color: #666;
            margin-top: 0; /* 文字顶边距0 */
            line-height: 1.2; /* 紧凑行高 */
        }

        .filter-section .btn-light {
            width: 100%;
            text-align: left;
            background-color: #f8f9fa;
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 8px 12px;
            font-size: clamp(13px, 2.5vw, 15px);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .filter-section .btn-light::after {
            margin-left: auto;
        }

        .filter-section .dropdown-menu {
            width: 100%;
            font-size: clamp(12px, 2.3vw, 14px);
        }

        .filter-section .btn-secondary {
            width: 100%;
            background-color: #6c757d;
            border: none;
            border-radius: 6px;
            padding: 8px 12px;
            font-size: clamp(13px, 2.5vw, 15px);
        }

        /* 关键词高亮样式 */
        .highlight {
            background-color: #fff176;
            color: #d32f2f;
            padding: 0 2px;
            border-radius: 2px;
            font-weight: 600;
        }

        /* 主内容容器 - 自适应优化 */
        .main-container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto 20px;
            padding: 0 10px;
            flex: 1;
            /* 主内容区单独滚动，不影响导航栏 */
            overflow-y: auto;
        }

        /* 结果统计 - 减少上边距 */
        .result-stats {
            width: 100%;
            background-color: #fff;
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 15px;
            margin-top: 8px;
            font-size: clamp(13px, 2.8vw, 15px);
            color: #666;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        /* 结果列表 - 核心自适应优化 */
        .result-list {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: clamp(8px, 2vw, 12px);
        }

        .result-item {
            width: 100%;
            background-color: #fff;
            border-radius: 8px;
            padding: clamp(12px, 3vw, 18px) clamp(14px, 3.5vw, 20px);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: transform 0.1s, box-shadow 0.1s;
			touch-action: manipulation; /* 告诉浏览器无需处理缩放/滚动 */
			-webkit-tap-highlight-color: transparent; /* 移除点击高亮（安卓） */

        }


        /* 标题样式：强制单行，超出隐藏 */
        .result-title {
            font-size: clamp(15px, 3.5vw, 18px);
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: clamp(6px, 1.5vw, 8px);
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* 核心修改：移除标题链接下划线 */
        .result-title a {
            color: inherit;
            text-decoration: none !important;
        }

        .result-title a:hover {
            color: #3498db;
            text-decoration: none !important;
        }
        .result-title em{
            background-color: #fff176;
            color: #d32f2f;
            padding: 0 2px;
            border-radius: 2px;
            font-weight: 600;
            font-style: normal;
        }
        /* 描述样式：多行截断 */
        .result-desc {
            font-size: clamp(12px, 2.8vw, 15px);
            color: #666;
            margin-bottom: clamp(8px, 2vw, 10px);
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .result-desc em{
            background-color: #fff176;
            color: #d32f2f;
            padding: 0 2px;
            border-radius: 2px;
            font-weight: 600;
            font-style: normal;
        }

        .result-meta {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            font-size: clamp(11px, 2.5vw, 13px);
            color: #999;
        }

        /* 空结果样式 - 自适应优化 */
        .empty-result {
            width: 100%;
            background-color: #fff;
            border-radius: 8px;
            padding: clamp(40px, 10vw, 60px) clamp(15px, 4vw, 20px);
            text-align: center;
            margin: 20px 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        .empty-icon {
            font-size: clamp(36px, 12vw, 48px);
            color: #ddd;
            margin-bottom: clamp(10px, 3vw, 15px);
        }

        .empty-text {
            font-size: clamp(14px, 3vw, 16px);
            color: #666;
            margin-bottom: clamp(15px, 4vw, 20px);
        }

        .empty-btn {
            background-color: #3498db;
            color: white;
            border: none;
            padding: clamp(8px, 2.5vw, 10px) clamp(20px, 6vw, 25px);
            border-radius: 25px;
            cursor: pointer;
            font-size: clamp(13px, 2.8vw, 15px);
        }

        /* 分页样式 - 核心自适应优化 */
        .pagination {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: clamp(5px, 1.5vw, 8px);
            margin: clamp(20px, 6vw, 30px) 0 clamp(15px, 4vw, 20px);
            flex-wrap: wrap;
            padding: 0 10px;
        }

        .page-btn {
            padding: clamp(7px, 2vw, 8px) clamp(12px, 3vw, 15px);
            border: 1px solid #ddd;
            border-radius: 6px;
            background-color: #fff;
            color: #333;
            cursor: pointer;
            font-size: clamp(13px, 2.8vw, 15px);
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .page-btn:hover {
            border-color: #3498db;
            color: #3498db;
        }

        .page-btn.active {
            background-color: #3498db;
            color: white;
            border-color: #3498db;
        }

        .page-btn.disabled {
            color: #ccc;
            border-color: #eee;
            cursor: not-allowed;
            background-color: #f9f9f9;
        }

        .page-btn.disabled:hover {
            border-color: #eee;
            color: #ccc;
        }

        /* 加载动画样式 */
        .loading {
            width: 100%;
            text-align: center;
            padding: 40px 0;
            color: #666;
            font-size: 16px;
        }

        .loading::after {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #3498db;
        }

        /* 平板适配 - 顶部高度减少10%，底部间距减小 */
        @media (max-width: 768px) {
            .header {
                height: 25.65vh; /* 28.5vh × 90%，再减少10% */
                min-height: 144px; /* 160px × 90% */
                max-height: 256.5px; /* 285px × 90% */
                padding: 8px 10px 10px; /* 进一步减少内边距 */
            }
        
            .header-container {
                gap: 0.6vh; /* 减小间距 */
            }
        
            .logo {
                max-width: 250px; /* 缩小Logo容器 */
                margin-bottom: 2px;
            }
        
            .logo-img {
                max-width: 230px; /* 缩小Logo */
                max-height: 7.5vh; /* 减少高度 */
            }
        
            .search-wrapper {
                padding: 2px 0 6px;
            }
        
            .main-container {
                margin: 0px auto 6px; /* 底部间距进一步减小 */
                padding-bottom: 8px;
            }
        
            .nav-left {
                flex: 0 0 clamp(108px, 22.5vw, 180px);
                max-height: calc(74.35vh - 20px); /* 同步调整高度 */
            }
        
            .search-input {
                padding: 15px 20px;
                font-size: 15px; /* 搜索框文字缩小1px */
                min-height: 50px;
            }
        
            .search-btn {
                padding: 12px 20px;
                font-size: 14px; /* 搜索按钮文字缩小1px */
                min-height: 40px;
            }
			.result-item:hover {
			    //transform: translateY(-2px);
			    //box-shadow: 0 4px 10px rgba(0,0,0,0.1);
				background-color: #dff1f9;
				//border: 2px solid #d6e4ea;
			}
        
            /* 平板端字体缩小 */
            .nav-item {
                font-size: 15px; /* 从17px改为15px */
                padding: 15px 14px;
            }
        
            .sub-nav-item {
                font-size: 14px; /* 从16px改为14px */
                padding: 9px 15px;
            }
        
            .sub-nav-right {
                padding: 12px;
                max-height: calc(74.35vh - 20px);
                min-width: calc(100vw - clamp(108px, 22.5vw, 180px) - 30px);
            }
            .result-title {
                font-size: 19px;
            	}
            .result-desc {
                font-size: 14px;
            	}
            .filter-section .btn-light {
                font-size: 16px !important;
            	}
            .dropdown-menu {
                font-size: 16px !important;
            	z-index: 999 !important;
            }
            /* 移动端结果项外层链接样式 */
            .result-link-wrapper {
                text-decoration: none;
                display: block;
            }
            .result-link-wrapper .result-item {
                height: 100%;
            }
        }
        
        /* 小屏手机适配 - 顶部高度再优化，底部间距最小化 */
        @media (max-width: 480px) {
            .header {
                height: 23vh; /* 比平板端再略减，确保不拥挤 */
                min-height: 130px;
                max-height: 230px;
                padding: 6px 8px 8px;
            }
        
            .logo {
                max-width: 220px;
            }
        
            .logo-img {
                max-width: 200px;
                max-height: 6.5vh;
            }
        
            .search-input {
                min-height: 54px;
                padding: 16px 20px;
                font-size: 14px; /* 搜索框文字缩小为14px */
            }
        
            .search-btn {
                min-height: 42px;
                padding: 12px 18px;
                font-size: 13px; /* 搜索按钮文字缩小为13px */
            }
        
            .main-container {
                margin: 0px auto 4px; /* 底部间距最小化 */
                padding-bottom: 6px;
                gap: 8px; /* 减小左右导航间距 */
            }
        
            .nav-left {
                flex: 0 0 clamp(99px, 19.8vw, 162px);
            }
        
            /* 小屏手机字体进一步缩小 */
            .nav-item {
                font-size: 14px; /* 从17px改为14px */
                padding: 13px 10px;
                line-height: 1.5;
            }
        
            .sub-nav-right {
                min-width: calc(100vw - clamp(99px, 19.8vw, 162px) - 25px);
                padding: 10px; /* 减少内边距 */
            }
        
            .sub-nav-item {
                font-size: 13px; /* 从16px改为13px */
                padding: 8px 13px;
                min-height: 36px;
            }
        }
        
        /* 超小屏手机 - 极致优化间距 */
        @media (max-width: 320px) {
            .header {
                height: 21vh;
                min-height: 120px;
                max-height: 210px;
            }
        
            .logo-img {
                max-width: 180px;
                max-height: 6vh;
            }
        
            .search-input {
                min-height: 50px;
                padding: 14px 18px;
                font-size: 13px; /* 搜索框文字缩小为13px */
            }
            
            .main-container {
                margin: 0px auto 3px;
                padding-bottom: 5px;
            }
        
            /* 超小屏手机字体继续缩小 */
            .nav-item {
                font-size: 13px; /* 从16px改为13px */
                padding: 12px 8px;
                letter-spacing: 0;
            }
            
            .sub-nav-item {
                font-size: 12px; /* 从15px改为12px */
                padding: 7px 11px;
                gap: 8px;
            }
        }

        /* 仅移动端显示折叠按钮并启用折叠功能 */
        @media (max-width: 768px) {
            .filter-toggle-btn {
                display: flex !important;
            }
            .filter-content {
                max-height: 0;
                overflow: hidden;
                opacity: 0;
                transition: max-height 0.3s ease, opacity 0.3s ease;
                margin-top: 5px; /* 筛选内容和三角之间保留少量间距 */
            }
            .filter-content.expanded {
				height: 400px;
                max-height: 1000px;
                opacity: 1;
            }
            /* 移动端筛选容器调整，确保三角顶边距0 + 底边距0 */
            .filter-container {
                margin: 0 auto 0; /* 强制手机版底边距为0 */
                padding: 0 10px;
            }
            .filter-section {
                padding: 0; /* 完全移除内边距 */
                background: transparent;
                box-shadow: none;
            }
        }

        /* 桌面端样式恢复 */
        @media (min-width: 769px) {
            .filter-toggle-btn {
                display: none !important;
            }
            .filter-content {
                display: block !important;
                max-height: none !important;
                opacity: 1 !important;
            }
            .filter-section {
                padding: 15px;
                background-color: #fff;
                box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            }
            /* 桌面端筛选容器恢复原有底边距 */
            .filter-container {
                margin: 0 auto 15px;
            }
        }