/* ============================================
   CSS Reset - 清除浏览器默认样式（完整版）
   ============================================ */

/* 1. 清除内外边距 + 盒模型统一 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: normal;
    letter-spacing: 0.03rem;
}

/* 2. 解决 100vh 在移动端的问题，禁止文字放大 */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    font-size: 14px; /* 👈 加这一行，门户最常用 */
}

/* 3. 设置基础字体、背景、行高、颜色 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1;
    background-color: #fff;
    color: #333;
    min-height: 100vh;
}

/* 4. 清除列表默认样式 */
ul,
ol {
    list-style: none;
}

/* 5. 清除链接默认样式 */
a {
    text-decoration: none;
    color: inherit;
}

/* 6. 按钮、输入、表单元素统一重置 */
button,
input,
textarea,
select {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* 7. 按钮鼠标手势 */
button {
    cursor: pointer;
}

/* 8. 图片样式重置（去底部空白、响应式） */
img {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
    border-style: none;
}

/* 9. 表格样式重置 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 11. 引用标签样式重置 */
blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
}

/* 12. 水平线样式重置 */
hr {
    border: none;
    border-top: 1px solid #eee;
}

/* 13. 表单输入框基础样式（实用默认样式） */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
textarea {
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #999;
    outline: none;
}

/* 14. 清除 iframe、canvas 默认边距 */
iframe,
canvas {
    border: none;
    display: block;
}

/* 15. 清除 mark 标签默认背景 */
mark {
    background-color: transparent;
    color: inherit;
}

/* 16. 清除 pre、code 字体样式 */
pre,
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* 17. 清除 address 斜体 */
address {
    font-style: normal;
}

/* 18. 滚动条美化（兼容 Chrome / Edge） */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 19. 清除 Firefox 滚动条默认样式 */
html {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* 20. 全局平滑滚动（可选） */
html {
    scroll-behavior: smooth;
}