/* CSS Reset - 重置浏览器默认样式 */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

/* 移除列表样式 */
ul, ol {
    list-style: none;
}

/* 链接样式 */
a {
    color: #1890ff;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: #40a9ff;
    text-decoration: underline;
}

a:active {
    color: #096dd9;
}

/* 图片 */
img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

/* 表格 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 表单元素 */
input,
button,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    cursor: pointer;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    padding: 0;
    border: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

textarea {
    overflow: auto;
    resize: vertical;
}

/* 标题 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.875rem; }
h6 { font-size: 0.75rem; }

/* 段落 */
p {
    margin-bottom: 1rem;
}

/* 分隔线 */
hr {
    height: 0;
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid #e8e8e8;
}

/* 代码 */
code,
pre {
    font-family: 'Courier New', Courier, 'Monaco', 'Consolas', monospace;
}

code {
    padding: 2px 4px;
    font-size: 90%;
    background-color: #f7f7f7;
    border-radius: 3px;
}

pre {
    display: block;
    padding: 1rem;
    margin: 0 0 1rem;
    font-size: 13px;
    line-height: 1.42857143;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

pre code {
    padding: 0;
    font-size: inherit;
    color: inherit;
    white-space: pre-wrap;
    background-color: transparent;
    border-radius: 0;
}

/* 引用 */
blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
}

/* 隐藏元素 */
[hidden] {
    display: none !important;
}

/* 禁用元素 */
[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
}

/* 清除浮动 */
.clearfix::after {
    display: block;
    clear: both;
    content: "";
}

/* 文本截断 */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 隐藏文本 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
