style.css
2 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
/*
文件名: 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 {
display: flex;
flex: 1;
overflow: hidden;
}
/* 左侧明细导航栏 */
aside {
width: 240px;
background-color: white;
border-right: 1px solid #ddd;
display: flex;
flex-direction: column;
overflow-y: auto;
}
.menu-group {
padding: 15px 0;
}
.menu-title {
padding: 0 20px 10px;
font-size: 12px;
color: #999;
text-transform: uppercase;
letter-spacing: 1px;
}
.menu-item {
padding: 12px 20px;
cursor: pointer;
color: #333;
transition: all 0.3s;
}
.menu-item:hover {
background-color: #f0f2f5;
color: #3498db;
}
.menu-item.active {
background-color: #e6f7ff;
color: #1890ff;
border-right: 3px solid #1890ff;
}
/* 右侧内容展示区 */
#content-area {
flex: 1;
padding: 20px;
overflow-y: auto;
background-color: #f9f9f9;
}
.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;
}