/* 尚品购（ShangPinGou） - 全局基础重置与规范 (base.css) */

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

body {
    background-color: #f4f4f4;
    color: #333333;
    font-size: 14px;
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* 链接基础样式 */
a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #e4393c;
}

/* 列表样式重置 */
ul, ol, li {
    list-style: none;
}

/* 标题与段落重置 */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

/* 表单与按钮重置 */
input, button, select, textarea {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
}

img {
    vertical-align: middle;
    border: 0;
    max-width: 100%;
}

/* ---------------- 通用布局与工具类 ---------------- */

/* 核心版心 1200px 居中 */
.w {
    width: 1200px;
    margin: 0 auto;
}

/* 浮动工具类 */
.fl {
    float: left;
}

.fr {
    float: right;
}

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

.clearfix {
    *zoom: 1;
}

/* 尚品主题色与实用文本类 */
.text-red {
    color: #e4393c !important;
}

.text-gray {
    color: #999999 !important;
}

.text-bold {
    font-weight: bold;
}

.bg-red {
    background-color: #e4393c !important;
}

/* 省略号截断 */
.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
