/* ========== 基础重置（解决样式继承问题） ========== */
#searchResultsGrid {
    all: unset;
    width: 100%;
    margin-top: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

#searchResultsGrid > div {
    box-sizing: border-box !important;
    padding: 0 15px !important;
    margin-bottom: 20px !important;
}

/* ========== 页面特定样式 ========== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 40px;
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon {
   
    max-width:1400px;
    
  
  
}
@media (max-width: 992px) {

.coming-soon{
		margin-top:30px;
	}
	
	.search-status-alert .alert {
		
		margin-bottom:-60px;
		margin-top:30px;
	}
}
/* 移动端适配 */
@media (max-width: 768px) {
	.coming-soon{
		margin-top:30px;
	}
	
	.search-status-alert .alert {
		
		margin-bottom:-20px;
		margin-top:20px;
	}
}


/* ========== 搜索状态提示样式 ========== */
.search-status-alert {
    margin: 20px 0;
    animation: slideDown 0.3s ease;
	margin-top:35px;
	margin-bottom:10px;
}

.search-status-alert .alert {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #0dcaf0;
	
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 搜索结果样式 ========== */
.search-results-header {
    text-align: left;
    margin: -40px 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.search-results-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #212529;
}

.search-results-header .text-muted {
    font-size: 1rem;
    color: #6c757d;
}

/* ========== 卡片样式（强制和首页一致）========== */
.normal-card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    height: 140px !important;
    border: 1px solid #e9ecef !important;
    margin-bottom: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}

.normal-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
    border-color: #0D6EFD !important;
}

.normal-logo {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
    margin-right: 15px !important;
    margin-top: 15px !important;
    background: white !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 0 solid #e9ecef !important;
}

.normal-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.normal-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    height: 100% !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.normal-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 10px 0 8px 0 !important;
    color: #212529 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left !important;
    line-height: 1.3 !important;
    width: 100% !important;
}

.normal-description {
    color: #6c757d !important;
    font-size: 0.85rem !important;
    line-height: 1.4rem !important;
    margin-bottom: 5px !important;
    flex: 1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left !important;
    width: 100% !important;
}

/* 彻底解决 fa-eye 和数字垂直居中问题 */
.normal-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 10px !important;
    border-top: 1px solid #f0f0f0 !important;
    margin-top: auto !important;
    width: 100% !important;
    height: 30px !important;
    /* 移除可能干扰的 line-height */
    line-height: normal !important;
}

.category-badge {
    background: #E6F6FE !important;
    color: #0D6EFD !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    /* 确保 badge 垂直居中 */
    display: inline-block !important;
    height: 24px !important;
    line-height: 20px !important;
}

/* 核心修复：使用定位而非 flex 实现绝对居中 */
.click-count {
    color: #6c757d !important;
    font-size: 0.85rem !important;
    display: inline-block !important;
    /* 关键：统一行高 */
    line-height: 1 !important;
    /* 固定高度，和 badge 保持视觉平衡 */
    height: 22px !important;
    /* 垂直居中的核心 */
    position: relative !important;
    padding-left: 18px !important;
}

/* 图标绝对定位，精确居中 */
.click-count i.fa-eye {
    font-size: 0.85rem !important;
    color: #6c757d !important;
    /* 绝对定位 */
    position: absolute !important;
    left: 0 !important;
    top: 40% !important;
    /* 向上偏移 50% 实现完美居中 */
    transform: translateY(-50%) !important;
    /* 移除所有干扰样式 */
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: baseline !important;
}

/* 数字文本单独处理 */
.click-count::after {
    content: attr(data-count) !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}
.fa-eye {
	color:#999 !important;
}

/* ========== 移动端适配（强制和首页一致） ========== */
@media (max-width: 576px) {
    .normal-card {
        height: 130px !important;
        padding: 12px !important;
    }
    
    .normal-title {
        font-size: 1rem !important;
        margin-top: 0px !important;
    }
    
    .normal-description {
        font-size: 0.8rem !important;
		max-height:1.3rem !important;
        
        margin-bottom: 5px !important;
    }
    
    .normal-footer {
        margin-top: 10px !important;
        margin-bottom: -15px !important;
    }
    
    #searchResultsGrid .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #searchResultsGrid .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (min-width: 992px) {
    #searchResultsGrid .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

/* ========== 加载更多按钮 ========== */
#loadMoreSearchBtn {
    padding: 10px 30px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    border-radius: 25px !important;
}

#loadMoreSearchBtn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2) !important;
}

#loadMoreSearchBtn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ========== 加载动画 ========== */
.loading-spinner {
    text-align: center !important;
    padding: 40px !important;
}

