/* assets/css/base.css */
/* CSS重置和浏览器兼容性修复 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* 防止iOS设备字体缩放 */
    -webkit-font-smoothing: antialiased; /* 字体抗锯齿 */
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden; /* 防止水平滚动条 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
}

/* 修复Flexbox布局在旧版浏览器中的问题 */
.flex-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* 修复IE10/11的Flexbox bug */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .flex-container {
        display: block;
    }
}

/* 确保页脚在底部 */
.main-content {
    flex: 1 0 auto;
    width: 100%;
}

/* 修复移动端100vh问题 */
@media (max-width: 768px) {
    .mobile-full-height {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}