AntiScamAI/web/settings.css

99 lines
1.7 KiB
CSS

body {
font-family: Arial, sans-serif;
background-color: #d4d7ff;
color: #ffffff;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
/* 容器样式 */
.container {
background-color: #697af9;
border-radius: 15px;
padding: 20px;
width: 90%;
max-width: 400px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
/* 标题样式 */
h1 {
text-align: center;
margin-bottom: 20px;
font-size: 24px;
color: #ffffff;
}
/* 功能项样式 */
.setting-item {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
/* 按钮样式 */
.btn {
background-color: #0d47a1; /* 深蓝色按钮 */
color: #ffffff;
border: none;
padding: 10px 15px;
border-radius: 25px; /* 圆角按钮 */
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #003380; /* 悬停时更深的蓝色 */
}
/* 开关按钮样式 */
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: 0.4s;
border-radius: 24px;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: 0.4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #2196f3; /* 蓝色开关 */
}
input:checked + .slider:before {
transform: translateX(26px);
}