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

568 lines
11 KiB
CSS
Executable File

* {
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-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)
);
/* 悬停时加深渐变 */
}
#popup-message {
padding: 20px 0;
}
/* 同步用户数据弹窗特定样式 */
#sync-data-modal .popup-content {
width: 400px;
}
#sync-data-modal .version-selector {
margin-bottom: 20px;
}
#sync-data-modal select {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
margin-bottom: 20px;
}
#sync-data-modal #popup-buttons {
display: flex;
justify-content: center;
gap: 20px;
}
#sync-confirm-btn, #sync-cancel-btn {
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;
}
#sync-confirm-btn:active, #sync-cancel-btn:active {
background: linear-gradient(to right bottom, rgba(145, 66, 197, 1), rgb(212, 96, 241));
}
.container {
width: 90%;
}
#settings-container {
display: flex;
flex-direction: column;
gap: 20px;
padding: 20px;
background: rgba(255, 255, 255, 0.1);
border-radius: 15px;
box-shadow: 0 0 24px rgba(145, 66, 197, 0.5);
width: 95%;
/* 模仿 iPad 的宽度设置 */
margin-left: auto;
margin-right: auto;
font-size: 14px;
}
/* 每个设置模块的样式 */
.setting-section {
background: rgba(255, 255, 255, 0.2);
border-radius: 10px;
padding: 15px;
box-shadow: 0 0 10px rgba(145, 66, 197, 0.3);
transition: all 0.3s ease;
}
/* 设置标题样式 */
.setting-section .title {
font-size: 18px;
color: #fff;
border-bottom: 1px solid rgba(145, 66, 197, 0.5);
padding-bottom: 8px;
margin-bottom: 10px;
display: flex;
align-items: center;
/* justify-content: space-between; */
}
.setting-section .title .right {
margin-left: 20px;
}
.setting-section .title .right .btn {
border-radius: 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-ms-border-radius: 8px;
-o-border-radius: 8px;
padding: 6px 20px;
display: block;
background-color: rgba(255, 255, 255, 0.7);
box-shadow: 0px 0px 24px rgba(255, 255, 255, 0.65);
-webkit-user-select: none;
/* Chrome, Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* Internet Explorer/Edge */
user-select: none;
/* Standard */
color: #333;
font-size: 14px;
}
.setting-section .title .right .btn:active {
background: linear-gradient(
to right bottom,
rgb(145, 66, 197),
rgb(212, 96, 241)
);
color: #fff;
}
.common-panel {
display: flex;
align-items: center;
}
.common-panel .common-panel-btn {
border-radius: 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-ms-border-radius: 8px;
-o-border-radius: 8px;
padding: 6px 20px;
display: block !important;
background-color: rgba(255, 255, 255, 0.7);
box-shadow: 0px 0px 24px rgba(255, 255, 255, 0.65);
-webkit-user-select: none;
/* Chrome, Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* Internet Explorer/Edge */
user-select: none;
/* Standard */
}
.common-panel #robot-demo-btn {
margin-left: 10px;
}
.common-panel .common-panel-btn:not(:last-child) {
margin-right: 10px;
}
.common-panel .common-panel-btn:active {
background: linear-gradient(
to right bottom,
rgba(145, 66, 197, 1),
rgb(212, 96, 241)
);
color: #fff;
}
/* 下拉菜单样式 */
.version-selector {
margin: 10px 0;
}
.version-selector label {
display: block;
font-size: 16px;
color: white;
margin-bottom: 5px;
}
/* 下拉菜单样式 */
.version-selector select {
width: 100%;
padding: 10px;
border-radius: 8px;
border: 1px solid rgba(145, 66, 197, 0.5);
background: rgba(255, 255, 255, 0.15);
color: white;
/* 字体颜色 */
font-size: 14px;
appearance: none;
/* 去掉默认样式 */
-webkit-appearance: none;
-moz-appearance: none;
transition: border 0.3s ease, background-color 0.3s ease;
position: relative;
z-index: 1;
}
/* 悬停时边框颜色和背景变化 */
.version-selector select:hover {
border-color: rgba(145, 66, 197, 1);
background-color: rgba(255, 255, 255, 0.2);
/* 悬停时背景颜色 */
}
/* 添加圆角效果 */
.version-selector select option {
background-color: rgba(255, 255, 255, 1);
/* 选项背景颜色 */
color: black;
/* 选项字体颜色 */
border-radius: 8px;
/* 选项的圆角 */
padding: 5px;
}
.current-version {
display: flex;
align-items: center;
}
/* 当前版本的文字样式 */
.current-version p {
font-size: 16px;
color: white;
margin: 10px 0;
}
.current-version span {
margin-left: 10px;
font-weight: bold;
color: #f5c6ff;
}
/* 按钮样式 */
.update-section button {
padding: 10px 20px;
margin-top: 10px;
border: none;
border-radius: 8px;
background: linear-gradient(
to right,
rgb(212, 96, 241),
rgba(145, 66, 197, 0.5)
);
color: white;
font-size: 14px;
cursor: pointer;
transition: background 0.3s ease;
}
.update-section button:hover {
background: linear-gradient(
to right,
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)
);
/* 悬停时加深渐变 */
}
#popup-message {
padding: 20px 0;
}
/* 相机偏置调整样式 */
.offset-control {
display: flex;
align-items: center;
margin-left: 10px;
}
.offset-btn {
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
font-size: 18px;
font-weight: bold;
padding: 0 !important;
margin: 0 10px !important;
cursor: pointer;
}
#offset-x-value,
#offset-y-value,
#offset-z-value {
width: 40px;
text-align: center;
font-weight: bold;
color: #f5c6ff;
margin: 0 10px;
}
#save-offset-btn {
background: linear-gradient(
to right bottom,
rgb(212, 96, 241),
rgba(145, 66, 197, 0.5)
);
color: white;
padding: 8px 25px !important;
margin-right: 10px !important;
}
#cancel-offset-btn {
background-color: #f5f5f5;
color: #333;
padding: 8px 25px !important;
}