/* =============================================================
 * /www/TDK/assets/base.css  (v1.0.0, frozen)
 * 全站共享公共重置。内容锁定，不再变动。
 * 只允许通用元素 reset；任何"页面/片段"级规则禁止出现在此文件。
 * 加载顺序：base.css → baseline.css → 主题 style → sf-fallback
 * ============================================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Sarabun",
               "Noto Sans Thai", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #222;
  background: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

/* 防抖：图片未加载时预留高度，通用兜底（具体 aspect-ratio 由 baseline/snippets 负责） */
img[loading="lazy"]:not([src]),
img[loading="lazy"][src=""] {
  min-height: 1px;
  background: rgba(0, 0, 0, 0.04);
}
