style.css
2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*
文件名: app/static/css/style.css
职责: 系统页面样式定义,负责 WebUI 的视觉呈现和布局美化。
注意: 不要删除这个注释。
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: #f4f7f6;
height: 100vh;
display: flex;
flex-direction: column;
}
/* 顶部导航栏 */
header {
background-color: #2c3e50;
color: white;
padding: 0 20px;
height: 60px;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
z-index: 100;
}
.logo {
font-size: 20px;
font-weight: bold;
}
.nav-links {
display: flex;
gap: 20px;
}
.nav-item {
cursor: pointer;
padding: 10px 15px;
border-radius: 4px;
transition: background 0.3s;
}
.nav-item:hover, .nav-item.active {
background-color: #34495e;
}
/* 主体内容布局(全宽,无侧边栏) */
main {
flex: 1;
overflow: auto;
}
/* 全宽内容展示区 */
#content-area {
padding: 20px;
background-color: #f9f9f9;
min-height: 100%;
}
.card {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
h2 {
margin-bottom: 20px;
color: #2c3e50;
}
/* 弹窗样式 (Modal) */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
}
.modal-content {
background-color: white;
margin: 5% auto;
padding: 20px;
border-radius: 8px;
width: 70%;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #eee;
padding-bottom: 15px;
margin-bottom: 15px;
}
.close-btn {
font-size: 28px;
font-weight: bold;
cursor: pointer;
color: #999;
}
.close-btn:hover {
color: #333;
}
/* 详情表格样式 */
.detail-table {
width: 100%;
border-collapse: collapse;
}
.detail-table th, .detail-table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #f0f0f0;
}
.detail-table th {
background-color: #fafafa;
color: #555;
font-weight: 600;
}
.detail-table tr:hover {
background-color: #fafafa;
}
.status-tag {
padding: 2px 8px;
border-radius: 4px;
font-size: 12px;
}
.status-success { background-color: #f6ffed; border: 1px solid #b7eb8f; color: #52c41a; }
.status-failed { background-color: #fff1f0; border: 1px solid #ffa39e; color: #f5222d; }
.status-info { background-color: #e6f7ff; border: 1px solid #91d5ff; color: #1890ff; }