/* 通用初始化CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 统一盒模型 */
}

html,
body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* 手机端（≤768px） */
@media (max-width: 768px) {
    html {
        font-size: calc(12px + (14px - 12px) * (100vw - 320px) / (768px - 320px));
    }
}

/* 平板端（769-1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: calc(14px + (16px - 12px) * (100vw - 768px) / (1024px - 768px));
    }
}

/* 桌面端（≥1025px） */
@media (min-width: 1025px) {
    html {
        font-size: 16px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.5rem;
    font-weight: normal;
}

ul,
ol {
    padding-left: 1.5rem;
}

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

img {
    max-width: 100%;
    height: auto;
}

input,
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 4px;
}

button {
    cursor: pointer;
    outline: none;
}

:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* 防止内容溢出 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 响应式基础 */
/* @media (max-width: 768px) {

    html,
    body {
        font-size: 0.9rem;
    }
} */