/* ======================================= */
/* 手机站基础样式 (base.css) */
/* ======================================= */

/* 1. 重置与盒模型
----------------------------------- */
* {
    /* 让元素的宽度和高度包含内边距和边框，极大方便布局 */
    box-sizing: border-box; /* 移动端布局利器 [citation:2] */
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击时的灰色半透明遮罩 */
}

html, body {
    width: 100%;
    /* 禁止手动调整字体大小，防止在横屏等情况下自动放大 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* 移动端正文基础字号建议设为16px，避免浏览器自动缩放 */
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

/* 2. 排版元素重置 */
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

/* 让图片和视频最大宽度为100%，防止溢出 */
img, video {
    max-width: 100%;
    height: auto;
    vertical-align: middle; /* 消除图片底部的空白间隙 */
}

/* 3. 表单元素统一样式 */
input, textarea, select, button {
    font: inherit; /* 继承body的字体设置 */
    border: none; /* 去掉默认边框，开发者自己定义 */
    outline: none; /* 去掉默认的轮廓线，但需注意无障碍访问 */
    background: none;
}

button {
    cursor: pointer;
}

/* 4. 列表样式 */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 5. 链接样式 */
a {
    text-decoration: none;
    color: inherit; /* 继承父级颜色，方便统一控制 */
}

/* 6. 高频工具类 (utility classes) */
/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 单行文本溢出省略号 */
.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 多行文本溢出省略号 (适用于移动端) */
.ellipsis-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2; /* 显示2行 */
    -webkit-box-orient: vertical;
}

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

@font-face {
    font-family: 'BebasNeue-Regular';
    src: url('../fonts/BebasNeue-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Montserrat-Bold';
    src: url('../fonts/Montserrat-Bold.otf') format('truetype');
}
@font-face {
    font-family: 'Montserrat-Bold Italic';
    src: url('../fonts/Montserrat-BoldItalic.otf') format('truetype');
}
@font-face {
    font-family: 'Montserrat-Light';
    src: url('../fonts/Montserrat-Light.otf') format('truetype');
}
@font-face {
    font-family: 'Montserrat-Medium';
    src: url('../fonts/Montserrat-Medium.otf') format('truetype');
}
@font-face {
    font-family: 'Montserrat-Regular';
    src: url('../fonts/Montserrat-Regular.otf') format('truetype');
}
@font-face {
    font-family: 'Montserrat-SemiBold';
    src: url('../fonts/Montserrat-SemiBold.otf') format('truetype');
}

/* 容器：限制最大宽度，让大屏内容更舒适 */
.container {
    width: 100%;
    max-width: 640px; /* 常见移动端设计宽度 */
    margin: 0 auto;
    padding: 0 12px; /* 左右安全内边距 */
    box-sizing: border-box;
}