/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 高分辨率屏幕适配 - Edge浏览器特别处理 */
@media screen and (min-width: 1441px) {
    html {
        zoom: 1; /* 确保Edge浏览器基准正常 */
    }
    
    /* 特定针对Edge浏览器 */
    @supports (-ms-ime-align:auto) {
        html {
            -ms-text-size-adjust: 100%;
        }
    }
}

a {
    text-decoration: none;
    color: #1A73E8;
    transition: color 0.2s ease;
}

a:hover, a:active {
    color: #0d47a1;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    outline: none;
    border: none;
    background-color: transparent;
    -webkit-appearance: none;
    border-radius: 0;
}

/* 常用工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-bold {
    font-weight: bold;
}

/* 清除浮动 */
.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

/* 修复iOS中输入框自动放大的问题 */
@media screen and (-webkit-min-device-pixel-ratio: 0) { 
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* 修复高DPI屏幕上的文本渲染 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
} 