/* ==========================================================================
   手机版页面（m 站，templates/web/m/）。按手机习惯单独设计，所有手机页面都按下面的规范来（2026-11-17 商业化改版）：

   【颜色】
     品牌红 #E5322D  四个底部导航页（首页 / 特产 / 送礼 / 攻略）的顶栏底色；价格；主按钮；选中状态；节日倒计时小标签
     墨绿 #2F7D3A   只用于地理标志（名字下面一行小字“● 地理标志”，不做实心角标）
     深灰 #222      标题、正文；次要文字 #666，说明 #999
     浅灰 #F5F3F0   标签底色、次按钮底色（自营 / 旗舰店 / 攻略分类都是灰底灰字）
     页面底 #F5F5F5
   【顶栏】底部导航四页：红色品牌顶栏（页面名 + 白色搜索框，partials/brand_top.html）；详情页：白色顶栏（返回 + 标题 + 搜索）
   【卡片】白卡片，左右留 10px、上下间距 8px、圆角 12px；不在卡片里再套卡片
   【商品】“逛”的地方（首页推荐、送礼页）用两列商品卡（partials/product_card.html，方图 + 两行标题 + 价格 + 灰标签）；
          “比较、选择”的地方（去哪买、搜索结果、分类好物）用一行一个（partials/product_row.html）
   【特产】小方图 + 名称 + 起价（或地理标志），三列 / 四列
   【图片】白底 + 1px 淡边框、圆角 8px、完整显示（contain）；没有图时显示名称首字的占位，不留空白灰块
   【标题】区块标题 16px 粗体深灰；右边“更多 / 全部”12px 灰色带 ›
   【字号】页面标题 19 / 区块标题 16 / 正文、名称 14 / 说明、标签 12 / 价格 15~17 红色粗体（详情页主价格 22）
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
body.m { --primary: #e5322d; --primary-dark: #c8231f; --primary-soft: #f5f3f0;
  --text: #222; --text-2: #666; --text-3: #999;
  --m-geo: #2f7d3a; --m-tag: #f5f3f0; --m-bg: #f5f5f5; --m-line: #f0f0f0; --m-imgline: #eeeeee;
  background: var(--m-bg); color: var(--text); font-size: 14px; padding-bottom: calc(56px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
body.m a { color: inherit; }
.m-main { padding-bottom: 8px; }

/* ---- 通用零件：卡片、区块标题、更多、图片框、灰标签、地理标志 ---- */
.m-card, .m-sec, .m-hol { margin: 8px 10px 0; padding: 12px; border-radius: 12px; background: #fff; }
.m-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.m-sec-h h2, .m-feed-tabs h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--text); }
.m-sec-h small { flex: 1; min-width: 0; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-more { flex: none; font-size: 12px; color: var(--text-3) !important; }
.m-more::after { content: " ›"; }
.m-hs-img, .ms-prod-img, .m-hol-picks span {
  position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #fff; border: 1px solid var(--m-imgline); box-sizing: border-box; }
.m-hs-img img, .ms-prod-img img, .m-hol-picks img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.m-hs-img i { font-style: normal; font-size: 20px; font-weight: 600; color: #ddd; }
/* 没有图时的占位：浅底 + 名称首字（景点、文章配图等），不留空白灰块 */
.m-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #f3ece6, #e9e2da); color: #b7a99a; font-size: 18px; font-weight: 600; font-style: normal; }
.m-tag { display: inline-block; padding: 0 5px; border-radius: 3px; background: var(--m-tag); font-size: 11px; line-height: 17px; font-style: normal; color: var(--text-2); white-space: nowrap; }
.m-geo { display: block; font-size: 11px; line-height: 16px; font-style: normal; font-weight: 400; color: var(--m-geo); white-space: nowrap; }
.m-geo::before { content: "● "; font-size: 8px; vertical-align: 1px; }
/* 地理标志角标：所有特产 / 商品小图的左上角，小号墨绿实底白字（详情页名称旁仍用上面的文字写法） */
.m-geo-c { position: absolute; left: 0; top: 0; z-index: 1; padding: 0 5px; border-radius: 7px 0 6px 0; background: var(--m-geo); color: #fff;
  font-size: 10px; line-height: 16px; font-style: normal; font-weight: 400; white-space: nowrap; pointer-events: none; }

/* ---- 顶部：城市 + 搜索框，滚动时贴在顶部 ---- */
.m-top { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; background: #fff; }
.m-top-city { flex: none; max-width: 5.5em; position: relative; padding: 0 12px 0 0; border: 0; background: none; font-size: 15px; font-weight: 600;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-top-city::after { content: ""; position: absolute; right: 1px; top: 50%; margin-top: -5px; width: 5px; height: 5px;
  border-right: 1.5px solid #666; border-bottom: 1.5px solid #666; transform: rotate(45deg); }
.m-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--m-tag); }
.m-search svg { flex: none; width: 17px; height: 17px; fill: none; stroke: #999; stroke-width: 1.8; stroke-linecap: round; }
.m-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; color: var(--text); -webkit-appearance: none; }
.m-search input::-webkit-search-cancel-button { display: none; }
.m-city-panel { position: static; display: block; height: 0; }
/* 品牌顶栏（底部导航四页，白底）：红字页面名 + 城市 + 红框搜索框（右侧红色“搜索”按钮） */
.m-top-brand { background: #fff; }
.m-brand { flex: none; font-size: 18px; font-weight: 700; letter-spacing: .5px; color: var(--primary); white-space: nowrap; }
.m-top-brand .m-top-city { max-width: 4.5em; font-size: 14px; font-weight: 400; }
.m-top-brand .m-search { height: 34px; padding: 0 3px 0 10px; background: #fff; border: 1.5px solid var(--primary); box-sizing: border-box; }
.m-search-go { flex: none; height: 26px; padding: 0 12px; border: 0; border-radius: 13px; background: var(--primary); color: #fff; font-size: 13px; }
/* 两列商品卡（首页推荐、送礼页）：方图 + 两行标题 + 红色价格 + 灰标签 */
.mp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 10px; }
.mp-card { display: flex; flex-direction: column; min-width: 0; border-radius: 10px; overflow: hidden; background: #fff; color: var(--text) !important; }
.mp-img { position: relative; display: grid; place-items: center; height: 136px; background: #fff; overflow: hidden; }
.mp-img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.mp-img i { font-style: normal; font-size: 30px; font-weight: 600; color: #e0e0e0; }
.mp-title { margin: 6px 8px 0; font-size: 13px; line-height: 1.45; height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-foot { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; margin: 4px 8px 9px; }
.mp-foot b { font-size: 16px; font-weight: 600; color: var(--primary); }
.mp-foot b small { font-size: 11px; font-weight: 400; }
.mp-foot .mp-range { font-size: 13px; color: var(--text-2); }

/* ==========================================================================
   首页（templates/web/m/home.html）
   ========================================================================== */
/* 第一屏：红色底延续到轮播图上半截（轮播压在红色上），热搜词是红底上的白字 */
/* 第一屏：热搜词、轮播图、10 个入口和白色顶栏连成一整块白底（底部圆角），轮播图在白底上 */
.m-first { padding: 0 12px 4px; background: #fff; border-radius: 0 0 14px 14px; }
.m-hot { display: flex; align-items: center; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 2px 14px 10px; white-space: nowrap; }
.m-hot::-webkit-scrollbar { display: none; }
.m-hot a { flex: none; font-size: 12px; color: var(--text-3) !important; }
.m-carousel { aspect-ratio: 2 / 1; min-height: 0; height: auto; border-radius: 12px; }
.m-carousel.m-carousel-pc { aspect-ratio: 29 / 12; }
.m-carousel .carousel-dots { bottom: 8px; gap: 4px; }
.m-carousel .carousel-dots button { width: 5px; height: 3px; border-radius: 2px; }
.m-carousel .carousel-dots button.on { width: 14px; }
.m-carousel .cs-text { left: 16px; bottom: 18px; max-width: 75%; }
.m-carousel .cs-text b { font-size: 18px; }
.m-carousel .cs-text small { font-size: 12px; }
.m-hero-hol { display: flex; flex-direction: column; justify-content: center; gap: 4px; aspect-ratio: 2 / 1; padding: 0 20px; border-radius: 12px;
  background: var(--m-tag); color: var(--text) !important; }
.m-hero-hol small { font-size: 12px; color: var(--text-2); }
.m-hero-hol b { font-size: 19px; font-weight: 600; }
.m-hero-hol span { font-size: 12px; color: var(--text-3); }
/* 图标入口：深色线条图标，无底色；按下去图标和文字变红 */
.m-ent { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 16px; padding: 14px 0 12px; }
.m-ent a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text); white-space: nowrap; }
.m-ent i { display: block; width: 28px; height: 28px; color: #333; }
.m-ent svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.m-ent a:active, .m-ent a:active i { color: var(--primary) !important; }

/* 节日专场：标题 + 红色倒计时小标签 + 右边“几号前下单” + 3 个商品 */
.m-hol-h { display: flex; align-items: center; gap: 8px; color: var(--text) !important; }
.m-hol-h b { font-size: 16px; font-weight: 600; }
.m-count { flex: none; padding: 0 6px; border-radius: 3px; background: var(--primary); font-style: normal; font-size: 11px; line-height: 18px; color: #fff; }
.m-hol-h span { flex: 1; min-width: 0; text-align: right; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.m-hol-h span::after { content: " ›"; }
.m-hol-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.m-hol-picks a { min-width: 0; }
.m-hol-picks span { aspect-ratio: 1; }
.m-hol-picks b { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--primary); }
.m-hol-picks b small { font-size: 11px; font-weight: 400; }

/* 本地特产（也用于特产页“同省其他特产”）：一行 4 个小方图 */
.m-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.m-g4 a { min-width: 0; }
.m-g4 .m-hs-img { aspect-ratio: 1; }
.m-g4 b { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-g4 a > em:not(.m-geo) { display: block; font-style: normal; font-size: 12px; color: var(--primary); }
.m-g4 small { display: block; font-size: 12px; color: var(--text-3); }

/* 攻略：灰色分类标签 + 一行标题 */
.m-art { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.m-art em { flex: none; font-style: normal; padding: 0 5px; border-radius: 3px; background: var(--m-tag); font-size: 11px; line-height: 17px; color: var(--text-2); }
.m-art span { flex: 1; min-width: 0; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 为你推荐：标题 + 分类一排（贴在顶栏下面），下面两列卡片（.mp-grid），滑到底自动加载 */
.m-feed { margin-top: 8px; }
.m-feed-tabs { position: sticky; top: 52px; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--m-bg); }
.m-feed-tabs h2 { flex: none; }
.m-feed-tl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.m-feed-tl::-webkit-scrollbar { display: none; }
.m-feed-tl button { flex: none; padding: 2px 0; border: 0; background: none; font-size: 14px; color: var(--text-2); }
.m-feed-tl button.on { color: var(--primary); font-weight: 600; }
.m-feed-list { min-height: 200px; }
.m-feed-list.loading { opacity: .5; }
.m-feed-end, .m-feed-note { margin: 0; padding: 12px 0 0; text-align: center; font-size: 12px; color: var(--text-3); }

/* ==========================================================================
   特产页（templates/web/m/specialty.html）
   ========================================================================== */
/* 顶部：返回 + 名称 + 搜索 */
.m-back, .m-top-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 -4px; color: var(--text) !important; }
.m-back svg, .m-top-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-top-title { flex: 1; min-width: 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 大图 + 价格、名称、标签：同一块白底，占满宽度 */
.ms-img { display: grid; place-items: center; height: 180px; background: #fff; overflow: hidden; }
.ms-img img { display: block; width: 100%; height: 180px; object-fit: contain; padding: 8px 0; box-sizing: border-box; }
.ms-img i { font-style: normal; font-size: 40px; font-weight: 600; color: #ddd; }
.ms-head { padding: 12px 14px 14px; background: #fff; border-radius: 0 0 12px 12px; }
.ms-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; color: var(--primary); }
.ms-price b { font-size: 22px; font-weight: 600; line-height: 1.2; }
.ms-price b small { font-size: 14px; }
.ms-price em { font-style: normal; font-size: 12px; }
.ms-price span { margin-left: 6px; font-size: 12px; color: var(--text-3); }
.ms-price .ms-range { font-size: 19px; }
.ms-head h1 { margin: 6px 0 0; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--text); }
.ms-head p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.ms-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ms-badges .m-geo { display: inline-block; font-size: 12px; }

/* 一行一项：左边名称，右边完整内容（长了换行，不截断） */
.ms-cells { margin: 8px 10px 0; padding: 0 12px; border-radius: 12px; background: #fff; }
.ms-cell { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--m-line); font-size: 14px; line-height: 1.5; color: var(--text) !important; }
.ms-cell:first-child { border-top: 0; }
.ms-cell > span { flex: none; width: 3em; color: var(--text-3); }
.ms-cell > b { flex: 1; min-width: 0; font-weight: 400; }
.ms-cell > b a { color: var(--text) !important; }
.ms-cell > b em { font-style: normal; color: var(--text-2); }
.ms-cell > b small { display: block; font-size: 12px; color: var(--text-3); }
.ms-cell > i { flex: none; font-style: normal; color: var(--text-3); }

/* 区块：和首页一样的白卡片 */
.ms-blk { margin: 8px 10px 0; padding: 12px; border-radius: 12px; background: #fff; }
.ms-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ms-h h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.ms-h small { font-size: 12px; color: var(--text-3); }

/* 去哪买：一行一个，标题完整两行；红色只给价格 */
.ms-prod { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--m-line); }
.ms-prods > .ms-prod:first-child { border-top: 0; }
.ms-prod-img { flex: none; width: 84px; height: 84px; }
.ms-prod-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.ms-prod-title { font-size: 14px; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-prod-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.ms-prod-foot b { font-size: 17px; font-weight: 600; color: var(--primary); }
.ms-prod-foot b small { font-size: 12px; }
.ms-prod-foot > span { margin-left: auto; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.ms-prod-foot > span::after { content: " ›"; }
.ms-more summary { list-style: none; padding: 11px 0 2px; border-top: 1px solid var(--m-line); text-align: center; font-size: 12px; color: var(--text-2); cursor: pointer; }
.ms-more summary::-webkit-details-marker { display: none; }
.ms-more summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: 3px;
  border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: rotate(45deg); }
.ms-more[open] summary { display: none; }
.ms-note, .ms-empty { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--text-3); }
.ms-empty a { color: var(--text) !important; text-decoration: underline; }

/* 长文字：先 3 行，点“展开全文” */
.ms-text { font-size: 14px; line-height: 1.75; color: var(--text); }
.ms-text p { margin: 0 0 8px; }
.ms-text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ms-text.clamp p { display: inline; }
.ms-unfold { margin-top: 4px; padding: 0; border: 0; background: none; font-size: 12px; color: var(--text-2); }
.ms-unfold::after { content: " ⌄"; }

/* 常见问题：点开看答案 */
.ms-faq { border-top: 1px solid var(--m-line); }
.ms-faq summary { list-style: none; position: relative; padding: 12px 22px 12px 0; font-size: 14px; color: var(--text); cursor: pointer; }
.ms-faq summary::-webkit-details-marker { display: none; }
.ms-faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; margin-top: -6px; width: 7px; height: 7px;
  border-right: 1.3px solid #999; border-bottom: 1.3px solid #999; transform: rotate(45deg); }
.ms-faq[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.ms-faq p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--text-2); }

/* 底部购买栏（代替底部导航）：唯一的红色主按钮 */
.ms-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: flex; align-items: center; gap: 12px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eee; }
.ms-bar-home { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text-2) !important; }
.ms-bar-home svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.ms-bar-price { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; color: var(--text-3); }
.ms-bar-price b { font-size: 17px; font-weight: 600; color: var(--primary); }
.ms-bar-go { margin-left: auto; padding: 0 22px; height: 40px; line-height: 40px; border-radius: 20px; background: var(--primary); color: #fff !important; font-size: 15px; white-space: nowrap; }
body.m.page-specialty { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
body.page-specialty .to-top:not([hidden]) { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* ==========================================================================
   全国特产页（templates/web/m/region_list.html）：左边省份列表（贴顶、单独滚动），右边选中省份
   ========================================================================== */
.mr { display: flex; align-items: flex-start; border-top: 1px solid var(--m-line); background: #fff; }
.mr-nav { position: sticky; top: 52px; flex: none; width: 86px; max-height: calc(100vh - 52px - 56px - env(safe-area-inset-bottom));
  overflow-y: auto; scrollbar-width: none; background: var(--m-bg); padding-bottom: 12px; }
.mr-nav::-webkit-scrollbar { display: none; }
.mr-area { display: block; padding: 10px 0 2px 12px; font-size: 12px; color: var(--text-3); }
.mr-nav a { display: block; position: relative; padding: 11px 4px; text-align: center; font-size: 14px; color: var(--text) !important; }
.mr-nav a.on { background: #fff; color: var(--primary) !important; font-weight: 600; }
.mr-nav a.on::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 2px 2px 0; background: var(--primary); }
.mr-body { flex: 1; min-width: 0; min-height: calc(100vh - 52px - 56px); padding: 12px 12px 16px; }
.mr-panel { display: none; }
.mr-panel.on { display: block; }
/* 省份头图卡：有风景照时照片做底、白字；没有照片时浅米色底、深色字，右边淡淡的省名大字（不再用青灰色块） */
.mr-cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 84px; padding: 10px 12px; border-radius: 10px;
  overflow: hidden; background: linear-gradient(120deg, #faf5ee, #f1e6d6) center / cover no-repeat; color: var(--text) !important; box-sizing: border-box; }
.mr-cover h2 { position: relative; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; color: inherit; }
.mr-cover span { position: relative; font-size: 12px; color: var(--text-2); }
.mr-cover.has-photo { color: #fff !important; }
.mr-cover.has-photo span { color: #fff; opacity: .92; }
.m-wm { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 64px; font-weight: 700; line-height: 1;
  color: rgba(160, 120, 70, .14); pointer-events: none; }
.mr-specs .mr-price { display: block; font-style: normal; font-size: 12px; color: var(--primary); }
.mr-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mr-grid3 a { padding: 6px 0; border-radius: 6px; text-align: center; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-intro { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.mr-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; margin-top: 12px; text-align: center; }
.mr-specs a { min-width: 0; }
.mr-specs .m-hs-img { aspect-ratio: 1; }
.mr-specs b { margin-top: 5px; font-size: 14px; font-weight: 400; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mr-all { display: block; margin-top: 14px; padding: 8px 0; border-radius: 16px; background: var(--m-tag); text-align: center; font-size: 12px; color: var(--text-2) !important; }
.mr-empty { margin: 16px 0; text-align: center; font-size: 12px; color: var(--text-3); }
.mr-sub { margin: 18px 0 8px; font-size: 16px; font-weight: 600; color: var(--text); }
.mr-cities { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-cities a { padding: 5px 12px; border-radius: 15px; background: var(--m-tag); font-size: 14px; color: var(--text) !important; }
.mr-cities a:active { background: var(--primary); color: #fff !important; }

/* ==========================================================================
   省市页（templates/web/m/region.html）：风景头图 + 介绍 + 城市标签 → 特产列表 → 节日 → 景点 → 攻略
   ========================================================================== */
.mg-hero { background: #fff; border-radius: 0 0 12px 12px; }
.mg-cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 104px; padding: 12px 14px; overflow: hidden;
  background: linear-gradient(120deg, #faf5ee, #f1e6d6) center / cover no-repeat; color: var(--text); box-sizing: border-box; }
.mg-cover h1 { position: relative; margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.mg-cover p { position: relative; margin: 2px 0 0; font-size: 12px; color: var(--text-2); }
.mg-cover.has-photo { height: 120px; color: #fff; }
.mg-cover.has-photo p { color: #fff; opacity: .92; }
.mg-cover .m-wm { font-size: 80px; right: 14px; }
.mg-cap { position: absolute; right: 10px; top: 8px; font-size: 11px; color: #fff !important; opacity: .85; }
.mg-info { padding: 10px 14px 12px; }
.mg-intro { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.mg-intro.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mg-cities { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px -14px 0; padding: 0 14px; }
.mg-cities::-webkit-scrollbar { display: none; }
.mg-cities a { flex: none; padding: 4px 12px; border-radius: 15px; background: var(--m-tag); font-size: 14px; color: var(--text) !important; white-space: nowrap; }
.mg-cities a.on { background: var(--primary); color: #fff !important; }

/* 特产列表：上方按送给谁筛选（选中红字），每个特产一行 */
.mg-chips { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; margin: -2px -12px 4px; padding: 0 12px 8px; border-bottom: 1px solid var(--m-line); }
.mg-chips::-webkit-scrollbar { display: none; }
.mg-chips button { flex: none; padding: 2px 0; border: 0; background: none; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.mg-chips button.on { color: var(--primary); font-weight: 600; }
.mg-item { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--m-line); }
.mg-chips + .mg-item, .mg-list > .mg-item:first-of-type { border-top: 0; }
.mg-item[hidden] { display: none; }
.mg-img { flex: none; width: 84px; height: 84px; }
.mg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mg-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.mg-name b { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-name small { flex: none; font-size: 12px; color: var(--text-3); }
.mg-sum { margin-top: 2px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.mg-foot b { font-size: 17px; font-weight: 600; color: var(--primary); }
.mg-foot b small { font-size: 12px; font-weight: 400; }
.mg-range { font-size: 12px; color: var(--text-3); }
.mg-none { margin: 16px 0 8px; text-align: center; font-size: 12px; color: var(--text-3); }
.mg-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--m-line); }
.mg-pager a { padding: 4px 14px; border-radius: 15px; background: var(--m-tag); font-size: 14px; color: var(--text) !important; }
.mg-pager span { width: 64px; }
.mg-pager small { font-size: 12px; color: var(--text-3); }

/* 节日一行、景点一排 3 个 */
.mg-hol { display: flex; align-items: baseline; gap: 8px; color: var(--text) !important; }
.mg-hol b { font-size: 16px; font-weight: 600; }
.mg-hol span { flex: 1; min-width: 0; font-size: 12px; color: var(--text-2); }
.mg-hol i { font-style: normal; color: var(--text-3); }
.mg-scenics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mg-scenics a { min-width: 0; }
.mg-sc-img { display: block; height: 72px; border-radius: 8px; overflow: hidden; background: var(--m-tag); }
.mg-sc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-scenics b { display: block; margin-top: 5px; font-size: 14px; font-weight: 400; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-scenics small { display: block; font-size: 12px; color: var(--text-3); }

/* ==========================================================================
   送礼页（templates/web/m/gift_index.html）：顶部三步挑礼物 + 场景 / 结果
   ========================================================================== */
.mf-steps { padding: 12px; }
/* 送给谁：8 张图片卡（代表礼物实拍图 + 名称 + 两个例子，和首页线条图标区分开），其余对象一行文字 */
.mf-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; text-align: center; }
.mf-who a, .mf-who > span { min-width: 0; color: var(--text) !important; }
.mf-who > span.off { opacity: .4; }
.mf-who .m-hs-img { aspect-ratio: 1; }
.mf-who b { display: block; margin-top: 5px; font-size: 14px; font-weight: 600; }
.mf-who small { display: block; font-size: 11px; line-height: 1.4; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-who a:active b { color: var(--primary); }
.mf-who-rest { display: flex; align-items: center; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 14px -12px 0; padding: 0 12px; white-space: nowrap; font-size: 13px; }
.mf-who-rest::-webkit-scrollbar { display: none; }
.mf-who-rest span { flex: none; font-size: 12px; color: var(--text-3); }
.mf-who-rest a { flex: none; color: var(--text-2) !important; }
.mf-who-rest em { flex: none; font-style: normal; color: #c8c8c8; }
/* 场合 / 预算（选了对象后还有“对象”）：并排的下拉框，点开在下面铺满一排选项 */
.mf-dds { position: relative; display: flex; gap: 8px; margin-top: 14px; }
.mf-dds:first-child { margin-top: 0; }
.mf-dd { flex: 1; min-width: 0; }
.mf-dd summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 7px 10px; border-radius: 8px;
  background: var(--m-tag); font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; overflow: hidden; }
.mf-dd summary::-webkit-details-marker { display: none; }
.mf-dd summary::after { content: ""; flex: none; width: 6px; height: 6px; margin: -3px 2px 0 0; border-right: 1.3px solid #999; border-bottom: 1.3px solid #999; transform: rotate(45deg); }
.mf-dd summary.on { color: var(--primary); font-weight: 600; }
.mf-dd[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.mf-dd-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px;
  border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.mf-dd-panel a, .mf-dd-panel b, .mf-dd-panel em { padding: 4px 12px; border-radius: 15px; background: var(--m-tag); font-size: 14px; font-weight: 400; font-style: normal; color: var(--text) !important; white-space: nowrap; }
.mf-dd-panel b { background: var(--primary); color: #fff !important; }
.mf-dd-panel em.off { color: #c8c8c8 !important; }
.mf-picked { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--m-line); font-size: 12px; color: var(--text-2); }
.mf-picked a { flex: none; color: var(--text-3) !important; }
/* 分组小标题（礼品分类列表“通用礼品 / 品牌礼品”） */
.mf-scenes-h { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 14px 0; }
.mf-scenes-h h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.mf-scenes-h small { font-size: 12px; color: var(--text-3); }
/* 节日送礼：最近 3 个节日，最近的那个淡红底红字 */
.mf-hols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mf-hols a { min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--m-tag); color: var(--text) !important; }
.mf-hols a.on { background: #fdf0ef; }
.mf-hols b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-hols small { display: block; font-size: 12px; color: var(--text-3); }
.mf-hols a.on small { color: var(--primary); }
/* 热门场景一排（链接，点了按场景筛选）；用信息流同款的贴顶标题栏 */
.mf-scene-tabs { margin-top: 8px; }
.mf-scene-tabs a { flex: none; font-size: 14px; color: var(--text-2) !important; white-space: nowrap; }
.mf-goods { margin-top: 8px; }
.mf-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px -12px 4px; padding: 0 12px 4px; }
.mf-cats::-webkit-scrollbar { display: none; }
.mf-cats a { flex: none; padding: 4px 12px; border-radius: 15px; background: var(--m-tag); font-size: 14px; color: var(--text) !important; white-space: nowrap; }
.ms-h + .mg-item { border-top: 0; padding-top: 6px; }

/* ==========================================================================
   节日列表（templates/web/m/holiday_list.html）和节日页（holiday.html）
   ========================================================================== */
.mh-chips { display: flex; gap: 20px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--m-line); border-radius: 0 0 12px 12px; }
.mh-chips button { padding: 0; border: 0; background: none; font-size: 14px; color: var(--text-2); }
.mh-chips button.on { color: var(--primary); font-weight: 600; }
.mh-first { display: block; color: var(--text) !important; }
.mh-first[hidden], .mh-row[hidden], .mh-month[hidden] { display: none; }
.mh-first small { display: block; font-size: 12px; color: var(--text-3); }
.mh-first-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 2px; }
.mh-first-h b { font-size: 19px; font-weight: 600; }
.mh-first-h em { font-style: normal; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.mh-sum { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.mh-tip { display: block; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.mh-month h2 { margin: 16px 14px 0; font-size: 12px; font-weight: 400; color: var(--text-3); }
.mh-rows { padding-top: 0; padding-bottom: 0; }
.mh-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--m-line); color: var(--text) !important; }
.mh-row:first-child, .mh-row[hidden] + .mh-row:not([hidden]) { border-top: 0; }
.mh-date { flex: none; width: 40px; text-align: center; line-height: 1.2; }
.mh-date small { display: block; font-size: 11px; color: var(--text-3); }
.mh-date b { font-size: 19px; font-weight: 600; }
.mh-body { flex: 1; min-width: 0; }
.mh-body > span { display: flex; align-items: baseline; gap: 8px; }
.mh-body b { font-size: 14px; font-weight: 600; }
.mh-body small { font-size: 12px; color: var(--text-3); }
.mh-body em { display: block; font-style: normal; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-row > i { flex: none; font-style: normal; color: var(--text-3); }
/* 节日页 */
.mh-head { padding: 12px 14px 14px; background: #fff; border-radius: 0 0 12px 12px; }
.mh-head-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mh-head-t h1 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--text); }
.mh-when { margin: 2px 0 8px; font-size: 12px; color: var(--text-2); }
.mh-order { margin: 10px 0 0; padding: 7px 10px; border-radius: 8px; background: var(--m-tag); font-size: 12px; color: var(--text-2); }
.mh-tags { margin-top: 10px; margin-bottom: 0; }
.mh-others { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
.mh-others::-webkit-scrollbar { display: none; }
.mh-others a { flex: none; min-width: 84px; padding: 8px 12px; border-radius: 8px; background: var(--m-tag); color: var(--text) !important; }
.mh-others b { display: block; font-size: 14px; font-weight: 600; }
.mh-others small { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* ==========================================================================
   攻略列表（templates/web/m/article_list.html）和文章页（article.html）：读起来舒服为主
   ========================================================================== */
.ma-tabs { position: sticky; top: 52px; z-index: 50; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 10px 14px;
  background: #fff; border-top: 1px solid var(--m-line); border-radius: 0 0 12px 12px; white-space: nowrap; }
.ma-tabs::-webkit-scrollbar { display: none; }
.ma-tabs a { flex: none; font-size: 14px; color: var(--text-2) !important; }
.ma-tabs a.on { color: var(--primary) !important; font-weight: 600; }
/* 头条：左文右图（图片不独占一行），摘要在下面一整行 */
.ma-pick { display: block; color: var(--text) !important; }
.ma-pick-top { display: flex; gap: 12px; align-items: flex-start; }
.ma-pick-t { flex: 1; min-width: 0; display: block; }
.ma-pick-img { flex: none; display: block; width: 112px; height: 112px; border: 1px solid var(--m-imgline); border-radius: 8px; background: #fff; overflow: hidden; box-sizing: border-box; }
.ma-pick-img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.ma-pick small { display: block; font-size: 12px; color: var(--text-3); }
.ma-pick b { display: block; margin-top: 6px; font-size: 17px; font-weight: 600; line-height: 1.45; }
.ma-pick-sum { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-intro { margin: -4px 0 6px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.ma-row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--m-line); color: var(--text) !important; }
.m-sec-h + .ma-row, .ma-intro + .ma-row { border-top: 0; padding-top: 4px; }
.ma-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.ma-row-t b { font-size: 14px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-row-t small { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.ma-thumb { flex: none; width: 96px; height: 72px; border-radius: 8px; border: 1px solid var(--m-imgline); background: #fff; overflow: hidden; box-sizing: border-box; }
.ma-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.mr-cities a.on { background: var(--primary); color: #fff !important; }

/* 文章页：白底整块，左右 16px，正文 16px、行距 1.85 */
.ma { padding: 14px 16px 16px; background: #fff; border-radius: 0 0 12px 12px; }
.ma-preview { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--m-tag); font-size: 12px; color: var(--text-2); }
.ma h1 { margin: 8px 0 0; font-size: 21px; font-weight: 600; line-height: 1.4; color: var(--text); }
.ma-meta { margin: 6px 0 0; font-size: 12px; color: var(--text-3); }
.ma-meta a { color: var(--text-2) !important; }
.ma-cover { display: block; width: 100%; max-height: 170px; margin-top: 12px; border-radius: 8px; object-fit: cover; }
.ma-lead { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--m-tag); font-size: 14px; line-height: 1.7; color: var(--text-2); }
.ma-toc { margin-top: 12px; border: 1px solid var(--m-imgline); border-radius: 8px; }
.ma-toc summary { list-style: none; position: relative; padding: 9px 30px 9px 12px; font-size: 14px; color: var(--text); cursor: pointer; }
.ma-toc summary::-webkit-details-marker { display: none; }
.ma-toc summary::after { content: ""; position: absolute; right: 14px; top: 50%; margin-top: -6px; width: 7px; height: 7px;
  border-right: 1.3px solid #999; border-bottom: 1.3px solid #999; transform: rotate(45deg); }
.ma-toc[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.ma-toc nav { display: flex; flex-direction: column; padding: 0 12px 8px; }
.ma-toc a { padding: 6px 0; border-top: 1px solid var(--m-line); font-size: 14px; color: var(--text-2) !important; }
.ma-toc a.l3 { padding-left: 14px; font-size: 13px; }
.ma-body { margin-top: 14px; font-size: 16px; line-height: 1.85; color: var(--text); word-break: break-word; }
.ma-body p { margin: 0 0 14px; }
.ma-body h2 { margin: 22px 0 8px; font-size: 18px; font-weight: 600; line-height: 1.45; scroll-margin-top: 60px; }
.ma-body h3 { margin: 18px 0 6px; font-size: 16px; font-weight: 600; line-height: 1.5; scroll-margin-top: 60px; }
.ma-body ul, .ma-body ol { margin: 0 0 14px; padding-left: 1.3em; }
.ma-body li { margin-bottom: 4px; }
.ma-body img { display: block; max-width: 100%; max-height: 220px; width: auto; margin: 10px auto; border-radius: 8px; }
.ma-body table { display: block; max-width: 100%; overflow-x: auto; font-size: 14px; }
.ma-body a { color: var(--text) !important; text-decoration: underline; text-decoration-color: #ccc; }
/* 正文里插的商品：改成手机商品行（一行一个，图 72px，只有价格是红色） */
.ma-body .products { display: block !important; margin: 10px 0 14px; padding: 0; list-style: none; }
.ma-body .product { margin: 0; border: 0; border-top: 1px solid var(--m-line); border-radius: 0; background: none; }
.ma-body .product:first-child { border-top: 0; }
.ma-body .product-link { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; padding: 10px 0; text-decoration: none; }
.ma-body .product-img { grid-row: 1 / 3; width: 72px; height: 72px; aspect-ratio: auto !important; border: 1px solid var(--m-imgline); border-radius: 8px; background: #fff; overflow: hidden; }
.ma-body .product-img img { max-height: none; width: 100%; height: 100%; margin: 0; padding: 3px; object-fit: contain; box-sizing: border-box; }
.ma-body .product-img .shop-tag { display: none; }
.ma-body .product-title { grid-column: 2 / 4; height: auto !important; min-height: 0 !important; padding: 0 !important; font-size: 14px !important; line-height: 1.5 !important; color: var(--text); }
.ma-body .product-foot { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; padding: 4px 0 0 !important; }
.ma-body .product-price { color: var(--primary); }
.ma-body .product-price b { font-size: 17px; }
.ma-body .product-price .lbl { margin-right: 4px; padding: 0 4px; border-radius: 3px; background: var(--m-tag); font-size: 11px; color: var(--text-2); }
.ma-body .product-price s { margin-left: 4px; font-size: 12px; color: var(--text-3); }
.ma-body .product-buy { background: none !important; border: 0 !important; padding: 0 !important; font-size: 12px; color: var(--text-2) !important; }
.ma-body .products-more a { font-size: 13px; color: var(--text-2) !important; }
/* 正文里的“特产 + 一排商品”块（partials/article_spblock.html）：按设计规范重排，文字完整显示、不截断 */
.ma-body .art-sp { margin: 12px 0 16px; padding: 12px; border: 1px solid var(--m-imgline); border-radius: 12px; background: #fff; box-shadow: none; }
.ma-body .art-sp-head { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--text) !important; }
.ma-body .art-sp-head > img, .ma-body .art-sp-head > i { flex: none; width: 72px; height: 72px; max-height: none; margin: 0; padding: 3px; border: 1px solid var(--m-imgline);
  border-radius: 8px; object-fit: contain; box-sizing: border-box; background: #fff; }
.ma-body .art-sp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ma-body .art-sp-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; line-height: 1.4; }
.ma-body .art-sp-name b { font-size: 16px; font-weight: 600; color: var(--text); }
.ma-body .art-sp-name small { font-size: 12px; color: var(--text-3); }
.ma-body .art-sp-name em { font-style: normal; font-size: 12px; color: var(--m-geo); background: none; padding: 0; border: 0; }
.ma-body .art-sp-name em::before { content: "● "; font-size: 8px; vertical-align: 1px; }
.ma-body .art-sp-sum { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.ma-body .art-sp-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ma-body .art-sp-facts span { padding: 0 6px; border-radius: 3px; background: var(--m-tag); font-size: 12px; line-height: 20px; color: var(--text-2); white-space: normal; }
.ma-body .art-sp-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--m-line); font-size: 12px; line-height: 1.5; color: var(--text-3); }
.ma-body .art-sp-label a { color: var(--text-2) !important; text-decoration: none; }
.ma-body .art-sp .products { margin: 4px 0 0; padding: 0 !important; background: none !important; border: 0 !important; }
.ma-body .art-sp .product { background: none !important; }
.ma-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--m-line); }
.ma-next b { font-size: 14px; font-weight: 600; margin-right: 2px; }
.ma-next a { padding: 4px 12px; border-radius: 15px; background: var(--m-tag); font-size: 13px; color: var(--text) !important; }
.ma-pn { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ma-pn a { padding: 10px 12px; border-radius: 8px; background: var(--m-tag); font-size: 14px; line-height: 1.5; color: var(--text) !important; }
.ma-pn small { display: block; font-size: 12px; color: var(--text-3); }

/* ==========================================================================
   旅行伴手礼（templates/web/m/souvenir.html）：省份一排切换，景点一行一个 + 带回去的特产
   ========================================================================== */
.mv-head { padding: 2px 14px 12px; background: #fff; border-radius: 0 0 12px 12px; }
.mv-head p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.mv-provs { margin-top: 10px; }
.mv-panel { display: none; }
.mv-panel.on { display: block; }
.mv-item { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--m-line); }
.ms-h + .mv-item { border-top: 0; padding-top: 6px; }
.mv-img { flex: none; display: block; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--m-tag); }
.mv-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mv-body { flex: 1; min-width: 0; }
.mv-name { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text) !important; }
.mv-name b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-name small { flex: none; font-size: 12px; color: var(--text-3); }
.mv-body p { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mv-take { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; }
.mv-take span { font-size: 12px; color: var(--text-3); }
.mv-take a { padding: 0 6px; border-radius: 3px; background: var(--m-tag); font-size: 12px; line-height: 20px; color: var(--text) !important; }
.mv-take em { font-style: normal; font-size: 12px; color: var(--text-3); }

/* ==========================================================================
   搜索（templates/web/m/search.html）
   ========================================================================== */
.ms-clear { flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #ccc; color: #fff; font-size: 14px; line-height: 20px; }
.ms-clear[hidden] { display: none; }
.ms-go { flex: none; padding: 0 2px; border: 0; background: none; font-size: 15px; color: var(--text); }
.ms-tabs { position: sticky; top: 52px; z-index: 50; }
.ms-parsed { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 8px 14px 0; font-size: 12px; color: var(--text-3); }
section[data-sec][hidden] { display: none; }
.ms-start { padding: 14px 14px 16px; background: #fff; border-radius: 0 0 12px 12px; }
.ms-start-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.ms-start-h h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.ms-start-h button { padding: 0; border: 0; background: none; font-size: 12px; color: var(--text-3); }
.ms-recent { margin-bottom: 14px; }
.ms-recent[hidden] { display: none; }
.ms-words { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-words a { max-width: 100%; padding: 4px 12px; border-radius: 15px; background: var(--m-tag); font-size: 14px; color: var(--text) !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
.ms-hint { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-3); }
.ms-none { margin: 0 0 14px; font-size: 14px; color: var(--text-2); }

/* ==========================================================================
   礼品分类列表（templates/web/m/gift_category_list.html）和分类页（gift_category.html）
   ========================================================================== */
.mc-lead { margin: 0; padding: 2px 14px 12px; background: #fff; border-radius: 0 0 12px 12px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.mc-lead a { color: var(--text) !important; }
.mc-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 10px 0; }
.mc-cat { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px; border-radius: 12px; background: #fff; color: var(--text) !important; }
.mc-cat .m-hs-img { flex: none; width: 52px; height: 52px; }
.mc-cat-t { flex: 1; min-width: 0; }
.mc-cat-t b { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.mc-cat-t small .m-tag { margin-right: 4px; }
.mc-cat-t small { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sum { margin-top: 4px; }
.mc-fit { display: flex; gap: 8px; margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.mc-fit span { flex: none; width: 5em; padding-top: 1px; font-size: 12px; color: var(--text-3); }
.mc-budget { margin: 12px -14px 0; padding: 0 14px; }
.mc-budget a.on { background: var(--primary); color: #fff !important; }
.mc-season { margin: 0 0 4px; font-size: 12px; color: var(--text-2); }
.mc-season a { color: var(--text) !important; }
.mc-date { font-size: 12px; color: var(--text-3); }

/* ==========================================================================
   景点列表（templates/web/m/scenic_list.html）和景点页（scenic.html）
   ========================================================================== */
.msc-filter .mg-cities { margin-top: 0; }
.msc-filter .mg-cities small { font-size: 12px; opacity: .7; }
.msc-levels { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; white-space: nowrap; }
.msc-levels::-webkit-scrollbar { display: none; }
.msc-levels a { flex: none; font-size: 14px; color: var(--text-2) !important; }
.msc-levels a.on { color: var(--primary) !important; font-weight: 600; }
.msc-levels span { flex: none; font-size: 14px; color: #c8c8c8; }
.msc-item .mv-img { width: 96px; height: 72px; }
.msc-img { height: 160px; background: var(--m-tag); overflow: hidden; }
.msc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.msc-cells .ms-cell > span { width: 4.5em; }
.msc-notice { text-align: left; }
.msc-notice a { color: var(--text-2) !important; }
.ms-note a { color: var(--text-2) !important; }

/* ---- 页脚 ---- */
.m-foot { padding: 16px 12px 12px; font-size: 12px; color: var(--text-3); text-align: center; }
.m-foot p { margin: 0 0 6px; }
.m-foot-links { display: flex; justify-content: center; gap: 14px; }
.m-foot a { color: var(--text-2) !important; }
.m-feed-sentinel { height: 1px; }
