/**
 * Windows / macOS / iOS 显示兼容补丁
 * 挂在 site.css 之后，覆盖源站压缩样式里差异大的规则。
 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  /* Win 优先雅黑，Mac 优先苹方/系统字体，避免两边字号/行高差过大 */
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Segoe UI",
    "Noto Sans CJK SC",
    "WenQuanYi Micro Hei",
    Arial,
    sans-serif !important;
  /* 源站 body{word-break:break-all} 在 Safari 会把英文/数字拆得很碎；
     勿用 anywhere，中文按钮会被拆成单字换行（如「宣传片」的「片」） */
  word-break: normal !important;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

/* Safari flex 子项默认 min-width:auto 易撑破布局 */
.s_layout,
.p_list,
.p_loopitem,
.e_container-1,
.e_container-6,
.e_container-20,
.p_item {
  min-width: 0;
}

/* iOS Safari 地址栏导致 100vh 裁切：保留 vh，叠加 dvh */
#c_flipPage-1637288758471,
#c_flipPage-1637288758471 .p_fswiperContainer,
#c_flipPage-1637288758471 .p_wrapper {
  min-height: 100vh;
  min-height: 100dvh;
}
#c_flipPage-1637288758471 .p_fslide {
  min-height: 100vh;
  min-height: 100dvh;
}

/* 按钮/链接点击高亮在 iOS 更干净 */
a,
button {
  -webkit-tap-highlight-color: rgba(1, 148, 140, 0.15);
}

/* 避免 Mac Safari 滚动条占宽导致整页横向抖动 */
html {
  scrollbar-gutter: stable;
}

/* page-css font override：只覆盖元素本身，勿动 ::before/::after（会打断 Swiper 图标字体） */
* {
  font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Segoe UI","Noto Sans CJK SC","WenQuanYi Micro Hei",Arial,sans-serif !important;
}
/* 箭头改由页面 CSS 三角绘制，不再依赖 swiper-icons（避免与 SVG 叠成双箭头） */
.e_richText,
.e_richText * {
  font-family: inherit !important;
  letter-spacing: normal !important;
}