.loading-spinner .spinner {
    width: 40px !important;
    height: 40px !important;
    border: 4px solid #f3f3f3 !important;
    border-top: 4px solid #667eea !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin: 0 auto 20px !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== 空状态样式 ========== */
.empty-state {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #6c757d !important;
}

.empty-state i {
    font-size: 4rem !important;
    color: #adb5bd !important;
    margin-bottom: 20px !important;
}



 /* 关键 CSS - 确保首屏内容快速渲染 */
        body { margin: 0; font-family: system-ui, -apple-system, sans-serif; }
        

       * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", Arial, sans-serif;
        }
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.8;
        }
        /* 全局容器：控制最大宽度，居中显示 */
        .global-container {
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }
		
		
		
        /* 顶部导航 */
        .header {
            background-color: #0D6EFD;
            color: #fff;
            padding: 18px 20px;
            text-align: center;
            position: sticky;
            top: 0;
            z-index: 100;
            width: 100%;
			
        }
        .header h1 {
            font-size: 20px;
            font-weight: 600;
        }
        /* 核心banner区 */
        .banner {
		
           
			background: url("/frontend/image/banner_bg.jpg") no-repeat center center / cover;
            color: #0D6EFD;
            padding: 60px 20px;
            text-align: center;
            width: 100%;
			border-radius:8px;
        }
        .banner h2 {
            font-size: 28px;
            margin-bottom: 20px;
            font-weight: 600;
        }
        .banner p {
            font-size: 16px;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
        }
        /* 内容容器 */
        .container {
            padding: 40px 20px;
            width: 100%;
        }
        /* 模块通用样式 */
        .module {
            background: #fff;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        }
        .module-title {
            color: #0D6EFD;
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
        }
        .module-title::before {
            content: "";
            display: inline-block;
            width: 5px;
            height: 24px;
            background-color: #0D6EFD;
            margin-right: 12px;
            border-radius: 3px;
        }
        .module-content {
            font-size: 16px;
            color: #555;
        }
        .module-content ul {
            padding-left: 24px;
            margin-top: 12px;
        }
        .module-content li {
            margin-bottom: 10px;
            position: relative;
        }
        .module-content li::before {
            content: "✓";
            color: #0D6EFD;
            font-weight: bold;
            position: absolute;
            left: -24px;
        }
        /* 付出/收获模块 */
        .gain-list {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-top: 20px;
        }
        .gain-item {
            background: #f0f7ff;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            transition: all 0.3s ease;
        }
        .gain-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 16px rgba(13, 110, 253, 0.15);
        }
        .gain-item span {
            color: #0D6EFD;
            font-weight: 600;
            font-size: 18px;
            display: block;
            margin-bottom: 8px;
        }
        .gain-item p {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        }
        /* 优势模块 */
        .advantage-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
            margin-top: 10px;
        }
        .advantage-item {
            padding: 20px;
            background: #f9fbff;
            border-radius: 8px;
            border-left: 4px solid #0D6EFD;
			margin-top:12px;
        }
        .advantage-item h4 {
            color: #333;
            font-size: 18px;
            margin-bottom: 8px;
        }
        .advantage-item p {
            font-size: 14px;
            color: #777;
            line-height: 1.6;
        }
        /* 行动按钮 */
        .action-btn {
            display: block;
            width: 300px;
            height: 56px;
            line-height: 56px;
            background-color: #0D6EFD;
            color: #fff;
            text-align: center;
            border-radius: 28px;
            margin: 40px auto;
            text-decoration: none;
            font-size: 18px;
            font-weight: 600;
            box-shadow: 0 6px 18px rgba(13, 110, 253, 0.3);
            transition: background-color 0.3s ease;
        }
        .action-btn:hover {
            background-color: #0a58ca;
			color: #fff;
        }
        
        /* 自适应断点：平板/移动端 */
        @media (max-width: 992px) {
            .gain-list {
                grid-template-columns: repeat(2, 1fr);
            }
            .advantage-list {
                grid-template-columns: 1fr;
            }
			.banner {
				margin-top:56px;
			}
            .banner h2 {
                font-size: 24px;
            }
            .module {
                padding: 25px;
            }
			
			body {
				padding-bottom: 0px;
			}
			
			footer.footer {
				margin-bottom: 0px;
			}
        }
		
		
		


        /* 移动端断点（≤768px） */
        @media (max-width: 768px) {
            .gain-list {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            .banner {
                padding: 40px 15px;
				margin-top:40px;
            }
            .banner h2 {
                font-size: 22px;
            }
            .banner p {
                font-size: 14px;
            }
            .container {
                padding: 25px 15px;
            }
            .module {
                padding: 20px 15px;
            }
            .module-title {
                font-size: 20px;
            }
            .module-content {
                font-size: 14px;
            }
            .action-btn {
                width: 90%;
                max-width: 300px;
                height: 50px;
                line-height: 50px;
                font-size: 16px;
            }
            .header h1 {
                font-size: 18px;
            }
        }
		
		/* 页脚 */

		.footer {
			background: var(--dark-color);
			color: white;
			padding: 40px 0 20px;
			margin-top: 10px;
		}

		.footer a {
			color: #adb5bd;
			text-decoration: none;
			transition: color 0.3s ease;
		}

		.footer a:hover {
			color: white;
		}