/* ★★★ 全浏览器 GUI 统一归一化 — selfgoods ★★★
   适用：orbshop / orbadmin / orbsupply / orbinspect / orbreferral
   浏览器：Chrome 80+ / Firefox 80+ / Safari 14+ / Edge 80+ / iOS / Android
   原则：纯 CSS，零 npm 依赖，一个文件全项目共享 */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* checkbox/radio 手动绘制方框（100% 可靠·M6500）：低版本 Chrome 的 appearance:auto 恢复不可靠，
   方框用 border 画、对勾用伪元素画，不依赖浏览器原生 appearance */
input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid #C9CDD4;
  border-radius: 4px;
  background: #fff;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  margin: 0;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked {
  background: var(--brand, #FF7A00);
  border-color: var(--brand, #FF7A00);
}
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
input[type="radio"]:checked {
  border-color: var(--brand, #FF7A00);
}
input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--brand, #FF7A00);
}

input[type="text"], input[type="password"], input[type="search"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  -webkit-user-drag: none;
}

[x-cloak] { display: none !important; }

/* Safari: backdrop-filter 需要 webkit 前缀 */
.backdrop-blur,
.bg-white\/95,
.bg-white\/80,
.bg-white\/90,
.bg-orange-500\/90 {
  -webkit-backdrop-filter: blur(12px);
}

/* Firefox: content-visibility 搭配 contain-intrinsic-size */
.waterfall-item {
  content-visibility: auto;
  contain-intrinsic-size: 0 300px;
}

/* 老旧浏览器: gap 降级 */
@supports not (gap: 6px) {
  .lang-bar, .flex.gap-1\.5 { margin: -3px; }
  .lang-bar > *, .flex.gap-1\.5 > * { margin: 3px; }
}

/* 滚动条隐藏 */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
