/*
速查工具专区样式
*/

/* 速查工具专区主页面 */
.search-tool-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8f 50%, #1e3a5f 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.search-tool-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.search-tool-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-tool-hint {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 工具卡片网格 */
.search-tool-section {
    padding: 3rem 2rem;
    background: #fdfbf7;
}

.search-tool-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 工具卡片样式 */
.search-tool-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.search-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #c9a227;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tool-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    text-align: center;
}

.tool-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
    flex-grow: 1;
}

.tool-button {
    display: block;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #c9a227, #e6b94d);
    color: #1e3a5f;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.tool-button:hover {
    background: linear-gradient(135deg, #b8931a, #c9a227);
    transform: scale(1.02);
}

.tool-related {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e0e0e0;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.tool-related a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
}

.tool-related a:hover {
    text-decoration: underline;
}

/* 搜索页面样式 */
.search-tool-page {
    padding: 2rem;
    background: #fdfbf7;
    min-height: 100vh;
}

.search-tool-nav {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.search-tool-back {
    display: inline-flex;
    align-items: center;
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
    margin-right: 1.5rem;
}

.search-tool-back:hover {
    color: #c9a227;
}

.search-tool-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a5f;
    flex-grow: 1;
}

/* 搜索区域 */
.search-tool-search-area {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.search-tool-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.search-filter-group label {
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-filter-group select,
.search-filter-group input {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-filter-group select:focus,
.search-filter-group input:focus {
    outline: none;
    border-color: #c9a227;
}

.search-tool-search-box {
    display: flex;
    gap: 1rem;
}

.search-tool-search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.search-tool-search-box input:focus {
    outline: none;
    border-color: #c9a227;
}

.search-tool-search-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #1e3a5f, #2c5f8f);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tool-search-btn:hover {
    background: linear-gradient(135deg, #0f2847, #1e3a5f);
}

/* 结果区域 */
.search-tool-results {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-tool-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.search-tool-results-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a5f;
}

.search-tool-results-count {
    color: #888;
    font-size: 0.95rem;
}

/* 结果表格 */
.search-tool-table-container {
    overflow-x: auto;
}

.search-tool-table {
    width: 100%;
    border-collapse: collapse;
}

.search-tool-table th {
    background: #1e3a5f;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #0f2847;
}

.search-tool-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.search-tool-table tr:hover td {
    background: #f8f6f2;
}

/* 标签样式 */
.tag-yes {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #4caf50;
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-no {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e0e0e0;
    color: #888;
    border-radius: 4px;
    font-size: 0.85rem;
}

.tag-high {
    background: #f44336;
    color: white;
}

.tag-medium {
    background: #ff9800;
    color: white;
}

.tag-low {
    background: #4caf50;
    color: white;
}

/* 无结果提示 */
.search-tool-no-results {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.search-tool-no-results .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-tool-hero {
        padding: 2rem 1rem;
    }
    
    .search-tool-hero h1 {
        font-size: 1.8rem;
    }
    
    .search-tool-grid {
        grid-template-columns: 1fr;
    }
    
    .search-tool-filters {
        flex-direction: column;
    }
    
    .search-filter-group {
        min-width: 100%;
    }
}
/* 修复表格宽度问题 - 添加水平滚动和响应式设计 */
.search-tool-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-tool-table {
    width: 100%;
    min-width: 1200px; /* 确保表格有最小宽度 */
    border-collapse: collapse;
}

.search-tool-table th,
.search-tool-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    white-space: nowrap; /* 防止内容换行 */
}

.search-tool-table th {
    background: #1e3a5f;
    color: white;
    font-weight: 600;
    border-bottom: 2px solid #0f2847;
    font-size: 0.9rem;
}

.search-tool-table td {
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    font-size: 0.85rem;
}

.search-tool-table tr:hover td {
    background: #f8f6f2;
}

/* 标签样式优化 */
.tag-yes, .tag-no {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 2rem;
    text-align: center;
}

.tag-yes {
    background: #4caf50;
    color: white;
}

.tag-no {
    background: #f0f0f0;
    color: #888;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-tool-table th,
    .search-tool-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }
}
