/*--------------------------------------------------------------
# Search Module Styles - 与网站整体风格一致
--------------------------------------------------------------*/

/* 搜索表单容器 */
#knowledge_search {
    margin-top: 10px;
}

/* 搜索表单基础样式 */
#knowledge_search form {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    align-items: stretch;
}

/* 搜索输入组 */
.search-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* 城市选择下拉框 */
#knowledge_search #city {
    flex: 2;
    height: auto;
    border: 1px solid #ced4da;
    border-radius: 6px 0 0 6px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fafafa;
    color: #333;
    outline: none;
    transition: all 0.3s;
}

#knowledge_search #city:focus {
    border-color: #f03c02;
    box-shadow: 0 0 0 2px rgba(240, 60, 2, 0.15);
    background: #fff;
}

/* 搜索输入框 */
#knowledge_search #search_key_word {
    flex: 8;
    height: auto;
    border: 1px solid #ced4da;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background: transparent;
}

#knowledge_search #search_key_word:focus {
    background: #fff;
    border-color: #f03c02;
    box-shadow: inset 0 0 0 1px rgba(240, 60, 2, 0.1);
}

#knowledge_search #search_key_word::placeholder {
    color: #999;
    font-size: 13px;
}

/* 搜索按钮 */
#knowledge_search #knowledge_button {
    flex: 2;
    height: auto;
    white-space: nowrap;
    border: none;
    border-left: none;
    border-radius: 0 6px 6px 0;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.5;
}

#knowledge_search #knowledge_button:hover {
    background: linear-gradient(135deg, #fd490f 0%, #f03c02 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(240, 60, 2, 0.3);
}

/* 搜索结果卡片样式 */
.search-result-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border: 1px solid transparent;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(240, 60, 2, 0.3);
    color: inherit;
}

.search-result-card .card-body {
    padding: 1.25rem;
}

.search-result-card .card-title {
    color: #f03c02;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.search-result-card .card-title i {
    margin-right: 8px;
}

.search-result-card .card-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.search-result-card .card-footer {
    background: #fafafa;
    border-top: 1px solid #eee;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 10px 10px;
}

.search-result-card .card-footer .small {
    font-size: 0.8rem;
    color: #999;
}

/* 详情页卡片样式 */
.search-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.search-detail-card .card-header {
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border: none;
}

.search-detail-card .card-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.search-detail-card .card-body {
    padding: 2rem;
}

/* 内容区域样式 */
#knowledge_html {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

#knowledge_html h1,
#knowledge_html h2,
#knowledge_html h3,
#knowledge_html h4 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#knowledge_html h2 { font-size: 1.4rem; }
#knowledge_html h3 { font-size: 1.2rem; }
#knowledge_html h4 { font-size: 1.1rem; }

#knowledge_html p {
    margin-bottom: 1rem;
}

#knowledge_html ul,
#knowledge_html ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

#knowledge_html li {
    margin-bottom: 0.5rem;
}

#knowledge_html blockquote {
    border-left: 4px solid #f03c02;
    padding: 12px 20px;
    margin: 1rem 0;
    background: #fafafa;
    color: #555;
    border-radius: 0 8px 8px 0;
}

#knowledge_html strong {
    color: #f03c02;
}

/* 表格样式 */
#knowledge_html table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#knowledge_html table th,
#knowledge_html table td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
}

#knowledge_html table th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
}

#knowledge_html table tr:hover {
    background: rgba(240, 60, 2, 0.03);
}

/* 提示信息样式 */
.alert-search {
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-search-warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #e65100;
}

.alert-search-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #0d47a1;
}

.alert-search-icon {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-search-icon i {
    font-size: 1.25rem;
    line-height: 1.5;
}

.alert-search-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert-search-content p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* 结果统计样式 */
.result-count {
    font-size: 1rem;
    color: #666;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.result-count span {
    color: #f03c02;
    font-weight: 600;
}

.result-count .result-hint {
    font-size: 0.8rem;
    color: #999;
    font-weight: normal;
}

/* 默认页面引导卡片 */
.law-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    text-align: center;
}

.law-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.law-card .step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.law-card .step-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.law-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.law-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 响应式适配 */
@media (max-width: 768px) {
    #knowledge_search form {
        flex-wrap: nowrap;
        min-width: 0;
    }

    #knowledge_search #city {
        flex: 0 0 auto;
        width: auto;
        min-width: 70px;
        max-width: 90px;
        padding: 8px 6px;
        font-size: 13px;
        border-radius: 6px 0 0 6px;
    }

    #knowledge_search #search_key_word {
        flex: 1 1 auto;
        min-width: 0;
        padding: 8px 10px;
        font-size: 13px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    #knowledge_search #search_key_word::placeholder {
        font-size: 12px;
    }

    #knowledge_search #knowledge_button {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 0 6px 6px 0;
    }
}
