/* 响应式字体设置 - 解决高分辨率设备字体过小问题 */

/* 基础字体设置 */
html {
    font-size: 16px; /* 基准字体大小 */
}

body {
    font-size: 1rem; /* 使用相对单位 */
    font-family: "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
}

/* 高分辨率设备适配 */
@media screen and (min-width: 1920px) {
    html {
        font-size: 18px; /* 1920px以上增大基准字体 */
    }
}

@media screen and (min-width: 2560px) {
    html {
        font-size: 20px; /* 2560px以上(4K显示器)进一步增大 */
    }
}

@media screen and (min-width: 3840px) {
    html {
        font-size: 22px; /* 4K及以上超高分辨率 */
    }
}

/* 高DPI设备适配 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    html {
        font-size: 18px;
    }
}

@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
    html {
        font-size: 20px;
    }
}

/* 常用元素字体大小调整 */
h1 { font-size: 1.875rem; } /* 30px */
h2 { font-size: 1.5rem; }   /* 24px */
h3 { font-size: 1.25rem; }  /* 20px */
h4 { font-size: 1.125rem; } /* 18px */
h5 { font-size: 1rem; }     /* 16px */
h6 { font-size: 0.875rem; } /* 14px */

/* 表单元素字体调整 */
input, select, textarea, button {
    font-size: 0.875rem; /* 14px */
}

/* 表格字体调整 */
table, td, th {
    font-size: 0.875rem; /* 14px */
}

/* 菜单字体调整 */
.ztree * {
    font-size: 0.875rem !important; /* 覆盖原有的14px */
}

.ztree li a.curSelectedNode {
    font-size: 1rem !important; /* 选中状态稍大一些 */
}

/* 错误页面字体调整 */
.error-page {
    font-size: 0.875rem;
}

.error-page .error-title {
    font-size: 1.25rem;
}

/* 登录页面字体调整 */
.sign {
    font-size: 0.875rem;
}

/* 内容区域字体调整 */
.edit-link {
    font-size: 0.875rem !important;
}

.span-label-badge {
    font-size: 0.875rem;
}