<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<link rel="icon" type="image/svg+xml" href="./1.png" />

		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> -->
		<!-- 	<script src="http://api.tianditu.gov.cn/api?v=4.0&tk=f0c0c7169979846eac732e06889baa82" type="text/javascript"></script> -->
		<title>Vite + Vue</title>


		<script type="module" crossorigin src="./assets/index-CIlsWdYu.js"></script>
		<link rel="modulepreload" crossorigin href="./assets/lodash-CBS479-x.js">
		<link rel="modulepreload" crossorigin href="./assets/.pnpm-BV5e9UO2.js">
		<link rel="modulepreload" crossorigin href="./assets/vue-router-Cy27_tJ0.js">
		<link rel="modulepreload" crossorigin href="./assets/pinia-Wgmbjwgw.js">
		<link rel="modulepreload" crossorigin href="./assets/element-plus-DE1BTg1W.js">
		<link rel="stylesheet" crossorigin href="./assets/.pnpm-BxS5GBnh.css">
		<link rel="stylesheet" crossorigin href="./assets/element-plus-D7RT2Kep.css">
		<link rel="stylesheet" crossorigin href="./assets/index-DkbQJ6da.css">
	</head>
	<body>
		<div id="app"></div>
	</body>
	<script>
		// 根字体大小计算函数
		// function setRootFontSize() {
		//     const windowWidth = window.innerWidth;
		//     let baseWidth;


		//     if (windowWidth <= 768) {

		//         baseWidth = 750;
		//     } else if (windowWidth <= 1024) {

		//         baseWidth = 1024;
		//     } else if (windowWidth <= 1440) {

		//         baseWidth = 1440;
		//     } else {

		//         baseWidth = 1920;
		//     }

		//     const screenWidth = Math.min(windowWidth, baseWidth);
		//     const fontSize = (screenWidth / baseWidth) * 100;

		//     document.documentElement.style.fontSize = fontSize + "px";
		// }
		function setRootFontSize() {
			const designWidth = 1920; // 唯一设计稿基准
			const currentWidth = window.innerWidth;
			const fontSize = (currentWidth / designWidth) * 100; // 按1920比例缩放

			document.documentElement.style.fontSize = fontSize + "px";
		}

		setRootFontSize();


		let resizeTimer;
		window.addEventListener('resize', () => {
			clearTimeout(resizeTimer);
			resizeTimer = setTimeout(() => {
				setRootFontSize();
			}, 200);
		});

		// function setRootFontSize() {
		//     const windowWidth = window.innerWidth;
		//     let baseWidth;

		//       // 根据不同的屏幕尺寸设置基准宽度
		//              if (windowWidth <= 768) {
		//                  // 移动设备（手机、平板竖屏等）基准宽度
		//                  baseWidth = 750;
		//              } else if (windowWidth <= 1440) {
		//                  // 笔记本电脑基准宽度
		//                  baseWidth = 1920;
		//              } else if (windowWidth <= 1920) {
		//                  // 普通桌面显示器基准宽度
		//                  baseWidth = 1920;
		//              } else {
		//                  // 大屏幕显示器基准宽度
		//                  baseWidth = windowWidth;
		//              }
		//    // 根据不同的屏幕尺寸设置基准宽度
		//     // if (windowWidth <= 768) {
		//     //     baseWidth = 750; // 移动设备基准宽度
		//     // } else {
		//     //     baseWidth = 1920; // 普通桌面和大屏幕基准宽度
		//     // }
		//     const screenWidth = Math.min(windowWidth, baseWidth);
		//     const fontSize = (screenWidth / baseWidth) * 192;
		// 	console.log(windowWidth,'这是视口',baseWidth)
		//     document.documentElement.style.fontSize = fontSize + "px";
		// }

		// // 初始设置
		// setRootFontSize();

		// // 窗口缩放时重新计算（添加防抖优化性能）
		// window.addEventListener('resize', () => {
		//     setRootFontSize()
		// });

		// let width = Math.min(window.innerWidth, 1920)
		// let fontsize = (width / 1920) * 100
		// console.log(width,'这是快读')
		// document.documentElement.style.fontSize = fontsize + "px"
	</script>
    <!-- Piwik -->
    <script type="text/javascript">
        var _paq = _paq || [];
        /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
        _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function() {
            var u="//analytics.escience.org.cn/";
            _paq.push(['setTrackerUrl', u+'piwik.php']);
            _paq.push(['setSiteId', '34']);
            var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
            g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
        })();
    </script>
    <!-- End Piwik Code -->
</html>
