/* =======================
   1. Reset / Normalize
======================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    font: inherit;
}

/* 全局 box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* =======================
   2. 引入 SF Pro Web 字体
======================= */
@font-face {
    font-family: 'SanFrancisco';
    src: url('/fonts/SF-Pro-Display-Regular.woff2') format('woff2'),
         url('/fonts/SF-Pro-Display-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SanFrancisco';
    src: url('/fonts/SF-Pro-Display-Bold.woff2') format('woff2'),
         url('/fonts/SF-Pro-Display-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* =======================
   3. 统一字体与基础样式
======================= */
html {
    font-size: 16px; /* 可按设计稿调整 */
}

body {
    font-family: 'SanFrancisco', -apple-system, "San Francisco", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%; /* 防止 iOS 自动缩放 */
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* 去掉点击高亮 */
    background-color: #fff; /* 可自定义 */
    color: #333; /* 可自定义 */
}

/* =======================
   4. 常用元素优化
======================= */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* =======================
   5. 移动端适配
======================= */
body, html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

input, textarea, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* =======================
   6. flex 默认优化
======================= */
.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}