* { margin: 0; padding: 0; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -webkit-tap-highlight-color: transparent; } body { font-family: Arial, sans-serif; /* background-color: #4a0e8f; */ background-image: url('../images/background.jpg'); /* Change 'path/to/your/background.jpg' to the path of your actual image */ background-size: cover; /* Cover the entire page */ background-position: center; /* Center the background image */ background-attachment: fixed; /* Optional: Fix the background image during scrolling */ display: flex; justify-content: center; /* width: 100vw; */ margin: 0; padding: 80px 0 20px; } .top-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; position: fixed; top: 0; width: 100%; height: 40px; z-index: 1000; background-color: rgba(255, 255, 255, 0.288); backdrop-filter: blur(5px); /* box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); */ /* 添加阴影 */ } .logo { display: flex; align-items: center; cursor: pointer; color: #0f0c0ccc; position: absolute; left: 10px; padding-left: 10px; } .logo img { width: 32px; margin-left: 20px; } .logo span { margin-left: 10px; color: #ffffff; } .date-time-container { /* display: grid; grid-template-rows: 1fr 1fr; grid-template-columns: 1fr 2fr; */ font-size: 16px; color: white; text-align: center; position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; } .weekday { text-align: center; /* grid-row: 1 / 2; grid-column: 1 / 2; */ font-size: 16px; font-weight: bold; } .date { text-align: center; /* grid-row: 2 / 3; grid-column: 1 / 2; */ font-size: 12px; font-weight: bold; } .time { margin-left: 10px; text-align: center; /* grid-row: 1 / 3; grid-column: 2 / 3; */ font-size: 32px; /* 更大的字体大小 */ font-weight: bold; } .right-section { display: flex; align-items: center; position: absolute; right: 10px; padding-right: 20px; } .status { display: flex; align-items: center; cursor: pointer; margin-right: 15px; } .status span { margin-left: 10px; color: #ffffff; } .status img { width: 32px; } .shutdown { display: flex; align-items: center; cursor: pointer; } .shutdown img { width: 36px; opacity: 0.75; } /* 弹窗的背景遮罩 */ .popup-modal { display: none; /* 默认隐藏 */ position: fixed; z-index: 1000; /* 确保弹窗在最顶层 */ left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); /* 背景透明 */ justify-content: center; align-items: center; } /* 弹窗的内容 */ .popup-content { background-color: rgba(255, 255, 255, 0.7); /* 背景透明度 */ backdrop-filter: blur(5px); /* 背景模糊效果 */ padding: 20px; border-radius: 15px; text-align: center; width: 300px; box-shadow: 0px 0px 24px rgba(255, 255, 255, 0.65); /* 与其他元素一致的阴影效果 */ } #popup-message { padding: 20px 0; } /* 按钮样式 */ #popup-buttons button { margin: 5px; padding: 10px 25px; border: none; border-radius: 10px; background: linear-gradient(to right bottom, rgb(212, 96, 241), rgba(145, 66, 197, 0.5)); /* 紫色渐变 */ color: white; font-size: 16px; cursor: pointer; transition: background 0.3s ease; } #popup-buttons button:active { background: linear-gradient(to right bottom, rgba(145, 66, 197, 1), rgb(212, 96, 241)); /* 悬停时加深渐变 */ } /* 弹窗的背景遮罩 */ .pwd-modal { /* 默认隐藏 */ display: none; position: fixed; z-index: 1000; /* 确保弹窗在最顶层 */ left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); /* 背景透明 */ justify-content: center; align-items: center; } .modal-content { background-color: rgba(255, 255, 255, 0.7); /* 背景透明度 */ backdrop-filter: blur(5px); /* 背景模糊效果 */ padding: 20px; border-radius: 15px; text-align: center; width: 300px; box-shadow: 0px 0px 24px rgba(255, 255, 255, 0.65); /* 与其他元素一致的阴影效果 */ } .modal-content #pwd-input { padding: 6px 10px; border-radius: 10px; border: 1px solid #dedede; background-color: #f5f5f5; outline: none; margin: 20px 0; } /* 按钮样式 */ .model-btn button { margin: 5px; padding: 10px 25px; border: none; border-radius: 10px; background: linear-gradient(to right bottom, rgb(212, 96, 241), rgba(145, 66, 197, 0.5)); /* 紫色渐变 */ color: white; font-size: 16px; cursor: pointer; transition: background 0.3s ease; } .model-btn button:active { background: linear-gradient(to right bottom, rgba(145, 66, 197, 1), rgb(212, 96, 241)); /* 悬停时加深渐变 */ }