487 lines
7.8 KiB
CSS
487 lines
7.8 KiB
CSS
/*s tyle.css */
|
|
/* 导航栏样式 */
|
|
.main-nav {
|
|
display: flex;
|
|
background-color: #2c3e50;
|
|
border-radius: 8px;
|
|
padding: 0 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.nav-link {
|
|
color: white;
|
|
text-decoration: none;
|
|
padding: 15px 20px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
background-color: #34495e;
|
|
}
|
|
|
|
.nav-link.active {
|
|
background-color: #4285f4;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.nav-logout {
|
|
margin-left: auto;
|
|
align-self: center;
|
|
padding: 8px 16px;
|
|
}
|
|
|
|
/* 内容区域 */
|
|
.content {
|
|
min-height: 60vh;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
padding: 30px;
|
|
background-color: #f8f9fa;
|
|
color: #333;
|
|
}
|
|
|
|
.container {
|
|
background-color: white;
|
|
border-radius: 10px;
|
|
padding: 30px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
color: #2c3e50;
|
|
margin-bottom: 30px;
|
|
font-weight: 600;
|
|
font-size: 28px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 25px 0;
|
|
background-color: white;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
th, td {
|
|
padding: 15px 20px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
|
|
th {
|
|
background-color: #f8f9fa;
|
|
font-weight: 600;
|
|
color: #495057;
|
|
}
|
|
|
|
tr:hover {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
button {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: #4285f4;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #3367d6;
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: #ea4335;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: #d33426;
|
|
}
|
|
|
|
.btn-success {
|
|
background-color: #34a853;
|
|
color: white;
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background-color: #2d9248;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
margin-top: 40px;
|
|
color: #6c757d;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* 模态框样式 */
|
|
.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;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 500;
|
|
color: #495057;
|
|
}
|
|
|
|
.form-group input {
|
|
width: 94%;
|
|
padding: 10px;
|
|
border: 1px solid #ced4da;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* 开关样式 */
|
|
.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: #34a853;
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(24px);
|
|
}
|
|
|
|
/* 在现有CSS文件末尾添加以下内容 */
|
|
|
|
/* 首页专用样式 */
|
|
.dashboard {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
gap: 20px;
|
|
margin: 20px 0;
|
|
}
|
|
.home-header h1 {
|
|
font-size: 24px;
|
|
margin-bottom: 15px;
|
|
}
|
|
.dashboard-card {
|
|
flex: 1;
|
|
background: linear-gradient(135deg, #4285f4, #34a853);
|
|
color: white;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
text-align: center;
|
|
transition: transform 0.3s, box-shadow 0.3s;
|
|
padding: 5px;
|
|
}
|
|
|
|
.dashboard-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.dashboard-card h3 {
|
|
margin-top: 0;
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.stat {
|
|
font-size: 24px;
|
|
margin: 5px 0 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.proxy-info {
|
|
background-color: #f8f9fa;
|
|
border-radius: 10px;
|
|
padding: 10px;
|
|
margin: 20px 0;
|
|
border-left: 4px solid #4285f4;
|
|
}
|
|
|
|
.proxy-info h2 {
|
|
margin-top: 0;
|
|
color: #2c3e50;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.proxy-info p {
|
|
margin: 15px 0;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.proxy-info code {
|
|
background-color: #e9ecef;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
color: #d63384;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.dashboard {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.dashboard-card {
|
|
margin-bottom: 15px;
|
|
}
|
|
}
|
|
|
|
/* 添加以下新样式 */
|
|
|
|
.home-header {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.home-header .subtitle {
|
|
color: #6c757d;
|
|
font-size: 18px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.card-icon {
|
|
font-size: 40px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.card-desc {
|
|
font-size: 14px;
|
|
opacity: 0.9;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.info-steps {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.step {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 15px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.step-number {
|
|
background-color: #4285f4;
|
|
color: white;
|
|
width: 25px;
|
|
height: 25px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.quick-actions {
|
|
display: flex;
|
|
gap: 20px;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.action-card {
|
|
flex: 1;
|
|
background-color: white;
|
|
border-radius: 10px;
|
|
padding: 25px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
color: #333;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
|
transition: transform 0.3s, box-shadow 0.3s;
|
|
}
|
|
|
|
.action-card:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.action-icon {
|
|
font-size: 36px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.action-card h3 {
|
|
margin: 0 0 10px;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.action-card p {
|
|
margin: 0;
|
|
color: #6c757d;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* 设置页按钮样式调整 */
|
|
.settings-form .btn-danger {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.settings-form .btn-danger:hover {
|
|
background-color: #d33426;
|
|
}
|
|
|
|
/* 添加消息提示样式 */
|
|
.alert {
|
|
padding: 12px 20px;
|
|
border-radius: 6px;
|
|
margin-bottom: 20px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.alert-success {
|
|
background-color: #d4edda;
|
|
color: #155724;
|
|
border: 1px solid #c3e6cb;
|
|
}
|
|
|
|
/* 分页样式 */
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 20px 0;
|
|
gap: 5px;
|
|
position: relative; /* 改为相对定位 */
|
|
bottom: auto;
|
|
}
|
|
|
|
/* 固定分页区域位置 */
|
|
.table-container {
|
|
min-height: calc(100vh - 400px); /* 动态计算最小高度 */
|
|
margin-bottom: 60px; /* 为分页留出空间 */
|
|
}
|
|
|
|
.pagination a, .pagination span {
|
|
padding: 8px 12px;
|
|
border: 1px solid #ddd;
|
|
text-decoration: none;
|
|
color: #4285f4;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.pagination a:hover {
|
|
background-color: #f1f1f1;
|
|
}
|
|
|
|
.pagination .current {
|
|
background-color: #4285f4;
|
|
color: white;
|
|
border-color: #4285f4;
|
|
}
|
|
|
|
/* 响应式调整 */
|
|
@media (max-width: 768px) {
|
|
.quick-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.step {
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
}
|