2025-05-27 15:46:31 +08:00

618 lines
12 KiB
CSS
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
align-items: center;
height: 100vh;
width: 100vw;
margin: 0;
}
.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: #ffffffcc;
position: absolute;
left: 10px;
padding-left: 20px;
}
.logo img {
height: 45px;
width: 45px;
}
.ir-btn {
position: absolute;
left: 95px;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
padding: 6px 14px;
border: 1px solid #fff;
color: #fff;
background-color: transparent;
cursor: pointer;
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-ms-border-radius: 10px;
-o-border-radius: 10px;
}
.ir-btn:active {
background-color: rgba(255, 255, 255, 0.3);
}
.ir-icon {
width: 15px;
height: 15px;
}
.ir-text {
color: #fff;
margin-left: 8px;
font-size: 10px;
}
.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;
-webkit-transform: translateX(-50%);
-moz-transform: translateX(-50%);
-ms-transform: translateX(-50%);
-o-transform: translateX(-50%);
}
.weekday {
/* grid-row: 1 / 2;
grid-column: 1 / 2; */
font-size: 16px;
font-weight: bold;
}
.date {
/* grid-row: 2 / 3;
grid-column: 1 / 2; */
font-size: 12px;
font-weight: bold;
}
.time {
/* grid-row: 1 / 3;
grid-column: 2 / 3; */
font-size: 32px;
font-weight: bold;
margin-left: 10px;
}
.right-section {
display: flex;
align-items: center;
position: absolute;
right: 10px;
padding-right: 20px;
}
.right-section .language-select-box {
margin-right: 20px;
}
.right-section .language-select-box select {
border: 1px solid #fff;
height: 34px;
display: flex;
padding: 0 30px 0 10px;
color: #fff;
border-radius: 10px;
background-color: transparent;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-size: 20px 20px;
background-image: url(../images/home/arrow-down.png);
background-repeat: no-repeat;
background-position: right 6px center;
outline: none;
}
.right-section .language-select-box select:focus,
.right-section .language-select-box select:focus-visible {
border: 1px solid #fff;
}
.right-section .language-select-box select option {
color: #333;
}
.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;
}
.container {
display: grid;
grid-template-columns: 0.85fr 1fr 1fr;
/* 定义了3列每列的宽度相同 */
grid-template-rows: repeat(2, 1fr);
/* 定义了2行每行的高度相同 */
gap: 15px;
/* 定义了网格项之间的间隙为10像素 */
width: 85%;
/* 容器的宽度为其父元素宽度的90% */
height: 65%;
transform: translateY(8%);
}
.tile {
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 18px;
text-align: center;
backdrop-filter: blur(8px);
background: linear-gradient(
to left top,
rgba(255, 255, 255, 0.4),
rgba(255, 255, 255, 0.2)
);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
/* 添加阴影 */
transition: transform 0.3s ease;
}
.tile:hover {
transform: scale(1.02);
}
.health {
grid-row: span 2;
background: linear-gradient(
to right bottom,
rgba(0, 170, 255, 1),
rgba(0, 136, 204, 0.5)
);
position: relative;
/* 为子元素定位做准备 */
display: flex;
flex-direction: column;
justify-content: center;
/* 垂直居中 */
align-items: center;
/* 水平居中 */
padding: 20px;
/* 添加一些内边距,保证图标与边框的距离一致 */
}
.health-icon {
width: 90%;
/* 图标大小调整为容器的 60% */
opacity: 0.5;
/* 设置图标透明度为 0.5 */
margin-top: 35%;
}
.health span {
position: absolute;
/* 绝对定位文本 */
top: 5%;
/* 距顶部10px */
left: 8%;
/* 距左侧10px */
font-size: 3.2vw;
/* 使用视口宽度的百分比调整字体大小 */
font-weight: bold;
color: white;
/* 文字颜色 */
z-index: 2;
/* 确保文本位于图标之上 */
text-align: left;
}
.music {
background: linear-gradient(
to right bottom,
rgb(212, 96, 241),
rgba(145, 66, 197, 0.5)
);
position: relative;
/* 为子元素定位做准备 */
display: flex;
flex-direction: column;
justify-content: center;
/* 垂直居中 */
align-items: center;
/* 水平居中 */
padding: 20px;
/* 添加一些内边距,保证图标与边框的距离一致 */
}
.music-icon {
width: 48%;
/* 图标大小调整为容器的 60% */
opacity: 0.5;
/* 设置图标透明度为 0.5 */
margin-top: 2.5%;
margin-left: 48%;
}
.music span {
position: absolute;
/* 绝对定位文本 */
top: 8%;
/* 距顶部10px */
left: 8%;
/* 距左侧10px */
font-size: 2.5vw;
/* 使用视口宽度的百分比调整字体大小 */
font-weight: bold;
color: white;
/* 文字颜色 */
z-index: 2;
/* 确保文本位于图标之上 */
}
.settings {
background: linear-gradient(
to right bottom,
rgba(255, 175, 175, 1),
rgba(255, 153, 153, 0.5)
);
position: relative;
/* 为子元素定位做准备 */
display: flex;
flex-direction: column;
justify-content: center;
/* 垂直居中 */
align-items: center;
/* 水平居中 */
padding: 20px;
/* 添加一些内边距,保证图标与边框的距离一致 */
}
.settings-icon {
width: 43%;
/* 图标大小调整为容器的 60% */
opacity: 0.5;
/* 设置图标透明度为 0.5 */
/* margin-top: 15%; */
margin-left: 48%;
}
.settings span {
position: absolute;
/* 绝对定位文本 */
top: 8%;
/* 距顶部10px */
left: 8%;
/* 距左侧10px */
font-size: 2.5vw;
/* 使用视口宽度的百分比调整字体大小 */
font-weight: bold;
color: white;
/* 文字颜色 */
z-index: 2;
/* 确保文本位于图标之上 */
}
.learning {
background: linear-gradient(
to right bottom,
rgb(31, 231, 64),
rgba(52, 206, 52, 0.74)
);
position: relative;
/* 为子元素定位做准备 */
display: flex;
flex-direction: column;
justify-content: center;
/* 垂直居中 */
align-items: center;
/* 水平居中 */
padding: 20px;
/* 添加一些内边距,保证图标与边框的距离一致 */
}
.learning-icon {
width: 45%;
/* 图标大小调整为容器的 60% */
opacity: 0.5;
/* 设置图标透明度为 0.5 */
/* margin-top: 15%; */
margin-left: 48%;
}
.learning span {
position: absolute;
/* 绝对定位文本 */
top: 8%;
/* 距顶部10px */
left: 8%;
/* 距左侧10px */
font-size: 2.5vw;
/* 使用视口宽度的百分比调整字体大小 */
font-weight: bold;
color: white;
/* 文字颜色 */
z-index: 2;
/* 确保文本位于图标之上 */
text-align: left;
}
.help {
background: linear-gradient(
to right bottom,
rgb(255, 212, 19),
rgba(211, 179, 17, 0.74)
);
position: relative;
/* 为子元素定位做准备 */
display: flex;
flex-direction: column;
justify-content: center;
/* 垂直居中 */
align-items: center;
/* 水平居中 */
padding: 20px;
/* 添加一些内边距,保证图标与边框的距离一致 */
}
.help-icon {
width: 45%;
/* 图标大小调整为容器的 60% */
opacity: 0.5;
/* 设置图标透明度为 0.5 */
/* margin-top: 15%; */
margin-left: 48%;
}
.help span {
position: absolute;
/* 绝对定位文本 */
top: 8%;
/* 距顶部10px */
left: 8%;
/* 距左侧10px */
font-size: 2.5vw;
/* 使用视口宽度的百分比调整字体大小 */
font-weight: bold;
color: white;
/* 文字颜色 */
z-index: 2;
/* 确保文本位于图标之上 */
}
/* Popup 的背景遮罩 */
.popup {
display: none;
/* 初始状态隐藏 */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.3);
z-index: 1000;
justify-content: center;
align-items: center;
}
/* Popup 的内容区域 */
.iframe-popup-content {
position: relative;
width: 30%;
max-width: 500px;
height: 80%;
background-color: rgba(255, 255, 255, 0.7);
/* 背景透明度 */
backdrop-filter: blur(5px);
/* 背景模糊效果 */
padding: 5px;
border-radius: 10px;
box-shadow: 0px 0px 24px rgba(255, 255, 255, 0.65);
overflow: hidden;
/* 防止内容溢出 */
}
/* iframe 样式,保持隐藏但预加载 */
.iframe-popup-content iframe {
width: 100%;
height: 100%;
border: none;
visibility: hidden;
/* 初始隐藏 iframe 但保持预加载 */
}
/* 关闭按钮样式 */
.close {
position: absolute;
top: 15px;
right: 5px;
font-size: 24px;
cursor: pointer;
}
/* 弹窗的背景遮罩 */
.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-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)
);
/* 悬停时加深渐变 */
}