/* 阿里系常用CSS初始化模板 */
/* 基于阿里云社区分享的代码规范及现代重置理念整理 */

/* 1. 基础元素重置 */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* 2. HTML5 元素区块渲染设置 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/* 3. 整体基础设置 */
html {
  box-sizing: border-box;
  line-height: 1.15; /* 统一基础行高 */
  -webkit-text-size-adjust: 100%; /* 防止移动端字体自动调整 */
}

*,
*::before,
*::after {
  box-sizing: inherit; /* 所有元素继承盒模型 */
}

body {
  line-height: 1.5; /* 适宜阅读的行高 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", sans-serif; /* 系统字体栈 */
  color: #333; /* 中性灰色，提高可读性 */
  background-color: #fff; /* 纯白背景 */
  -webkit-font-smoothing: antialiased; /* Mac 字体抗锯齿 */
  -moz-osx-font-smoothing: grayscale;
}

/* 4. 链接与交互元素重置 */
a {
  color: inherit; /* 继承父元素颜色 */
  text-decoration: none; /* 默认无下划线 */
  background-color: transparent;
}

a:hover,
a:focus {
  color: #fff; /* 阿里系常用蓝色 */
  text-decoration: none; /* 悬停时也可保持无下划线，或根据需求调整 */
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  outline: none;
  background: none;
}

/* 5. 表单元素特定重置 */
input,
textarea,
select,
button {
  margin: 0;
  padding: 0;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

button {
  cursor: pointer;
}

/* 6. 列表重置 */
ol,
ul {
  list-style: none;
}

/* 7. 媒体元素重置 */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  border-style: none; /* 移除旧版IE图片边框 */
  vertical-align: middle; /* 消除图片底部间隙 */
}

/* 8. 表格重置 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 9. 引用元素重置 */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

/* 10. 功能类与清除浮动 (可选) */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.hide {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.fl {
  float: left;
}

.fr {
  float: right;
} /* ===== 布局辅助类 ===== */
.row {
  margin: 0 -15px;
}

.col-50 {
  width: 50%;
  float: left;
  padding: 0 15px;
}

.col-33 {
  width: 33.333%;
  float: left;
  padding: 0 15px;
}

.col-25 {
  width: 25%;
  float: left;
  padding: 0 15px;
}
