/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* 防止iOS自动调整字体 */
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* 防止横向滚动 */
    width: 100%;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; /* 优化触摸响应 */
    user-select: none; /* 防止文本选择 */
}

input {
    outline: none;
    font-family: inherit;
    -webkit-appearance: none; /* 移除iOS默认样式 */
    border-radius: 0; /* 移除iOS默认圆角 */
}

input:focus {
    outline: none;
}

/* 移动端优化 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        font-size: 14px;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
}

