372 lines
5.7 KiB
CSS
372 lines
5.7 KiB
CSS
/* 新增导航栏样式 */
|
|
.navbar {
|
|
background-color: #2c3e50;
|
|
overflow: hidden;
|
|
display: flex;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.nav-item {
|
|
color: white;
|
|
text-align: center;
|
|
padding: 14px 16px;
|
|
text-decoration: none;
|
|
font-size: 16px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background-color: #1a252f;
|
|
}
|
|
|
|
.nav-item.active {
|
|
background-color: #3498db;
|
|
}
|
|
|
|
.nav-item.right {
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* 修改密码提示样式 */
|
|
.alert {
|
|
padding: 10px 15px;
|
|
margin: 10px 0;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.alert-error {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
border: 1px solid #f5c6cb;
|
|
}
|
|
|
|
.alert-success {
|
|
background-color: #d4edda;
|
|
color: #155724;
|
|
border: 1px solid #c3e6cb;
|
|
}
|
|
|
|
/* 其他样式保持不变 */
|
|
body {
|
|
font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #f5f5f5;
|
|
color: #333;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 20px auto;
|
|
padding: 20px;
|
|
background-color: white;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.login-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.login-box {
|
|
background-color: white;
|
|
padding: 30px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
|
|
width: 400px;
|
|
}
|
|
|
|
.login-box h1 {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.login-footer {
|
|
margin-top: 20px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
/* 表单样式 */
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* 按钮样式 */
|
|
button, .btn {
|
|
padding: 10px 15px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: background-color 0.3s;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: #3498db;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #2980b9;
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: #e74c3c;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: #c0392b;
|
|
}
|
|
|
|
.btn-success {
|
|
background-color: #2ecc71;
|
|
color: white;
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background-color: #27ae60;
|
|
}
|
|
|
|
/* 表格样式 */
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
th, td {
|
|
padding: 12px 15px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
th {
|
|
background-color: #f8f9fa;
|
|
font-weight: 600;
|
|
}
|
|
|
|
tr:hover {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.password-cell {
|
|
position: relative;
|
|
}
|
|
|
|
.password-placeholder {
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.btn-show-password {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0 5px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* 开关样式 */
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 50px;
|
|
height: 26px;
|
|
}
|
|
|
|
.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: .4s;
|
|
border-radius: 34px;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 20px;
|
|
width: 20px;
|
|
left: 3px;
|
|
bottom: 3px;
|
|
background-color: white;
|
|
transition: .4s;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: #2ecc71;
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(24px);
|
|
}
|
|
|
|
/* 模态框样式 */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
width: 400px;
|
|
padding: 25px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
margin-bottom: 20px;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* 仪表盘样式 */
|
|
.dashboard {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin: 30px 0;
|
|
}
|
|
|
|
.dashboard-card {
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
text-align: center;
|
|
}
|
|
|
|
.dashboard-card h3 {
|
|
margin-top: 0;
|
|
color: #555;
|
|
}
|
|
|
|
.stat {
|
|
font-size: 36px;
|
|
font-weight: bold;
|
|
margin: 10px 0;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
/* 代理使用示例 */
|
|
.proxy-usage {
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.proxy-usage h2 {
|
|
border-bottom: 1px solid #eee;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.usage-example {
|
|
background-color: #f8f9fa;
|
|
border-radius: 6px;
|
|
padding: 15px;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.usage-example h3 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
code {
|
|
background-color: #eee;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
/* 头部操作按钮 */
|
|
.header-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* 设置部分 */
|
|
.settings-section {
|
|
margin-bottom: 40px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.settings-section h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.login-box {
|
|
width: 90%;
|
|
padding: 20px;
|
|
}
|
|
|
|
table {
|
|
font-size: 14px;
|
|
}
|
|
|
|
th, td {
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.header-actions {
|
|
flex-direction: column;
|
|
}
|
|
} |