/* =========================================================
   成都升学通 · 移动端 m站 样式（自包含，移动优先）
   配色与 PC 端一致：主色 #2563eb
   ========================================================= */

/* ============ 变量 ============ */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --accent: #10b981;
  --danger: #ef4444;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f6f8fb;
  --bg-gray: #f1f5f9;
  --border: #e8edf3;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(15,23,42,0.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.10);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --header-h: 52px;
  --tabbar-h: 56px;
}

/* ============ 基础重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.65;
  font-size: 14px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ============ 页面容器 ============ */
.m-page {
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  background: var(--bg-light);
}
.m-scroll { padding: 14px 14px 24px; }

/* ============ 顶部头部 ============ */
.m-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.m-header-back {
  width: 36px; height: 36px; border: none; background: transparent;
  font-size: 26px; line-height: 1; color: var(--text-dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.m-header-title {
  font-size: 16px; font-weight: 700; color: var(--text-dark);
  position: absolute; left: 50%; transform: translateX(-50%);
  max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.m-header-spacer { width: 36px; height: 36px; }
.m-header-logo { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); font-size: 16px; }
.m-header-logo .m-logo-ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* ============ 底部 Tab 导航 ============ */
.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
}
.m-tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-light); font-size: 11px; position: relative;
  transition: color .2s;
}
.m-tab-item .m-tab-icon { font-size: 21px; line-height: 1; filter: grayscale(0.3); }
.m-tab-item.active { color: var(--primary); }
.m-tab-item.active .m-tab-icon { filter: none; transform: translateY(-1px); }
.m-tab-item.active::before {
  content: ""; position: absolute; top: 0; width: 26px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--primary);
}

