/* ===== 在线咨询页 & 搜索页共用样式 ===== */

/* --- 1. 页面标题区域 --- */
.pg-hero { padding: 60px 0 40px; background: #fff; }
.pg-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 10px; line-height: 1.2; }
.pg-hero p { color: #666; font-size: 15px; }

/* --- 2. 在线咨询表单 --- */
.msg-section { padding: 0 0 60px; }
.msg-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }

.msg-form-card { background: #fff; border-radius: 16px; border: 1px solid #eee; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.msg-form-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.msg-form-card .sub { color: #999; font-size: 14px; margin-bottom: 30px; }

.msg-form-group { margin-bottom: 20px; }
.msg-form-group label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 8px; }
.msg-form-group label .req { color: #e74c3c; }
.msg-form-group input, .msg-form-group select, .msg-form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 14px; color: #333; transition: border-color 0.2s; background: #fff; font-family: inherit;
}
.msg-form-group input:focus, .msg-form-group select:focus, .msg-form-group textarea:focus {
    outline: none; border-color: #4935ff;
}
.msg-form-group textarea { min-height: 120px; resize: vertical; }

.msg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.msg-submit-btn {
    width: 100%; padding: 14px; background: #4935ff; color: #fff; border: none; border-radius: 8px;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; margin-top: 10px;
}
.msg-submit-btn:hover { background: #3a28e0; transform: translateY(-1px); }
.msg-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.msg-success-tip { display: none; background: #e8f5e9; border: 1px solid #81c784; border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; color: #2e7d32; font-size: 14px; }
.msg-success-tip.show { display: block; }

/* 右侧联系信息 */
.msg-info-card { background: #fff; border-radius: 16px; border: 1px solid #eee; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.msg-info-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.msg-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.msg-info-item:last-child { margin-bottom: 0; }
.msg-info-icon { width: 44px; height: 44px; border-radius: 12px; background: #f0eeff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #4935ff; }
.msg-info-icon svg { width: 20px; height: 20px; fill: currentColor; }
.msg-info-text { flex: 1; }
.msg-info-text .lbl { font-size: 12px; color: #999; margin-bottom: 4px; }
.msg-info-text .val { font-size: 15px; color: #333; font-weight: 500; line-height: 1.5; }

.msg-qr-box { margin-top: 30px; text-align: center; padding-top: 24px; border-top: 1px solid #f0f0f0; }
.msg-qr-box img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; }
.msg-qr-box span { display: block; font-size: 13px; color: #666; margin-top: 8px; }

/* --- 3. 搜索结果页 --- */
.srch-section { padding: 0 0 60px; }
.srch-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }

.srch-bar-wrap { background: #fff; border-radius: 12px; border: 1px solid #eee; padding: 20px; margin-bottom: 30px; }
.srch-bar { display: flex; gap: 12px; }
.srch-bar input { flex: 1; padding: 12px 18px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; transition: border-color 0.2s; }
.srch-bar input:focus { outline: none; border-color: #4935ff; }
.srch-bar button { padding: 12px 32px; background: #4935ff; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.srch-bar button:hover { background: #3a28e0; }

.srch-info { font-size: 14px; color: #999; margin-bottom: 20px; }
.srch-info b { color: #4935ff; }

.srch-result-list { display: flex; flex-direction: column; gap: 20px; }
.srch-result-item { background: #fff; border-radius: 12px; border: 1px solid #eee; padding: 24px; transition: 0.2s; display: flex; gap: 20px; }
.srch-result-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.04); transform: translateY(-2px); }
.srch-result-thumb { width: 120px; height: 90px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f5f5f5; }
.srch-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.srch-result-body { flex: 1; min-width: 0; }
.srch-result-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.srch-result-body h3 a { color: #111; }
.srch-result-body h3 a:hover { color: #4935ff; }
.srch-result-body p { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.srch-result-meta { font-size: 12px; color: #999; display: flex; gap: 16px; }
.srch-result-meta span { display: flex; align-items: center; gap: 4px; }

/* 搜索高亮 */
.search-highlight { background: #fff3cd; color: #e63946; padding: 0 2px; border-radius: 2px; font-style: normal; }

/* 空状态 */
.srch-empty { text-align: center; padding: 60px 20px; color: #999; }
.srch-empty svg { width: 64px; height: 64px; fill: #ddd; margin-bottom: 16px; }
.srch-empty p { font-size: 15px; margin-bottom: 8px; }
.srch-empty .hint { font-size: 13px; color: #bbb; }

/* 搜索侧边栏 */
.srch-sidebar-widget { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 24px; border: 1px solid #f0f0f0; }
.srch-widget-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 12px; }
.srch-tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.srch-tags-cloud a { background: #f5f5f5; padding: 4px 12px; border-radius: 12px; font-size: 12px; color: #555; transition: 0.2s; text-decoration: none; }
.srch-tags-cloud a:hover { background: #f0eeff; color: #4935ff; }

/* 分页 */
.srch-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 20px 0; }
.srch-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 6px; font-size: 14px; color: #333; transition: 0.2s; border: 1px solid #e0e0e0; text-decoration: none; }
.srch-pagination a:hover { background: #f5f5f5; border-color: #d0d0d0; }
.srch-pagination a.active { background: #4935ff; color: #fff; border-color: #4935ff; }

/* --- 响应式 --- */
@media (max-width: 992px) {
    .msg-layout { grid-template-columns: 1fr; }
    .srch-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .pg-hero { padding: 30px 0 20px; }
    .pg-hero h1 { font-size: 24px; }
    .pg-hero p { font-size: 13px; }
    .msg-form-card { padding: 24px 18px; }
    .msg-form-card h2 { font-size: 20px; margin-bottom: 6px; }
    .msg-form-card .sub { font-size: 13px; margin-bottom: 22px; }
    .msg-form-group { margin-bottom: 16px; }
    .msg-form-group label { font-size: 13px; }
    .msg-form-group input, .msg-form-group textarea { padding: 11px 14px; font-size: 14px; }
    .msg-form-row { grid-template-columns: 1fr; gap: 0; }
    .msg-submit-btn { padding: 13px; font-size: 14px; }
    .msg-info-card { padding: 20px; }
    .msg-info-item { margin-bottom: 16px; gap: 12px; }
    .msg-info-icon { width: 38px; height: 38px; }
    .msg-info-text .val { font-size: 14px; }
    .msg-qr-box img { width: 100px; height: 100px; }
    .srch-bar { flex-direction: column; gap: 10px; }
    .srch-bar input { padding: 11px 14px; font-size: 14px; }
    .srch-bar button { width: 100%; padding: 11px; font-size: 13px; }
    .srch-result-item { flex-direction: column; padding: 16px; gap: 12px; }
    .srch-result-thumb { width: 100%; height: 150px; }
    .srch-result-body h3 { font-size: 16px; }
    .srch-result-body p { font-size: 13px; -webkit-line-clamp: 2; }
    .srch-result-meta { font-size: 11px; gap: 12px; }
    .srch-pagination a { min-width: 40px; height: 40px; font-size: 15px; }
    .srch-sidebar-widget { padding: 16px; }
}
@media (max-width: 576px) {
    .pg-hero h1 { font-size: 22px; }
    .msg-form-card { padding: 20px 16px; }
    .msg-form-row { grid-template-columns: 1fr; }
    .msg-info-card { padding: 20px; }
    .msg-info-icon { width: 36px; height: 36px; }
    .msg-qr-box img { width: 100px; height: 100px; }
    .srch-result-item { flex-direction: column; padding: 16px; }
    .srch-result-thumb { width: 100%; height: 160px; }
    .srch-bar { flex-direction: column; }
    .srch-bar button { width: 100%; }
    .srch-empty svg { width: 48px; height: 48px; }
    .srch-pagination a { min-width: 32px; height: 32px; font-size: 13px; }
}
