/* =========================================================================
 *  /static/css/common.css   全站共用样式
 *  用途：去掉手机端（iOS / 安卓浏览器、企微 WebView）点按或长按图片、链接、
 *        按钮时出现的灰色 / 半透明高亮框与聚焦描边。桌面端表现不变。
 *  引入：各页面 <head> 内
 *        <link rel="stylesheet" href="/static/css/common.css?v=1">
 *  注意：规则用了 !important，页面自己的 <style> 在后面也覆盖不掉。
 * ========================================================================= */

/* -------------------------------------------------------------------------
 * 1. 点按高亮：整个文档关闭，最彻底（iOS 默认为半透明黑色块）
 * ---------------------------------------------------------------------- */
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* -------------------------------------------------------------------------
 * 2. 图片 / 图片链接 / 按钮 / 可点击元素：关闭点按高亮
 * ---------------------------------------------------------------------- */
img,
a,
a > img,
button,
area,
label,
[role="button"],
[tabindex] {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* -------------------------------------------------------------------------
 * 3. 聚焦 / 按下：不画外框（Chrome / Safari / 安卓 / 企微内核都会画）
 * ---------------------------------------------------------------------- */
img:focus,
img:active,
img:focus-visible,
a:focus,
a:active,
a:focus-visible,
a > img:focus,
a > img:active,
button:focus,
button:active,
button:focus-visible,
[tabindex]:focus,
[role="button"]:focus {
  outline: none !important;
  outline-style: none !important;
  outline-width: 0 !important;
  outline-offset: 0 !important;
}

/* 键盘 Tab 聚焦时同样不画框（鼠标 / 触摸同理） */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
img:focus:not(:focus-visible) {
  outline: none !important;
}

/* -------------------------------------------------------------------------
 * 4. 图片本身：不参与文字选区、不可拖拽（长按选中会盖一层灰蓝色）
 *    长按图片时 iOS 会盖一层灰蓝色预览并弹「存储图像 / 分享」菜单，
 *    这里一并关掉（-webkit-touch-callout: none）。
 *    如果以后需要允许玩家长按保存图片，把这一行改回 default 即可。
 * ---------------------------------------------------------------------- */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* 站点不可用（维护开关 / 网站总开关关闭）：改用全站共用提示框 web-common-tip-box.js，
   页面里不再有自绘遮罩卡片，原来的 .site-maintenance-log 按钮样式已废弃 */

/* -------------------------------------------------------------------------
 * 6. 页脚版权：ICP 备案号 · 公司名称（两个都是后台配置的链接）
 * ---------------------------------------------------------------------- */
.row4-sep {
  margin: 0 10px;
  opacity: 0.6;
}

/* 图片外层的链接同样不选区 */
a > img {
  -webkit-user-select: none;
  user-select: none;
}
