/* =====================================================
   TScms 基础重置样式
   ===================================================== */

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

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 链接 */
a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* 图片 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

/* 列表 */
ul, ol, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 标题 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

/* 表单 */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    outline: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #2980b9;
}

button {
    cursor: pointer;
}

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

th, td {
    padding: 10px;
    text-align: left;
}

/* 常用工具类 */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.fl { float: left; }
.fr { float: right; }

.tc { text-align: center; }
.tr { text-align: right; }
.tl { text-align: left; }

.pr { position: relative; }
.pa { position: absolute; }
.pf { position: fixed; }

.w100 { width: 100%; }
.h100 { height: 100%; }

.ovh { overflow: hidden; }
.ova { overflow: auto; }

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

/* 过渡动画 */
.transition {
    transition: all 0.3s ease;
}

/* 隐藏 */
.hide { display: none; }
.show { display: block; }
.invisible { visibility: hidden; }

/* 边距工具类 */
.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.mt30 { margin-top: 30px; }
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px; }
.mb30 { margin-bottom: 30px; }
.ml10 { margin-left: 10px; }
.mr10 { margin-right: 10px; }
.pt10 { padding-top: 10px; }
.pb10 { padding-bottom: 10px; }
