/* ============================================
   宝山区专题页面 - 通用基础样式 (common.css)
   ============================================ */

/* ---- 字体声明 ---- */
@font-face {
    font-family: 'SourceHanSansCN';
    src: url('../fonts/SourceHanSansCN-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'SourceHanSansCN';
    src: url('../fonts/SourceHanSansCN-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'SourceHanSansCN';
    src: url('../fonts/SourceHanSansCN-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'D-DIN';
    src: url('../fonts/D-DIN.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'D-DIN';
    src: url('../fonts/D-DIN-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* ---- CSS Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100px; /* 基准: 1920设计稿, 1rem=100px, 由remfit.js动态调整 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'SourceHanSansCN', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 0.14rem;
    color: #333333;
    background: #F7F7F7;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

button, input {
    font-family: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
}

/* ---- 工具类 ---- */
.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
