body,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
blockquote,
dl,
dt,
dd,
ul,
ol,
li,
pre,
form,
fieldset,
legend,
button,
input,
textarea,
th,
td {
  margin: 0;
  padding: 0;
  /* 全局默认字体：HarmonyOS 优先，未加载完成时回退到系统字体，避免白屏 */
  font-family:
    "HarmonyOS Sans SC";
}

body {
  background-color: #f9f9f9;
}

* {
  box-sizing: border-box;
}
html {
  color: #000;
  overflow-y: scroll;
  overflow: -moz-scrollbars;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
}

em {
  font-style: normal;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: inherit;
}

a:hover {
  text-decoration: none; /* 取消下划线 */
  cursor: pointer;
}

legend {
  color: #000;
}

fieldset,
img {
  border: 0;
  width: 100%;
  object-fit: contain;
  display: block;
}

button,
input,
select,
textarea {
  font-size: 100%;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img {
  -ms-interpolation-mode: bicubic;
}

textarea {
  resize: vertical;
}

/* 单行省略 */
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 字体定义（HarmonyOS Sans SC） ==========
   @font-face 中的 url 是相对于当前 CSS 文件（css/）的路径
   字体文件位于 assets/font/，故用 ../assets/font/ 引用
*/
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../assets/font/HarmonyOS_Sans_Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../assets/font/HarmonyOS_Sans_Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../assets/font/HarmonyOS_Sans_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../assets/font/HarmonyOS_Sans_Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../assets/font/HarmonyOS_Sans_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../assets/font/HarmonyOS_Sans_Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
