199 lines
4.2 KiB
CSS
199 lines
4.2 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #000;
|
|
color: #fff;
|
|
font-family: Arial, sans-serif;
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
cursor: none; /* 隐藏默认光标 */
|
|
}
|
|
|
|
/* 自定义光标 */
|
|
.custom-cursor {
|
|
position: fixed;
|
|
width: auto;
|
|
height: auto;
|
|
pointer-events: none;
|
|
z-index: 9999;
|
|
font-size: 14px;
|
|
color: #fff;
|
|
text-shadow: 0 0 5px rgba(0, 123, 255, 0.7);
|
|
transition: transform 0.1s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: rgba(13, 110, 253, 0.2);
|
|
padding: 3px 8px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
backdrop-filter: blur(2px);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* 左上角固定文字 */
|
|
.corner-text {
|
|
position: fixed;
|
|
top: 15px;
|
|
left: 15px;
|
|
font-size: 16px;
|
|
color: #fff;
|
|
text-shadow: 0 0 5px rgba(0, 123, 255, 0.7);
|
|
z-index: 9998;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
background-color: rgba(13, 110, 253, 0.2);
|
|
padding: 5px 10px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
backdrop-filter: blur(2px);
|
|
transform: translateY(-20px);
|
|
}
|
|
|
|
.corner-text.visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
#particles-js {
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
}
|
|
|
|
/* Adjust card styles for dark theme */
|
|
.card {
|
|
background-color: rgba(30, 30, 30, 0.8);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
cursor: default; /* 在卡片上显示默认指针 */
|
|
}
|
|
|
|
/* 鼠标悬停时的缩放效果 */
|
|
.card:hover {
|
|
transform: scale(1.03);
|
|
box-shadow: 0 8px 16px rgba(0, 123, 255, 0.3);
|
|
}
|
|
|
|
.card-header {
|
|
background-color: rgba(40, 40, 40, 0.8);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.card-body {
|
|
color: #f0f0f0;
|
|
}
|
|
|
|
/* Adjust form elements for dark theme */
|
|
.form-control {
|
|
background-color: rgba(50, 50, 50, 0.8);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
color: #fff;
|
|
cursor: text; /* 在输入框上显示文本指针 */
|
|
}
|
|
|
|
.form-control:focus {
|
|
background-color: rgba(60, 60, 60, 0.8);
|
|
color: #fff;
|
|
border-color: rgba(0, 123, 255, 0.5);
|
|
box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
|
|
}
|
|
|
|
.form-text {
|
|
color: #aaa;
|
|
}
|
|
|
|
/* Adjust buttons for dark theme */
|
|
.btn-primary {
|
|
background-color: #0d6efd;
|
|
border-color: #0a58ca;
|
|
transition: transform 0.2s ease;
|
|
cursor: pointer; /* 在按钮上显示指针 */
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.btn-success {
|
|
background-color: #198754;
|
|
border-color: #146c43;
|
|
transition: transform 0.2s ease;
|
|
cursor: pointer; /* 在按钮上显示指针 */
|
|
}
|
|
|
|
.btn-success:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: #6c757d;
|
|
border-color: #565e64;
|
|
transition: transform 0.2s ease;
|
|
cursor: pointer; /* 在按钮上显示指针 */
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
/* 表单元素的指针样式 */
|
|
input[type="radio"],
|
|
input[type="checkbox"],
|
|
label {
|
|
cursor: pointer; /* 在表单元素上显示指针 */
|
|
}
|
|
|
|
/* Adjust text colors */
|
|
h2, h4, h5 {
|
|
color: #fff;
|
|
}
|
|
|
|
pre {
|
|
color: #f0f0f0;
|
|
background-color: rgba(40, 40, 40, 0.5);
|
|
padding: 15px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
/* Adjust form labels and radio buttons */
|
|
.form-label, .form-check-label {
|
|
color: #f0f0f0;
|
|
}
|
|
|
|
.form-check-input:checked {
|
|
background-color: #0d6efd;
|
|
border-color: #0a58ca;
|
|
}
|
|
|
|
/* Adjust alert messages */
|
|
.alert {
|
|
background-color: rgba(40, 40, 40, 0.8);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
color: #f0f0f0;
|
|
}
|
|
|
|
.alert-success {
|
|
background-color: rgba(25, 135, 84, 0.3);
|
|
border-color: rgba(25, 135, 84, 0.5);
|
|
}
|
|
|
|
.alert-danger {
|
|
background-color: rgba(220, 53, 69, 0.3);
|
|
border-color: rgba(220, 53, 69, 0.5);
|
|
}
|
|
|
|
.alert-warning {
|
|
background-color: rgba(255, 193, 7, 0.3);
|
|
border-color: rgba(255, 193, 7, 0.5);
|
|
color: #f0f0f0;
|
|
}
|
|
|
|
.alert-info {
|
|
background-color: rgba(13, 202, 240, 0.3);
|
|
border-color: rgba(13, 202, 240, 0.5);
|
|
} |