/* 众展网络极致CMS 强制铁律 6/7/8 · 首页友情链接 + 手机端底部双按钮
   独立文件，无外部依赖。head 里 <link> 引用；不要内联进模板（{ } 会被模板引擎误解析）。
   配色：中文主色 #1565e0 / 微信 #07c160；英文 WhatsApp #25D366 / 邮件 #1565e0 */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 首页友情链接（只在首页输出） ---------- */
.friendlinks { border-top: 1px solid #e8edf5; background: #f7f9fc; }
.friendlinks__inner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; padding-top: 16px; padding-bottom: 16px; }
.friendlinks__label { font-size: 14px; font-weight: 600; color: #46536b; white-space: nowrap; }
.friendlinks__list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.friendlinks__list a { font-size: 13px; color: #6b7893; text-decoration: none; transition: color .2s; }
.friendlinks__list a:hover { color: #1565e0; }
.friendlinks__list:empty { display: none; }

/* ---------- 手机端底部双按钮 ---------- */
.mobile-bar { display: none; }
.wx-tip {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(8px);
  max-width: 86vw; padding: 10px 16px; border-radius: 8px;
  background: rgba(24, 32, 48, .92); color: #fff; font-size: 13px; line-height: 1.6;
  text-align: center; z-index: 10002; opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.wx-tip.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 960px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 10001; height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff; box-shadow: 0 -3px 14px rgba(16, 32, 64, .10);
    border-top: 1px solid #e8edf5;
  }
  .mobile-bar__btn {
    flex: 1 1 50%; min-width: 0; height: 60px;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    border: 0; background: #fff; color: #33405c;
    font: 600 15px/1 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .mobile-bar__btn + .mobile-bar__btn { border-left: 1px solid #eef1f6; }
  .mobile-bar__btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
  .mobile-bar__btn:active { background: #f2f5fa; }
  .mobile-bar__btn--wechat { background: #07c160; color: #fff; }
  .mobile-bar__btn--wechat:active { background: #06ad56; }
  .mobile-bar__btn--primary { background: #1565e0; color: #fff; }
  .mobile-bar__btn--primary:active { background: #1258c4; }
  .mobile-bar__btn--wa { background: #25d366; color: #fff; }
  .mobile-bar__btn--wa:active { background: #20bd5b; }
  .mobile-bar__btn[disabled] { opacity: .5; cursor: not-allowed; }

  .friendlinks__inner { gap: 6px 12px; }
}
