/* ── features.css — 功能模块样式 v1.3.0 ─────────────── */

/* ════════════════ 滚动字幕 ════════════════ */
.mxh-ticker {
  display: flex; align-items: center;
  background: #1a1a2e; color: #fff;
  height: 36px; overflow: hidden;
  font-size: 13px; padding: 0 12px;
}
.ticker-label {
  flex-shrink: 0;
  background: #d42b1e; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  margin-right: 12px; white-space: nowrap;
}
.ticker-wrap { flex: 1; overflow: hidden; position: relative; }
.ticker-track {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
}
.mxh-ticker[data-speed] .ticker-track { animation-duration: calc(var(--ticker-speed, 40) * 1s); }
.ticker-item { margin-right: 60px; color: #e8e8e8; text-decoration: none; }
a.ticker-item:hover { color: #f9a; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════ 弹窗公告 ════════════════ */
.mxh-popup-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.mxh-popup-box {
  background: #fff; border-radius: 10px;
  max-width: 520px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  position: relative; overflow: hidden;
  animation: popupIn .25s ease-out;
}
@keyframes popupIn {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.mxh-popup-head {
  display: flex; align-items: center; justify-content: space-between;
  background: #d42b1e; color: #fff;
  padding: 14px 20px; font-size: 16px; font-weight: 700;
}
.mxh-popup-close {
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 18px; line-height: 1; padding: 0 4px;
}
.mxh-popup-close--abs {
  position: absolute; top: 12px; right: 14px;
  color: #555; font-size: 20px;
}
.mxh-popup-body { padding: 20px 24px; line-height: 1.7; color: #333; font-size: 14px; }
.mxh-popup-foot { padding: 12px 24px 20px; text-align: center; }
.mxh-popup-confirm {
  background: #d42b1e; color: #fff; border: none;
  padding: 10px 32px; border-radius: 6px; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: background .15s;
}
.mxh-popup-confirm:hover { background: #b91c1c; }

/* ════════════════ 分享按钮 ════════════════ */
.post-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee;
  margin: 24px 0;
}
.share-label { font-size: 13px; color: #666; margin-right: 4px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-btn .share-icon { font-size: 14px; }
.share-weixin   { background: #07c160; color: #fff; }
.share-weibo    { background: #e6162d; color: #fff; }
.share-facebook { background: #1877f2; color: #fff; }
.share-twitter  { background: #000;    color: #fff; }
.share-whatsapp { background: #25d366; color: #fff; }
.share-telegram { background: #229ed9; color: #fff; }
.share-line     { background: #06c755; color: #fff; }
.share-copylink { background: #6b7280; color: #fff; }
.share-copylink.copied { background: #16a34a; }

/* 微信分享 QR 弹窗 */
.wechat-share-modal {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
}
.wechat-share-box {
  background: #fff; border-radius: 10px; padding: 24px;
  text-align: center; max-width: 280px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.wechat-share-box h4 { margin: 0 0 12px; font-size: 15px; color: #1a1a1a; }
.wechat-share-box p  { font-size: 12px; color: #666; margin: 10px 0 0; line-height: 1.5; }
.wechat-share-qr { width: 160px; height: 160px; border: 1px solid #eee; border-radius: 6px; }
.wechat-share-close { margin-top: 14px; background: none; border: 1px solid #ddd; border-radius: 4px; padding: 6px 20px; cursor: pointer; font-size: 13px; color: #555; }

/* ════════════════ 字体大小调节 ════════════════ */
.font-adjuster {
  display: inline-flex; gap: 4px;
  margin-top: 8px;
}
.font-btn {
  background: #f3f4f6; border: 1px solid #d1d5db;
  border-radius: 4px; cursor: pointer;
  font-size: 12px; font-weight: 700; color: #374151;
  padding: 3px 10px; transition: background .15s;
}
.font-btn:hover { background: #e5e7eb; }

/* ════════════════ 实时搜索下拉 ════════════════ */
.search-wrap { position: relative; }
.live-search-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 1000; overflow: hidden;
  max-height: 360px; overflow-y: auto;
}
.ls-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; text-decoration: none; color: #1a1a1a;
  border-bottom: 1px solid #f3f4f6; transition: background .1s;
}
.ls-item:hover { background: #fef2f2; }
.ls-thumb {
  width: 48px; height: 34px; object-fit: cover;
  border-radius: 4px; flex-shrink: 0;
}
.ls-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.ls-date  { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.ls-no-results { padding: 14px; text-align: center; color: #9ca3af; font-size: 13px; }

/* ════════════════ 加载更多 ════════════════ */
.nf-load-more-wrap { text-align: center; padding: 20px 0; }
.nf-load-more-btn {
  background: #fff; border: 2px solid #d42b1e; color: #d42b1e;
  padding: 10px 36px; border-radius: 24px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.nf-load-more-btn:hover { background: #d42b1e; color: #fff; }
.nf-load-more-btn:disabled { opacity: .5; cursor: not-allowed; }
.nf-load-more-btn.loading::after { content: '…'; }

/* ════════════════ 相关文章 ════════════════ */
.mxh-related-posts { margin: 32px 0 0; }
.related-title {
  font-size: 18px; font-weight: 700; color: #1a1a1a;
  border-left: 4px solid #d42b1e; padding-left: 12px;
  margin-bottom: 16px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 14px;
}
.related-card { text-decoration: none; color: inherit; transition: transform .15s; }
.related-card:hover { transform: translateY(-3px); }
.related-img {
  aspect-ratio: 16/9; background: #f3f4f6;
  border-radius: 6px; overflow: hidden;
  background-size: cover; background-position: center;
  margin-bottom: 8px;
}
.related-img--no-thumb { background: linear-gradient(135deg,#fde8e8,#f3f4f6); }
.related-info h4 { font-size: 13px; font-weight: 600; line-height: 1.4; margin: 0 0 4px; color: #1a1a1a; }
.related-date { font-size: 11px; color: #9ca3af; }

/* ════════════════ 热门文章 Widget ════════════════ */
.mxh-popular-list { list-style: none; margin: 0; padding: 0; }
.popular-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f3f4f6;
}
.popular-rank {
  flex-shrink: 0; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; font-size: 12px; font-weight: 700;
  background: #e5e7eb; color: #6b7280;
}
.popular-rank.rank-1 { background: #d42b1e; color: #fff; }
.popular-rank.rank-2 { background: #ea580c; color: #fff; }
.popular-rank.rank-3 { background: #ca8a04; color: #fff; }
.popular-thumb-link { flex-shrink: 0; }
.popular-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 4px; }
.popular-info { flex: 1; min-width: 0; }
.popular-title { font-size: 13px; font-weight: 500; color: #1a1a1a; text-decoration: none; line-height: 1.4; display: block; }
.popular-title:hover { color: #d42b1e; }
.popular-meta { font-size: 11px; color: #9ca3af; display: flex; gap: 8px; margin-top: 3px; }

/* ════════════════ 天气 Widget ════════════════ */
.mxh-weather-widget { padding: 4px 0; }
.weather-loading, .weather-err { color: #9ca3af; font-size: 13px; padding: 8px 0; }
.weather-main { display: flex; align-items: center; gap: 4px; }
.weather-icon { width: 52px; height: 52px; }
.weather-temp { font-size: 36px; font-weight: 700; color: #1a1a1a; }
.weather-desc { font-size: 14px; color: #555; margin: 2px 0 4px; text-transform: capitalize; }
.weather-city { font-size: 12px; color: #9ca3af; margin-bottom: 8px; }
.weather-detail { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #6b7280; }

/* ════════════════ 分类文章 Widget ════════════════ */
.mxh-cat-posts-list { list-style: none; margin: 0; padding: 0; }
.cat-post-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; }
.cat-post-thumb-link { flex-shrink: 0; }
.cat-post-thumb { width: 60px; height: 42px; object-fit: cover; border-radius: 4px; }
.cat-post-info { flex: 1; min-width: 0; }
.cat-post-title { font-size: 13px; font-weight: 500; color: #1a1a1a; text-decoration: none; line-height: 1.4; display: block; }
.cat-post-title:hover { color: #d42b1e; }
.cat-post-date { font-size: 11px; color: #9ca3af; }

/* ════════════════ 社交关注 Widget ════════════════ */
.mxh-social-list { list-style: none; margin: 0; padding: 0; }
.social-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; text-decoration: none; color: #374151; font-size: 13px;
  border-bottom: 1px solid #f3f4f6; transition: color .15s;
}
.social-link:hover { color: #d42b1e; }
.social-icon { font-size: 16px; }
.social-label { font-weight: 600; }
.social-val { color: #6b7280; font-size: 12px; }

/* ════════════════ 旅游景点 t-intro ════════════════ */
.t-intro { font-size: 11px; color: #9ca3af; line-height: 1.4; margin: 2px 0 4px; }
.t-img-placeholder { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:2.5rem;background:#f3f4f6; }

/* ════════════════ 商家黄页 ════════════════ */
.module-business { padding: 32px 0; }
.biz-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 16px;
}
.biz-card {
  background: #fff; border-radius: 10px;
  border: 1px solid #e5e7eb; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.biz-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.biz-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f3f4f6; }
.biz-img img { width:100%; height:100%; object-fit:cover; }
.biz-img-placeholder { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:2.5rem; }
.biz-cat-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; padding: 2px 7px; border-radius: 3px;
}
.biz-body { padding: 12px 14px; flex: 1; }
.biz-name { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.biz-city { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.biz-intro { font-size: 12px; color: #9ca3af; line-height: 1.4; margin-bottom: 6px; }
.biz-phone { font-size: 12px; color: #0f766e; font-weight: 500; }

/* ════════════════ 生活指南 ════════════════ */
.module-lifestyle { padding: 32px 0; }
.lifestyle-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 16px;
}
.ls-card {
  background: #fff; border-radius: 10px;
  border: 1px solid #e5e7eb; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.ls-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.ls-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f3f4f6; }
.ls-img img { width:100%; height:100%; object-fit:cover; }
.ls-img-placeholder { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:2.5rem; }
.ls-cat-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(124,58,237,.75); color: #fff;
  font-size: 11px; padding: 2px 7px; border-radius: 3px;
}
.ls-body { padding: 12px 14px; }
.ls-title { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; line-height: 1.4; }
.ls-intro { font-size: 12px; color: #9ca3af; margin-bottom: 6px; line-height: 1.4; }
.ls-more { font-size: 12px; color: #7c3aed; font-weight: 500; }

/* ════════════════ 分类信息 ════════════════ */
.module-classifieds { padding: 32px 0; }
.cl-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 14px 0 0;
}
.cl-tab {
  background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 20px; padding: 6px 16px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  color: #374151; transition: all .15s;
}
.cl-tab:hover { background: #fef2f2; border-color: #d42b1e; color: #d42b1e; }
.cl-tab--active { background: #d42b1e; border-color: #d42b1e; color: #fff; }
.cl-panel { display: none; margin-top: 12px; }
.cl-panel--active { display: block; }
.cl-list { display: flex; flex-direction: column; gap: 2px; }
.cl-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 6px;
  background: #fff; border: 1px solid #f3f4f6;
  text-decoration: none; color: inherit;
  transition: background .1s;
}
.cl-item:hover { background: #fef2f2; }
.cl-item-title { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.cl-item-meta { display: flex; gap: 10px; font-size: 11px; color: #9ca3af; margin-top: 2px; flex-wrap: wrap; }
.cl-price { color: #d42b1e; font-weight: 600; }
.cl-arrow { color: #9ca3af; font-size: 12px; flex-shrink: 0; }
.cl-panel-foot { text-align: center; padding: 12px 0 4px; }
.cl-more-link {
  display: inline-block; font-size: 13px; color: #d42b1e;
  text-decoration: none; border: 1px solid #d42b1e;
  border-radius: 16px; padding: 6px 18px;
}
.cl-more-link:hover { background: #d42b1e; color: #fff; }
.cl-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 20px; text-align: center; gap: 10px;
}
.cl-empty-icon { font-size: 3rem; }
.cl-empty-text { font-size: 14px; color: #6b7280; line-height: 1.6; }
.cl-post-btn {
  display: inline-block; background: #d42b1e; color: #fff;
  text-decoration: none; padding: 8px 24px; border-radius: 20px;
  font-size: 13px; font-weight: 600; transition: background .15s;
}
.cl-post-btn:hover { background: #b91c1c; }

/* ════════════════ 最新资讯 — 卡片网格布局 ════════════════ */
.nf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 4px;
  padding: 14px;
}
.nf-grid-card {
  background: #fff; border-radius: 8px;
  border: 1px solid #e5e7eb; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.nf-grid-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.09); }
.nf-grid-img {
  aspect-ratio: 16/10; background: #f3f4f6;
  overflow: hidden; position: relative;
  flex-shrink: 0;
}
.nf-grid-img img { width:100%; height:100%; object-fit:cover; display:block; }
.nf-grid-no-img { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:2rem; }
.nf-grid-body { padding: 10px 12px; flex: 1; }
.nf-grid-title { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.4; margin: 4px 0; }

/* ════════════════ 最新资讯 — 杂志排版 ════════════════ */
.nf-magazine { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 4px; }
.nf-mag-lead-inner { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.nf-mag-img { overflow: hidden; border-radius: 8px; aspect-ratio: 16/9; }
.nf-mag-img img { width:100%; height:100%; object-fit:cover; }
.nf-mag-body { padding: 10px 0 0; }
.nf-mag-title { font-size: 18px; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin: 6px 0; }
.nf-mag-excerpt { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 6px; }
.nf-mag-sidebar { display: flex; flex-direction: column; gap: 10px; }
.nf-mag-row {
  display: flex; gap: 10px; text-decoration: none; color: inherit;
  padding-bottom: 10px; border-bottom: 1px solid #f3f4f6;
}
.nf-mag-thumb { width: 72px; height: 52px; border-radius: 5px; overflow: hidden; flex-shrink: 0; }
.nf-mag-thumb img { width:100%; height:100%; object-fit:cover; }
.nf-mag-row-body { flex: 1; min-width: 0; }
.nf-mag-row-title { font-size: 13px; font-weight: 500; color: #1a1a1a; line-height: 1.4; }
@media (max-width: 640px) {
  .nf-magazine { grid-template-columns: 1fr; }
  .nf-grid { grid-template-columns: 1fr; }
}

/* ════════════════ 最新资讯 — 时间轴 ════════════════ */
.nf-timeline { margin-top: 4px; }
.nf-tl-day { display: flex; gap: 14px; margin-bottom: 16px; }
.nf-tl-date {
  flex-shrink: 0; width: 52px;
  font-size: 12px; font-weight: 700; color: #d42b1e;
  padding-top: 2px; text-align: right;
  border-right: 2px solid #f3f4f6; padding-right: 14px;
}
.nf-tl-items { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.nf-tl-item {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none; color: #1a1a1a; font-size: 13px;
  padding: 4px 0; border-bottom: 1px solid #f9fafb;
}
.nf-tl-item:hover .nf-tl-title { color: #d42b1e; }
.nf-tl-title { line-height: 1.4; }

/* ════════════════ 搜索结果页 v1.4.2 ════════════════ */
.search-page { padding: 32px 0 48px; }

.search-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-bottom: 24px; border-bottom: 2px solid #f1f3f4; margin-bottom: 32px;
}
.search-title { font-size: var(--text-2xl); font-weight: 800; color: #111; margin: 0; }
.search-title em { color: #d42b1e; font-style: normal; }

/* 搜索结果分区 */
.sr-section { margin-bottom: 40px; }
.sr-section-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 0 0 12px; margin-bottom: 16px;
  border-bottom: 2px solid #d42b1e;
}
.sr-section-icon { font-size: 20px; }
.sr-section-label { font-size: var(--text-lg); font-weight: 700; color: #111; }
.sr-section-count {
  margin-left: auto; font-size: var(--text-sm);
  color: #6b7280; background: #f3f4f6;
  padding: 2px 10px; border-radius: 999px;
}

/* 搜索结果卡片网格 */
.sr-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sr-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #e8eaed;
  border-radius: 10px; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.sr-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }

.sr-card-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: #f3f4f6;
}
.sr-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sr-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; background: #f9fafb;
}
.sr-card-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.sr-card-rating {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.6); color: #fbbf24;
  font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.sr-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sr-card-title { font-size: 14px; font-weight: 700; color: #111; line-height: 1.4; }
.sr-card:hover .sr-card-title { color: #d42b1e; }
.sr-card-meta { font-size: 12px; color: #6b7280; }
.sr-card-excerpt { font-size: 12px; color: #9ca3af; line-height: 1.5; margin-top: auto; }

/* 空结果 */
.no-results-box {
  text-align: center; padding: 60px 20px;
  color: #6b7280; font-size: var(--text-base);
}
.no-results-icon { font-size: 48px; margin-bottom: 16px; }
.no-results-box strong { color: #111; }

/* 搜索结果响应式 */
@media (max-width: 1024px) { .sr-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .sr-card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 480px)  { .sr-card-grid { grid-template-columns: 1fr; } }