/* ============ 通用按钮（自包含） ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .2s; line-height: 1.2;
  min-height: 44px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.25); }
.btn-primary:active { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-blue { background: var(--primary); color: #fff; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 12px; width: 100%; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--bg-gray); color: var(--text-medium); }

/* ============ 徽章 / 标签 ============ */
.school-type-badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.4;
}
.badge-comprehensive { background: #e0ecff; color: var(--primary-dark); }
.badge-public { background: #e7f7ee; color: #047857; }
.badge-private { background: #fff1e0; color: #b45309; }
.badge-enterprise { background: #f1e9ff; color: #7c3aed; }
.major-tag {
  display: inline-block; padding: 3px 9px; margin: 0 6px 6px 0;
  background: var(--bg-gray); color: var(--text-medium); border-radius: 7px;
  font-size: 12px; line-height: 1.5;
}
.major-item {
  display: inline-block; padding: 7px 12px; margin: 0 8px 8px 0;
  background: var(--primary-bg); color: var(--primary-dark); border-radius: 9px;
  font-size: 13px; font-weight: 500;
}
.star { color: var(--secondary); letter-spacing: 1px; font-size: 13px; }

/* ============ 首页 Hero ============ */
.m-hero {
  background: linear-gradient(150deg, #2563eb 0%, #3b82f6 55%, #60a5fa 100%);
  color: #fff; padding: 26px 18px 30px;
  border-radius: 0 0 26px 26px;
  position: relative; overflow: hidden;
}
.m-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.m-hero-badge {
  display: inline-block; background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; margin-bottom: 14px;
}
.m-hero h1 { font-size: 25px; line-height: 1.35; font-weight: 800; margin-bottom: 10px; }
.m-hero h1 .hl { color: #ffe27a; }
.m-hero p { font-size: 13.5px; line-height: 1.7; opacity: .92; margin-bottom: 18px; }
.m-hero-actions { display: flex; gap: 10px; }
.m-hero-actions .btn { flex: 1; }
.m-hero-actions .btn-light { background: #fff; color: var(--primary); }
.m-hero-actions .btn-outline-w { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.5); }

/* ============ 统计条 ============ */
.m-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: #fff; margin: -18px 14px 0; border-radius: 14px;
  padding: 14px 8px; box-shadow: var(--shadow);
  position: relative; z-index: 2;
}
.m-stat { text-align: center; }
.m-stat .num { font-size: 19px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.m-stat .lbl { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ============ 区块 ============ */
.m-section { padding: 22px 14px 4px; }
.m-section-title { margin-bottom: 14px; }
.m-section-title .t { font-size: 18px; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.m-section-title .t::before {
  content: ""; width: 4px; height: 17px; border-radius: 3px; background: var(--primary);
}
.m-section-title .s { font-size: 12px; color: var(--text-light); margin-top: 4px; padding-left: 12px; }
.m-link-more { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ============ 快捷入口 ============ */
.m-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.m-quick {
  background: #fff; border-radius: 14px; padding: 16px 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.m-quick .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.m-quick .tx h4 { font-size: 15px; font-weight: 700; }
.m-quick .tx p { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }

/* ============ 学校卡片（列表式） ============ */
.m-school-card {
  background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s;
}
.m-school-card:active { transform: scale(.985); box-shadow: var(--shadow); }
.m-sc-header { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.m-sc-header .badges { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.m-sc-header h3 { font-size: 16px; font-weight: 700; line-height: 1.35; margin-top: 4px; }
.m-sc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--text-medium); margin-bottom: 8px; }
.m-sc-desc { font-size: 13px; color: var(--text-medium); line-height: 1.65; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-sc-majors { margin-bottom: 10px; }
.m-sc-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--border); padding-top: 10px; }
.m-sc-foot .stars { font-size: 12px; }
.m-sc-foot .go { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ============ 专业大类入口 ============ */
.m-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-cat {
  background: #fff; border-radius: 12px; padding: 13px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.m-cat .ic { font-size: 22px; }
.m-cat h4 { font-size: 14px; font-weight: 700; }
.m-cat p { font-size: 11px; color: var(--text-light); margin-top: 1px; }

/* ============ 资讯卡片 ============ */
.m-news-card {
  background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.m-news-card:active { transform: scale(.99); }
.m-news-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.m-news-cat { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.news-cat-policy { background: #e0ecff; color: var(--primary-dark); }
.news-cat-enroll { background: #e7f7ee; color: #047857; }
.news-cat-guide { background: #fff1e0; color: #b45309; }
.news-cat-school { background: #f1e9ff; color: #7c3aed; }
.m-news-date { font-size: 12px; color: var(--text-light); }
.m-news-card h4 { font-size: 15.5px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.m-news-card .sum { font-size: 13px; color: var(--text-medium); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-news-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--text-light); }
.m-news-foot .read { color: var(--primary); font-weight: 600; }

/* ============ 搜索框 ============ */
.m-search { position: relative; margin-bottom: 12px; }
.m-search .si { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--text-light); }
.m-search input {
  width: 100%; height: 46px; border: 1px solid var(--border); border-radius: 12px;
  padding: 0 14px 0 40px; font-size: 14px; background: #fff; outline: none;
}
.m-search input:focus { border-color: var(--primary); }

/* ============ 筛选 chip（横向滚动） ============ */
.m-filters { margin: 0 -14px 14px; padding: 0 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.m-filters::-webkit-scrollbar { display: none; }
.m-filter-row { display: flex; gap: 8px; padding-bottom: 8px; white-space: nowrap; }
.m-filter-row + .m-filter-row { padding-top: 0; }
.m-chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border); font-size: 13px; color: var(--text-medium);
  cursor: pointer; transition: all .15s; line-height: 1.3;
}
.m-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* ============ 加载更多 ============ */
.m-loadmore {
  display: block; width: 100%; padding: 12px; margin: 6px 0 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  color: var(--primary); font-size: 14px; font-weight: 600; cursor: pointer;
}
.m-loadmore:disabled { color: var(--text-light); }
.m-count { font-size: 12.5px; color: var(--text-light); margin: 4px 0 12px; }
.m-count b { color: var(--primary); }

/* ============ 学校详情 ============ */
.m-detail-hero {
  background: linear-gradient(150deg, #2563eb, #3b82f6); color: #fff;
  padding: 18px 16px 20px;
}
.m-detail-hero .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.m-detail-hero .badges .school-type-badge { background: rgba(255,255,255,.22); color: #fff; }
.m-detail-hero h1 { font-size: 22px; font-weight: 800; line-height: 1.3; }
.m-detail-hero .sub { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; opacity: .95; }
.m-detail-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); margin: 0 14px; border-radius: 12px; overflow: hidden; transform: translateY(-12px); position: relative; z-index: 2; }
.m-detail-info .cell { background: #fff; padding: 12px 6px; text-align: center; }
.m-detail-info .cell .k { font-size: 11px; color: var(--text-light); margin-bottom: 3px; }
.m-detail-info .cell .v { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.m-detail-sec { background: #fff; border-radius: 14px; padding: 16px; margin: 12px 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.m-detail-sec h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.m-detail-sec p { font-size: 14px; color: var(--text-medium); line-height: 1.8; }
.m-detail-sec .enroll { background: var(--primary-bg); color: var(--primary-dark); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7; }
.m-detail-cta {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  z-index: 850; background: #fff; border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 10px; align-items: center; box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.m-detail-cta .txt { flex: 1; }
.m-detail-cta .txt b { font-size: 14px; }
.m-detail-cta .txt p { font-size: 11.5px; color: var(--text-light); }
.m-detail-cta .btn { flex: 0 0 auto; }

/* 同区域推荐 */
.m-rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-rel-card { background: var(--bg-light); border-radius: 10px; padding: 11px; border: 1px solid var(--border); }
.m-rel-card h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; line-height: 1.35; }
.m-rel-card p { font-size: 11.5px; color: var(--text-light); margin-bottom: 6px; }
.m-rel-card .major-tag { font-size: 11px; padding: 2px 7px; margin: 0 4px 4px 0; }

/* ============ 智能分析 ============ */
.m-analysis-card { background: #fff; border-radius: 16px; padding: 18px 16px; margin: 14px; box-shadow: var(--shadow); }
.m-progress { display: flex; gap: 6px; margin-bottom: 18px; justify-content: center; }
.m-progress .dot { width: 22px; height: 4px; border-radius: 4px; background: var(--bg-gray); }
.m-progress .dot.active { background: var(--primary); }
.m-progress .dot.done { background: var(--accent); }
.m-aq h2 { font-size: 19px; font-weight: 800; line-height: 1.4; }
.m-aq .desc { font-size: 13px; color: var(--text-light); margin: 6px 0 4px; }
.m-aq .step { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 16px; }
.m-opt {
  display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 11px;
  background: var(--bg-light); border: 2px solid transparent; border-radius: 14px; cursor: pointer;
  transition: all .15s;
}
.m-opt:active { transform: scale(.99); }
.m-opt.selected { border-color: var(--primary); background: var(--primary-bg); }
.m-opt .oic { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.m-opt .ot { flex: 1; }
.m-opt .ot .t { font-size: 15px; font-weight: 700; }
.m-opt .ot .d { font-size: 12px; color: var(--text-light); margin-top: 2px; line-height: 1.5; }
.m-a-btns { display: flex; gap: 10px; margin-top: 8px; }
.m-a-btns .btn { flex: 1; }

/* 分析结果 */
.m-result-top { text-align: center; margin-bottom: 18px; }
.m-result-top .emoji { font-size: 40px; }
.m-result-top h2 { font-size: 20px; font-weight: 800; margin: 6px 0; }
.m-result-top p { font-size: 13px; color: var(--text-light); }
.m-result-choices { background: var(--primary-bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.m-result-choices .ct { font-size: 12px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.m-result-choices .cv { font-size: 12.5px; color: var(--text-medium); display: flex; flex-wrap: wrap; gap: 4px 8px; line-height: 1.7; }
.m-result-school {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.m-result-school .rs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.m-result-school .rs-head h4 { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.m-match { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.m-result-school .rs-meta { font-size: 12.5px; color: var(--text-medium); margin-bottom: 6px; }
.m-result-school .rs-reason { font-size: 12.5px; color: var(--primary); margin: 4px 0 8px; line-height: 1.6; }
.m-result-school .rs-majors { margin-bottom: 10px; }
.m-result-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ============ 资讯详情 ============ */
.m-article { padding: 16px 16px 8px; }
.m-article-head .cat { margin-bottom: 10px; }
.m-article-head h1 { font-size: 22px; font-weight: 800; line-height: 1.4; margin-bottom: 12px; }
.m-article-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-light); padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.m-article-sum { background: var(--bg-gray); border-left: 3px solid var(--primary); padding: 12px 14px; border-radius: 0 10px 10px 0; font-size: 14px; color: var(--text-medium); line-height: 1.8; margin-bottom: 18px; }
.m-article-content h2 { font-size: 17px; font-weight: 700; margin: 20px 0 10px; }
.m-article-content p { font-size: 15px; color: var(--text-dark); line-height: 1.9; margin-bottom: 14px; }
.m-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.m-article-tags .news-tag { background: var(--primary-bg); color: var(--primary-dark); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; }
.m-article-nav { display: flex; justify-content: space-between; gap: 10px; margin: 20px 0 8px; }
.m-article-nav a { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-size: 12.5px; color: var(--text-medium); }
.m-article-nav a.right { text-align: right; }
.m-article-nav .nl { display: block; color: var(--primary); font-weight: 600; font-size: 11.5px; margin-bottom: 4px; }
.m-rel-sec { padding: 8px 14px 16px; }
.m-rel-sec h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.m-rel-card2 { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.m-rel-card2 .c { margin-bottom: 6px; }
.m-rel-card2 h4 { font-size: 14px; font-weight: 700; line-height: 1.4; }
.m-rel-card2 .m { font-size: 11.5px; color: var(--text-light); margin-top: 4px; }
.m-news-cta { margin: 8px 14px 16px; background: linear-gradient(135deg, #eff6ff, #e0ecff); border-radius: 14px; padding: 18px 16px; text-align: center; }
.m-news-cta h3 { font-size: 16px; font-weight: 800; }
.m-news-cta p { font-size: 12.5px; color: var(--text-medium); margin: 6px 0 14px; }
.m-news-cta .btns { display: flex; gap: 10px; }
.m-news-cta .btns .btn { flex: 1; }

/* ============ 空状态 ============ */
.m-empty { text-align: center; padding: 50px 20px; color: var(--text-light); }
.m-empty .ic { font-size: 44px; margin-bottom: 12px; }
.m-empty h3 { font-size: 16px; color: var(--text-medium); margin-bottom: 6px; }
.m-empty p { font-size: 13px; }

/* ============ 咨询弹窗（移动适配） ============ */
.consult-float { display: none !important; } /* 移动端由底部Tab承载，隐藏悬浮按钮 */
.consult-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 1200;
  display: none; align-items: flex-end; justify-content: center;
}
.consult-modal {
  background: #fff; width: 100%; max-width: 460px; border-radius: 20px 20px 0 0;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  position: relative; max-height: 90vh; overflow-y: auto; animation: mUp .25s ease;
}
@keyframes mUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.consult-close {
  position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border: none;
  background: var(--bg-gray); border-radius: 50%; font-size: 20px; color: var(--text-medium); cursor: pointer;
}
.consult-modal-header { text-align: center; margin-bottom: 16px; }
.consult-modal-header h3 { font-size: 18px; font-weight: 800; }
.consult-modal-header p { font-size: 12.5px; color: var(--text-light); margin-top: 4px; }
.consult-wechat { text-align: center; margin-bottom: 14px; }
.qr-box { width: 180px; height: 180px; margin: 0 auto; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.consult-qr-tip { font-size: 13px; color: var(--text-medium); margin-top: 10px; }
.consult-call-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: #fff; border-radius: 12px; padding: 13px;
  font-size: 15px; font-weight: 700; margin: 6px 0 16px; min-height: 48px;
}
.consult-divider { text-align: center; font-size: 12px; color: var(--text-light); margin: 4px 0 14px; position: relative; }
.consult-divider::before { content: ""; position: absolute; left: 0; top: 50%; width: 38%; height: 1px; background: var(--border); }
.consult-divider::after { content: ""; position: absolute; right: 0; top: 50%; width: 38%; height: 1px; background: var(--border); }
.consult-form input, .consult-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-size: 14px; margin-bottom: 10px; outline: none; font-family: inherit; background: #fff;
}
.consult-form input:focus, .consult-form textarea:focus { border-color: var(--primary); }
.consult-form textarea { resize: none; }
.consult-submit { width: 100%; }
.consult-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 20px 0; }

/* 桌面预览时模拟手机（真机宽度<600px不触发） */
@media (min-width: 600px) {
  body { background: #e9edf3; }
  .m-page { max-width: 430px; margin: 0 auto; box-shadow: 0 0 40px rgba(15,23,42,.12); min-height: 100vh; }
  .m-header { max-width: 430px; left: 50%; transform: translateX(-50%); }
  .m-tabbar { max-width: 430px; left: 50%; transform: translateX(-50%); }
  .consult-overlay { padding: 0; }
  .consult-modal { max-width: 430px; margin: 0 auto; border-radius: 0; }
}
