/* ============================================================
   铭喜 ask 问题列表页 v2（problemHouse.html 专用）
   品牌红 #c9151e · hover #a81117 · 渐变 #e02431→#c9151e
   说明：本文件在 main.css 之后引入，仅覆盖 .model-ask-list 相关样式，
        不动共享 main.css，不影响 ask 详情页等其它页面。
   ============================================================ */

body.ask-page { background: #f5f6f8; }

/* ---------- 修复既有 bug：导航「所有服务」下拉菜单默认展开 ---------- */
.account-nav .menu-list { display: none; }

/* ---------- 面包屑 ---------- */
.ask-page .breadcrumb {
  background: transparent;
  padding: 8px 0 4px;
  margin: 0 auto;
  font-size: 13px;
  color: #999;
  border-radius: 0;
  width: 1160px;
}
.ask-page .breadcrumb a { color: #666; text-decoration: none; }
.ask-page .breadcrumb a:hover { color: #c9151e; }
.ask-page .breadcrumb img.middle { vertical-align: middle; margin-right: 6px; }
.ask-page .breadcrumb span { color: #bbb; margin: 0 6px; }

/* ---------- 页面标题 h1 ---------- */
.ph-h1 {
  width: 1160px;
  margin: 8px auto 0;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

/* ---------- 容器 ---------- */
.model-ask-list { width: 1160px; margin: 16px auto 40px; }

/* ---------- 分类标签 ---------- */
.model-ask-list ul.ask-type {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
  padding: 14px 20px;
  margin-bottom: 16px;
  box-sizing: border-box;
  font-size: 0;
  list-style: none;
}
.model-ask-list ul.ask-type li {
  display: inline-block;
  border-right: 0;
  margin: 4px 8px 4px 0;
}
.model-ask-list ul.ask-type li a {
  display: inline-block;
  width: auto;
  height: auto;
  line-height: 1;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: #f5f6f8;
  color: #555;
  font-size: 14px;
  text-align: center;
}
.model-ask-list ul.ask-type li a:hover { color: #c9151e; background: #fff0f0; }
/* 当前分类：模板中当前项的 <a> 无内联 style，其余项带 style="color: black;" */
.model-ask-list ul.ask-type li a:not([style]) {
  background: linear-gradient(90deg, #e02431, #c9151e);
  color: #fff;
  font-weight: 600;
}

/* ---------- 状态标签 ---------- */
.model-ask-list ul.ask-state {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
  padding: 0 20px;
  margin-bottom: 16px;
  font-size: 0;
  box-sizing: border-box;
  list-style: none;
  border-bottom: 1px solid #f0f0f0;
}
.model-ask-list ul.ask-state li { display: inline-block; border-right: 0; }
.model-ask-list ul.ask-state li a {
  display: inline-block;
  width: auto;
  height: auto;
  line-height: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: #555;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  margin-right: 4px;
}
.model-ask-list ul.ask-state li a:hover { color: #c9151e; }
.model-ask-list ul.ask-state li a.current {
  color: #c9151e;
  background: transparent;
  font-weight: 700;
  border-bottom-color: #c9151e;
}

/* ---------- 搜索框 ---------- */
.model-ask-list .search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-sizing: border-box;
}
.model-ask-list .search-box input {
  flex: 1;
  max-width: 420px;
  height: 42px;
  line-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 21px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
  vertical-align: middle;
}
.model-ask-list .search-box input:focus { border-color: #c9151e; }
.model-ask-list .search-box .btn-success {
  height: 42px;
  line-height: 42px;
  padding: 0 28px;
  margin: 0 !important;
  background: #c9151e;
  border: 0;
  border-radius: 21px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  vertical-align: middle;
  white-space: nowrap;
}
.model-ask-list .search-box .btn-success:hover { background: #a81117; }

/* ---------- 列表 ---------- */
.model-ask-list .ask-list {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
  padding: 8px 20px;
  margin-bottom: 0;
  box-sizing: border-box;
  list-style: none;
}
.model-ask-list .ask-list > li {
  padding: 16px 0;
  border-bottom: 1px solid #f2f2f2;
  border-top: 0;
  overflow: hidden;
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}
.model-ask-list .ask-list > li:last-child { border-bottom: 0; }
.model-ask-list .ask-list > li .ask {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 10px;
}
.model-ask-list .ask-list > li .ask:hover { color: #c9151e; }
.model-ask-list .ask-list > li .ask-type a { color: #c9151e; font-size: 13px; text-decoration: none; }
.model-ask-list .ask-list > li .ask-type a:hover { text-decoration: underline; }
.model-ask-list .ask-list > li .time { color: #bbb; font-size: 13px; float: right; }
.model-ask-list .ask-list > li .points { color: #c9151e; }
.model-ask-list .ask-list > li .points .icon { color: #ffb800; }

/* 空态 */
.model-ask-list .ask-list font { color: #ccc; }

/* ---------- 分页（jquery.page.js 生成） ---------- */
.model-ask-list .solvePageCode { text-align: center; padding: 16px 0 4px; }
.model-ask-list .solvePageCode a {
  display: inline-block;
  padding: 5px 12px;
  margin: 0 4px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  color: #555;
  font-size: 13px;
  text-decoration: none;
  background: #fff;
}
.model-ask-list .solvePageCode a:hover { color: #c9151e; border-color: #c9151e; }
.model-ask-list .solvePageCode span.current {
  display: inline-block;
  padding: 5px 12px;
  margin: 0 4px;
  border: 1px solid #c9151e;
  border-radius: 6px;
  color: #fff;
  background: #c9151e;
  font-size: 13px;
}
.model-ask-list .solvePageCode span.disabled { color: #ccc; padding: 5px 8px; }

/* ---------- 获客留资卡 ---------- */
.ph-cta {
  background: linear-gradient(120deg, #e02431 0%, #c9151e 55%, #8f0f16 100%);
  border-radius: 10px;
  padding: 24px 28px;
  color: #fff;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(201, 21, 30, .25);
}
.ph-cta h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; color: #fff; }
.ph-cta .ph-cta-tip { font-size: 13px; color: rgba(255, 255, 255, .92); margin: 0 0 14px; }
.ph-cta .ph-cta-form input {
  width: 240px;
  box-sizing: border-box;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  margin-right: 10px;
  margin-bottom: 10px;
  vertical-align: middle;
}
.ph-cta .ph-cta-form button {
  border: 0;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #c9151e;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
}
.ph-cta .ph-cta-form button:hover { background: #fff5f5; }
.ph-cta .ph-cta-form .ph-cta-msg { font-size: 12px; margin: 8px 0 0; min-height: 16px; }


/* 列表空态 */
.model-ask-list .ask-list .ph-empty{list-style:none;text-align:center;padding:48px 16px;color:#999;font-size:15px;}
.model-ask-list .ask-list .ph-empty .ph-empty-tip{display:inline-block;padding:16px 24px;background:#fafafa;border-radius:8px;}
