/* ynml_main 留言咨询样式(PC,自勐海 3.0 版式移植,令牌换勐腊蓝)
   覆盖:/liuyan 列表、/liuyan/submit 提交、/liuyan/query 查询、/liuyan/{id} 详情
   自包含不依赖其他页面 css;引用方:consult 四模板 css=[...] 引入 */

/* 容器 */
.consult-main { max-width: 1200px; margin: 0 auto; padding: 34px 16px 40px; }

/* 面包屑 */
.consult-crumb { font-size: 14px; color: #8a97a8; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--ml-blue-dark); }
.consult-crumb a { color: #0071dc; }
.consult-crumb a:hover { color: var(--ml-blue-dark); }

/* 列表卡(咨询列表) */
.class_news_list { background: #fff; border: 1px solid #e3edf7; border-radius: 4px; padding: 20px; }
.class_news_list .list-tit { border-bottom: 2px solid var(--ml-blue-dark); padding-bottom: 12px; margin-bottom: 6px; }
.class_news_list .list-tit h5 { color: var(--ml-blue-dark); font-size: 20px; margin: 0; }
.class_news_list .list-tit .btn { color: #fff; background: var(--ml-blue); border-radius: 4px; padding: 6px 18px; font-size: 15px; text-decoration: none; }
.class_news_list .list-tit .btn:hover { background: var(--ml-blue-dark); color: #fff; }
.class_news_list .news-item { border-bottom: 1px dashed var(--ml-line, #e5e5e5); position: relative; }
.class_news_list .news-item a { color: #222; flex: 1 1 auto; min-width: 0; text-decoration: none; }
.class_news_list .news-item a:hover { color: var(--ml-blue); }
.class_news_list .news-item h6 { font-weight: 400; font-size: 16px; margin: 0; }
.class_news_list .news-item .date { color: #999; font-size: 14px; flex: 0 0 auto; }

/* 详情卡 */
.consult-detail { background: #fff; border: 1px solid #e3edf7; border-radius: 4px; padding: 26px 30px; }
.consult-detail h1 { font-size: 22px; color: #222; line-height: 1.5; margin: 0 0 10px; }
.consult-detail .meta { font-size: 13px; color: #999; padding-bottom: 14px; border-bottom: 1px dashed var(--ml-line, #e5e5e5); margin-bottom: 16px; }
.consult-detail .reply { background: #f4f8fc; border-left: 3px solid var(--ml-blue); border-radius: 4px; padding: 14px 18px; margin-top: 18px; font-size: 15px; line-height: 28px; }
.consult-detail .reply b { color: var(--ml-blue-dark); }

/* 提交/查询表单 */
.consult-form-panel { background: #fff; border: 1px solid #e3edf7; border-radius: 4px; padding: 26px 30px; max-width: 860px; margin: 0 auto; }
.consult-form-panel h1 { font-size: 20px; color: var(--ml-blue-dark); margin: 0 0 18px; }
.consult-form-panel .form-group { margin-bottom: 16px; }
.consult-form-panel .form-group label { font-size: 15px; color: #444; margin-bottom: 6px; display: inline-block; }
.consult-form-panel .form-control { width: 100%; box-sizing: border-box; border: 1px solid var(--ml-blue-line); border-radius: 4px; padding: 9px 12px; font-size: 15px; outline: 0; }
.consult-form-panel .form-control:focus { border-color: var(--ml-blue); }
.consult-form-panel textarea.form-control { resize: vertical; }
.consult-form-panel .btn-primary { background: var(--ml-blue); color: #fff; border: 0; border-radius: 4px; padding: 10px 34px; font-size: 16px; cursor: pointer; }
.consult-form-panel .btn-primary:hover { background: var(--ml-blue-dark); }
.consult-form-panel .cs-message { margin-top: .75rem; white-space: pre-line; font-size: 14px; }
.consult-form-panel .cs-message.success { color: #198754; }
.consult-form-panel .cs-message.error { color: #dc3545; }

/* 分页 */
.mainbody_page ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; padding: 0; list-style: none; }
.mainbody_page ul li { padding: .5em; }
.mainbody_page ul li a { color: #222; padding: .5em 1em; font-size: 16px; background: #fff; border-radius: 4px; border: 1px solid #e3edf7; text-decoration: none; }
.mainbody_page ul li.active a, .mainbody_page ul li a:hover { background: var(--ml-blue); color: #fff; border-color: var(--ml-blue); }

/* ---------- v2 补丁:bootstrap4 工具类兜底(勐腊 layout 仅 bootstrap3,下列类无宿主;作用域 .consult-page) ---------- */
.consult-page .d-flex { display: -webkit-box; display: -ms-flexbox; display: flex; }
.consult-page .align-items-center { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
.consult-page .justify-content-between { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
.consult-page .flex-wrap { -ms-flex-wrap: wrap; flex-wrap: wrap; }
.consult-page .col-12 { width: 100%; }
.consult-page .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consult-page .fw-bold { font-weight: 700; }
.consult-page .mt-4 { margin-top: 1.5rem; }
.consult-page .mt-5 { margin-top: 3rem; }
.consult-page .mb-3 { margin-bottom: 1rem; }
.consult-page .p-4 { padding: 1.5rem; }
.consult-page .py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.consult-page .py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.consult-page .gap-3 { gap: 1rem; }
.consult-page .w-100 { width: 100%; }
.consult-page .news-list { display: block; }
.consult-page .news-list .col { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.consult-page .text-muted { color: #999; }
.consult-page .text-center { text-align: center; }
.consult-page h5, .consult-page h6 { margin: 0; }

/* ---------- v3 补丁:列表行距放宽(用户反馈间距太密) ---------- */
.consult-page .class_news_list { padding: 24px 28px; }
.consult-page .class_news_list .list-tit { margin-bottom: 10px; }
.consult-page .class_news_list .news-item a { padding: 14px 10px; font-size: 16px; }
.consult-page .class_news_list .news-item { border-bottom: 1px dashed var(--ml-line, #e5e5e5); }
.consult-page .class_news_list .news-item:hover { background: #f4f8fc; }
.consult-page .class_news_list .date { margin-left: 16px; }
.consult-page .mainbody_page { padding: 22px 0 6px; }

/* ---------- v4 补丁:详情页 bs5 组件类兜底(card 系/边框/间距) ---------- */
.consult-page .card { background: #fff; border: 1px solid #e3edf7; border-radius: 4px; }
.consult-page .card.border-0 { border: 0; }
.consult-page .card-header { padding: 16px 22px; background: #f4f8fc; border-bottom: 1px solid #e3edf7; }
.consult-page .card-header h4 { margin: 0; font-size: 20px; }
.consult-page .card-body { padding: 22px; }
.consult-page .fw-bold { font-weight: 700; }
.consult-page .fs-4 { font-size: 1.35rem; }
.consult-page .small { font-size: 13px; }
.consult-page .text-muted { color: #999; }
.consult-page .text-center { text-align: center; }
.consult-page .border-start { border-left: 4px solid var(--ml-blue); }
.consult-page .border-bottom { border-bottom: 1px solid #e3edf7; }
.consult-page .ps-2 { padding-left: .6rem; }
.consult-page .ps-3 { padding-left: 1rem; }
.consult-page .px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.consult-page .p-3 { padding: 1rem; }
.consult-page .mb-2 { margin-bottom: .5rem; }
.consult-page .mb-3 { margin-bottom: 1rem; }
.consult-page .mt-4 { margin-top: 1.5rem; }
.consult-page .my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.consult-page .g-2 > * { padding: .25rem; }
.consult-page .col-md-auto { width: auto; }
.consult-page .row { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -4px; }
.consult-page .row > .col-12 { width: 100%; padding: 0 4px; box-sizing: border-box; }
.consult-page .rounded { border-radius: 4px; }
.consult-page h4, .consult-page h5 { margin: 0; }

/* ---------- 响应式(留言/咨询/问卷：表单与卡片移动端适配) ---------- */
@media (max-width: 768px) {
  .consult-main { padding: 20px 12px 28px; }
  .consult-form-panel,
  .consult-detail,
  .class_news_list { padding-left: 16px; padding-right: 16px; }
  .class_news_list .news-item { -ms-flex-wrap: wrap; flex-wrap: wrap; }
  .class_news_list .news-item .date { margin-left: 0; }
  .consult-form-panel .form-group label { display: block; }
}

/* ---------- BS5 表单结构适配（submit 卡片式表单） ---------- */
.consult-main .card { border: 1px solid #e3edf7; border-radius: 4px; }
.consult-main .card-header { background: #f4f8fc; border-bottom: 1px solid #e3edf7; font-size: 16px; color: var(--ml-blue-dark); }
.consult-main .card-body { padding: 22px; }
.consult-main .form-label { font-size: 15px; color: #444; margin-bottom: 6px; display: inline-block; }
.consult-main .form-control { width: 100%; box-sizing: border-box; border: 1px solid var(--ml-blue-line); border-radius: 4px; padding: 9px 12px; font-size: 15px; outline: 0; }
.consult-main .form-control:focus { border-color: var(--ml-blue); box-shadow: 0 0 0 3px rgba(0, 140, 255, .12); }
.consult-main textarea.form-control { resize: vertical; }
.consult-main .btn-primary { background: var(--ml-blue); color: #fff; border: 0; border-radius: 4px; padding: 10px 34px; font-size: 16px; cursor: pointer; }
.consult-main .btn-primary:hover { background: var(--ml-blue-dark); color: #fff; }
/* 验证码滑块容器 */
.consult-main .verify-box { max-width: 420px; }
/* 查询页表单行 */
.consult-page .col-form-label { font-size: 15px; color: #444; }
